[mule-user] Content is not allowed in prolog.

0 views
Skip to first unread message

Ian Godman

unread,
Jul 4, 2007, 4:08:44 AM7/4/07
to us...@mule.codehaus.org
Hi

I have 2 web services, the first works fine the second throws an exception and I dont know why.

 org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

The mule config is:

    <model name="Sample">
        <mule-descriptor name="bean" implementation="abean">
            <inbound-router>
               
            </inbound-router>
        </mule-descriptor>
       
        <mule-descriptor name="test_axis_bean" implementation="atest_axis_bean">
            <inbound-router>
               
            </inbound-router>
        </mule-descriptor>
    </model>

The beans are defined in a spring context.

Each has the same methods. If I send to "axis:http://localhost:3456" it all works fine, if I send to "axis:http://localhost:3458" i get the above exception but all I have done is change the address on the url!




Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today.

Marco Orellana O.

unread,
Jul 4, 2007, 3:52:46 PM7/4/07
to us...@mule.codehaus.org
Hi,
Check the config-xml file, exists garbage data in your file.


--
Marco Orellana O.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply all
Reply to author
Forward
0 new messages