[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - UserType for EntityBeany can't be used due to failure during

mugglmenzel do-not-reply at jboss.com
Fri Jan 23 13:06:17 EST 2009

Hey everybody,

I'm currently developing an app with entity beans based on the openGIS plugin for postgreSQL. JDBC drivers for postgis und postgresql are already in lib folder of the used server configuration (default) and the datasource.xml is also created. Datasource is running fine.

Now, let me explain the problem. 
For being able to store openGIS geometry objects in the postgreSQL database a GeometryType Class needs to be used.
A openGIS Geometry field in an entity bean looks then like:

	private org.postgis.Geometry point;

This already worked on a 4.2.2 JBoss but needed a newer hibernate version to be installed.
With JBoss 5.0.0 it ends in an ClassLoader error after deployment (java.lang.NoClassDefFoundError: UserType). Seems classloader doesn't find the <server_home>/common/lib jars or doesn't check'em at all. The hibernate-core.jar in the common/lib folder includes the class demanded during deployment (org.hibernate.usertype.UserType).

So how does it come jbos throws an error during deployment? why isn't the UserType class found then?

thx + regards

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204409#4204409

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204409

More information about the jboss-user mailing list