Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
vikash kumar chaurasia
Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet
February 17, 2010 5:15 AM
Answer

vikash kumar chaurasia

Rank: Junior Member

Posts: 97

Join Date: January 8, 2010

Recent Posts

Hi All,

I am facing the following exception while deploying my Portlets on JBoss-Tomcat bundle 5.2.3. However, it is working fine on Liferay Tomcat 5.2.3 Version. Please tell me what may be the reason:
In my JSP I have used XPath, and fetching the data from a URL. It's urgent for my project...


11:34:22,433 ERROR [] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be
cast to org.apache.xml.dtm.DTMManager
at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:135)
at org.apache.xpath.XPathContext.<init>(XPathContext.java:100)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPat
hUtil.java:519)
at org.apache.taglibs.standard.tag.common.xml.SetTag.doStartTag(SetTag.j
ava:69)
at org.apache.jsp.jsp.ticket_002dresults.usd_002dresults_jsp._jspx_meth_
x_005fset_005f0(usd_002dresults_jsp.java:587)
at org.apache.jsp.jsp.ticket_002dresults.usd_002dresults_jsp._jspService
(usd_002dresults_jsp.java:209)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
22)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter
.java:154)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java
:94)
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(Po
rtalClassLoaderFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter
.java:154)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZip
Filter.java:140)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java
:91)
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(Po
rtalClassLoaderFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter
.java:154)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java
:94)
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(Po
rtalClassLoaderFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter
.java:154)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java
:94)
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(Po
rtalClassLoaderFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
ss(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
e(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:619)
Pravin Bansal
RE: Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a por
June 2, 2010 5:26 AM
Answer

Pravin Bansal

Rank: New Member

Posts: 4

Join Date: March 12, 2010

Recent Posts

This is probably due to the different version of xalan.jar in your classpath one which is provided by sun and other is provided by apache.