quality@glassfish.java.net

Re: Not able to find the A location

From: Jack Sparrow <jacksparrow602_at_gmail.com>
Date: Tue, 29 Sep 2009 02:20:36 +0900

Hi Dwarak

> BUILD FAILED
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:169: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:183: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:148: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:144: Please set java.home
> to a JDK installation

I think more than two versions of JDKs are unstalled into your environment.
In this situation, it needs to expressly define the $JAVA_HOME
environment like below :
$ export JAVA_HOME=/opt/java/jdk1.6.0_15

and

$ export PATH=$JAVA_HOME/bin:$PATH

For example my environment is blow :
OS : Mac OS X 10.6 Snow
Java :
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

My java environment is only this, so that problem has not occured on
the ant task.

But I will find out another problem.
Please give me more time.
Because 2:00 29/9/2009 (at JST) now, I feel dopey savy? ha-
I want to asleep.

> Thanks Jack!Found it!
>
> When  run the setup-cluster.xml I am getting the following error,
>
> BUILD FAILED
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:169: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:183: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:148: The following error
> occurred while executing this line:
> /home/jboss/glassfish-v2ur2/setup-cluster.xml:144: Please set java.home
> to a JDK installation
>
> Can you please help!
>
> If I give add cluster support in admin console,will it do the same as
> *ant -f setup-cluster.xml
>
> *Awaiting for your Reply!
>
>
> --
> Regards,
> Dwarak
> Jack Sparrow wrote:
>> Hi Dwarak
>>
>>
>>> /lib/ant/bin/ant.
>>>
>> If you want to use the "ant", the full path location is below :
>> $GLASSFISH_HOME/lib/ant/bin/ant
>>
>> Did you see this location ?
>>
>> For example, my $GLASSFISH_HOME is /Applications/glassfish/.
>> So the ant location is /Applications/glassfish/lib/ant/bin/ant.
>>
>> "lib" directory is not located under the root.
>>
>> Please check it.
>>
>> 2009/9/29 Jack Sparrow <jacksparrow602_at_gmail.com>:
>>
>>> Hello,
>>>        I am trying to configure a Glassfish cluster using glassfish v2
>>> and when I am trying to run the setup-cluster.xml,I am not able to find
>>> this location,
>>>
>>> /lib/ant/bin/ant.
>>>
>>>
>>> Please help!
>>>
>>>
>>> --
>>> Regards,
>>> Dwarak
>>>
>>>
>>
>>
>



-- 
Thanks
Jack