JBoss 4.0.3, EJB3 and EJB3 Trailblazer problems
raistlinmolina Oct 7, 2005 7:07 AMHello, 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