[fedora-java] Problem compiling tomcat5-5.0.30-8jpp_1fc

Phil Shaw phil at mkdoc.com
Wed Jul 27 15:34:33 UTC 2005


On 27 Jul 2005, at 10:28, David Walluck wrote:

> I am using gcc 4.0.1 (CVS 20050606) and I am wondering if the tomcat5
> build fails due to a compiler bug. I am posting as much output as I
> could get from ant below. Let me know if any additional information is
> needed.

Looks like you're pre-compiling the example Web applications:

> build-webapps-precompile:

Early on, you have this about the Sun tools.jar, which may be 
significant:

> /home/david/rpm/BUILD/tomcat5-5.0.30/jakarta-tomcat-5.0.30- > 
src/jakarta-tomcat-5/
> build/webapps/jsp-examples/WEB-INF/src dropping > 
/usr/lib/jvm/lib/tools.jar from
> path as it doesn't exist


Here it gets sticky:

>   [jasper2] java.lang.NullPointerException [jasper2]    at
>   java.lang.Object.getClass() (/usr/lib/libgcj.so.6.0.0) [jasper2]   
>   at
> org.apache.jasper.compiler.TagFileProcessor.loadTagFile(org.apache.jas
> per.compiler.Compiler, java.lang.String,
> javax.servlet.jsp.tagext.TagInfo, org.apache.jasper.compiler.PageInfo)
> (Unknown Source)

For reference, I have a stand-alone Jasper2 build target that just 
compiles JSP pages to validate them. The dependencies in the task 
definition are these for a Sun runtime:

<pathelement location="${java.home}/lib/tools.jar"/>
<pathelement location="${tomcat.home}/common/lib/commons-el.jar"/>
<pathelement location="${tomcat.home}/common/lib/jasper-
compiler.jar"/>
<pathelement location="${tomcat.home}/common/lib/jasper-runtime.jar"/>

The GNU implementation of the JSTL expression language is in  
javax.servlet.jsp.el. This may be a problem if it has priorty over 
the Jakarta commons version perhaps.

I have yet to upgrade to FC4, I'm lurking to glean others' experience 
with Tomcat installation. Hope this helps.

Best regards,

Phil
--
MKSearch (alpha)

<URL:http://www.mksearch.mkdoc.org/>

Free, open source metadata search engine with RDF storage and query.




More information about the java-devel mailing list