frjaeger220 / google-guice

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

ServletModule doesn't work with Glassfish v3 #454

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Take same project that works with Glassfish v2 and run under v3.  None of the 
servlets setup from guice can be used.

Original issue reported on code.google.com by pjul...@gmail.com on 14 Dec 2009 at 4:45

GoogleCodeExporter commented 9 years ago
Can you describe what exactly is failing? Any error messages would help too.

Original comment by dha...@gmail.com on 14 Dec 2009 at 9:07

GoogleCodeExporter commented 9 years ago
Get 404, no other errors.  The url I see from the http monitor is correct.

If I switch out the use of guice for a web.xml entry, it works.
If I switch out glassfish v3 for v2, instead of an entry in web.xml, it also 
works.
I can also use a Java EE 6 annotation to make the servlet reachable

Original comment by pjul...@gmail.com on 14 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Sounds like a problem with glassfish v3 then. Can you post it on their bug 
tracker and copy our mailing list 
please? GS2 is compliant with the servlet spec.

Also please make sure to check your config and that GlassFish v3 allows you to 
map a filter to the default 
servlet.

Original comment by dha...@gmail.com on 14 Dec 2009 at 9:15

GoogleCodeExporter commented 9 years ago
I can confirm the guice filter does get executed.  I will report a bug in 
glassfish and 
post the link here.

Original comment by pjul...@gmail.com on 14 Dec 2009 at 9:28