2 Replies Latest reply: Dec 3, 2012 8:10 AM by cdelahun RSS

    org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bo

    975639
      Hi,


      When deploying the ADF aaplication in glassfish server getting error like,

      [#|2012-12-03T14:21:53.586+0530|INFO|glassfish3.1.2|oracle.j2ee.jsp|_ThreadID=22;_ThreadName=Thread-2;|unable to dispatch JSP page: The following exception occurred:.
      oracle.jsp.parse.JspParseException:
      Error: Validator com.sun.faces.taglib.jsf_core.CoreValidator reports:
      org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bound.

           at oracle.jsp.parse.OracleJsp2Java.reportValidationMsgs(OracleJsp2Java.java:777)
           at oracle.jsp.parse.OracleJsp2Java.invokeValidator(OracleJsp2Java.java:755)
           at oracle.jsp.parse.OracleJsp2Java.checkJspTagLibValidator(OracleJsp2Java.java:653)
           at oracle.jsp.parse.OracleJsp2Java.transformImpl(OracleJsp2Java.java:522)
           at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:593)
           at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:691)
           at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:490)
           at oracle.jsp.runtimev2.JspPageCompiler.parseAndGetTreeNode(JspPageCompiler.java:457)
           at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:624)
           at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:645)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:385)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:810)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:734)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
           at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
           at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
           at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
           at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
           at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
           at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
           at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
           at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
           at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
           at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
           at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
           at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)
           at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)
           at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:990)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:342)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:236)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
           at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at com.ge.ohr.dm.ui.sessionHandler.GEDMSessionExpiryHandler.doFilter(GEDMSessionExpiryHandler.java:61)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
           at com.ge.ohr.dm.ui.filter.GEDMSecurityFilter.doFilter(GEDMSecurityFilter.java:173)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)



      The code which in .jspx page is like;

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
      xmlns="http://www.w3.org/1999/xhtml">

      <c:set var="gedmuiBundle" value="#{adfBundle['com.ge.ohr.dm.ui.UIBundle']}"/>


      When including the 'xmlns:c="http://java.sun.com/jsp/jstl/core' it shows the error;

      The server encountered an internal error (OracleJSP error: oracle.jsp.parse.JspParseException: <br>Error: Validator com.sun.faces.taglib.jsf_core.CoreValidator reports:<br>org.xml.sax.SAXParseException: The prefix "c" for element "c:set" is not bound.<br>) that prevented it from fulfilling this request.


      Please help me on this.

      Thanks and Regards
      Binsy