I went on the fix the configuration as
<bean
name="org.apache.myfaces.orchestra.conversation.FlashScopeManager"
class="org.apache.myfaces.orchestra.conversation.FlashScopeManager"
scope="request">
<property
name="flashScopeManagerConfiguration"
ref="flashScopeManagerConfiguration" />
</bean>
<bean
name="flashScopeManagerConfiguration"
class="org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration"
scope="request">
</bean>
and run into other NPE. At this time, I gave up :-)
Aug 29, 2007 2:30:06 PM com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: phase(RENDER_RESPONSE
6,[EMAIL PROTECTED])
threw exception: java.lang.NullPointerException null
org.apache.myfaces.orchestra.conversation.jsf.ConversationPhaseListener.invalidateFlashConversations(ConversationPhaseListener.java:69)
org.apache.myfaces.orchestra.conversation.jsf.ConversationPhaseListener.afterPhase(ConversationPhaseListener.java:51)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
com.
Dan Tran wrote:
>
> looks like a misconfiguration in orchestra file
>
> <property name="flashScopeManagerConfiguration"
>
> class="org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration"
> />
>
> instead of
>
> <property name="flashScopeManagerConfiguration"
>
> ref="org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration"
> />
>
> -D
>
>
>
> Dan Tran wrote:
>>
>>
>> It is stranged that i have to register that configuration file.
>>
>> Anyhow, I follow the advice, and run into this another error. The error
>> complain about bean not found But i do see the class in orchestra-core
>> jar file.
>>
>>
>>
>> Aug 29, 2007 2:02:48 PM com.sun.faces.lifecycle.LifecycleImpl phase
>> WARNING: phase(RENDER_RESPONSE
>> 6,[EMAIL PROTECTED])
>> threw exception: org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManager' defined in
>> URL
>> [jar:file:/C:/dev/iplocks/va/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/va-webapp2/WEB-INF/lib/myfaces-orchestra-core-1.0-SNAPSHOT.jar!/META-INF/spring-orchestra-init.xml]:
>> Cannot resolve reference to bean
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration'
>> while setting bean property 'flashScopeManagerConfiguration'; nested
>> exception is
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration'
>> is defined Error creating bean with name
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManager' defined in
>> URL
>> [jar:file:/C:/dev/iplocks/va/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/va-webapp2/WEB-INF/lib/myfaces-orchestra-core-1.0-SNAPSHOT.jar!/META-INF/spring-orchestra-init.xml]:
>> Cannot resolve reference to bean
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration'
>> while setting bean property 'flashScopeManagerConfiguration'; nested
>> exception is
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named
>> 'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration'
>> is defined
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
>>
>>
>> simon-118 wrote:
>>>
>>> On Wed, 2007-08-29 at 13:47 -0700, Dan Tran wrote:
>>>> The latest snapshot of orchestra logs this error, but does no harm to
>>>> my app.
>>>>
>>>> Any suggestion I should do? Is there any more info i can provide? It
>>>> must
>>>> be related to
>>>> some changes in Flashscop handling in orchestra source tree
>>>>
>>>
>>>> threw exception: java.lang.IllegalArgumentException: no
>>>> FlashScopeManager
>>>> found. Propably you forgot to add <import
>>>> resource="classpath*:/META-INF/spring-orchestra-init.xml" /> to your
>>>> spring
>>>> configuration.
>>>
>>> Yes, it's a new feature Mario added today to allow apps to configure a
>>> list of views that can be invoked without flushing "flash" scopes. This
>>> is particularly useful when a page has javascript or frames that perform
>>> "ping" type operations to keep sessions alive.
>>>
>>> I think you just need to follow the advice in the message above..
>>>
>>> Regards,
>>>
>>> Simon
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/no-FlashScopeManager-found-tf4350275.html#a12396377
Sent from the My Faces - Dev mailing list archive at Nabble.com.