-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 21
-
Component/s: Technical / Transverse
In My Studio project, I contribute the following XML fragment in Advanced Settings > Deployment Extensions:
<extension target="pages#PAGES"> <page view-id="/layouts/sncf_search_form.xhtml"> breadcrumb=command.advancedSearch </page> </extension> <extension target="faces-config#NAVIGATION"> <navigation-case> <from-outcome>search_form</from-outcome> <to-view-id>/layouts/sncf_search_form.xhtml</to-view-id> <redirect/> </navigation-case> </extension>
If I export the jar (download button). I have the following 500 Error:
HTTP Status 500 - javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /nuxeo_error.jsp at line 116 type Exception report message javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /nuxeo_error.jsp at line 116 description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /nuxeo_error.jsp at line 116 113: <h2><c:out value="${exception_message}" /></h2> 114: <inputTextarea rows="20" cols="100" readonly="true"> 115: <pre> 116: <c:out value="${stackTrace}" /> 117: </pre> 118: </inputTextarea> 119: </div> Stacktrace: org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.handleException(DefaultNuxeoExceptionHandler.java:152) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:62) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.handleException(NuxeoExceptionFilter.java:73) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:82) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) root cause javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /nuxeo_error.jsp at line 116 113: <h2><c:out value="${exception_message}" /></h2> 114: <inputTextarea rows="20" cols="100" readonly="true"> 115: <pre> 116: <c:out value="${stackTrace}" /> 117: </pre> 118: </inputTextarea> 119: </div> Stacktrace: org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.startHandlingException(DefaultNuxeoExceptionHandler.java:74) org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.handleException(DefaultNuxeoExceptionHandler.java:81) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:62) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.handleException(NuxeoExceptionFilter.java:73) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:82) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.handleException(DefaultNuxeoExceptionHandler.java:130) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:62) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.handleException(NuxeoExceptionFilter.java:73) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:82) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) root cause org.apache.jasper.JasperException: An exception occurred processing JSP page /nuxeo_error.jsp at line 116 113: <h2><c:out value="${exception_message}" /></h2> 114: <inputTextarea rows="20" cols="100" readonly="true"> 115: <pre> 116: <c:out value="${stackTrace}" /> 117: </pre> 118: </inputTextarea> 119: </div> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) com.nuxeo.connect.filter.ConnectUrlFilter.doFilter(ConnectUrlFilter.java:64) org.nuxeo.wss.servlet.BaseWSSFilter.doFilter(BaseWSSFilter.java:137) org.nuxeo.wss.servlet.FailSafeWSSFilter.doFilter(FailSafeWSSFilter.java:55) org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:64) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:79) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.handleException(DefaultNuxeoExceptionHandler.java:130) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:62) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.handleException(NuxeoExceptionFilter.java:73) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:82) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) root cause java.lang.IllegalStateException: getOutputStream() has already been called for this response org.apache.catalina.connector.Response.getWriter(Response.java:638) org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214) javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105) org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:297) org.apache.taglibs.standard.tag.common.core.OutSupport.writeEscapedXml(OutSupport.java:191) org.apache.taglibs.standard.tag.common.core.OutSupport.out(OutSupport.java:170) org.apache.taglibs.standard.tag.common.core.OutSupport.doStartTag(OutSupport.java:90) org.apache.jsp.nuxeo_005ferror_jsp._jspx_meth_c_005fout_005f2(nuxeo_005ferror_jsp.java:325) org.apache.jsp.nuxeo_005ferror_jsp._jspService(nuxeo_005ferror_jsp.java:219) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) com.nuxeo.connect.filter.ConnectUrlFilter.doFilter(ConnectUrlFilter.java:64) org.nuxeo.wss.servlet.BaseWSSFilter.doFilter(BaseWSSFilter.java:137) org.nuxeo.wss.servlet.FailSafeWSSFilter.doFilter(FailSafeWSSFilter.java:55) org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:64) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:79) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler.handleException(DefaultNuxeoExceptionHandler.java:130) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:62) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.handleException(NuxeoExceptionFilter.java:73) org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:82) org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:69) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs. Apache Tomcat/7.0.42
If also try only this contribution, I still have this error:
<extension target="pages#PAGES"> </extension> <extension target="faces-config#NAVIGATION"> </extension>