[JBoss Getting Started Documentation] - Re: Trailblazer fails to start
by manemannen
I also tried to deploy the provided EJB3Trail.ear (that is without creating my own project and so on..). The same result. The queues that are problematic are: mdb, mdpojo, injection. The first error I get in the logs is the following (with some ok messages before that).
18:42:03,897 WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/injection
18:42:03,898 WARN [MessagingContainer] destination not found: queue/injection reason: javax.naming.NameNotFoundException: queue/injection
18:42:03,898 WARN [MessagingContainer] creating a new temporary destination: queue/injection
18:42:03,907 INFO [injection] Bound to JNDI name: queue/injection
18:42:03,929 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
18:42:03,929 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=EJB3Trail.ear,jar=beans.jar,name=TransCalculator,service=EJB3 with dependencies:
18:42:03,929 INFO [JmxKernelAbstraction] persistence.units:ear=EJB3Trail.ear,jar=beans.jar,unitName=ejb3trail
18:42:03,943 INFO [EJBContainer] STARTED EJB: trail.transaction.TransCalculator ejbName: TransCalculator
18:42:03,950 INFO [EJB3Deployer] Deployed: file:/home/magnus/jboss-4.2.2.GA/server/default/tmp/deploy/tmp23368EJB3Trail.ear-contents/beans.jar
18:42:03,980 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp23368EJB3Trail.ear-contents/web-exp.war/
18:42:04,010 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@78b973(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)d4c5a0 destination=queue/mdpojo isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: mdpojo
at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:156)
at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:643)
at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:177)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:188)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
at java.lang.Thread.run(Thread.java:619)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179873#4179873
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179873
17 years, 6 months
[Beginners Corner] - Re: Schedular MBean & Injection
by aslocal
"PeterJ" wrote : If the EJB is already deployed when the service runs, then it sounds like this could be a bug. You should probably file a JIRA.
Thanks. I did open up a support case with Redhat. Funny enough under 4.2.3 I get this error when starting:
09:35:03,980 ERROR [STDERR] java.lang.NullPointerException
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:49)
| 09:35:03,980 ERROR [STDERR] at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:87)
| 09:35:03,980 ERROR [STDERR] at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:112)
| 09:35:03,980 ERROR [STDERR] at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:107)
| 09:35:03,980 ERROR [STDERR] at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:65)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.injectDependencies(ServiceContainer.java:446)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:172)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 09:35:03,980 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 09:35:03,980 ERROR [STDERR] at $Proxy99.start(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 09:35:03,980 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 09:35:03,980 ERROR [STDERR] at $Proxy33.start(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 09:35:03,980 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 09:35:03,980 ERROR [STDERR] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 09:35:03,980 ERROR [STDERR] at $Proxy34.start(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:35:03,980 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 09:35:03,980 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 09:35:03,980 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| 09:35:03,980 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
Is there a way to wait for JNDI or something?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179871#4179871
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179871
17 years, 6 months
[JBoss Getting Started Documentation] - Re: Trailblazer fails to start
by manemannen
Ok I am using jboss 4.2.2.GA deployed on Ubuntu 8.04.1 (Linux version 2.6.24-19-generic).
anonymous wrote : 1) Another MDB is using the same queue name, in which case perhaps only that MDB has read access to the queue.
I don't think it could be this problem. The beans in the TrailBlazer demo tries to connect to many different queues - all have the same problem.
anonymous wrote : 2) A *-service.xml configuration file has that queue name declared, in which case the security settings in configuration file are being applied.
Same as above, there are many queue and the beans can not connect.
I will download 4.2.3 and reinstall and do it all over again to see if the problem persists or it was just a fluke. Meanwhile, If you get other ideas on what the problem could be please don't hesitate to post.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179869#4179869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179869
17 years, 6 months
[Beginners Corner] - Re: Schedular MBean & Injection
by aslocal
"PeterJ" wrote : Services are started before EJBs, therefore the EJB is probably not ready at the time the code is run. You need to add a depends tag that references the BMean generated for the EJB. Something like this:
|
| <mbean ...>
| | <depends>jboss.j2ee:ear=xxx.ear,jar=xxx.jar,name=MyEjb,service=EJB3</depends>
| | </mbean>
|
| You can use the jmx console to look up the name for your ejb's mbean.
Hi Peter. Thanks for the response. The strange thing is the application server can be completely started and it still fails (for example setting the SchedulePeriod to 10000 will launch the method after it's completely started) It still works from the console however. It's almost as it's being launched from outside of the servers context or something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179866#4179866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179866
17 years, 6 months