6 Replies Latest reply on Jan 29, 2005 3:55 PM by Marcelo Pitanga

    problem with wsdl being changed in jboss-4.0

    Bruce Scharlau Newbie

      Thomas,

      (continued from original post at:
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=52900)
      I see from the log file (added below) that the WebServiceMetaData class is changing the value of the endpoint from under ws4ee/service/HelloWorld to /HelloWorld, which means that it will not work, and that if I then go to the 'new' endpoint as specified in the wsdl, that it will not find the jaxrpc servlet to deal with this JSE. Note that this is NOT and EJB webservice. The example that Bill and Sache did in the workbook for Enterprise JavaBeans deploys ok and the wsdl isn't modified from the one supplied as part of the deployment.

      Bruce


      2004-08-11 08:48:01,123 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:id=-1092864531,war=simple-ws4ee.war
      2004-08-11 08:48:01,123 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.start,sequenceNumber=292,timeStamp=1092210481123,message=null,userData=jboss.web.deployment:id=-1092864531,war=simple-ws4ee.war]
      2004-08-11 08:48:01,123 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:id=-1092864531,war=simple-ws4ee.war dependent components: []
      2004-08-11 08:48:01,123 INFO [STDOUT] Retrieving document at 'file:/C:/java/jboss-4.0.0RC1/server/default/tmp/deploy/tmp16752simple-ws4ee-exp.war/WEB-INF/wsdl/hello.wsdl'.
      2004-08-11 08:48:01,133 DEBUG [org.jboss.webservice.metadata.WebserviceDescriptionMetaData] Replace port location 'http://localhost:8080/ws4ee/services/HelloWorld' with 'http://localhost:8080/simple-ws4ee/HelloWorld'
      2004-08-11 08:48:01,143 INFO [org.jboss.webservice.WSDLFilePublisher] WSDL published to: file:/C:/java/jboss-4.0.0RC1/server/default/data/wsdl/simple-ws4ee.war/hello.wsdl
      2004-08-11 08:48:01,143 DEBUG [org.jboss.webservice.AxisService] Generating deployment wsdd
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] characters> com.myapp
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] endElement> [http://java.sun.com/xml/ns/j2ee,package-type,package-type]
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] characters> http://myapp.com/HelloWorld
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] endElement> [http://java.sun.com/xml/ns/j2ee,namespaceURI,namespaceURI]
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] endElement> [http://java.sun.com/xml/ns/j2ee,package-mapping,package-mapping]
      2004-08-11 08:48:01,233 DEBUG [org.jboss.xml.binding.Content] endElement> [http://java.sun.com/xml/ns/j2ee,java-wsdl-mapping,java-wsdl-mapping]
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] ignored> http://java.sun.com/xml/ns/j2ee:java-wsdl-mapping
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] accepted> http://java.sun.com/xml/ns/j2ee:package-mapping
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] No newChild method found for org.jboss.webservice.metadata.jaxrpcmapping.PackageMapping
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] ignored> http://java.sun.com/xml/ns/j2ee:package-type
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] setValue> element=org.jboss.webservice.metadata.jaxrpcmapping.PackageMapping, namespaceURI=http://java.sun.com/xml/ns/j2ee, qName=package-type, value=com.myapp
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] No newChild method found for org.jboss.webservice.metadata.jaxrpcmapping.PackageMapping
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] ignored> http://java.sun.com/xml/ns/j2ee:namespaceURI
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] setValue> element=org.jboss.webservice.metadata.jaxrpcmapping.PackageMapping, namespaceURI=http://java.sun.com/xml/ns/j2ee, qName=namespaceURI, value=http://myapp.com/HelloWorld
      2004-08-11 08:48:01,243 DEBUG [org.jboss.xml.binding.ObjectModelBuilder] addChild> element=org.jboss.webservice.metadata.jaxrpcmapping.PackageMapping
      2004-08-11 08:48:01,243 DEBUG [org.jboss.webservice.deployment.ServiceDescription] No ws4ee deployment meta data available
      2004-08-11 08:48:01,243 INFO [org.jboss.webservice.AxisService] WSDD published to: C:\java\jboss-4.0.0RC1\server\default\data\wsdl\simple-ws4ee.war\HelloWorldService.wsdd
      2004-08-11 08:48:01,243 DEBUG [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] It's for me: javax.management.MBeanServerNotification: notificationType=JMX.mbean.registered source=JMImplementation:type=MBeanServerDelegate seq-no=554 time=1092210481243 message=null objectName=jboss.ws4ee:port-component=simple-ws4ee.war#HelloWorld userData=null, handback:2147483647
      2004-08-11 08:48:01,243 INFO [org.jboss.webservice.AxisService] Web Service deployed: http://localhost:8080/simple-ws4ee/HelloWorld

        • 1. Re: problem with wsdl being changed in jboss-4.0
          Thomas Diesler Master

          The service is deployed to http://localhost:8080/simple-ws4ee/HelloWorld. So it changes /ws4ee/service/HelloWorld to /simple-ws4ee/HelloWorld, which seems correct to me.

          You should be able to see the wsdl at
          http://localhost:8080/simple-ws4ee/HelloWorld?wsdl
          and http://localhost:8080/ws4ee/services/HelloWorld?wsdl

          The service however, is not available at the generic /ws4ee context.

          • 2. Re: problem with wsdl being changed in jboss-4.0
            Bruce Scharlau Newbie

            Thomas,

            I got it working, thanks to your page at http://www.jboss.org/wiki/Wiki.jsp?page=WSServerJSE I'm sure it wasn't there the other day when I looked, so thanks for adding it. I discovered a few little things that I was leaving out of my deployment descriptors. Also just noticed the downloadable examples - great stuff!

            In the next week or so I'll be adding these examples to the jboss page at
            http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/

            Bruce

            • 3. Re: problem with wsdl being changed in jboss-4.0
              Thomas Diesler Master

              Hi Bruce,

              my post on the wiki was inspired by your question, no wonder you could not find it.

              When you want to clarify/add stuff to the JBossWS docu, please feel free to do so on the wiki. This will eventually go into our printed documentation and is in a way the master document.

              cheers

              • 4. Re: problem with wsdl being changed in jboss-4.0
                drepac Newbie

                Hi Bruce, I see that you had some trouble with the HelloWorld example. I have been trying to get it to work but without any success. Could you please tell me what you fixed exactly because I am new to web services and I am starting to lose hope with this stuff.
                I have appended the stacktrace, tell me if this is familiar
                Thanks in advance.

                run_client:
                [copy] Copying 1 file to /home/user84/workspace/Tutorial/build/classes
                [java] Endpoint address = http://localhost:8080/simple-ws4ee/exactpath/jse
                [java] ServiceName is: HelloWorldService
                [java] Call is org.jboss.webservice.client.CallImpl@1d62270
                [java] TargetAddress http://localhost:8080/simple-ws4ee/exactpath/jse
                [java] AxisFault
                [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
                [java] faultSubcode:
                [java] faultString: java.lang.NullPointerException
                [java] faultActor:
                [java] faultNode:
                [java] faultDetail:
                [java] {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
                [java] at java.util.Hashtable.put(Hashtable.java:396)
                [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:385)
                [java] at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
                [java] at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:655)
                [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:432)
                [java] at org.apache.axis.Message.getContentType(Message.java:498)
                [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:387) [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
                [java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
                [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
                [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
                [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
                [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3039)
                [java] at org.apache.axis.client.Call.invoke(Call.java:3024)
                [java] at org.apache.axis.client.Call.invoke(Call.java:2619)
                [java] at org.apache.axis.client.Call.invoke(Call.java:2524)
                [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
                [java] at org.apache.axis.client.Call.invoke(Call.java:1917)
                [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175)
                [java] at com.myapp.DIIClient.main(DIIClient.java:54)


                [java] java.lang.NullPointerException
                [java] at org.apache.axis.AxisFault.makeFault(AxisFault.java:139)
                [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
                [java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
                [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
                [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
                [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
                [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3039)
                [java] at org.apache.axis.client.Call.invoke(Call.java:3024)
                [java] at org.apache.axis.client.Call.invoke(Call.java:2619)
                [java] at org.apache.axis.client.Call.invoke(Call.java:2524)
                [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
                [java] at org.apache.axis.client.Call.invoke(Call.java:1917)
                [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175)
                [java] at com.myapp.DIIClient.main(DIIClient.java:54)
                [java] Caused by: java.lang.NullPointerException
                [java] at java.util.Hashtable.put(Hashtable.java:396)
                [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:385)
                [java] at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
                [java] at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:655)
                [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:432)
                [java] at org.apache.axis.Message.getContentType(Message.java:498)
                [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:387) [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
                [java] ... 12 more

                • 5. Re: problem with wsdl being changed in jboss-4.0
                  drepac Newbie

                  How about you Thomas, Could you please provide any tips!!!

                  It seems there is something wrong with the client but I cannot seem to fighure it out

                  Any help would be greatly appreciated

                  • 6. Re: problem with wsdl being changed in jboss-4.0
                    Marcelo Pitanga Newbie

                    Hi drepac,

                    I get the example ( HelloWorld web services ) at http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-ws4ee-HelloWorld.shtml.

                    but don´t work....

                    ps. my configuration : Jboss 4.0.1 and J2SE 1.5

                    same error...

                    java] TargetAddress http://localhost:8080/simple-ws4ee/exactpath/jse
                    [java] AxisFault
                    [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
                    [java] faultSubcode:
                    [java] faultString: java.lang.NullPointerException
                    [java] faultActor:
                    [java] faultNode:
                    [java] faultDetail:
                    [java] {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
                    [java] at java.util.Hashtable.put(Hashtable.java:396)
                    [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:385)
                    .....