users@glassfish.java.net

Error java.lang.NoClassDefFoundError: org/apache/log4j/Layout

From: <glassfish_at_javadesktop.org>
Date: Tue, 12 Jan 2010 10:18:17 PST

Using Sun GlassFish Enterprise Server v2.1 Patch03 (9.1_02 Patch09) (build b02-p03), I created a node-agent and I changed the JVM Settings/Path Settings/System Classpath to include /opt/SUNWappserver/lib/ext/log4j-1.2.8.jar, but when I try to deploy any portlets that use log4j, it gives me an error stating

[#|2010-01-12T13:06:44.033-0500|SEVERE|sun-appserver2.1|debug.com.sun.portal.portletcontainer.appengine.impl|_ThreadID=12;_ThreadName=pool-1-thread-4;Disclaimer;_RequestID=1a4170cd-58c4-4a36-8e7c-1e2e397fc083;|PSPL_PAECSPPAI0013 : Error: cannot instantiate portlet: [i]<portlet name here>[/i]
java.lang.NoClassDefFoundError: org/apache/log4j/Layout

I have tried including the log4j jar in the Application Server in various places. I have tried placing the jar in different places in the JVM Settings/Path Settings and nothing seems to work in the node. It works fine in the default server, but not in the node.

Has anyone else experienced this and if so, how did you resolve it?

Thanks.
[Message sent by forum member 'gardnerg' (gary.gardner_at_usdoj.gov)]

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