嗯,我試圖按照第一杯教程,但我堅持Glassfish錯誤。JAVA EE 7第一杯教程,無法安裝Glassfish 4更新中心
我應該這樣:
1.2.4獲取最新更新教程
檢查任何更新本教程中使用包含在Java EE 7的更新中心 SDK。
1.2.4.1通過更新中心更新教程打開更新中心並檢查教程的任何更新。
在NetBeans IDE中,選擇「服務」選項卡並展開「服務器」節點。 右鍵單擊GlassFish Server實例,選擇查看更新 中心顯示的更新工具。在樹中,選擇可用 更新以顯示更新包的列表。查找更新到 第一杯爲Java EE 7(JavaEE的-firstcup教程)封裝。如果有 是第一杯的更新版本,選擇第一杯7.0的Java EE 7 (JavaEE的-firstcup教程),然後單擊安裝。
的事情是,當我嘗試打開更新中心,這是我得到:
The software needed for this command (updatetool) is not installed.
If you choose to install Update Tool, your system will be automatically
configured to periodically check for software updates. If you would like
to configure the tool to not check for updates, you can override the
default behavior via the tool's Preferences facility.
Exception in thread "main" java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:658)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
at com.sun.pkg.client.Image.checkRepositoryConnection(Image.java:1225)
at com.sun.pkg.client.Catalog.refresh(Catalog.java:132)
at com.sun.pkg.client.Image.refreshCatalogs(Image.java:1627)
at com.sun.pkg.client.Client.main(Client.java:109)
When this tool interacts with package repositories, some system information
such as your system's IP address and operating system type and version
is sent to the repository server. For more information please see:
http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2
Once installation is complete you may re-run this command.
Would you like to install Update Tool now (y/n):
C:\Program Files\glassfish-4.0>"C:\Program Files\Java\jdk1.7.0_40\bin\java" -Dimage.path="C:\Program Files\glassfish-4.0\bin\\.." -jar "C:\Program Files\glassfish-4.0\bin\\..\pkg/lib/pkg-client.jar" refresh
C:\Program Files\glassfish-4.0>"C:\Program Files\Java\jdk1.7.0_40\bin\java" -Dimage.path="C:\Program Files\glassfish-4.0\bin\\.." -jar "C:\Program Files\glassfish-4.0\bin\\..\pkg/lib/pkg-bootstrap.jar" "C:\Users\Fabio\AppData\Local\Temp\pkg-bootstrap11073.props"
Proxy: Using system proxy settings.
Input/output error: Connection reset
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 or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.
我嘗試使用updatetool.bat。問題是,updatetool嘗試下載大小爲6.463.109字節的514個文件,第一次運行updatetool時,它在文件275處給了我一些錯誤。我再次嘗試,它給了我一些錯誤,但是這次該文件的編號不可用。然後我嘗試將超時設置爲300並再次運行,這次它給了我在文件356處的錯誤。有可能增加更多超時?這非常愚蠢,每次文件未下載時,重新啓動進程並重新下載所有文件。 –
是的,您也可以使用更高的超時值。 – unwichtich
我設法安裝了玻璃魚的更新工具。我必須使用cmd將PKG_CLIENT_CONNECT_TIMEOUT和PKG_CLIENT_READ_TIMEOUT設置爲3000。然後以管理員模式運行netbeans並打開域更新服務器以提示安裝。由於在將超時設置爲更高級別之後運行updatetool.bat仍然會給我帶來錯誤。 –