Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338564 - The "Serve modules without publishing" feature is broken with Tomcat 7.0.9 and later
Summary: The "Serve modules without publishing" feature is broken with Tomcat 7.0.9 an...
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.4   Edit
Assignee: Larry Isaacs CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 12:34 EST by Larry Isaacs CLA
Modified: 2011-03-18 14:56 EDT (History)
0 users

See Also:
arvera: review+


Attachments
Changes to plug-in code to handle another version of loader jar (3.09 KB, patch)
2011-03-01 12:34 EST, Larry Isaacs CLA
no flags Details | Diff
Updated loader jar for Tomcat 7.0.9 and later (6.04 KB, application/octet-stream)
2011-03-01 12:36 EST, Larry Isaacs CLA
no flags Details
Updated source zip for Tomcat 7.0.9 and later loader jar (5.55 KB, application/octet-stream)
2011-03-01 12:36 EST, 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-03-01 12:34:55 EST
Created attachment 190064 [details]
Changes to plug-in code to handle another version of loader jar

Some improvements were made to Tomcat's FileDirContext class (after Tomcat 7.0.8) which makes the WtpDirContext class that extends FileDirContext incompatible for Tomcat 7.0.9 and later.  An updated version of the loader jar is needed for the "Serve modules without publishing" feature to work with Tomcat 7.0.9 and later.

The fix will build on the work done in Bug 335646 which provides loader jars specific to particular versions of Tomcat 7.0.x.  The current versions of org.eclipse.jst.server.tomcat.runtime.70.loader.jar and org.eclipse.jst.server.tomcat.runtime.70.loader-src.zip will become org.eclipse.jst.server.tomcat.runtime.708.loader.jar and org.eclipse.jst.server.tomcat.runtime.708.loader-src.zip, respectively.
Comment 1 Larry Isaacs CLA 2011-03-01 12:36:06 EST
Created attachment 190065 [details]
Updated loader jar for Tomcat 7.0.9 and later
Comment 2 Larry Isaacs CLA 2011-03-01 12:36:54 EST
Created attachment 190066 [details]
Updated source zip for Tomcat 7.0.9 and later loader jar
Comment 3 Larry Isaacs CLA 2011-03-01 12:40:32 EST
I will go ahead and commit this (and Bug 335646 changes) to HEAD.  This update will be need to be included WTP 3.2.4, once it starts building.
Comment 4 Larry Isaacs CLA 2011-03-18 11:12:26 EDT
Hi Angel,

Requesting approval to include this in WTP 3.2.4.  The only change to the WtpDirContext was to update a method to return List<NamingEntry> instead of ArrayList<NamingEntry>.  Fortunately, there are no other methods that WtpDirContext needs to override that return a collection class instead of a collection interface.

Thanks,
Larry
Comment 5 Angel Vera CLA 2011-03-18 13:11:56 EDT
Sounds like a good one to fix.
Comment 6 Larry Isaacs CLA 2011-03-18 14:56:57 EDT
Changes released to WTP 3.2.x maintenance for 3.2.4.  These changes are already present in WTP 3.3M6.