Summary: | www-servers/tomcat and java5 / java1.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | patrizio.bassi |
Priority: | High | Keywords: | InVCS |
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://jakarta.apache.org/tomcat | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
tomcat-5.0.28-r4.ebuild
files/5.0.28/java5.patch tomcat-5.0.28-r4.ebuild.diff Patched ebuild diff from portage basic ebuild |
Description
Martin von Gagern
2005-09-11 14:58:47 UTC
Created attachment 68195 [details]
tomcat-5.0.28-r4.ebuild
This is my modified ebuild for tomcat.
Created attachment 68196 [details, diff]
files/5.0.28/java5.patch
This patch makes tomcat compile using java 5.
Created attachment 68197 [details, diff]
tomcat-5.0.28-r4.ebuild.diff
Here are only the differences between my ebuild and the one already in portage.
Strange was that I had to remove the beanutils version number.
BTW: It would be nice to have some version of getjar that immediately dies
instead of just writing an error message.
why not bumping jaxen and merging this changes with -r6 actually in portage? i manually merged changes and even without jaxen bumped it compiles and runs. (In reply to comment #5) > i manually merged changes and even without jaxen bumped it compiles and runs. If you can post a diff against -r7 that will help in getting the changes to the tree faster. The build.xml patch will be obsolete with the new java setup but I can apply it when I get back from Germany after this weekend. oops, i forgot i had to keep the "-1.7" version, while ebuild removes those. without it fails here. Created attachment 68997 [details]
Patched ebuild
Created attachment 68998 [details, diff]
diff from portage basic ebuild
i added -r7 patch ebuild. it still uses the java5 patch. works for me, please try that's a bug in ebuild ihmo. as http://bugs.gentoo.org/show_bug.cgi?id=106788 without example flag you don't get pages installed in default webapp dir, and this make first localhost:8080 access fail with no error printed. ihmo example should be completly removed, as it contains important files. -r9 ebuild compiles good with jdk 1.5,only need this patch (it's a subset of attached one) diff -ur jakarta-tomcat-5.0.28-orig/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java jakarta-tomcat-5.0.28-src/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java --- jakarta-tomcat-5.0.28-orig/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java 2005-09-11 23:45:08.000000000 +0200 +++ jakarta-tomcat-5.0.28-src/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java 2005-09-11 23:47:14.000000000 +0200 @@ -24,6 +24,7 @@ import java.security.CodeSource; import java.security.PermissionCollection; import java.security.Policy; +import java.security.cert.Certificate; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; @@ -369,7 +370,7 @@ } File contextDir = new File(codeBase); URL url = contextDir.getCanonicalFile().toURL(); - codeSource = new CodeSource(url,null); + codeSource = new CodeSource(url,(Certificate[])null); permissionCollection = policy.getPermissions(codeSource); // Create a file read permission for web app context directory Only in jakarta-tomcat-5.0.28-src/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler: JspRuntimeContext.java~ why not applying these changes? -r10 has same problem :( Sorry about not getting back to this bug. We already support using tomcat with 1.5 via the axxo-overlay so this hasn't been such a big priority to me: http://www.gentoo.org/proj/en/java/tiger-faq.xml#doc_chap3 http://dev.gentoo.org/~betelgeuse/axxo-overlay You can contact me on #gentoo-java@freenode for questions. -r12 does not compile , need the comment #12 patch too. can you keep back 1.5 compatibility? seems so simple to add. i tested and works With axxo-overlay, it is no longer necessary to patch the ant script to specify source/target. Additionally, the part of the java5.patch which patches source code (versus ant scripts) is being applied to the tomcat ebuilds in axxo-overlay. *** This bug has been marked as a duplicate of 69970 *** |