We're updating the issue view to help you get more done. 

JBoss 7.x or 7.1.x datasource classes cannot come from shared classpath

Description

I would expect that the classpath of my
dependency (ojdbc6) be shared, so my pom.xml would look something like:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 <dependencies> <dependency> <!--cargo datasource AND hibernate spatial dependency --> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.3.0</version> <optional>true</optional> <scope>provided</scope> </dependency> <!-- other dependencies --> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.3.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss71x</containerId> <!--- installer --> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <classpath>shared</classpath> </dependency> </dependencies> </container> <configuration> <properties> <cargo.datasource.datasource> cargo.datasource.driver=oracle.jdbc.OracleDriver <!-- other config --> </cargo.datasource.datasource> </properties> </configuration> <!-- rest of pom.xml -->

However, if is use <classpath>shared</classpath>, the plugin will fail
with the following error:

1 2 Failed to create a JBoss 7.1.1.Final standalone configuration: Datasource class oracle.jdbc.OracleDriver not found in the extra classpath

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Affects versions

1.3.0

Priority

Major