4 Replies Latest reply on May 12, 2006 7:34 AM by Jim McCarthy

    JSR181 web service deployment error.

    Dan Smith Newbie

      I originally posted this as a reply to another post, but then thought it would be better to start a new topic.

      I have been trying to get some simple web services going using the JSR181 based on the user guide example code as well as some of the things I've found on the forum. However, I always get the following error when I try to deploy a service:

      08:29:15,625 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.
      0.4.CR2/server/default/deploy/HelloWorldWs.war
      java.lang.ArrayIndexOutOfBoundsException: 0
       at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.getWebParamAnnotatio
      n(AnnotationsMetaDataBuilder.java:310)
       at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.processWebMethod(Ann
      otationsMetaDataBuilder.java:388)
       at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.setupEndpointFromAnn
      otations(AnnotationsMetaDataBuilder.java:153)
       at org.jboss.ws.metadata.AnnotationsMetaDataBuilderJSE.buildMetaData(Ann
      otationsMetaDataBuilderJSE.java:82)
       at org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(W
      ebServiceDeployerJSE.java:194)
       at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java
      :103)
       at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJS
      E.java:65)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      create(SubDeployerInterceptorSupport.java:180)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      ptor.java:91)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:260)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy30.create(Unknown Source)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:260)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:334)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:522)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:207)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:218)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:197)
      


      I am using 4.0.4CR2 and JDK 1.5.0. This is driving me nuts, I can't figure out what is causing this.

      Thanks,