-
1. unknown jboss error with hibernate
alesj May 16, 2011 9:22 AM (in response to b.lambe)any ideas?
You're getting some error / exception in your static init block, hence it cannot initialize the HibUtil class.
Try catching that exception to see what is the real reason.
-
2. unknown jboss error with hibernate
b.lambe May 16, 2011 9:35 AM (in response to alesj)org.hibernate.AnnotationException
java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
this is what i caught, but have no idea what to do with this? what does this tell me as to how to fix my issue?
thanks in advance
-
3. unknown jboss error with hibernate
b.lambe May 16, 2011 9:45 AM (in response to b.lambe)hmmm
i removed my hibernate jars and it seems to have go past this error message, but now i am getting
java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.1.22/databasename
i have the jar for mysql and my hibernate.cfg.xml looks like this
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://192.168.1.22/databasename</property>
<property name="connection.username">username</property>
<property name="connection.password">password</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
any ideas?
-
4. unknown jboss error with hibernate
alesj May 16, 2011 9:52 AM (in response to b.lambe)Put the MySQL jar into AS lib dir; e.g. <JBOSS_HOME>/common/lib/
-
5. unknown jboss error with hibernate
b.lambe May 16, 2011 9:52 AM (in response to b.lambe)figured it out
You need to edit the file:
server/${servername}/conf/jboss-service.xml and add
<classpath codebase="${jboss.server.lib.url:lib}ext" archives="*"/>
rigth after
<classpath codebase="${jboss.server.lib.url:lib}" archives="*"/>
then create a directory named:server/${servername}/lib/ext
and drop your external jars in there.