Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Pavel Zelenka is currently offline Pavel Zelenka
Messages: 61
Registered: July 2009
Member
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
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

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.


James : Wiki : Book : Blog : Twitter
Re: EclipseLink 2 on Tomcat [message #816884 is a reply to message #810847] Fri, 09 March 2012 06:37 Go to previous message
Pavel Zelenka is currently offline Pavel Zelenka
Messages: 61
Registered: July 2009
Member
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]

Report message to a 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: Fri Aug 29 16:28:17 EDT 2014

Powered by FUDForum. Page generated in 0.01609 seconds