Howto install tomcat6

Mr. Puneet Kishor punk.kish at gmail.com
Tue Sep 20 06:15:24 PDT 2011


Sebastian,

Check the email archives from a few days ago... I had the same problem, and it was easy to fix. See [https://trac.macports.org/ticket/30448]. Use the following command --

$sudo port install tomcat6 build.asroot=yes

On Sep 20, 2011, at 3:44 AM, Sebastian Mohr wrote:

> Hi again,
> 
> maybe interesting to mention is the output of the end of the log file:
> 
> Log for commons-fileupload is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_commons-fileupload/commons-fileupload/main.log
> 
> [...]
> :debug:build Executing command line:  cd "/opt/local/var/macports/build/_
> opt_local_var_macports_sources_rsync.ma
> cports.org_release_tarballs_ports_java_commons-fileupload/commons-fileupload/work/commons-fileupload-1.2.1-src"
> && ant dist -Dfinal.name=commons-fileupload -Dnoget=true
> :info:build Buildfile:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_
> tarballs_ports_java_commons-fileupload/commons-fileupload/work/commons-fileupload-1.2.1-src/build.xml
> :info:build
> :info:build init:
> :info:build
> :info:build setProxy:
> :info:build
> :info:build noProxy:
> :info:build      [echo] Proxy not used.:info:build:info:build
> get-custom-dep-commons-io.jar:
> :info:build
> :info:build get-dep-commons-io.jar:
> :info:build:info:build BUILD FAILED:info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_po
> rts_java_commons-fileupload/commons-fileupload/work/commons-fileupload-1.2.1-src/build.xml:196:
> Can't write to /
> Users/masu/.maven/repository/commons-io/jars/commons-io-1.3.2.jar
> :info:build
> :info:build Total time: 0 seconds
> :info:build shell command " cd "/opt/local/var/macports/build/_
> opt_local_var_macports_sources_rsync.macports.org
> _release_tarballs_ports_java_commons-fileupload/commons-fileupload/work/commons-fileupload-1.2.1-src"
> && ant dis
> t -Dfinal.name=commons-fileupload -Dnoget=true " returned error 1
> :error:build Target org.macports.build returned: shell command failed (see
> log for details):debug:build Backtrace: shell command failed (see log for
> details)
>    while executing
> "command_exec build"
>    (procedure "portbuild::build_main" line 8)
>    invoked from within
> "$procedure $targetname":info:build Warning: the following items did not
> execute (for commons-fileupload): org.macports.activate org.mac
> ports.build org.macports.destroot org.macports.install
> :error:build Failed to install commons-fileupload
> :debug:build could not read "/opt/local/share/java/commons-el.jar": no such
> file or directory
>    while executing
> "file type $file"
> :notice:build Log for commons-fileupload is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_commons-fileupload/commons-fileupload/main.log
> 
> Thanks,
> masu
> 
> 
> On Tue, Sep 20, 2011 at 10:29 AM, Sebastian Mohr
> <sebastian.mohr at gmail.com>wrote:
> 
>> Hi there,
>> 
>> Sorry ... this might be a newbie question. I am trying to install Tomcat 6
>> based on this tutorial with MacPorts 2.0.3 on Leopard 10.5.8:
>> 
>> 
>> http://mikevalentiner.wordpress.com/2009/01/30/how-to-install-and-run-tomcat-on-macos/
>> 
>> When trying to install Tomcat 6 via "sudo port install tomcat6" after some
>> time I get this error:
>> 
>>   Error: Target org.macports.build returned: shell command failed (see log
>> for details)
>>   Error: Failed to install commons-fileupload
>>   Log for commons-fileupload is at:
>> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_commons-fileupload/commons-fileupload/main.log
>>   Error: The following dependencies were not installed: commons-fileupload
>> commons-httpclient commons-codec commons-io commons-launcher commons-modeler
>> mx4j jakarta-bcel jakarta-regexp jakarta-taglibs-standard-11 xalanj xercesj
>> saxpath
>>   Error: Status 1 encountered during processing.
>>   To report a bug, see <http://guide.macports.org/#project.tickets>
>> 
>> Not sure what this means and what I need to do. After that I have checked
>> that these projects have been built already ... checked with "port
>> installed":
>> 
>>   apache-ant @1.8.2_0 (active)  commons-beanutils @1.8.2_0 (active)
>>   commons-collections @3.2.1_0 (active)
>>   commons-daemon @1.0.2_0 (active)
>>   commons-dbcp @1.2.2_0 (active)
>>   commons-digester @2.0_0 (active)
>>   commons-el @1.0_1 (active)
>>   commons-logging @1.1.1_0 (active)
>>   commons-pool @1.5.4_0 (active)
>>   hamcrest-core @1.2_0 (active)
>>   jakarta-log4j @1.2.16_0 (active)
>>   junit @4.6_2 (active)
>>   servlet23-api @1_0 (active)
>>   servlet24-api @5.5.28_0 (active)
>> 
>> Since I used a working tomcat 6 with an earlier version of MacPorts (don't
>> remember which version number) and upgraded to 2.0.3 I assume that this
>> might have caused the problem. That's why uninstalled MacPort with
>> 
>> %% *sudo port -fp uninstall --follow-dependents installed*
>> 
>> 
>> ... and:
>> 
>> %% *sudo rm -rf \
>>    /opt/local \
>>    /Applications/DarwinPorts \
>>    /Applications/MacPorts \
>>    /Library/LaunchDaemons/org.macports.* \
>>    /Library/Receipts/DarwinPorts*.pkg \
>>    /Library/Receipts/MacPorts*.pkg \
>>    /Library/StartupItems/DarwinPortsStartup \
>>    /Library/Tcl/darwinports1.0 \
>>    /Library/Tcl/macports1.0 \
>>    ~/.macports*
>> 
>> 
>> ... as mentioned in the documentation:
>> 
>> http://guide.macports.org/#installing.macports.uninstalling
>> 
>> But this didn't help solving the same problem.
>> Any hints? I hope you could help me out here.
>> 
>> 
>> Thanks,
>> masu
>> 
>> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users



More information about the macports-users mailing list