steve wrote:
Looks like the Hibernate classes are not able to see the hibernate.properties file. Can things placed in shared/lib access resources located in a web app classloader? I would not think so...
i tried placing the hibernate.properties (and tried using hibernate.cfg.xml also) to shared/lib and it didnt help too. i have all tapestry/hivemind/hibernate/mysql-connector related jars in shared/lib and tomcat can see them there.
also under servletcontext i have
org.apache.catalina.jsp_classpath that includes
/C:/dev/workspace/CustomerCRUD/context/WEB-INF/classes/;/C:/apps/apache-tomcat-5.5.12/shared/classes/; ... ;/C:/apps/apache-tomcat-5.5.12/shared/lib/mysql-connector-java-3.1.11-bin.jar; ...
/conf/Catalina/localhost/CustomerCRUD.xml
has
<Context docBase="C:/dev/workspace/CustomerCRUD/context" ...
so classpath to properties in context/WEB-INF/classes should be found.
obviously the exception is thrown by org.hibernate.dialect.DialectFactory, if i cant solve this in couple of hours, i try to change
String dialectName = props.getProperty( Environment.DIALECT );
to
String dialectName = props.getProperty( Environment.DIALECT,"org.hibernate.dialect.MySQLDialect" );
and compile hibernate3.jar again, but it would be nice to find out whats really causing this. [/i]