Michael Engelhart wrote:
> Hi,
>
> I know this is probably an FAQ but searching the archives I couldn't find any
>answer. (BTW, I think the search routine on the mikal.org site is broken as I typed
>in "sdfkjlkersdfualsusdfl" and it returned it's standard 20 items... it's doubtful
>that "sdfkjlkersdfualsusdfl" is in any of those archived emails).
>
> If I have multiple webapps which all need to share a bunch of jars (mail.jar,
>activation.jar, etc), where do I put these libraries? In older versions of Tomcat,
>the /lib directory at the root of the tomcat directory worked fine without having to
>put any classpath directives into the startup scripts, etc. Now when I add "any"
>jar file to that directory, TC 4.0b1 refuses to start with
>
> ContainerBase.addChild: start:
> LifecycleException: start: : java.lang.IllegalArgumentException: addRepository
> Internal: java.lang.NullPointerException
> at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:5
> 96)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1136)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:2
> 906)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:81
> 6)
> etc...
>
> errors in the log file.
>
> Also adding jar files to the WEB-INF/lib directory causes 404 errors saying the
>webapp doesn't exist. If I remove the jar files from the WEB-INF/lib directory and
>restart it works again.
>
> This is all from a stock beta1 download. I didn't change any configuration files
>and haven't added anything except the test webapp directory.
>
> Any help would be appreciated..
>
> Cheers
>
> mike
Hi :-) when I use jakarta-tomcat-4.0-b1
(standalone, JDK1.3, winnt40), I found:
* when I put MyHelper.jar in .../WEB-INF/lib, it works.
* when I put MyHelper.jar in:
TOMCAT_HOME/lib
TOMCAT_HOME/lib/shared
TOMCAT_HOME/classes
from my work, it doesn't work.
* and in tomcat-dev List, I found emails which discuss
about the following :
- 'TOMCAT_HOME/lib/shared' directory and
'TOMCAT_HOME/lib/apps' directory
- modifing main.java of TC
so I Just Guess perhaps with the new version of TC,
perhaps we will put MyHelper.jar in
TOMCAT_HOME/lib/apps: all the jar files in this folder
can be used by all webapps(Only shared by all webapps).
and I also have a question:
from my work, I guess with jakarta-tomcat-4.0-b1
(standalone, JDK1.3, winnt40), CLASSPATH is
"disabled", am I right? thanks in advance!
Bo
Mar.07, 2001
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]