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 139628 - Cannot start server jboss 5.0.0.CR1
Summary: Cannot start server jboss 5.0.0.CR1
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 17:42 UTC by josin
Modified: 2008-08-12 09:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans output log (53.05 KB, text/plain)
2008-07-10 17:42 UTC, josin
Details
jBoss log from terminal (9.72 KB, text/plain)
2008-07-11 07:47 UTC, josin
Details
Output window logfile (13.54 KB, text/plain)
2008-08-12 08:27 UTC, josin
Details
IDE log file (76.22 KB, text/plain)
2008-08-12 08:28 UTC, josin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description josin 2008-07-10 17:42:01 UTC
Product Version: NetBeans IDE Dev (Build 200807100006)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b05
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/tester/.netbeans/dev

I cannot start jboss server. See more in attachment.
Comment 1 josin 2008-07-10 17:42:42 UTC
Created attachment 64265 [details]
Netbeans output log
Comment 2 Petr Blaha 2008-07-10 17:53:17 UTC
Are you able to start JBoss from command line by executing run.sh script in bin directory? Thanks It seems as issue in
JB: Caused by: java.lang.OutOfMemoryError: Java heap space 
Comment 3 josin 2008-07-11 07:46:22 UTC
With some exceptions yes. See more in attached log file.
Comment 4 josin 2008-07-11 07:47:31 UTC
Created attachment 64302 [details]
jBoss log from terminal
Comment 5 Petr Blaha 2008-07-11 09:12:29 UTC
Hi reporter, 

thanks for your additional info. However, the errors in message log are different and you faced the different issues
when you ran the server from IDE and command line. You started the JBoss with jdk 1.5.0_13 from IDE and jdk 1.6.0_03
from CL (I guess JDK 6 is default on your system). The issue with jdk 1.6 is described in this thread
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161789#4161789 and will be resolved by jdk upgrade to Java SE
6 Update 10 Beta. 

Can you please to set jdk 1.5 as default JDK on your system and start JBoss from CL again? In case you will get the same
exception then the issue is related to server not to IDE.
Comment 6 josin 2008-07-11 12:04:24 UTC
On JDK1.5_13 running jBoos 5... CR1 running ok!
Comment 7 Petr Blaha 2008-07-11 13:09:45 UTC
The bug is really reproducible when you start JBoss in IDE only. The workaround is setup -Xms128m -Xmx512m
-XX:MaxPermSize=256m Platform tab (choose JBoss node in service tab, invoke Properties -> VM Options).
Comment 8 Petr Hejl 2008-07-11 16:34:30 UTC
Works fine for me:
Product Version: NetBeans IDE Dev (Build 080708)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Comment 9 josin 2008-07-11 17:08:04 UTC
Same problem as I reported but without workaround setup mentioned by blaha.

Product Version: NetBeans IDE Dev (Build 200807101204)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/josin/.netbeans/dev
Comment 10 Petr Hejl 2008-07-16 14:50:21 UTC
JBoss run.sh script reads JAVA_OPTS from run.conf (where -Xmx and -Xms parameters are stored) only if JAVA_OPTS is not
configured from command line.

Solution could be to prefill these values as VM parameters. I'm not sure about machines with little memory, but where
JBoss was able to run somehow.
Comment 11 Petr Dvorak 2008-08-05 12:39:56 UTC
Fixed the summary - it was not possible to find the issue;)...
Comment 12 Petr Hejl 2008-08-05 16:34:35 UTC
Fixed in main d071c4adb118.

Default VM properties added for JBoss5.
Comment 13 Quality Engineering 2008-08-06 04:33:10 UTC
Integrated into 'main-golden', available in build *200808060201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/d071c4adb118
User: phejl@netbeans.org
Log: #139628 Cannot start server jboss 5.0.0.CR1
Comment 14 josin 2008-08-12 08:26:01 UTC
Works fine but I'm not able to restart server with error "JBoss Application Server Start Failed. RMI naming service port
1098 is already in use.". See more in attached log files (netbeans log, nb output log).

Steps to reproduce:
1) Start netbeans and in Services tab start Jboss server --- wait for jboss server starting
2) Invoke pop-up menu on running jboss server and choose restart.


Product Version: NetBeans IDE Dev (Build 200808120201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/josin/.netbeans/dev
Comment 15 josin 2008-08-12 08:27:54 UTC
Created attachment 67117 [details]
Output window logfile
Comment 16 josin 2008-08-12 08:28:27 UTC
Created attachment 67118 [details]
IDE log file
Comment 17 Petr Hejl 2008-08-12 09:32:54 UTC
Please do not mix two different issues (start problem caused by OOME, restart problem caused by RMI registry) into one
issuezilla record next time.

Investigating...
Comment 18 Petr Dvorak 2008-08-12 09:44:08 UTC
The second part of this issue ("JBoss Application Server Start Failed. RMI naming service port
1098 is already in use") is a duplicate of issue 142914.
Comment 19 josin 2008-08-12 09:55:07 UTC
Then it is ok, works fine on
Product Version: NetBeans IDE Dev (Build 200808120201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/josin/.netbeans/dev.

Changing status to verified.