Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: Anyone else find SeamTest broken in
 CVS?

scott.stark@jboss.org

2007-05-03

Replies:

The debugger shed some light on the problem.

In Application:

  private static Application getRIApplicationImpl(FacesContext context) {
|      ExternalContext extContext;
|      if (context != null) {
|         extContext = context.getExternalContext();
|      } else {
|         extContext =
|            FacesContext.getCurrentInstance().getExternalContext();
|      }
|      if (extContext != null) {
|         return ((Application) extContext.getApplicationMap().
|            get("com.sun.faces.ApplicationImpl"));
|      }
|      return null;
|   }
|

extContext is MockExternalContext. It delegates to MockServletContext, which doesn't contain a value for the key "com.sun.faces.ApplicationImpl"

Should be an easy fix, but I'd have to dig in to see where this stuff is initialized.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042936#4042936

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042936
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.