• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere and Hiberante strange problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I am using Hibernate 3.6.5 as my persistence vendor and I'm facing a very strange problem. Now, I know Hibernate is not supported by IBM, but it seems to be a Websphere problem.

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 documentation stated. The DB server is MS SQL-Server 2008.

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, exaclty 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, the JNDI, even tried the same DB - nothing.

I have no clue... There has to be a difference...
Please help.

Best regards.
 
reply
    Bookmark Topic Watch Topic
  • New Topic