[EJB3] - Re: Entity Manager with BMT and Transaction Timeout
by Mads Moelgaard Andersen
Mads Moelgaard Andersen [http://community.jboss.org/people/mda_dk] created the discussion
"Re: Entity Manager with BMT and Transaction Timeout"
To view the discussion, visit: http://community.jboss.org/message/575321#575321
--------------------------------------------------------------
Hi Alexander
Did you ever get an answer to your question?
I have been facing a similar problem. We have an MDB without transaction support that calls a SLSB with BMT. For a long time we've been struggling with the SLSB just seeming to stop execution without throwing any exceptions or otherwise indicating an error. The method called on the SLSB results in sql that last for more than an hour.
At first we had JDBC transactions handle the commit and it seemed to work for the sql but for some reason the SLSB just seemed to stop its execution. Then we read a post indicating that JDBC transacdtions weren't that reliable and this would certainly account for a driver deciding to close a connection without a warning. Consequently we switched to JTA
Althout we programatically set TransactionTimeout to zero, equalling no timeout; on commit we caught arjuna exception indicating the connection to be inactive. After fiddling with the global JTA and setting it to 7200 seconds the long running sql statement executes and commits without exceptions.
This strongly suggests that the global transaction timeout in jboss-service.xml not only sets the default timeout for all JTA transactions also sets the value as the upper limit for all JTA transactions, regardless of what has been programatically set.
There must be someone out there that knows the truth :) and I would very much like to know what's right and wrong to this matter.
Best regards
Mads M Andersen
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575321#575321]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[Beginner's Corner] - More JBoss-AS 5 clusters and more Apache Virtual Hosts
by Willem Noorduin
Willem Noorduin [http://community.jboss.org/people/willemnoorduin] created the discussion
"More JBoss-AS 5 clusters and more Apache Virtual Hosts"
To view the discussion, visit: http://community.jboss.org/message/575847#575847
--------------------------------------------------------------
: I have configured two JBoss5-AS clusters (cluster1 and cluster2), which are running on two (Linux) servers. Each cluster contains a number of instances
which i created on basis of the production instance (not the all instance).
When I setup a seperate Apache webserver with mod_jk, all is working perfectly. I have been reading about mod_cluster and want to implement it because
it is more versatile than mod_jk. I have successfully implement this for one named virtual host
<VirtualHost *:80>
ServerAdmin mailto:me@host.nl me(a)host.nl
DocumentRoot /content/www.test.nl/data
ServerName http://www.test.nl www.test.nl
ErrorLog logs/test-error_log
CustomLog logs logs/test-access_log combined
<Location /mcm>
SetHandler mod_cluster_manager
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName testcluster
ProxyPass / balancer://testcluster/
ProxyPassReverse / balancer://testcluster/
AdvertiseFrequency 10
AdvertiseGroup 239.255.100.100:60000
</VirtualHost>
(where there can be a type somewhere, because Paste doesn't seem to work here). The AdvertiseGroup address is the multicast address I started
cluster1 with (so for example ./run.sh -c cluster-node1 -g cluster1 -u 239.255.100.100 ...). If I start the thing up (JBoss nodes and Apache) and I deploy an application, I can see all this in the http://www.test.nl/mcm http://www.test.nl/mcm interface (this is in fact the minimal example named in the documentation of mod_cluster)
The trouble begins when I try to define a second Apache Virtual Host (for example http://www.test2.nl www.test2.nl and try to attach it to cluster2 (the second cluster). First it
doesn't seem to be possible to have two AdvertiseGroup alements here (my first hunch was to ser this to the multicast address of the second cluster).
When I try to throw the mod_cluster configuration in one (default) virtual host, it only sees one cluster (either the one behind 239.255.100.100 or (if I comment
the AdvertiseGroup command), the first that becomes available
The reason that I want two seperate clusters (and not all applications in one cluster) is that we want to administer each cluster independently of each other. Question is thus:
How to setup a multiple named virtual host configuration for apache, where each virtual host connects to a different JBoss-AS5 cluster. Can some one give
a concrete example of such a configuration ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575847#575847]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[Beginner's Corner] - Re: More JBoss-AS 5 clusters and more Apache Virtual Hosts
by Willem Noorduin
Willem Noorduin [http://community.jboss.org/people/willemnoorduin] created the discussion
"Re: More JBoss-AS 5 clusters and more Apache Virtual Hosts"
To view the discussion, visit: http://community.jboss.org/message/577472#577472
--------------------------------------------------------------
* The jvmRoute is set via an environment variable jboss.jvmRoute, which is set in our startscript to be the hostename of the server. Since these are different, the appserver1 entry in jvmRoute is a typo (I had to edit company stuff out). In our production test case, the jvmRoutes are different
* We are indeed using ports-default and ports-01 (ports-02, ports-03, etc) settings when starting up the JBoss-AS instances, so that you have http://appserver1:8080 http://appserver1:8080 and http://appserver2:8180 http://appserver2:8180 available
The resaon we cannot use virtual nics is that we don't have that many IP's available (the 192.68.x.y is of course an example here, in real life we have to use routable IP-addresses). Questions are thus:
1. Have you tried to make the configuration work (or not work) with the ports-?? options from JBoss, or just with each cluster it's own IP-address ?
2. Is it possible to make a configuration we are using to work ? I find it strange if it's not, bacause the whole mod_cluster / JBoss ports mechanism is designed in the first place to make this easier.
3. Is there any other documentation available (other than getting the minimal-configuratiun to work) ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577472#577472]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JNDI and Naming] - datasource not bound?
by frh10 ff
frh10 ff [http://community.jboss.org/people/frh10] created the discussion
"datasource not bound?"
To view the discussion, visit: http://community.jboss.org/message/577688#577688
--------------------------------------------------------------
Hi !
I use jboss5.1.0.GA and set a datasource in it.I can get connections with lookup this datasource(context.lookup("java:/MSSQLDS")) in standalone application(MSSQLDS works well),but when i put the same code to MDB to lookup this datasource and deploy it,jboss throw a error:MSSQLDS not bound.Here is the log.
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) javax.naming.NameNotFoundException: MSSQLDS not bound
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at javax.naming.InitialContext.lookup(InitialContext.java:392)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at ejb.SelectMDB.onMessage(SelectMDB.java:54)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.reflect.Method.invoke(Method.java:597)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.reflect.Method.invoke(Method.java:597)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22116759.invoke(InvocationContextInterceptor_z_fillMethod_22116759.java)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22116759.invoke(InvocationContextInterceptor_z_setup_22116759.java)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:194)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:282)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:270)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:140)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at $Proxy302.onMessage(Unknown Source)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:256)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:822)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:940)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
2010-12-28 09:29:55,352 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
2010-12-28 09:29:55,352 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.Thread.run(Thread.java:619)
2010-12-28 09:29:55,400 ERROR [org.jboss.aspects.tx.TxPolicy] (Thread-3 (group:HornetQ-client-global-threads-10422804)) javax.ejb.EJBTransactionRolledbackException
2010-12-28 09:29:55,401 ERROR [org.hornetq.ra.inflow.HornetQMessageHandler] (Thread-3 (group:HornetQ-client-global-threads-10422804)) Failed to deliver message
javax.ejb.EJBTransactionRolledbackException
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:115)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:194)
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.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80)
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.mdb.MessagingContainer.localInvoke(MessagingContainer.java:282)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:270)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:140)
at $Proxy302.onMessage(Unknown Source)
at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:256)
at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:822)
at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46)
at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:940)
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at ejb.SelectMDB.onMessage(SelectMDB.java:70)
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_22116759.invoke(InvocationContextInterceptor_z_fillMethod_22116759.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_22116759.invoke(InvocationContextInterceptor_z_setup_22116759.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.invokeInCallerTx(TxPolicy.java:126)
... 22 more
How can i solve this error?Thands!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577688#577688]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - Re: JBPM5 compatibility with Tomcat and Maven
by Kris Verlaenen
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion
"Re: JBPM5 compatibility with Tomcat and Maven"
To view the discussion, visit: http://community.jboss.org/message/577010#577010
--------------------------------------------------------------
1. I don't think there's a problem with older versions of maven, I recommend you just give it a try, you only need to change the maven version in prerequisites in the parent pom to your version and try the build. If it works, let me know and I'll lower the required maven version.
2. There is no problem with that, although this is currently not supported out-of-the-box in the installer for example. You would simply need to replace how it is currently configured for JBossAS with the tomcat equivalent. To get you started, this is what you should do. If anyone wants to improve the installer script to support tomcat as well, I would gladly accept the help ;)
If you run the installer for JBossAS, it generates and copies various artefacts. You can get those to work on tomcat by doing:
copy the jbpm-gwt-console.war and jbpm-gwt-console-server.war to TOMCAT_HOME/webapps
rename jbpm-gwt-console.war to jbpm-console.war (so it shows up on http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console
rename jbpm-gwt-console.war to gwt-console-server.war (so it shows up on http://localhost:8080/gwt-console-server http://localhost:8080/gwt-console-server
update TOMCAT_HOME/conf/tomcat-users.xml to include your users + roles
copy JBOSS_HOME/server/default/data/birt to TOMCAT_HOME/birt
copy h2.jar to TOMCAT_HOME/lib
update catalina.bat to set classpath variable jbpm.console.directory to the evaluation resources dir (unless you use guvnor as process repository)
copy all necessary dependencies that are not in the default tomcat classpath to TOMCAT_HOME/lib (or in the WEB-INF/lib folder of the gwt server war)
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577010#577010]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months