Bug 203666 - -server added unconditionally in run.conf
Summary: -server added unconditionally in run.conf
Alias: None
Product: Red Hat Web Application Stack
Classification: Retired
Component: jbossas
Version: v1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Len DiMaggio
Depends On:
TreeView+ depends on / blocked
Reported: 2006-08-22 21:29 UTC by Permaine Cheung
Modified: 2007-04-18 17:48 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2007-02-19 18:29:25 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2007:0084 normal SHIPPED_LIVE Red Hat Application Stack v1.1 update 2007-02-19 22:29:02 UTC

Description Permaine Cheung 2006-08-22 21:29:14 UTC
Description of problem:
When running run.sh from /var/lib/jbossas/bin, the option -server is added
unconditionally which is not supported by IBM JVM.
The workaround is to comment out the setting of JAVA_OPTS in

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. cd /var/lib/jbossas/bin
2. ./run.sh (without JAVA_OPTS set using IBM JVM)
Actual results:

  JBoss Bootstrap Environment
  JBOSS_HOME: /var/lib/jbossas
  JAVA: /usr/lib/jvm/java/bin/java
  JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh
  CLASSPATH: /var/lib/jbossas/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar
JVMJ9VM007E Command-line option unrecognised: -server
Could not create the Java virtual machine.

Expected results:
Starts successfully

Additional info:
An upstream JIRA is opened:

Comment 1 Deepak Bhole 2007-01-24 20:13:16 UTC
Fixed in 4.0.5. The -server argument is no longer supplied by default. See

Comment 2 Len DiMaggio 2007-01-24 20:47:35 UTC
Verified in:

[root@dl385-02 bin]# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20060511 (SR2))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504
(JIT enabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA)
JCL  - 20060511a
[root@dl385-02 bin]# echo $JAVA_OPTS

[root@dl385-02 bin]# sh ./run.sh 

  JBoss Bootstrap Environment

  JBOSS_HOME: /var/lib/jbossas

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: /var/lib/jbossas/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar


15:36:37,137 INFO  [Server] Starting JBoss (MX MicroKernel)...
15:36:37,140 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build:
CVSTag=Branch_4_0 date=200701231710)

15:36:48,543 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on
15:36:48,605 INFO  [ChannelSocket] JK: ajp13 listening on /
15:36:48,616 INFO  [JkMain] Jk running ID=0 time=0/30  config=null
15:36:48,625 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build:
CVSTag=Branch_4_0 date=200701231710)] Started in 11s:473ms

[root@dl385-02 bin]# telnet localhost 8080
Connected to localhost.localdomain (
Escape character is '^]'.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
   <title>Welcome to JBoss&trade;</title>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   <link rel="StyleSheet" href="jboss.css" type="text/css"/>

<!-- header begin -->
   <a href="http://www.jboss.org">
      <img src="logo.gif" alt="JBoss" id="logo" width="226" height="105" />
   <div id="header">&nbsp;</div>
   <div id="navigation_bar"></div>
<!-- header end -->

   <h3>JBoss Online Resources</h3>
      <li><a href="http://www.jboss.org/products/jbossas/docs">JBoss
      <li><a href="http://wiki.jboss.org/">JBoss Wiki</a></li>
      <li><a href="http://jira.jboss.org/">JBoss JIRA</a></li>      
      <li><a href="http://www.jboss.org/index.html?module=bb">JBoss Forums</a></li>

   <h3>JBoss Management</h3>
      <li><a href="/status">Tomcat status</a>
          <a href="/status?full=true">(full)</a>
          <a href="/status?XML=true">(XML)</a></li>
      <li><a href="/jmx-console/">JMX Console</a></li>
      <li><a href="/web-console/">JBoss Web Console</a></li>

<!-- footer begin -->
   <div id="footer">
      <div id="credits">JBoss&trade; Application Server</div>
      <div id="footer_bar">&nbsp;</div>
<!-- footer end -->

Connection closed by foreign host.

Comment 4 Red Hat Bugzilla 2007-02-19 18:29:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.