[
https://issues.jboss.org/browse/WELD-823?page=com.atlassian.jira.plugin.s...
]
Dan Allen commented on WELD-823:
--------------------------------
Basically, I was easily mislead by the log message (and perhaps Antonio was as well). I
saw the message and figured everything was setup correctly. This made it very easy to
overlook the extremely subtle difference between jetty-env.xml and jetty-web.xml, which
use the exact same schema.
So yes, partially a user error, but I feel there are two changes that need to come out of
this.
1. Update documentation to reference WEB-INF instead of META-INF as the proper location
2. Only log that injection is available into Servlets if the process() method is invoked
(otherwise, it's not available)
Injection into Servlet not working in Jetty 6.x
-----------------------------------------------
Key: WELD-823
URL:
https://issues.jboss.org/browse/WELD-823
Project: Weld
Issue Type: Bug
Components: Web Tier integration (JSF, JSP, EL and Servlet)
Affects Versions: 1.1.0.CR4
Reporter: Dan Allen
Assignee: Matija Mazi
Priority: Trivial
Fix For: 1.2.0.Beta1
Apparently the test suite does not test injection into Servlets for Jetty 6.x because
users are reporting that it doesn't work. I added a Servlet injection into the
numberguess example and was able to verify that the injection is not taking place, despite
receiving the startup message:
INFO: Jetty detected, JSR-299 injection will be available in Servlets and Filters.
Injection into Listeners is not supported.
If this turns out to be a user error, then we need to turn to a documentation
improvement, because a guy like Antonio should not be having difficulty getting this to
work.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira