Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Struts1.1, subclassing controller servlet

Reply
Thread Tools

Struts1.1, subclassing controller servlet

 
 
Sebastian Millies
Guest
Posts: n/a
 
      05-28-2004
Hi,

I'm using a subclass of the standard controller servlet class
in my Struts1.1 web app.

I have to include the commons digester library in my web app
to avoid a "java.lang.NoClassDefFoundError:
org/apache/commons/digester/RuleSet"
when loading the servlet.

This should be unnecessary - after all, the servlet declaration
in the web.xml file is telling Tomcat where to look for the class.
I must be overlooking something. How can I avoid
distributing the digester.jar with my application?

Thanks for a hint,
Sebastian


 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      05-28-2004

"Sebastian Millies" <(E-Mail Removed)> wrote in
message news:40b7521b$0$281$(E-Mail Removed)...
> Hi,
>
> I'm using a subclass of the standard controller servlet class
> in my Struts1.1 web app.
>
> I have to include the commons digester library in my web app
> to avoid a "java.lang.NoClassDefFoundError:
> org/apache/commons/digester/RuleSet"
> when loading the servlet.
>
> This should be unnecessary - after all, the servlet declaration
> in the web.xml file is telling Tomcat where to look for the class.
> I must be overlooking something. How can I avoid
> distributing the digester.jar with my application?
>
> Thanks for a hint,
> Sebastian
>
>


Struts requires Commons Digester to run. It uses it for parsing the XML
config files. Unless you've overridden the initialisation methods in your
subclass and are using something other than Digester, the package will still
be required. I was under the impression that most of the other commons jars
included with Struts were required if you want to use the full
functionality.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MVC Controller question - Calling one Controller from another Michael Earls ASP .Net 3 03-24-2009 02:12 AM
Promotion of Additional Domain Controller to a Domain Controller Abaaseen MCSE 9 01-19-2009 07:31 PM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Tomcat: POST from one servlet or internal class to another servlet Sean Clarke Java 1 01-07-2004 02:22 PM
how to get my servlet configuration before the servlet is initialised Andy Fish Java 4 12-17-2003 09:47 PM



Advertisments