GlassFish服务器更新中心安装超时 [英] GlassFish Server update center installation times out
问题描述
我已将GlassFish Server实例安装到Netbeans中,并且正在尝试安装其更新中心。我在Windows 7下以管理员身份运行Netbeans。
I've installed a GlassFish Server instance into Netbeans, and I'm trying to install its update center. I have run Netbeans as an Administrator under Windows 7.
我在快速的互联网连接上,pkg.oracle.com似乎从浏览器中加载得相当快。不过,我一直在得到这个错误:
I'm on a fast internet connection, pkg.oracle.com seems to load rather fast from the browser. Still, I am keeping on getting this error:
C:\Program Files\glassfish-4.0>"C:\Program Files\Java\jdk1.6.0_45\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\velosyp\AppData\Local\Temp\pkg-bootstrap1368.props"
Proxy: Using system proxy settings.
Install image: C:\Program Files\glassfish-4.0
Installing pkg packages.
Downloading 2 packages.
Downloading pkg (514 files, 6 463 109 bytes).
Downloading python2.4-minimal (278 files, 3 828 949 bytes).
Executing 906 install actions.
Installing updatetool packages.
Downloading 2 packages.
Downloading updatetool (564 files, 4 632 599 bytes).
Input/output error: Read timed out
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.
有什么可能是错的?
What could be wrong?
推荐答案
这可能是慢速GlassFish更新服务器的问题。以下是您可以尝试的一些步骤:
This may be a problem with the slow GlassFish update server. Here are some steps you can try:
您应该先重试以查看是否再次发生错误。您可以启动cmd,导航到\glassfish\bin目录并运行updatetool.bat,以便您可以看到在您发布的内容后打印的输出。
You should retry first to see if the error occurs again. You can start a cmd, navigate to the \glassfish\bin directory and run updatetool.bat so you can see the output which is printed after the one you posted.
如果您使用的是代理服务器,则应确保其在系统设置中正确设置。
If you are behind a proxy you should make sure it is setup correctly in the system settings.
您也可以尝试通过GlassFish管理控制台安装更新。启动您的GlassFish实例并导航到http:\ localhost:4848。在左侧菜单的底部点击Updatetool。您可以选择并安装所需的更新。
You can also try to install the updates through the GlassFish admin console. Start your GlassFish instance and navigate to http:\localhost:4848. On the bottom of the left menu click on Updatetool. There you can choose and install the desired updates.
另一个选项是更改pkg工具的超时值。要将超时设置为300秒,请在cmd中(在Windows上)执行以下操作:
Another option is to change the timeouts of the pkg tool. To set the timeout to 300 seconds do the following in a cmd (on Windows):
set PKG_CLIENT_CONNECT_TIMEOUT=300
set PKG_CLIENT_READ_TIMEOUT=300
您最后(好的,可能还有其他的)选项是跳过更新过程并使用当前版本进行教程。它应该无论如何都可以工作,并且我可以在我的GlassFish更新中心看到,目前只有教程文档的更新。
和
You last (ok, there may be other ones) option is to just skip the update process and do the tutorial with the current version. It should work anyway and I can see in my GlassFish update center that there is only an update for the tutorial documentation at the moment. and
这篇关于GlassFish服务器更新中心安装超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!