Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

If the application uses resource reference in 1.1, resource references need to be resolvable in the set of ancestors of your module. In other words, your application has to depend on the rar deployment.

Example:

Code Block
xml
xml
borderStylesolidxml
<sys:dependencies>
    <sys:dependency> 
        <sys:groupId>Sample</ sys:groupId>
        <sys:artifactId>EmployeeDatasource</sys:artifactId>
        <sys:version>1.1</ sys:version>
        <sys:type>rar</ sys:type> 
    </sys:dependency>
</sys:dependencies>

...

If your 1.0 database connection pool plan has the following as dependencies:

Code Block
xml
xml
borderStylesolidxml
<dependency>
    <uri>org.apache.derby/derby/10.1.1.0/jar</uri>
</dependency>
<dependency>
    <uri>org.apache.derby/derbynet/10.1.1.0/jar</uri>
</dependency>

The upgrader tool will convert them to:

Code Block
xml
xml
borderStylesolidxml
<dep:dependency>
    <dep:groupId>org.apache.derby</dep:groupId>
    <dep:artifactId>derby</dep:artifactId>
    <dep:version>10.1.1.0</dep:version>
    <dep:type>jar</dep:type>
</dep:dependency>
     <dep:dependency>
     <dep:groupId>org.apache.derby</dep:groupId>
     <dep:artifactId>derbynet</dep:artifactId>
     <dep:version>10.1.1.0</dep:version>
     <dep:type>jar</dep:type>
</dep:dependency>

...

Instead you need a car dependency on system-datasource so you are sharing it's copy of derby.

Code Block
xml
xml
borderStylesolidxml
<dep:dependency>
    <dep:groupId>geronimo</dep:groupId>
    <dep:artifactId>system-database</dep:artifactId>
    <dep:type>car</dep:type>
</dep:dependency>

...