users@glassfish.java.net

ant -f setup.xml behaves differently on Leopard

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 Nov 2007 12:40:34 PST

I have just tried installing v2b58g on MacOS X 10.5 ("leopard") for the first time, and it is not succeeding. (I have been using and frequently installing glassfish v2 on Tiger for quite a while now.) I unpackage glassfish like this...

    cd /Library
    java -Xmx256m -jar /Library/Nanonation/glassfish/glassfish-installer-v2-b58g.jar -console

...which succeeds. Upon running the ant script, however, I get an error:

fnord:Library pohl$ cd glassfish/
fnord:glassfish pohl$ ant -f setup.xml
Buildfile: setup.xml

all:
    [mkdir] Created dir: /Library/glassfish/bin

get.java.home:

setup.init:

check-java:

get.java.home:

setup.init:

validate-java:

get.java.home:

setup.init:

glassfish-jarunpack:
     [echo] Applying UnPack200 on Packed jars using JDK1.5
     [echo] /Library/glassfish/lib/Pack200Task.jar

get.java.home:

setup.init:

nonmac-jarunpack:

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-cmp.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-cmp.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-cmp.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-jstl.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-jstl.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-jstl.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-tags.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-tags.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-tags.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/endorsed/activation.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/endorsed/activation.jar
   [delete] Deleting: /Library/glassfish/lib/endorsed/activation.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/endorsed/webservices-api.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/endorsed/webservices-api.jar
   [delete] Deleting: /Library/glassfish/lib/endorsed/webservices-api.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/webservices-rt.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/webservices-rt.jar
   [delete] Deleting: /Library/glassfish/lib/webservices-rt.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/webservices-tools.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/webservices-tools.jar
   [delete] Deleting: /Library/glassfish/lib/webservices-tools.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/com-sun-commons-launcher.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/com-sun-commons-launcher.jar
   [delete] Deleting: /Library/glassfish/lib/com-sun-commons-launcher.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/j2ee-svc.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/j2ee-svc.jar
   [delete] Deleting: /Library/glassfish/lib/j2ee-svc.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/jsf-impl.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/jsf-impl.jar
   [delete] Deleting: /Library/glassfish/lib/jsf-impl.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/sun-appserv-ant.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/sun-appserv-ant.jar
   [delete] Deleting: /Library/glassfish/lib/sun-appserv-ant.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/javaee.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/javaee.jar
   [delete] Deleting: /Library/glassfish/lib/javaee.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-admin.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-admin.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-admin.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/admin-cli.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/admin-cli.jar
   [delete] Deleting: /Library/glassfish/lib/admin-cli.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-deployment-client.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-deployment-client.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-deployment-client.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/appserv-se.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/appserv-se.jar
   [delete] Deleting: /Library/glassfish/lib/appserv-se.jar.pack.gz

jarpack-tasks:

jar-unpack:
[unpack200] Unpacking with Unpack200
[unpack200] Source File :/Library/glassfish/lib/admin-cli-ee.jar.pack.gz
[unpack200] Dest. File :/Library/glassfish/lib/admin-cli-ee.jar
   [delete] Deleting: /Library/glassfish/lib/admin-cli-ee.jar.pack.gz

get.java.home:

setup.init:

-do.copy.common:
     [copy] Copying 1 file to /Library/glassfish/config

do.copy.windows:

do.copy.unix:
     [copy] Copying 1 file to /Library/glassfish/config
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/bin
     [copy] Copying 1 file to /Library/glassfish/updatecenter/bin

do.copy:

get.java.home:

setup.init:

-do.tokenrep.common:

do.token.windows:

do.token.unix:

do.token.jdic.windows:

do.token.jdic.solaris-sparc:

do.token.jdic.solaris-x86:

do.token.jdic.linux:

do.token.jdic.mac:

do.token.jdic:

do.token.enable.uc:

do.token:

get.java.home:

setup.init:

do.chmod.unix:

do.chmod:

get.java.home:

setup.init:

set.env.win:

set.env.unix:

set.env:

create.domain:
     [exec] Domain domain1 already exists in /Library/glassfish/domains. Use a different domain name or the --domaindir option.
     [exec] CLI130 Could not create domain, domain1

BUILD FAILED
/Library/glassfish/setup.xml:169: The following error occurred while executing this line:
/Library/glassfish/setup.xml:551: exec returned: 1

Total time: 8 seconds
[Message sent by forum member 'pohl' (pohl)]

http://forums.java.net/jive/thread.jspa?messageID=246185