5 Replies Latest reply on Mar 16, 2006 1:27 PM by Peter Goldstein

    problem deploying EJB3 In JB4.0.4

    Marco Novice

      HELLO all,
      i have developed a j2ee app based on EJB3./
      I have deployed it in JB4.0.3sp1 and everything worked fine

      when i downloaded JB4.0.4 and deployed it, i got a huuuuge exception...

      at beginning, i have this

      2006-03-12 13:50:23,750 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.aop:service=AspectDeployer dependents are: [ObjectName: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
      State: CONFIGURED
      I Depend On:
      jboss.aop:service=AspectDeployer
      , ObjectName: jboss.ejb3:service=EJB3Deployer
      State: CONFIGURED
      I Depend On:
      jboss.aop:service=AspectDeployer
      jboss.ejb:service=EJBDeployer
      jboss.ejb3:service=JarsIgnoredForScanning
      ]



      2006-03-12 14:02:41,640 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.par,name=CalculatorBean
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=cal

      ObjectName: jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.par,name=SessionFacadeBean
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=cal

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:unitName=cal
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.par,name=CalculatorBean
      jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.par,name=SessionFacadeBean


      2006-03-12 14:02:41,671 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true
      2006-03-12 14:02:41,671 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
      2006-03-12 14:02:41,671 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.deployment:type=DeploymentScanner,flavor=URL dependent components: []
      2006-03-12 14:02:41,703 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jboss-service.xml
      2006-03-12 14:02:41,703 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/Sw/jboss-4.0.4RC1/server/default/conf/jboss-service.xml
      2006-03-12 14:02:41,703 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
      2006-03-12 14:02:41,734 INFO [org.apache.coyote.http11.Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8091


      so i can't figure out why the persistenceUnit does not get deployed..

      the ejb jar file is exactly the same as theone deployed on jboss4.0.3sp1..

      are there any differences in ejb3 'deployment' betweeen jboss4.0.3 and 4.0.4?

      thanks and regards
      marco


        • 1. Re: problem deploying EJB3 In JB4.0.4
          Scott Stark Master

          See if the migration page helps out. Pars are no longer valid it would appear:

          http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD

          • 2. Re: problem deploying EJB3 In JB4.0.4
            Marco Novice

            Hello Scott,
            thanks for your reply..
            yes, actually after that i went thru the migration page.. i deployedmy ejbs as jars, and modified my persistence.xml to new syntax.
            But this time i have a different exception

            **************
            EXCEPTION
            ********************
            18:15:54,906 INFO [EARDeployer] Init J2EE application: file:/C:/Sw/jboss-4.0.4R
            C1/server/default/deploy/ejb3-deploy-1.0.ear
            18:15:55,390 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=CalculatorBean, c
            lass=com.myapp.ejb3.CalculatorBean, type=STATELESS
            18:15:55,453 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=SessionFacadeBean
            , class=com.myapp.ejb3.SessionFacadeBean, type=STATELESS
            18:15:55,484 FATAL [PersistenceXmlLoader] cal JTA
            18:15:55,484 INFO [Ejb3Deployment] EJB3 deployment time took: 281
            18:15:55,515 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ea
            r=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.jar,unitName=cal with de
            pendencies:
            18:15:55,515 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service
            =ManagedConnectionFactory
            18:15:55,640 INFO [Environment] Hibernate 3.1.2
            18:15:55,640 INFO [Environment] hibernate.properties not found
            18:15:55,656 INFO [Environment] using CGLIB reflection optimizer
            18:15:55,656 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
            18:15:55,859 INFO [Ejb3Configuration] found EJB3 Entity bean: com.myapp.ejb3.en
            tities.Agency
            18:15:55,859 INFO [Ejb3Configuration] found EJB3 Entity bean: com.myapp.ejb3.en
            tities.Fund
            18:15:55,859 INFO [Ejb3Configuration] found EJB3 Entity bean: com.myapp.ejb3.en
            tities.JobApplication
            18:15:55,859 INFO [Ejb3Configuration] found EJB3 Entity bean: com.myapp.ejb3.en
            tities.User
            18:15:55,984 INFO [AnnotationBinder] Binding entity from annotated class: com.m
            yapp.ejb3.entities.Agency
            18:15:56,000 WARN [ServiceController] Problem starting service persistence.unit
            s:ear=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.jar,unitName=cal
            java.lang.reflect.InvocationTargetException
            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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWra
            pper.java:97)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:245)
            at sun.reflect.GeneratedMethodAccessor4.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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:974)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            at sun.reflect.GeneratedMethodAccessor6.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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
            at $Proxy38.start(Unknown Source)
            at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java
            :76)
            at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.ja
            va:599)
            at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
            at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:245)
            at sun.reflect.GeneratedMethodAccessor4.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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:974)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            at sun.reflect.GeneratedMethodAccessor6.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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
            at $Proxy25.start(Unknown Source)
            at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
            at sun.reflect.GeneratedMethodAccessor14.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(ReflectedDispatch
            er.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
            at $Proxy6.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:334)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:522)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:207)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
            bstractDeploymentScanner.java:280)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:974)
            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(ReflectedDispatch
            er.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:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
            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(ReflectedDispatch
            er.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:260)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
            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.annotation.IncompleteAnnotationException: javax.persistence
            .NamedQuery missing element query
            at sun.reflect.annotation.AnnotationInvocationHandler.invoke(Unknown Sou
            rce)
            at $Proxy49.query(Unknown Source)
            at org.hibernate.cfg.annotations.QueryBinder.bindQuery(QueryBinder.java:
            45)
            at org.hibernate.cfg.annotations.QueryBinder.bindQueries(QueryBinder.jav
            a:179)
            at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:
            197)
            at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:33
            5)
            at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(Anno
            tationConfiguration.java:276)
            at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(Annotatio
            nConfiguration.java:210)
            at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)

            at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.j
            ava:722)
            at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerCo
            nfigurator.java:161)
            at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Co
            nfiguration.java:567)
            at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFacto
            ry(Ejb3Configuration.java:245)
            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
            ctory(HibernatePersistence.java:108)
            at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnit
            Deployment.java:260)
            ... 126 more
            18:15:56,265 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=E
            JB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.jar,name=CalculatorBean wi
            th dependencies:
            18:15:56,265 INFO [JmxKernelAbstraction] persistence.units:ear=ejb3-deplo
            y-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.jar,unitName=cal
            18:15:56,265 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=E
            JB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.jar,name=SessionFacadeBean
            with dependencies:
            18:15:56,265 INFO [JmxKernelAbstraction] persistence.units:ear=ejb3-deplo
            y-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.jar,unitName=cal
            18:15:56,265 INFO [EJB3Deployer] Deployed: file:/C:/Sw/jboss-4.0.4RC1/server/de
            fault/tmp/deploy/tmp27999ejb3-deploy-1.0.ear-contents/ejb3-app-1.0-SNAPSHOT.jar
            18:15:56,265 INFO [TomcatDeployer] deploy, ctxPath=/web, warUrl=.../tmp/deploy/
            tmp27999ejb3-deploy-1.0.ear-contents/ejb3-web-exp.war/
            18:15:56,406 INFO [EARDeployer] Started J2EE application: file:/C:/Sw/jboss-4.0
            .4RC1/server/default/deploy/ejb3-deploy-1.0.ear
            18:15:56,421 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

            --- MBeans waiting for other MBeans ---
            ObjectName: persistence.units:ear=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPS
            HOT.jar.jar,unitName=cal
            State: FAILED
            Reason: java.lang.reflect.InvocationTargetException
            I Depend On:
            jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
            Depends On Me:
            jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.ja
            r,name=CalculatorBean
            jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.ja
            r,name=SessionFacadeBean

            ObjectName: jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNA
            PSHOT.jar,name=CalculatorBean
            State: NOTYETINSTALLED
            I Depend On:
            persistence.units:ear=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.
            jar,unitName=cal

            ObjectName: jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNA
            PSHOT.jar,name=SessionFacadeBean
            State: NOTYETINSTALLED
            I Depend On:
            persistence.units:ear=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPSHOT.jar.
            jar,unitName=cal

            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: persistence.units:ear=ejb3-deploy-1.0.ear.ear,jar=ejb3-app-1.0-SNAPS
            HOT.jar.jar,unitName=cal
            State: FAILED
            Reason: java.lang.reflect.InvocationTargetException
            I Depend On:
            jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
            Depends On Me:
            jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.ja
            r,name=CalculatorBean
            jboss.j2ee:service=EJB3,ear=ejb3-deploy-1.0.ear,jar=ejb3-app-1.0-SNAPSHOT.ja
            r,name=SessionFacadeBean

            *******************
            persistence.xml
            ******************
            <!-- Persistence file for EJB3 application -->

            <persistence-unit name="cal">
            <jta-data-source>java:/DefaultDS</jta-data-source>



            </persistence-unit>


            ***********
            EJB code that calls persistenceManager
            **************
            public class CalculatorBean implements Calculator,java.io.Serializable{

            @PersistenceContext //(unitName="cal")
            EntityManager em;


            public void addFund (String name, double growthrate) {
            System.err.println("..CalculatorBean.persisting JobApplication..");

            Fund fund = new Fund (name, growthrate);
            em.persist (fund);
            }


            What's wrong this time?
            I am NOT deploying with ejb-jar.xml, since i am letting jboss figure out beans.It worked on jboss4.0.3sp1....

            could you helpme yet again?

            thanks in advance and regards
            marco

            • 3. Re: problem deploying EJB3 In JB4.0.4 / solved
              Marco Novice

              hello,
              i solved problems, it was my fault
              looks like annotations have changed between 4.0.3 and 4.0.4 for ejb3...
              everything looks ok now

              regards
              marco

              • 4. Re: problem deploying EJB3 In JB4.0.4
                Tim Romanowski Newbie

                MmarcoM, out of curiousity, which annotations were causing your particular problems?

                • 5. Re: problem deploying EJB3 In JB4.0.4
                  Peter Goldstein Newbie

                  From the stack trace it would appear that he needed to change 'queryString' to 'query' in @NamedQuery

                  "Caused by: java.lang.annotation.IncompleteAnnotationException: javax.persistence.NamedQuery missing element query"

                  --Peter