dev@glassfish.java.net

Re: windows build error

From: Jacob Hookom <jacob_at_hookom.net>
Date: Thu, 23 Jun 2005 13:45:19 -0500

Nevermind, it was an issue with multiple JDK's and JAVA_HOME.

Jacob Hookom wrote:

> I just checked out Glassfish from CVS HEAD and then attempted to build
> on a WINNT environment (as the home page describes). I'm getting
> class versioning errors--
>
> ---
>
> E:\JSF\glassfish\glassfish>java -version
> java version "1.5.0_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
> Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
>
> E:\JSF\glassfish\glassfish>maven
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0.2
>
> Plugin cache will be regenerated
> Directory \home\jhook\java.net\glassfish_dependencies does not exist.
> Attempting to create.
> Attempting to download commons-jelly-tags-interaction-1.0.jar.
> 7K downloaded
> Attempting to download commons-jelly-tags-http-1.0.jar.
> 18K downloaded
> Attempting to download glassfish-image-SNAPSHOT.jar.
> 60801K downloaded
> build:start:
>
> all:
> bootstrap:
> [mkdir] Created dir: E:\home\jhook\java.net\publish\glassfish
> [unzip] Expanding:
> \home\jhook\java.net\glassfish_dependencies\glassfish-image\jars\glassfish-im
>
> age-SNAPSHOT.jar into \home\jhook\java.net\publish\glassfish
>
> build:
> [echo] ------------------------------
> [echo] - Building GlassFish modules -
> [echo] ------------------------------
>
> configure-runtime:
> [copy] Copying 1 file to
> E:\home\jhook\java.net\publish\glassfish\config
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [copy] Copying 1 file to E:\home\jhook\java.net\publish\glassfish\bin
> [exec] java.lang.UnsupportedClassVersionError:
> com/sun/enterprise/cli/framework/CLIMain (Unsuppo
> rted major.minor version 49.0)
> [exec] at java.lang.ClassLoader.defineClass0(Native Method)
> [exec] at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> [exec] at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> [exec] at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> [exec] at
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> [exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> [exec] at java.security.AccessController.doPrivileged(Native
> Method)
> [exec] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> [exec] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> [exec] at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> [exec] Exception in thread "main"
> BUILD SUCCESSFUL
> Total time: 2 minutes 26 seconds
> Finished at: Thu Jun 23 12:56:46 CDT 2005
>
>
> --
>
> Best Regards,
> Jacob Hookom (WebTier)
>
>
>
> Amy Roh wrote:
>
>> Dinesh Patil wrote:
>>
>>> Did you setup any proxy host/port? if you are inside firewall then
>>> you may not need but looks like you don't have access to java.net or
>>> you may have private IP Address?
>>
>>
>>
>> I didn't define proxy/host because I wasn't behind firewall.
>> Defining proxy/host behind firewall results in the following
>> java.lang.reflect.InvocationTargetException? Anyone seen this?
>>
>> C:\javanet\glassfish-workspace\glassfish\glassfish>maven checkout
>> __ __
>> | \/ |__ _Apache__ ___
>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
>> |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1
>>
>> DEPRECATED: the default goal should be specified in the <build>
>> section of proje
>> ct.xml instead of maven.xml
>> Attempting to download glassfish-image-SNAPSHOT.jar.
>>
>> BUILD FAILED
>> File...... C:\javanet\glassfish-workspace\glassfish\glassfish\maven.xml
>> Element... ant:echo
>> Line...... 54
>> Column.... -1
>> java.lang.reflect.InvocationTargetException
>> Total time : 2 minutes 33 seconds
>> Finished at : Monday, June 20, 2005 5:41:24 PM GMT-08:00
>>
>> Thanks,
>> Amy
>>
>>>
>>> Ignoring invalid proxy port: ''
>>> Error retrieving artifact from
>>> [http://www.java.net/download/javaee5/nightly/WIN
>>> NT/]: java.lang.IllegalArgumentException: port out of range:-1
>>>
>>> thanks
>>> -Dinesh
>>>
>>> Amy Roh wrote:
>>>
>>>> I'm trying to build glassfish on win for demo and getting the
>>>> following error but haven't seen this on solaris. Any ideas?
>>>>
>>>> Thanks,
>>>> Amy
>>>>
>>>> C:\...\glassfish>maven checkout
>>>> __ __
>>>> | \/ |__ _Apache__ ___
>>>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
>>>> |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1
>>>>
>>>> DEPRECATED: the default goal should be specified in the <build>
>>>> section of proje
>>>> ct.xml instead of maven.xml
>>>> Directory C:\javanet\glassfish-workspace\glassfish_dependencies
>>>> does not exist.
>>>> Attempting to create.
>>>> Attempting to download commons-jelly-tags-interaction-1.0.jar.
>>>> Ignoring invalid proxy port: ''
>>>> Error retrieving artifact from
>>>> [http://www.java.net/download/javaee5/nightly/WIN
>>>> NT/]: java.lang.IllegalArgumentException: port out of range:-1
>>>> Error retrieving artifact from [http://www.ibiblio.org/maven]:
>>>> java.lang.Illegal
>>>> ArgumentException: port out of range:-1
>>>> WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
>>>> Attempting to download commons-jelly-tags-http-1.0.jar.
>>>> Ignoring invalid proxy port: ''
>>>> Error retrieving artifact from
>>>> [http://www.java.net/download/javaee5/nightly/WIN
>>>> NT/]: java.lang.IllegalArgumentException: port out of range:-1
>>>> Error retrieving artifact from [http://www.ibiblio.org/maven]:
>>>> java.lang.Illegal
>>>> ArgumentException: port out of range:-1
>>>> WARNING: Failed to download commons-jelly-tags-http-1.0.jar.
>>>> Attempting to download glassfish-image-SNAPSHOT.jar.
>>>> Ignoring invalid proxy port: ''
>>>> Error retrieving artifact from
>>>> [http://www.java.net/download/javaee5/nightly/WIN
>>>> NT/]: java.lang.IllegalArgumentException: port out of range:-1
>>>> Error retrieving artifact from [http://www.ibiblio.org/maven]:
>>>> java.lang.Illegal
>>>> ArgumentException: port out of range:-1
>>>> WARNING: Failed to download glassfish-image-SNAPSHOT.jar.
>>>> The build cannot continue because of the following unsatisfied
>>>> dependencies:
>>>>
>>>> commons-jelly-tags-interaction-1.0.jar
>>>> commons-jelly-tags-http-1.0.jar
>>>> glassfish-image-SNAPSHOT.jar
>>>>
>>>> Total time : 1 seconds
>>>> Finished at : Monday, June 20, 2005 4:22:09 PM GMT-08:00
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>
>


-- 
Jacob Hookom - Minneapolis
--------------------------
http://hookom.blogspot.com