Hi,
Hmm... I'd guess it should go in the same repository as the normal
WebappLoader, which is $CATALINA_HOME/server/lib.
$CATALINA_HOME/server/classes should be functionally equivalent for
unpacked classes, so it's strange you get the CNFE when you put your
loader there.  Try packaging your loader in a jar file and putting that
jar in server/lib.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Setera, Craig [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 23, 2004 11:55 AM
>To: [EMAIL PROTECTED]
>Subject: ClassNotFoundException implementing new WebappLoader
>
>Hello,
>
>I'm trying to implement and register a new WebappLoader implementation
with
>Tomcat 5.0.19.  I've created a subclass of the standard WebappLoader
class.
>In addition, I have added the Loader element to my Context element with
my
>new class name specified.  When starting the server, I get a
ClassNotFound
>exception when it attempts to do a Class.forName for my class in the
>CreateLoaderRule.begin method.  I've tried my class in <tomcat-
>root>/common/classes and also in <tomcat-root>/server/classes with no
luck.
>Can anyone offer any idea what I might be doing wrong and how I might
solve
>the problem?
>
>Thanks,
>Craig
>
> SEVERE: Begin event threw exception
> java.lang.ClassNotFoundException:
>com.spss.catalina.loader.SPSSWebappLoader
>         at java/lang/Throwable.<init>(Throwable.java:217)
>         at java/lang/Exception.<init>(Exception.java:59)
>         at
>java/lang/ClassNotFoundException.<init>(ClassNotFoundException.java:65)
>         at
>org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL
oade
>r.java:891)
>         at
>org/apache/catalina/loader/StandardClassLoader.loadClass(StandardClassL
oade
>r.java:756)
>         at
java/lang/ClassLoader.loadClassInternal(ClassLoader.java:312)
>         at java/lang/Class.forName(Class.java:141)
>         at
>org/apache/catalina/startup/CreateLoaderRule.begin(ContextRuleSet.java:
314)
>         at
>org/apache/commons/digester/Digester.startElement(Digester.java:1273)
>         at
>org/apache/catalina/util/CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>         at
>org/apache/xerces/parsers/AbstractSAXParser.startElement(Unknown
Source)
>         at
>org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>         at
>org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>         at
>org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>         at
>org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>         at org/apache/xerces/parsers/XML11Configuration.parse(Unknown
>Source)
>         at org/apache/xerces/parsers/XML11Configuration.parse(Unknown
>Source)
>         at org/apache/xerces/parsers/XMLParser.parse(Unknown Source)
>         at org/apache/xerces/parsers/AbstractSAXParser.parse(Unknown
>Source)
>        at
org/apache/commons/digester/Digester.parse(Digester.java:1567)
>        at
>org/apache/catalina/core/StandardHostDeployer.install(StandardHostDeplo
yer.
>java:519)
>        at
>org/apache/catalina/core/StandardHost.install(StandardHost.java:906)
>        at
>org/apache/catalina/startup/HostConfig.deployDescriptors(HostConfig.jav
a:52
>7)
>        at
>org/apache/catalina/startup/HostConfig.deployApps(HostConfig.java:472)
>        at
>org/apache/catalina/startup/HostConfig.start(HostConfig.java:1008)
>        at
>org/apache/catalina/startup/HostConfig.lifecycleEvent(HostConfig.java:3
94)
>        at
>org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
>rt.java:166)
>        at
>org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1134)
>        at
>org/apache/catalina/core/StandardHost.start(StandardHost.java:832)
>        at
>org/apache/catalina/core/ContainerBase.start(ContainerBase.java:1126)
>        at
>org/apache/catalina/core/StandardEngine.start(StandardEngine.java:521)
>        at
>org/apache/catalina/core/StandardService.start(StandardService.java:519
)
>        at
>org/apache/catalina/core/StandardServer.start(StandardServer.java:2345)
>        at
org/apache/catalina/startup/Catalina.start(Catalina.java:594)
>        at
>sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
>        at
>sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
>        at java/lang/reflect/Method.invoke(Method.java:324)
>        at
org/apache/catalina/startup/Bootstrap.start(Bootstrap.java:297)
>
>
>Craig Setera
>Master Software Engineer, SPSS, Rochester MN
>
>Sun Certified Java Programmer, Developer and
>Web Component Developer
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to