[jboss-user] [JBoss Seam] - Re: No application context active
cingram
do-not-reply at jboss.com
Wed Jul 18 15:24:34 EDT 2007
The solution to this answer is not to forget about the JSF lifecyle.
| new Initialization(flex.messaging.FlexContext.getServletConfig().getServletContext()).init();
| Lifecycle.setServletContext(flex.messaging.FlexContext.getServletConfig().getServletContext());
| Lifecycle.beginCall();
|
| Object obj = null;
| try {
| obj = Component.getInstance(compName);
| Lifecycle.endCall();
| } catch (Exception ex) {
| ex.printStackTrace();
| ServiceException e = new ServiceException();
| String msg = "Seam Component named '" + compName+ "'does not exist.";
| e.setMessage(msg);
| e.setRootCause(ex);
| e.setDetails(msg);
| e.setCode("Server.Processing");
| throw e;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065542#4065542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065542
More information about the jboss-user
mailing list