RE: Webapp Classpath Loading
"Choate, Bryan (IHG)" <[email protected]> Thu, 25 May 2006 14:30:59 -0400
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <0FB3527AE8493F44B9A27C1D8E70E46B01FE18F4@hnatld1svrexg04.Amer.Corp.Local> |
Scott-
I checked into that, but in resin-pro-3.0.18/conf/app-default.xml I see
this:
<!-- configures the default class loader -->
<class-loader>
<compiling-loader path="WEB-INF/classes"/>
<library-loader path="WEB-INF/lib"/>
</class-loader>
This would appear to be what we're looking for, but neither the library
jars nor the application classes are being loaded (at least as of the
time that the webapp's web.xml file is parsed). Do I need to define
something specific in the resin.conf for each webapp?
Thanks again,
-Bryan
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Scott Ferguson
Sent: Thursday, May 25, 2006 1:51 PM
To: [email protected]
Subject: Re: Webapp Classpath Loading
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
{resin.home}/lib folders are being loaded, but that the[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,{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 <blocked::http://www.ichotelsgroup.com/>
office: 770-604-8179
mobile: 678-612-3140