

APACHE TOMCAT 7.0.55 EULA INSTALL
There are various methods to install tomcat. I usually stop iptables for the time being to avoid unnecessary trouble: # service iptables stopĮnsure that tomcat is running: # netstat -anp | grep 8080 Run below commands (these should be self-explanatory): # chmod 755 /etc/init.d/tomcat In case you need steps on installing tomcat from source, then let me know.ĮDIT: As requested, Here are the steps to install Tomcat from source:ĭownload Tomcat and move it to /usr/share/: # wget Ĭreate /etc/init.d/tomcat script as below: #!/bin/bashĬATALINA_HOME=/usr/share/apache-tomcat-7.0.55 The bottom line is, I resolved this issue by removing OpenJDK and installing Oracle JDK. Once this is done, then I installed tomcat ( ) from the source.īTW, I always use netstat -anp | grep 8080 instead of user -v -n tcp 8080. Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)Ĭheck in above output that it says "HotSpot". Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Verified the java version: # java -version Installed the Oracle JDK: rpm -ivh jdk-7u65-linux-圆4.rpm So figure out your own way of downloading that file. Oracle forces you to accept the terms and conditions. it’s just not fun downloading it using Linux wget command. Note: downloading Oracle JDK itself is pain. Removed the existing OpenJDK: yum -y remove java-1.7.0-openjdk

However, I got it working just fine using Oracle JDK. I'm trying to develop locally and then push to my Amazon Web Service but it seems like I have to solve this problem first.

Has anyone experiences similar? Does anyone have ideas of what might be wrong? Anyone else sad when they follow a wonderful guide to do something 'easy' and it still doesn't work? :-PĪs a side note, I have installed Tomcat7 successfully on my local Windows7 machine via the. I'm not sure if the above message I'm receiving from version is related to why my tomcat7 isn't working but it is the only thing I can think of to try and troubleshoot.

I've tried to Google around for solutions and I tried stuff like this but nothing has resulted in success. usr/sbin/tomcat7: line 25: cd: HOME not setĮrror: Could not find or load main class .ServerInfo When I attempted to run the version command, I got a very strange response: $ sudo service tomcat7 version I also followed the guide's command to check if tomcat7 is running and listening to port 8080: $ sudo fuser -v -n tcp 8080 I can confirm that my security group is correct (I've previously run Jetty from port 8080 with this same security group). I have installed all of the Tomcat7 packages (see step #5 in the article linked at start of this post) and so I should be seeing the default Tomcat home page (I'd even be happy with a 400 response code!) When I started up the server and try to connect to my machine's address on port 8080, I get a blank page or the request simply hangs. OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)Īnd I've installed Tomcat7. I have installed Java 7 on the machine: $/bin/java -version I am running an AWS EC2 instance with the Amazon Linux AMI (Amazon Machine Image): Amazon Linux AMI 2014.03.2 (HVM) - ami-d13845e1 I have followed the installation guide available here:
