3 Replies Latest reply on Aug 25, 2006 10:22 AM by John Neal

    Simple Web Service with JBoss

    David Holliday Newbie

      I am an experienced Java application programmer, but new to web programming. I will be building a Netbeans platform application that connects to a JBoss server via web application style Web Services. I found ?NetBeans IDE 5.0 Quick Start Guide for Web Services? and tried to create the HiWS web application with JBoss 4.0.3SP1 (NetBeans supports JBoss). Things seemed to go fine until running the project. Is there something extra that I need to do to get this to work with JBoss? I would use the JBossIDE except I can't figure out how to create a simple web application style web service (no EJB) with JBossIDE. Are there any tutorials showing how?

      ******When deploying I get these warnings on JBoss:

      12:51:08,291 INFO [TomcatDeployer] deploy, ctxPath=/HiWS, warUrl=.../tmp/deploy/tmp13002HiWS-exp.war/
      12:51:08,551 INFO [WSDLFilePublisher] WSDL published to: file:/D:/jboss-4.0.3SP1/server/default/data/wsdl/HiWS.war/HiWS.wsdl
      12:51:08,972 WARN [TypeMappingDescription] Class not found: org.me.hi.HiWSSEI_sayHi_RequestStruct
      12:51:08,972 WARN [TypeMappingDescription] Class not found: org.me.hi.HiWSSEI_sayHi_ResponseStruct
      12:51:08,972 INFO [AxisService] WSDD published to: D:\jboss-4.0.3SP1\server\default\data\wsdl\HiWS.war\HiWS.wsdd
      12:51:09,072 INFO [AxisService] Web Service deployed: http://DEV-DHOLLID4:8080/HiWS/HiWS


      There is a HiWSSEI class but not a HiWSSEI_sayHi_RequestStruct class.


      *****When testing from the ?Test Web Service Operation? dialog I get these exceptions:

      InvocationTargetException
      org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
      org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
      org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
      Next Exception Layer
      null
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
      org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
      org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
      Next Exception Layer
      Deserializing parameter 'sayHi': could not find deserializer for type {urn:HiWS/types}sayHi
      com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:491)
      com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
      webservice.HiWSSEI_Stub.sayHi(HiWSSEI_Stub.java:69)
      webservice.HiWSClient.hiwsseiportSayHi(HiWSClient.java:22)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:506)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:439)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
      org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:382)
      org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
      org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)



      I have spent two days trying but my lack of knowledge and not even being able to get a ?Hello World? level Web Service working is driving me nuts.

      The HiWS Web Service does work with Sun App Server 8.2

      Thanks,
      David

      P.S. Should I ask this question somewhere else?