You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leon Rosenberg <ro...@googlemail.com> on 2006/03/28 12:55:08 UTC

problems with switching from 1.4 to 1.5 -> org/apache/crimson/parser/XMLReaderImpl

Hi,

after switching to struts 1.2.9, tomcat 5.5.16 and jdk 1.5_06 our
webapp which run ok under 1.4 doesn't even load:

javax.servlet.UnavailableException
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)


2006-03-28 12:39:24,082 ERROR org.apache.struts.action.ActionServlet -
Unable to initialize Struts ActionServlet due to an unexpected
exception or error thrown, so marking the servlet as unavailable. 
Most likely, this is due to an incorrect or missing library
dependency.
java.lang.NoClassDefFoundError: org/apache/crimson/parser/XMLReaderImpl

the cause seems to be:
312 2006-03-28 12:32:21,895 ERROR org.apache.commons.digester.Digester
- Digester.getParser:
org.xml.sax.SAXNotRecognizedException: Feature:
http://apache.org/xml/features/validation/dynamic
        at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:213)
        at org.apache.crimson.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:143)
        at org.apache.crimson.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:126)

as far as I understand crimson isn't used anymore in 1.5. I don't
understand why the digester tries to instantiate crimson, I assume
it's because of an outdated xml-lib in the project, but which? I can't
remove them all, since the project wouldn't  compile than. Maybe
someone could throw a glance at the list and recognize the outdated
one:

activation.jar                     logkit-1.2.jar
mail.jar
mlibwrapper_jai.jar
pager-taglib.jar
pg74jdbc3.jar
antlr.jar                      j2ssh-core.jar          protomatter-1.1.8.jar
BlowfishJ.jar                  jai_codec.jar          
bsh-core-2.0b1.jar             jai_core.jar
Classifier4J-0.6.jar           jakarta-oro.jar         struts.jar
Classifier4J-Optional-0.6.jar  jakarta-regexp-1.3.jar  taglibs-mailer.jar
commons-beanutils.jar          jaxen-core.jar          utility.jar
commons-digester.jar           jaxen-jdom.jar          velocity-1.4.jar
commons-fileupload.jar         jdbm-0.12.jar
commons-logging.jar            jdom.jar                xalan.jar
commons-validator.jar          jmagick.jar             xercesImpl.jar
log4j-1.2.8.jar         xmlParserAPIs.jar

Thanx
Leon

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: problems with switching from 1.4 to 1.5 -> org/apache/crimson/parser/XMLReaderImpl

Posted by Leon Rosenberg <ro...@googlemail.com>.
On 3/29/06, Stéphane Chapeau <s....@c3consultants.fr> wrote:
> Hello,
>
> Try to remove your xerce jar, or related xml jar that are now included by
> default on JDK 1.5. We had similar problem with an old gnujaxp.jar not needed
> anymore.

Thanx, but it seems to be exact the opposite. If I have no xerces.jar
in my libs tomcat/struts tries to load crimson (weird, why should
struts/tomcat rely on something in my libs), if i add the newest
xerces it at least starts...

keeping trying :-)

>
> Good luck,
>
> Nuscly
>

Leon

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: problems with switching from 1.4 to 1.5 -> org/apache/crimson/parser/XMLReaderImpl

Posted by Stéphane Chapeau <s....@c3consultants.fr>.
Hello,

Try to remove your xerce jar, or related xml jar that are now included by 
default on JDK 1.5. We had similar problem with an old gnujaxp.jar not needed 
anymore.

Good luck,

Nuscly

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org