0 Replies Latest reply on Jul 25, 2002 5:36 AM by scuffer

    Problem with HelloWorld example 2

    scuffer

      I am trying to deploy the HelloWorld example listed in the Java Web Services Developer Pack 1.0 on Jboss/Jetty. I can partially deploy the Web Service as hitting the URL http://:8080/jaxrpc-hello/jaxrpc I get the message back in the browser:

      A Web Service is installed at this URL.

      It supports the following ports: "HelloIF" (http://:8080/jaxrpc-hello/jaxrpc/HelloIF)

      and the JBOSS at start up reports in the log the following:

      17:23:54,010 INFO [MainDeployer] Starting deployment of package: file:/usr/java/jboss-3.0.0/server/all/deploy/jaxrpc-hello.war
      17:23:54,473 WARN [ClusteredStore] distributed HttpSession support is not deployed - disabled
      17:23:55,571 INFO [Jetty] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=/jaxrpc-hello
      17:23:55,692 INFO [Jetty] Created temp dir /tmp/Jetty__8080___jaxrpc-hello for WebApplicationContext[/jaxrpc-hello,jar:file:/usr/java/jboss-3.0.0/server/all/tm
      p/deploy/server/all/deploy/jaxrpc-hello.war/98.jaxrpc-hello.war!/]
      17:23:55,699 INFO [Jetty] Extract jar:file:/usr/java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jaxrpc-hello.war/98.jaxrpc-hello.war!/ to /tmp/Jetty__
      8080___jaxrpc-hello/webapp
      17:23:56,608 INFO [Jetty] Started SecurityHandler in WebApplicationContext[/jaxrpc-hello,HelloWorldApplication]
      17:23:56,610 INFO [Jetty] Started WebInfProtect
      17:23:56,612 INFO [Jetty] Started FilterHandler in WebApplicationContext[/jaxrpc-hello,HelloWorldApplication]
      17:23:56,617 INFO [Jetty] Started ServletHandler in WebApplicationContext[/jaxrpc-hello,HelloWorldApplication]
      17:23:56,628 INFO [Jetty] ResourceHandler started in file:/tmp/Jetty__8080___jaxrpc-hello/webapp/
      17:23:56,630 INFO [Jetty] Started ResourceHandler in WebApplicationContext[/jaxrpc-hello,HelloWorldApplication]
      17:23:56,633 INFO [Jetty] Started NotFoundHandler in WebApplicationContext[/jaxrpc-hello,HelloWorldApplication]
      17:23:58,855 INFO [http] JAX-RPC servlet: init
      17:24:00,537 INFO [Jetty] JSP: init
      17:24:00,604 INFO [Jetty] successfully deployed file:/usr/java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jaxrpc-hello.war/98.jaxrpc-hello.war to /jax
      rpc-hello
      17:24:00,607 INFO [MainDeployer] Successfully completed deployment of package: file:/usr/java/jboss-3.0.0/server/all/deploy/jaxrpc-hello.war


      However, using the client on a separate machine to invoke the web service results in the following error in the Jboss log:

      08:43:20,124 ERROR [http] caught throwable: java.lang.NullPointerException
      java.lang.NullPointerException
      at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:118)
      at com.sun.xml.rpc.server.http.ea.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:97)
      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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      at org.jboss.jetty.Jetty.service(Jetty.java:527)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:479)


      On the machine that is running Jboss I have only copied accross the jar files from the <JWSDP_HOME>/common/lib/ directory. Any ideas?

      Thanks in advance,

      Paul