0 Replies Latest reply on Sep 8, 2006 12:42 PM by Tadas Danielius

    Jboss netbeans and web service

    Tadas Danielius Newbie

      Hello everyone,

      I am trying to make simple web service with netbeans. I did everything like documented here http://www.netbeans.org/kb/50/quickstart-webservice.html. Everything works fine if i am using rpcliteral, but if i set to documentliteral, during deployment process i get the following error


      18:22:18,156 INFO [TomcatDeployer] deploy, ctxPath=/HiWS, warUrl=.../tmp/deploy/tmp53015HiWS-exp.war/
      18:22:18,312 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.4.GA/server/default/data/wsdl/HiWS.war/HiWS.wsdl
      18:22:18,359 WARN [ServiceMetaData] Cannot load class for type: {urn:HiWS/types}sayHiResponse,org.me.hi.HiWSSEI_sayHi_ResponseStruct
      18:22:18,359 WARN [ServiceMetaData] Cannot load class for type: {urn:HiWS/types}sayHi,org.me.hi.HiWSSEI_sayHi_RequestStruct
      18:22:18,359 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/HiWS.war
      org.jboss.ws.WSException: Cannot load java type: org.me.hi.HiWSSEI_sayHi_RequestStruct
      at org.jboss.ws.metadata.ParameterMetaData.getJavaType(ParameterMetaData.java:141)
      at org.jboss.ws.metadata.ParameterMetaData.eagerInitialize(ParameterMetaData.java:291)
      at org.jboss.ws.metadata.OperationMetaData.eagerInitialize(OperationMetaData.java:474)
      at org.jboss.ws.metadata.EndpointMetaData.eagerInitialize(EndpointMetaData.java:353)
      at org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:397)
      at org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:143)
      at org.jboss.ws.server.ServiceEndpoint.start(ServiceEndpoint.java:131)
      at org.jboss.ws.server.ServiceEndpointManager$DefaultServiceLifecycle.startServiceEndpoint(ServiceEndpointManager.java:513)
      at org.jboss.ws.server.ServiceEndpointManager$ServiceLifecycleChain.startServiceEndpoint(ServiceEndpointManager.java:458)
      at org.jboss.ws.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:427)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
      at $Proxy32.startServiceEndpoint(Unknown Source)
      at org.jboss.ws.server.WebServiceDeployer.startServiceEndpoints(WebServiceDeployer.java:203)
      at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:126)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy44.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.ClassNotFoundException: org.me.hi.HiWSSEI_sayHi_RequestStruct
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
      at org.jboss.ws.utils.JavaUtils.loadJavaType(JavaUtils.java:81)
      at org.jboss.ws.metadata.ParameterMetaData.getJavaType(ParameterMetaData.java:137)
      ... 50 more



      I am using Netbeans 5.5 and JBoss 4.0.4.GA

      Thanks