10 Replies Latest reply on Feb 6, 2006 12:04 PM by dtangiwon

    JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems

    raistlinmolina

      Hello, I just downloaded JBoss 4.0.3 and began to try the trailblazer.

      I deployed it as the documentation says and I'm having some problems.

      I've tried the following platforms with exactly the same results (I put them below):

      FreeBSD 6.0 beta5 with jdk 1.5_04 (Home)
      Linux Fedora Core 4 with jdk 1.5._04 (work)

      First I tired with the jar installer as it seemed more straightforward, when it failed I tried with the tar.gz and the EJB3 module, I got the same results.

      Then, at home I tried in my laptop, a FreeBSD6.0beta5 with java 1.5 and got exactly the same results.

      I haven't tried in windows, I have a Desktop at home with Windows 2003, maybe I'll Give it a try but I like to work preferably on xBSD machines or linux machines, so the Windows is not a solution for me, in fact in the desktop I have Windows and FreeBSD.

      I read something about IPv6 but I had that problem when running apps with jdk1.4, with 1.5 that problem doesn't arise (or at least I think so)

      I copy the trace when it begins to fail, until these lines the trace seems ok.

      thanks in advance.

      12:48:05,290 INFO [Configuration] processing extends queue
      12:48:05,291 INFO [Configuration] processing collection mappings
      12:48:05,291 INFO [Configuration] processing association property references
      12:48:05,291 INFO [Configuration] processing foreign key constraints
      12:48:05,293 INFO [Configuration] processing extends queue
      12:48:05,293 INFO [Configuration] processing collection mappings
      12:48:05,293 INFO [Configuration] processing association property references
      12:48:05,293 INFO [Configuration] processing foreign key constraints
      12:48:05,295 INFO [SchemaExport] Running hbm2ddl schema export
      12:48:05,300 INFO [SchemaExport] exporting generated schema to database
      12:48:05,304 ERROR [SchemaExport] Unsuccessful: create table investor (id integer generated by default as identity (start with 1), name varchar(255), end integer not null, start integer not null, primary key (id))
      12:48:05,305 ERROR [SchemaExport] Unexpected token: END in statement [create table investor (id integer generated by default as identity (start with 1), name varchar(255), end]
      12:48:05,307 ERROR [SchemaExport] Unsuccessful: alter table record add constraint FKC8466C5144D58D28 foreign key (investor_id) references investor
      12:48:05,307 ERROR [SchemaExport] Table not found in statement [alter table record add constraint FKC8466C5144D58D28 foreign key (investor_id) references investor]
      12:48:05,308 INFO [SchemaExport] schema export complete
      12:48:05,312 INFO [Configuration] processing extends queue
      12:48:05,312 INFO [Configuration] processing collection mappings
      12:48:05,313 INFO [Configuration] processing association property references
      12:48:05,313 INFO [Configuration] processing foreign key constraints
      12:48:05,314 INFO [Configuration] processing extends queue
      12:48:05,314 INFO [Configuration] processing collection mappings
      12:48:05,314 INFO [Configuration] processing association property references
      12:48:05,315 INFO [Configuration] processing foreign key constraints
      12:48:05,319 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      12:48:05,323 INFO [SessionFactoryImpl] Checking 0 named queries
      12:48:05,325 INFO [Ejb3Deployment] Create EntityManager with JNDI name: cal
      12:48:05,411 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      12:48:05,412 INFO [Ejb3Deployment] EJB3 deployment time took: 4042
      12:48:05,621 INFO [ProxyDeployer] no declared remote bindings for : trail.apptrans.CalculatorBean
      12:48:06,156 INFO [ProxyDeployer] no declared remote bindings for : trail.entity.basic.CalculatorBean
      12:48:06,284 INFO [ProxyDeployer] no declared remote bindings for : trail.entity.query.CalculatorBean
      12:48:06,350 INFO [ProxyDeployer] no declared remote bindings for : trail.entity.update.CalculatorBean
      12:48:07,072 WARN [MDB] Could not find the queue destination-jndi-name=queue/injection
      12:48:07,073 WARN [MDB] destination not found: queue/injection reason: javax.naming.NameNotFoundException: injection not bound
      12:48:07,074 WARN [MDB] creating a new temporary destination: queue/injection
      12:48:07,146 INFO [injection] Bound to JNDI name: queue/injection
      12:48:07,149 INFO [MDB] JNDI Hashtable: null
      12:48:07,326 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
      javax.naming.NameNotFoundException: queue not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:255)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at org.jboss.ejb3.injection.ResourceHandler.loadFieldInjectors(ResourceHandler.java:182)
       at org.jboss.ejb3.injection.ResourceHandler.loadInjectors(ResourceHandler.java:125)
       at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:394)
       at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:330)
       at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:283)
       at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:48)
       at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:63)
       at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManager.java:93)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at sun.reflect.GeneratedMethodAccessor4.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.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at sun.reflect.GeneratedMethodAccessor6.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.server.Invocation.invoke(Invocation.java:72)
       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 $Proxy56.start(Unknown Source)
       at org.jboss.ejb3.Ejb3JmxDeployment.start(Ejb3JmxDeployment.java:258)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:39)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at sun.reflect.GeneratedMethodAccessor4.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.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at sun.reflect.GeneratedMethodAccessor6.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.server.Invocation.invoke(Invocation.java:72)
       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 $Proxy10.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:228)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.server.Invocation.invoke(Invocation.java:72)
       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 $Proxy11.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
       at sun.reflect.GeneratedMethodAccessor8.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 $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.server.Invocation.invoke(Invocation.java:72)
       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 $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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 $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
       at org.jboss.Main.boot(Main.java:187)
       at org.jboss.Main$1.run(Main.java:438)
       at java.lang.Thread.run(Thread.java:595)
      12:48:07,432 INFO [ProxyDeployer] no declared remote bindings for : trail.interceptor.CalculatorBean
      12:48:07,509 INFO [ProxyDeployer] no declared remote bindings for : trail.lifecycle.CalculatorBean
      12:48:07,585 WARN [MDB] Could not find the queue destination-jndi-name=queue/mdb
      12:48:07,585 WARN [MDB] destination not found: queue/mdb reason: javax.naming.NameNotFoundException: mdb not bound
      12:48:07,586 WARN [MDB] creating a new temporary destination: queue/mdb
      12:48:07,665 INFO [mdb] Bound to JNDI name: queue/mdb
      12:48:07,666 INFO [MDB] JNDI Hashtable: null
      12:48:07,754 WARN [ConsumerContainer] Could not find the queue destination-jndi-name=queue/mdpojo
      12:48:07,755 WARN [ConsumerContainer] destination not found: queue/mdpojo reason: javax.naming.NameNotFoundException: mdpojo not bound
      12:48:07,755 WARN [ConsumerContainer] creating a new temporary destination: queue/mdpojo
      12:48:07,846 INFO [mdpojo] Bound to JNDI name: queue/mdpojo
      12:48:08,236 INFO [ConsumerContainer] Producer: trail.mdpojo.Calculator
      12:48:08,473 INFO [ProxyDeployer] no declared remote bindings for : trail.security.CalculatorBean
      12:48:08,545 INFO [ProxyDeployer] no declared remote bindings for : trail.sfsb.CalculatorBean
      12:48:08,657 INFO [ProxyDeployer] no declared remote bindings for : trail.slsb.CalculatorBean
      12:48:08,726 INFO [ProxyDeployer] no declared remote bindings for : trail.slsb.CalculatorBean2
      12:48:08,727 INFO [ProxyDeployer] there is remote interfaces for trail.slsb.CalculatorBean2
      12:48:08,727 INFO [ProxyDeployer] default remote binding has jndiName of trail.slsb.RemoteCalculator
      12:48:09,076 INFO [ProxyDeployer] no declared remote bindings for : trail.transaction.CalculatorBean
      12:48:09,083 INFO [ProxyDeployer] no declared remote bindings for : trail.jmx.CalculatorMBean
      12:48:09,209 INFO [STDOUT] Calculator - Creating
      12:48:09,211 INFO [EJB3Deployer] Deployed: file:/opt/jboss-4.0.3/server/default/tmp/deploy/tmp17922EJB3Trail.ear-contents/business.ejb3
      12:48:09,212 INFO [EJB3Deployer] Deployed: file:/opt/jboss-4.0.3/server/default/tmp/deploy/tmp17922EJB3Trail.ear-contents/entities.par
      12:48:09,308 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp17922EJB3Trail.ear-contents/web.war/
      12:48:09,654 INFO [EARDeployer] Started J2EE application: file:/opt/jboss-4.0.3/server/default/deploy/EJB3Trail.ear
      12:48:09,663 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
       State: FAILED
       Reason: javax.naming.NameNotFoundException: queue not bound
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
       State: FAILED
       Reason: javax.naming.NameNotFoundException: queue not bound
      
      
      12:48:09,798 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      12:48:10,169 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      12:48:10,238 INFO [JkMain] Jk running ID=0 time=0/92 config=null
      12:48:10,314 INFO [Server] JBoss (MX MicroKernel) [4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042341)] Started in 1m:15s:442ms
      


        • 1. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
          raistlinmolina

          Umm, I'm beggining to see what happens, lokk at this lines

          12:48:05,304 ERROR [SchemaExport] Unsuccessful: create table investor (id integer generated by defau
          lt as identity (start with 1), name varchar(255), end integer not null, start integer not null, prim
          ary key (id))
          12:48:05,305 ERROR [SchemaExport] Unexpected token: END in statement [create table investor (id inte
          ger generated by default as identity (start with 1), name varchar(255), end]
          12:48:05,307 ERROR [SchemaExport] Unsuccessful: alter table record add constraint FKC8466C5144D58D28
           foreign key (investor_id) references investor
          12:48:05,307 ERROR [SchemaExport] Table not found in statement
          


          The second trace says:
          Unexpected token: END in statement

          If you take a look at the sql statement we can see that one of the fields is named "end", I think that this is the cause, it's interpeted as a clause and hence it fails.

          What I don't know is how the people at JBoss manages to run the application, maybe the code they have to download is not the same as the one they are using.


          • 2. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
            spaquet

            I used to have it works with JBOSS AS 3.0.3 RC but since using the 2005 10 04 release of JB AS I am facing the same problem.
            My guess is that people at JBOSS manage to make it works using a previous version of JBOSS AS with ejb3 container (previous RC or 4.0.2 + ejb3).
            I'm trying to get the things work with current 4.0.3 I downloaded the ejb3 and will try the following things :

            1. Install JBOSS AS without ejb3
            2. unzip the ejb3 at the right place
            3. Launch everything.

            For your information the other trails do not seem to be affected. I run perfectly the DVD and IDE trails.

            • 3. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
              raistlinmolina

              Thanks.

              at least I have cnfirmed my guess.

              I was interested in EJB3 Trail as i'm about to develop one app and I wanted to use EJB 3.

              Anyway I'll begin oit with EJB 3, I thnik that the poblem arises for the issue I note aboe, so taking some care with the names you give to attributes should be enough to avoi it.

              Anyway, If I experience problems with the 4.0.3 release I'll follow your experience and swicht back to earlier vrsions until the issue get solved.

              • 4. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                spaquet

                I guess that the this trail has some errors in it, which are not an issue for previous version of JBoss AS. I applied different changes to my conf during the week end such as AS 4.0.3 Final all, ejb3 with or without applying EJB3 RC3. Nothing changed. I eventually ended up with the following error.

                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: jboss.j2ee:service=EJB3,name=trail.slsb.CalculatorBean2
                State: FAILED
                Reason: javax.naming.NameAlreadyBoundException

                ObjectName: jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
                State: FAILED
                Reason: java.lang.RuntimeException: You did not specify a @Resource.mappedName
                () on javax.sql.DataSource trail.injection.RecordManagerBean.myDb and there is n
                o binding for that enc name in XML

                However it does not impact dev. this just means you must have a internet connexion to see how things are done... The few things I developped by myself using ejb3 are working properly.

                Rgds,

                SP

                • 5. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                  raistlinmolina

                  Thanks for the response, indeed it's clear that there's some errors on the example that the previous versions bypass.

                  Thanks.

                  • 6. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                    hbovens

                    The two problems (the failing create table and the NameNotFoundException) are not related. I managed to fix the first problem by editing the class trail.entity.beans.Investor: I renamed the 'end' attribute (incl getter and setter) to 'theEnd' (any other name should work as well). It seems like 'end' has become a reserved word.

                    The second problem still remains, but now you can at least start the trailblazer... I don't know which part will be affected by this.

                    Herman

                    • 7. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                      akoltsov

                      The problem can be easily fixed by adding @Column ... annotation in front of the getEnd() function of trail.entity.beans.Investor bean.

                      @Column(name = "finish")
                       public int getEnd () {
                       return end;
                       }
                      


                      • 8. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                        spaquet

                        Got a new solution: just install Jboss 4.0.3.SP1
                        Do not touch anything (no EJB RC3 addition for example) and just enjoy the local EJB3Trail...

                        • 9. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                          dtangiwon

                          has any one had an answer to this problem?

                          I got the exactly the same problem.

                          Please help on this issue.

                          Thanks.

                          Dong

                          • 10. Re: JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
                            dtangiwon

                            Hello

                            I also installed EJB3/jboss4.0.3 and run the application for EJB3Tral.
                            I am getting the following 'WARNING' message.

                            can anyone tell me if the package EJB3Trail missed any configuration?

                            Thanks.

                            Youngle

                            [ProxyDeployer] no declared remote bindings for : trail.entity.update.CalculatorBean
                            08:21:50,166 WARN [MDB] Could not find the queue destination-jndi-name=queue/injection
                            08:21:50,166 WARN [MDB] destination not found: queue/injection reason: javax.naming.NameNotFoundException: injection not bound
                            08:21:50,166 WARN [MDB] creating a new temporary destination: queue/injection
                            08:21:50,175 INFO [injection] Bound to JNDI name: queue/injection
                            08:21:50,179 INFO [MDB] JNDI Hashtable: null
                            08:21:50,285 WARN [ResourceHandler] Unbound injected resource interface javax.sql.DataSource myDb
                            08:21:50,291 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
                            javax.naming.NameNotFoundException: queue not bound
                            at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
                            at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
                            at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
                            at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
                            at org.jnp.server.NamingServer.lookup(NamingServer.java:255)
                            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
                            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
                            at javax.naming.InitialContext.lookup(InitialContext.java:351)
                            at org.jboss.ejb3.injection.ResourceHandler.loadFieldInjectors(ResourceHandler.java:182)
                            at org.jboss.ejb3.injection.ResourceHandler.loadInjectors(ResourceHandler.java:125)
                            at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:394)
                            at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:330)
                            at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:283)
                            at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:48)
                            at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:63)
                            at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManager.java:93)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                            at sun.reflect.GeneratedMethodAccessor4.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.server.Invocation.invoke(Invocation.java:72)
                            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                            at $Proxy0.start(Unknown Source)
                            at org.jboss.system.ServiceController.start(ServiceController.java:428)
                            at sun.reflect.GeneratedMethodAccessor7.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.server.Invocation.invoke(Invocation.java:72)
                            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 $Proxy63.start(Unknown Source)
                            at org.jboss.ejb3.Ejb3JmxDeployment.start(Ejb3JmxDeployment.java:258)
                            at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:39)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                            at sun.reflect.GeneratedMethodAccessor4.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.server.Invocation.invoke(Invocation.java:72)
                            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                            at $Proxy0.start(Unknown Source)
                            at org.jboss.system.ServiceController.start(ServiceController.java:428)
                            at sun.reflect.GeneratedMethodAccessor7.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.server.Invocation.invoke(Invocation.java:72)
                            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 $Proxy10.start(Unknown Source)
                            at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:228)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            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.server.Invocation.invoke(Invocation.java:72)
                            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 $Proxy11.start(Unknown Source)
                            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
                            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                            at sun.reflect.GeneratedMethodAccessor16.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 $Proxy6.deploy(Unknown Source)
                            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            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.server.Invocation.invoke(Invocation.java:72)
                            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                            at $Proxy0.start(Unknown Source)
                            at org.jboss.system.ServiceController.start(ServiceController.java:428)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            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.server.Invocation.invoke(Invocation.java:72)
                            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 $Proxy4.start(Unknown Source)
                            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
                            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                            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 $Proxy5.deploy(Unknown Source)
                            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
                            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
                            at org.jboss.Main.boot(Main.java:187)
                            at org.jboss.Main$1.run(Main.java:438)
                            at java.lang.Thread.run(Thread.java:595)
                            08:21:50,302 INFO [ProxyDeployer] no declared remote bindings for : trail.interceptor.CalculatorBean
                            08:21:50,326 INFO [ProxyDeployer] no declared remote bindings for : trail.lifecycle.CalculatorBean
                            08:21:50,347 WARN [MDB] Could not find the queue destination-jndi-name=queue/mdb
                            08:21:50,348 WARN [MDB] destination not found: queue/mdb reason: javax.naming.NameNotFoundException: mdb not bound
                            08:21:50,348 WARN [MDB] creating a new temporary destination: queue/mdb
                            08:21:50,368 INFO [mdb] Bound to JNDI name: queue/mdb
                            08:21:50,368 INFO [MDB] JNDI Hashtable: null
                            08:21:50,401 WARN [ConsumerContainer] Could not find the queue destination-jndi-name=queue/mdpojo
                            08:21:50,401 WARN [ConsumerContainer] destination not found: queue/mdpojo reason: javax.naming.NameNotFoundException: mdpojo not bound
                            08:21:50,401 WARN [ConsumerContainer] creating a new temporary destination: queue/mdpojo
                            08:21:50,416 INFO [mdpojo] Bound to JNDI name: queue/mdpojo
                            08:21:50,445 INFO [ConsumerContainer] Producer: trail.mdpojo.Calculator
                            08:21:50,515 INFO [ProxyDeployer] no declared remote bindings for : trail.security.CalculatorBean
                            08:21:50,531 INFO [ProxyDeployer] no declared remote bindings for : trail.sfsb.CalculatorBean
                            08:21:50,545 INFO [ProxyDeployer] no declared remote bindings for : trail.slsb.CalculatorBean
                            08:21:50,559 INFO [ProxyDeployer] no declared remote bindings for : trail.slsb.CalculatorBean2
                            08:21:50,560 INFO [ProxyDeployer] there is remote interfaces for trail.slsb.CalculatorBean2
                            08:21:50,560 INFO [ProxyDeployer] default remote binding has jndiName of trail.slsb.RemoteCalculator
                            08:21:50,583 INFO [ProxyDeployer] no declared remote bindings for : trail.transaction.CalculatorBean
                            08:21:50,593 INFO [ProxyDeployer] no declared remote bindings for : trail.jmx.CalculatorMBean
                            08:21:50,611 INFO [EJB3Deployer] Deployed: file:/home/dtang/jboss-4.0.3SP1/server/default/tmp/deploy/tmp15487EJB3Trail.ear-contents/business.ejb3
                            08:21:50,615 INFO [EJB3Deployer] Deployed: file:/home/dtang/jboss-4.0.3SP1/server/default/tmp/deploy/tmp15487EJB3Trail.ear-contents/entities.par
                            08:21:50,626 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp15487EJB3Trail.ear-contents/web.war/
                            08:21:50,787 INFO [EARDeployer] Started J2EE application: file:/home/dtang/jboss-4.0.3SP1/server/default/deploy/EJB3Trail.ear
                            08:21:50,789 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                            --- MBeans waiting for other MBeans ---
                            ObjectName: jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
                            State: FAILED
                            Reason: javax.naming.NameNotFoundException: queue not bound

                            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                            ObjectName: jboss.j2ee:service=EJB3,name=trail.injection.RecordManagerBean
                            State: FAILED
                            Reason: javax.naming.NameNotFoundException: queue not bound