aspose file tools*
The moose likes JBoss/WildFly and the fly likes Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet" Watch "Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet" New topic
Author

Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet

Vikash Chaurasia
Greenhorn

Joined: Feb 19, 2010
Posts: 2
Hi Javaranchers,

Can anybody please tell me why I am facing the issue like "liferay-portal-jboss-tomcat-5.0-5.2.3 getting java.lang.ClassCastException in a portlet". Here goes the decription:

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 (With Tomcat-5.5.27 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... I am posting this issue in Javaranch as in Liferay forum nobody has given me any reply.

Here my portlets are deployed on Tomcat version (5.5.27) of Liferay portal5.2.3. And the data is being fetched from one URL that is coming from the Middleware running on another Tomcat server 5.5.27. The data is coming in the form of xml format. It is working fine and portlet is displaying data. But If I use another liferay-portal-tomcat-6.0-5.2.3 (which uses Tomcat 6 version), then the same data is not displayed on the portlets. However, I am not getting any error as well. But, when I deploy my portlets on liferay-portal-jboss-tomcat-5.0-5.2.3 bundle, I am getting the ClasscastException as shown below:


11:34:22,433 ERROR [[jsp]] 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)

Thanks.

 
wood burning stoves
 
subject: Liferay-JBoss-Tomcat5.2.3 getting java.lang.ClassCastException in a portlet