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.
[build 200503101100] - let's have installed two servers: tomcat and SJSAS8.1 and let's them both set up to listen on port 8080 - start IDE and register AS there - start tomcat from cmd line (tomcat is now blocking http port 8080) - create new web application - run web app I expected (in descendent order): - some message of kind: "port 8080 is used by other service" <OR> - some message which explains where the problem can be <OR at least> - some exception in server's log (eg. java.net.BindException) I recieved: - message: "Application Server is not running. Please start the server." - server node in server registry in runtime tab marked as "running" - it changes its state to "stopped" after i call refresh on server's node - no hint in server's log - in output window: "... run-deploy: Starting server Sun Java System Application Server 8.1 V:\java\appSrv-8.1u1-b04\bin\asadmin.bat start-domain --domaindir V:\java\appSrv-8.1u1-b04\domains\ domain1 V:\test\projects\WebApplication1\nbproject\build-impl.xml:355: Deployment failed. BUILD FAILED (total time: 23 seconds)" - it's really hard to find out the root cause of this problem from what you recieve if you forget that there's other process running in the backgound and blocking the http port
Can you attach the server log? It's wierd you are saying there is no message there around this port conflit...
I've found the message about port conflict in log today (I was looking for some exception, not for message, but OK, something is there :) ). What I experienced today is: (assume tomcat is running on port 8080) If I try to start appserver from server registry: 1. StartAppServer 2. ServerStatus dialog -> Start Server ide repeats these steps: 3. show progress status 4. Show Information dialog I have to say that i've tested these steps 3 times and every time i recieved different behaviour: 1) ide repeated steps 3 and 4 - after opening information dialog for the 3rd time, I pressed there "OK" button, closed 4 server progress output windows and in server log i've found that IDE tryed to start server 3 times (but i press start server only once) - steps were repeated in this order: 1->2->3->4->3->4->3->4->3->i end it here, it seems that ide will probably continue with step 4, but i can't prove it... 2) expected behaviour: no step was repeated - 1->2->3->4->end 3) ide repeated steps 3 and 4 only once, so the steps done by IDE was - 1->2->3->4->3->4->end
I've forgot to say which build i was using. So it was: 20050316-0802.
Created attachment 20882 [details] server log from today (3 starts of server in IDE = 7 entries in server.log)
*** Issue 55858 has been marked as a duplicate of this issue. ***
I've fixed the apparent infinite loop trying to restart servers that cannot start, and in case of a start error, we now display the server log file for local servers. Also we popup a dialog to tell the user to look for env infos or log file. Please, verify when I integrate a new plugin later today
That's much better, thanks:) v. 200503201900