Announcement Announcement Module
Collapse
No announcement yet.
OpenSessionInViewFilter works in Tomcat NOT OracleAS Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OpenSessionInViewFilter works in Tomcat NOT OracleAS

    I am having problems implementing the OpensessionInViewFilter in OracleAS. Everything works fine in Tomcat 5.0.28 but I am getting errors in Oracle 9.0.4.0.0.

    Anyone know of any differences between the two containers that could be creating an issue? See anything odd in my config? Please help!!

    <============WEB-XML=================>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

    <web-app id="WebApp">
    <display-name>ACMS</display-name>

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext-hibernate.xml</param-value>
    </context-param>

    <filter>
    <filter-name>hibernateFilter</filter-name>
    <filter-class>org.springframework.orm.hibernate3.support.O penSessionInViewFilter</filter-class>
    <init-param>
    <param-name>sessionFactoryBeanName</param-name>
    <param-value>sessionFactory</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>hibernateFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
    </listener>



    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>com.metaparadigm.jsonrpc.JSONRPCServlet</servlet-name>
    <servlet-class>com.metaparadigm.jsonrpc.JSONRPCServlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
    <servlet-name>com.metaparadigm.jsonrpc.JSONRPCServlet</servlet-name>
    <url-pattern>/JSON-RPC</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
    <welcome-file>Index.jsp</welcome-file>
    </welcome-file-list>

    <taglib>
    <taglib-uri>/WEB-INF/struts-bean-el.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean-el.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html-el.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>/WEB-INF/struts-logic-el.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic-el.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-tiles-el.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles-el.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/c.tld</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/pagination.tld</taglib-uri>
    <taglib-location>/WEB-INF/pagination.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/eagle.tld</taglib-uri>
    <taglib-location>/WEB-INF/eagle.tld</taglib-location>
    </taglib>

    <resource-ref>
    <description>A data source for the database</description>
    <res-ref-name>jdbc/ACMS-Datasource-Oracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>

    <====================Struts-Config.xml=================>

    <plug-in className="org.springframework.web.struts.ContextL oaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/action-servlet.xml"/>
    </plug-in>

    <=====================action-servlet.xml==================>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>

    </beans>

    <==================Stack Trace====================>
    javax.servlet.jsp.JspException: ServletException in '/WEB-INF/jsp/Header.jsp': null
    at org.apache.struts.tiles.taglib.InsertTag$InsertHan dler.doEndTag(InsertTag.java:924)
    at org.apache.struts.tiles.taglib.InsertTag.doEndTag( InsertTag.java:462)
    at _web_2d_inf._jsp._Layout._jspService(_Layout.java: 152)
    [SRC:/WEB-INF/jsp/Layout.jsp:80]
    at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.ja va:56)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe( JspPageTable.java:569)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageT able.java:304)
    at oracle.jsp.runtimev2.JspServlet.internalService(Js pServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet .java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(Servl etRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInter nal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forward(Serv letRequestDispatcher.java:220)
    at org.apache.struts.action.RequestProcessor.doForwar d(RequestProcessor.java:1054)
    at org.apache.struts.tiles.TilesRequestProcessor.doFo rward(TilesRequestProcessor.java:292)
    at org.apache.struts.tiles.TilesRequestProcessor.proc essTilesDefinition(TilesRequestProcessor.java:268)
    at org.apache.struts.tiles.TilesRequestProcessor.proc essForwardConfig(TilesRequestProcessor.java:329)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:229)
    at gov.usda.aphis.ACMSRequestProcessor.process(ACMSRe questProcessor.java:109)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1858)
    at org.apache.struts.action.ActionServlet.doGet(Actio nServlet.java:446)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(Resource FilterChain.java:65)
    at org.springframework.orm.hibernate3.support.OpenSes sionInViewFilter.doFilterInternal(OpenSessionInVie wFilter.java:174)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:77)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(Servl etRequestDispatcher.java:604)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInter nal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(Htt pRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHan dler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHan dler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.ru n(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Unknown Source)

  • #2
    Oracle 9.0.4.0.0 bug

    When I deployed this configuration to a different version of OracleAS it worked. Oracle support was also no help. They said it was my config issue.HAHAHA! OracleAS sux.

    Comment

    Working...
    X