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

stu2 do-not-reply at jboss.com
Thu May 3 14:08:10 EDT 2007


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



More information about the jboss-user mailing list