我已将 GlassFish Server 实例安装到 Netbeans 中,并且正在尝试安装其更新中心。我在 Windows 7 下以管理员身份运行 Netbeans。
我的互联网连接速度很快,pkg.oracle.com 似乎从浏览器加载得相当快。尽管如此,我仍然不断收到此错误:
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.
可能出什么问题了?
这可能是 GlassFish 更新服务器速度慢的问题。您可以尝试以下一些步骤:
您应该先重试,看看错误是否再次出现。您可以启动 cmd,导航到 \glassfish\bin 目录并运行 updatetool.bat,以便您可以看到在您发布的输出之后打印的输出。
如果您使用代理,则应确保在系统设置中正确设置它。
您还可以尝试通过 GlassFish 管理控制台安装更新。启动 GlassFish 实例并导航到 http:\localhost:4848。在左侧菜单的底部单击“Updatetool”。您可以在那里选择并安装所需的更新。
另一种选择是更改 pkg 工具的超时。要将超时设置为 300 秒,请在 cmd 中执行以下操作(在 Windows 上):
set PKG_CLIENT_CONNECT_TIMEOUT=300
set PKG_CLIENT_READ_TIMEOUT=300
您最后(好吧,可能还有其他)选项是跳过更新过程并使用当前版本执行教程。无论如何它应该可以工作,我可以在我的 GlassFish 更新中心看到目前只有教程文档的更新。
和
检查这个 https://blogs.oracle.com/dipol/entry/troubleshooting_glassfish_update_center
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)