6 Replies Latest reply on Jan 14, 2004 6:03 PM by camillo

    Duke's bank: Web service error

    camillo Newbie

       

      "camillo" wrote:
      "camillo" wrote:
      "camillo" wrote:
      Hello, there!

      I succeeded in runing Duke's bank in the document.
      I followed the description in Chapter 7.
      When I tried to run it as web service I got the following problem.
      It happened when I restarted the jboss-3.2.3. with "run.sh -c all" on RedHat linux.

      Do you know what's the problem is?
      The error message is as follows:

      13:33:57,165 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      <none>
      Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@4350aa1f { url=file:/usr/local/jboss-3.2.3/server/all/deploy/ebank.wsr }
      deployer: org.jboss.net.axis.server.AxisService@f19d6e
      status: Deployment FAILED reason: Could not deploy axis descriptor.; - nested throwable: (org.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.ebank.util.AccountDetails
      java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.ebank.util.AccountDetails
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:161)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:130) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197)
      at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
      at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112)
      at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:221)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:341)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployTypeMapping(WSDDDeployment.java:200)
      at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:193)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployToRegistry(WSDDDeployment.java:313)
      at org.jboss.net.axis.Deployment.deployToRegistry(Deployment.java:153)
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:555)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)

      org.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.ebank.util.AccountDetails
      java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.ebank.util.AccountDetails
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:161)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:130)
      at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
      at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112)
      at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:221)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:341)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployTypeMapping(WSDDDeployment.java:200)
      at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:193)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployToRegistry(WSDDDeployment.java:313)
      at org.jboss.net.axis.Deployment.deployToRegistry(Deployment.java:153)
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:555)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)

      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:358)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployTypeMapping(WSDDDeployment.java:200)
      at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:193)
      at org.apache.axis.deployment.wsdd.WSDDDeployment.deployToRegistry(WSDDDeployment.java:313)
      at org.jboss.net.axis.Deployment.deployToRegistry(Deployment.java:153)
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:555)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)
      )
      state: FAILED
      watch: jar:file:/usr/local/jboss-3.2.3/server/all/tmp/deploy/tmp4824ebank.wsr!/META-INF/web-service.xml





        • 1. Re: Duke's bank: Web service error
          Luke Taylor Novice

           

          "luke_t" wrote:
          "luke_t" wrote:
          "luke_t" wrote:
          You're getting a ClassNotFoundException for the AccountDetails class. Is the application (the EAR) deployed when you deploy the web service?

          Luke.


          • 2. Re: Duke's bank: Web service error
            camillo Newbie

             

            "camillo" wrote:
            "camillo" wrote:
            "camillo" wrote:
            Of course. I did. It's JBossDukesBank.ear. I put in /usr/local/jboss-3.2.3/server/all/deploy.
            I tested it with http://localhost:8080/bank/main.

            For the web service configuration, do I need to do something except running "run.sh -c all"?


            • 3. Re: Duke's bank: Web service error
              Luke Taylor Novice

               

              "luke_t" wrote:
              "luke_t" wrote:
              "luke_t" wrote:
              Well.... it works OK for me if I

              1. Run JBoss with the "all" configuration as you are.

              2. Copy JBossDukesBank.ear to all/deploy

              3. Copy the ebank.wsr file to all/deploy

              But if I remove the EAR file and just deploy the wsr file then I get the exception

              00:08:02,562 ERROR [MainDeployer] could not start deployment: file:/F:/servers/jboss-3.2.3/server/all/deploy/ebank.wsr
              org.jboss.deployment.DeploymentException: Could not deploy axis descriptor.; - nested throwable: (or
              g.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundException: No ClassLoade
              rs found for: com.sun.ebank.util.AccountDetails
              java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.ebank.util.AccountDetails
              at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:161)
              at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
              at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

              So it seems likely that the EAR isn't there, or is deployed to a different configuration (like the default one). The guide should probably emphasize that you make sure it is deployed to the same configuration *before* deploying the wsr file.

              Luke.


              • 4. Re: Duke's bank: Web service error
                camillo Newbie

                 

                "camillo" wrote:
                "camillo" wrote:
                "camillo" wrote:
                I confirmed that it is located at the same configuration directory.
                luke_t, could you succeed in running WSClient program?
                Which version are you using, is it jboss 3.2.3 or other?
                Thank you for posting.


                • 5. Re: Duke's bank: Web service error
                  camillo Newbie

                   

                  "camillo" wrote:
                  "camillo" wrote:
                  luke_t,

                  The hot deployment is okay, but when I restarted the server I met the error I mentioned eariler. You had better fix the bug. Since that problem, Axis is not up properly.

                  For temporary solution, I removed ebank.wsr from the configuration directory and started the server. Next I deployed ebank.wsr once the server is up.

                  However, I got the following error message when I run the WSClient program. Have you met this problem before? If not, please just reply no.
                  Anyway thank you for your help.

                  -----------------------------------------------------
                  shell> ant -f jboss-build.xml run-ws-client
                  [echo] ....... BlahBlah .......
                  [java] java.lang.ExceptionInInitializerError


                  • 6. Re: Duke's bank: Web service error
                    camillo Newbie

                     

                    "camillo" wrote:
                    "camillo" wrote:
                    luke_t,

                    Never mind.
                    I solved the problem. I used in ant v1.5.1. That caused that exception.
                    When I upgraded it to ant v1.6.0 I was able to run WSClient.