Tomcat 5.5.4 is a production release. It would be nice to have an Ebuild for it that uses a jsvc based initscript optionally allowing Tomcat to run on privaledged ports. Reproducible: Always Steps to Reproduce:
I'm starting to work on this because I need it. Would people want this slotted as "5.5", or in slot 5 with 5.0.28? I get the impression 5.5.x is meant to supplant 5.0.x, so my vote would be to use slot 5.
If we want people to try a slow transition from 5.0.x to 5.5.x, by having the installed in parallell to do testing, we need them slotted differently. I'm not a tomcat user, but I really loved that about apache (1.3.x vs 2.0.x).
i'm now going to maintain tomcat. starting from tomorrow i'll start to work on this
I'm going to be following this, as it is something I need to get up and running and will be using along with the Jonas J2EE web app server. Post any changes back to this bug report and I'll chip in with some help and testing.
that's the next point on my TODO list, i'm currently working on the ebuild for 5.0 and will port the new 5.0 ebuild over to 5.5. please join #gentoo-java on irc.freenode.net , it's much easier to talk about this via irc. =)
we need jdtcore in the main tree for 5.5.x
*** Bug 83152 has been marked as a duplicate of this bug. ***
Make it slotted as Context definition files have changed their format from 5.0 to 5.5
Could anybody tell me when this ebuild for 5.5.x will be avaliable? Unfortunatelly I need it now... I've tried to adopt 5.0.28 ebuild but it doesn't want to work by now.
i can add it when the jdtcore stuff goes into the maintree, you can find a preview version here: http://gentooexperimental.org/svn/java/ you can also find the needed dependencies there. just follow these instructions: http://gentoo-wiki.com/Experimental_Java_tree
come on! jdk 1.5 hangs with actual tomcat (and some its deps) bump :)
Created attachment 65047 [details] Tomcat 5.5.9 ebuild with jsvc support, uses precompiled tomcat
Created attachment 65048 [details] conf.d-file for my ebuild
Created attachment 65049 [details] init.d-scipt for my ebuild
I attached an ebuild with jsvc support. It doesn't compile tomcat and it doesn't depend on any gentoo-java-package. It is stricter than the ebuild supplied by the gentoo people: - tomcat is not allowed to write to /opt/tomcat5.5 (where the tomcat is installed) - /opt/tomcat5.5/work is linked to /var/opt/tomcat5.5 (there, the generated java/class-files will be placed) - the admin-app is not included (do things by hand in server.xml) - it installs server-minimal.xml as the default server.xml - the full server.xml is renamed to server.example.xml Have fun with it.
Created attachment 65231 [details] new conf.d-file
Created attachment 65232 [details] new init.d-file
new conf.d/init.d-file which set the umask of the started tomcat-process. The default umask is 002. This is very useful, since often you want that the tomcat-group can write files/directories, and not only the tomcat-user. There's a little problem though: log and pid-files are created with the same umask which is not very cool, if the umask gives write-access to everybody :-( BTW: JAVA_HOME must point to a 1.5 JDK/JRE so that my tomcat works (the ebuild doesn't install the the backward compatibility packages)
I was playing around with jsvc the other week, and ran into a problem where it apparently requires something to be enabled in the kernel in order to work. I will try to dig up the specifics again if I can. Also, for future reference, please attach text files as text files, and not application/octet-stream.
(In reply to comment #19) > I was playing around with jsvc the other week, and ran into a problem where it > apparently requires something to be enabled in the kernel in order to work. I > will try to dig up the specifics again if I can. > This is no problem as long as linux-info.eclass is used in the ebuild to check for proper configuration.
The homepage of tomcat has changes. Now available at http://tomcat.apache.org When will this ebuild be included into portage tree?
(In reply to comment #21) > The homepage of tomcat has changes. > Now available at http://tomcat.apache.org > HOMEPAGE switched. Thanks for reporting. > > When will this ebuild be included into portage tree? > As soon as there is a version that follows the Gentoo Java policy. New ebuilds should for example be compiled from source. We will not be adding binary versions any more if there is source available.
My ebuild is not supposed to be integrated into portage. I knew that you would say, that Tomcat should be compiled from source. So the feature that need to be in the kernel, could be CONFIG_SECURITY_CAPABILITIES I think jsvc uses capabilities, to preserve the "capability" to open ports below 1024 while switching the userid.
It is worth noting that work is being done on this in the experimental java overlay: https://svn.gentooexperimental.org/svn/java/gentoo-java-experimental/www-servers/tomcat
(In reply to comment #24) > It is worth noting that work is being done on this in the experimental java > overlay: > https://svn.gentooexperimental.org/svn/java/gentoo-java-experimental/www-servers/tomcat > But I wouldn't recommend using it unless you are prepared to fix stuff as it is not in a very good shape yet.
Correction, Tomcat 5.5.12 in java-experimental overlay should be in usable working condition. If you use Tomcat and want 5.5, please test in the overlay and report back. Hopefully will get put into portage soon and will be available for ~x86.
I tried to install Tomcat from overlay to server, but these RDEPENDs are madness. It was about 180MB to downloading so i give it up.
From http://tomcat.apache.org/whichversion.html: "Apache Tomcat 5.5 is the current focus of development. While it supports the same Servlet and JSP Specification versions as Apache Tomcat 5.0.x, there are significant changes in many areas under the hood, resulting in improved performance, stability, and total cost of ownership. Please refer to the Apache Tomcat 5.5 Changelog for details." Tomcat 5.5.15 is the current stable version. Tomcat 5.5 is really, really late for mainstream Gentoo usage. JDK 1.5 isn't properly supported and only old versions of Tomcat like 5.0.x are supported. JDK 1.6 is nearly upon us! What is the mechanism for bumping up the priority on JDK 1.5 and Tomcat 5.5 for mainstream use?
JDK 1.5 is coming along with a new java "framework" or "layout" and tools for Gentoo. Including a modified java-config, eclasses, and a whole bunch of stuff. http://www.gentoo.org/proj/en/java/tiger-faq.xml Not just to allow for transition to 1.5, but also to 1.6 in the future when it's out. In the mean time till these changes are merged into portage. None of the packages in the java experimental overlay will be added to portage. However many can be used now including Tomcat 5.5.15. I have been running on my development server for a week or so now eith existing and new apps under development. Considering putting on my production servers as well. Once the new java stuff is migrated into portage. All the ebuilds will have to be updated, including the ones in the java experimental overlay. Then the plug in the pipe will be removed and Java will be flowing again on Gentoo. The Java team is under staffed and short handed these days. So the migration is moving along but slowly. Any help is greatly appreciated by all.
I marked this stuff as obsoloted after a request from obsidian studios. The version 5.5.9 is very old at this point and we should be working to integrate jsvc support into our new Tomcat ebuilds any way.
Ok, I have thought about this for quite some time. Discussed it with others in the community. Seems it's not ideal to start Tomcat via native apps. Even though that's how it's being started via start-stop-daemon. My official stance at this time, if you want to run Tomcat on privileged ports is to do it via a firewall and port redirection/forwarding. JSVC might be considered again at some point in the future. But for now, I am closing this bug as WONTFIX. Will remove JSVC from Tomcat Guides as soon as time permits.