Questions tagged [tomcat7]

Version 7.x (June 2010) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 7.x (June 2010) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.0, 2.2, 2.2, and 1.0 specifications1. Questions here should relate only to Tomcat Version 7.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

Useful Links

5502 questions
44
votes
3 answers

Name [jdbc/mydb] is not bound in this Context

I see this question was raised several times already and I went through all of them. But I am still unable to fix my problem. Could anyone help me pinpoint what I am doing wrong? I get the following error message when I try to access database.jsp: …
lcazarre
  • 713
  • 3
  • 9
  • 15
43
votes
2 answers

What to do with annotations after setting metadata-complete="true" (which resolved slow Tomcat 7 start-up)?

Seems like the slow Tomcat 7 startup problem can be resolved with "metadata-complete" set to "true" in the web.xml, like so:
Danijel
  • 8,198
  • 18
  • 69
  • 133
42
votes
6 answers

How do I increase memory on Tomcat 7 when running as a Windows Service?

I am trying to run Tomcat 7 as a Windows Service (XP and Windows 7). I see places to set the -Xmx and -Xms jvm args in catalina.bat, but I'm not sure how to do it when using $CATALINA_HOME/bin/service.bat install service-name. I looked around but…
Franky
  • 431
  • 2
  • 5
  • 4
42
votes
4 answers

Spring context initialization failed with java.lang.IllegalArgumentException while deploying to Apache 7.0.54 and java 8

Environment: Applciation server: Apache 7.0.54 Java: "1.8.0_05" OS: Mac OS X 10.9.3 Libraries: Spring 3.2 REST application Following is the error I received during deployment: localhost.2014.06.09.log Jun 09, 2014 3:37:47 PM…
user827096
  • 565
  • 1
  • 6
  • 11
41
votes
4 answers

Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS

I've got a problem with my tomcat7 installation on a newly updated Ubuntu system. Ever since the update to 14.04 LTS, tomcat refuses to start on port 80 with an error that I cannot solve, nor find anything on how to fix it: Information:…
JS16
  • 413
  • 1
  • 4
  • 5
39
votes
4 answers

DispatcherServlet and web.xml in Spring Boot

I'm currently trying to move my project from Java EE to Spring Boot project. However, i've been stucked and confused on the part with dispatcher servlet and web.xml and it seems like web.xml is no longer being read by the project anymore. The…
NatureWonder
  • 501
  • 1
  • 7
  • 10
39
votes
10 answers

Slow startup on Tomcat 7.0.57 because of SecureRandom

I'm using Tomcat 7.0.57 on CentOS 6.6 32 bit and openJDK7. When I start 14 different instances of Tomcat on my server(production environment), many of them take too much time to start. This is part of the startup log, which tells me where is taking…
Jose Monreal Bailey
  • 461
  • 1
  • 5
  • 12
36
votes
1 answer

Simple example for Quartz 2.2 and Tomcat 7

I want to create a scheduler with Quartz 2.2 in java dynamic web application. I am new to this task. I tried all the tutorials around the web. I trying context listener method to initialize the scheduler. It doesn't seem like working. The hello…
Poornan
  • 741
  • 2
  • 11
  • 25
36
votes
3 answers

Maven - deploy webapp to tomcat before JUnit test

I have webapp which provides web service. I want to perform JUnit tests with SoapUI to check if this service is working properly. But to test web service application has to be deployed to my Tomcat 7 server. I have no idea how to configure maven to…
Michał Herman
  • 3,437
  • 6
  • 29
  • 43
35
votes
5 answers

Tomcat 7 - where do I set 'system properties'?

My webapp is having an issue since upgrading to Tomcat 7. My session will go null after I login and try to do anything (submitting a request). I've read that setting the following may…
LuckY07
  • 421
  • 1
  • 6
  • 12
35
votes
1 answer

"unable to find valid certification path to requested target", but browser says it's OK

I'm developing a Java application that connects to SOAP services exposed at https://ut.eurodw.eu/ (test environment for European Datawarehouse). I'm working on my development machine, recently reformatted with Windows 8.1. Today, I tried to send…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
33
votes
11 answers

Tomcat 7 - Servlet 3.0: Invalid byte tag in constant pool

tomcat 7.0.16 Java 1.6.0_22 CentOS 5.6 I just switched the web.xml to servlet 3.0 (from a app running 2.4 previously) and now I'm seeing the following error (turned on fine logging for org.apache.tomcat.util): mtyson FINE: Scanning JAR…
mtyson
  • 8,196
  • 16
  • 66
  • 106
33
votes
7 answers

Getting "Project facet Java version 1.8 is not supported." in Eclipse Luna

I am using up-to-date Eclipse Luna which should be ready for Java 8. However when I choose to create a new server with Tomcat 7 and click Next, in the Add and Remove screen I can't move my project because "Project facet Java version 1.8 is not…
Orin
  • 419
  • 1
  • 5
  • 10
33
votes
9 answers

INFO: No Spring WebApplicationInitializer types detected on classpath

I have a spring project that runs fine on my tomcat7 server when I deploy from eclipse: Run As >> Run on server. In the eclipse tab "Servers" I see: Servers Tomcat v7.0 Server at localhost [Started, Synchronized] my_project [Synchronized] …
Aron
  • 1,142
  • 1
  • 14
  • 26
32
votes
1 answer

How Chrome browser know which client certificate to prompt for a site?

I'm setting up certificate authentication for my project using Tomcat. It works ok for command line client such as cURL. I have many client certificates installed in Chrome browser. Some are using to connect to my site, others are used for different…
System
  • 323
  • 1
  • 3
  • 4