3 Replies Latest reply on Sep 18, 2003 8:04 PM by Jon Barnett

    [b]Cannot set JAVA_HOME[/b]

    Chuck Harris Newbie

      I am migrating an application (one ear containing one war and 3 jars - one is an ejb) from jboss 2.4.1 tomcat 3.2.3 to jboss 3.2.2 tomcat 4.1.27 (package jboss-3.2.2RC3). When starting jboss without setting JAVA_HOME, it starts without throwing exceptions. The war is deployed and the login.jsp displays correctly. Both web-console and jmx-console will display. If I set JAVA_HOME to c:\jdk1.3.1, the following exception is thrown:
      13:07:34,831 WARN [ServiceController] Problem starting service jboss.web:service=WebServer
      java.lang.ExceptionInInitializerError:
      java.util.MissingResourceException: Can't find bundle for base name org.apache.catalina.startup.LocalStrings, loca
      le en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:712)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:674)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
      at org.apache.catalina.util.StringManager.(StringManager.java:115)
      at org.apache.catalina.util.StringManager.getManager(StringManager.java:260)
      at org.apache.catalina.startup.Embedded.(Embedded.java:248)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:120)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.class$(EmbeddedTomcatService.java:252)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.startService(EmbeddedTomcatService.java:252)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy12.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:484)
      I have tried setting JAVA_HOME to c:\program files\javasoft\jre\1.3.1 but the same error occurred. What is wrong? I think that not being able to set JAVA_HOME is keeping my ejb from deploying correctly. It is giving me and incomplete deployment error when JAVA_HOME is not set:
      13:15:38,957 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments
      ()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@e0ef011c { url=file:/C:/packages/jboss-3.2.2RC3/server/default/tmp/deploy/tmp
      48098afsp.ear-contents/workflow.jar }
      deployer: null
      status: Starting
      state: START_SUBDEPLOYMENTS
      watch: file:/C:/packages/jboss-3.2.2RC3/server/default/tmp/deploy/tmp48098afsp.ear-contents/workflow.jar
      lastDeployed: 1063916136443
      lastModified: 1063916136343
      mbeans:
      ]Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:


      I saw a post that advised deleting the manifest.mf from the meta-inf dir but that did not solve the problem. Is this related to not being able to set JAVA_HOME?