1 Reply Latest reply on Nov 16, 2009 9:55 AM by Peter Johnson

    configuration issue in Adding APR to JBoss

    Palaniappan Thiyagarajan Newbie

      I am trying to configure the jboss-4.2.2.GA and while running the run.sh.

      I am getting the following error. Any pointer to fix the problem will be appreciated.

      Thanks in advance and here is the error message.

      [jboss@ganga3 bin]$ ./run.sh
      ./run.conf: line 43: -Xms128m -Xmx4096m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000: command not found
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /u01/jboss/jboss-4.2.2.GA

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.sh -XX:MaxPermSize=512m -Dhttp.proxyHost=ganga2 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=ganga2 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="godavari1|godavari2|godavari3|godavari4|cauvery1|cauvery2|cauvery1.sirahu.com|cauvery2.sirahu.com|relay.sirahu.com|localhost" -Djava.net.preferIPv4Stack=true -Djava.library.path=/u01/jboss/jboss-4.2.2.GA/bin/native

      CLASSPATH: /u01/jboss/jboss-4.2.2.GA/bin/run.jar

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

      11:27:08,876 INFO [Server] Starting JBoss (MX MicroKernel)...
      11:27:08,876 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
      11:27:08,877 INFO [Server] Home Dir: /u01/jboss/jboss-4.2.2.GA
      11:27:08,877 INFO [Server] Home URL: file:/u01/jboss/jboss-4.2.2.GA/
      11:27:08,877 INFO [Server] Patch URL: null
      11:27:08,878 INFO [Server] Server Name: default
      11:27:08,878 INFO [Server] Server Home Dir: /u01/jboss/jboss-4.2.2.GA/server/default
      11:27:08,878 INFO [Server] Server Home URL: file:/u01/jboss/jboss-4.2.2.GA/server/default/
      11:27:08,878 INFO [Server] Server Log Dir: /u01/jboss/jboss-4.2.2.GA/server/default/log
      11:27:08,878 INFO [Server] Server Temp Dir: /u01/jboss/jboss-4.2.2.GA/server/default/tmp
      11:27:08,878 INFO [Server] Root Deployment Filename: jboss-service.xml
      11:27:09,170 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, Inc.
      11:27:09,170 INFO [ServerInfo] Java VM: GNU libgcj 4.1.2 20080704 (Red Hat 4.1.2-44),Free Software Foundation, Inc.
      11:27:09,171 INFO [ServerInfo] OS-System: Linux 2.6.18-92.1.6.el5,x86_64
      11:27:09,314 INFO [Server] Core system initialized
      11:27:10,271 ERROR [MainDeployer] Could not create deployment: file:/u01/jboss/jboss-4.2.2.GA/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at java.lang.reflect.Method.invoke(libgcj.so.7rh)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at java.lang.reflect.Method.invoke(libgcj.so.7rh)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      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(libgcj.so.7rh)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ...27 more
      Caused by: java.lang.NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
      at java.lang.Class.initializeClass(libgcj.so.7rh)
      at org.jboss.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
      at org.jboss.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
      at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:449)
      at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
      at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
      at org.jboss.mx.modelmbean.XMBean.(XMBean.java:253)
      at org.jboss.mx.modelmbean.XMBean.(XMBean.java:282)
      at java.lang.reflect.Constructor.newInstance(libgcj.so.7rh)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
      ...29 more

      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at java.lang.reflect.Method.invoke(libgcj.so.7rh)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at java.lang.reflect.Method.invoke(libgcj.so.7rh)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      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(libgcj.so.7rh)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ...27 more
      Caused by: java.lang.NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
      at java.lang.Class.initializeClass(libgcj.so.7rh)
      at org.jboss.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
      at org.jboss.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
      at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:449)
      at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
      at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
      at org.jboss.mx.modelmbean.XMBean.(XMBean.java:253)
      at org.jboss.mx.modelmbean.XMBean.(XMBean.java:282)
      at java.lang.reflect.Constructor.newInstance(libgcj.so.7rh)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
      ...29 more
      11:27:10,274 INFO [Server] Runtime shutdown hook called, forceHalt: true
      11:27:10,274 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      11:27:10,280 INFO [Server] Shutdown complete