Carl Husa on 22 Apr 2005 15:14:10 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Java, Tomcat, Cocoon


First, mea culpa for the long message, but just trying to be thorough.

I have an installation of SUSE 9.2.

I'm trying to install Apache Coccon, which needs Tomcat, which needs java.


First, I know - or think I know - the following installation directories are 
"not the best"

I have tomcat installed in /home/[some_name]/jakarta-tomcat-5.5.9, with 
$CATALINA_HOME set to that directory (in profile).
I have Coccon installed in /home/[some_name]/Cocoon/cocoon-2.1.7

$JAVA_HOME is set to /usr/java/jdk1.5.0_02 (in profile)

echo $CATALINA_HOME and echo $JAVA_HOME both report the correct paths, as set 
in profile.

Tomcat 5.5.9 does not start,and the log gives a message that 5.5.9 requires 
java 1.5.

If I type 
	java -version
	
I get the following message
	java version "1.4.2_06"
	Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
	Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
	
So, I downloaded 1.5, and installed it to 
	/usr/java/jdk1.5.0_02
	
java -version still gives the same version as before.

Went to the web, read some "stuff" - dangerous, this reading thing - and 
attempted to do a symbolic link with
	ln -s /usr/java/jdk1.5.0_02 java
	
Rebooted, but java -version still reports 1.4.2_06


So, the inevitable question(s):
	Is this current install redeemable in any way?  
	OR
	Should I just "do it again the right way"?
	AND THEN
	What is the "right way"?
	
Thanks, as always.


Carl F Husa, Jr.
jabberwocky@luxsci.net
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug