[jboss-user] [Beginner's Corner] - Re: JBOSS 5.1 Server -> org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

Amar Kintu do-not-reply at jboss.com
Mon Sep 27 00:48:16 EDT 2010


Amar Kintu [http://community.jboss.org/people/amar4kintu] created the discussion

"Re: JBOSS 5.1 Server -> org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider"

To view the discussion, visit: http://community.jboss.org/message/563705#563705

--------------------------------------------------------------
Hello Fabian Krüger,

Thanks for the answer.

I have also checked it by removing all jar files that are provided by JBOSS server from my /WEB-INF/lib directory. But problem seems to be same.
After searching lot in Google and putting question in different forums, I come to know that JBOSS 5.1 is very tightly coupled with JPA 1.0. So it is not possible to use JPA 2.0 with JBOSS 5.1 server.

So now I am trying things with JPA 1.0.

Let me know if you have any other ideas.

Thanks.

Amar
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563705#563705]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100927/9730e398/attachment.html 


More information about the jboss-user mailing list