0 Replies Latest reply on Nov 8, 2005 10:35 AM by siddhik1982

    Urgent:Please help me with this example(from JBoss Documenta

    siddhik1982

      Hi people,

      I'am new to JBoss and I encountered some issues while trying to develop a sample Web service on JBoss 4.0.2.

      The sample code was taken from the JBoss website documentation from the URL http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch12.html

      I downloaded the entire set of source files and the complete documentation.When I try to build the above mentioned example it throws the below mentioned error trace:



      C:\ws\jboss4guide\examples>ant -Dchap=chap12 -Dex=2 run-example
      Buildfile: build.xml

      validate:
      [java] java.lang.NoClassDefFoundError: Version
      [java] Exception in thread "main"
      [java] Java Result: 1

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=D:\siddhi\software\jboss-4.0.2

      compile:

      run-example:

      prepare:

      chap12-jars:
      [jar] Building jar: C:\ws\jboss4guide\examples\output\chap12\hello-ejb.jar

      run-example2:
      [copy] Copying 1 file to D:\siddhi\software\jboss-4.0.2\server\default\deploy
      [echo] Waiting for 5 seconds for deploy...
      [java] Contacting webservice at http://localhost:8080/hello-ejb/Hello?wsdl
      [java] hello.hello(JBoss user)
      [java] [ERROR,PortProxy] Port error
      [java] java.lang.NullPointerException
      [java] java.rmi.RemoteException: null; nested exception is:
      [java] at java.util.Hashtable.put(Hashtable.java:393)
      [java] java.lang.NullPointerException
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:176)
      [java] at $Proxy1.hello(Unknown Source)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.chap12.client.HelloClient.main(HelloClient.java:33)
      [java] Caused by: java.lang.NullPointerException
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
      [java] at java.util.Hashtable.put(Hashtable.java:393)
      [java] at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
      [java] at org.jboss.axis.Message.getContentType(Message.java:494)
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
      [java] at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
      [java] at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
      [java] at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
      [java] at org.jboss.axis.Message.getContentType(Message.java:494)
      [java] at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
      [java] at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      [java] at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
      [java] at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      [java] at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
      [java] at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
      [java] at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128)
      [java] at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      [java] at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
      [java] at org.jboss.axis.client.Call.invokeEngine(Call.java:3054)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:3039)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2629)
      [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2538)
      [java] at org.jboss.axis.client.Call.invokeEngine(Call.java:3054)
      [java] at org.jboss.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:3039)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2629)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:1914)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2538)
      [java] at org.jboss.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:1914)
      [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      [java] at org.jboss.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381)
      [java] at $Proxy0.hello(Unknown Source)
      [java] at org.jboss.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381)
      [java] at $Proxy0.hello(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105)
      [java] ... 2 more
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105)
      [java] at $Proxy1.hello(Unknown Source)
      [java] at org.jboss.chap12.client.HelloClient.main(HelloClient.java:33)
      [java] Exception in thread "main"

      BUILD FAILED
      file:C:/ws/jboss4guide/examples/src/main/org/jboss/chap12/build.xml:124: Java returned: 1

      Total time: 26 seconds




      Anyone please help me out with this stuff, its a critical assignment for me and I'am running out of time and options.

      Thanks and Regards,
      Siddhi.