Ingredient:

1) Jakarta-tomcat-5.0.28 - downloaded from : http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.28/bin/

2) JDK and JRE Update 6 - http://java.sun.com/javase/downloads/index.jsp#need

-->jdk-6u18-solaris-sparc.tar.Z -- 32 bit JDK
-->jdk-6u18-solaris-sparcv9.tar.Z --64 bit JDK
-->jre-6u18-solaris-sparc.sh
-->jre-6u18-solaris-sparcv9.sh

3) Solaris 10 SPARC Operating System - where your tomcat will sit in

How-to:

1) If there is any old version ofVA SDK - remove it
( first do: #zcat jdk-6u18-solaris-sparc.tar.Z | tar -xvf -)

-->#pkgrm SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo

2) Add new version of JDK Update 6

-->#pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo

If u plan to use 64 bit JDK, then you need to do this after the above step
( first do: #zcat jdk-6u18-solaris-sparcv9.tar.Z | tar -xvf -)

-->#pkgrm SUNWj5rtx SUNWj5dvx SUNWj5dmx

-->#pkgadd -d . SUNWj6rtx SUNWj6dvx SUNWj6dmx

Then:

#chmod +x jre-6u18-solaris-sparc.sh
#./jre-6u18-solaris-sparc.sh
(answer the question)

#chmod +x jre-6u18-solaris-sparcv9.sh
#./jre-6u18-solaris-sparcv9.sh
(answer the question)


***If u type #java -version, it will shows you the old version of JDK. So, to change the link to the new JDK, you need to do the following:

-->rm -r /usr/java
-->ln -s /usr/jdk/jdk1.6.0_18 /usr/java

for 32 bit JDK:

-->rm -r /usr/bin/java
-->ln -s /usr/jdk/jdk1.6.0_18/bin/java /usr/bin/java

for 64 bit JDK:

-->rm -r /usr/bin/java
-->ln -s /usr/jdk/jdk1.6.0_18/bin/sparcv9/java /usr/bin/java

When you type #java -version, it will point to your new JAVA SDK version

__________________________________________________________________

TOMCAT installation:

1) Create user
-->#useradd -d /export/home/tomcat -ms /bin/bash tomcat
-->#passwd tomcat:
Enter your new password for user tomcat

2) exit .profile user tomcat:
--># cd /export/home/tomcat
--> # vi .profile
add :
JAVA_HOME=/usr/jdk/jdk1.6.0_18
CATALINA_HOME=/usr/local/tomcat/jakarta-tomcat-5.0.28
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME CATALINA_HOME PATH

save!

3)create /usr/local/tomcat

4) Create a group named tomcat
--># groupadd tomcat
-->#usermod -g tomcat tomcat
--># chown -R tomcat:tomcat /usr/local/tomcat

4) Copy/ftp jakarta-tomcat-5.0.28.tar.gz to /usr/local/tomcat

5) --># chown -R tomcat:tomcat /usr/local/tomca/jakarta-tomcat-5.0.28.tar.gz

6) #su - tomcat
-->#gunzip -f /usr/local/tomcat/jakarta-tomcat-5.0.28.tar.gz
-->#ls -la /usr/local/tomcat
tomcat tomcat 512 Feb 9 09:39 jakarta-tomcat-5.0.28

7) Start tomcat

-->#/usr/local/tomcat/jakarta-tomcat-5.0.28/bin/startup.sh
Go to mozila: type --> http://localhost:8080 (tomcat page should appear and it means u already success startup the tomcat)

8) #ps -ef | grep -i java

output: tomcat 29108 1 0 11:14:07 pts/5 0:37 /usr/jdk/instances/jdk1.6.0/bin/sparcv9/java -server -Xmx4096m -Djava.endorsed.



8) Stop tomcat
-->##/usr/local/tomcat/jakarta-tomcat-5.0.28/bin/shutdown.sh


FOR FURTHER CONFIGURATION, YOU CAN REFER TO ONE OF THE USEFUL LINK:

http://oreilly.com/java/archive/tomcat-tips.html --> thaks for publishing this! Really help me out!