dcsimg
Getting Error when try to run a struts example
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   abdul_qadeer
Posted On:   Wednesday, November 21, 2001 05:16 AM

Hello Every body I am getting the following error when I try to run a Struts Example. I am using Struts 1.0 bete-2. javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl. (SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:57) at org.apache.commons.digester.Digester.getParser(Digester.java:508) at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274) at org.apache.struts.action.ActionServlet.i   More>>

Hello Every body
I am getting the following error when I try to run a Struts Example. I am using Struts 1.0 bete-2.

javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser
at com.sun.xml.parser.SAXParserImpl. (SAXParserImpl.java:60)
at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:57)
at org.apache.commons.digester.Digester.getParser(Digester.java:508)
at org.apache.commons.digester.Digester.getReader(Digester.java:527)
at org.apache.commons.digester.Digester.parse(Digester.java:1206)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)
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(LoadOnStartupInterceptor.java:130)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
2001-11-21 02:03:26 - path="/strutsblank" :action: init
2001-11-21 02:03:26 - path="/strutsblank" :action: Loading application resources from resource ApplicationResources
2001-11-21 02:03:26 - path="/strutsblank" :action: Initializing configuration from resource path /WEB-INF/struts-config.xml
Exception in thread "main" java.lang.NoSuchMethodError
at org.apache.commons.digester.Digester.getReader(Digester.java:527)
at org.apache.commons.digester.Digester.parse(Digester.java:1206)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)
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(LoadOnStartupInterceptor.java:130)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Any suggestion ?

Tank you in advance.

   <<Less

Re: Getting Error when try to run a struts example

Posted By:   Ted_Husted  
Posted On:   Wednesday, November 21, 2001 05:48 PM

From the looks of it, you are actually use a
nightly build, since Struts 1.0 used an internal
version of the Digster (not the commons version).


In which case, you would want to be sure that
the installations prerequesites have been met,
especially the need for JAXP 1.1. Also be sure
that only one JAXP or Xerces JAR is exposed.


HTH -Ted

About | Sitemap | Contact