Questions tagged [tomcat]

Use this tag for questions about Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) which is an open source Servlet Container developed by the Apache Software Foundation (ASF). Most questions should also include a tag specifying the operating system.

Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) is an open-source web server and servlet container developed by the Apache Software Foundation (ASF).

Apache Tomcat is an open-source software implementation of the , Java Server Pages (), and Java API for technologies. The Java Servlet, JSP, and Java API for WebSocket specifications are developed under the Java Community Process. Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2.

Resources

Documentation

Downloads

Books

43039 questions
95
votes
10 answers

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15

I'm porting a webapp from Tomcat 7 to another server with Tomcat 7 but with Java 8. Tomcat starts successfully but in log catalina.out I get: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 at…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
94
votes
10 answers

How to start debug mode from command prompt for apache tomcat server?

I want to start debug mode for my application. But I need to start the debug mode from command prompt. Is it possible ? And will the procedure vary between tomcat 5.5 to tomcat 6.?
Karthi
  • 1,161
  • 1
  • 9
  • 11
92
votes
18 answers

Tomcat in Intellij Idea Community Edition

Is it possible to run a web application using Tomcat Server in Intellij Idea Community Edition? I tried to find some information about it but haven't achived any success.
Viktoriia
  • 2,290
  • 4
  • 16
  • 17
90
votes
5 answers

Increase permgen space

I am working with tomcat 6.0, and while I am indexing (not while i am starting tomcat), I have a permgen space error. How could I increase that space?? Thanks
Blanca
  • 957
  • 2
  • 8
  • 10
90
votes
4 answers

Httpd returning 503 Service Unavailable with mod_proxy for Tomcat 8

I'm trying to integrate Tomcat with Apache. My aim is to redirect all the requests with http://localhost/myapp to http://localhost:8080 I followed this guide: http://tomcat.apache.org/tomcat-8.0-doc/proxy-howto.html My httpd.conf looks like…
user2354302
  • 1,833
  • 5
  • 23
  • 35
88
votes
16 answers

Integrating tomcat and eclipse as a hot-deploy environment

I would like to setup eclipse and tomcat in an integrated fashion such that changes to my JSPs and servlets(if possible) are reflected immedietely without requiring a deployment. Ok, this is one of those questions that has plenty of answers all…
udit
  • 2,745
  • 3
  • 33
  • 44
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
88
votes
2 answers

creating spring rest services without using spring boot

I've followed the Getting Started tutorial on spring.io for building REEST services https://spring.io/guides/gs/rest-service/. The problem is that this tutorial only explain how to produce a standalone running jar with tomcat embedded using spring…
chrx
  • 2,169
  • 5
  • 24
  • 45
88
votes
6 answers

Tomcat base URL redirection

Using tomcat, how do I get a request for http://www.mydomain.example to redirect to http://www.mydomain.example/somethingelse/index.jsp? I haven't even managed to get an index.html to display from http://mydomain.example.
Nathaniel Flath
  • 15,477
  • 19
  • 69
  • 94
87
votes
8 answers

java.net.SocketTimeoutException: Read timed out under Tomcat

I have a Tomcat based web application. I am intermittently getting the following exception, Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at…
Victor
  • 1,207
  • 2
  • 13
  • 21
84
votes
2 answers

Tomcat 404 error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists

I was following the tutorial on o7planning and got stuck at step 6: http://o7planning.org/en/10169/java-servlet-tutorial It's just a simple project that show HelloWorld but for some reason I keep getting 404 error. Detail: However the Tomcat…
Lê Quang Bảo
  • 2,670
  • 2
  • 27
  • 40
84
votes
8 answers

How to find out which folder Tomcat is installed by brew on MacOS?

I am learning JSP programing which requires Tomcat. I followed some tutorials but failed to install successfully(Probably some step is not clear match to my situation) Then I found out you can install easily by this command line: brew install…
Nicolas S.Xu
  • 13,794
  • 31
  • 84
  • 129
84
votes
26 answers

Java error: Only a type can be imported. XYZ resolves to a package

I get the error: "Only a type can be imported. XYZ resolves to a package." Someone has explained the cause here but I am not sure what I supposed to do to fix this. FYI: I am using Eclipse. I have added the code that does the importing below. The…
Ankur
  • 50,282
  • 110
  • 242
  • 312
84
votes
35 answers

"Server Tomcat v7.0 Server at localhost failed to start" without stack trace while it works in terminal

So got this project which worked just fine before the weekend (have other problems, but at least Tomcat launched). Now when I try to launch the Tomcat server it immediately gives the following error: Server Tomcat v7.0 Server at localhost failed to…
Marvin Effing
  • 2,693
  • 3
  • 20
  • 35
83
votes
3 answers

How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?

How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
ScArcher2
  • 85,501
  • 44
  • 121
  • 160