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)
Change History (12)
Changed 14 years ago by setsunaruu@…
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@… |
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:11 Changed 6 years ago by chrstphrchvz (Christopher Chavez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please remember to preview and use WikiFormatting, and to cc the maintainer.