dev@jsftemplating.java.net

Re: JSFTemplating: JSFTemplating and Seam - Issue

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Wed, 19 Sep 2007 12:14:40 -0700

Hi Barrie,

You can file issues against JSFTemplating from the JSFT web site
(https://jsftemplating.dev.java.net), click "support" then "issue
tracker". You must be logged in to be able to file issues.

This trace looks like you're using Spring, JSF RI, Woodstock, and Seam.
Seam most likely contains its own faces-config.xml file in "seam.jar".
So by placing this in the "lib" directory, you are configuring it (or at
least partially configuring it). It appears you clicked on a Woodstock
button (possibly embedded in the table), which is executing normally.
It gets to the point where it handles Navigation, which it delegates to
Seam (probably b/c seam.jar's faces-config.xml file has a custom
Navigation Handler). When Seam tries to handle this navigation, it
blows up b/c "No active application scope". That is a Seam error
message and what it did to attempt to get the "application scope" -- I
don't know.

The next step in debugging this is to look at the Seam code to see what
they are doing. The application scope should always be available,
however, if the wrong classloader is being used, or they are obtaining
the application scope in a non-standard way, then there could be a
problem. Perhaps Seam requires some extra configuration step?

What server are you using? Tomcat? GlassFish? JBoss?

Which "lib" directory did you put seam.jar in? Perhaps WEB-INF/lib will
work better if you put it in the global lib directory... this may effect
which classloader gets used... if seam.jar makes an assumption that it
is using the web-app classloader, this would be required.

If you're using GlassFish, I found this blog on a quick google search:

    
http://weblogs.java.net/blog/bleonard/archive/2006/06/running_jboss_s_1.html

However, I'm not sure that helps or not.... I need to try this myself.

Ken

Barrie Selack wrote:
>
> Let me know if I should track this type of stuff somewhere other than
> the mailing list.
>
>
>
> I'm working with Seam and JSFTemplating and am coming across some
> issues (as expected since I appear to be the first to try it). The
> below comes up using a table component (when I try to go to the next
> page). If the seam.jar is in the lib directory (not even configured) I
> get the below. If it is removed, the table works fine.
>
>
>
> java.lang.IllegalStateException: No active application scope
> org.jboss.seam.core.Init.instance(Init.java:88)
> org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:28)
> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
> javax.faces.component.UICommand.broadcast(UICommand.java:394)
> com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:106)
> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:274)
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:127)
> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
>
>
>
> Disclaimer: This e-mail message is intended only for the personal use of
> the recipient(s) named above. If you are not an intended recipient, you
> may not review, copy or distribute this message. If you have received this
> communication in error, please notify us immediately by e-mail and delete
> the original message.
> This e-mail expresses views only of the sender, which are not to be
> attributed to Rite Aid Corporation and may not be copied or distributed
> without this statement.
>