Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360012 - Annotation processing in "Serve modules without publishing" broken for Tomcat 7.0.21 and later
Summary: Annotation processing in "Serve modules without publishing" broken for Tomcat...
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.2.5   Edit
Assignee: Larry Isaacs CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 12:36 EDT by Larry Isaacs CLA
Modified: 2017-10-11 16:37 EDT (History)
0 users

See Also:


Attachments
Updated org.eclipse.jst.server.tomcat.runtime.70.loader.jar (6.08 KB, application/octet-stream)
2011-10-05 15:01 EDT, Larry Isaacs CLA
no flags Details
Source project for the org.eclipse.jst.server.tomcat.runtime.70.loader.jar (5.59 KB, application/octet-stream)
2011-10-05 15:03 EDT, Larry Isaacs CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Isaacs CLA 2011-10-05 12:36:55 EDT
The change for Tomcat bug https://issues.apache.org/bugzilla/show_bug.cgi?id=51644 has caused "Server modules without publishing" to be unable to process annotations.  Starting with Tomcat 7.0.21, the WtpDirContext.file(String name) method is called with strings for name which no longer start with "/".  This causes the "search" to fail to find any project folders that would map to that resource, causing FileNotFoundExceptions when Tomcat tries to find servlet classes to scan for annotations.
Comment 1 Larry Isaacs CLA 2011-10-05 15:01:22 EDT
Created attachment 204620 [details]
Updated org.eclipse.jst.server.tomcat.runtime.70.loader.jar

Updated org.eclipse.jst.server.tomcat.runtime.70.loader.jar that continues to work with Tomcat 7.0.9 through 7.0.20 and now works with recent 7.0.21 and current 7.0.22.
Comment 2 Larry Isaacs CLA 2011-10-05 15:03:07 EDT
Created attachment 204622 [details]
Source project for the org.eclipse.jst.server.tomcat.runtime.70.loader.jar

Source project for the org.eclipse.jst.server.tomcat.runtime.70.loader.jar.
Comment 3 Larry Isaacs CLA 2011-10-06 10:46:20 EDT
The fix has been released to the WTP 3.2.5 stream and is present and verified in the current 3.2.5 build.  I will fix this in the 3.3.2 and 3.4 streams soon, once I get those workspaces sync'd up.
Comment 4 Larry Isaacs CLA 2011-10-11 11:13:49 EDT
Changes released to R3_3_maintenance for 3.3.2 and HEAD for 3.4.  Marking fixed.
Comment 5 Eclipse Genie CLA 2017-10-11 16:37:23 EDT
New Gerrit change created: https://git.eclipse.org/r/109074