mburbidg
Jun 4th, 2008, 05:04 PM
I cannot resolve the following exception from the Spring-DM based web application:
java.lang.NoClassDefFoundError: org/w3c/dom/html/HTMLDocument
at org.apache.xml.serialize.OutputFormat.whichMethod( Unknown Source)
at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
at com.adobe.dandelion.XmlUtils.serializeXml(XmlUtils .java:64)
at com.adobe.dandelion.BaseView.serializeXml(BaseView .java:89)
at com.adobe.dandelion.categories.CategoriesView.gene rateXml(CategoriesView.java:54)
at com.adobe.dandelion.categories.CategoriesView.rend erBody(CategoriesView.java:40)
at com.adobe.dandelion.BaseView.render(BaseView.java: 53)
at org.springframework.web.servlet.DispatcherServlet. render(DispatcherServlet.java:1173)
at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:901)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:613)
I'm using equinox 3.2.2 with catalina embedded within. I'm using com.springsource.org.apache.xerces-2.8.1.jar which I downloaded from BRIT. But it is missing the stuff that is in xml-apis.jar that comes with the standard xerces distribution. So using the bnd tool I created a bundle from xml-apis.jar. If I do a status I can see that the library was resolved.
I've included an import for the package in my manifest.
I've also tried just including the standard xerces jars in my war, but still get the same missing class def.
Has anyone successfully user xerces? Was there a special trick?
Thanks,
Michael-
java.lang.NoClassDefFoundError: org/w3c/dom/html/HTMLDocument
at org.apache.xml.serialize.OutputFormat.whichMethod( Unknown Source)
at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
at com.adobe.dandelion.XmlUtils.serializeXml(XmlUtils .java:64)
at com.adobe.dandelion.BaseView.serializeXml(BaseView .java:89)
at com.adobe.dandelion.categories.CategoriesView.gene rateXml(CategoriesView.java:54)
at com.adobe.dandelion.categories.CategoriesView.rend erBody(CategoriesView.java:40)
at com.adobe.dandelion.BaseView.render(BaseView.java: 53)
at org.springframework.web.servlet.DispatcherServlet. render(DispatcherServlet.java:1173)
at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:901)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :96)
at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:613)
I'm using equinox 3.2.2 with catalina embedded within. I'm using com.springsource.org.apache.xerces-2.8.1.jar which I downloaded from BRIT. But it is missing the stuff that is in xml-apis.jar that comes with the standard xerces distribution. So using the bnd tool I created a bundle from xml-apis.jar. If I do a status I can see that the library was resolved.
I've included an import for the package in my manifest.
I've also tried just including the standard xerces jars in my war, but still get the same missing class def.
Has anyone successfully user xerces? Was there a special trick?
Thanks,
Michael-