Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

installing Tomcat 7 on Centos 5.9

Posted on 2014-01-15
3
677 Views
Last Modified: 2014-01-18
Hi,

I think I have to install Tomcat 7 on my Centos 5.9 via WHM/cPanel. I was reading here:
http://docs1.cpanel.net/twiki/bin/view/EasyApache/Tomcat/TomcatIntroduction

that administrators should be careful. I'm not that familiar with Tomcat but I'm trying to encrypt some Paypal buttons with a Java command line and one of the shell programs has the following code:

#/bin/csh
# Please source this file.

setenv PATH /x/contrib/j2sdk1.4.0/jre/bin:$PATH

setenv CRYPTO_HOME "../crypto-124"

if (-d $CRYPTO_HOME) then
	echo setting crypto home to $CRYPTO_HOME
else	
        echo cannot find crypto distribution ...
        exit 1
endif

setenv CLASSPATH "."
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/axis.jar"
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/jaxrpc.jar"
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/saaj.jar"
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/wsdl4j.jar"
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/commons-logging.jar"
setenv CLASSPATH "${CLASSPATH}:${AXIS_HOME}/lib/commons-discovery.jar"
setenv CLASSPATH "${CLASSPATH}:${CRYPTO_HOME}/jars/bcprov-jdk14-124.jar"
setenv CLASSPATH "${CLASSPATH}:${CRYPTO_HOME}/jars/bcpg-jdk14-124.jar"
setenv CLASSPATH "${CLASSPATH}:${CRYPTO_HOME}/jars/bctest-jdk14-124.jar"
setenv CLASSPATH "${CLASSPATH}:${CRYPTO_HOME}/jars/bcmail-jdk14-124.jar"
setenv CLASSPATH "${CLASSPATH}:./ppapi.jar"
echo $CLASSPATH

Open in new window


I have to change the PATHs but there is a variable ${AXIS_HOME} which I think is a directory holding Tomcat .jar files but not 100% certain.

I found this page:
https://community.oracle.com/thread/1178894

But my question is if I install Tomcat via EasyApache then will it break anything or change current cPanel configuration files so that something will not work suddenly? I read the EasyApache Tomcat page from WHM but it's all still very new to me.

Thank you,
Victor
0
Comment
Question by:Victor Kimura
3 Comments
 
LVL 35

Expert Comment

by:mccarl
ID: 39784359
No you don't need to install Tomcat. Tomcat and Axis are two different unrelated software, other than the fact that they might often be used in the same application.

If you do end up needing Axis jar's to run the ButtonEncryption class, you can download them from the Apache Axis website

Note again, that you would download and install these on a local development machine, NOT your server. (And in that case you can probably delete your other QUESTION)
0
 

Author Comment

by:Victor Kimura
ID: 39784708
The apache Axis site states "This document describes how to install Apache Axis. It assumes you already know how to write and run Java code and are not afraid of XML. You should also have an application server or servlet engine and be familiar with operating and deploying to it. If you need an application server, we recommend Jakarta Tomcat."

It sounds like I do need it though.

https://axis.apache.org/axis/java/install.html

Looks kind of complicated. Sorry. I thought this was veering off to a different question (yet related to the other post) so I created a new thread. I read that whole install page and it still looks complicated. I will have to test my install though.
0
 
LVL 6

Accepted Solution

by:
Mahesh Bhutkar earned 500 total points
ID: 39784846
.jar files are java archive.

In simple term library required in appropriate path to run your shell script.

By looking your script,
It expects Apache axis installation path i.e. AXIS_HOME.
Apache axis is Web Service container which helps you to create, deploy, run webserices.
You can download & install apache Axis from http://axis.apache.org/

Shell scripts even contains Bouncy Castle Crypto jars. This might be useful for encryption purpose.
So you have to set your CRYPTO_HOME accordingly where you install that library.
Ref :- http://www.bouncycastle.org/java.html
http://www.bouncycastle.org/latest_releases.html
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unhandled exception type Exception 18 42
servlet and mdb, jms error 1 33
java example issue 3 23
java mysql insert application 14 28
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question