Bug 1170829 - web-jsptaglibrary_1_2.dtd not found, package jetty-schemas not required
Summary: web-jsptaglibrary_1_2.dtd not found, package jetty-schemas not required
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jetty
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Simacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-04 23:02 UTC by John Dennis
Modified: 2015-01-26 02:33 UTC (History)
5 users (show)

Fixed In Version: jetty-9.2.1-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-26 02:33:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
stacktrace show failure to build jsp page due to missing web-jsptaglibrary_1_2.dtd (9.21 KB, text/plain)
2014-12-04 23:04 UTC, John Dennis
no flags Details

Description John Dennis 2014-12-04 23:02:46 UTC
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.

Comment 1 John Dennis 2014-12-04 23:04:44 UTC
Created attachment 964868 [details]
stacktrace show failure to build jsp page due to missing web-jsptaglibrary_1_2.dtd

Comment 2 Fedora Update System 2015-01-03 14:52:25 UTC
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

Comment 3 Michael Simacek 2015-01-03 15:05:39 UTC
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.

Comment 4 Fedora Update System 2015-01-05 07:35:20 UTC
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).

Comment 5 Fedora Update System 2015-01-26 02:33:21 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.