Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35094 - First stable tomcat 5
Summary: First stable tomcat 5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Java team
URL: http://jakarta.apache.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 15:07 UTC by Georg Müller
Modified: 2004-02-15 17:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tomcat 5.0.16 ebuild and files (tomcat-5.0.16.tar.gz,3.77 KB, application/x-gzip)
2003-12-14 20:56 UTC, Chetan Sarva
Details
The fixed ebuild and the other files (tomcat-5.0.16.tar.gz,3.66 KB, application/gzip)
2003-12-14 22:46 UTC, David Owens II
Details
tomcat-5.0.16 ebuild + necessary files + patch (tomcat-5.0.16.ebuild.tar.gz,3.43 KB, text/plain)
2004-01-20 08:36 UTC, Andre Lammel
Details
Updated ebuild for 5.0.18 & 4.1.29 (tomcat.tbz2,6.67 KB, application/octet-stream)
2004-02-11 13:52 UTC, Chetan Sarva
Details
Updated ebuild for 5.0.18 & 4.1.29 (new fixes) (tomcat.tbz2,6.63 KB, application/octet-stream)
2004-02-11 15:27 UTC, Chetan Sarva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Müller 2003-12-04 15:07:22 UTC
tomcat 5.0.16 ist out

Reproducible: Always
Steps to Reproduce:
Comment 1 Thomas Scheffler 2003-12-09 11:28:56 UTC
There seems to be no interest on gentoo side to support tomcat any longer since there are allreade open bugs vor 4.1.27 and 4.1.29. But yes I would like to see this ebuild to in the portage tree.
Comment 2 Chetan Sarva 2003-12-14 20:56:07 UTC
Created attachment 22234 [details]
tomcat 5.0.16 ebuild and files

This is a first crack at an ebuild for tomcat-5.0.16. Extract the tarball in
/usr/local/portage/net-www/tomcat/. 

This is a modified version of the ebuild for tomcat-4.1.29 which can also be
found in bugzilla. I modified gentoo.diff to work with the new scripts. I left
the os400 and osx sections in place since they do not get in the way. Only path
changes work copied over. 

My first test with this ebuild failed to properly install over an existing
installation of 4.1.29 so I suggest unmerging tomcat-4 before upgrading to 5.
My guess is that the jars did not get updated because of the gentoo-specific
symlinks to /usr/shared/tomcat. Can someone else test this and post their
results?
Comment 3 David Owens II 2003-12-14 22:46:58 UTC
Created attachment 22235 [details]
The fixed ebuild and the other files

I ran the script, but like the previous tomcat script, it has some errors in
the permissions for both /etc/conf.d/tomcat, /etc/env.d/21tomcat,
/etc/init.d/tomcat. The problem was that they were all being made as 750 when
only the /etc/init.d/tomcat should be. The other should be 644, so I  fixed
those in the ebuild that I attached. I also fixed the output from the
groupmod/usermod for tomcat to be redirected to /dev/null.

As for the original question, I emerge tomcat-4.1.24-r1 and then emerged
tomcat-5.0.16. The only problem I had is that the tomcat user/group were
removed from the install and the following differences:

Files ./bin/catalina.sh and ../tomcat/./bin/catalina.sh differ
Files ./bin/setclasspath.sh and ../tomcat/./bin/setclasspath.sh differ
Files ./conf/tomcat-users.xml and ../tomcat/./conf/tomcat-users.xml differ
diff: ../tomcat/./LICENSE: No such file or directory
diff: ../tomcat/./RELEASE-NOTES: No such file or directory
diff: ../tomcat/./RUNNING.txt: No such file or directory

I used the following script to generate that list:

for x in `find . -xtype f -follow`; do diff --brief $x ../tomcat/$x; done

(I un-tared the tomcat-5 release into /opt/ and the emerged tomcat was also in
/opt)

Hope that was of some help.
Comment 4 Adrian Almenar 2003-12-19 21:55:23 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 5 drumz 2003-12-31 14:00:39 UTC
I downloaded/installed the ebuild provided by David and it worked.  Only minor issue I had was a permissions problem with /opt/tomcat/conf.  Changed the ownership to tomcat:tomcat (may not be correct/secure, will touch on this later but just wanted to get it up and running to make sure it worked).

I am very interested in having ebuilds for tomcat 5 added to portage, as will several other friends of mine.  So if a vote is needed, add a couple extra for me and my friends.
Comment 6 Andre Lammel 2004-01-20 08:33:57 UTC
i have made an ebuild for tomcat-5.0.16 including the necessary
startup scripts and diffs for /opt/tomcat/bin/setclasspath.sh

for me i merges without mistakes and is running clean and smooth.

so pls try this ebuild out and give me some feedback :-))) next
attached is the ebuild an all additional files.

so long

andre lammel
Comment 7 Andre Lammel 2004-01-20 08:36:33 UTC
Created attachment 24134 [details]
tomcat-5.0.16 ebuild + necessary files + patch

ebuild for tomcat-5.0.16 - paths in the tar are absolute :-)
Comment 8 James Lee 2004-01-20 19:49:56 UTC
I have tried the latest ebuilds and they work perfectly...lets get them in Portage.
Comment 9 squeeze 2004-01-21 01:05:15 UTC
Same here, the ebuild emerged w/o errors and '/etc/init.d/tomcat start' started tomcat at port 8080, serving pages.
Comment 10 Adrian Almenar 2004-01-21 04:27:11 UTC
Im actually working on bug #37922 thats is a tomcat 5 built from sources, also im adding all the deps to portage and i will try to get the best of that ebuild and this ebuild.
Comment 11 Chetan Sarva 2004-02-11 13:52:50 UTC
Created attachment 25432 [details]
Updated ebuild for 5.0.18 & 4.1.29

Updated ebuilds for both 5.0.18 and 4.1.29. In addition to installing the
latest revisions of each series they fix the following bugs:

#21772 - upgrading tomcat removes tomcat user/group
#38358 - wrong file permissions
#27144 - permissions (same as above)
#22040 - permissions (same as above)
#19723 - classpath fixes
#39819 - keepdir instead of touch .keep
#26994 - request for 4.1.27
#32408 - request for 4.1.29
Comment 12 Chetan Sarva 2004-02-11 15:27:38 UTC
Created attachment 25437 [details]
Updated ebuild for 5.0.18 & 4.1.29 (new fixes)

Fixes bug #38952 and bug #38949.

Previously, the jars from common/endorsed were moved to /usr/share/tomcat/lib
along with the jars from common/lib. This breaks the endorsed dirs
functionality. See here: http://java.sun.com/j2se/1.4.2/docs/guide/standards/
Comment 13 Chris Aniszczyk (RETIRED) gentoo-dev 2004-02-15 17:14:46 UTC
In portage now. Thanks guys!!!