You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by eliza_222 <an...@gmail.com> on 2006/06/02 20:30:38 UTC

org.xml.sax.SAXException: Processing instructions are not allowed

I have attempted to add Axis to my own webapp, per the installation
instructions.  The necessary libraries are present and the servlet
declarations are in the web.xml.  I can run the admin client using the axis
web application url and receive the expected results.  But when I attempt to
run the admin client with my own application's url and any deploy.wsdd file
(whether one of the samples or my own) I receive a SAXException error, see
below.

Using own application:
C:\>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
c:\axis-1_3\samp
les\math\deploy.wsdd -lhttp://localhost/MyApp/services/AdminService

log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Processing file c:\axis-1_3\samples\math\deploy.wsdd
Exception: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Processing instructions are not
allowed
within SOAP messages
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
Proces
sing instructions are not allowed within SOAP messages
        at
org.apache.axis.encoding.DeserializationContext.startDTD(Deserializat
ionContext.java:1161)
        at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Unknown
Source)
        at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
        at org.apache.crimson.parser.Parser2.parse(Unknown Source)
        at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:796)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:727)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:727)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:727)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:1792)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
        at org.apache.axis.client.AdminClient.main(AdminClient.java:463)

        {http://xml.apache.org/axis/}hostname:myhostname


Using Axis web app:
C:\>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
c:\axis-1_3\sam
les\math\deploy.wsdd -lhttp://localhost/axis/services/AdminService
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.Project
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Processing file c:\axis-1_3\samples\math\deploy.wsdd
<Admin>Done processing</Admin>

--
View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-Processing-instructions-are-not-allowed-t1724317.html#a4684666
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: org.xml.sax.SAXException: Processing instructions are not allowed

Posted by eliza_222 <an...@gmail.com>.
Jeff,

Thanks for the reply.  I serendipitously discovered that the error was
caused by having a security constraint in my web.xml.  Removing the
constraint resulted in successful deployments of both sample dds and my own.
--
View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-Processing-instructions-are-not-allowed-t1724317.html#a4715441
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: org.xml.sax.SAXException: Processing instructions are not allowed

Posted by Jeff Greif <jg...@alumni.princeton.edu>.
The appearance of the crimson parser in your stack trace suggests that
the better and more up-to-date xerces parsers are not being found in
your classpath.  Please review the installation instructions to ensure
that you've installed the proper version of xerces.  See if the
problem reoccurs after that.

Jeff

On 6/2/06, eliza_222 <an...@gmail.com> wrote:
>
> I have attempted to add Axis to my own webapp, per the installation
> instructions.  The necessary libraries are present and the servlet
> declarations are in the web.xml.  I can run the admin client using the axis
> web application url and receive the expected results.  But when I attempt to
> run the admin client with my own application's url and any deploy.wsdd file
> (whether one of the samples or my own) I receive a SAXException error, see
> below.
>
> Using own application:
> C:\>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
> c:\axis-1_3\samp
> les\math\deploy.wsdd -lhttp://localhost/MyApp/services/AdminService
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> Processing file c:\axis-1_3\samples\math\deploy.wsdd
> Exception: AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: Processing instructions are not
> allowed
> within SOAP messages
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> Proces
> sing instructions are not allowed within SOAP messages
>         at
> org.apache.axis.encoding.DeserializationContext.startDTD(Deserializat
> ionContext.java:1161)
>         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Unknown
> Source)
>         at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
>         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
>         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
...

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org