Hello, I am using Hibernate 3.6.5 and I'm facing a very strange problem, with IBM Websphere.
The server I'm using is Websphere 7.0.0.13 with JPA 2 feature-pack version 1.0.0.3, and I configured the server to use parent-last class loader as the IBM JPA 2.0 documentation stated. The DB server is MS SQL-Server 2008. Entities mapped by annotations.
Deployment goes fine, and here is the tricky part: On one Websphere I get an exception: QuerySyntaxException: Entity is not mapped [SELECT a FROM Entity a WHERE a.Id = :Id]
On another Websphere, with exactly the same specs, exactly the same installation process, exactly same computer model, exactly the same ear file.. all goes well - no exception and persistence is working great.
I compared the drivers (SQLJDBC4), all the paths, the data-sources settings, even tried the same DB - nothing. I also deployed it on another application server (Glassfish 3.1), and it works just fine.
I have no clue...
Please help.
Best regards.
|