tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Brinkmann <luckyd...@gentoo.org>
Subject Tomcat 5.0.28 build from source
Date Wed, 09 Feb 2005 17:50:39 GMT
Hi,

first of all I would like to tell you that I'm now the maintainer
for Tomcat inside of Gentoo Linux (www.gentoo.org). We already have 
Tomcat integrated into the portage tree (i.e. we already have a Gentoo 
Linux specific Tomcat package) but the old one is pretty unmaintained. 
Nobody has integrated new features and nobody has bumped the version 
for quite a long time. Therefor, I'm now going to restructure the Tomcat 
package for Gentoo Linux. Gentoo is a source based distribution and
we'er trying to build as much from source as possible, even Java
based programs. Why we do that?:

http://gentoo-wiki.com/Why_Build_Java_Code_From_Source

Since we're a Linux distribution , or generally speaking an
operating system, we have to avoid that a user has to keep multiple
copies of an archive or an library on his system. If there are
problems with a specific library (in the Java case with an jar
archive) which can also be security related it can take a long time
until all copies would get updated. As you now may see, in the case 
of Tomcat we really have to avoid that a user has to checkout and download
the dependend libraries out of the internet before he builds and installs
tomcat itself. We've got all dependencies in our portage tree which
are required and yes, I know it's possible to specify the path to
all required jars via an build.properties file for example. I've
done that and everything works fine but I've it comes to the ant
target build-webapps-precompile the build process bails out:

build-webapps-precompile:
    [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/src/admin
    [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/src
    [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes
    [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src
  [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
  [jasper2] log4j:WARN Please initialize the log4j system properly.

BUILD FAILED
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/build.xml:50: The following
error occurred while executing this line:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:566:
The following error occurred while executing this line:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:317:
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:28:
incompatible types
found   : org.apache.jasper.runtime.JspContextWrapper
required: javax.servlet.jsp.JspContext
    this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin,
_jspx_at_end, null);
                      ^



Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:66:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: javax.servlet.jsp.PageContext
    PageContext _jspx_page_context = (PageContext)jspContext;
                                                  ^


An error occurred at line: 29 in the jsp file: /WEB-INF/tags/displayProducts.tag
Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:87:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
                                                     ^



An error occurred at line: 35 in the jsp file: /WEB-INF/tags/displayProducts.tag
Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:102:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();



An error occurred at line: 40 in the jsp file: /WEB-INF/tags/displayProducts.tag
Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:114:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
                                                     ^



An error occurred at line: 45 in the jsp file: /WEB-INF/tags/displayProducts.tag
Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:126:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
                                                     ^



An error occurred at line: 51 in the jsp file: /WEB-INF/tags/displayProducts.tag
Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:141:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke();
                                                     ^



Generated servlet error:
/var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:158:
inconvertible types
found   : javax.servlet.jsp.JspContext
required: org.apache.jasper.runtime.JspContextWrapper
      ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
                                                     ^
8 errors



I don't know why this happens at all, if anybody has got a hint please give me 
a pointer into the right direction. Any help is appreciated. Thanks.


-- 
Jan Brinkmann :	Gentoo Developer (Amd64, Java, Sound, Video)
Email:		luckyduck (at) gentoo.org
Web: 		http://the-luckyduck.de
GPG:		gpg --keyserver pgp.mit.edu --recv-key 0xE38C3BBF

Mime
View raw message