[
https://issues.jboss.org/browse/WELD-823?page=com.atlassian.jira.plugin.s...
]
Dan Allen commented on WELD-823:
--------------------------------
Although WEB-INF is the correct default location for jetty-env.xml, that still doesn't
solve the problem I'm observing with Servlet injection. In fact, in my case this
documentation change doesn't even apply since I'm specifying the location to
jettyWebXml explicitly in the Maven plugin.
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.21</version>
<configuration>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>9090</port>
</connector>
</connectors>
<contextPath>${project.build.finalName}</contextPath>
<jettyEnvXml>${project.basedir}/src/test/resources/jetty-env.xml</jettyEnvXml>
</configuration>
</plugin>
I'm still getting a null value for the injection point. I need to check the test for
Jetty to see if there is a mismatch between my overall configuration (and Antonio's)
and that of the test.
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