Bug 1170829
| Summary: | web-jsptaglibrary_1_2.dtd not found, package jetty-schemas not required | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Dennis <jdennis> | ||||
| Component: | jetty | Assignee: | Michael Simacek <msimacek> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 20 | CC: | krzysztof.daniel, mizdebsk, msimacek, msrb, overholt | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | jetty-9.2.1-3.fc21 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-01-26 02:33:21 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 964868 [details]
stacktrace show failure to build jsp page due to missing web-jsptaglibrary_1_2.dtd
jetty-9.2.1-3.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/jetty-9.2.1-3.fc21 I could reproduce the issue with jetty from f21, but not with the f20 version version, so I assume you're using later version. I added the symlink, but the requires is automatically generated on jetty-jsp subpackage, so if you have jsp, it should pull in jetty-schemas. Package jetty-9.2.1-3.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing jetty-9.2.1-3.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-0124/jetty-9.2.1-3.fc21 then log in and leave karma (feedback). jetty-9.2.1-3.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
If you try to run a web application under Jetty that uses JSP it will throw the following exception (full stacktrace included as an attachment). Caused by: org.xml.sax.SAXException: PWC6181: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd not found It appears as though the file /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd is contained in the /usr/share/java/jetty-schemas/jetty-schemas.jar which is provided by the jetty-schemas RPM. But if you install the jetty-schemas RPM it still won't work because the jetty-schemas.jar is not in the jetty jsp classpath when jetty starts. There would appear to be two omissions: 1. the jetty-schemas RPM should use build-jar-repository to install a link to the jar in ${jetty.home}/lib/jsp 2. the jetty package should have a Requires: jetty-schemas I'm not sure of the history here but it appears that the web-jsptaglibrary_1_2.dtd file was originally in the jetty-runner jar provided in the jetty distribution. But recently (April 2014) the jetty-runner subpackage was removed in jetty-9.0.5-3. About 5 months earlier the jetty-schemas package was introduced. I presume jetty-schemas was meant to supersede jetty-runner. It also appears the upstream jetty 9.0 default loading includes the jetty-schemas jar. So I'm not exactly sure what is happening with our packaging with respect to upstream but all I know is that after installing jetty-schemas and making a link to it in ${jetty.home}/lib/jsp the problem went away, not sure if this is the preferred or correct solution, if not please advise.