Questions tagged [tomcat6]

Version 6.x (December 2006) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 6.x (December 2006) of the Apache Tomcat servlet container.

Apache Tomcat is one of the most popular open source servlet containers developed by the Apache Software Foundation (ASF). Questions here should relate to Tomcat Version 6.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.

1866 questions
24
votes
7 answers

JAX-WS and BASIC authentication, when user names and passwords are in a database

I'm new to JAX-WS and there's a thing which I don't understand. There's a ton of tutorials available on how to set up JAX-WS security, but in pretty much all cases BindingProvider.USERNAME_PROPERTY and BindingProvider.PASSWORD_PROPERTY are stored in…
ahoge
  • 241
  • 1
  • 2
  • 3
23
votes
2 answers

Shutdown ExecutorService gracefully in webapp?

In my webapp, I created a service that is using an ExecutorService with fixed size ThreadPool. I reuse the same ExecutorService during the whole application lifetime. private static ExecutorService pool = Executors.newFixedThreadPool(8); All is…
Olivier.Roger
  • 4,241
  • 5
  • 40
  • 68
23
votes
7 answers

Remove jsessionid from URL

I'm working on a project with the following technologies: Spring ShiroFilter PrettyFaces Tomcat server While I'm deploying it on tomcat server, I'm getting a "JSESSIONID 456jghd787aa" added at the end of the URL. I was trying to resolve this but…
Cijo
  • 345
  • 3
  • 5
  • 10
22
votes
10 answers

Cannot start Apache Tomcat 6 from IntelliJ IDEA 12.1.4 Ultimate (Windows 7)

I need to debug a web application for Tomcat6 in IntelliJ IDEA. When I try to run my web application, I get two errors: Address localhost:1099 is already in use Unable to open debugger port: java.net.SocketException Launching the Apache Tomcat 6…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
21
votes
1 answer

How do you map a sub domain to a webapp on Tomcat 6 (including the root webapp)?

subject says it all. What I want is to map each sub domain to a webapp like: http://root.domain.com:8080 -> http://domain.com:8080/ http://manager.domain.com:8080 -> http://domain.com:8080/manager http://abc.domain.com:8080 ->…
Kawu
  • 13,647
  • 34
  • 123
  • 195
21
votes
3 answers

Nginx High volume traffic load balancing

For the last 3 weeks we have been testing Nginx as load balance. Currently, we're not succeeding to handle more than 1000 req/sec and 18K active connections. When we get to the above numbers, Nginx starts to hang, and returns timeout codes. The only…
naih
  • 319
  • 1
  • 2
  • 6
19
votes
9 answers

Error With Port 8080 already in use

Can anyone help me to solve the following case? I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to…
Daniel Tascón
  • 193
  • 1
  • 2
  • 7
19
votes
6 answers

Why does tomcat replace context.xml on redeploy?

Documentation says if you have a context file here: $CATALINA_HOME/conf/Catalina/localhost/myapp.xml it will NOT be replaced by a context file here: mywebapp.war/META-INF/context.xml It is written here:…
artemb
  • 9,251
  • 9
  • 48
  • 68
19
votes
2 answers

What is the difference between "Redeploy" and "Restart Server" in IntelliJ?

I'm using IntelliJ with Tomcat 6 to run a Spring Java EE application. Rather than deploying the compiled war, I have opted to use the exploded war deployment, thus giving me the option to hotswap some classes and JSPs. However, aside from the…
noisebelt
  • 940
  • 2
  • 9
  • 20
19
votes
4 answers

Change Tomcat's Charset.defaultCharset in windows

I'm using tomcat 6.0.32 in windows 7. Inside a very simple servlet, inside the init method, I'm printing: System.out.println(Charset.defaultCharset()); The output is: windows-1253 As far as I understand this is how tomcat start's in the JVM since…
nonouco
  • 1,170
  • 1
  • 13
  • 25
18
votes
6 answers

Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6 and CATALINA_BASE in /var/lib/tomcat6

I think it is a good question. I found it also confusing. I installed tomcat few minutes ago (after a while) and I notice they are two different "webapps" places. at /usr/share/tomcat6/webapps/default_root/ at /var/lib/tomcat6/webapps/ROOT/ The…
chandrasekhar
  • 181
  • 1
  • 1
  • 4
18
votes
2 answers

How can JRE be enough for Tomcat to handle JSP files? Why not JDK?

Can someone clearly describe how JRE handles the JSP files which contain pure JAVA codes? I know that byte codes of JSP files are not placed in the WAR file. It consists of compiled CLASS files and plain JSP files. It says in Tomcat's RUNNING.txt…
vhtmg108
  • 181
  • 1
  • 3
18
votes
5 answers

how to use org.springframework.web.filter.CharacterEncodingFilter to correct character encoding?

I need some help. I placed the code snippet below in my web.xml. encodingFilter org.springframework.web.filter.CharacterEncodingFilter
TheOnlyIdiot
  • 1,182
  • 7
  • 17
  • 37
18
votes
3 answers

Character encoding issue with Tomcat

There is strange character encoding going on. I am using JSP (JSTL) and Struts with Tomat 6. I have my JSP page encoding as such: <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> The issue is when I try to pass the url using…
OakvilleWork
  • 2,377
  • 5
  • 25
  • 37
17
votes
2 answers

Known Tomcat 6.0 and JDK 1.7.0_02 issues?

Are there known Tomcat 6.0 and JDK 1.7.0_02 issues? I know this is a hard question to answer, if the answer is no. But I need to ask just in case the answer is yes. Also I will accept any solutions to the issues below as answers. Please just share…
Xonatron
  • 15,622
  • 30
  • 70
  • 84