Error while installing Tomcat5 using macports

View: New views
5 Messages — Rating Filter:   Alert me  

Error while installing Tomcat5 using macports

by sandystorm () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

Any solution/suggestion/workaround to this issue will be much appreciated as I am in the midst of a very tight timeline:

While installing tomcat5 using macports, I get this error. Please find below the error log:

administrator$ sudo port install tomcat5
--->  Building commons-logging with target all
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_commons-logging/work/commons-logging-1.1-src" && ant all -Dlog4j12.jar=/opt/local/share/java/jakarta-log4j.jar -Dlogkit.jar=NONE -Davalon-framework.jar=NONE -Dservletapi.jar=/opt/local/share/java/servlet23-api.jar " returned error 1
Command output:     [javac]         assertTrue(weakHashtable.containsKey(new Long(2)));
    [javac]         ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-logging/work/commons-logging-1.1-src/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java:74: cannot find symbol
    [javac] symbol  : method assertTrue(boolean)
    [javac] location: class org.apache.commons.logging.impl.WeakHashtableTest
    [javac]         assertTrue(weakHashtable.containsKey(new Long(3)));
    [javac]         ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-logging/work/commons-logging-1.1-src/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java:75: cannot find symbol
    [javac] symbol  : method assertFalse(boolean)
    [javac] location: class org.apache.commons.logging.impl.WeakHashtableTest
    [javac]         assertFalse(weakHashtable.containsKey(new Long(100)));
    [javac]         ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-logging/work/commons-logging-1.1-src/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java:76: cannot find symbol
    [javac] symbol  : method assertFalse(boolean)
    [javac] location: class org.apache.commons.logging.impl.WeakHashtableTest
    [javac]         assertFalse(weakHashtable.containsKey(new Long(200)));
    [javac]         ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-logging/work/commons-logging-1.1-src/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java:77: cannot find symbol
    [javac] symbol  : method assertFalse(boolean)
    [javac] location: class org.apache.commons.logging.impl.WeakHashtableTest
    [javac]         assertFalse(weakHashtable.containsKey(new Long(300)));
    [javac]         ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 errors

BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-logging/work/commons-logging-1.1-src/build.xml:558: Compile failed; see the compiler error output for details.

Total time: 1 second

Error: The following dependencies failed to build: commons-beanutils commons-logging commons-daemon commons-dbcp commons-pool commons-digester commons-el servlet24-api commons-fileupload commons-httpclient commons-codec commons-io commons-launcher commons-modeler mx4j jakarta-bcel jakarta-regexp jakarta-taglibs-standard-11 xalanj xercesj jaxen dom4j jdom xom saxpath
Error: Status 1 encountered during processing.


What could be the reason for this error?

Thanks in advance.
Sandeep


Re: Error while installing Tomcat5 using macports

by realk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sandystorm wrote:
Dear all,

Any solution/suggestion/workaround to this issue will be much appreciated as I am in the midst of a very tight timeline:

While installing tomcat5 using macports, I get this error. Please find below the error log:

Hello,

I also got the same problem when trying to install tomcat5 on Leopard OS X Server with macports.
Please, find enclosed the debug stack.

Thanks for your help on this,



debug_tomcat.txt

Re: Error while installing Tomcat5 using macports

by realk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When trying a port -dv  selfupdate , I got this error :


 DEBUG: Rebuilding the MacPorts base system if needed.
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname provided, or not known
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
DEBUG: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync
    while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync


when trying a  port -dv sync , got :

DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname provided, or not known
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
DEBUG: Synchronization the local ports tree failed doing rsync
    while executing
"mportsync"
port sync failed: Synchronization the local ports tree failed doing rsync


Any help on this ?


Re: Error while installing Tomcat5 using macports

by Ryan Schmidt-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Feb 4, 2008, at 05:41, realk wrote:

> When trying a port -dv  selfupdate , I got this error :
>
>
>  DEBUG: Rebuilding the MacPorts base system if needed.
> DEBUG: Synchronizing ports tree(s)
> Synchronizing local ports tree from
> rsync://rsync.macports.org/release/ports/
> DEBUG: /usr/bin/rsync -rtzv --delete-after
> rsync://rsync.macports.org/release/ports/
> /opt/local/var/macports/sources/rsync.macports.org/release/ports
> rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname  
> provided,
> or not known
> rsync error: error in socket IO (code 10) at
> /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
> DEBUG: Couldn't sync the ports tree: Synchronization the local  
> ports tree
> failed doing rsync
>     while executing
> "macports::selfupdate [array get global_options]"
> Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync  
> the ports
> tree: Synchronization the local ports tree failed doing rsync
>
>
> when trying a  port -dv sync , got :
>
> DEBUG: Synchronizing ports tree(s)
> Synchronizing local ports tree from
> rsync://rsync.macports.org/release/ports/
> DEBUG: /usr/bin/rsync -rtzv --delete-after
> rsync://rsync.macports.org/release/ports/
> /opt/local/var/macports/sources/rsync.macports.org/release/ports
> rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname  
> provided,
> or not known
> rsync error: error in socket IO (code 10) at
> /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
> DEBUG: Synchronization the local ports tree failed doing rsync
>     while executing
> "mportsync"
> port sync failed: Synchronization the local ports tree failed doing  
> rsync
>
>
> Any help on this ? :-((

It looks like something in your network infrastructure is blocking  
rsync traffic? Can you fix that?


_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Error while installing Tomcat5 using macports

by sandystorm () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ryan Schmidt-24 wrote:
On Feb 4, 2008, at 05:41, realk wrote:

> When trying a port -dv  selfupdate , I got this error :
>
>
>  DEBUG: Rebuilding the MacPorts base system if needed.
> DEBUG: Synchronizing ports tree(s)
> Synchronizing local ports tree from
> rsync://rsync.macports.org/release/ports/
> DEBUG: /usr/bin/rsync -rtzv --delete-after
> rsync://rsync.macports.org/release/ports/
> /opt/local/var/macports/sources/rsync.macports.org/release/ports
> rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname  
> provided,
> or not known
> rsync error: error in socket IO (code 10) at
> /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
> DEBUG: Couldn't sync the ports tree: Synchronization the local  
> ports tree
> failed doing rsync
>     while executing
> "macports::selfupdate [array get global_options]"
> Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync  
> the ports
> tree: Synchronization the local ports tree failed doing rsync
>
>
> when trying a  port -dv sync , got :
>
> DEBUG: Synchronizing ports tree(s)
> Synchronizing local ports tree from
> rsync://rsync.macports.org/release/ports/
> DEBUG: /usr/bin/rsync -rtzv --delete-after
> rsync://rsync.macports.org/release/ports/
> /opt/local/var/macports/sources/rsync.macports.org/release/ports
> rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname  
> provided,
> or not known
> rsync error: error in socket IO (code 10) at
> /SourceCache/rsync/rsync-30/rsync/clientserver.c(94)
> DEBUG: Synchronization the local ports tree failed doing rsync
>     while executing
> "mportsync"
> port sync failed: Synchronization the local ports tree failed doing  
> rsync
>
>
> Any help on this ? :-((

It looks like something in your network infrastructure is blocking  
rsync traffic? Can you fix that?


[Sandeep] Yes, I too feel this is a firewall issue. I stopped the firewall service and tried again. It worked for me. I read in one of the posts that rsync uses port 873. I tried with this port opened, but it still gives the same error. Any suggestion on the right port to open? Thanks!



_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users