1 Reply Latest reply on Mar 23, 2006 4:15 AM by Thomas Diesler

    WebService error : Content is not allowed in prolog

    Manish Sahu Newbie

      Hi All,

      I'm using Jboss 3.2.4 with Axis for Java WebServices.
      I've two ear files (seperately for web and app components) deployed on two instance of jboss.
      I 'm getting the following error in my business delegate while invoking the web service.

      org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
      at org.apache.axis.client.Call.invoke(Call.java:2264)
      at org.apache.axis.client.Call.invoke(Call.java:2171)
      at org.apache.axis.client.Call.invoke(Call.java:1691)
      at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:186)


      The server side log shows the following error :

      2006-03-22 10:54:58,100 79131147 ERROR [org.apache.axis.Message] (http-0.0.0.0-8443-Processor1:) java.io.IOException:
      ClientAbortException: java.net.SocketException: Connection reset
      at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:373)
      at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:294)
      at org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer.java:401)
      at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:388)
      at org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java:76)
      at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
      at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395)
      at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
      at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
      at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
      at java.io.BufferedWriter.write(BufferedWriter.java:206)
      at java.io.Writer.write(Writer.java:126)
      at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:277)
      at org.apache.axis.Message.writeTo(Message.java:440)
      at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:1044)
      at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:921)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:287)
      at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:84)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)


      Can somebody help me out.