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.

Bug 76732 - IDE doesn't recognize the server has started
Summary: IDE doesn't recognize the server has started
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 14:04 UTC by John Jullion-ceccarelli
Modified: 2006-06-04 23:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (16.24 KB, image/png)
2006-05-23 14:09 UTC, John Jullion-ceccarelli
Details
server log (156.47 KB, text/plain)
2006-05-23 14:10 UTC, John Jullion-ceccarelli
Details
project (38.11 KB, application/x-compressed)
2006-06-02 08:34 UTC, John Jullion-ceccarelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2006-05-23 14:04:08 UTC
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.
Comment 1 John Jullion-ceccarelli 2006-05-23 14:09:14 UTC
Created attachment 30561 [details]
screenshot
Comment 2 John Jullion-ceccarelli 2006-05-23 14:10:53 UTC
Created attachment 30562 [details]
server log
Comment 3 _ ludo 2006-05-23 18:02:01 UTC
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...
Comment 4 _ ludo 2006-05-23 18:05:37 UTC
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?
Comment 5 John Jullion-ceccarelli 2006-05-23 22:00:12 UTC
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.
Comment 6 _ ludo 2006-05-24 01:11:14 UTC
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...
Comment 7 _ ludo 2006-05-24 01:16:20 UTC
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.
Comment 8 _ ludo 2006-06-02 00:21:37 UTC
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.
Comment 9 John Jullion-ceccarelli 2006-06-02 08:34:08 UTC
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.
Comment 10 John Jullion-ceccarelli 2006-06-02 08:34:59 UTC
Created attachment 30733 [details]
project