You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by vaibhav vashishtha <va...@gmail.com> on 2007/08/29 10:56:25 UTC
Facing problems with class loaders in tomcat 5.0
Hi list,
i am currently facing a problem with the class loaders of tomcat 5.0
i need a no of common jar files to be accessed by multiple web apps which
are deployed in the webapps directory of tomcat
Problem description:
1. Need to place the common jars(to different web applications) at a central
location which can be accessed by different web applications at runtime
What i have tried:
1. I have tried placing the jars in the shared/lib and common/lib
directories but of no avail : tomcat doesn't start
2. I have put the jars in the root directory of webapps folder : tomcat
starts but web app fails to initialize
Main Concerns:
1. the jars should be accessible at runtime.
2. is there a way to configure the common and shared classloaders for
accessing the jars at runtime
Re: Facing problems with class loaders in tomcat 5.0
Posted by David Smith <dn...@cornell.edu>.
Questions/comments inline:
vaibhav vashishtha wrote:
> Hi list,
>
> i am currently facing a problem with the class loaders of tomcat 5.0
>
> i need a no of common jar files to be accessed by multiple web apps which
> are deployed in the webapps directory of tomcat
>
> Problem description:
>
> 1. Need to place the common jars(to different web applications) at a central
> location which can be accessed by different web applications at runtime
>
> What i have tried:
>
> 1. I have tried placing the jars in the shared/lib and common/lib
> directories but of no avail : tomcat doesn't start
>
common/lib should work "out of the box". What do you mean by "tomcat
doesn't start"? Can you post the very first error message/stack trace
from your catalina.out log file?
> 2. I have put the jars in the root directory of webapps folder : tomcat
> starts but web app fails to initialize
>
root directory of webapps folder? Could you write this out as a path so
we can see what you mean? I ask, because as I read it you are placing
the jars in $TOMCAT_HOME/webapps/ROOT. That will not work -- for the
ROOT webapp, they need to be in $TOMCAT_HOME/webapps/ROOT/WEB-INF/lib.
> Main Concerns:
>
> 1. the jars should be accessible at runtime.
> 2. is there a way to configure the common and shared classloaders for
> accessing the jars at runtime
>
>
--David
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Facing problems with class loaders in tomcat 5.0
Posted by Pid <p...@pidster.com>.
vaibhav vashishtha wrote:
> Hi list,
>
> i am currently facing a problem with the class loaders of tomcat 5.0
>
> i need a no of common jar files to be accessed by multiple web apps which
> are deployed in the webapps directory of tomcat
>
> Problem description:
>
> 1. Need to place the common jars(to different web applications) at a central
> location which can be accessed by different web applications at runtime
>
> What i have tried:
>
> 1. I have tried placing the jars in the shared/lib and common/lib
> directories but of no avail : tomcat doesn't start
What error messages are there in catalina.out?
> 2. I have put the jars in the root directory of webapps folder : tomcat
> starts but web app fails to initialize
You mean in the WEB-INF/lib subfolder of the root application?
> Main Concerns:
>
> 1. the jars should be accessible at runtime.
> 2. is there a way to configure the common and shared classloaders for
> accessing the jars at runtime
>
p