How to run Tomcat 7 using Maven 2 Tomcat plugin?

This works for me: http://tomcat.apache.org/maven-plugin-2.1/ With this plugin config: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <path>/</path> </configuration> </plugin> And running with mvn clean install tomcat7:run (Please note that tomcat7:run, not tomcat:run.) Plugin documentation is here: http://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/plugin-info.html For example, the default value of additionalConfigFilesDir is ${basedir}/src/main/tomcatconf, so if you put your configs into this directory it will … Read more

How to start Tomcat with output on console in Linux? [closed]

You’re looking for tomcat/bin/catalina.sh run instead of tomcat/bin/startup.sh; tail -f tomcat/logs/catalina.out Tomcat stays in foreground this way (first option). If you want to shut it down, Ctrl-C in your console window will do the trick. If you choose the second option, tomcat will run in background, while tail will run in foreground, but you’ll have … Read more

Tomcat support for HTTP/2.0?

I’m the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2. Tomcat’s Mark Thomas has outlined support for HTTP/2 for Tomcat 9. Update Jan 2017: Tomcat 8.5 supports HTTP/2 see @joe-aldrich answer https://stackoverflow.com/a/37889873/2027465 Considering that Servlet 4.0 is going to have as a target HTTP/2 support, and that HTTP/2 support requires ALPN … Read more

Tomcat 7 and JSTL

I have been fighting with this for several hours. Here is a complete solution. I am using Tomcat 7, which is a Servlet 3.0-compliant server. If you desire to use the Servlet 3.0 spec, you must have your web.xml as follows: <web-app xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd” version=”3.0″> If you’re using Maven, your pom.xml should have … Read more

How to Detect cause of 503 Service Temporarily Unavailable error and handle it?

There is of course some apache log files. Search in your apache configuration files for ‘Log’ keyword, you’ll certainly find plenty of them. Depending on your OS and installation places may vary (in a Typical Linux server it would be /var/log/apache2/[access|error].log). Having a 503 error in Apache usually means the proxied page/service is not available. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)