#16013 closed defect (worksforme)
tomcat5 build/dependency error on 10.4.11
Reported by: | jgvanus@… | Owned by: | jberry@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | tomcat5 | Cc: | |
Port: |
Description
When I try to install tomcat5 I received an error (below). I was able to reslove this by upgrading commons-modeler from 1.1_0 to 2.0.1_0. I think the dependency's should be updated to reflect the correct version. Thanks for supporting this great tool!
Here is the error I received before upgrading:
$ sudo port -t install tomcat5 ---> Fetching tomcat5 ---> Verifying checksum(s) for tomcat5 ---> Extracting tomcat5 ---> Applying patches to tomcat5 ---> Configuring tomcat5 ---> Building tomcat5 with target download dist compat Warning: An activity was attempted outside sandbox: /etc/group Warning: An activity was attempted outside sandbox: /etc/group Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/.GlobalPreferences.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/.GlobalPreferences.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/.GlobalPreferences.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/.GlobalPreferences.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/ByHost/.GlobalPreferences.0017f2c3a74f.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/ByHost/.GlobalPreferences.0017f2c3a74f.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/ByHost/.GlobalPreferences.0017f2c3a74f.plist Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/ByHost/.GlobalPreferences.0017f2c3a74f.plist 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: copy-fileupload.jar: copy-launcher.jars: copy-modeler.jar: build-static: deploy-prepare: [mkdir] Created dir: /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/common/i18n [mkdir] Created dir: /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/server/classes build-catalina-core: [javac] Compiling 319 source files 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/build/classes [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_tomcat5/work/apache-tomcat-5.5.25-src/container/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java:1649: cannot find symbol [javac] symbol : method clear() [javac] location: class org.apache.commons.modeler.util.IntrospectionUtils [javac] org.apache.commons.modeler.util.IntrospectionUtils.clear(); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 1 error 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:605: 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:567: 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/container/catalina/build.xml:600: Compile failed; see the compiler error output for details. Total time: 2 minutes 7 seconds Error: Status 1 encountered during processing.
Change History (5)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to jberry@… |
---|
comment:2 Changed 16 years ago by jberry@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The commons-modeler port is already at version 2.0.1. So an upgrade would have fixed this. Closing as works for me: let me know if there's something I'm missing here.
comment:3 Changed 16 years ago by jgvanus@…
Sorry for the confusion. I'll try to be more presice.
In similar package management systems that I've used before, a package is dependent on a specific version of other packages. My point is the tomcat5 package should be dependent on commons-modeler 2+, not just any commons-modeler.
In my case I had commons-modeler 1.1. I think that should have failed a dependency check. Upgrading my commons-modeler port is how I got tomcat installed.
I can't find any reference to dependency versions in the docs, is it just not supported yet?
comment:4 Changed 16 years ago by jberry@…
That's correct. Macports unfortunately doesn't at this time support dependencies onto particular versions of ports, or onto ports with particular variants set.
Assigning to maintainer.