4 Replies Latest reply on Jun 20, 2008 1:44 PM by 666705

    Weblogic 10 jsp compilation problem

    666705
      HI, I've a application running under weblogic 8.1 and try to migrate to weblogic 10, when initialize the application this doesn't run and show a classcastexception, at first time I thought that the problem was the jslt library version, but when I change to the last version the problem persist, some idea?

      the application was made with spring 1.2 and hibernate 3.

      Thanks.

      ####<17-oct-2007 09H10' CEST> <Error> <HTTP> <ext459> <examplesServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1192605000453> <BEA-101107> <[weblogic.servlet.internal.WebAppServletContext@10141cd - appName: 'nucleobancario', name: 'nucleobancario.war', context-path: '/nucleobancario'] Problem occurred while serving the error page.
      weblogic.servlet.jsp.CompilationException: Failed to compile JSP /esp/login.jsp
      login.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
      <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
      ^------------------------------------------------------------------------------------^

           at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:296)
           at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
           at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
           at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
           at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
           at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
           at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
           at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
           at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
           at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
           at com.itdeusto.nucleobancario.web.NucleoBancarioServlet.doPost(Unknown Source)
           at com.itdeusto.nucleobancario.web.NucleoBancarioServlet.doGet(Unknown Source)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
           at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
           at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
           at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:731)
           at weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:181)
           at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2178)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2030)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
        • 1. Re: Weblogic 10 jsp compilation problem
          666705
          Any resolution on this? I'm getting the same thing.
          • 2. Re: Weblogic 10 jsp compilation problem
            666705
            I am also getting sililer problem.
            Any help?

            login.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
            <%--
            ^---
            --%>
            ---^
            login.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlFmtTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
            <%--
            ^---
            --%>
            ---^
            • 3. Re: Weblogic 10 jsp compilation problem
              666705
              I'm also having the same problem. Did anyone found a solution yet?
              • 4. Re: Weblogic 10 jsp compilation problem
                666705
                We are using jBPM and Hibernate in our application which runs fine on other java application servers. On Weblogic we were getting an error:
                org.hibernate.HibernateException: Errors in named queries: GraphSession...........
                By adding:
                <container-descriptor>
                <prefer-web-inf-classes>true</prefer-web-inf-classes>
                </container-descriptor>
                to our weblogic.xml, Weblogic used our Hibernate3 and antl-2.7.6 .jar files which resolved this issue but created multiple CompilationException errors in many .jsp's. (as follows)
                Error 500--Internal Server Error
                weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/jsp/struts/dashboards/portfolio_chart.jsp
                portfolio_chart.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
                <%@ taglib uri="/jstl-core" prefix="c" %>
                ^---------------------------------------^
                portfolio_chart.jsp:1:1: The validator class: "com.primavera.pvweb.taglib.JSMessageTagLibraryValidator" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
                <%@ taglib uri="/jstl-core" prefix="c" %>
                ^---------------------------------------^

                     at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:298)
                     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
                     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:165)
                     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
                     at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
                     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)

                Is this a Weblogic bug ?