Hi; i had the exception: anonymous wrote : 12:39:31,187 INFO [STDOUT] Message Driven Bean got message org.jboss.mq.SpyObjectMessage { | Header { | jmsDestination : QUEUE.BBkEvtMgrQueue | jmsDeliveryMode : 2 | jmsExpiration : 0 | jmsPriority : 4 | jmsMessageID : ID:13-10960223709261 | jmsTimeStamp : 1096022370926 | jmsCorrelationID: null | jmsReplyTo : null | jmsType : null | jmsRedelivered : true | jmsProperties : {JMS_JBOSS_REDELIVERY_COUNT=5} | jmsPropReadWrite: false | msgReadOnly : true | producerClientId: ID:13 | } | } | 12:39:31,187 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException, causedBy: | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:632) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:205) | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:51) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319) | at org.jboss.ejb.Container.invoke(Container.java:743) | 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:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97) | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90) | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53) | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) | at $Proxy161.create(Unknown Source) | at de.danet.an.workflow.ejbs.client.StandardWorkflowServiceFactory.newWorkflowService(StandardWorkflowServiceFactory.java:206) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:156) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:534) | 12:39:31,197 INFO [STDOUT] [StandardWorkflowServiceFactory,ERROR] Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException; nested exception is: | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | javax.transaction.TransactionRolledbackException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException; nested exception is: | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:214) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319) | at org.jboss.ejb.Container.invoke(Container.java:743) | 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:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97) | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90) | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53) | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) | at $Proxy161.create(Unknown Source) | at de.danet.an.workflow.ejbs.client.StandardWorkflowServiceFactory.newWorkflowService(StandardWorkflowServiceFactory.java:206) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:156) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:534) | Caused by: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:632) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:205) | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:51) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) | ... 51 more | 12:39:31,197 ERROR [BbkCmdRcvBean] com.bbk.evtmgr.ejbs.BbkCmdRcvBean | de.danet.an.workflow.api.FactoryConfigurationError: Cannot create WorkflowEngineEJB: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException; nested exception is: | javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine de.danet.an.workflow.ejbs.WorkflowEngineHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException | at de.danet.an.workflow.ejbs.client.StandardWorkflowServiceFactory.newWorkflowService(StandardWorkflowServiceFactory.java:220) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:156) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:534) | 12:39:31,197 INFO [STDOUT] Finishing onMessage
Now it seems to me that i solved it by inserting in the file standardjboss.xml this string: anonymous wrote : <!--<interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor--> | <interceptor call-by-value="false">org.jboss.invocation.ByValueInvokerInterceptor But by doing so i have the classic exception principal=null; i post here this exception: anonymous wrote : 13:57:57,574 INFO [STDOUT] Message Driven Bean got message org.jboss.mq.SpyObjectMessage { | Header { | jmsDestination : QUEUE.BBkEvtMgrQueue | jmsDeliveryMode : 2 | jmsExpiration : 0 | jmsPriority : 4 | jmsMessageID : ID:7-10964590775341 | jmsTimeStamp : 1096459077534 | jmsCorrelationID: null | jmsReplyTo : null | jmsType : null | jmsRedelivered : false | jmsProperties : {} | jmsPropReadWrite: false | msgReadOnly : true | producerClientId: ID:7 | } | } | 13:57:57,874 ERROR [SecurityInterceptor] Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | 13:57:57,914 ERROR [LogInterceptor] EJBException, causedBy: | java.lang.SecurityException: Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:229) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:83) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319) | at org.jboss.ejb.Container.invoke(Container.java:743) | 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:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360) | 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:324) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) | at sun.rmi.transport.Transport$1.run(Transport.java:148) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:144) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:534) | 13:57:57,954 INFO [STDOUT] [EJBUtil,WARN] Exception in $Proxy146.create(): | java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: | java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) | at sun.rmi.transport.Transport$1.run(Transport.java:148) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:144) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:534) | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) | at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) | at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) | at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135) | at org.jboss.invocation.ByValueInvokerInterceptor.invoke(ByValueInvokerInterceptor.java:62) | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53) | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) | at $Proxy146.create(Unknown Source) | 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:324) | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:371) | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:345) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.createNewWfService(BbkCmdRcvBean.java:205) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:167) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | Caused by: java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319) | at org.jboss.ejb.Container.invoke(Container.java:743) | 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:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360) | 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:324) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) | at sun.rmi.transport.Transport$1.run(Transport.java:148) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:144) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | ... 1 more | Caused by: javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:230) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:83) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | ... 25 more | 13:57:57,954 INFO [STDOUT] [EJBUtil,WARN] Unwrapped exception is: | java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: | java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) | at sun.rmi.transport.Transport$1.run(Transport.java:148) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:144) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:534) | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) | at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) | at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) | at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135) | at org.jboss.invocation.ByValueInvokerInterceptor.invoke(ByValueInvokerInterceptor.java:62) | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53) | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173) | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) | at $Proxy146.create(Unknown Source) | 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:324) | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:371) | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:345) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.createNewWfService(BbkCmdRcvBean.java:205) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:167) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | Caused by: java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:347) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319) | at org.jboss.ejb.Container.invoke(Container.java:743) | 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:324) | at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360) | 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:324) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) | at sun.rmi.transport.Transport$1.run(Transport.java:148) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:144) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | ... 1 more | Caused by: javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:230) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:83) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) | ... 25 more | 13:57:57,954 ERROR [BbkCmdRcvBean] com.bbk.evtmgr.ejbs.BbkCmdRcvBean | de.danet.an.util.ResourceNotAvailableException: RemoteException occurred in server thread; nested exception is: | java.rmi.ServerException: EJBException:; nested exception is: | javax.ejb.EJBException: checkSecurityAssociation; CausedByException is: | Insufficient method permissions, principal=null, method=create, interface=HOME, requiredRoles=[StaffManagementRole_0], principalRoles=null | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:388) | at de.danet.an.util.EJBUtil.createSession(EJBUtil.java:345) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.createNewWfService(BbkCmdRcvBean.java:205) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:167) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | 13:57:57,954 ERROR [BbkCmdRcvBean] com.bbk.evtmgr.ejbs.BbkCmdRcvBean | java.lang.IllegalArgumentException: WorkflowService may not be null. | at com.bbk.platform.wfx.DefaultWfxProxy.(DefaultWfxProxy.java:99) | at com.bbk.platform.wfx.DefaultWfxProxy.(DefaultWfxProxy.java:69) | at com.bbk.evtmgr.ejbs.BbkCmdRcvBean.onMessage(BbkCmdRcvBean.java:167) | 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:324) | at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) | at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:914) | at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1208) | at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276) | at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871) | at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) | at org.jboss.mq.SpySession.run(SpySession.java:347) | at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200) | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:534) | 13:57:57,954 INFO [STDOUT] Finishing onMessage My MDB code is: anonymous wrote : import java.rmi.RemoteException; | import java.util.HashMap; | import java.util.Hashtable; | import java.util.Map; | | import javax.ejb.MessageDrivenBean; | import javax.jms.JMSException; | import javax.jms.MessageListener; | import javax.jms.ObjectMessage; | import javax.naming.InitialContext; | import javax.naming.NamingException; | | import org.apache.log4j.Logger; | | import com.bbk.platform.exception.WfxInvalidCommandException; | import com.bbk.platform.exception.WfxNotExecutedCommandException; | import com.bbk.platform.model.WfxCommand; | import com.bbk.platform.wfx.DefaultWfxProxy; | | import de.danet.an.util.EJBUtil; | import de.danet.an.util.ResourceNotAvailableException; | import de.danet.an.workflow.api.FactoryConfigurationError; | import de.danet.an.workflow.api.WorkflowService; | //import de.danet.an.workflow.api.WorkflowServiceFactory; | import de.danet.an.workflow.ejbs.WorkflowEngine; | import de.danet.an.workflow.ejbs.WorkflowEngineHome; | import de.danet.an.workflow.ejbs.client.StandardWorkflowService; | | /** | * | * <!-- begin-user-doc --> You can insert your documentation for 'BbkCmdRcvBean'. <!-- end-user-doc --> * | <!-- begin-lomboz-definition --> | <?xml version="1.0" encoding="UTF-8"?> | <lomboz:EJB xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:lomboz="http://lomboz.objectlearn.com/xml/lomboz"> | <lomboz:message-driven> | <lomboz:messageDrivenEjb> | <j2ee:display-name>BbkCmdRcvBean</j2ee:display-name> | <j2ee:ejb-name>BbkCmdRcv</j2ee:ejb-name> | <j2ee:ejb-class>com.bbk.evtmgr.ejbs.BbkCmdRcvBean</j2ee:ejb-class> | <j2ee:transaction-type>Container</j2ee:transaction-type> | <j2ee:message-destination-type>javax.jms.Queue</j2ee:message-destination-type> | </lomboz:messageDrivenEjb> | <lomboz:messageDestination> | <j2ee:message-destination-name>queue/BBkEvtMgrQueue</j2ee:message-destination-name> | </lomboz:messageDestination> | </lomboz:message-driven> | </lomboz:EJB> | <!-- end-lomboz-definition --> | * | * | * <!-- begin-xdoclet-definition --> | * @ejb.bean name="BbkCmdRcvBean" | * acknowledge-mode="Auto-acknowledge" | * destination-type="javax.jms.Queue" | * transaction-type="Container" | * | *-- | * This is needed for JOnAS. | * If you are not using JOnAS you can safely remove the tags below. | * @jonas.bean ejb-name="BbkCmdRcvBean" | * jndi-name="BbkCmdRcv" | * @jonas.message-driven-destination jndi-name="queue/BBkEvtMgrQueue" | * | *-- | * | *-- | * This is needed for JBOSS. | * If you are not using JBOSS you can safely remove the tags below. | * @jboss.destination-jndi-name name="queue/BBkEvtMgrQueue" | * | *-- | * <!-- end-xdoclet-definition --> | * @generated | **/ | public class BbkCmdRcvBean implements MessageDrivenBean, MessageListener { | | | private String module = BbkCmdRcvBean.class.getName(); | | private Logger log = Logger.getLogger( module ); | /** | * <!-- begin-user-doc --> | * <!-- end-user-doc --> | * The context for the message-driven bean, set by the EJB container. | * @generated | */ | private javax.ejb.MessageDrivenContext messageContext = null; | | /** | * Required method for container to set context. | * @generated | */ | public void setMessageDrivenContext( | javax.ejb.MessageDrivenContext messageContext) | throws javax.ejb.EJBException { | this.messageContext = messageContext; | if( log.isDebugEnabled() ){ | | log.debug( "Settato MessageDrivenBeanContext Principal: " ); | } | } | | /** | * Required creation method for message-driven beans. | * | * <!-- begin-user-doc --> | * <!-- end-user-doc --> | * | * <!-- begin-xdoclet-definition --> | * @ejb.create-method | * <!-- end-xdoclet-definition --> | * @generated | */ | public void ejbCreate() { | //no specific action required for message-driven beans | } | | /** | * Required removal method for message-driven beans. | * <!-- begin-user-doc --> | * <!-- end-user-doc --> | * @generated | */ | public void ejbRemove() { | messageContext = null; | } | | /** | * This method implements the business logic for the EJB. | * | * Make sure that the business logic accounts for asynchronous message processing. | * For example, it cannot be assumed that the EJB receives messages in the order they were | * sent by the client. Instance pooling within the container means that messages are not | * received or processed in a sequential order, although individual onMessage() calls to | * a given message-driven bean instance are serialized. | * | * The onMessage() method is required, and must take a single parameter | * of type javax.jms.Message. The throws clause (if used) must not include an application | * exception. Must not be declared as final or static. | * <!-- begin-user-doc --> | * <!-- end-user-doc --> | * @generated | */ | public void onMessage(javax.jms.Message message) { | | System.out.println("Message Driven Bean got message " + message); | if( log.isDebugEnabled() ){ | | log.debug( "on Message method in class: "+ module.toUpperCase()+ " Creating workflow engine" ); | } | try { | | WfxCommand cmd = ( WfxCommand ) ( ( ( ObjectMessage )( message ) ).getObject() ); | if( log.isDebugEnabled() ){ | | log.debug( "Received cmd: "+ cmd.toString() ); | } | | DefaultWfxProxy theProxyServer = new DefaultWfxProxy( createNewWfService() ); | theProxyServer.sendCommand( cmd ); | | } catch (JMSException e) { | | log.error( module, e ); | } catch (RemoteException e) { | | log.error( module, e ); | } catch (FactoryConfigurationError e) { | | log.error( module, e ); | } catch (WfxInvalidCommandException e) { | | log.error( module, e ); | } catch (WfxNotExecutedCommandException e) { | | log.error( module, e ); | } catch (Exception e) { | | log.error( module, e ); | } | System.out.println( "Finishing onMessage" ); | } | | private WorkflowService createNewWfService(){ | | WorkflowEngine wfE = null; | Hashtable env = null; | InitialContext context = null; | Map recoveryProp = new HashMap(); | WorkflowService wfService = null; | try { | | if( log.isDebugEnabled() ){ | | log.debug( "Creating new Wfe" ); | } | wfE = ( WorkflowEngine )( EJBUtil.createSession( WorkflowEngineHome.class, "java:comp/env/ejb/WorkflowEngine" ) ); | if( log.isDebugEnabled() ){ | | log.debug( "Creating new IntialContext" ); | } | context = new InitialContext(); | recoveryProp.put( "javax.naming.InitialContext.Environment", context ); | if( log.isDebugEnabled() ){ | | log.debug( "Creating new WorkflowService" ); | } | wfService = new StandardWorkflowService( recoveryProp, context, wfE ); | } catch (ResourceNotAvailableException e1) { | log.error( module, e1 ); | } catch (IllegalArgumentException e1) { | log.error( module, e1 ); | }catch (NamingException e) { | log.error( module, e ); | } | if( log.isDebugEnabled() ){ | | log.debug( "Going out from createNeWfService method" ); | } | return wfService; | } | } As you can see it's nothing particular...; my ejb-jar.xml is this one: anonymous wrote : <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> | | <ejb-jar > | | <![CDATA[No Description.]]> | <display-name>Generated by XDoclet</display-name> | | <enterprise-beans> | | <!-- Session Beans --> | <!-- | To add session beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called session-beans.xml that contains | the markup for those beans. | --> | | <!-- Entity Beans --> | <!-- | To add entity beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called entity-beans.xml that contains | the markup for those beans. | --> | | <!-- Message Driven Beans --> | <message-driven > | <![CDATA[<!-- begin-user-doc --> You can insert your documentation for 'BbkCmdRcvBean'.]]> | | <ejb-name>BbkCmdRcvBean</ejb-name> | | <ejb-class>com.bbk.evtmgr.ejbs.BbkCmdRcvBean</ejb-class> | | <transaction-type>Container</transaction-type> | <acknowledge-mode>Auto-acknowledge</acknowledge-mode> | <message-driven-destination> | <destination-type>javax.jms.Queue</destination-type> | </message-driven-destination> | | <ejb-ref> | <ejb-ref-name>ejb/WorkflowEngine</ejb-ref-name> | <ejb-ref-type>Session</ejb-ref-type> | de.danet.an.workflow.ejbs.WorkflowEngineHome | de.danet.an.workflow.ejbs.WorkflowEngine | <security-identity> | <run-as> | <role-name>StaffManagementRole_0</role-name> | </run-as> | </security-identity> | </ejb-ref> | | <security-identity> | <run-as> | <role-name>StaffManagementRole_0</role-name> | </run-as> | </security-identity> | </message-driven> | | <!-- | To add message driven beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called message-driven-beans.xml that contains | the <message-driven></message-driven> markup for those beans. | --> | | </enterprise-beans> | | <!-- Relationships --> | | <!-- Assembly Descriptor --> | <assembly-descriptor > | <!-- | To add additional assembly descriptor info here, add a file to your | XDoclet merge directory called assembly-descriptor.xml that contains | the <assembly-descriptor></assembly-descriptor> markup. | --> | <security-role> | <![CDATA[description not supported yet by ejbdoclet]]> | <role-name>StaffManagementRole_0</role-name> | </security-role> | | <method-permission > | <![CDATA[description not supported yet by ejbdoclet]]> | <role-name>StaffManagementRole_0</role-name> | | <![CDATA[description not supported yet by ejbdoclet]]> | <ejb-name>BbkCmdRcvBean</ejb-name> | <method-name>*</method-name> | | </method-permission> | <!-- finder permissions --> | | <!-- transactions --> | <container-transaction > | | <ejb-name>BbkCmdRcvBean</ejb-name> | <method-name>*</method-name> | | <trans-attribute>Required</trans-attribute> | </container-transaction> | <!-- finder transactions --> | </assembly-descriptor> | </ejb-jar> while my jboss.xml is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd"> anonymous wrote : | | <!--<unauthenticated-principal>nobody</unauthenticated-principal>--> | <security-domain>java:/jaas/danetworkflow-ia</security-domain> | | <enterprise-beans> | | <!-- | To add beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called jboss-beans.xml that contains | the , and <message-driven></message-driven> | markup for those beans. | --> | | <message-driven> | <ejb-name>BbkCmdRcvBean</ejb-name> | <destination-jndi-name>queue/BBkEvtMgrQueue</destination-jndi-name> | <ejb-ref> | <ejb-ref-name>ejb/WorkflowEngine</ejb-ref-name> | <jndi-name>jnp://127.0.0.1:1099/de.danet.an.workflow.Engine</jndi-name> | </ejb-ref> | </message-driven> | </enterprise-beans> | | <resource-managers> | </resource-managers> | | Can anyone tell me why i have this error? I know that MDB have no caller, i think it's this the problem; if so... how can i pass the right role to workflow ejb? Thanks for your help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849854#3849854 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849854 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user