I tried every permutation last night and couldn't get it to work without
the managed bean.
<f:view> included.
Thanks for the pointers. Seems to be with spring. I removed it and it
works now.
Craig McClanahan wrote:
Comments interspersed below.
On 6/14/06, Marty Phee <[EMAIL PROTECTED]> wrote:
Here you go. Again this is Shale with Tiger.
13:27:47,796 ERROR [faces]:253 - Servlet.service() for servlet faces
threw exception
java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?
at
org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext
(FacesContextUtils.java:78)
at
org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
(DelegatingVariableResolver.java:134)
at
org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(
DelegatingVariableResolver.java:112)
at
org.apache.shale.spring.WebApplicationContextVariableResolver.resolveVariable
(WebApplicationContextVariableResolver.java:87)
at
Hmm ... interesting that Spring is involved here too. Are you using the
Spring integration to create managed beans from the Spring bean factory?
I've tested Spring integration and Tiger-based managed beans
separately, but
never tried them together.
org.apache.shale.view.faces.ViewViewHandler.setupViewController(
ViewViewHandler.java:285)
at
org.apache.shale.view.faces.ViewViewHandler.createView(
ViewViewHandler.java:130)
at
org.apache.shale.tiles.TilesViewHandler.createView(TilesViewHandler.java
:184)
at
org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(
NavigationHandlerImpl.java:145)
at
org.apache.shale.dialog.faces.DialogNavigationHandler.handleNavigation(
DialogNavigationHandler.java:196)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(
ActionListenerImpl.java:84)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(
LifecycleImpl.java:316)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.shale.faces.ShaleApplicationFilter.doFilter(
ShaleApplicationFilter.java:275)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Succes.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>Rejected!</TITLE>
</HEAD>
<BODY>
<CENTER>
<TABLE BORDER=5>
<TR><TH CLASS="TITLE">Success!</TH></TR>
</TABLE>
<H2>You have been successfully registered.</H2>
</CENTER>
</BODY></HTML>
I notice that this page doesn't actually have any JSF components in it.
Could you try an experiment and add <f:view/> (and the appropriate taglib
directive) to make this into a JSF page?
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]