https://issues.apache.org/bugzilla/show_bug.cgi?id=52267
Bug #: 52267
Summary: Nested service element in WAR task putsservice
descriptor files in the wrong place in the .WAR.
Product: Ant
Version: 1.8.2
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: major
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Service descriptor files are loaded as class resources by
java.util.ServiceLoader. Therefore they have to be in the classpath. If you
specify <jar ...><service .../></jar> this works correctly: the service
descriptor files are JAR'd as /META-INF/services/*. However in a WAR file this
is not correct. At present if you specify <war ...><service/></war> the same
happens as above. The correct location in a WAR file is
/WEB-INF/classes/META-INF/services/*.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.