Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360012

Summary: Annotation processing in "Serve modules without publishing" broken for Tomcat 7.0.21 and later
Product: [WebTools] WTP ServerTools Reporter: Larry Isaacs <larryisaacs>
Component: jst.serverAssignee: Larry Isaacs <larryisaacs>
Status: RESOLVED FIXED QA Contact: Elson Yuen <eyuen7>
Severity: major    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2.5   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/109074
Whiteboard:
Attachments:
Description Flags
Updated org.eclipse.jst.server.tomcat.runtime.70.loader.jar
none
Source project for the org.eclipse.jst.server.tomcat.runtime.70.loader.jar none

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