Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Spring framework with JDeveloper

436808Jan 20 2005 — edited Mar 23 2005
Hi,
I'm developing to an application using JDeveloper. I need to use Spring framework, somebody has used it, integrating it with JDeveloper ?

Thanks

Comments

168097
We're using the IOC and AOP piece of Spring and using JDeveloper. Haven't tried the web piece of Spring. I think the TopLink guys have released an "unsupported" Spring/Toplink integration piece.
Shay Shmeltzer-Oracle
You'll bascially need to add the spring jars as a new library to your project properties, and you are ready to go.

For the TopLink for Spring integration check out:
http://www.oracle.com/technology/products/ias/toplink/preview/spring/index.html
228954
Hello,

How do you use ADF with Spring in a JSF application? I am trying and it seems like my ADF filter and JSf-Spring integration filter conflict with each other. Here the stanzas from my web.xml file. Ther ADF Internal listener fails with a null ptr or a java.lang.ArrayIndexOutOfBoundsException when I attempt to access my JSF page (no ADF tags are in this page but it does use Spring/JSF managed beans). If I remove the ADF filter and retry everything works???

<!-- Runtime exception -->
java.lang.ArrayIndexOutOfBoundsException: 3
javax.faces.component.UICommand.restoreState(UICommand.java:268)
javax.faces.component.html.HtmlCommandButton.restoreState(HtmlCommandButton.java:826)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:999)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:249)
com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:246)
oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:192)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:264)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:151)
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:123)
de.mindmatters.faces.spring.RequestHandledFilter.doFilter(RequestHandledFilter.java:117)




<!-- Faces Filter -->
<filter>
<filter-name>faces</filter-name>
<filter-class>oracle.adfinternal.view.faces.webapp.FacesFilter</filter-class>
<init-param>
<param-name>faces-servlet-url-pattern</param-name>
<param-value>/faces/*</param-value>
</init-param>
</filter>

<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>RequestHandled</filter-name>
<filter-class>de.mindmatters.faces.spring.RequestHandledFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RequestHandled</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>


<!-- Faces Filter Mappings -->
<filter-mapping>
<filter-name>faces</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>faces</servlet-name>
</filter-mapping>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 20 2005
Added on Jan 20 2005
3 comments
396 views