This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Think this may have to do with having a deployed app that fails to load when you start the server, the server throws some exceptions but starts fine, but the IDE never stops trying to restart it and finally gives you the error that the server couldn't be started. Screenshot and server log coming.
Created attachment 30561 [details] screenshot
Created attachment 30562 [details] server log
same as 76160 We need to increase the IDE timeout for Instances that contain JBI and OpenESB as it is much slower to start it :-( Workaround: refresh the server node and when the server is really started, you can again deploy to it...
I see from the log you are using Hibernate and you have many exceptions there. Can you also attach the app? Why Hibernate if Toplink is alread integrated in GlassFish and provides a certified Java EE 5 JPA implementation. Hibernate is not yet 100% JPA compliant. Which version of Hibernate do you use?
Note that the server log says that the server startup is complete much sooner than the IDE displays the warning that the server startup failed. I think it has something to do with the exceptions when it tries to load the app. I had one wrong hibernate lib in the app server and forgot to specify the data source in the persistence.xml, that's what was causing the exceptions. When I fixed these and restarted the IDE, the app server started correctly. I'm using hibernate because I need to write a hibernate tutorial :-) and because we're supposed to support it so I guess I'd better test it.
Please clarify: You deployed an app, then the server restarted how many times? I need to know from the log what are the automatic restarts versus the user initiated ones...
automatic restarts are triggered by the server, not the IDE. The IDE just does what the server tells it to do. So in anycase, I am not sure we can fix this issue on the Nb side... Would be nice if you could attach the project that triggers these restarts so that I can move this P1 to the GlassFish product itself.
Cannot reproduce without you giving either the app, or steps to reproduce. I aksed a few questions on the bug reports, and did not get an answer, so closing for now. Reopen when you can reproduce with the steps, and attach the project.
Can't reproduce either any more. I know that when I added the correct hibernate JARs to the application server it stopped happening. I just tried to remove a few of the hibernate JARs from the server to force the problem again but it starts up fine. I'll attach the project but don't know if it'll help much. As to the server log, there were actually no automatic restarts. All the starts were done either by me in the IDE or from the command line with asadmin.
Created attachment 30733 [details] project