6 Replies Latest reply on Aug 24, 2006 8:59 AM by Oshima Tlholoe

    help on Fibo Tutorial   -->  tutorial.web.ComputeServlet

    Ivan penuelas Newbie

      I´m having problems with the deploy i have already read a lot of forums but i still can´t solve it HELP please here is my error

      11:07:58,805 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp27673FiboApp.ear-contents/FiboWeb.war
      org.jboss.ws.WSException: java.lang.ClassNotFoundException: tutorial.web.ComputeServlet
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:161)
      at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:101)
      at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:66)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
      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 $Proxy49.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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 $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: tutorial.web.ComputeServlet
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:151)
      ... 79 more
      11:07:59,258 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@8dab2d02 { url=file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear }
      deployer: org.jboss.deployment.EARDeployer@8fcc7b
      status: Deployment FAILED reason: Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp27673FiboApp.ear-contents/FiboWeb.war; - nested throwable: (org.jboss.ws.WSException: java.lang.ClassNotFoundException: tutorial.web.ComputeServlet)
      state: FAILED
      watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
      altDD: null
      lastDeployed: 1155658078055
      lastModified: 1155658077852
      mbeans:

        • 1. Re: help on Fibo Tutorial   -->  tutorial.web.ComputeServlet
          Oshima Tlholoe Newbie

          Hey
          pliz send us ur web.xml file, and the structure of your war file,you can do "jar -tvf FiboWeb.war, that servlet (tutorial.web.ComputeServlet) should be under the WEB-INF/classes subfolder. We'll take it from there

          • 2. Re: help on Fibo Tutorial   -->  tutorial.web.ComputeServlet
            Ivan penuelas Newbie

            the problem its already solved but another problem appears now there´s a fourum where explain it but a´m having the same cane you help me this is the error:

            10:56:44,455 WARN [verifier] EJB spec violation:
            Bean : Fibo
            Section: 22.2
            Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
            Info : Class not found on 'tutorial.ejb.FiboBean': No ClassLoaders found for: tutorial.ejb.FiboBean

            10:56:44,455 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp35315FiboApp.ear-contents/FiboEJB.jar
            org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
            at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


            --- Incompletely deployed packages ---
            org.jboss.deployment.DeploymentInfo@8dab2d02 { url=file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear }
            deployer: org.jboss.deployment.EARDeployer@1afae45
            status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
            state: FAILED
            watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
            altDD: null
            lastDeployed: 1155743804299
            lastModified: 1155743804205
            mbeans:

            my .jar file has:

            META-INF/
            META-INF/MANIFEST.MF
            META-INF/ejb-jar.xml
            META-INF/jboss.xml
            META-INF/FiboBean.class
            META-INF/Fibo.class
            META-INF/FiboHome.class

            and the war:

            0 Wed Aug 16 10:56:04 CDT 2006 META-INF/
            106 Wed Aug 16 10:56:02 CDT 2006 META-INF/MANIFEST.MF
            0 Wed Aug 16 10:56:04 CDT 2006 WEB-INF/
            3489 Wed Aug 16 09:41:06 CDT 2006 WEB-INF/web.xml
            735 Wed Aug 16 09:41:06 CDT 2006 WEB-INF/jboss-web.xml
            0 Wed Aug 16 10:56:04 CDT 2006 WEB-INF/classes/
            3067 Wed Aug 16 10:22:14 CDT 2006 WEB-INF/classes/ComputeServlet.class
            811 Wed Aug 16 09:43:34 CDT 2006 index.html


            best regards!

            • 4. Re: help on Fibo Tutorial   -->  tutorial.web.ComputeServlet
              Oshima Tlholoe Newbie

              Hey,
              Take a careful look at you ejb jar file,u'l notice that your bean and its interfaces are sitting under the META-INF directory, and in your ejb-jar.xml file u told jboss that your bean interface is in the following package "tutorial.ejb", when Jboss goes in that package the interface is not there.Make sure that you move those classes into the root of the ejb**.jar file under the directory structure "tutorial.ejb" not under META-INF. It should be able to locate the bean and its interfaces.Hence ClassNotFound

              • 5. Re: help on Fibo Tutorial   -->  tutorial.web.ComputeServlet
                wang qiang Newbie

                would you please tell me how do solve the first problem! I encountered the same problem as you,I
                really need your help!
                best regards

                • 6. Re: help on Fibo Tutorial   -->  tutorial.web.ComputeServlet
                  Oshima Tlholoe Newbie

                  hey Stone can you pliz send thru ur stack trace. It will help us diagnose what might be the problem.