This post was originally sent to tomcat users list but I was told it was a packaging problem and not in scope for tomcat hence I should redirect it to a Fedora list. I trust I am picking the right lists here.
I am trying to use Jasper on Fedora Core 6 to precompile some of my jsp but I come across the following classpath builder errors when trying run the jasper script:-
$ /usr/bin/jasper5.sh /usr/bin/build-classpath: error: Could not find jasper-compiler Java extension for this JVM /usr/bin/build-classpath: error: Could not find jasper-runtime Java extension for this JVM /usr/bin/build-classpath: error: Could not find jsp-2.0-api Java extension for this JVM /usr/bin/build-classpath: error: Could not find servlet-2.4-api Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found Usage: /usr/bin/jasper5.sh ( jspc ) Commands: jspc - Run the offline JSP compiler
I looked in the script to see what jar files the classpath builder needed and compared that to similar looking jar files in /usr/share/java
By creating links to the following files I get rid of the errors
$ su - # cd /usr/share/java # ln -s jasper5-compiler.jar jasper-compiler.jar # ln -s jasper5-runtime.jar jasper-runtime.jar # ln -s tomcat5-jsp-2.0-api.jar jsp-2.0-api.jar # ln -s tomcat5-servlet-2.4-api.jar servlet-2.4-api.jar # exit $ /usr/bin/jasper5.sh Usage: /usr/bin/jasper5.sh ( jspc ) Commands: jspc - Run the offline JSP compiler
So what I am wondering is have I missed off installing a compatibility package or is there a mistake in the jasper package that should either create these links or change the names required in the script?
For reference the packages concerned are tomcat5-servlet-2.4-api-5.5.17-6jpp.2 tomcat5-jsp-2.0-api-5.5.17-6jpp.2 tomcat5-jasper-5.5.17-6jpp.2
Steve Hindmarch
On Thu, 2007-19-04 at 16:42 +0100, stephen.hindmarch@bt.com wrote:
So what I am wondering is have I missed off installing a compatibility package or is there a mistake in the jasper package that should either create these links or change the names required in the script?
Either way should fix it. File a bug against the tomcat package.
Andrew
Bug 237140 raised.
-----Original Message----- From: Andrew Overholt [mailto:overholt@redhat.com] Sent: 19 April 2007 17:04 To: Hindmarch,SJ,Stephen,XJE11 R Cc: fedora-list@redhat.com; fedora-devel-java-list Subject: Re: [fedora-java] Jasper5 And Fedora Core 6, build-classpathproblems
On Thu, 2007-19-04 at 16:42 +0100, stephen.hindmarch@bt.com wrote:
So what I am wondering is have I missed off installing a compatibility package or is there a mistake in the jasper package that should either create these links or change the names required in the script?
Either way should fix it. File a bug against the tomcat package.
Andrew
java-devel@lists.fedoraproject.org