4 Replies Latest reply on Nov 2, 2006 7:36 AM by carliandro

    NoSuchFieldError when deploying .wsr

    voodoomax

      Hi all,

      I'am upgrading from JBoss 3.2.5 to 4.0.2. I know JBoss.NET has been replaced by JBossWS, but at this time I need to stay with JBoss.NET. The .wsr webservice deployments worked fine in 3.2.5, but in 4.0.2 I get this one: NoSuchFieldError: ucl

      The .wsr only contains a webservice.xml that provides access to some EJB methods of a Session Bean. When I put the part from the .wsr-deployment descriptor into the axis-config.xml in jboss-net.sar directory, the webservice deploys and works fine.

      Does anybody know what's going wrong and what I can do to make it work again?

      Thanks in advance,
      Jens


      13:44:17,705 ERROR [MainDeployer] could not start deployment: file:/X:/prj/jbo
      ss/server/prj/deploy/workflow.wsr
      java.lang.NoSuchFieldError: ucl
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:373)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:325)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:501)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:215)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:194)

        • 1. Re: NoSuchFieldError when deploying .wsr

          I am getting the same error while deploying my application after migrating from JBoss 3.2.5 to JBoss 4.0.2.
          However, even with the error I am able to invoke my web services mapped to my session beans.
          Please let me know if you got rid of the error you are getting during deployment.
          Satish

          • 2. Re: NoSuchFieldError when deploying .wsr
            sivakumar_n

            Solution Please?

            • 3. Re: NoSuchFieldError when deploying .wsr
              dazbaz

              I think this may work for you.

              Try following the replacement instructions found in the Wiki, but instead of copying JBoss.NET from your 3.2.x JBoss instance, copy it from a JBoss 4.0.2 instance that you may have to download. See steps below and where to find the appropriate files:

              1. I deleted the jbossws14-client.jar from client directory
              2. Deleted the jbossws14.sar directory
              3. Copied the jboss-4.0.2\docs\examples\jboss.net\jboss-net-client.jar to the client directory in JBoss4.0.4GA
              4. Copied the jboss-4.0.2\docs\examples\jboss.net\jboss-net.sar to the JBoss4.0.4GA\server\all\deploy directory

              Let me know if this works for you.

              Please remember to get the JBoss.NET version from JBoss 4.0.2 instead or your 3.2.x instance.

              Cheers

              • 4. Re: NoSuchFieldError when deploying .wsr
                carliandro

                I'm with problems to starting Jboss 4.

                The jboss start without errors if the jar file not were in deploy folder, but if the jar file were in deploy folder throw the following error

                error:
                Reason: java.lang.RuntimeException: java.lang.NoSuchFieldError: constructorInfos

                thanks.