A couple of suggestions then:
 
1) check that you are export-ing the variables in .bashrc
2) if that doesn't work, try creating a local "setenv.sh" script where you
set and then export the variable values; execute this with . ./setenv.sh
before executing startup.sh or shutdown.sh
 
Steve

-----Original Message-----
From: Patrick M. McLeod [mailto:[email protected]] 
Sent: 01 July 2009 19:20
To: Steve Bayliss
Cc: [email protected]
Subject: Re: [Fedora-commons-users] JAVA_HOME / JRE_HOME Error Message
WhenStarting Fedora Commons


Good afternoon Steve,

When I attempt to start Fedora Commons with . ./startup.sh instead of
./startup.sh, I receive the following error:

dirname: invalid option - - 'b'
Try 'dirname - -help' for more information.
Cannot find /catalina.sh
This file is needed to run this program
Connection to XXX.XXX.XX.XXX closed.

Apparently it's not recognizing my variable declarations in my ~/.bashrc
file. In addition it booted me off my remote connection! I ssh'ed back to
the machine and successfully echoed
CATALINA_HOME=/usr/share/fedora/tomcat/bin. So I know the environment
variables are in the ~/.bashrc file and I can successfully echo them from
said file, but it seems like something in the startup process of Fedora
Commons is either not touching or overriding the values in the ~/.bashrc
file.

Patrick 


On Wed, Jul 1, 2009 at 12:59 PM, Steve Bayliss
<[email protected]> wrote:


What happens if you start Fedora with
. ./startup.sh
 
rather than
 
./startup.sh
 
?
 

Steve
 

-----Original Message-----
From: Patrick M. McLeod [mailto:[email protected]] 
Sent: 01 July 2009 18:54
To: [email protected]
Subject: [Fedora-commons-users] JAVA_HOME / JRE_HOME Error Message
WhenStarting Fedora Commons


Good afternoon everyone,

First, the basics:

Ubuntu 8.04 server
Fedora Commons 3.2 jar installer
Tomcat installed from 'included' option
FEDORA_HOME=/usr/share/fedora
CATALINA_HOME=/usr/share/fedora/tomcat/bin

JAVA_HOME=/usr/libs/jvm/java-6-sun
All of the the above environment variables are declared in ~/.bashrc

Here is my dilemma: Whenever I attempt to start Fedora Commons, I receive
this message: "Neither the JAVA_HOME nor the JRE_HOME environment variable
is defined" "At least one of these environment variable is needed to run
this program"

My JAVA_HOME variable is defined in my ~/.bashrc. I've also exported
JRE_HOME to the proper path immediately before attempting to start Fedora
Commons and no matter which course I chart, I end up with the same error
message I reference above.

I found a thread on the Ubuntu forums dealing with this issue when
installing Tomcat5.5 from the apt repositories that indicates a solution by
editing Tomcat's default JAVA_HOME variable. The location of the file to
edit, /etc/default/tomcat5.5, however, is only found if you install
Tomcat5.5 separately instead of using the Tomcat instance that is bundled
with the Fedora Commons installer.

Has anyone encountered a problem like this before? I'm fairly certain that
it's not my ~/.bashrc as I can echo back all the correct paths. Am I missing
a config file somewhere in the included Tomcat installation?

Regards,

Patrick

------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to