I have a tomcat webapp that runs a process in the shell because several of the utilities are not available in java. This code works perfectly on other machines, but there is a mysterious problem on my public server. I print the string to the log, and it looks like this: (path/to/ is not the actual paths) If I copy
Tag: tomcat
RedHat on port 80
I got Apache Tomcat running some app on RedHat server, now listening on port 8081. I want the app to listen to port 80, but not working. My RedHat server not using firewall so iptables has no relavance. How can i make it work? Here is my server.xml: Answer Ports below 1024 can only be opened by a root user.
Can’t connect to Tomcat9 outside
I can’t connect to tomcat9 from outside (by ip) i disabled tcp6 (add to /etc/sysctl.conf) following netstat -nlp output: server.xml Connector block: I also tried to add useIPVHosts=”true” to <Connector> and resolveHosts=”true” to <Valve> block in server.xml, but still nothing. I’ll be thankful for all of your answers) Answer From what you have provided, your Tomcat server is running on
can’t connect to ec2 tomcat localhost
I’ve followed a lot of tutorials and questions which been asked before, but still no good (I’m total beginner in ec2) I’ve did the following: lunched Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type. I’ve added this rule to my security group inbound: but when I try to browse to: Public DNS:8080 I get: This webpage is not available: ERR_CONNECTION_TIMED_OUT
Command to change tomcat server port
I’m using ubuntu, and I’m in a need of some command, using which I can change the server port configurations. Therefore, my question is… Is there any linux command, to update the Tomcat server connection port, as well as server shutdown port? Answer maksim_khokhlov answer looks promising if you want to change it at the start (it is taken from
shell script to kill tomcat service if it is not stopped by stop command after certain amount of time?
I would like to write shell script to start and stop tomcat server.For stopping the tomcat I am using this command “./bin/shudown.sh” or “./bin/catalina.sh stop”. This is not working most of the times, tomcat is still running.So I would like to kill the tomcat after giving shutdown command and wait for sometime(say 5min). Can anybody help me how to do
Cannot access Tomcat via web after EC2 reboot
I rebooted my Amazon EC2 instance, and now I can’t connect to my Tomcat7 web server via the web. Here’s what I’ve tried, to no avail: 1) Confirmed that my settings are correct in Tomcat’s server.xml file: 2) updated my iptables via this post: 3) Reviewed my tomcat catalina.out log (success, no errors) 4) Tried connecting to my domain via
Tomcat Server creating Directories in tmp
Everytime my embedded virtual tomcat server is ran (spring boot) it creates a directory structure in /tmp/ that is named tomcat.##########################.8080 (I am guessing 8080 is for port or something but the 8080 is consistent). This structure does not take up much space alone but after running the tomcat server often over time this can fill up. Can I prevent
How to execute a command on behalf of a user if login is denied
I need to run tomcat on behalf of tomcat user. But in /etc/passwd I have the following line: So when I try to do this: sudo su tomcat ./bin/startup.sh It complains about: su: /bin/nologin: No such file or directory How do I execute the command with proper permissions? Thanks in advance! P.S. I’m trying to reverse engineer the configuration and
How to restart application in tomcat server
I have been looking for some solution to restart app inside tomcat server on remote linux machine but i haven’t found anything yet. Can anyone please tell me how can i restart the application in Tomcat Server after some time interval without restarting the tomcat server on remote machine? Can anyone help me out with the Bash Script and CRON