Thursday, August 26, 2010

Could not inspect JDBC autocommit mode

Could not inspect JDBC autocommit mode

JPA and EJB3 Caveats - I

javax.persistence.PersistenceException: [PersistenceUnit: UnitName] class or package not found

WARN [ServiceController] Problem starting service persistence.units:ear=

If you get the above warning followed by the exception in the title, check your persistence.xml, some of the entity classes maybe declared wrong (e.g. point to wrong package).


JPA/EJB 3 Setup on Eclipse

Make sure that the persistence.xml file is located in the META-INF of the EAR Project.
Having it in your JPA project does NOT automatically propogate this file to where it needs to be.

Tuesday, August 10, 2010

Quotes

Optimist/Pessimist
The optimist live in the peninsula of infinite possibilities, where as the pessimist is stranded on an island of perpetual indecision.