4 Replies Latest reply on Nov 29, 2004 6:55 AM by Stephen Dougall

    Can't Deploy

    Stephen Dougall Newbie

      hi,

      I've just started working with JBoss, I followed the Fibo tutorial and I am stuck at deployment. Everything seems okay but I get the following error message:

      15:17:19,024 WARN [verifier] EJB spec violation:
      Bean : Fibo
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the element.
      Info : Class not found on 'tutorial.interfaces.FiboHome': No ClassLoaders found for: tutorial.interfaces.FiboHome

      15:17:19,028 WARN [verifier] EJB spec violation:
      Bean : Fibo
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the element.
      Info : Class not found on 'tutorial.interfaces.Fibo': No ClassLoaders found for: tutorial.interfaces.Fibo

      15:17:19,029 WARN [verifier] EJB spec violation:
      Bean : Fibo
      Section: 7.10.1
      Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.

      15:17:19,029 ERROR [MainDeployer] could not create deployment: file:/opt/jboss-3.2.6/server/default/tmp/deploy/tmp25199FiboApp.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:517)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      15:17:19,032 ERROR [MainDeployer] could not create deployment: file:/opt/jboss-3.2.6/server/default/deploy/FiboApp.ear
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)


      Can anyone help me, it's driving me crazy!!

      Thanks
      Steve

        • 1. Re: Can't Deploy
          Darran Lofthouse Master

          Have you double checked that the class that can not be found is in the jar file?

          • 2. Re: Can't Deploy
            Stephen Dougall Newbie

            hi,

            I have check the jar, war and ear files to make sure the that files exist in the
            correct place and they seem okay. Any ideas?

            Thanks
            Steve

            • 3. Re: Can't Deploy
              Darran Lofthouse Master

               

              they seem okay


              Can you post an extract from your ejb-jar.xml for the bean that is failing to deploy.

              Can you also describe exactly the structure of your deployment, an error like this is usually due to something small that is difficult to see no matter how hard you are looking.

              Are there any old deployments that have been left behind? There is always the posibility that the wrong class is being picked up.

              You mention that you have a jar, war and ear. What happens if you just deploy the jar on it's own, does that work?

              • 4. Re: Can't Deploy
                Stephen Dougall Newbie

                hi,

                Okay, I'm pretty new to this, how do I deploy the jar on it's own? I'm using JBoss IDE in Eclipse.

                I have check the contents of the jars and they look like this:


                FiboEJB-client.jar:


                META-INF/
                META-INF/MANIFEST.MF
                tutorial/
                tutorial/interfaces/
                tutorial/interfaces/Fibo.class
                tutorial/interfaces/FiboHome.class


                FiboEJB.jar


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

                FiboWeb.war

                META-INF/
                META-INF/MANIFEST.MF
                WEB-INF/
                WEB-INF/web.xml
                WEB-INF/jboss-web.xml
                WEB-INF/lib/
                WEB-INF/lib/FiboEJB-client.jar
                WEB-INF/classes/
                WEB-INF/classes/tutorial/
                WEB-INF/classes/tutorial/web/
                WEB-INF/classes/tutorial/web/ComputeServlet.class
                index.html


                FiboApp.ear

                META-INF/
                META-INF/MANIFEST.MF
                META-INF/application.xml
                FiboEJB.jar
                FiboWeb.war



                Here is my ejb-jar.xml file:

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

                <ejb-jar >

                [CDATA[No Description.]]
                <display-name>Generated by XDoclet</display-name>

                <enterprise-beans>

                <!-- Session Beans -->

                [CDATA[Bean that computes fibo]]
                <display-name>Fibo EJB</display-name>

                <ejb-name>Fibo</ejb-name>

                tutorial.interfaces.FiboHome
                tutorial.interfaces.Fibo
                <ejb-class>tutorial.ejb.FiboBean</ejb-class>
                <session-type>Stateless</session-type>
                <transaction-type>Container</transaction-type>



                <!--
                To add session beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called session-beans.xml that contains
                the markup for those beans.
                -->

                <!-- Entity Beans -->
                <!--
                To add entity beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called entity-beans.xml that contains
                the markup for those beans.
                -->

                <!-- Message Driven Beans -->
                <!--
                To add message driven beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called message-driven-beans.xml that contains
                the <message-driven></message-driven> markup for those beans.
                -->

                </enterprise-beans>

                <!-- Relationships -->

                <!-- Assembly Descriptor -->
                <assembly-descriptor >
                <!--
                To add additional assembly descriptor info here, add a file to your
                XDoclet merge directory called assembly-descriptor.xml that contains
                the <assembly-descriptor></assembly-descriptor> markup.
                -->

                <!-- finder permissions -->

                <!-- transactions -->

                <!-- finder transactions -->
                </assembly-descriptor>

                </ejb-jar>


                Thanks for the help.

                Steve