After setting up the tomcat server as a separate instance in the Linux server.
Start the tomcat server either with the customized shell script or by invoking the startup.sh script.
Just to validate whether the tomcat is deployed successfully, create a directory (FirstApp) under webapps folder under the tomcat instance and place any simple welcome html page in it, for example say welcome.html which just says "hello".
Once the tomcat is up you can use the browser to see if the html page type in the below url, make sure the ports used in the server.xml file for http/1.1 port.
http://domainname:port/appfoldername/welcome.html
For example, if sever domain name is mydev.app.com and http port is 8080 (default tomcat port)
http://mydev.app.com:8080/FirstApp/welcome.html
the browser will render the html page in the browser.
In Linux, some times the browser will not render the html content.
-------------------------------------------------------------------------------------------
If we use Mozilla FF, we get the below message
The connection has timed out
The server at mydev.app.com is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
-------------------------------------------------------------------------------------------
To troubleshoot the above issue we can use the curl command in Linux.
$ curl http://mydev.app.com:8080/FirstApp/welcome.html
Start the tomcat server either with the customized shell script or by invoking the startup.sh script.
Just to validate whether the tomcat is deployed successfully, create a directory (FirstApp) under webapps folder under the tomcat instance and place any simple welcome html page in it, for example say welcome.html which just says "hello".
Once the tomcat is up you can use the browser to see if the html page type in the below url, make sure the ports used in the server.xml file for http/1.1 port.
http://domainname:port/appfoldername/welcome.html
For example, if sever domain name is mydev.app.com and http port is 8080 (default tomcat port)
http://mydev.app.com:8080/FirstApp/welcome.html
the browser will render the html page in the browser.
In Linux, some times the browser will not render the html content.
-------------------------------------------------------------------------------------------
If we use Mozilla FF, we get the below message
The connection has timed out
The server at mydev.app.com is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
-------------------------------------------------------------------------------------------
To troubleshoot the above issue we can use the curl command in Linux.
$ curl http://mydev.app.com:8080/FirstApp/welcome.html
The above command will render the html content of the welcome.html if the tomcat has started successfully.
In case of https (or SSL) enabled. With BASIC security-constraint for the webapp, with the user name.
$ curl -u username http://mydev.app.com:8080/FirstSSLApp/welcome.html
Enter host password for user 'username':
if the html content of the welcome.html page is displayed, then the tomcat is deployed successfully.
The only reason the browser is displays timed out is because the http port in the Linux might have not been enabled.
Make sure that the iptables are enabled with the http common ports and the necessary ports that are needed for the application.