JAVA EE 7 First cup tutorial, can't install Glassfish 4 update center

廉价感情. 提交于 2019-12-04 09:19:17

This may be a problem with the slow GlassFish update server. Here are some steps you can try:

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.

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.

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

Your 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.

Just set this line into cmd (like administrator):

set PKG_CLIENT_CONNECT_TIMEOUT=300
set PKG_CLIENT_READ_TIMEOUT=300

Maybe the firstcup example is already existed in the install directory. Try to find it in the directory_install_glassfish/glassfish4/docs. The mine contain even javaee-tutorial and firstcup. For the next part, you maybe continue after guide in firstcup.pdf with the part of : Creating Your First Java by create archetype of java project. Good luck !

For the lazy of you the pkg Unix command is:

export PKG_CLIENT_CONNECT_TIMEOUT=300

export PKG_CLIENT_READ_TIMEOUT=300 

After being stuck for a while on the installation of GlassFish update server from Netbeans (in my company network, proxy issues), I got it this way: - Advanced System Settings > System Properties window > Advanced tab, New System Variable: http_proxy, http://username:password@your_proxy:your_port - Netbeans (running as admin just in case), Services > Server > Glassfish Server > Right button View Domain Update Center, then install

It worked for me, Hope it helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!