Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » cannot use eclipselink 2.x
cannot use eclipselink 2.x [message #896754] Thu, 19 July 2012 15:28 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
when I new a JPA project, select the platform, only 1.x is shown, why?
the sequence is attached as image 1-5.
In step 2, I select weblogic 11g as runtime, in step 3, I select default configuration for weblogic 11g, then in step 5, no eclipse 2.x is allowed to choose.

I know weblogic 11g (10.3.4) default is using jpa 1 but can manual enable to support jpa2, and I already manual enable it. But dali still not allow me to choose eclipselink 2.x in step 5, why?
  • Attachment: 1.JPG
    (Size: 35.02KB, Downloaded 587 times)
  • Attachment: 2.JPG
    (Size: 59.82KB, Downloaded 558 times)
  • Attachment: 3.JPG
    (Size: 58.31KB, Downloaded 473 times)
  • Attachment: 4.JPG
    (Size: 59.46KB, Downloaded 497 times)
  • Attachment: 5.JPG
    (Size: 53.73KB, Downloaded 487 times)
Re: cannot use eclipselink 2.x [message #896756 is a reply to message #896754] Thu, 19 July 2012 15:36 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Have you tried to click the "Modify..." button seen in screen shot 2 to change the JPA facet version to 2.0? By changing this setting, you should then be able to see the EclipseLink 2.x platform in step 5.

Neil
Re: cannot use eclipselink 2.x [message #896760 is a reply to message #896756] Thu, 19 July 2012 15:52 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
as shown in attachment 3.jpg, click modify button, there is only three choice without "JPA facet version to 2.0".
the three choice shown in 3.jpg is
"default configuration for oracle weblogic server 11g..."
"Minimal Configuration"
"Minimal JPA 1.0 configuration"
Re: cannot use eclipselink 2.x [message #896800 is a reply to message #896760] Thu, 19 July 2012 20:30 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
You need to actually click the "Modify...' button, as opposed to selecting one of the preset configurations in the drop down.

Neil
Re: cannot use eclipselink 2.x [message #896833 is a reply to message #896800] Fri, 20 July 2012 02:11 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
sorry, I am very new to Dali and eclipselink.
After press the modify button, jpa6.jpg is shown, and there is still no jpa 2.0 to choose.
jpa7.jpg shown my current dali version.

in the link
http://docs.oracle.com/cd/E21764_01/web.1111/e13720/using_toplink.htm#CIHDGHFE
weblogic 10.3.4 should support jpa 2.0 after manual install the patch.

2)
if choose tomcat 6.0 as the target runtime as shown in jpa8.jpg, then in platform (jpa9.jpg), I can choose Eclipselink 2.0.x, and in JPA Implementation, I need download Eclipse 2.1.3 if my eclipse version is Helios?

3)
Any tutorial for learning EclipseLink + Dali + JPA recommended?
  • Attachment: jpa6.jpg
    (Size: 70.61KB, Downloaded 498 times)
  • Attachment: jpa7.jpg
    (Size: 135.60KB, Downloaded 498 times)
  • Attachment: jpa8.jpg
    (Size: 64.93KB, Downloaded 529 times)
  • Attachment: jpa9.jpg
    (Size: 185.96KB, Downloaded 497 times)
Re: cannot use eclipselink 2.x [message #896948 is a reply to message #896754] Fri, 20 July 2012 13:48 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 201
Registered: July 2009
Senior Member
You actually need to change the version on the config screen in jpa6.jpg. It's a dropdown. This is separate from the manual enablement you've done to WebLogic. This tells the UI that you want to develop a JPA 2.0 compliant application.
Re: cannot use eclipselink 2.x [message #896966 is a reply to message #896833] Fri, 20 July 2012 15:10 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
tong123123 tong123123 wrote on Thu, 19 July 2012 22:11
sorry, I am very new to Dali and eclipselink.
After press the modify button, jpa6.jpg is shown, and there is still no jpa 2.0 to choose.
jpa7.jpg shown my current dali version.

in the link
http://docs.oracle.com/cd/E21764_01/web.1111/e13720/using_toplink.htm#CIHDGHFE
weblogic 10.3.4 should support jpa 2.0 after manual install the patch.

2)
if choose tomcat 6.0 as the target runtime as shown in jpa8.jpg, then in platform (jpa9.jpg), I can choose Eclipselink 2.0.x, and in JPA Implementation, I need download Eclipse 2.1.3 if my eclipse version is Helios?

3)
Any tutorial for learning EclipseLink + Dali + JPA recommended?


See Paul's comment regarding the version field. You are correct that WLS 10.3.4 will support JPA 2.0 after patching.

2) You should probably be basing your tooling needs around the version of EclipseLink that you need to use. Is there a reason you cannot move beyond the Eclipse Helios version? Helios is getting pretty old at this point.

3) The Dali website links to a number of How-To demos and also has a tutorial that may be helpful. The tutorial is somewhat out of date, but the concepts should be the same. Look on the right hand side of the screen for link to documentation, etc. http://eclipse.org/webtools/dali/
Re: cannot use eclipselink 2.x [message #896993 is a reply to message #896948] Fri, 20 July 2012 17:46 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
the jpa version is not a dropdown, it does not allow modify and is 1.0.
as shown in jpa6.jpg and jpa10.jpg (new attached)
  • Attachment: jpa10.JPG
    (Size: 67.14KB, Downloaded 443 times)
Re: cannot use eclipselink 2.x [message #897027 is a reply to message #896993] Fri, 20 July 2012 20:24 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
OK...I have reproduced this problem first hand and see the issue you are describing. Please take a look at the following blog post. I think following the contained instructions will solve the issues you are having.

https://blogs.oracle.com/gstachni/entry/using_jpa_20_with_weblogic_ser

Neil
Re: cannot use eclipselink 2.x [message #897028 is a reply to message #897027] Fri, 20 July 2012 20:27 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
I should add that the WLS server adapter was limiting the JPA choices based on the original 10.3.4 support. It sounds like this can be changed based on the above link.
Re: cannot use eclipselink 2.x [message #897052 is a reply to message #897027] Sat, 21 July 2012 08:35 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
I have just followed the instruction in
https://blogs.oracle.com/gstachni/entry/using_jpa_20_with_weblogic_ser
but then when I new a JPA project and press modify in configuration, the JPA version is still 1.0 and cannot be changed (not shown as a dropdown list)
Re: cannot use eclipselink 2.x [message #897363 is a reply to message #897052] Mon, 23 July 2012 19:08 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
WLS 10.3.4 does not support JPA 2.0 out of the box. It needs to be modified to provide that support. The blog instructions that you've followed make that modification, but it looks like something is going wrong if you are still not able to select that version of JPA facet.

What does the screen referenced in the blog look like now? Please attach a screen capture. Also attach a screen capture of the facets selection screen with the runtimes tab on the right selected and the weblogic server that you are targeting selected. I'd like to see what is listed in the yellow box beneath the runtimes list.

- Konstantin
Re: cannot use eclipselink 2.x [message #897431 is a reply to message #897363] Tue, 24 July 2012 06:47 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
1) What does the screen referenced in the blog look like now? Please attach a screen capture.
as attached in jpa11, jpa12, jpa13AfterInstall, in jpa13AfterInstall, although already press the server extension by clicking the install link, the link still appear and active.

2)attach a screen capture of the facets selection screen with the runtimes tab on the right selected and the weblogic server that you are targeting selected
as shown in jpa14.jpg, no jpa 2.0 is observed in the list.
  • Attachment: jpa11.jpg
    (Size: 43.17KB, Downloaded 490 times)
  • Attachment: jpa12.jpg
    (Size: 20.91KB, Downloaded 516 times)
  • Attachment: jpa13AfterInstall.jpg
    (Size: 42.98KB, Downloaded 478 times)
  • Attachment: jpa14.jpg
    (Size: 67.35KB, Downloaded 500 times)
Re: cannot use eclipselink 2.x [message #897625 is a reply to message #897431] Tue, 24 July 2012 19:41 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Based on jpa13AfterInstall.jpg, I see that JPA 2.0 install is failing. Take a look at your Error Log view to see if there is anything interesting. You may also want to make sure that your WLS install folder is writable by whatever user you are running Eclipse under.
Re: cannot use eclipselink 2.x [message #897860 is a reply to message #897625] Wed, 25 July 2012 10:26 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
where is the error log view? I try to search *.log in weblogic installation folder but cannot found any relevant *.log file.
I am sure the WLS install folder is writable by the login user.
Re: cannot use eclipselink 2.x [message #898055 is a reply to message #897860] Wed, 25 July 2012 17:10 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
I am referring to Eclipse Error Log view. Find it via Window -> Show View -> Other -> General -> Error Log. If you haven't used this view before, it will likely be littered with a lot of unrelated content. Clear its content and then try JPA 2.0 install again. What do you see?

Make sure that the server isn't running when you do this and that nothing else is locking weblogic.jar or making it unnaccessible. Try renaming weblogic.jar. Did that work?

If you keep having problems with this, you may need to reinstall WLS.

- Konstantin
Re: cannot use eclipselink 2.x [message #898221 is a reply to message #898055] Thu, 26 July 2012 03:03 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
I think success this time according to jpa15.jpg.
I need delete the WLS in eclipse first, then restart eclipse, add WLS in eclipse, and while adding, click the Install link for Java Persistence 2.0.

I check in window explorer, weblogic.jar and oepe-contributions.jar is updated.

But I want to ask, if I don't manually modify the commEnv.cmd in WLS\common\bin as mentioned in
http://docs.oracle.com/cd/E21764_01/web.1111/e13720/using_toplink.htm#CIHDGHFE
and just follow the procedure in
https://blogs.oracle.com/gstachni/entry/using_jpa_20_with_weblogic_ser
will the weblogic 10.3.4 provide support for jpa 2.0?

thanks for all reply
  • Attachment: jpa15.jpg
    (Size: 43.86KB, Downloaded 474 times)
Re: cannot use eclipselink 2.x [message #898579 is a reply to message #898221] Thu, 26 July 2012 16:49 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
If you use Eclipse to add JPA 2.0 support to WLS, you do not need to follow commEnv.cmd instructions which provide an alternate way of doing this that isn't compatible with Eclipse.

- Konstantin
Previous Topic:what is the relationship between Dali and EclipseLink
Next Topic:duplicate post...admin please delete
Goto Forum:
  


Current Time: Thu Mar 28 11:26:01 GMT 2024

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

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

Back to the top