users@glassfish.java.net

Re: commons-logging classloading problem in v2-b41 ?

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Thu, 12 Apr 2007 22:38:31 +0530

Hi Kristof

> Appearently if I do not bundle commons-logging+log4j to my application,
> I get a NoClassDefFoundError: org/apache/commons/logging/LogFactory no
> matter if these jars are in domains/domain1/lib/applibs or whether the
> delegate setting is true or false in my sun-web.xml.

One clarification please: When you mentioned placing the jars in
domains/domain1/lib/applibs I am assuming you used

asadmin deploy --libraries commons-logging.jar, log4j.jar foo.war

while deploying the war as explained at
https://glassfish.dev.java.net/nonav/javaee5/docs/DG/beade.html#gatej

Thanks
--Siva.

glassfish_at_javadesktop.org wrote:
> Hi Jan,
>
> sorry for the late answer, I'll have more time from now tracking down this issue.
>
> Appearently if I do not bundle commons-logging+log4j to my application, I get a NoClassDefFoundError: org/apache/commons/logging/LogFactory no matter if these jars are in domains/domain1/lib/applibs or whether the delegate setting is true or false in my sun-web.xml.
>
> If I bundle these jar files, I get the following log: http://ond.vein.hu/~dyn/log-success-then-fail.txt
> It includes the first, successful deploy's trace log and right after the second, unsuccessful deploy's log, which quite honestly looks quite the same for me. The exception I got is the same as in my first post.
>
> Thanks a lot for your help,
> cheers,
>
> Kristof Jozsa
> [Message sent by forum member 'kjozsa' (kjozsa)]
>
> http://forums.java.net/jive/thread.jspa?messageID=212110
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>