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
310
votes
34 answers

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

I included these in the Build Path: all Spring libs Apache Tomcat 7.0 library The project still fails during startup: SEVERE: Error configuring application listener of class…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
173
votes
14 answers

How to set the context path of a web application in Tomcat 7.0

I know that I can rename my webapp (or it's WAR file) to ROOT but this is a terrible way to do it, IMHO. Now I checked out the tomcat doc & it says It is NOT recommended to place elements directly in the server.xml file So I tried doing it…
Chantz
  • 5,883
  • 10
  • 56
  • 79
114
votes
21 answers

How to fix: "No suitable driver found for jdbc:mysql://localhost/dbname" error when using pools?

I am trying to create a connection to my database, when I put test my code using the main method, it works seamlessly. However, when trying to access it through Tomcat 7, it fails with error: No suitable driver found for…
Tamer
  • 1,724
  • 4
  • 16
  • 15
102
votes
13 answers

jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

I am running a Maven project which is also a dynamic web project. I have used all Spring libraries in Maven. I created web.xml, but when I start my Tomcat 7 server I am getting the following message: INFO:…
dreambigcoder
  • 1,859
  • 4
  • 22
  • 32
88
votes
3 answers

How to set level logging to DEBUG in Tomcat?

I would like to set level logging to DEBUG in tomcat but in console nevertheless only INFO and WARN output. Could anybody tell me what's wrong? My C:\tomcat\logging.properties: # Licensed to the Apache Software Foundation (ASF) under one or more #…
gennad
  • 5,335
  • 12
  • 44
  • 47
78
votes
4 answers

How to prevent file locking when undeploying a Tomcat web app?

I am using the manager app in tomcat 7, and i am unable to undeploy an application completely. It says FAIL - Unable to delete [F:\apache-tomcat-7.0.33\webapps\balaji]. The continued presence of this file may cause problems. I read somewhere its…
bali208
  • 2,257
  • 7
  • 40
  • 43
77
votes
9 answers

BeanNotOfRequiredTypeException due to autowired fields

I'm still new to Spring MVC and while building my test project, I got this message from Tomcat logs: SEVERE: Exception sending context initialized event to listener instance of class…
Valknut
  • 1,010
  • 2
  • 15
  • 19
72
votes
33 answers

Tomcat Server not starting with in 45 seconds

Server Tomcat v7.0 Server at localhost was unable to start within 101 seconds. If the server requires more time, try increasing the timeout in the server editor. This is my error. I changed time from 45 secs to 101 secs, but the problem remains. I…
user2186332
  • 729
  • 1
  • 5
  • 3
71
votes
5 answers

Apache 2.4 configuration for ssl not working

Apache Server 2.4 with mod_jk 1.3.7 not working for ssl (https) Error 1: The Apache service named reported the following error: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache…
Meuk Light
  • 985
  • 1
  • 7
  • 9
70
votes
10 answers

Eclipse 3.7 (Indigo) + Tomcat7 --- Cannot create a server using the selected type

Setup: Eclipse 3.7 + the WEB tools from the indigo update site Tomcat7 Ubuntu Problem: When I try to add a new Tomcat 7 server in the server perspective in Eclipse I get the following error: "Cannot create a server using the selected type" How…
user1031946
  • 701
  • 1
  • 5
  • 3
68
votes
10 answers

Tomcat 7: How to set initial heap size correctly?

I was trying to adjust initial heap size of a tomcat 7 (CentOS, java -version: 1.6.0_25-b06) instance by adding the following line to catalina.sh: export CATALINA_OPTS="-Xms=512M -Xmx=1024M" Starting up tomcat fails and logs the following message…
GLA
  • 953
  • 2
  • 9
  • 14
67
votes
8 answers

At least one JAR was scanned for TLDs yet contained no TLDs

I keep getting this on tomcat 7.30 (eclipse juno) At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
66
votes
13 answers

JAVA -tomcat- Request header is too large

INFO: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Request header is too large at…
Sarthak Srivastava
  • 1,490
  • 3
  • 15
  • 33
63
votes
3 answers

@WebServlet annotation with Tomcat 7

In my application, I had a servlet which was defined like this in the web.xml: Notification Servlet NotificationServlet
Dvora
  • 1,175
  • 1
  • 16
  • 26
62
votes
10 answers

How to fix JSP compiler warning: one JAR was scanned for TLDs yet contained no TLDs?

When starting the application or compiling JSP via ant, Tomcat 7 Jasper complains about superfluous or misplaced JAR file. I got below message **compile-jsp:** [jasper] Jul 31, 2012 7:15:15 PM org.apache.jasper.compiler.TldLocationsCache…
gowthaman
  • 983
  • 3
  • 9
  • 9
1
2 3
99 100