Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem with installing EclipseLink 2.0.2 on Glassfish 3.0(Problem with installing EclipseLink 2.0.2 on Glassfish 3.0)
Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #534884] Thu, 20 May 2010 14:47 Go to next message
gamliela  is currently offline gamliela Friend
Messages: 8
Registered: May 2010
Junior Member
Hello,

I lately installed Glassfish 3.0, which comes with EclipseLink 2.0.0 out of the box.
I'm trying to upgrade eclipse link to 2.0.2.

For this task I'm using "felix shell" which comes with glassfish (felix is the environment that lets me upgrade OSGI components in glassfish).

I try to update (or install) EclipseLink 2.0.2 with this URL :
http:// download.eclipse.org/rt/eclipselink/releases/2.0.2/eclipseli nk-plugins-2.0.2.v20100323-r6872.zip

(Is this the right link for OSGI bundles?)

After runnin the install command in felix shell I get one line with "NullPointerException" and that's all.

I really don't know if the problem is with EclipseLink, Glassfish, felix or unsatisfying breakfast. But if someone has any clue, or encountered a similar problem and solved it, I'll appreciate it.

Thanks
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #534942 is a reply to message #534884] Thu, 20 May 2010 18:08 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

I believe that Glassfish just uses the eclipselink.jar. Just replace the jar on the Glassfish lib directory with the newer one.


James : Wiki : Book : Blog : Twitter
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535205 is a reply to message #534884] Fri, 21 May 2010 14:49 Go to previous messageGo to next message
Sahoo Missing name is currently offline Sahoo Missing nameFriend
Messages: 26
Registered: July 2009
Junior Member
Anyway, what is the stack trace of the NPE? What exact shell commands did you try to run?
A better way to upgrade the bundles is to first get hold of the newrer eclipselink jar files and then just overwrite the ones found in glassfish/modules/ directory with the new ones followed by restart of glassfish. GlassFish will automatically detect changes to the jar files and upgrade the bundle.

You should ask such questions in glassfish forum.

Sahoo
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535401 is a reply to message #534942] Sun, 23 May 2010 07:38 Go to previous messageGo to next message
gamliela  is currently offline gamliela Friend
Messages: 8
Registered: May 2010
Junior Member
Could you please be more specific about the newer file and how I can get it?
The bundle that I have downloaded from the link above is a zip file with a lot of jars, none of them named "eclipselink.jar".
The closest one is "eclipselink-jpa-modelgen_2.0.2.v20100323-r6872.jar" but I'm not sure it's the file you meant.
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535415 is a reply to message #535401] Sun, 23 May 2010 10:26 Go to previous messageGo to next message
Sahoo Missing name is currently offline Sahoo Missing nameFriend
Messages: 26
Registered: July 2009
Junior Member
GlassFish uses the following eclipselink artifacts:
org.eclipse.persistence.antlr.jar
org.eclipse.persistence.asm.jar
org.eclipse.persistence.core.jar
org.eclipse.persistence.jpa.jar
org.eclipse.persistence.jpa.modelgen.jar
org.eclipse.persistence.oracle.jar

GlassFish gets them from eclipselink maven repo and strip the version number from the jar file names before redistributing. I don't know where eclipselink project hosts the individual jars. Don't you see the such jars in the zip file you downloaded? Can you do a "unzip -l" of the zip file you have downloaded and tell what it reports?
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535419 is a reply to message #535415] Sun, 23 May 2010 11:15 Go to previous messageGo to next message
gamliela  is currently offline gamliela Friend
Messages: 8
Registered: May 2010
Junior Member
Hi, thank you for your reply.

The content of the file is:
2010-02-09 15:23         12572          4060  about.html
2009-11-27 19:20         20953         17221  commonj.sdo_2.1.1.v200905221342.jar
2010-03-23 01:11         11569         11173  eclipselink-jpa-modelgen_2.0.2.v20100323-r6872.jar
2010-02-08 12:26         54371         44724  javax.activation_1.1.0.v200906290531.jar
2009-11-27 19:20         26250         17336  javax.jms_1.1.0.jar
2009-11-27 19:20        319766        287279  javax.mail_1.4.0.v200804091730.jar
2010-02-08 12:26        334728        291880  javax.persistence.source_2.0.0.v201002051058.jar
2009-11-27 19:20         71575         58804  javax.persistence_1.0.0.v200905011740.jar
2010-02-08 12:26        121807         97601  javax.persistence_2.0.0.v201002051058.jar
2009-11-27 19:20         43365         33315  javax.resource_1.5.0.jar
2009-11-27 19:20        107634         99423  javax.servlet_2.4.0.v200806031604.jar
2010-02-08 12:26          9590          7048  javax.transaction_1.1.0.v201002051055.jar
2009-12-18 15:22        164325        153751  javax.xml.bind.source_2.1.12.v200912160909.jar
2009-12-18 15:22         92526         77969  javax.xml.bind_2.1.12.v200912160909.jar
2009-11-27 19:20         18826         15417  javax.xml.soap_1.3.0.jar
2010-02-08 12:26         39138         32463  javax.xml.stream_1.0.1.v201001131653.jar
2009-11-27 19:20         37148         30523  javax.xml.ws_2.0.0.v200902170419.jar
2009-11-27 19:25         14779          5281  license.html
2010-04-21 09:14        126688        115518  org.eclipse.persistence.antlr.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         66410         53380  org.eclipse.persistence.antlr_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        258665        239270  org.eclipse.persistence.asm.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        225972        199918  org.eclipse.persistence.asm_2.0.2.v20100323-r6872.jar
2010-04-21 09:14       3727138       3466546  org.eclipse.persistence.core.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14       4012531       3704778  org.eclipse.persistence.core_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         92316         83978  org.eclipse.persistence.dbws.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        113730        103617  org.eclipse.persistence.dbws_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         21374         19445  org.eclipse.persistence.jpa.equinox.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         20746         18910  org.eclipse.persistence.jpa.equinox.weaving.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         21756         19905  org.eclipse.persistence.jpa.equinox.weaving_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         22485         20362  org.eclipse.persistence.jpa.equinox_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         41667         38546  org.eclipse.persistence.jpa.modelgen.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         46669         43351  org.eclipse.persistence.jpa.modelgen_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        685547        635980  org.eclipse.persistence.jpa.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        790882        725485  org.eclipse.persistence.jpa_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        234905        216877  org.eclipse.persistence.moxy.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        277408        257942  org.eclipse.persistence.moxy_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         75655         65779  org.eclipse.persistence.oracle.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14         79933         69907  org.eclipse.persistence.oracle_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        286733        272947  org.eclipse.persistence.sdo.source_2.0.2.v20100323-r6872.jar
2010-04-21 09:14        320300        305529  org.eclipse.persistence.sdo_2.0.2.v20100323-r6872.jar
2010-02-09 15:23          2014          1086  readme.html


The files you have mentioned appear. But, I'm using Glassfish and now EclipseLink in production site and cannot afford any mistakes. Replacing individual jars might work but sounds just too risky for me. Isn't any other "straightforward" way for doing a simple upgrade?
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535456 is a reply to message #535419] Sun, 23 May 2010 18:24 Go to previous messageGo to next message
Sahoo Missing name is currently offline Sahoo Missing nameFriend
Messages: 26
Registered: July 2009
Junior Member
You are right; it is not advisable to upgrade that way if you are not sure. Normally GlassFish users use update centre (accessed via glassfish admin console) to upgrade software components. I don't know if there is a new version of eclipselink package in glassfish update centre. You may like to check in glassfish forum. I don' think this is an appropriate place to have this discussion.

Having said that you can certainly try by replacing the files in a test environment and see how it goes just for the sake of trying out at least.
Re: Problem with installing EclipseLink 2.0.2 on Glassfish 3.0 [message #535507 is a reply to message #535456] Mon, 24 May 2010 06:42 Go to previous message
gamliela  is currently offline gamliela Friend
Messages: 8
Registered: May 2010
Junior Member
Sahoo, Thank you very much for your help so far.
I'll check again in Glassfish forum (I already have asked the same question there but didn't get any answer, and as far as I know they don't have any relevant update in the update center).
Previous Topic:valid JPQL creates invalid Derby SQL.
Next Topic:Why join on pk for IN SELECT?
Goto Forum:
  


Current Time: Fri Apr 19 22:02:33 GMT 2024

Powered by FUDForum. Page generated in 0.03554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top