Opened 14 years ago

Last modified 3 years ago

#28938 new request

tomcat 7

Reported by: mikejbond@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: blair (Blair Zajac), todmorrison (Tod Morrison), jere@…, macports@…, bgrupe27, robink@…, mmpestorich (Mike M Pestorich), cooljeanius (Eric Gallager), jeabraham, pdegregorio@…, litlfred@…, scottschreckengaust (Scott Schreckengaust), rockettj@…, danielta, arto@…, FranklinYu (Franklin Yu), chrstphrchvz (Christopher Chavez)
Port: tomcat7

Description

Would it be possible to add tomcat 7 (latest being 7.0.11) to macports? It's been GA for about six months now and appears to be stable.

Attachments (3)

tomcat7.zip (9.9 KB) - added by mikejbond@… 13 years ago.
tomcat7-7.0.32.zip (12.4 KB) - added by slackero (Oliver Georgi) 12 years ago.
Tomcat 7, v7.0.32 (enhanced by comment:8 https://trac.macports.org/ticket/28938#comment:8)
Portfile (9.2 KB) - added by mmpestorich (Mike M Pestorich) 12 years ago.

Download all attachments as: .zip

Change History (31)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: blair@… added
Port: tomcat7 added

comment:2 Changed 14 years ago by blair (Blair Zajac)

Sure, I'd like it to have it also?

Can you provide a Port for it? The number of cycles I have is limited.

BTW, I'm thinking of using the binary Tomcat distribution, not the source one. I don't see any point in compiling Tomcat.

comment:3 Changed 13 years ago by pengyu.ut@…

Has this been ported to macports? I still don't find tomcat7.

comment:4 in reply to:  description Changed 13 years ago by mikejbond@…

I have put together a tomcat7 port based on the tomcat6 Portfile and files. I renamed tomcatctl to tomcat7ctl and updated all the various scripts to make it work. It still uses the src archive as it was simpler and the original tomcat6 port used some files that don't exist in the binary distribution.

I don't know how new ports are usually submitted, I'm attaching it to the ticket as a zip file. Anyone that wishes to use this prior to it being included in macports officially can do the following:

cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/java
unzip <attached zip file>
cd ../..
portindex
port install tomcat7

I am using tomcat7 from eclipse for development. I haven't tried to run it standalone so can't guarantee that it will run without some tweaking.

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 13 years ago by mikejbond@…

Attachment: tomcat7.zip added

comment:5 Changed 13 years ago by mikejbond@…

Correction to the instructions for manually adding the attached zip to the available ports:

cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/java
unzip <attached zip file>
cd ..
portindex
port install tomcat7
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 12 years ago by mikejbond@…

Any chance the attached zip containing the Portfile, etc could be added to the ports repository?

comment:7 Changed 12 years ago by todmorrison (Tod Morrison)

Cc: todmorrison@… added

Cc Me!

comment:8 Changed 12 years ago by todmorrison (Tod Morrison)

Need to add "tomcat-juli.jar" to CLASSPATH when adding "java.util.logging.manager=org.apache.juli.ClassLoaderLogManager" to JAVA_OPTS, i.e. change:

if [ -r "${CATALINA_HOME}/bin/tomcat-juli.jar" ]; then
  JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
fi

to:

if [ -r "${CATALINA_HOME}/bin/tomcat-juli.jar" ]; then
  JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
  CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/tomcat-juli.jar
fi
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 12 years ago by jere@…

Cc: jere@… added

Cc Me!

comment:10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: macports@… added

Has duplicate #36288.

comment:11 Changed 12 years ago by bgrupe27

Cc: bgrupe@… added

Cc Me!

Changed 12 years ago by slackero (Oliver Georgi)

Attachment: tomcat7-7.0.32.zip added

comment:12 Changed 12 years ago by robink@…

Cc: robink@… added

Cc Me!

comment:13 Changed 12 years ago by mmpestorich (Mike M Pestorich)

Cc: mmpestorich@… added

Cc Me!

comment:14 Changed 12 years ago by mmpestorich (Mike M Pestorich)

I attached a Portfile for tomcat7. Basically I just modified the existing tomcat6 portfile and didn't ro a lot of testing but its builds and installs without error. Note that Tomcat 7 requires java 6 in order to be built. You must use java 6 to compile tomcat 7 however you may use java 7 to run tomcat 7 (see: http://tomcat.apache.org/tomcat-7.0-doc/building.html#Download_a_Java_Development_Kit_(JDK)_version_6).

Version 0, edited 12 years ago by mmpestorich (Mike M Pestorich) (next)

Changed 12 years ago by mmpestorich (Mike M Pestorich)

Attachment: Portfile added

comment:15 Changed 12 years ago by mmpestorich (Mike M Pestorich)

Woops. Sorry. Guess I should have read all the messages... I just noticed that in the tomcat7.zip there was already an updated Porfile.

comment:16 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:17 Changed 12 years ago by mf2k (Frank Schima)

Cc: jea@… added
Version: 1.9.2

Cc reporter of duplicate #38390.

comment:18 Changed 11 years ago by pdegregorio@…

Cc: pdegregorio@… added

Cc Me!

comment:19 Changed 11 years ago by litlfred@…

Cc: litlfred@… added

Cc Me!

comment:20 Changed 10 years ago by scottschreckengaust (Scott Schreckengaust)

Cc: scott@… added

Cc Me!

comment:21 Changed 10 years ago by rockettj@…

Cc: rockettj@… added

Cc Me!

comment:22 Changed 9 years ago by raupachz (Björn Raupach)

Any updates on tomcat7 and maybe a tomcat8?

comment:23 Changed 9 years ago by danielta

Cc: daniele.tartarini@… added

Cc Me!

comment:24 Changed 9 years ago by arto@…

Cc: arto@… added

Cc Me!

comment:25 Changed 8 years ago by mrichardsonjr

A 6 year old ticket, and now 2 major versions behind (soon to be 3 with the release of Tomcat 9). Think I'll be using HomeBrew.

comment:26 Changed 6 years ago by FranklinYu (Franklin Yu)

Cc: FranklinYu added

comment:27 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:28 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

Support for Tomcat 7 ended 2021-03-31. Can this request be closed?

Note: See TracTickets for help on using tickets.