[EJB 3.0] New message: "Re: Error on deploy persistence unit"
by Jose M. M. M.
User development,
A new message was posted in the thread "Error on deploy persistence unit":
http://community.jboss.org/message/528791#528791
Author : Jose M. M. M.
Profile : http://community.jboss.org/people/jotremar
Message:
--------------------------------------------------------------
When I put ejbPU-ds.xml in deply folder, restart jboss and deploy the jar file, it run ok.
I see one problem. Datasource comercioDB is down always and i don't see how to put in up.
When i try to use this, it say:
Exception in thread "AWT-EventQueue-0" javax.ejb.EJBException: javax.persistence.TransactionRequiredException:
Exception Description: No transaction is currently active; nested exception is: javax.persistence.TransactionRequiredException:
Exception Description: No transaction is currently active
javax.persistence.TransactionRequiredException:
Exception Description: No transaction is currently active
at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:85)
at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:77)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:633)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.joinTransaction(EntityManagerImpl.java:663)
at org.jboss.jpa.deployment.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:188)
at org.jboss.jpa.tx.TransactionScopedEntityManager.getEntityManager(TransactionScopedEntityManager.java:258)
at org.jboss.jpa.tx.TransactionScopedEntityManager.createNamedQuery(TransactionScopedEntityManager.java:144)
at EJB.TiendaBean.getSecciones(TiendaBean.java:50)
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:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
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:597)
at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22545518.invoke(InvocationContextInterceptor_z_fillMethod_22545518.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22545518.invoke(InvocationContextInterceptor_z_setup_22545518.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
at org.jboss.remoting.Client.invoke(Client.java:1724)
at org.jboss.remoting.Client.invoke(Client.java:629)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy8.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy7.getSecciones(Unknown Source)
at demoejb.DemoejbView.jButton1ActionPerformed(DemoejbView.java:244)
at demoejb.DemoejbView.access$800(DemoejbView.java:27)
at demoejb.DemoejbView$4.actionPerformed(DemoejbView.java:130)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy8.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy7.getSecciones(Unknown Source)
at demoejb.DemoejbView.jButton1ActionPerformed(DemoejbView.java:244)
at demoejb.DemoejbView.access$800(DemoejbView.java:27)
at demoejb.DemoejbView$4.actionPerformed(DemoejbView.java:130)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528791#528791
14 years, 10 months
[jBPM] New message: "Re: BPMN 2.0 Service Task"
by David Geary
User development,
A new message was posted in the thread "BPMN 2.0 Service Task":
http://community.jboss.org/message/528790#528790
Author : David Geary
Profile : http://community.jboss.org/people/david_geary
Message:
--------------------------------------------------------------
Thanks for the reply - very useful, but Im still wondering is it in any way possible to wire in collaborating objects to the service task instance eg other service objects, remoting, messaging, database etc - I cant see much use for a standalone class to be constructed unless it comunicates with something else?
Or are these service tasks just supposed to execute some local logic in java eg performing a calculation and return the result? What would be a typical example?
>From what you said would I be correct in assuming there will at some point be support for the expression lanaguage to resolve bean references eg like in the current spring support in jpdl?
Thanks again
Dave
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528790#528790
14 years, 10 months
[EJB 3.0] New message: "Re: Entity Manager with BMT and Transaction Timeout"
by Alexander Hartner
User development,
A new message was posted in the thread "Entity Manager with BMT and Transaction Timeout":
http://community.jboss.org/message/528789#528789
Author : Alexander Hartner
Profile : http://community.jboss.org/people/ejb3workshop
Message:
--------------------------------------------------------------
This seemed to have resolved the problem although I don't understand at all why. It seems to suggest that the entity manager has some other timeout not determined by the JTA transaction. If this is the case where can I configure it other then inside my application. I know I can set the user transaction timeout via the deployment descriptor was well as suggested in the previous post, but ideally I would like to set it globally for the entire application server, so I don't have to modify the current version of my application.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528789#528789
14 years, 10 months
[JBoss Portal] New message: "Supporting multiple languages on portlet"
by Antony Ignatius
User development,
A new message was posted in the thread "Supporting multiple languages on portlet":
http://community.jboss.org/message/528787#528787
Author : Antony Ignatius
Profile : http://community.jboss.org/people/ignatan
Message:
--------------------------------------------------------------
Hi
I'm kind of new to portlet development and am trying to find the best way to support multiple languages on my portlet.
The end user(could be web apps trying to access the portlet over iframe and also other portlets) would be provided with seperate links for the different languages.My requirement is that the portlet should support these languages irrespective of the browser locale set.
This is what I tried but it doesnt seem to work:
In the portlet.xml I added the <supported-locale> tag for the various languages. Then, I tried to create different portal instance for each language. I added the a locale-value entry in the <preferences> of each instance like :
<preference>
<name>locale</name>
<value>es</value>
</preference>
Now, in the application code, (we use spring web flow ) in the initial set-up method, I set the locale in the sessionMap of Requestcontext .
This doesnt seem to work.
It would be great if anyone could help me on this. By the way, we dont use the CMS portlet.
Thanks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528787#528787
14 years, 10 months
[JCA] New message: "Re: How to reference an embedded JCA resource adapater"
by C G
User development,
A new message was posted in the thread "How to reference an embedded JCA resource adapater":
http://community.jboss.org/message/528751#528751
Author : C G
Profile : http://community.jboss.org/people/cgrf
Message:
--------------------------------------------------------------
> vickyk wrote:
>
> Well I understand that you have scoped EAR, so what you could do here is have multiple EAR's like plainear.ear and rarear.ear. Both of these ear's should be isolated and share the same CL, this can be controlled via the jboss-app.xml in EAR. The loader-repository entry in the plainear.ear/META-INF/jboss-app.xml and rarear.ear/META-INF/jboss-app.xml should have similar entry.
> You can give it a try and let us know if that sorts the issue.
Unfortunately, this did not really solve the issue for me. My main objective was to bundle the RAR file inside the EAR without having to hard-code the EAR's name anywhere. I still wasn't able to achieve this, although it might well be me still doing it wrong. Anyway, we now opted to deploy the RAR seprately after all. Thanks again for you support!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528751#528751
14 years, 10 months
[Javassist Development] New message: "Re: ScopedClassPoolRepositoryImpl and default ClassPool"
by Flavia Rainone
User development,
A new message was posted in the thread "ScopedClassPoolRepositoryImpl and default ClassPool":
http://community.jboss.org/message/528747#528747
Author : Flavia Rainone
Profile : http://community.jboss.org/people/flavia.rainone@jboss.com
Message:
--------------------------------------------------------------
> alesj wrote:
>
>
> > Now I'm open for suggestions on what should be the next step: to write a patch for Javassist; to do an alpha release of the new version and update depending projects (JBoss AOP and JBoss Reflection, besides deployers-vfs tests); or to do more refactoring and improve something that doesn't look ok.
> Whatever gets you back working on the Reflect+Javassist impl asap. ;-)
>
> Check if there are no regressions with dependening projects and perhaps create a new Alpha release.
>
> Like I said, we should try to get Reflect fully working on Javassist + Classpools asap,
> to actually see the whole picture: issues, benefits, bugz, optimizations, ...
> In order to speed up things, Kabir is gonna help you with this -- you just tell him where you need him the most.
Ok! I'm doing the alpha release and then I'm updating the depending projects with it.
After that, I'm going to port the changes to JBoss AOP trunk, as we agreed on before.
IMO, this porting and updating things is work for one person only. Kabir could help me by doing the implementation of the https://jira.jboss.org/jira/browse/JBREFLECT-5 that we are going to need. Without that, we won't be able to to see the whole picture, and that's the main piece that we are missing right now.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528747#528747
14 years, 10 months