473,508 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error encounter " org.xml.sax.SAXException: Fatal Error" while running WSDL2Java tool

3 New Member
i have created wsdl file by running the following url
http://localhost:8080/axis4/services/MyService?wsdl

next i run "c:\java org.apache.axis.wsdl.WSDL2Java MyService.wsdl" it is giving following error
org.xml.sax.SAXException: Fatal Error: URI=file:///E:/Personal/SMat/My%20Fav/We
Services/axis/axis-1_4/samples/userguide/example3/MyService.wsdl Line=2: Conten
is not allowed in prolog.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler. fatalError(XMLUtil
.java:723)
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.fatalErr
r(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner .reportFatalError(
MLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl$Prolo
Dispatcher.dispatch(XMLDocumentScannerImpl.java:89 9)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerIm
l.scanDocument(XMLDocumentFragmentScannerImpl.java :368)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser
java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(DOMParser
java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(Do
umentBuilderImpl.java:292)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.popul ate(SymbolTable.ja
a:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(P arser.java:361)
at java.lang.Thread.run(Thread.java:595)


can any body give the solution for the above problem.
Sep 18 '06 #1
0 1926

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2999
by: Sam | last post by:
Guys facing a strange problem any clue would really rescue me.. i am using a ASP application with following things Server : Intel Xeon (TM) CPU 2GHz, 2GB RAM, 136GB HDD OS : Windows 2000...
3
1409
by: Gary McGill | last post by:
I have a C# solution with a dozen or so projects. There are references between the projects, and these were all added as "Project" references. Everything's been working fine for months, but...
1
1954
by: PS | last post by:
Hi I have project in old C++ (not .NET). I have prepared .dll in C++.NET for this old project. Project compile without any errors but after execution I got error "Fatal execution engine error"....
0
1432
by: gahagan | last post by:
If you encounter this error, most likely one of the controls you're trying to cut/paste is a combo box with a longer-than-average 'Row Source' value. That, apparently, is the problem. Shorter Row...
2
2691
by: Praveen Chandra | last post by:
Hi, I am trying to build a static library, while building the library i am getting the following error: fatal error C1189: #error : "No sstream/strstream implementation" Following is the...
1
2206
by: Raheemulla Khan | last post by:
i have created wsdl file by running the following url http://localhost:8080/axis4/services/MyService?wsdl next i run "c:\java org.apache.axis.wsdl.WSDL2Java MyService.wsdl" it is giving...
4
5464
by: keychain | last post by:
I'm experience the infamous "SSL: Fatal Protocol Error" bug with Apache 2.x According the fopen() documentation: "If you are using fsockopen() to create an ssl:// socket, you are responsible...
1
7078
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
3
1805
by: sachinv1821 | last post by:
hi , i am Getting this Error fatal error C1189: #error : "eh.h is only for C++!" my Problem is i am Having C++ librabry and Appropriate .h file i want to Access Them is .c File Files..... to Be...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.