You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Russell Collins <Ru...@mclaneat.com> on 2010/03/08 18:59:02 UTC
Upgrade JPA
I know this information is out there somewhere as I have seen it on lists but I cannot find it. How would I go about updating the alias for the JPA provider. Example, I am wanting to upgrade from OpenJPA 1.2.1 to OpenJPA 1.2.2. What steps do I need to take to accomplish this or where should I look. Thanks.
Russell Collins
Sr. Software Engineer
McLane Advanced Technology
254.771.6419
"Do or do not, there is no try." - Yoda
________________________________
CONFIDENTIALITY NOTICE: The information contained in this electronic mail (email) transmission (including attachments), is intended by MCLANE ADVANCED TECHNOLOGIES for the use of the named individual or entity to which it is addressed and may contain information that is privileged, confidential and/or protected as a trade secret. It is not intended for transmission to, or receipt by, any individual or entity other than the named addressee(s). If you have received this email in error, please delete it (including attachments) and any copies thereof without printing, copying or forwarding it, and notify the sender of the error by email reply immediately.
RE: Upgrade JPA
Posted by Russell Collins <Ru...@mclaneat.com>.
Ok, I think I should have read your statement with a little more understanding. If I am not mistaking you, the line
org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
may or may not be there. If it is not there, I need to add this line. That makes perfect sense.
From: Kevan Miller [mailto:kevan.miller@gmail.com]
Sent: Monday, March 08, 2010 4:34 PM
To: user@geronimo.apache.org
Subject: Re: Upgrade JPA
On Mar 8, 2010, at 5:02 PM, Russell Collins wrote:
Thank you for the response. I am using Geronimo 2.2. The alias.properties file has ".car" entries instead of ".jar" entries. Are the instructions the same?
I have org.apache.geronimo.configs/openjpa//car -> org.apache.geronimo.configs/openjpa/2.2/car . Should this be
org.apache.geronimo.configs/openjpa//car -> org.apache.openjpa/openjpa/1.2.2/jar
No. You want to leave the existing aliases along. car is a "configuration archive" which is Geronimo specific. By default, we only provide car to car aliasing in the file, but you can alias jar files, also. The car artifact that you reference is the Geronimo OpenJPA configuration archive. You want to leave that alone. Instead, you want to instruct Geronimo that whenever it looks for an OpenJPA 1.2.1 jar file, to look for a 1.2.2 jar file instead.
The following might work on 2.2 (leaving off the source version number would not work on 2.1.x):
org.apache.openjpa/openjpa//jar=org.apache.openjpa/openjpa/1.2.2/jar
The following should work:
org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
--kevan
________________________________
CONFIDENTIALITY NOTICE: The information contained in this electronic mail (email) transmission (including attachments), is intended by MCLANE ADVANCED TECHNOLOGIES for the use of the named individual or entity to which it is addressed and may contain information that is privileged, confidential and/or protected as a trade secret. It is not intended for transmission to, or receipt by, any individual or entity other than the named addressee(s). If you have received this email in error, please delete it (including attachments) and any copies thereof without printing, copying or forwarding it, and notify the sender of the error by email reply immediately.
Re: Upgrade JPA
Posted by Kevan Miller <ke...@gmail.com>.
On Mar 8, 2010, at 5:02 PM, Russell Collins wrote:
> Thank you for the response. I am using Geronimo 2.2. The alias.properties file has “.car” entries instead of “.jar” entries. Are the instructions the same?
>
> I have org.apache.geronimo.configs/openjpa//car -> org.apache.geronimo.configs/openjpa/2.2/car . Should this be
>
> org.apache.geronimo.configs/openjpa//car -> org.apache.openjpa/openjpa/1.2.2/jar
No. You want to leave the existing aliases along. car is a "configuration archive" which is Geronimo specific. By default, we only provide car to car aliasing in the file, but you can alias jar files, also. The car artifact that you reference is the Geronimo OpenJPA configuration archive. You want to leave that alone. Instead, you want to instruct Geronimo that whenever it looks for an OpenJPA 1.2.1 jar file, to look for a 1.2.2 jar file instead.
The following might work on 2.2 (leaving off the source version number would not work on 2.1.x):
org.apache.openjpa/openjpa//jar=org.apache.openjpa/openjpa/1.2.2/jar
The following should work:
org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
--kevan
Re: Upgrade JPA
Posted by Donald Woods <dw...@apache.org>.
The JAR entries have to be created, as we don't supply default alias
entries for those. Just stop the server, add the alias entry and jar to
the repo, then restart. If you are using the app client container, then
you'll also have to add it to -
var/config/client_artifact_aliases.properties
Don't update the CAR entries unless you are replacing those system-level
plugins with ones you have rebuilt. For example, to upgrade to
OpenJPA-2.0.0-beta, I created a plugin that deploys new integration
modules along with the openjpa jars -
http://geronimo.apache.org/2010/02/27/jpa-20-available-for-213-and-later-server-users.html
-Donald
On 3/8/10 5:02 PM, Russell Collins wrote:
> Thank you for the response. I am using Geronimo 2.2. The
> alias.properties file has “.car” entries instead of “.jar” entries. Are
> the instructions the same?
>
>
>
> I have org.apache.geronimo.configs/openjpa//car ->
> org.apache.geronimo.configs/openjpa/2.2/car . Should this be
>
>
>
> org.apache.geronimo.configs/openjpa//car ->
> org.apache.openjpa/openjpa/1.2.2/jar
>
>
>
>
>
> *From:* Kevan Miller [mailto:kevan.miller@gmail.com]
> *Sent:* Monday, March 08, 2010 1:24 PM
> *To:* user@geronimo.apache.org
> *Subject:* Re: Upgrade JPA
>
>
>
>
>
> On Mar 8, 2010, at 12:59 PM, Russell Collins wrote:
>
>
>
> I know this information is out there somewhere as I have seen it on
> lists but I cannot find it. How would I go about updating the alias for
> the JPA provider. Example, I am wanting to upgrade from OpenJPA 1.2.1
> to OpenJPA 1.2.2. What steps do I need to take to accomplish this or
> where should I look. Thanks.
>
>
>
> Your current jar resides
> in repository/org/apache/openjpa/openjpa/1.2.1/openjpa-1.2.1.jar
>
>
>
> Create the openjpa 1.2.2 equivalents
> (repository/org/apache/openjpa/openjpa/1.2.2/openjpa-1.2.2.jar). There
> are admin console/command line tools to install for you. But they are
> equivalent to mkdir/cp. If I'm dropping in a new jar, that's all I
> normally do.
>
>
>
> Aliases are defined in var/config/artifact_aliases.properties add the
> following line:
>
>
>
> org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
>
>
>
> Start your server.
>
>
>
> --kevan
>
>
> ------------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: The information contained in this electronic
> mail (email) transmission (including attachments), is intended by MCLANE
> ADVANCED TECHNOLOGIES for the use of the named individual or entity to
> which it is addressed and may contain information that is privileged,
> confidential and/or protected as a trade secret. It is not intended for
> transmission to, or receipt by, any individual or entity other than the
> named addressee(s). If you have received this email in error, please
> delete it (including attachments) and any copies thereof without
> printing, copying or forwarding it, and notify the sender of the error
> by email reply immediately.
RE: Upgrade JPA
Posted by Russell Collins <Ru...@mclaneat.com>.
Thank you for the response. I am using Geronimo 2.2. The alias.properties file has ".car" entries instead of ".jar" entries. Are the instructions the same?
I have org.apache.geronimo.configs/openjpa//car -> org.apache.geronimo.configs/openjpa/2.2/car . Should this be
org.apache.geronimo.configs/openjpa//car -> org.apache.openjpa/openjpa/1.2.2/jar
From: Kevan Miller [mailto:kevan.miller@gmail.com]
Sent: Monday, March 08, 2010 1:24 PM
To: user@geronimo.apache.org
Subject: Re: Upgrade JPA
On Mar 8, 2010, at 12:59 PM, Russell Collins wrote:
I know this information is out there somewhere as I have seen it on lists but I cannot find it. How would I go about updating the alias for the JPA provider. Example, I am wanting to upgrade from OpenJPA 1.2.1 to OpenJPA 1.2.2. What steps do I need to take to accomplish this or where should I look. Thanks.
Your current jar resides in repository/org/apache/openjpa/openjpa/1.2.1/openjpa-1.2.1.jar
Create the openjpa 1.2.2 equivalents (repository/org/apache/openjpa/openjpa/1.2.2/openjpa-1.2.2.jar). There are admin console/command line tools to install for you. But they are equivalent to mkdir/cp. If I'm dropping in a new jar, that's all I normally do.
Aliases are defined in var/config/artifact_aliases.properties add the following line:
org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
Start your server.
--kevan
________________________________
CONFIDENTIALITY NOTICE: The information contained in this electronic mail (email) transmission (including attachments), is intended by MCLANE ADVANCED TECHNOLOGIES for the use of the named individual or entity to which it is addressed and may contain information that is privileged, confidential and/or protected as a trade secret. It is not intended for transmission to, or receipt by, any individual or entity other than the named addressee(s). If you have received this email in error, please delete it (including attachments) and any copies thereof without printing, copying or forwarding it, and notify the sender of the error by email reply immediately.
Re: Upgrade JPA
Posted by Kevan Miller <ke...@gmail.com>.
On Mar 8, 2010, at 12:59 PM, Russell Collins wrote:
> I know this information is out there somewhere as I have seen it on lists but I cannot find it. How would I go about updating the alias for the JPA provider. Example, I am wanting to upgrade from OpenJPA 1.2.1 to OpenJPA 1.2.2. What steps do I need to take to accomplish this or where should I look. Thanks.
Your current jar resides in repository/org/apache/openjpa/openjpa/1.2.1/openjpa-1.2.1.jar
Create the openjpa 1.2.2 equivalents (repository/org/apache/openjpa/openjpa/1.2.2/openjpa-1.2.2.jar). There are admin console/command line tools to install for you. But they are equivalent to mkdir/cp. If I'm dropping in a new jar, that's all I normally do.
Aliases are defined in var/config/artifact_aliases.properties add the following line:
org.apache.openjpa/openjpa/1.2.1/jar=org.apache.openjpa/openjpa/1.2.2/jar
Start your server.
--kevan