[EJB/JBoss] - Whatôs this? ->
by lavh
Folks,
I have two EJB 3.0 applications running on Jboss 4.0.4, but in diferent machines.
The application A is client of application B and call the application B using EJB.
All worked correctly until...
I needed update the application B. Then, I changed the name of the ear from aplicationB-1.2.0.ear to
applicationB-1.4.0.
I stopped the application B, did the deploy of version 1.4.0 and started the server again.
After that, when application A call the appplication B, occurs the exception below:
Caused by: javax.ejb.EJBTransactionRolledbackException: java.lang.reflect.UndeclaredThrowableException
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:225)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy120.notifyPaymentFailed(Unknown Source)
at br.com.uol.backoffice.notification.jmx.impl.NotificationJMX.notifyPaymentFailed(NotificationJMX.java:32)
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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:199)
at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:167)
at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:168)
... 27 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy160.scheduleNotification(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:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
at $Proxy159.scheduleNotification(Unknown Source)
at
br.com.uol.backoffice.notification.business.impl.CreditCardNotificationBusinessImpl.notifyPaymentFailed(CreditCardNotificationBusinessImpl.java:117)
at br.com.uol.backoffice.notification.ejb.CreditCardNotificationServiceBean.notifyPaymentFailed(CreditCardNotificationServiceBean.java:46)
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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
... 71 more
Caused by: org.jboss.aop.NotFoundInDispatcherException: Object with oid:
jboss.j2ee:ear=applicationB-1.2.0.ear,jar=applicationB-ejb-1.2.0.jar,name=applicationBServiceBean,service=EJB3 was not found in the Dispatcher
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:85)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
... 94 more
If I restart application A the problem is solved but this is very bad!!!
The code of my application A doesn't known the version of the application B, then this references to the version are internal of container. The application A contains only a simple client of application B.
Does any one here have already got this problem? Is this a bug of Jboss 4.0.4 container?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143323#4143323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143323
18 years, 2 months
[Beginners Corner] - ClassLoader.getSystemResource() failing in a jar inside a wa
by neil1967
Hello,
JBoss newbie here. I have been handed a java web app to deploy on jboss 5.0.0.Beta4 with jdk 1.6.
In a class file inside a jar inside a war, the code calls ClassLoader.getSystemResource() to access a wsdl file. The wsdl file is copied into the jar file in the directory meta-inf/wsdl. Because of that, the call inside the class to the getSystemResource() method is passed the string passed "meta-inf/wsdl/filename.wsdl" but this fails to find the wsdl file. The war file containing the jar file is dropped into the server/default/deploy directory on jboss, and inside the war, the jar is in the WEB-INF/lib directory.
Here's what I tried:
1) changing where the wsdl gets copied to, setting it in the WEB-INF/lib directory where the jar is so that I just did ClassLoader.getSystemResource("filename.wsdl"). This doesn't work.
2) In the web.xml file that goes along with the web app, setting to the <JBOSS_HOME>/server/default/deploy directory, where the war file is. This doesn't work.
Any help would be great.
Thanks!!
Neil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143313#4143313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143313
18 years, 2 months
[EJB/JBoss] - SessionBeans referring each other locally
by rabbiaqaswar
Hello
I am using Enterprise Java Beans (EJB) 3.0 (jdk 1.5), the application serer is Jboss 4.2.2 GA.
In the application, there are two Stateless SessionBeans (BankSessionBean & UserSessionBean) in same jar file referring to same PersistenceContext. Both of these session beans have their local and remote interfaces. Now in BankSessionBean i am locally referring to UserSessionBean.
@EJB
| UserSessionBeanLocal userSessionBean;
and in UserSessionBean i am locally referring to BankSessionBean instead of remote lookup.
@EJB
| BankSessionBeanLocal bankSessionBean;
But when i deploy the jar file, it is not successfully deployed. Earlier i was only referring to UserSessionBean from BankSessionBean and the jar was deployed successfully.
What can I do to resolve this problem?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143310#4143310
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143310
18 years, 2 months