Opened 17 years ago

Closed 6 years ago

#14222 closed defect (fixed)

tomcat5 fails to build, missing dependency on struts?

Reported by: damian.janowski@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: tomcat5

Description (last modified by jmpalacios (Juan Manuel Palacios))

$ sudo port install tomcat5
Password:
--->  Building tomcat5 with target download dist compat
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build" && ant download dist compat -Dbase.path=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/Repository -Dnsis.exe=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/.bogus -Dcommons-beanutils.jar=/opt/local/share/java/commons-beanutils.jar -Dcommons-collections.jar=/opt/local/share/java/commons-collections.jar -Dcommons-launcher.jar=/opt/local/share/java/commons-launcher.jar -Dcommons-daemon.jar=/opt/local/share/java/commons-daemon.jar -Dcommons-digester.jar=/opt/local/share/java/commons-digester.jar -Dcommons-el.jar=/opt/local/share/java/commons-el.jar -Dcommons-logging.jar=/opt/local/share/java/commons-logging.jar -Dcommons-logging-api.jar=/opt/local/share/java/commons-logging-api.jar -Dcommons-modeler.jar=/opt/local/share/java/commons-modeler.jar -Dcommons-httpclient.jar=/opt/local/share/java/commons-httpclient.jar -Dcommons-pool.jar=/opt/local/share/java/commons-pool.jar -Dcommons-dbcp.jar=/opt/local/share/java/commons-dbcp.jar -Dcommons-fileupload.jar=/opt/local/share/java/commons-fileupload.jar -Dregexp.jar=/opt/local/share/java/jakarta-regexp.jar -DxercesImpl.jar=/opt/local/share/java/xercesImpl.jar -Dxml-apis.jar=/opt/local/share/java/xml-apis.jar -Dlog4j.jar=/opt/local/share/java/jakarta-log4j.jar -Djmx.lib=/opt/local/share/java -Djunit.jar=/opt/local/share/java/junit.jar -Djaxen.jar=/opt/local/share/java/jaxen.jar -Dsaxpath.jar=/opt/local/share/java/saxpath.jar -Djasper.home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/../jasper " returned error 1
Command output:      [echo] Testing  for /opt/local/share/java/commons-httpclient.jar

downloadgz:

proxyflags:

setproxy:

testexist:
     [echo] Testing  for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/.bogus

downloadfile:

proxyflags:

setproxy:

testexist:
     [echo] Testing  for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/Repository/struts-1.2.7/lib/struts.jar

downloadgz:
      [get] Getting: http://archive.apache.org/dist/struts/binaries/struts-1.2.7.tar.gz
      [get] To: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/Repository/file.tar.gz
   [gunzip] Expanding /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/Repository/file.tar.gz to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/Repository/file.tar

BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/build.xml:1988: The following error occurred while executing this line:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/build/build.xml:2031: Problem expanding gzip Unexpected end of ZLIB input stream

Total time: 1 minute 8 seconds

Error: Status 1 encountered during processing.

Attachments (1)

tomcat5.diff (1.0 KB) - added by me@… 16 years ago.

Download all attachments as: .zip

Change History (11)

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

Cc: jberry@… removed
Milestone: Port Bugs
Owner: changed from macports-tickets@… to jberry@…

Assigning to maintainer.

comment:2 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)

Changed 16 years ago by me@…

Attachment: tomcat5.diff added

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 15 years ago by s052655@…

I have the same problem and I really need to get Tomcat 5.5 to work! Is there a workaround?

Actually I just have "---> Building tomcat5" and not "with target download dist compat". Is there a difference?

And does "Milestone Port Bugs deleted" mean that the ticket is not treated as an active bug anymore?

Sorry if it is the wrong place to ask, I'm new here. / Johan

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Port: tomcat5 added

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Does the patch attached to this ticket work for you?

comment:7 Changed 15 years ago by s052655@…

I have now tried the patch and unfortunately I still get the same error!

I had to remove the first half of the patch (diff file) since my servlet24-api port already was at 5.5.27 with the correct checksum (eb3f196013550b9b1684e4ff18593a8e).

I applied the modified patch by "sudo patch -p0 < ~/Downloads/tomcat5_mod.diff" while standing in /opt/local/var/macports/sources/rsync.macports.org/release, did a "sudo port clean --all tomcat5", manually checked that the tomcat5 portfile was correctly updated and finally did a "sudo port install tomcat5". I got the same error in return just with the newer tomcat5 version (5.5.27) and with one difference (which I don't remember if were there before I applied the patch).. I have:

Command output: [echo] Testing for /opt/local/share/java/commons-launcher.jar

instead of .../java/commons-httpclient.jar as in the Ticket description. I don't know if it matters.

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

Summary: tomcat5 fails to build in Leopardtomcat5 fails to build, missing dependency on struts?

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

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

comment:10 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.