Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1157

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

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.3.0
    • Fix versions: 1.3.1
    • Components: JBoss
    • Labels:
      None

      Description

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

      <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:

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                savasalitokmen Savas Ali Tokmen (Inactive)
                Reporter:
                savasalitokmen Savas Ali Tokmen (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: