users@glassfish.java.net

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

From: Markus Weiß <weiss.mark_at_gmx.de>
Date: Tue, 12 Jan 2010 20:44:16 +0100

Hi Gary,

in the cluster environment (as you said node-agent) you have to use
other library directories. You have to put log4j-1.2.8.jar under the
cluster's config/lib directory (example,
domains/domain1/config/cluster1-config/lib), the library will be
available cluster wide.

Hope this helps!

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>