Issue Details (XML | Word | Printable)

Key: CDV-569
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: 2 Major 2 Major
Assignee: Hung Huynh
Reporter: Gary Keim
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Community Development

TC Spring incorrectly handling default (ROOT) webapp

Created: 28/Dec/07 03:27 PM   Updated: 02/Oct/08 06:38 PM
Component/s: Integration Modules, SpringRuntime
Affects Version/s: 2.5.0
Fix Version/s: 2.6.4

Severity: 3 Feature failure (but usable), workaround available
Fix In Branch: 2.6, trunk
Target: Pacheco
Fixed In Revision: 8232 (trunk)
Date of First Response: 17/Apr/08 08:29 AM


 Description  « Hide
When using Spring in a default Tomcat webapp (ROOT), TC Spring doesn't properly determine the application name because com.tcspring.ApplicationHelper assumes a webapp classloader name will end with a non-empty context-path. When the ROOT webapp is used the context-path is empty and it mistakenly sets appName to the classloader name's prefix, such as "Tomcat.shared."

The workaround is to either not use a default webapp, but rather give it a non-empty context-path, or specify the wildcard jee-application name="*".


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Scott Bale added a comment - 17/Apr/08 08:29 AM
Made fix in ApplicationHelper, created unit tests ApplicationHelperTest. Also tested by hand using tomcat, TC spring, Eclipse debugger - I would still like to create an automated system test around this issue.