3 Replies Latest reply on Sep 30, 2008 4:46 PM by jelevy01

    JConsole, JWS, JMX and JBoss 4.2.2 Fails

      I am trying to set up JBoss 4.2.2 and JConsole for remote monitoring.

      I've added the following to run.conf

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=11099"
      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"


      This bug points to a work around https://jira.jboss.org/jira/browse/JBWS-1943, however it doesn't work and the workaround doesn't seem to be for using JConsole remotely?

      I've been generally following the following guide;
      http://www.componative2.com/content/controller/developer/insights/jconsole2


      ---------------

      The exception I see:

      13:06:56,418 INFO [TomcatDeployer] performDeployInternal :: deploy, ctxPath=/services, warUrl=.../tmp/deploy/tmp34585xxxxxxxxx.ear-contents/mDate-Services-exp.war/
      13:06:57,706 WARN [AbstractServerConfig] getWebServicePort :: Unable to calculate 'WebServicePort', using default '8080'
      13:06:57,711 WARN [AbstractServerConfig] getWebServicePort :: Unable to calculate 'WebServicePort', using default '8080'
      13:06:58,070 WARN [AbstractServerConfig] getWebServicePort :: Unable to calculate 'WebServicePort', using default '8080'
      13:06:58,071 WARN [AbstractServerConfig] getWebServicePort :: Unable to calculate 'WebServicePort', using default '8080'
      13:06:58,138 ERROR [MainDeployer] start :: Could not start deployment: file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp34585xxxxxxxxx.ear-contents/mDate-Services.war
      java.lang.NullPointerException
      at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:303)
      at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:103)
      at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.create(PublishContractDeploymentAspect.java:52)
      at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
      at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)

        • 1. Re: JConsole, JWS, JMX and JBoss 4.2.2 Fails

          As described in:

          http://jbossws.jboss.org/mediawiki/index.php?title=FAQ#How_to_use_JDK_JMX_JConsole_with_JBossWS.3F

          If I change run.conf to:

          JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
          JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
          JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=11099"
          JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
          JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"


          I get the following exception when deploying a sar file that has a couple of Schedulable classes:

          Caused by: java.lang.NullPointerException
          at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:298)
          at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:410)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.getMBeanMap(BasicMBeanRegistry.java:959)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.contains(BasicMBeanRegistry.java:577)
          at org.jboss.mx.server.MBeanServerImpl.isRegistered(MBeanServerImpl.java:539)
          at org.jboss.system.ServiceCreator.install(ServiceCreator.java:101)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
          ... 80 more

          • 2. Re: JConsole, JWS, JMX and JBoss 4.2.2 Fails

            Bump.

            Any ideas here?

            • 3. Re: JConsole, JWS, JMX and JBoss 4.2.2 Fails

              Anyone have any ideas?