users@glassfish.java.net

Re: GlassFish v2.1 and Hibernate Persistence

From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Aug 2009 07:23:34 PDT

Oops, left out the classpath! Sorry!

add log4j jar to classpath in JVM Settings (for non-clustered: Admin Console -> Application Server -> JVM Settings -> Path Settings; clustered: Admin Console -> Configurations -> [your config] -> JVM Settings -> Path Settings)

add config directory to classpath (so it will find log4j.properties)

For example:
/glassfish/domains/domain1/lib/log4j-1.2.14.jar
/glassfish/domains/domain1/config
[Message sent by forum member 'culli' (culli)]

http://forums.java.net/jive/thread.jspa?messageID=359913