7 Replies Latest reply on Mar 7, 2002 12:41 PM by Adrian Brock

    Deploying ear file

    Ferran Newbie

      Hi,

      I'm trying to deploy my application in an EAR file into jboss3beta-Tomcat. The EAR contains some EJB jars as well as some other jars, which contain libraries.

      The problem is that, although I reference the libraries from the manifests in the EJB jars and jboss seems to read them perfectly, it says that the libs can't be found, so when the EJBs are verified I get a NoClassDefFoundError.

      I attach a fragment of the log to see if anyone can help me.

      Thanks in advance
      Ferran


      ...
      2002-03-07 11:03:47,909 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/users/ferran/jboss3beta-tomcat/tmp/deploy/99.EJBCuadroZonaCobro.jar references URL file:/C:/users/ferran/jboss3beta-tomcat/tmp/deploy/bsn.jar which could not be opened, entry ignored
      2002-03-07 11:03:47,939 WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/users/ferran/jboss3beta-tomcat/tmp/deploy/99.EJBCuadroZonaCobro.jar references URL file:/C:/users/ferran/jboss3beta-tomcat/tmp/deploy/rc.jar which could not be opened, entry ignored
      2002-03-07 11:03:48,881 ERROR [org.jboss.ejb.EJBDeployer] Verfiy failed
      java.lang.NoClassDefFoundError: pa/ieci/sys/log/IeciCategory
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
      at java.lang.Class.getConstructor0(Class.java:1748)
      at java.lang.Class.newInstance0(Class.java:266)
      at java.lang.Class.newInstance(Class.java:249)
      at org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor(AbstractVerifier.java:383)
      at org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVerifier11.java:1209)
      at org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier11.java:120)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:135)
      at org.jboss.ejb.EJBDeployer.deploy(EJBDeployer.java:392)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:458)
      at org.jboss.deployment.MainDeployer.deploySubPackages(MainDeployer.java:793)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:453)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:413)
      at org.jboss.deployment.MainDeployer.scan(MainDeployer.java:272)
      at org.jboss.deployment.MainDeployer.startService(MainDeployer.java:218)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:160)
      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.OperationProvider.invoke(Unknown Source)
      at org.jboss.mx.capability.MBeanAdapter.invoke(Unknown Source)
      at org.jboss.mx.interceptor.MBeanTarget.invoke(Unknown Source)
      at org.jboss.mx.interceptor.MBeanInvoker.invoke(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
      at org.jboss.system.Server.(Server.java:157)
      at org.jboss.Main.boot(Main.java:263)
      at org.jboss.Main.run(Main.java:48)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: Deploying ear file
          Adrian Brock Master

          Look at this thread.

          http://main.jboss.org/thread.jsp?forum=47&thread=5356&message=385325

          Seems there was a problem in the beta.

          Regards,
          Adrian

          • 2. Re: Deploying ear file
            Ferran Newbie


            Thanks Adrian!

            I should get the last version from CVS, but do I need to download the whole jboss project to build the latest version?

            It could take me a loooooooooong time with my connection :(

            Ferran

            • 3. Re: Deploying ear file
              Adrian Brock Master

              That is probably the best way,
              unless you already have it checked in CVS.

              Once you've got a CVS copy you can then just use
              "cvs update" to get amendments.

              Regards,
              Adrian

              • 4. Re: Deploying ear file
                Ferran Newbie

                Hi again,

                I'm confused about how to build jboss from CVS. I tried to run the build script contained in build\jboss, but seems like some of the ant tasks do not work properly, since the script can't find the subsystems.

                The messages are:

                _buildmagic:modules:most:
                [execmodules] Missing build file; skipping module: common
                [execmodules] Missing build file; skipping module: system
                [execmodules] Missing build file; skipping module: j2ee
                [execmodules] Missing build file; skipping module: naming
                [execmodules] Missing build file; skipping module: server
                [execmodules] Missing build file; skipping module: security
                [execmodules] Missing build file; skipping module: jmx
                [execmodules] Missing build file; skipping module: messaging
                [execmodules] Missing build file; skipping module: pool
                [execmodules] Missing build file; skipping module: connector
                [execmodules] Missing build file; skipping module: admin
                [execmodules] Missing build file; skipping module: cluster
                [execmodules] Missing build file; skipping module: varia
                [execmodules] Missing build file; skipping module: jetty

                Any suggestion?

                Thanks in advance
                Ferran

                • 5. Re: Deploying ear file
                  Adrian Brock Master

                  Hi,

                  cd jboss-all/build
                  build.bat (or ./build.sh)

                  This builds to the directory

                  jboss-all/build/output/{jboss-version}

                  Regards,
                  Adrian

                  • 6. Re: Deploying ear file
                    Ferran Newbie


                    I should have looked the developers page from jboss... excuse me for making you spend your time on questions like this.

                    BTW, how can you post answers so fast to several threads? On every thread I take a look, I see a message written by you :D

                    Thanks again!
                    Ferran

                    • 7. Re: Deploying ear file
                      Adrian Brock Master

                      I doing a boring spec in MS Word.

                      I write a couple of paragraphs then answer a question
                      in the forums :-)

                      Regards,
                      Adrian