Opened 14 years ago

Closed 6 years ago

#25740 closed defect (fixed)

Tomcat5 fails to build on Snow Leopard

Reported by: setsunaruu@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: tbtjr@…, rundablage@…, jason@…, lewiszhang@…
Port: tomcat5

Description (last modified by jmroot (Joshua Root))

>> '''sudo port clean --all tomcat5'''

--->  Cleaning tomcat5

>> '''sudo port install tomcat5'''

--->  Computing dependencies for tomcat5
--->  Fetching tomcat5
--->  Attempting to fetch apache-tomcat-5.5.25-src.tar.gz from http://apache.mirroring.de/tomcat/tomcat-5/v5.5.25/src/
--->  Attempting to fetch apache-tomcat-5.5.25-src.tar.gz from http://lil.fr.distfiles.macports.org/tomcat5
--->  Verifying checksum(s) for tomcat5
--->  Extracting tomcat5
--->  Applying patches to tomcat5
--->  Configuring tomcat5
--->  Building tomcat5
Error: Target org.macports.build returned: shell command failed
Log for tomcat5 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (81.8 KB) - added by setsunaruu@… 14 years ago.

Download all attachments as: .zip

Change History (12)

Changed 14 years ago by setsunaruu@…

Attachment: main.log added

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: fails to build removed
Owner: changed from macports-tickets@… to jberry@…

Please remember to preview and use WikiFormatting, and to cc the maintainer.

comment:2 Changed 14 years ago by tbtjr@…

Cc: tbtjr@… added

Cc Me!

comment:3 Changed 14 years ago by rundablage@…

Cc: rundablage@… added

Cc Me!

comment:4 Changed 14 years ago by jason@…

Cc: jason@… added

Cc Me!

comment:5 Changed 14 years ago by jason@…

From the log it looks like the problem is that it is building with JDK5 which treats the @Override annotation more strictly (as errors) than JDK6.

comment:6 Changed 14 years ago by stlee42@…

rather, i think it's because tomcat5 is being built with JDK6. Apple stopped shipping JDK5 starting with snow leopard.

i followed the instructions at this website (http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard) to install JDK5 on Snow Leopard. it's a bit hacky.

i reinstalled all of java packages. (had to delete the below lines from commons-dbcp Portfile), and tomcat 5 built and installed fine for me.

platform darwin 10 {
        build.args-append -Djavac.source=5
        patchfiles-append patch-JDK-1.6.diff
}

comment:7 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from jberry@… to macports-tickets@…

comment:8 Changed 13 years ago by nic@…

This seems to be a showstopper for installing tomcat5 on Lion too. Is there a workaround so that I can restore my development environment on Lion?

comment:9 Changed 13 years ago by nic@…

Any progress?

comment:10 Changed 13 years ago by lewiszhang@…

Cc: lewiszhang@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

In dbe1e2f68eed31b564b1f91d260de74d1b3b3e02/macports-ports (master):

tomcat5: delete outdated and EOL port

Port has been outdated as early as 2008.

Tomcat5 was end-of-lifed in 2012,
and may have security issues
only addressed in later Tomcat versions.

Closes: #14222
Closes: #25740

Note: See TracTickets for help on using tickets.