I've been using Guice 1.0 with Struts 2.1.6 and the struts plugin.
I just replaced the Guice 1.0 jars with the Guice 2.0 jars:
guice-2.0.jar
guice-struts2-plugin-2.0.jar
guice-servlet-2.0.jar
When I try to start my application (in Tomcat from Eclipse) I get:
2009-05-20 13:14:41,667 INFO
com.ope
Sorry, you can ignore the startup problem.
Eclipse WTP didn't clean out the old jars from the deployment area so
it had both the Guice 1.0 and 2.0 jars.
Once I cleaned out the old jars It's starts up and runs fine.
Sorry again for bogus post.
On May 20, 1:36 pm, Greg Lindholm wro
(I had mentioned this problem as part of my last post but since it
likely got lost in the unrelated 'bogus' issue I'm posting it again
separately.)
I've been using Guice 1.0 with Struts 2.1.6 and the struts plugin.
I just replaced the Guice 1.0 jars with the Guice 2.0 jars:
guice-2.0.jar
guice-s
I've been looking but haven't been able to figure it out...
How do I get a reference to GuiceFilter so I can call destroy()?
It appears that GuiceObjectFactory from the Struts2 plugin is causing
GuiceFilter to be created but I can't figure how to get a reference to
it.
(or should I just turn of
On May 21, 9:33 am, "Dhanji R. Prasanna" wrote:
> you can go new GuiceFilter().destroy() though that's kinda kludgey.
> Ideally you want to install struts2 as a filter inside ServletModule. But
> the struts2 plugin has its own issues. I will see if I can patch it in the
> next couple of weeks to
On May 21, 9:33 am, "Dhanji R. Prasanna" wrote:
> you can go new GuiceFilter().destroy() though that's kinda kludgey.
> Ideally you want to install struts2 as a filter inside ServletModule. But
> the struts2 plugin has its own issues. I will see if I can patch it in the
> next couple of weeks to
I've started getting this exception from the Struts 2 plugin when I
shutdown Tomcat from withing Eclipse.
It's annoying as sometime it hangs up Eclipse in the "stopping Tomcat
task" and I can't start any other tasks and have to restart Eclipse.
Anyone have any ideas?
Guice 2.0, Struts 2.1.6, Tom
) is never called the destroy
() method throws the NPE.
destroy() needs to check if delegate is null before calling it.
On Jun 19, 11:05 am, Greg Lindholm wrote:
> I've started getting this exception from the Struts 2 plugin when I
> shutdown Tomcat from withing Eclipse.
> It
/com/google/inject/struts2/
GuiceObjectFactory.java (working copy)
@@ -213,7 +213,9 @@
}
public void destroy() {
- delegate.destroy();
+ if (delegate != null) {
+delegate.destroy();
+ }
}
public void init() {
On Jun 19, 11:36 am, Greg Lindholm wrote:
>
Is there any documentation for using this new Struts2 plugin?
I see from the source that:
"The struts2 plugin no longer supports specifying a module"
+ "via the 'guice.module' property in XML."
+ " Please install your module via a GuiceServletContextListener
instead."
T
10 matches
Mail list logo