Hi,
well i copied mail.jar, j2ee.jar and commons-logging.jar to the
shared/lib directory.
On deployment i get this error:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@18d9850 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category)
something going on with log4j. Does this mean that log4j must be in
shred/lib also? That is quite a divergence from what i do for Sun (add
to web-inf)?
Any thoughts?
R
David Delbecq wrote:
Yes, use shared/lib, common/lib is for classes that need to be
accessible by webapps and by catalina.
see http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html for
details
David Kerber a écrit :
I thought it was .../shared/lib... ?
Alex Jalali wrote:
You would have to add those to the ../WEB-INF/lib/
In this case for javax.mail.* you would need to downlaod the java
mail API
and put the mail.jar under that folder. Any package that you place in
that
folder will be added to your class path automaticly. (for that conetext)
so there is no need to do anything else...
If you have more then one context and need to have a package
available for
all of your webapps then you can place the .jar files in
tomcat/common/lib/...
Hi,
apologies if this is an easy quesion but time is not on my side:
1. At my company we use Sun Application Server 8.1 for development and
production.
However, its not the lightest, fastest software in the world and I'm
thinking about switching to Tomcat for development and later in the
development cycle back to Sun.
Is it possible? I tried to deploy my war but i got errors about missing
classes. these classes are part of the EE Java. For example
javax.mail.*.
Is that the diffrence between Tomcat and Sun? Or is it an easy fix?
I don't use any enterprise features like EJBs or JMS.
Thanks
R
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]