Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.14, 6.1.26
-
Fix Version/s: 6.1.27
-
Component/s: None
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
I hit this while working on an integration of Hadoop. Not sure it is a bug, but I'm reporting it with a patch that fixes my problem.
Hadoop packages webapps inside the JAR, like this:
/webapps/appname/WEB-INF/web.xml
When Jetty extracts these apps to a temporary directory for later deployment, it includes the /webapps/appname part of the JAR path in the destination folder. The result of this is that the WEB-INF directory is not detected at deployment and the webapp is deployed as a static file app.
The attached patch works around this by removing the /webapps/appname part of the destination path.
Are these war files we are talking about? If so, I'm not sure that it is legal to have the WEB-INF directory so deep in the archive.
Can you explain some more how/why these jars are like that?