Try *which java *to see what the actual JAVA executable is in you system. If you want to put JAVA_HOME in your PATH variables, you might need to run the following to override the one already in your PATH:
export PATH=$JAVA_HOME/bin:$PATH See if this helps. Anything else, just let us know. Jeff On Sun, Mar 14, 2010 at 5:57 AM, Kevan Miller <[email protected]>wrote: > > On Mar 13, 2010, at 10:05 AM, curious4 wrote: > > > > > Hi, > > > > I have a problem when starting Geromino in Ubuntu Linux with the command: > > bash start-server > > I'm getting a series of error messages of which the first is: > > ERROR [AbstractEncryption] Unable to decrypt > > > > java.io.EOFException > > > > However, despite the error messages, Geromino is able to start and I do > get > > the web page in http://localhost:8080/ > > > > I did set up in my home directory .bashrc and .bash_profile these lines: > > export JAVA_HOME=/usr/lib/jvm/java-6-openjdk > > > > export PATH=$PATH:$JAVA_HOME/bin > > > > when I shutdown I see this: > > Using JRE_HOME: /usr/lib/jvm/java-6-openjdk/jre > > (compare it to how I set JAVA_HOME). > > > > What can be the problem? How can I fix it? > > Hmm. Sounds like a problem with your JAVA_HOME setting. You shouldn't need > to update your PATH... > > You don't mention geronimo version, ubuntu level, or openjdk level. > > Geronimo 2.1.4 and 2.2 start fine for me with the following: > > JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ ./start-server > > In var/log/geronimo.log, information similar to the following will be > logged during startup: > > 2010-03-13 05:00:30,504 INFO [Log4jService] Started Logging Service > 2010-03-13 05:00:30,504 INFO [Log4jService] Runtime Information: > 2010-03-13 05:00:30,505 INFO [Log4jService] Install Directory = > /home/kevan/geronimo-tomcat6-javaee5-2.1.4 > 2010-03-13 05:00:30,506 INFO [JvmVendor] Sun JVM 1.6.0_0 > 2010-03-13 05:00:30,506 INFO [Log4jService] JVM in use = Sun JVM 1.6.0_0 > 2010-03-13 05:00:30,506 INFO [Log4jService] Java Information: > 2010-03-13 05:00:30,506 INFO [Log4jService] System property [ > java.runtime.name] = OpenJDK Runtime Environment > 2010-03-13 05:00:30,506 INFO [Log4jService] System property > [java.runtime.version] = 1.6.0_0-b14 > 2010-03-13 05:00:30,506 INFO [Log4jService] System property [os.name] > = Linux > 2010-03-13 05:00:30,506 INFO [Log4jService] System property [os.version] > = 2.6.28-18-generic > 2010-03-13 05:00:30,506 INFO [Log4jService] System property > [sun.os.patch.level] = unknown > 2010-03-13 05:00:30,506 INFO [Log4jService] System property [os.arch] > = i386 > 2010-03-13 05:00:30,506 INFO [Log4jService] System property > [java.class.version] = 50.0 > 2010-03-13 05:00:30,506 INFO [Log4jService] System property [locale] > = en_US > 2010-03-13 05:00:30,506 INFO [Log4jService] System property > [unicode.encoding] = UnicodeLittle > 2010-03-13 05:00:30,506 INFO [Log4jService] System property > [file.encoding] = UTF-8 > 2010-03-13 05:00:30,507 INFO [Log4jService] System property [ > java.vm.name] = OpenJDK Client VM > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.vm.vendor] = Sun Microsystems Inc. > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.vm.version] = 14.0-b08 > 2010-03-13 05:00:30,507 INFO [Log4jService] System property [ > java.vm.info] = mixed mode > 2010-03-13 05:00:30,507 INFO [Log4jService] System property [java.home] > = /usr/lib/jvm/java-6-openjdk/jre > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.classpath] = null > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.library.path] = /usr/lib/jvm/java-6-openjdk/jre/lib/i386/\ > > client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/us\ > r/lib > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.endorsed.dirs] = /home/kevan/geronimo-tomcat6-javaee5-2.1.\ > 4/lib/endorsed:/usr/lib/jvm/java-6-openjdk/jre/lib/endorsed > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [java.ext.dirs] = /home/kevan/geronimo-tomcat6-javaee5-2.1.\ > > 4/lib/ext:/usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext > 2010-03-13 05:00:30,507 INFO [Log4jService] System property > [sun.boot.class.path] = /home/kevan/geronimo-tomcat6-javaee5-2.1.\ > > 4/lib/endorsed/yoko-spec-corba-1.0.jar:/home/kevan/geronimo-tomcat6-javaee5-2.1.4/lib/endorsed/yoko-rmi-spec-1.0.jar:/usr/lib/jv\ > > m/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign\ > > .jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/li\ > > b/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/classes > > If you can retrieve the same information on your system, maybe we'll find > out what's going wrong in your environment... > > --kevan
