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 56274 - Unclear msg if starting AS when its port is bound
Summary: Unclear msg if starting AS when its port is bound
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
: 55858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 14:06 UTC by Lukas Jungmann
Modified: 2006-03-24 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server log from today (3 starts of server in IDE = 7 entries in server.log) (35.57 KB, text/plain)
2005-03-16 11:00 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-03-11 14:06:16 UTC
[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
Comment 1 _ ludo 2005-03-15 22:57:29 UTC
Can you attach the server log?
It's wierd you are saying there is no message there around this port conflit...
Comment 2 Lukas Jungmann 2005-03-16 10:51:07 UTC
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
Comment 3 Lukas Jungmann 2005-03-16 10:57:07 UTC
I've forgot to say which build i was using. So it was: 20050316-0802.
Comment 4 Lukas Jungmann 2005-03-16 11:00:29 UTC
Created attachment 20882 [details]
server log from today (3 starts of server in IDE = 7 entries in server.log)
Comment 5 Nitya Doraisamy 2005-03-17 18:08:21 UTC
*** Issue 55858 has been marked as a duplicate of this issue. ***
Comment 6 _ ludo 2005-03-18 22:02:22 UTC
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
Comment 7 Lukas Jungmann 2005-03-21 12:54:20 UTC
That's much better, thanks:)

 v. 200503201900