You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Rob S." <rs...@home.com> on 2000/07/24 23:35:35 UTC
Struts? RE: Error on Startup
> Exception in Thread "main" java.lang.NoClassDefinitionFound:
> javax/xml/parsers/ParserFactory
> at org.apache.struts.digester.Digester.getParser(Digester.java:284)
Checking jaxp.jar and parser.jar, this isn't anywhere.
Maybe this has something to do specifically with Struts? Re:
> at org.apache.struts.digester.Digester.getParser(Digester.java:284)
Anyone care to chime in? The only place I see ParserFactory is:
org.xml.sax.helpers.ParserFactory
- r
> -----Original Message-----
> From: gbhalerao@ironmax.com [mailto:gbhalerao@ironmax.com]
> Sent: July 24, 2000 12:24 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: Error on Startup
>
>
>
> Thanks Rob!
>
> I have included all the jar files in the TOMCAT\lib. And added %TOMCAT%
> \lib to the CLASSPATH. But still I get the error.
>
> Any Ideas.
>
Re: Struts? RE: Error on Startup
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Rob S." wrote:
> > Exception in Thread "main" java.lang.NoClassDefinitionFound:
> > javax/xml/parsers/ParserFactory
> > at org.apache.struts.digester.Digester.getParser(Digester.java:284)
>
> Checking jaxp.jar and parser.jar, this isn't anywhere.
>
> Maybe this has something to do specifically with Struts? Re:
>
> > at org.apache.struts.digester.Digester.getParser(Digester.java:284)
>
> Anyone care to chime in? The only place I see ParserFactory is:
>
> org.xml.sax.helpers.ParserFactory
>
As documented in the Struts documentation (see the README file in the top level
directory), Struts requires access to a JAXP-compatible XML parser in order to
read its configuration files. One choice for this is the JAXP reference
implementation available at <http://java.sun.com/xml>; another choice is Xerces
from <http://xml.apache.org>. The JAR files for your parser must be visible on
the system classpath used to start your servlet container, or they must be
copied into the WEB-INF/lib directory for the "struts-example" application.
>
> - r
>
Craig McClanahan