[jbossts-issues] [JBoss JIRA] (JBTM-2184) NoClassDefFoundError: Missing Dependency on jboss-transaction-spi

Tom Jenkinson (JIRA) issues at jboss.org
Mon Jun 2 11:25:16 EDT 2014


    [ https://issues.jboss.org/browse/JBTM-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972513#comment-12972513 ] 

Tom Jenkinson commented on JBTM-2184:
-------------------------------------

Just trying to work out, what were you doing to cause the issue? For example the ArjunaJTA/maven qs doesn't exhibit this behaviour after I fixed it to have the correct runtime dependencies.

Some of the quickstarts do import the SPI correctly as they must need to use this behaviour:
[tom at dhcppc1 quickstart](JBTM-2182) (15:40:29) $ grepinpom transaction-spi
./jca-and-tomcat/pom.xml
./jta-and-hibernate/pom.xml
./jca-and-hibernate/pom.xml

It looks like "provided" scope dependencies of constituent modules have not been included in shaded poms. Some of this goes away if we start to recommend users to use the raw modules rather than the uber jars created by the shade plugin as then the poms are self documenting (like in WildFly). At the moment it is effectively assumed that you would know which jars to include if you use the uber jars as the Jars do not document the requirement.

The disadvantage of the none-uber jar is only for JTS as you would be required to provide a configuration file to enable JTS, at the moment it is selected by the jar.

Unfortunately I can't get a shaded pom to include provided scope at all, I could make it runtime but then it would still be dependent on the Jars being available which for some situations shouldn't be required.

Will have a think...

> NoClassDefFoundError: Missing Dependency on jboss-transaction-spi
> -----------------------------------------------------------------
>
>                 Key: JBTM-2184
>                 URL: https://issues.jboss.org/browse/JBTM-2184
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JTA
>    Affects Versions: 5.0.1
>            Reporter: Andrew Rubinger
>            Assignee: Paul Robinson
>             Fix For: 5.0.3
>
>
> Looks like Narayana is missing a dependency, as this isn't brought in transitively:
> {code}java.lang.NoClassDefFoundError: org/jboss/tm/FirstResource
> 	at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.order(XAResourceRecord.java:139)
> 	at com.arjuna.ats.arjuna.coordinator.AbstractRecord.orderEquals(AbstractRecord.java:663)
> 	at com.arjuna.ats.arjuna.coordinator.AbstractRecord.equals(AbstractRecord.java:227)
> 	at com.arjuna.ats.arjuna.coordinator.RecordList.insert(RecordList.java:379)
> 	at com.arjuna.ats.arjuna.coordinator.RecordList.insert(RecordList.java:144)
> 	at com.arjuna.ats.arjuna.coordinator.BasicAction.add(BasicAction.java:307)
> 	at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:647){code}
> I'm also not finding the 7.x series of jboss-transaction-spi in Maven Central; is this intended?



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jbossts-issues mailing list