Name [jdbc/mydb] is not bound in this Context
You need a ResourceLink in your META-INF/context.xml file to make the global resource available to the web application. <ResourceLink name=”jdbc/mydb” global=”jdbc/mydb” type=”javax.sql.DataSource” />
You need a ResourceLink in your META-INF/context.xml file to make the global resource available to the web application. <ResourceLink name=”jdbc/mydb” global=”jdbc/mydb” type=”javax.sql.DataSource” />
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
The easiest solution (and what worked for me) was to delete my tomcat server from the “Servers” view in Eclipse, then create a new server and add all the appropriate modules to it. Sometimes tomcat gets confused and the easiest/least time consuming way to resolve things is to start over.
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
Solution Increase the maximum size of the Code Cache: -XX:ReservedCodeCacheSize=256m Background We are using ColdFusion 10 which runs on Tomcat 7 and Java 1.7.0_15. Our symptoms were similar to yours. Occasionally the response times and the CPU usage on the server would go up by a lot for no apparent reason. It seemed as if … Read more
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
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
I’ve just been encountering a very similar issue in Ubuntu while trying to get Eclipse Mars and Tomcat7 integrated because Eclipse was expecting the tomcat configuration files etc to be all in the same location, and with the necessary permissions to be able to change those files. The following instructions from this blog article helped … Read more
If you have this listener: <Listener className=”org.apache.catalina.core.AprLifecycleListener” SSLEngine=”on”/> on your server.xml, remove it and try. You can not use a keystore if you are using the APR connector
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