dev@glassfish.java.net

Re: promoted build install: sticky jdk1.4 ghost

From: Pierre Delisle <Pierre.Delisle_at_Sun.COM>
Date: Mon, 22 Aug 2005 17:25:59 -0700

Re-unjared the build, re-ran the script and it now
works fine. Thanks to Dinesh for his help on this.

    -- Pierre

Dinesh Patil wrote:
> Just now i dowloaded Windows jar file: b14-glassfish-winnt.jar
> <http://java.net/download/javaee5/promoted/WINNT/glassfish-image-9.0-b14.jar>
> from:
> https://glassfish.dev.java.net/downloads/17Aug05.html
>
> I am able to unjar the file on Windows XP, and able to create domain
> with this.. which platform/date you are trying?
> C:\sun\glassfish>ant -f setup.xml
> Buildfile: setup.xml
> setup.init:
> do.copy.windows:
> [copy] Copying 1 file to C:\sun\glassfish\config
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> [copy] Copying 1 file to C:\sun\glassfish\bin
> ......
> get.java.home:
> setup.init:
> setup.init:
> create.domain.windows:
> [exec] WARNING: The --adminpassword option is insecure and should
> not be us
> ed since it can compromise your password. Please use either the command
> prompt
> or the --passwordfile option.
> [exec] Using default port 3,820 for IIOP_SSL.
> [exec] Using default port 3,920 for IIOP_MUTUALAUTH.
> [exec] Using default port 8,686 for JMX_ADMIN.
> [exec] Domain domain1 created.
> [exec] WARNING: Existing user preference file .asadminprefs has
> been detect
> ed in your home directory. Application Server administration commands
> will atte
> mpt to use admin user name and password stored in this file and this may
> cause u
> nexpected behavior and security issues. It is recommended that you
> delete this
> file prior to using this new domain, domain1.
> create.domain.unix:
> create.domain:
> BUILD SUCCESSFUL
> Total time: 32 seconds
>
> thanks
> Dinesh
>
> Pierre Delisle wrote:
>
>>I'm just trying to install and run off a promoted build,
>>as documented at
>>https://glassfish.dev.java.net/public/downloadsindex.html
>>
>>In such situations, I assume that people should not even know
>>about "maven bootstrap".
>>
>>Am I missing something?
>>
>> -- Pierre
>>
>>Dinesh Patil wrote:
>>
>>
>>
>>>Pierre Delisle wrote:
>>>
>>>
>>>
>>>>On a windows XP platform, I installed promoted build 14, unjar'ed the
>>>>jar file.
>>>>
>>>>When running "ant -f setup.xml", I get the following:
>>>>
>>>>create.domain.windows:
>>>> [exec] java.lang.UnsupportedClassVersionError:
>>>>com/sun/enterprise/cli/frame
>>>>work/CLIMain (Unsupported major.minor version 49.0)
>>>> [exec] at java.lang.ClassLoader.defineClass0(Native Method)
>>>> [exec] at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>>>>
>>>>
>>>>This is probably because 1.4 is picked up instead of J2SE 5.0.
>>>>However, my path has J2SE 5.0 in it.
>>>>
>>>>If I run "java -version" prior to running ant, I get:
>>>>
>>>> D:\glassfish-b14>java -version
>>>> java version "1.5.0_01"
>>>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
>>>> Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)
>>>>
>>>>And if I add the following in the ant script prior to the 'exec' that
>>>>fails:
>>>>
>>>> <exec executable="java" failonerror="true">
>>>> <arg line="-version" />
>>>> </exec>
>>>>
>>>>I get:
>>>>
>>>> [exec] java version "1.5.0_01"
>>>> [exec] Java(TM) 2 Runtime Environment, Standard Edition (build
>>>>1.5.0_01-b08)
>>>> [exec] Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)
>>>>
>>>>So it looks like J2SE 5.0 should be picked up, but it isn't.
>>>>
>>>>Also, if I echo the value of the java.home in "get.java.home",
>>>>I get the following:
>>>>
>>>>D:\glassfish-b14>ant -f setup.xml get.java.home
>>>>Buildfile: setup.xml
>>>>
>>>>get.java.home:
>>>> [echo] java.home: d:\jdk1.5.0_01\jre
>>>>
>>>>
>>>>Any idea why a jdk 1.4 keeps being invoked for the exec while
>>>>everything seems to properly point to J2SE 5.0?
>>>>
>>>>
>>>>
>>>>
>>>Pierre,
>>>I don't think any of the above message says its due to JDK1.4, but
>>>actually this is due to incorrect jar version downloaded wrt. your
>>>platform. So please check your glassfish.os.name in
>>>$HOME/build.properties and remove
>>>${glassfish.root}/glassfish_dependencies directory, and run "maven
>>>bootstrap" again.
>>>thanks
>>>Dinesh
>>>
>>>
>>>
>>>>Thanks,
>>>>
>>>> -- Pierre
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>>
>