4 Replies Latest reply on Aug 15, 2008 4:55 PM by Aftab Alam

    Running JBoss in Eclipse (in Linux)

    Aftab Alam Newbie

      Hi,
      I can run JBOSS from Eclipse as a root, but not as a user.

      JBOSS_HOME=/opt/jboss-4.2.3.GA

      When I run JBoss in Eclipse as a normal user, I get the following error:

      01:10:43,507 INFO [Server] Starting JBoss (MX MicroKernel)...
      01:10:43,520 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
      01:10:43,521 INFO [Server] Home Dir: /opt/jboss-4.2.3.GA
      01:10:43,521 INFO [Server] Home URL: file:/opt/jboss-4.2.3.GA/
      01:10:43,522 INFO [Server] Patch URL: null
      01:10:43,523 INFO [Server] Server Name: default
      01:10:43,523 INFO [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
      01:10:43,523 INFO [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/default/
      01:10:43,523 INFO [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/log
      01:10:43,524 INFO [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/tmp
      01:10:43,524 INFO [Server] Root Deployment Filename: jboss-service.xml
      01:10:43,979 ERROR [BasicMBeanRegistry] Unexpected Exception:
      java.lang.ClassCastException: [[B
      at java.net.InetAddress.getLocalHost(InetAddress.java:1312)
      at javax.management.MBeanServerDelegate.getMBeanServerId(MBeanServerDelegate.java:71)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:245)
      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
      at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
      at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
      at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:619)

      Failed to boot JBoss:

      java.lang.RuntimeException: Cannot create MBeanServer
      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:239)
      at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
      at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
      at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: JMImplementation:type=MBeanServerDelegate
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:314)
      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
      ... 8 more
      Caused by: java.lang.ClassCastException: [[B
      at java.net.InetAddress.getLocalHost(InetAddress.java:1312)
      at javax.management.MBeanServerDelegate.getMBeanServerId(MBeanServerDelegate.java:71)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:245)
      ... 9 more


      I also tried to give the user all the rights 777 for the directory /opt, but no success!
      Does some one have the same problem or have a solution?

      cheers