<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Jconsole with jboss-portal-2.6.5.SP1
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/tejaspajai">Tejas Pajai</a> in <i>JBoss Portal</i> - <a href="http://community.jboss.org/message/592090#592090">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">Hi,</span></p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">We are using jboss-portal-2.6.5.SP1</span></p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">We wanted to use jconsole for remote monitoring our jboss instance. </span></p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">I added following properties for enabling remote monitoring:</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=3000"</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=true"</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.password.file=$JBOSS_HOME/bin/jmxremote.password"</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.access.file=$JBOSS_HOME/bin/jmxremote.access"</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">The problem was, after adding these properties I started getting following exception during server startup:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: terminal,monaco; font-size: 10pt;">WARN: 2011-03-08 03:45:13,248[main::org.jboss.wsf.common.management.AbstractServerConfig]: [user:] [context:] Unable to calculate 'WebServicePort', using default '8080'</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">ERROR: 2011-03-08 03:45:13,352[main::org.jboss.deployment.MainDeployer]: [user:] [context:] Could not start deployment: file:/data/dashboard/jboss-portal-2.6.5.SP1/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.war/</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">java.lang.NullPointerException</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:303)</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:103)</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.create(PublishContractDeploymentAspect.java:52)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">Followed by:</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">--- Incompletely deployed packages ---</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">org.jboss.deployment.DeploymentInfo@7b7857da { url=file:/data/dashboard/jboss-portal-2.6.5.SP1/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.war/ }</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">&#160; deployer: MBeanProxyExt[jboss.web:service=WebServer]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">After searching online, I added following two properties to the startup script:</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;"># Tell JBossAS to use the platform MBean server</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;"># Make the platform MBean server able to work with JBossAS MBeans</span></p><p><span style="font-family: terminal,monaco; font-size: 10pt;">JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;">Now the server started up properly without any errors. My question is, what do these properties exactly do? Will there be any side effects of adding these properties?</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: calibri,verdana,arial,sans-serif; font-size: 10pt;"><span style="font-size: 12pt;"><strong>There is another problem due to adding these properties. The other tabs in jconsole like Overview, Memory, Threads, Classes and VM Summary are disabled. Only the MBeans tab is enabled. Any solution?</strong></span><br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/592090#592090">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Portal at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>