geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luciano Salotto" <lsalo...@gmail.com>
Subject Re: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
Date Tue, 15 Apr 2008 20:10:49 GMT
Guys,
I got read of that exception, (by deleting the jars in /lib/endorsed)
however when now I launch server I get this exception

14:53:47,451 ERROR [Digester] Digester.getParser:
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
    at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
    at
org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:486)
    at org.apache.tomcat.util.digester.Digester.getParser(Digester.java:691)
    at
org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
    at
org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:513)
    at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:545)
    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
    at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4251)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4107)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:68)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:340)
    at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:195)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)
    at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined
Compiled Code))
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java(Compiled
Code))
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java(Compiled
Code))
    at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$7f764030.addContext(<generated>)
    at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
    at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:411)
    at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined
Compiled Code))
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java(Compiled
Code))
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java(Compiled
Code))
    at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$65c0eda9.startConfiguration(<generated>)
    at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:321)
    at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:83)
    at org.apache.geronimo.system.main.Daemon.main(Daemon.java:412)
14:53:47,461 ERROR [StandardContext] Error reading tld listeners
javax.servlet.ServletException: Exception processing TLD at resource path
/WEB-INF/tld/struts-logic.tld in context
/products/hardware/configurator/bhui
javax.servlet.ServletException: Exception processing TLD at resource path
/WEB-INF/tld/struts-logic.tld in context
/products/hardware/configurator/bhui
    at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547)
    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
    at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4251)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4107)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:68)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:340)
    at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
    at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:195)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)
    at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined
Compiled Code))
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java(Compiled
Code))
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java(Compiled
Code))
    at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$7f764030.addContext(<generated>)
    at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
    at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:411)
    at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java(Inlined
Compiled Code))
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java(Compiled
Code))
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined
Compiled Code))
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java(Compiled
Code))
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java(Compiled
Code))
    at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$65c0eda9.startConfiguration(<generated>)
    at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:321)
    at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:83)
    at org.apache.geronimo.system.main.Daemon.main(Daemon.java:412)

Thanks again for all your posts!
Luciano

On Tue, Apr 15, 2008 at 3:40 PM, Luciano Salotto <lsalotto@gmail.com> wrote:

> Hi Kevan,
> "Can you elaborate on what you mean by "I tried removing those...". You
> removed inverse-classloading=true and xercesImpl.jar from your EAR? Or you
> removed xercesImpl.jar from lib/endorsed?"
>
> Removed from /lib/endorsed,  since as you mentioned, I would like to keep
> EAR same as in WAS. I also have xercesParserAPI in the EAR
> However I think it should work with inverse-classloading=true, since jars
> in the EAR should take precedence over any other, is that correct? or should
> I set something else?
> Thanks in advance
>
> Luciano
>
>
>
>
> On Tue, Apr 15, 2008 at 3:18 PM, Kevan Miller <kevan.miller@gmail.com>
> wrote:
>
> >
> > On Apr 14, 2008, at 6:18 PM, Luciano Salotto wrote:
> >
> >  David,
> > > Thanks again for another quick replay, I do have xercesImpl.jar in my
> > > EAR and inverse-classloading=true so app should use that one, however, it
> > > seems like it still going for the jar in /endorsed directory (which you
> > > remembered correctly =). I tried removing those and still same issue, any
> > > other thoughts?
> > >
> >
> > Hi Luciano,
> > Can you elaborate on what you mean by "I tried removing those...". You
> > removed inverse-classloading=true and xercesImpl.jar from your EAR? Or you
> > removed xercesImpl.jar from lib/endorsed?
> >
> > Do you have an xmlParserAPIs jar in your ear, also ? I assume so... One
> > option would be to remove both jars from your EAR. Or do you want to keep
> > your EAR artifact the same between WebSphere and Geronimo?
> >
> > --kevan
> >
> >
>

Mime
View raw message