The plugin has problems with custom type converters and other  
framework classes because these are sometimes created by Struts prior  
to Guice being initialized. There is the source code for a working  
version inside this JAR file:

        
http://savant.inversoft.org/org/jcatapult/jcatapult-struts/1.0-RC8/jcatapult-struts-1.0-RC8-src.jar

-bp


On Apr 28, 2009, at 3:48 AM, ampyx wrote:

>
> Hey Jordi, thanks for your reply. I already used 1.0.1 version plug-
> in. The problem came up with this version.
>
> On 4月28日, 下午5时39分, jordi <[email protected]> wrote:
>> download the struts2 plugin version 1.0.1.
>>
>> http://google-guice.googlecode.com/files/guice-struts2-plugin-1.0.1.jar
>>
>> it should fix your problem!
>>
>> jordi
>>
>> On 4/28/09, ampyx <[email protected]> wrote:
>>
>>
>>
>>> Hey guys,
>>
>>> I am new to Guice 1.0. I was trying to integrate guice 1.0 with
>>> struts2.1.6. I got an error :
>>
>>> java.lang.NullPointerException
>>>   at com.google.inject.struts2.GuiceObjectFactory
>>> $ProvidedInterceptor.destroy(GuiceObjectFactory.java:214)
>>>   at  
>>> org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:
>>> 287)
>>>   at org.apache.struts2.dispatcher.FilterDispatcher.destroy
>>> (FilterDispatcher.java:233)
>>>   at org.apache.catalina.core.ApplicationFilterConfig.release
>>> (ApplicationFilterConfig.java:332)
>>>   at org.apache.catalina.core.StandardContext.filterStop
>>> (StandardContext.java:3744)
>>>   at  
>>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:
>>> 4513)
>>>   at org.apache.catalina.startup.HostConfig.checkResources
>>> (HostConfig.java:1108)
>>>   at org.apache.catalina.startup.HostConfig.check(HostConfig.java: 
>>> 1214)
>>>   at org.apache.catalina.startup.HostConfig.lifecycleEvent
>>> (HostConfig.java:293)
>>>   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
>>> (LifecycleSupport.java:117)
>>>   at org.apache.catalina.core.ContainerBase.backgroundProcess
>>> (ContainerBase.java:1337)
>>>   at org.apache.catalina.core.ContainerBase
>>> $ContainerBackgroundProcessor.processChildren(ContainerBase.java: 
>>> 1601)
>>>   at org.apache.catalina.core.ContainerBase
>>> $ContainerBackgroundProcessor.processChildren(ContainerBase.java: 
>>> 1610)
>>>   at org.apache.catalina.core.ContainerBase
>>> $ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>>>   at java.lang.Thread.run(Unknown Source)
>>
>>> There is no interceptor here, i guess the problem is due to this...
>>> Can any one help me with this problem pls?
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to