frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Struts 2 and Guice problem #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
GuiceObjectFactory consist module property and setModule setter for it.
This value being injected via xwork2 from struts.xml. It's good. But
GuiceObjectFactory buildBean method doesn't use this module, instead of it
creates new AbstractModule implementation. Hence, custom dependencies are
not applied.

Original issue reported on code.google.com by rpo...@gmail.com on 25 Aug 2007 at 6:18

GoogleCodeExporter commented 9 years ago
Plugin version 1.0.1 fixes this. See the Downloads section.

Original comment by robbie.v...@gmail.com on 3 Jan 2008 at 7:06

GoogleCodeExporter commented 9 years ago
I downloaded the 1.0.1 version and still have the same problem. but if I 
download 
the 1.0 source and add the install(module); it works.

Original comment by drin...@gmail.com on 22 Jan 2008 at 11:06

GoogleCodeExporter commented 9 years ago
It was my fault.

Was starting jetty incorrectly.
I was putting all libs on the classpath instead of in the webapp/lib directory

This was making the classes live in different classloaders or something I guess.

Works now.

Original comment by drin...@gmail.com on 22 Jan 2008 at 12:14

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 14 May 2008 at 3:48