vendredi 21 mai 2010

[zz] Tomcat install woes – Cannot find …bin/catalina.sh

November 14th, 2007
This week I was assisting a customer with installing Tomcat on the System i5 and ran into an issue I thought I would post here to assist others.
After placing a non-IBM version of Tomcat in the IFS, I started up a QShell session, changed directory to the Tomcat bin directory, and executed startup.sh. The result of running startup.sh was the following:
startup.sh
Cannot find /tomcat/v4.1/bin/catalina.sh
This file is needed to run this program
After reviewing the bin directory I confirmed that catalina.sh DOES exist. I modified the files permissions through WRKLNK thinking that may be the issue – no go. After digging around the internet I found somebody with the same issue except they were on a Linux machine and were directed to chmod the execution authority on that file. So I ran the same from QShell and walla! It worked! I am not sure why it worked because I had already set that file to *PUBLIC *RWX on the i5OS side [scratching head]. Anyways, to remedy the situation, and keep further such things from happening, I ran chmod on all files in the bin directory that I thought might need it:
chmod +x startup.sh
chmod +x shutdown.sh
chmod +x catalina.sh
chmod +x setclasspath.sh
chmod +x bootstrap.jar
chmod +x tomcat-jni.jar
Hope that helps someone else in need!

dimanche 9 mai 2010

[Mac] How to set Environment Variable

1: open a terminal;

2: type "vi ~/.profile";

3: Find a line like:
"export PATH=/opt/local/bin:/opt/local/sbin:$PATH"...

4: Add the path of your java home:
"export PATH=/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:$PATH"

5: Save and quit.