I've just downloaded struts (the binary version) and am trying to get the
struts-example to run. After reading the install guide my understanding is
that struts should work with any XML parser. If I run the example with
jaxp.jar and crimson.jar in WEB-INF/lib it loads OK. But, if I replace those
jars with xerces.jar (verison 1.4.1) I get the following exception.

This is TC4 release BTW

It seems like there is a dependency on crimson (judging by the class name).
Does the binary version only work with crimson or is there a config option
somewhere?

java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:155)
        at org.apache.struts.digester.Digester.getParser(Digester.java:275)
        at org.apache.struts.digester.Digester.parse(Digester.java:755)
        at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
        at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
Source)
        at org.apache.catalina.core.StandardContext.start(Unknown Source)
        at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
        at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
        at org.apache.catalina.core.StandardHost.install(Unknown Source)
        at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
        at org.apache.catalina.startup.HostConfig.start(Unknown Source)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
Source)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
        at org.apache.catalina.core.ContainerBase.start(Unknown Source)
        at org.apache.catalina.core.ContainerBase.start(Unknown Source)
        at org.apache.catalina.core.StandardEngine.start(Unknown Source)
        at org.apache.catalina.core.StandardService.start(Unknown Source)
        at org.apache.catalina.core.StandardServer.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

Kevin Jones
Developmentor
www.develop.com

Reply via email to