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 64456 - Start JBoss action starts two identical start-up scripts
Summary: Start JBoss action starts two identical start-up scripts
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-09-15 15:45 UTC by Petr Blaha
Modified: 2005-10-05 10:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
suggested patch, I didn't test it. (386 bytes, text/plain)
2005-09-15 16:08 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-09-15 15:45:17 UTC
[build 20050913]
Steps:
1) Started Jboss in command-line and test functionality Server is working fine.
2) Stop server in command-line
3) Start NB with new userdir and add JBoss in NB
4) Start JBoss from NB
ERROR: in output window are displayed errors that report Address already in use.
I'm pretty sure that these ports weren't used before starting Jboss from NB.

[blaha@localhost bin]$ ps -ef | grep jboss
blaha    13145 13144  0 16:34 pts/2    00:00:00 /bin/sh
/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/bin/run.sh -c default
blaha    13147 13146  0 16:34 pts/2    00:00:00 /bin/sh
/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/bin/run.sh -c default
blaha    13153 13145  0 16:34 pts/2    00:00:00 /usr/jdk/java/bin/java -server
-Xms128m -Xmx128m -Dprogram.name=run.sh
-Djava.endorsed.dirs=/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/lib/endorsed
-classpath
/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/bin/run.jar:/usr/jdk/java/lib/tools.jar
org.jboss.Main -c default
blaha    13159 13147  0 16:34 pts/2    00:00:00 /usr/jdk/java/bin/java -server
-Xms128m -Xmx128m -Dprogram.name=run.sh
-Djava.endorsed.dirs=/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/lib/endorsed
-classpath
/home.local/blaha/servers/jboss-portal-2.0-jboss-4.0.2/bin/run.jar:/usr/jdk/java/lib/tools.jar
org.jboss.Main -c default
blaha    13219 13080  0 16:36 pts/15   00:00:00 grep jboss

From the above output you can see that two identical start script are running.
Comment 1 Petr Blaha 2005-09-15 16:08:58 UTC
Created attachment 24851 [details]
suggested patch, I didn't test it.
Comment 2 Libor Kotouc 2005-09-16 14:11:13 UTC
Fixed.

Checking in JBStartServer.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/ide/JBStartServer.java,v
 <--  JBStartServer.java
new revision: 1.21; previous revision: 1.20
done
Comment 3 Michal Mocnak 2005-09-19 15:08:07 UTC
Verified