Re: Webapp Classpath Loading

Scott Ferguson <[email protected]> Thu, 25 May 2006 10:51:14 -0700
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
On May 25, 2006, at 9:24 AM, Choate, Bryan (IHG) wrote:

> Hi all,
>
>
>
> I’m having a classpath issue…  It seems to me that on startup the  
> {server.root}/lib and {resin.home}/lib folders are being loaded,  
> but that the{server.root}/webapps/<appName>/WEB-INF/lib folder  
> isn’t.  It seems to work fine on my developers’ individual  
> machines, but on the remote environments I get an error like this:
>
>
>
> [11:55:49.288] DeployController:  
> com.caucho.config.LineConfigException: WEB-INF/web.xml:37:  
> `com.package.ClassName' is not a known servlet.  Servlets belong in  
> the classpath, often in WEB-INF/classes.
>
>
>
> The only real difference that I see is that the remote installation  
> has different values for {server.root} and {resin.home} whereas  
> locally the two are the same; ie,{resin.home}/webapps/<appName>/WEB- 
> INF/lib is being loaded, but {server.root}/webapps/<appName>/WEB- 
> INF/lib isn’t.

resin.home/webapps is not meaningful.  All default paths in the  
resin.conf are based off ${server.root}.  So the <web-app-deploy  
path="webapps"/> is relative to ${server.root} (or actually, relative  
to the virtual host's root which is relative to the server root.)
>
>
> Is there a configuration that I need to change to account for the  
> discrepancy?

Can you double check the app-default.xml.  In the past, some people  
have deleted the <class-loader> which defines the WEB-INF/classes and  
WEB-INF/lib.

-- Scott
>
>
> Thanks in advance for any help…
>
>
>
> Bryan Choate
>
> InterContinental Hotels Group
>
> http://www.ichotelsgroup.com
>
> office: 770-604-8179
>
> mobile: 678-612-3140
>
>
>
>