0 Replies Latest reply on Mar 23, 2005 8:03 AM by wayne hauchee

    Urgent: JDeveloper application deploy to JBoss - <servletinc

    wayne hauchee Newbie

      My project is developed by using the following tools:

      - JDeveloper 10g version 10.1.2,
      - ADF UIX framework ,
      - Oracle 9.2.0.1 (Database)

      I have created a JSP file which need to be included in most of the UIX files in order to perform some desired task. It works properly in oracle JDeveloper.

      However, at the end i would like to deploy my project to JBoss-3.2.7RC1 which is supported by JDeveloper. Everything go fine but whenever i open a page which including a JSP file (An UIX including a JSP file using tag), it encountered an exception as below.

      2005-03-20 11:14:00,140 ERROR [org.jboss.web.localhost.Engine] ApplicationDispatcher[/TestDeploy-ViewController-context-root] Servlet.service() for servlet jsp threw exception
      java.lang.IllegalStateException: getOutputStream() has already been called for this response
       at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
       at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:163)
       at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:111)
       at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
       at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
       at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:182)
       at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
       at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
       at org.apache.jsp.JTest_jsp._jspService(JTest_jsp.java:63)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
       at oracle.cabo.ui.laf.base.RequestDispatcherIncluder.includeByPath(Unknown Source)
       at oracle.cabo.ui.laf.base.ServletIncludeRenderer.renderContent(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
       at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
       at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
       at oracle.cabo.ui.laf.base.DataScopeRenderer.renderContent(Unknown Source)
       at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.ui.BaseUINode.render(Unknown Source)
       at oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(Unknown Source)
       at oracle.cabo.servlet.AbstractPageBroker.renderPage(Unknown Source)
       at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
       at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
       at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
       at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
       at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
       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.doGet(ActionServlet.java:507)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
       at java.lang.Thread.run(Thread.java:534)


      Even though i just include a blank JSP file, that exception still been thrown whenever i open that page. I also try to deploy my project to WebSphere Application Server. However, It also encounter the same exception. If i remove the tag, such exception is gone completely.

      After i went through some documentation and research, i found that this exception is because of the relationship between ServletResponse's OutputStream vs. its Writer is confusing.

      I am keen on deploy my project to JBoss, so if anyone know how to fix it please help me. I really need your suggestions and advices.

      Thanks in advance..