[JBossWS] - Re: getting ip address from webservice
by RomeuFigueira
What if one doesn't have that property listed (remoteaddr?)
public boolean handleRequest(MessageContext messageContext)
| {
| String IP = (String) messageContext.getProperty("remoteaddr");
|
| System.out.println("Remote IP: " + IP);
|
| Iterator propertyNames = messageContext.getPropertyNames( );
| while ( propertyNames.hasNext( ) )
| {
| String keyName = (String) propertyNames.next( );
| System.out.println("Key: " + keyName + " Val: " + messageContext.getProperty( keyName ).toString() );
| }
| ....
| continues
| ....
|
The first one gives me null, and listing the properties shows no "remoteaddr".
| 2006-10-31 11:57:34,784 INFO [STDOUT] Remote IP: null
| 2006-10-31 11:57:34,784 INFO [STDOUT] Key: javax.xml.ws.servlet.request Val:org.apache.catalina.connector.RequestFacade@12e2fba
| 2006-10-31 11:57:34,784 INFO [STDOUT] Key: javax.xml.ws.servlet.context Val:org.jboss.ws.server.ServletEndpointContextImpl@11fc6b2
| 2006-10-31 11:57:34,784 INFO [STDOUT] Key: javax.xml.ws.servlet.response Val:org.apache.catalina.connector.ResponseFacade@31c43f
| 2006-10-31 11:57:34,784 INFO [STDOUT] Key: javax.xml.ws.servlet.session Val:org.apache.catalina.session.StandardSessionFacade@12dd1b8
|
Is there anything more to configure or am I missing something else in my calls?
Soft: Jboss AS 4.0.5, JBossWS 1.0.3 GA, Server Windows and HP-UX
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982034#3982034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982034
19 years
[JBoss Seam] - Crazy java.lang.NoClassDefFoundError
by jpviragine
Hi, I?m get crazy with this stuff:
Sometimes I start JBoss (jems 4.0.4 GA ? Seam 1.1 and MyFaces 1.1.4) and get a java.lang.NoClassDefFoundError (as shown follow) when run my application.
So, I shutdown JBoss and start it again and suddenly all works fine.
I don?t think that?s a classpath issue.
Anyone have any idea what?s happens?
Thanks in advance.
P.S. Sorry for my English. :-)
My components.xml:
<components>
|
| <component name="org.jboss.seam.core.init">
| <property name="jndiPattern">elo/#{ejbName}/local</property>
| </component>
|
| <component class="org.jboss.seam.core.Jbpm">
| <property name="pageflowDefinitions">
| pageflow.jpdl.xml
| </property>
| </component>
|
| <component
| class="org.jboss.seam.selectitems.SelectItemsPersistenceConfig">
| <property name="persistenceUnitJndiName">
| java:/selectItemsEntityManagerFactory
| </property>
| </component>
|
| <component class="org.jboss.seam.core.Ejb" installed="false" />
|
| </components>
Stack trace:
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: eleitorFacade
at org.jboss.seam.Component.newInstance(Component.java:1578)
at org.jboss.seam.Component.getInstance(Component.java:1492)
at org.jboss.seam.Component.getInstance(Component.java:1466)
at org.jboss.seam.Component.getInstanceToInject(Component.java:1693)
at org.jboss.seam.Component.injectFields(Component.java:1219)
at org.jboss.seam.Component.inject(Component.java:989)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
... 108 more
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.jboss.seam.Component.createProxyFactory(Component.java:1787)
at org.jboss.seam.Component.getFactory(Component.java:953)
at org.jboss.seam.Component.wrap(Component.java:944)
at org.jboss.seam.Component.instantiateSessionBean(Component.java:912)
at org.jboss.seam.Component.instantiate(Component.java:898)
at org.jboss.seam.Component.newInstance(Component.java:1574)
... 202 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
... 210 more
Caused by: java.lang.NoClassDefFoundError: br/gov/tse/secad/service/EleitorFacade
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
... 216 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982029#3982029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982029
19 years
[JBoss Seam] - Problems with application-like behaviour project
by raffaele.camanzo
Hi All,
I'm currently developing an application-like project using Seam 1.1 beta 1 (CVS ver. 30/10), JBoss 4.0.5, Myfaces and Facelets (I removed everything about Tomahawk because of too many headaches).
This project provides its services with a tabbed layout (I made a first tryout using Tomahawk tabbed pane component... But too many strange behaviours, waste of time and headaches) allowing the user to open a tab (or give the caption to an already opened) from a menu or from another tab keeping the current state (for example the results of a search) of each of them (it is not reasonable that a search page does not keep track of the last search request if I move on a detail page for a result item and then I move back to the search page).
To achieve this goal using Seam I want to create a conversation for each tab currently opened. In order to resume the current state (what the user did on it) of the selected tab I tried to create conversations with an explicit ID (Seam should detect that there is a conversation with the same identifier, resume that one and not call again the begin method).
To check the capability I created a simple project which merely creates a list of links which call the same action (the @Begin method of my conversation with a static id... in this example). I was expecting that the first time Seam creates the conversation and the others refers to it, but this is the result of my tryouts:
1 - The first, the best possible for my needs and probably what-I-cannot-do tryout:
The h:commandLink action was a method of a session scoped stateful bean (something like a session handler) with the logics to retrieve the outcome related to the tab-action and, using the page-action model (faces-config.xml + pages.xml), call the begin method of the correct conversation.
Unfortunately this approach fails because when the Manager tries to set the id of the current conversation, the conversation list is unmodifiable and I get an UnsupportedOperationException; but this is reasonable because Gavin told in more than a post that the conversation is strictly related to the request boundaries and then probably when Seam tries to set the conversation id the request handling is in a state that makes this operation unsafe (even if there is a redirection to a different action handler, and should seem a different request I think that the http request is only one and the redirection is an internal handling of Seam).
2 ? Not the best? but a good one:
The h:commandLink action is the begin method of the conversation which handles the tab behaviour, the first time the action is called Seam reads the id, does not find it in the conversations list and creates the conversation with the given identifier (and calls the begin method). If the user clicks the link another time Seam finds the conversation and switches to that one without invoking the begin method. Unfortunately also this approach fails, indeed, Seam throws an exception when I click the link the second time saying to me that is unable to render a view for a null viewId (I like the Seam logics of not to call again the begin method but I hoped that the outcome was stored and passed to the Seam rendering handler to render the same view). Probably I left something and I hope that someone can help me to understand where my logics is wrong and how can I solve this problem, but now? a little bit of code to have a wider vision of the problem:
Layout.xhtml (the page with the list of links)
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:c="http://java.sun.com/jstl/core">
|
| <f:view>
|
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
| <title><h:outputText value="#{mainmsg.title}" /></title>
| <link href="css/main.css" rel="stylesheet" type="text/css"/>
| </head>
|
| <body>
|
| <div id="document">
| <div id="header">
| <div id="title"></div>
| <div id="status">
| <ui:insert name=?status? />
| </div>
| </div>
| <div id="container">
| <div>
| <h:form>
| <ul>
| <c:forEach items="#{sessionHandler.contextTabs}" var="contextTab">
| <li>
| <h:commandLink action="#{provaAction.startConversation}">
| <h:outputText value="label" />
| <f:param name="token" value="#{contextTab.token}" />
| <f:param name="conversationPropagation" value="nest" />
| </h:commandLink>
| </li>
| </c:forEach>
| </ul>
| </h:form>
| <ui:insert name="contextmanager" />
| </div>
| </div>
| </div>
|
| </body>
|
| </f:view>
| </html>
|
ProvaAction.java (the tab handler)
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.faces.context.FacesContext;
| import javax.faces.event.ActionEvent;
|
| import org.jboss.logging.Logger;
| import org.jboss.seam.annotations.Begin;
| import org.jboss.seam.annotations.Conversational;
| import org.jboss.seam.annotations.Create;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.End;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Out;
| import org.jboss.seam.core.Conversation;
|
| @Stateful
| @Name("provaAction")
| @Conversational
| public class ProvaAction implements Prova {
|
| @Begin(id="mypersonalid", nested=true)
| public String startConversation() {
| FacesContext context = FacesContext.getCurrentInstance();
| String tok = (String) context.getExternalContext().getRequestParameterMap().get("token");
| Logger.getLogger(this.getClass()).info("TOKEN IS: " + tok);
|
|
| Logger.getLogger(this.getClass()).info("CONVERSATION IS: " + Conversation.instance().getId());
| return "prova";
| }
|
| @End
| public String endConversation() {
| // TODO Auto-generated method stub
| return null;
| }
|
| @Remove @Destroy
| public void destroy() {
| // TODO Auto-generated method stub
|
| }
|
| }
|
exception:
| 2006-10-31 12:21:41,797 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-10-31 12:21:41,797 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-10-31 12:21:41,797 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-10-31 12:21:41,797 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: mypersonalid
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: mypersonalid
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(myperson
| alid)
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] committing transaction after phase: RESTORE_VIEW(1)
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,798 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesMessages
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.Component] initializing new instance of: facesMessages
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.facesMessages
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.facesMessages
| 2006-10-31 12:21:41,799 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.facesMessages
| 2006-10-31 12:21:41,805 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: sessionHandler
| 2006-10-31 12:21:41,805 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: sessionHandler
| 2006-10-31 12:21:41,805 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,806 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.currentTab
| 2006-10-31 12:21:41,806 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.currentTab
| 2006-10-31 12:21:41,806 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-10-31 12:21:41,809 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: mainmsg
| 2006-10-31 12:21:41,809 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: mainmsg
| 2006-10-31 12:21:41,809 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: sessionHandler
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: sessionHandler
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.currentTab
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.currentTab
| 2006-10-31 12:21:41,810 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: sessionHandler
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: sessionHandler
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.currentTab
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.currentTab
| 2006-10-31 12:21:41,811 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-10-31 12:21:41,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: provaAction
| 2006-10-31 12:21:41,812 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: provaAction
| 2006-10-31 12:21:41,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationIntercep
| tor
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.currentTab
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.currentTab
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.token
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.token
| 2006-10-31 12:21:41,814 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-10-31 12:21:41,815 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: conversation
| 2006-10-31 12:21:41,815 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: conversation
| 2006-10-31 12:21:41,815 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.pageParameters
|
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.pageParameter
| s
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: mypersonalid
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionId
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionId
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionIsLongRunning
| 2006-10-31 12:21:41,817 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionIsLongRunning
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-10-31 12:21:41,825 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: cal
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: msgs
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: dbb
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: amsg
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: facelets.Encoding
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_
| VIEW
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: mainmsg
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
| 2006-10-31 12:21:41,826 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
| 2006-10-31 12:21:41,827 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-10-31 12:21:41,827 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:41,827 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-10-31 12:21:46,777 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,777 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW(1)
| 2006-10-31 12:21:46,777 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,777 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-10-31 12:21:46,788 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: mypersonalid
| 2006-10-31 12:21:46,789 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(4)
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: provaAction
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: provaAction
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationIntercep
| tor
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.seam.Component] instantiating Seam component: interpolator
| 2006-10-31 12:21:46,790 DEBUG [org.jboss.seam.Component] initializing new instance of: interpolator
| 2006-10-31 12:21:46,791 ERROR [org.apache.myfaces.application.jsp.JspViewHandlerImpl] ViewId must not be null
| 2006-10-31 12:21:46,791 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRep
| ository3@32831c19, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@4660a77c{ url=null ,addedOrder=0}
| 2006-10-31 12:21:46,791 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.provaAction
| 2006-10-31 12:21:46,791 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.provaAction
| 2006-10-31 12:21:46,791 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: provaAction
| 2006-10-31 12:21:46,795 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.exceptions
| 2006-10-31 12:21:46,795 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.exceptions
| 2006-10-31 12:21:46,795 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.exceptions
| 2006-10-31 12:21:46,795 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.exceptions
| 2006-10-31 12:21:46,795 INFO [org.jboss.seam.interceptors.ExceptionInterceptor] no exceptions.xml file found
| 2006-10-31 12:21:46,798 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.exceptions
| 2006-10-31 12:21:46,799 ERROR [org.jboss.seam.interceptors.ExceptionInterceptor] redirecting to debug page
| javax.ejb.EJBTransactionRolledbackException: java.lang.NullPointerException: ViewId must not be null
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy155.startConversation(Unknown Source)
| at it.finservice.organizer.modules.dummy.components.Prova$$FastClassByCGLIB$$d2bea6d.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:47)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:67)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:29)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
| at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:60)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
| at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$ed08c757.startConversation(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException: ViewId must not be null
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getViewIdPath(JspViewHandlerImpl.java:281)
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getActionURL(JspViewHandlerImpl.java:158)
| at org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:48)
| at com.sun.facelets.FaceletViewHandler.getActionURL(FaceletViewHandler.java:786)
| at org.jboss.seam.core.Manager.redirect(Manager.java:864)
| at org.jboss.seam.core.Manager.redirect(Manager.java:798)
| at org.jboss.seam.core.ConversationEntry.select(ConversationEntry.java:89)
| at org.jboss.seam.interceptors.ConversationInterceptor.getOutcomeForConversationId(ConversationInterceptor.java:94)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:81)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
| at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:
| 57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| ... 84 more
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.debug.lastException
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.debug.lastException
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.debug.phaseId
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.debug.phaseId
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.Component] instantiating Seam component: redirect
| 2006-10-31 12:21:46,802 DEBUG [org.jboss.seam.Component] initializing new instance of: redirect
| 2006-10-31 12:21:46,803 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.redirect
| 2006-10-31 12:21:46,803 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.redirect
| 2006-10-31 12:21:46,803 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.redirect
| 2006-10-31 12:21:46,803 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRep
| ository3@32831c19, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@36a8a199{ url=null ,addedOrder=0}
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: mypersonalid
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionId
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionId
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionIsLongRunning
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionIsLongRunning
| 2006-10-31 12:21:46,804 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,806 DEBUG [org.jboss.seam.Component] instantiating Seam component: resourceBundle
| 2006-10-31 12:21:46,806 DEBUG [org.jboss.seam.Component] initializing new instance of: resourceBundle
| 2006-10-31 12:21:46,806 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.resourceBundle
| 2006-10-31 12:21:46,807 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.resourceBundle
| 2006-10-31 12:21:46,807 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.resourceBundle
| 2006-10-31 12:21:46,807 DEBUG [org.jboss.seam.Component] instantiating Seam component: locale
| 2006-10-31 12:21:46,807 DEBUG [org.jboss.seam.Component] initializing new instance of: locale
| 2006-10-31 12:21:46,807 DEBUG [org.jboss.seam.core.ResourceBundle] loaded resource bundle: messages
| 2006-10-31 12:21:46,808 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRep
| ository3@32831c19, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@79095fd7{ url=null ,addedOrder=0}
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.Component] instantiating Seam component: interpolator
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.Component] initializing new instance of: interpolator
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] rolling back transaction after phase: INVOKE_APPLICATION(5)
| 2006-10-31 12:21:46,809 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.Namin
| gContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: mypersonalid
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionId
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionId
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager.conversat
| ionIsLongRunning
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager.conversa
| tionIsLongRunning
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-10-31 12:21:46,810 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.exceptionHandled
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.sun.facelets.legacy.ELCONTEXT
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
| 2006-10-31 12:21:46,811 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
|
3 ? Jamiroquai * (-1) = moving without travelling AKA little workaround but same results:
This solution is exactly the same as the previous one except for the action management.
Idea: ok, when the conversation is resumed the begin method is not called anymore and the outcome is not set, well, but if the begin method is an actionListener and the action of the commandLink is a static outcome? Fails in the same way?
Any help is really appreciated!
Raffaele
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982028#3982028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982028
19 years
[JBoss Seam] - Re: IllegalStateException: No active application scope
by christophe.laumond
hi.
thanks everybody for your feedback.
Unfortunately, I have not been able to figure out what is the problem yet...
So sorry for the very long post which is following but I really need help.
thanks in advance for feedback.
best regards.
Christophe
| jboss-4.0.4.GA installed with jems ejb3-profile
| jboss-seam-1.0.1.GA
| myfaces 1.1.5-SNAPSHOT
| tomahawk 1.1.5-SNAPSHOT
| tomahawk sandbox-1.1.5-SNAPSHOT
| JSF Facelets 1.1.5
|
in jboss-4.0.4.GA-jems\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs
| commons-beanutils-1.7.0.jar
| commons-codec-1.3.jar
| commons-collections.jar
| commons-digester-1.6.jar
| commons-fileupload-1.0.jar
| commons-lang-2.1.jar
| jstl.jar
| myfaces-api-1.1.5-SNAPSHOT.jar
| myfaces-impl-1.1.5-SNAPSHOT.jar
| tomahawk-1.1.5-SNAPSHOT.jar
| tomahawk-sandbox-1.1.5-SNAPSHOT.jar
|
C:\JavaDev\jboss-4.0.4.GA-jems\server\default\deploy\jbossweb-tomcat55.sar\conf
web.xml
the only thing I changed is :
| <init-param>
| <description>MyFaces tlds</description>
| <param-name>tagLibJar0</param-name>
| <param-value>jsf-libs/myfaces-impl-1.1.5-SNAPSHOT.jar</param-value>
| </init-param>
|
in jboss-4.0.4.GA-jems\server\default\tmp\deploy\tmp23873seamapp.ear-contents\
in seamapp.ejb3-contents
jboss-seam.jar
in META-INF
application.xml
| <application>
| <display-name>Accounting Audit Web Application</display-name>
| <module>
| <web>
| <web-uri>seamapp.war</web-uri>
| <context-root>/audit</context-root>
| </web>
| </module>
| <module>
| <ejb>seamapp.ejb3</ejb>
| </module>
| <!-- Select Items Annotation JAR -->
| <module>
| <ejb>selectitems.jar</ejb>
| </module>
| </application>
|
jboss-app.xml
| <jboss-app>
| <module>
| <service>jboss-service.xml</service>
| </module>
| <loader-repository>seam.jboss.org:loader=seam-seamapp</loader-repository>
| </jboss-app>
|
in seamapp-exp.war\
in WEB-INF\lib
| ajax4jsf.jar
| EasySI-0.9.0.jar
| el-api.jar
| el-ri.jar
| jboss-seam-debug.jar
| jboss-seam-ui.jar
| jsf-facelets.jar
| oscache-2.3.2.jar
| tagHandlers-0.9.jar
|
in WEB-INF
components.xml
| <components>
| <component name="org.jboss.seam.core.init">
| <property name="myFacesLifecycleBug">true</property>
| <property name="jndiPattern">seamapp/#{ejbName}/local</property>
| </component>
| <component name="entityManager" class="org.jboss.seam.core.ManagedPersistenceContext">
| <property name="persistenceUnitJndiName">java:/seamappEntityManagerFactory</property>
| </component>
| <component name="org.jboss.seam.core.manager">
| <property name="conversationTimeout">120000</property>
| </component>
|
| <component name="resourceBundle">
| <property name="bundleName">messages</property>
| </component>
| </components>
|
faces-config.xml
| <faces-config>
| <application>
| <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
| <message-bundle>messages</message-bundle>
| <locale-config>
| <default-locale>en</default-locale>
| <supported-locale>en</supported-locale>
| </locale-config>
| </application>
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
| </faces-config>
|
sandbox.taglib.xml
tomahawk.taglib.xml
web.xml
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
| <!-- tomahawk example -->
| <context-param>
| <description>Comma separated list of URIs of (additional) faces config files.
| (e.g. /WEB-INF/my-config.xml)
| See JSF 1.0 PRD2, 10.3.2
| Attention: You do not need to put /WEB-INF/faces-config.xml in here.
| </description>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>/WEB-INF/examples-config.xml</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
| <!-- tomahawk samples -->
| <context-param>
| <description>This parameter tells MyFaces if javascript code should be allowed in the
| rendered HTML output.
| If javascript is allowed, command_link anchors will have javascript code
| that submits the corresponding form.
| If javascript is not allowed, the state saving info and nested parameters
| will be added as url parameters.
| Default: "true"</description>
| <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
| <param-value>false</param-value>
| </context-param>
| <context-param>
| <description>If true, rendered HTML code will be formatted, so that it is "human readable".
| i.e. additional line separators and whitespace will be written, that do not
| influence the HTML code.
| Default: "true"</description>
| <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <description>If true, a javascript function will be rendered that is able to restore the
| former vertical scroll on every request. Convenient feature if you have pages
| with long lists and you do not want the browser page to always jump to the top
| if you trigger a link or button action that stays on the same page.
| Default: "false"</description>
| <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <description>
| Validate managed beans, navigation rules and ensure that forms are not nested.
| </description>
| <param-name>org.apache.myfaces.VALIDATE</param-name>
| <param-value>false</param-value>
| </context-param>
|
| <context-param>
| <description>A class implementing the
| org.apache.myfaces.shared.renderkit.html.util.AddResource
| interface. It is responsible to
| place scripts and css on the right position in your HTML document.
| Default: "org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"
| Follow the description on the MyFaces-Wiki-Performance page to enable
| StreamingAddResource instead of DefaultAddResource if you want to
| gain performance.
| </description>
| <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
| <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
| <!--param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value-->
| </context-param>
|
| <context-param>
| <description>
| A very common problem in configuring MyFaces-web-applications
| is that the Extensions-Filter is not configured at all
| or improperly configured. This parameter will check for a properly
| configured Extensions-Filter if it is needed by the web-app.
| In most cases this check will work just fine, there might be cases
| where an internal forward will bypass the Extensions-Filter and the check
| will not work. If this is the case, you can disable the check by setting
| this parameter to false.
| </description>
| <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
| <param-value>true</param-value>
| </context-param>
| <!-- -->
|
| <!-- tomahawk -->
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
| <!-- end tomahawk -->
|
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
|
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <!-- tomahawk -->
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| <description>Set the size limit for uploaded files.
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
| </description>
| </init-param>
| </filter>
| <!-- end tomahawk -->
|
| <!-- Ajax4jsf -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
|
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <!-- tomahawk -->
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
| <!-- end tomahawk -->
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- tomahawk -->
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping> <!-- end tomahawk -->
|
| </web-app>
|
The exception
| 2006-10-31 15:11:37,906 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
| 2006-10-31 15:11:37,906 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1afc0f5, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@480174{ url=null ,addedOrder=0}
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 9
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.Component] instantiating Seam component: conversation
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing page context
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: class org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: accessedBeans
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.config.beansUnderConstruction
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.done
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: ajaxContext
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.AddResourceFactory.CACHE_MAP_KEY
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.CURRENT_PHASE
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.ResponseWrapper
| 2006-10-31 15:11:37,921 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.apache.myfaces.component.html.util.ExtensionFilter.doFilterCalled
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-10-31 15:11:37,937 ERROR [org.apache.myfaces.lifecycle.PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
| java.lang.IllegalStateException: No active application scope
| at org.jboss.seam.core.Init.instance(Init.java:48)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:87)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:131)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-10-31 15:11:37,937 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Finished request processing total time 344ms for uri: /audit/searchCompany.seam
| 2006-10-31 15:11:37,937 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Filter start request processing at 31/10/06 15:11 for uri: /audit/overview.seam
| 2006-10-31 15:11:37,937 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Filter request output to XML
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: 9
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 9
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
| 2006-10-31 15:11:37,937 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(9)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982026#3982026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982026
19 years
[EJB 3.0] - Re: @EJB Injection in JSF Managed Bean
by sisepago
Now i know that this scenario can not work, because jbossas 4 does not support @EJB Injection in a JSF Managed Bean class. In JSF Managed Bean you can now only use JNDI ENC javax.naming.InitialContext Inteface to look up session's interface compenents.
-- EJB 3 Codes
|
| @javax.ejb,Remote
| public Interface Service{
| public String meth1(Object o);
| }
|
| @javax.ejb.Stateful
| public class ServiceImpl implements Service{
| @PersistenceContext
| private EntityManager em;
| public String meth1(Test t){
| em.persist(t);
| return "success";
| }
| }
|
| the String "success" is for the redirection
|
|
| --- JSF Managed Bean class
|
| public class ManagedBean{
| private String field1="";
| private Service s1 = null;
|
| public ManagedBean(){
| InitialContext ctx = new InitialContext(); //JNDI ENC
| s1 = (Service)ctx.lookup("ServiceImpl/remote");
| }
|
| public String getField1(){return field1;}
| public void setFied1(String f){field1 = f;}
|
| public String controller(){
| if(field1==null){
| return null;
| }else{
|
| return (s1.meth1(new Test(getField1()));
|
| }
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982024#3982024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982024
19 years