Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
borderStylesolid

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

Without the dependency specified, you may run into the following error upon deployment of your application:

...

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

Code Block
xml
xml
borderStylesolid

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

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

However, this loads a second copy of derby in a second classloader, and you will hit the following error when you run your application:

...

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

Code Block
xml
xml
borderStylesolid

<dep:dependency>

...


    <dep:groupId>geronimo</dep:groupId>

...


    <dep:artifactId>system-database</dep:artifactId>

...


    <dep:type>car</dep:type>

...


</dep:dependency>