Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Deploying shared .jar 's

Deploying shared .jar 's

2006-12-11       - By David Kerber

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Caldarale, Charles R wrote:

>>From: David Kerber [mailto:dckerber@(protected)]
>>Subject: Re: Deploying shared .jar's
>>
>>My webapps can't see classes in the .jar that is in the shared/lib
>>folder; I get the ClassNotFound errors when I try.
>>    
>>
>
>Check your conf/catalina.properties file and make sure this line is
>present:
>shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
>b/*.jar
>  
>
It's there, but it got me to looking at some other stuff, and I think I
now know what's going on.  Can you please tell me if this makes sense:

I have 3 different apps on one machine, each running in its own tomcat
instance using the catalina_base env var.  The catalina_base locations
are all outside of catalina_home.  What I was hoping was that I could
put my shared jars in catalina_home, but after re-reading the
description of cataline_base (again), it appears that I can't put shared
classes in catalina_home if I'm using the apps from catalina_base.

What I have is this:

Catalina_home =
e:\program files\Apacha\Tomcat5\all the sub-dirs

Catalina_base(s) =
e:\tomcatclients\webapp1
                                    \conf
                                    \webapps
                                    etc
e:\tomcatclients\webapp2
                                    \conf
                                    \webapps
                                    etc
etc.

With the way I read it now, anything I try to put under
catalina_home/shared/lib won't be visible to the webapps in the various
catalina_base folders.  Is this correct?  If so, it explains my trouble.

If not, then I've got to dig even deeper.

Thanks!

>If the line is there (and not commented out), is there possibly an
>access permissions problem with the jars you're putting into shared/lib,
>especially if running as a service?  You might also try turning on
>-verbose:class and see what's being loaded from where.
>
> - Chuck
>  
>



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.