users@glassfish.java.net

Updatetool not working due to proxy server issue?

From: <forums_at_java.net>
Date: Sun, 8 May 2011 22:10:58 -0500 (CDT)

Hi All,

I am having difficulty downloading Java EE 6 tutorials (in Netbeans projects)
using Java

updatetool, from Service tab in Netbeans 7.0 => Glassfish 3.1 (right click)
=> View Update

Centre with the following exception:

INFO: Server shutdown initiated
INFO: JMXStartupService: Stopped JMXConnectorServer: null
INFO: JMXStartupService and JMXConnectors have been shut down.
Completed shutdown of Log manager service
Launching GlassFish on Felix platform
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy
for

persistence-type = replicated in BackingStoreFactoryRegistry
INFO: Grizzly Framework 1.9.31 started in: 31ms - bound to [0.0.0.0:3700]
INFO: Grizzly Framework 1.9.31 started in: 235ms - bound to [0.0.0.0:4848]
INFO: Grizzly Framework 1.9.31 started in: 266ms - bound to [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.31 started in: 329ms - bound to [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.31 started in: 31ms - bound to [0.0.0.0:7676]
INFO: The Admin Console is already installed, but not yet loaded.
INFO: GlassFish Server Open Source Edition 3.1 (43) startup time : Felix
(2,646ms), startup

services(1,363ms), total(4,009ms)
INFO: JMXStartupService: Started JMXConnector, JMXService URL =

service:jmx:rmi://saturn.nasa.com:8686/jndi/rmi://saturn.nasa.com:8686/jmxrmi
SEVERE: badproxy
SEVERE: java.net.MalformedURLException: no protocol: proxyscript.nasa.com
 at java.net.URL.<init>(URL.java:567)
 at java.net.URL.<init>(URL.java:464)
 at java.net.URL.<init>(URL.java:413)
 at com.sun.pkg.client.SystemInfo.loadProxyInfo(SystemInfo.java:201)
 at com.sun.pkg.client.SystemInfo.getProxySelector(SystemInfo.java:168)
 at com.sun.pkg.client.Image.<init>(Image.java:965)
 at com.sun.pkg.client.Image.<init>(Image.java:983)
 at

com.sun.enterprise.registration.glassfish.RegistrationUtil.getUpdateCenterImage(Registration

Util.java:180)
 at

com.sun.enterprise.registration.glassfish.RegistrationUtil.setUpdateCenterUUID(RegistrationU

til.java:187)
 at

com.sun.enterprise.registration.glassfish.RegistrationUtil.synchUUID(RegistrationUtil.java:1

74)
 at

com.sun.enterprise.registration.glassfish.PingService.postConstruct(PingService.java:92)
 at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
 at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
 at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
 at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
 at

com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
 at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
 at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:326)
 at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
 at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
 at

com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
 at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)

INFO: Hibernate Validator 4.1.0.Final
INFO: Instantiated an instance of

org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Grizzly Framework 1.9.31 started in: 16ms - bound to [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.31 started in: 16ms - bound to [0.0.0.0:8181]

Below is a similar error when running updatetool on the command prompt on the
same system:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\crystal>updatetool
C:\Documents and Settings\crystal>setlocal
C:\Documents and Settings\crystal>set MY_HOME=C:\glassfish-3.1\bin\
C:\Documents and Settings\crystal>set RETURN_CODE=0
C:\Documents and Settings\crystal>set MY_PATH=updatetool
C:\Documents and Settings\crystal>for /F "tokens=1 delims=\" %A in
("updatetool") do set

MY_NAME=%A
C:\Documents and Settings\crystal>set MY_NAME=updatetool
C:\Documents and Settings\crystal>for /F "tokens=1* delims=\" %A in
("updatetool") do set

MY_PATH=%B
C:\Documents and Settings\crystal>set MY_PATH=
C:\Documents and Settings\crystal>if defined MY_PATH goto loop2C:\Documents
and

Settings\crystal>if /I updatetool == updatetool.bat set MY_NAME=u
pdatetool
C:\Documents and Settings\crystal>if /I updatetool == pkg.bat set MY_NAME=pkg
C:\Documents and Settings\crystal>set BOOTSTRAPJAR=pkg/lib/pkg-bootstrap.jar
C:\Documents and Settings\crystal>set

BOOTSTRAPPROPS=C:\DOCUME~1\crystal\LOCALS~1\Temp\pkg-bootstrap27614.props
C:\Documents and Settings\crystal>set MY_JAVA_HOME="none"
C:\Documents and Settings\crystal>set
JDK_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java

Development Kit
C:\Documents and Settings\crystal>set
JRE_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java

Runtime Environment
C:\Documents and Settings\crystal>set
JRMT_JDK_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java

Development Kit
C:\Documents and Settings\crystal>set
JRMT_JRE_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java

Runtime Environment
C:\Documents and Settings\crystal>set
JRRT_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Real Time
C:\Documents and Settings\crystal>(FOR /F "tokens=1,2*" %A IN ('reg query

"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6" /v JavaHome')
DO SET

MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>SET MY_JAVA_HOME=VERSION 3.0
C:\Documents and Settings\crystal>SET MY_JAVA_HOME=Kit\1.6
C:\Documents and Settings\crystal>SET MY_JAVA_HOME=C:\Program
Files\Java\jdk1.6.0_25
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" FOR

/F "tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Runtime

Environment\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" FOR

/F "tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development

Kit\1.5" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25
\bin" FOR /F "tokens=1,2*" %A IN ('reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java

Runtime Environment\1.5" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" FOR

/F "tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Development

Kit\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" FOR

/F "tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Runtime

Environment\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>(if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" FOR

/F "tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Real
Time\1.6" /v

JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul
C:\Documents and Settings\crystal>if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" set

MY_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_23
C:\Documents and Settings\crystal>if not defined MY_JAVA_HOME goto
findjavainpath
C:\Documents and Settings\crystal>if not exist "C:\Program
Files\Java\jdk1.6.0_25\bin" goto

findjavainpath
C:\Documents and Settings\crystal>set MY_JAVA_CMD=C:\Program
Files\Java\jdk1.6.0_25\bin\java

C:\Documents and Settings\crystal>echo.
C:\Documents and Settings\crystal>echo The software needed for this command
(updatetool) is

not installed.
The software needed for this command (updatetool) is not installed.

C:\Documents and Settings\crystal>set /p RESPONSE="Would you like to install
Update Tool now

(y/n): "
Would you like to install Update Tool now (y/n): y

C:\Documents and Settings\crystal>"C:\Program
Files\Java\jdk1.6.0_25\bin\java"

-Dimage.path="C:\glassfish-3.1\bin\\.." -jar

"C:\glassfish-3.1\bin\\..\pkg/lib/pkg-bootstrap.jar"

"C:\DOCUME~1\crystal\LOCALS~1\Temp\pkg-bootstrap27614.props"
Cannot connect to proxy: saturn.nasa.com
Input/output error: no protocol: saturn.nasa.com

Could not download application packages. This could be because:
  - a proxy server is needed to access the internet. Please ensure that
    the system proxy server settings in your Internet Options control
panel
    (under Connections:LAN Settings) are correct, or set the HTTP_PROXY
    environment variable to the full URL of the proxy server.
  - the package server is down or otherwise inaccessible or it is
    generating invalid data. Please contact the provider of the package
    server.

The proxyscript.nasa.com has been set in Internet Options Control panel
(under

Connections:LAN Settings) in "Use Automatic configuration Script" and is used
by both

Internet Explorer and Firefox. It appears that updatetool is picking up
proxyscript.nasa.com

from HTTP_PROXY which is set to this value. Nevertheless, changing HTTP_PROXY
to

"validproxy.nasa.com" or "validproxy.nasa.com:80" did not help even though it
confirms the

lookup from HTTP_PROXY which resulted in the following error still:

C:\Documents and Settings\crystal>echo %HTTP_PROXY%
validproxy.nasa.com:80

C:\Documents and Settings\crystal>"C:\Program
Files\Java\jdk1.6.0_25\bin\java"

-Dimage.path="C:\glassfish-3.1\bin\\.." -jar

"C:\glassfish-3.1\bin\\..\pkg/lib/pkg-bootstrap.jar"

"C:\DOCUME~1\crystal\LOCALS~1\Temp\pkg-bootstrap6032.props"
Cannot connect to proxy: validproxy.nasa.com:80
Input/output error: unknown protocol: validproxy.nasa.com

Could not download application packages. This could be because:
  - a proxy server is needed to access the internet. Please ensure that
    the system proxy server settings in your Internet Options control
panel
    (under Connections:LAN Settings) are correct, or set the HTTP_PROXY
    environment variable to the full URL of the proxy server.
  - the package server is down or otherwise inaccessible or it is
    generating invalid data. Please contact the provider of the package
    server.

Note that validproxy.nasa.com:80 is used by Netbeans 7.0 to download pluggins
without any

problem.

Is updatetool supported in GF3.1 yet, or have I missed a step somewhere?

I wonder whether there is an easier way to get this tutorial?

Any assistance would be much appreciated.

Many thanks,

Crystal


--
[Message sent by forum member 'crytal123']
View Post: http://forums.java.net/node/800160