3 Replies Latest reply on Jul 16, 2003 9:55 AM by marceloptoledo

    javax.xml.soap.SOAPException: Invalid Content-Type:text/html

      I am trying a stand alone client with jboss-3.0.6_tomcat-4.1.18 and am getting javax.xml.soap.SOAPException: Invalid Content-Type:text/html, inspite of my adding all the libs from the jwsdl dir to Tomcat common/lib. Actually, on the JBoss logs I do see a NPE:

      java.lang.NullPointerException
      at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:118)
      at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:239)
      at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      .... (rest is not shown)

      Don't know why the NPE is being produced??
      Any solutions would be appreciated
      :-((

        • 1. Re: javax.xml.soap.SOAPException: Invalid Content-Type:text/

          Sorry, forgot to mention: That this is regarding Web Services stand alone client. I ran the wsdeploy on the interfaces and the impl and packaged it in the ear. That deployed okay but got the following error at statup:

          RuntimeErrorException: Error in MBean operation 'start(,org.jboss.deployment.DeploymentInfo)'
          Cause: java.lang.NoSuchMethodError: javax.xml.rpc.encoding.TypeMapping.setSupportedNamespaces([Ljava/lang/String;)V at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:307)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
          at org.jboss.net.jmx.adaptor.server.Adaptor.startService(Adaptor.java:72)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
          at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
          .... rest is omitted!

          This is inspite of copying most of the jars from the jwsdp dir.

          The NullPointerException (which I stated in my earlier post) comes after I run my stand alone client.

          Any suggestions would be appreciated...:-(

          • 2. Re: javax.xml.soap.SOAPException: Invalid Content-Type:text/
            osdchicago

            Please post in the users forum....

            • 3. Re: javax.xml.soap.SOAPException: Invalid Content-Type:text/
              marceloptoledo

              Change jboss 3-.0.6/tomcat4.1.18 to jboss-3.0.7/tomcat4.1.24