-
Nov 9th, 2011, 05:02 AM
#1
Unable To integrate WebFlow2.3,SpringMVC3,Richfaces4,JSF2
Dear Friends,
I am having trouble integrating WebFlow2.3,SpringMVC3,Richfaces4,JSF2. RichFaces tab panel doesnot display and shows below characters on firefox,
Tab1
Tab2
«
↓
»
Welcome to Skills Web Application: Survey Screen
==============
mvc-config.xml
================
<bean class="org.springframework.webflow.mvc.servlet.Flo wHandlerMapping">
<property name="order" value="1" />
<property name="flowRegistry" ref="flowRegistry" />
<property name="defaultHandler">
<!-- If no flow match, map path to a view to render; e.g. the "/intro"
path would map to the view named "intro" -->
<bean class="org.springframework.web.servlet.mvc.UrlFile nameViewController" />
</property>
</bean>
<!-- Maps logical view names to Facelet templates in /WEB-INF (e.g. 'search'
to '/WEB-INF/search.xhtml' -->
<bean id="faceletsViewResolver"
class="org.springframework.web.servlet.view.UrlBas edViewResolver">
<property name="viewClass" value="org.springframework.faces.mvc.JsfView" />
<property name="prefix" value="/WEB-INF/" />
<property name="suffix" value=".xhtml" />
</bean>
<!-- Dispatches requests mapped to org.springframework.web.servlet.mvc.Controller implementations -->
<bean class="org.springframework.web.servlet.mvc.SimpleC ontrollerHandlerAdapter" />
<!-- Dispatches requests mapped to org.springframework.web.servlet.mvc.Controller
implementations -->
<!-- Dispatches requests mapped to flows to FlowHandler implementations -->
<bean class="org.springframework.faces.webflow.JsfFlowHa ndlerAdapter">
<property name="flowExecutor" ref="flowExecutor" />
</bean>
===============================
web-application-config.xml
===============================
<context:component-scan base-package="com.bna.skills.controller" />
<bean name="richfacesResourceHandler" class="org.springframework.faces.webflow.JsfResour ceRequestHandler" />
<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="order" value="0" />
<property name="mappings">
<value>
/javax.faces.resource/**=richfacesResourceHandler
</value>
</property>
</bean>
<import resource="swf-config.xml" />
<import resource="mvc-config.xml" />
<bean id="surveyController" class="com.bna.skills.controller.SurveyController"/>
<bean id="technicalController" class="com.bna.skills.controller.TechnicalControll er"/>
=============
swf-config.xml
=============
<!-- Executes flows: the central entry point into the Spring Web Flow system -->
<webflow:flow-executor id="flowExecutor">
<webflow:flow-execution-listeners>
<webflow:listener ref="facesContextListener" />
</webflow:flow-execution-listeners>
</webflow:flow-executor>
<!-- The registry of executable flow definitions -->
<webflow:flow-registry id="flowRegistry"
flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF/flows">
<webflow:flow-location-pattern value="/**/*-flow.xml" />
</webflow:flow-registry>
<!-- Configures the Spring Web Flow JSF integration -->
<faces:flow-builder-services id="facesFlowBuilderServices"
development="true" />
<!-- Installs a listener that creates and releases the FacesContext for
each request. -->
<bean id="facesContextListener"
I am recieving below error in the weblogic10.3 server console,
####<Nov 9, 2011 5:39:12 AM EST> <Error> <HTTP> <BNACB2-L02> <Managed1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1320835152672> <BEA-101017> <[ServletContext@16466470[app:SkillWeb module:SkillWeb.war path:/SkillWeb spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@d43f3 1[
GET /SkillWeb/skills/javax.faces.resource/tab.js?ln=org.richfaces HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://localhost:7003/SkillWeb/skill...execution=e2s1
Cookie: ADMINCONSOLESESSION=3g1bT6JR5w17qS1SqBM0LP6pqZJcxx Ch8yfjqJ1vKPFgnnWYWRK2!34729655; JSESSIONID=Hp2JT6YHVvY4fStvgvH2QgqBLrhXvJSSpKRydH0 FyzVp23ZVdT8S!264602608
]] Root cause of ServletException.
javax.servlet.ServletException: No adapter for handler [org.springframework.faces.webflow.JsfResourceReque stHandler@3526f3]: Does your handler implement a supported interface like Controller?
at org.springframework.web.servlet.DispatcherServlet. getHandlerAdapter(DispatcherServlet.java:1040)
at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:833)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:851)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:756)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :88)
at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.wrapRun(WebAppServletContext. java:3715)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3681)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :178)
>
Please help at your earliest... I never thought Richfaces4 integration with webflow will be so painful...
Eagerly waiting for a reply....
Thanks in advance....
Babu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules