| Summary: | Annotations inheritance does not work with jetty7 embedded | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Filipe Sousa <filipe> | ||||||||||
| Component: | server | Assignee: | Jan Bartel <janb> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | janb, jetty-inbox | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | 7.1.x | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Filipe Sousa
Created attachment 185370 [details]
MyServlet
Created attachment 185371 [details]
HelloServlet
Created attachment 185372 [details]
Embedded server
Created attachment 185373 [details]
jetty-web
Eclipse project with all needed jars http://dl.dropbox.com/u/5176435/bugs/annotations7.tar.bz2 JNDI objects need to be registered in a jetty-env.xml file, not a jetty-web.xml file. As you can see from the list of Configurations that you have set up in your Embedded server class, the handler for jetty-web.xml runs AFTER the one for jetty-env and the plus/annotations ones. BTW this was the case for jetty-6 too. regards Jan Hi, I just did what you told me and still does not work. The result is the same. Note that the injection works in the subclass, but not the superclass. ds1=null ds2=oracle.jdbc.pool.OracleConnectionPoolDataSource@3d3c33b7 ds3=oracle.jdbc.pool.OracleConnectionPoolDataSource@21453d72 reopening for investigation Oh darn! Silly error when iterating over the parent class hierarchy. Fixed in trunk svn rev 2612. Thanks for persisting with the bug report. Jan |