3 Replies Latest reply: Nov 9, 2010 2:08 AM by Sagar Giri RSS

JBoss not running on macOSx 10.6.4

Sagar Giri Newbie

Hi,

I am a newbie with mac. I am trying to start the JBoss AS and this is the message i get when i type "./run.sh" in the terminal.
=========================================================================

JBossOSGi Bootstrap Environment

OSGI_HOME: /Users/sgiri/Applications/JBoss/runtime

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh  -Dosgi.home=/Users/sgiri/Applications/JBoss/runtime -Xms128m -Xmx512m  -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000  -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.vfs.leakDebugging=true

=========================================================================

15:07:46,163 INFO  [FrameworkState] JBossOSGi Framework Core - 1.0.0.Alpha8
15:07:46,216 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: system.bundle:0.0.0
15:07:46,231 WARN  [vfs] VFS was unable to set the URLStreamHandlerFactory.  This will have unpredictable results
15:07:46,306 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: osgi.cmpn:4.2.0.200908310645
15:07:46,318 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.felix.log:1.0.0
15:07:46,334 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-common:1.0.6
15:07:46,340 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-hotdeploy:1.0.8
15:07:46,341 INFO  [StartLevelPluginImpl] Starting bundles for start level 1
15:07:46,491 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: org.apache.felix.log:1.0.0
15:07:46,623 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: jboss-osgi-common:1.0.6
15:07:46,678 INFO  [DeploymentScannerImpl] Start DeploymentScanner: [scandir=.../server/default/deploy,interval=2000ms]
15:07:46,681 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: jboss-osgi-hotdeploy:1.0.8
15:07:46,683 INFO  [FrameworkEventsPluginImpl] Framwork STARTED
15:07:46,684 INFO  [OSGiBootstrapBean] JBossOSGi Runtime booted in 0.521sec
15:07:46,747 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-common-core:2.2.17.SP1
15:07:46,756 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-jmx:1.0.8
15:07:46,783 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: jboss-osgi-jndi:1.0.4
15:07:46,793 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.aries.jmx:0.1.0.incubating
15:07:46,808 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.aries.util:0.1.0.incubating
15:07:46,813 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.felix.configadmin:1.2.4
15:07:46,816 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: org.apache.felix.eventadmin:1.2.2
15:07:47,163 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: jboss-osgi-jmx:1.0.8
15:07:47,187 INFO  [JNPServer] JNDI started: JNP=localhost:1099, RMI=localhost:1098
15:07:47,190 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: jboss-osgi-jndi:1.0.4
15:07:47,192 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: jboss-osgi-common-core:2.2.17.SP1
15:07:47,242 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: org.apache.felix.configadmin:1.2.4
15:07:47,249 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: org.apache.aries.util:0.1.0.incubating
15:07:47,257 INFO  [jmx] Starting JMX OSGi agent
15:07:47,275 INFO  [jmx] Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [14]
15:07:47,292 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: org.apache.aries.jmx:0.1.0.incubating
15:07:47,332 INFO  [jmx] Registering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@259a8416 with name osgi.core:type=serviceState,version=1.5
15:07:47,332 INFO  [jmx] Registering org.osgi.jmx.framework.PackageStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@259a8416 with name osgi.core:type=packageState,version=1.5
15:07:47,332 INFO  [jmx] Registering org.osgi.jmx.framework.FrameworkMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@259a8416 with name osgi.core:type=framework,version=1.5
15:07:47,345 INFO  [jmx] Registering org.osgi.jmx.framework.BundleStateMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@259a8416 with name osgi.core:type=bundleState,version=1.5
15:07:47,350 INFO  [jmx] Registering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@259a8416 with name osgi.compendium:service=cm,version=1.3
15:07:47,356 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: org.apache.felix.eventadmin:1.2.2
15:07:47,357 INFO  [DeploymentScannerImpl] JBossOSGi Runtime started in 0.682sec

When I go to the browser and enter the url  "http://localhost:8090/", this is the result - "Safari can’t open the  page “http://localhost:8090/” because Safari can’t connect to the server  “localhost”.". I have started the web service in the system  preferences. 

Please help.

Thanks in advance.

  • 1. Re: JBoss not running on macOSx 10.6.4
    Peter Johnson Master

    Looks like you are running JBoss OSGI, not JBoss AS. Download and install JBoss AS: hover over the Projects tab at the top of this page, in the menu that drops down hover over Servers and then click Application Server, and then click on the Download link. Choose 5.1.0.GA (stable) or 6.0.0.M5 (beta).

  • 2. Re: JBoss not running on macOSx 10.6.4
    Sagar Giri Newbie

    Thanks Peter...

     

    I downloaded the JBoss 5.1.0.GA. When i run it using "./run.sh" in the terminal , it throws certain errors. And the same error on the browser when I enter the url "http://localhost:8090/"

     

    Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
        ... 34 more
    Caused by: java.lang.ClassNotFoundException: org.jboss.web.deployers.WARStructure from BaseClassLoader@3b896429{VFSClassLoaderPolicy@390ede48{name=vfsfile:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/jbossweb.deployer/ domain=ClassLoaderDomain@77fe4169{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@e76cbf7} roots=[MemoryContextHandler@2133026363[path= context=vfsmemory://a55f1t-ru6fzz-gga8kg8d-1-gga8knzn-d real=vfsmemory://a55f1t-ru6fzz-gga8kg8d-1-gga8knzn-d], FileHandler@1829563570[path=jbossweb.deployer context=file:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/ real=file:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/jbossweb.deployer/], DelegatingHandler@1804063244[path=jbossweb.deployer/jboss-web-deployer.jar context=file:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/ real=file:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/jbossweb.deployer/jboss-web-deployer.jar]]  delegates=null exported=[, org.jboss.web.tomcat.service.deployers, META-INF] <IMPORT-ALL>NON_EMPTY}}
        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)
        ... 35 more
    19:43:27,049 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/ state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/Users/sgiri/Applications/jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/
        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
        at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
        at org.jboss.Main.boot(Main.java:221)
        at org.jboss.Main$1.run(Main.java:556)
        at java.lang.Thread.run(Thread.java:680)
    Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
        ... 34 more

     

    Thanks in advance....

    Take care...

  • 3. Re: JBoss not running on macOSx 10.6.4
    Sagar Giri Newbie

    Thanks for the quick reply everyone....
    Its running fine now... There was another process running on the port 8083, which caused error at this spot: "Using RMI server codebase: http://127.0.0.1:8083)".
    I killed that process and now it running just fine.