axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: Content is not allowed in prolog Error in AXIS2 1.3 RC2
Date Tue, 24 Jul 2007 08:10:09 GMT
Hi Ashok,

I just downloaded AXIS2 1.3 RC2 and ran wsdl2java on your WSDL with options
-uri and -wv 2, and it worked perfectly. I tested this on both Linux and
windows and on both JDK 1.4 and 1.5. I wonder whether you have an old
AXIS2_HOME. Can you check on this please as I'm not getting any error.

Thanks,
Keith.

On 7/24/07, Ashok Kumar Rajendran <arajendran.jjr@gmail.com> wrote:
>
> Thanks for your effort Keith . Here with I attached the sample wsdl that i
> am using..
>
> kindly let me to know the Errors
>
> Thanks,
> Ashok
>
>
>
> On 7/24/07, keith chapman <keithgchapman@gmail.com> wrote:
> >
> > Hi Ashok,
> >
> > Can u upload your WSDL please so that we can have a look.
> >
> > Thanks,
> > Keith.
> >
> > On 7/24/07, Ashok Kumar Rajendran < arajendran.jjr@gmail.com > wrote:
> > >
> > > Hi all ,
> > >
> > > I downloaded the latest AXIS2 1.3 RC2 form Axis2 repository. While
> > > running the bundled  WSDL2Java to generate the Java stubs using WSDL
> > > 2.0 file i got a exception saying Content is not allowed in prolog . I
> > > couldn't find the flaw .  can any one guide me to fix this one .
> > >  I hope the error is related to WSDL parser which is not able to parse
> > > ,the wsdl file which is  WSDL 2.0 based .
> > >
> > >  I am  using JDK 1.4 in Win 2000
> > >
> > > Heres the stack trace
> > >
> > >
> > >
> > > [Fatal Error] :1:1: Content is not allowed in prolog.
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > > WSDL
> > >  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(
> > > CodeGenerationEngine.java:153)
> > >  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > >  at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Woden[Fatal Error],0:0,WSDL500,SAX
Parsing error in document located at
> > > file:/C:/SoNoMa/., org.xml.sax.SAXParseException:Content is not
> > > allowed in prolog.
> > >
> > > Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: Content
> > > is not allowed in prolog.: org.xml.sax.SAXParseException: Content is
> > > not allowed in prolog.
> > >  at org.apache.xerces.parsers.DOMParser.parse (Unknown Source)
> > >  at org.apache.woden.internal.DOMWSDLReader.getDocument(
> > > DOMWSDLReader.java:724)
> > >  at org.apache.woden.internal.DOMWSDLReader.readWSDL(
> > > DOMWSDLReader.java:245)
> > >  at org.apache.woden.internal.DOMWSDLReader.readWSDL (
> > > DOMWSDLReader.java:122)
> > >  at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > > WSDL20ToAxisServiceBuilder.java:145)
> > >  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(
> > > CodeGenerationEngine.java :97)
> > >  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > >  at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> > >
> > >  at org.apache.woden.internal.ErrorReporterImpl.reportError(
> > > ErrorReporterImpl.java:236)
> > >  at org.apache.woden.internal.ErrorReporterImpl.reportError(
> > > ErrorReporterImpl.java :184)
> > >  at org.apache.woden.internal.DOMWSDLReader.getDocument (
> > > DOMWSDLReader.java:735)
> > >  at org.apache.woden.internal.DOMWSDLReader.readWSDL(
> > > DOMWSDLReader.java:245)
> > >  at org.apache.woden.internal.DOMWSDLReader.readWSDL (
> > > DOMWSDLReader.java:122)
> > >  at org.apache.axis2.description.WSDL20ToAxisServiceBuilder .<init>(
> > > WSDL20ToAxisServiceBuilder.java:145)
> > >  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> > > CodeGenerationEngine.java :97)
> > >  ... 2 more
> > > Exception in thread "main"
> > >
> > > Your help is appreciated .
> > >
> > > Thanks ,
> > >
> > > Ashok
> > >
> > >
> > >
> >
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

Mime
View raw message