David,
I tried running the same with Xerces :-
Xerces-J-bin.1.4.2.zip 23-Jul-2001 11:47 4.3M
but got the same error. I only moved Xerces.jar in the
webapp\struts-example\web-inf\lib directory. Is there anything else I need
to move to this directory to make the example work.
-Sanjay
----Original Message Follows----
From: David Winterfeldt <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Problem running Struts example on TOMCAT
Date: Fri, 17 Aug 2001 07:12:14 -0700 (PDT)
When I switched to xerces 1.4 that error went away.
David
--- Sanjay Choudhary <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am trying to run latest version of struts on
> Tomcat 3.2.3 (standalone)
> mode and getting the following error when I try to
> startup the Tomcat.
>
> I downloaded latest version of Xerces parser and
> Jaxp-1.1 but it doesn't
> work with anyone of these. (I copied the parser jar
> files in my
> tomcat/webapps/struts-example/web-inf/lib
> directory). I am running this on
> Windows 2000. Please let me know where I am making a
> mistake.
>
> Digester.getParser:
> javax.xml.parsers.ParserConfigurationException:
> Namespace not supported by
> SAXPa
> rser
> at
>
com.sun.xml.parser.SAXParserImpl.<init>(SAXParserImpl.java:60)
> at
>
com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactory
> Impl.java:57)
> at
>
org.apache.commons.digester.Digester.getParser(Digester.java:338)
> at
>
org.apache.commons.digester.Digester.parse(Digester.java:859)
> at
>
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
> .java:252)
> at
>
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
> .java:175)
> at
>
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
>
> at
>
org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
>
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
> StartupInterceptor.java, Compiled Code)
> at
>
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
> , Compiled Code)
> at
>
org.apache.tomcat.core.ContextManager.init(ContextManager.java,
>
> Compi
> led Code)
> at
>
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
> at
>
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> Exception in thread "main"
> java.lang.NoSuchMethodError:
> javax.xml.parsers.SAXPar
> ser: method
>
parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V
> no
> t found
>
> -Sanjay
>
>
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp