简体   繁体   English

Glassfish 4需要很长时间才能部署

[英]Glassfish 4 take long time to deploy

I have Glassfish 4.0, on windows 7 and netbeans 8 when I try to deploy java EE application, sometimes the deploy time takes 2-3 seconds, and sometimes it lasts forever!!!! 当我尝试部署Java EE应用程序时,我在Windows 7和Netbeans 8上安装了Glassfish 4.0,有时部署时间需要2-3秒,有时却可以永远持续!

I have to kill the java.exe from the task manager in order to make it work again, sometimes this solution does not success and I have to restart my PC. 我必须从任务管理器中杀死java.exe才能使其再次运行,有时此解决方案无法成功,因此必须重新启动PC。

I tried to remove the glassfish from netbeans and adding it again, but with no result, I tried to change the windows to XP, with no result, I tried to change the whole PC with no result also.... 我试图从netbeans中删除glassfish并再次添加,但是没有结果,我试图将Windows更改为XP,但没有结果,我也试图更改整个PC,也没有结果。

I am still having this problem and I cant go on LIVE server if I cant fix this on the development machine. 我仍然遇到此问题,如果无法在开发计算机上修复此问题,则无法继续使用LIVE服务器。

please any advice? 请任何建议?

I have fixed this issue by creating new project, then I put the "web" and "src" folder from my old project. 我已经通过创建新项目解决了此问题,然后从旧项目中放入了“ web”和“ src”文件夹。 the glass fish now deploy fast. 玻璃鱼现在可以快速部署。 I found the cause for this, its that I work with a team and we share the same build files from our different PCs, so after removing the build files everything work good. 我找到了原因,是因为我与一个团队一起工作,并且我们在不同的PC上共享相同的构建文件,因此在删除构建文件后,一切正常。 it happened because we use SVN to share the code. 这是因为我们使用SVN共享代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM