Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » EclipseLink 2 on Tomcat
EclipseLink 2 on Tomcat [message #809841] Wed, 29 February 2012 05:32 Go to next message
Eclipse UserFriend
Hi,

I use EclipseLink 1.1.4 on Tomcat 6. But I'd like to use EclipseLink 2 due to JPA 2 features. So I would appreciate any help how to configure EclipseLink 2 on Tomcat (what files and where to copy). And I'd like to know whether is possible to run EclipseLink 1 and EclipseLink 2 on one Tomcat server

Thanks

Pavel
Re: EclipseLink 2 on Tomcat [message #810847 is a reply to message #809841] Thu, 01 March 2012 11:04 Go to previous messageGo to next message
Eclipse UserFriend
For JPA 2.0 you need the JPA 2.0 version of the persistence.jar on your classpath.

Many features of JPA 2 are also available in EclipseLink even when using the JPA 1.0 persistence.jar, as the eclipselink.jar includes any of the new classes added in JPA 2.0.

I'm not certain on how class loaders work in Tomcat, be in thoery if you deployed the persistence.jar in your war as a library, then you should be able to have another application in the same server with another war with a different version of the persistence.jar in it.
Re: EclipseLink 2 on Tomcat [message #816884 is a reply to message #810847] Fri, 09 March 2012 06:37 Go to previous message
Eclipse UserFriend
Thanks for reply. You are right. Problem was in the MSSQL JDBC driver. After switching to jTDS it works.

[Updated on: Fri, 09 March 2012 06:37] by Moderator

Previous Topic:Problem with persist order in 3 table scenario including inheritance and OneToMany relationship
Next Topic:MOXy - afterUnmarshal() not called in children of lists
Goto Forum:
  


Current Time: Tue Jul 22 22:50:52 EDT 2025

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

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

Back to the top