Jenkins fails to start if libservlet2.5-java are installed on the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jcaptcha (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
jenkins-winstone (Ubuntu) |
Fix Released
|
Medium
|
James Page |
Bug Description
Jenkins fails to start when both libservlet2.5 and libservlet2.4 are installed.
Jenkins itself only depend on the 2.4 version.
The presence of libservlet2.5 causes the following error:
Running from: /usr/share/
[Winstone 2011/08/16 20:27:41] - Beginning extraction from war file
[Winstone 2011/08/16 20:27:41] - XML Error (Line 67): schema_reference.4: Failed to read schema document 'jar:file:
[Winstone 2011/08/16 20:27:41] - XML Error (Line 68): schema_reference.4: Failed to read schema document 'jar:file:
[Winstone 2011/08/16 20:27:42] - XML Error (Line 82): schema_reference.4: Failed to read schema document 'jar:file:
[Winstone 2011/08/16 20:27:43] - XML Error (Line 26): Document is invalid: no grammar found.
[Winstone 2011/08/16 20:27:43] - XML Error (Line 26): Document root element "web-app", must match DOCTYPE root "null".
[Winstone 2011/08/16 20:27:44] - Container startup failed
java.lang.
at winstone.
at winstone.
at winstone.
at winstone.
at winstone.
at winstone.
at winstone.
at winstone.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at Main._main(
at Main.main(
A simple remove of the offending 2.5 package made jenkins happy again.
sudo apt-get remove libservlet2.5-java
/etc/init.d/jenkins restart
Related branches
- Ubuntu Development Team: Pending requested
-
Diff: 21177 lines (+20803/-202)24 files modified.pc/applied-patches (+1/-1)
.pc/use_system_servletapi.patch/pom.xml (+0/-151)
debian/README.source (+3/-3)
debian/changelog (+16/-0)
debian/control (+0/-2)
debian/copyright (+9/-0)
debian/libjenkins-winstone-java.classpath (+0/-1)
debian/patches/series (+1/-1)
debian/patches/specification-resources.patch (+10419/-0)
debian/patches/use_system_servletapi.patch (+0/-30)
pom.xml (+0/-13)
src/conf/javax/servlet/resources/XMLSchema.dtd (+402/-0)
src/conf/javax/servlet/resources/datatypes.dtd (+203/-0)
src/conf/javax/servlet/resources/j2ee_1_4.xsd (+1616/-0)
src/conf/javax/servlet/resources/j2ee_web_services_client_1_1.xsd (+353/-0)
src/conf/javax/servlet/resources/javaee_5.xsd (+2102/-0)
src/conf/javax/servlet/resources/javaee_web_services_client_1_2.xsd (+585/-0)
src/conf/javax/servlet/resources/jsp_2_0.xsd (+316/-0)
src/conf/javax/servlet/resources/jsp_2_1.xsd (+349/-0)
src/conf/javax/servlet/resources/web-app_2_2.dtd (+602/-0)
src/conf/javax/servlet/resources/web-app_2_3.dtd (+1022/-0)
src/conf/javax/servlet/resources/web-app_2_4.xsd (+1242/-0)
src/conf/javax/servlet/resources/web-app_2_5.xsd (+1275/-0)
src/conf/javax/servlet/resources/xml.xsd (+287/-0)
- Ubuntu Development Team: Pending requested
-
Diff: 55 lines (+21/-4)3 files modifieddebian/changelog (+15/-0)
debian/control (+4/-2)
debian/libjcaptcha-java.classpath (+2/-2)
- Dave Walker: Pending requested
-
Diff: 87 lines (+23/-4)7 files modified.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
debian/changelog (+16/-0)
debian/control (+2/-1)
debian/jenkins-slave.upstart (+1/-1)
debian/jenkins.upstart (+1/-1)
debian/maven.rules (+1/-1)
Confirmed - easily to reproduce
jenkins-winstone bundled xsd and dtd for various specifications but they where older versions with non-free copyright statements so where removed from the upstream tarball and the package is built against servlet and jsp jar files already in the archive containing these resources.
However the jsp jar file is missing from the Classpath manifest entry; it may be that having these external to the winstone.jar file does not work that well either.
I'll take a look and see which is the best way forward on this as it would be possible to patch in the CDDL/GPL distributed versions of these files if required.