-
1. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
zhfeng Aug 13, 2015 12:43 PM (in response to doddio)Hi,
you maybe need to add the 'narayana-jta' artifact and I think it would be useful to move this topic to narayana forum Narayana
Thanks,
Amos
-
2. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
jaikiran Aug 13, 2015 1:05 PM (in response to zhfeng)Amos Feng wrote:
I think it would be useful to move this topic to narayana forum Narayana
Moved.
-
3. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
doddio Aug 13, 2015 1:31 PM (in response to doddio)Actually, turns out we have the mvn-ear-plugin generating MANIFEST.MF, so I set it up to add the dependency via our ear's pom.xml:
<artifactId>maven-ear-plugin</artifactId> <configuration> <archive> <manifestEntries> <Dependencies>org.jboss.jts</Dependencies> </manifestEntries> </archive>
Works now!
-
4. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
zhfeng Aug 14, 2015 4:33 AM (in response to doddio)That's great and can you retrieve the remaining transaction time also by using getRemainingTimeoutMills() ?
-
5. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
mmusgrov Aug 14, 2015 4:51 AM (in response to doddio)1 of 1 people found this helpfulSteven Dodd wrote:
Actually, turns out we have the mvn-ear-plugin generating MANIFEST.MF, so I set it up to add the dependency via our ear's pom.xml:
- <artifactId>maven-ear-plugin</artifactId>
- <configuration>
- <archive>
- <manifestEntries>
- <Dependencies>org.jboss.jts</Dependencies>
- </manifestEntries>
- </archive>
Works now!
Nice. FYI depending on which internals you need to access you may also require the SPI and logging dependencies
<Dependencies>org.jboss.jboss-transaction-spi, org.jboss.logging, org.jboss.jts</Dependencies>
-
6. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
zhfeng Aug 14, 2015 6:21 AM (in response to mmusgrov)I checked the jboss-transaction-spi and it looks like we do not provide the method to retrieve the transaction remaining timeout. So I assume that it needs to change the spi.
-
7. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
tomjenkinson Aug 14, 2015 6:51 AM (in response to zhfeng)I think it depends on how coupled to Narayana people are prepared to be. Assuming Steven is OK to cast to Narayana class it doesn't need to be in the SPI to work. As you say though, it might be a useful facility to add to the SPI in the future.
-
8. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
marklittle Aug 14, 2015 10:05 AM (in response to tomjenkinson)Since getting the remaining timeout isn't part of the standards I'm not sure it makes sense in the SPI at the moment - or at least not until we find other implementations provide a similar capability.
-
9. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
doddio Aug 17, 2015 1:49 PM (in response to mmusgrov)I'd like to use getTimeLeftBeforeTransactionTimeout() from TransactionManagerDelegate from the org.jboss.jts.integration module, as it looks to handle transaction states better than using Transaction.getRemainingTransactionTime() directly.
But when I try to use it, I get a NoClassDefFoundError exception again for TransactionManagerDelegate.
I tried adding all of the deps specified in the org.jboss.jts.integration module, but no luck:
<Dependencies>org.jboss.as.transactions, javax.resource.api, javax.transaction.api, javax.api, org.jboss.logging, org.apache.commons.logging, org.jboss.jboss-transaction-spi, org.jboss.jts, org.omg.api, org.jboss.jts.integration</Dependencies>
Anyone have any idea what deps I need, or if I can even import this module? Looks like it's in a folder called "integration" instead of "main", not sure if that makes it unavailable or not...
-
10. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
tomjenkinson Aug 17, 2015 3:02 PM (in response to doddio)Hi Steven,
Can you post the stack trace please? I can try it here if you can you post a simple EJB maven project with maybe an @Startup that replicates the issue for us to try it here?Thanks,
Tom
-
11. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
doddio Aug 17, 2015 4:16 PM (in response to tomjenkinson)Never mind.
Turns out we specify our dependencies under Arquillian differently then under our actual EAR, so I just had to add the deps to both locations.
Seems to be working under Arquillian and in proper deployments now.
-
12. Re: NoClassDefFoundError: com/arjuna/ats/jta/TransactionManager
tomjenkinson Aug 18, 2015 5:01 AM (in response to doddio)Excellent - thanks for confirming Steven!