6 Replies Latest reply on Oct 26, 2005 11:41 PM by sventura

    EJB3Trail.ear fails on 4.0.3RC1

    sventura

      I was able to build and run duke's bank ear on this release but EJB3Trail.ear both binary download and compiled from source result in the following exception :


      org.jboss.deployment.DeploymentException: Failed to find module file: entities.par


      2005-06-27 18:33:49,274 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@23230d3d{ url=file:/home/sventura/local/coop/jboss-4.0.3RC1/server/default/deploy/EJB3Trail.ear, deployedLastModified=1119914175000 }
      org.jboss.deployment.DeploymentException: Failed to find module file: entities.par
       at org.jboss.deployment.EARDeployer.init(EARDeployer.java:244)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:827)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:764)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
       at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:483)
       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: EJB3Trail.ear fails on 4.0.3RC1
          sventura


          mm, this does not happen if the installer is used to install jboss.

          • 2. Re: EJB3Trail.ear fails on 4.0.3RC1
            normann

            So people not using the installer should do what?

            I'm personally trying to deploy on a oldfashioned textconsole-capable linux server, so the JBoss installer is not for me and I'd like to play with the EJB3Trail application but I can't.

            • 3. Re: EJB3Trail.ear fails on 4.0.3RC1
              onyii5119

              I got the same exception. I even tried to use the installer to install JBoss on Linux kernel version 2.4.x but also got an exception during the installation.

              Does any one why that should happen or a way to solve the problem?

              • 4. Re: EJB3Trail.ear fails on 4.0.3RC1
                evan3107

                I'm getting the exact same error message with the same version running on Windows XP.

                "Failed to find module file: entities.par"

                I checked EJB3Trail.ear and the file is there. Was anyone able to resolve this?

                Thanks,
                Evan

                • 5. Re: EJB3Trail.ear fails on 4.0.3RC1
                  aboujraf

                  You receive this error because you do not have installed the ejb3 container.

                  follow those steps:
                  1. go to this page and follow the steps (http://docs.jboss.com/ejb3/app-server/tutorial/installing.html)

                  !!! USE the ALL CONFIGURATION, this installation procedure doesn't work on my DEFAULT CONFIGURATION !!!

                  2. Then copy the EJB3Trail.ear to the %jboss_home%\server\all\deploy\ directory

                  3. and then run the server if it not already running (run -c all)

                  4. now, enjoy :-) http://localhost:8080/EJB3Trail/

                  Abdelkrim Boujraf

                  • 6. Re: EJB3Trail.ear fails on 4.0.3RC1
                    sventura

                    From my short experience, I recomend 4.0.2+EJB-3.0_RC2 over 4.0.3RC1 even if manual install is required. This combination incorporates a stricter check on entity contraints as @NotNull and @Length.

                    Be caution if dowgrading (not a downgrade really) since lazy code (as mine) may suddenly fail on 4.0.2 with MarshallException, if so, check for a @Contraint violation.

                    Steps to manual installation :

                    download from sf.net

                    jboss-4.0.2.tar.gz
                    jboss-EJB-3.0_RC2.zip

                    untar and unzip (home directory assumed)

                    read INSTALL.html
                    rm -fr ~/jboss-4.0.2/server/all/deploy/jboss-hibernate.deployer/
                    rm -fr ~/jboss-4.0.2/server/all/deploy/jboss-aop.deployer/
                    cd ~/jboss-EJB-3.0_RC2/lib
                    cp -fR ejb3-clustered-sfsbcache-service.xml \
                    ejb3-entity-cache-service.xml \
                    ejb3-interceptors-aop.xml \
                    jboss-aop-jdk50.deployer/ \
                    ejb3.deployer/ \
                    ~/jboss-4.0.2/server/all/deploy
                    cp jboss-xb.jar ~/jboss-4.0.2/server/all/lib