tomcat6

Remove jsessionid from URL

偶尔善良 提交于 2019-11-29 22:24:08
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 I'm not able to do that. For tomcat 7 add this to web.xml <session-config> <!-- Disables URL-based sessions (no more 'jsessionid' in the URL using Tomcat) --> <tracking-mode>COOKIE</tracking-mode> </session-config> The following filter may solve your problem (from http://randomcoder.org/maven/site/randomcoder-website/cobertura/org.randomcoder.security

Apache Commons File Upload - Stream ended unexpectedly

本小妞迷上赌 提交于 2019-11-29 21:05:29
问题 Well, I have to say that so far, this one has me stumped. Our web application, which is running in Tomcat 6.0.18 is failing during file upload, but only when the client machine is a windows machine, only for some machines, and for all browsers, not just IE . There is a stack trace in the logs, which seems to indicate that the client either closed the connection, or the stream was somehow corrupted. The root cause in the stack trace is given as follows: Caused by: org.apache.commons.fileupload

Change the root context to other folder in tomcat 6

烈酒焚心 提交于 2019-11-29 16:30:36
问题 I want to change the context of my deployed web application. Currently it is accessed by the url www.app.mysite.com/dashboard But i want to change it to www.app.mysite.com/application/dashboard I went through post to change the root context here and here. But the thing is that i have other applications running to on that server which are accessed by www.app.mysite.com/ps www.app.mysite.com/ls If i change the context path in server.xml will it affect context of my other application ?I dont

How to configure tomcat to rollover catalina.log files

◇◆丶佛笑我妖孽 提交于 2019-11-29 15:09:52
问题 I'm trying to configure my tomcat to rollover log files once a size limit is reached. I'm running tomcat as a windows service and am redirecting all my stdout to catalina.log. This is how I configured by logging.properties to set a size limit. But it is not working. logging.properties handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

Logging with log4j on tomcat jruby-rack for a Rails 3 application

风格不统一 提交于 2019-11-29 14:22:30
问题 I just spent the better part of 3 hours trying to get my Rails application logging with Log4j. I've finally got it working, but I'm not sure if what I did is correct. I tried various methods to no avail until my very last attempt. So I'm really looking for some validation here, perhaps some pointers and tips as well -- anything would be appreciated to be honest. I've summarized all my feeble methods into three attempts below. I'm hoping for some enlightenment on where I went wrong with each

Tomcat 6 | What's the significance of antiResourceLocking & antiJARLocking?

自闭症网瘾萝莉.ら 提交于 2019-11-29 13:47:45
I am working on a project where we'll be using Tomcat 6.0.20 for Development and production. I came across some issues related to hot deployment which requires one to set Context.antiResourceLocking to false in server.xml. I had some questions on antiResourceLocking and antiJARLocking. I have gone through the reference at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html . What I can't understand is what exactly do you mean by a JAR getting locked or a resource getting locked. What I have read so far is that the locking problem usually comes when you are undeploying an application

Tomcat Webapp on port 80 [duplicate]

亡梦爱人 提交于 2019-11-29 12:50:20
问题 This question already has answers here : How to change the port of Tomcat from 8080 to 80? (14 answers) Closed 6 years ago . I have a webapp on my tomcat server like this: mydomain.com:8080/mywebapp Then I connect to my webapp, and it is working correctly, but what I want is to see my webapp like this: mydomain.com So I don't want only tomcat on port 80, I don't want to access my webapp through its name, I want to connect directly using my domain URI. How can I do this? I want this to work

How to set up the root servlet in Tomcat 6? [duplicate]

风格不统一 提交于 2019-11-29 07:12:26
This question already has an answer here: How can I map a “root” Servlet so that other scripts are still runnable? 8 answers Sorry for beginner's questions but I wonder how can I set the root servlet in Tomcat 6? For example I want to access my servlet on localhost:8080 , not on localhost:8080/myservlet Thanks! deploy an web app with context root / and set servlet-mapping in web.xml as <servlet-mapping> .. <url-pattern>/</url-pattern> </servlet-mapping> This is an old thread, but Jigar Joshi's answer wasn't working for me on Tomcat 8.0 and Servlet 3.1 . So I used the following mapping in web

starting tomcat on port 80 on CentOS release 5.5 (Final)

一个人想着一个人 提交于 2019-11-29 06:56:13
问题 I want to start Tomcat 6.0.29 on port 80. My OS is CentOS release 5.5 (Final) I changed following line in $TOMCAT_HOME/conf/server.xml <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> to <Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/> Then I run command: sudo /etc/init.d/tomcat6 start In file $TOMCAT_HOME/logs/catalina.log I found such exceptions: java.net.BindException: Permission denied <null>:80 at org

How to solve could not create the virtual machine error of Java Virtual Machine Launcher?

家住魔仙堡 提交于 2019-11-29 04:46:44
问题 I am working on java wicket framework and Apache tomcat. Here I have Problem when i tried to start tomcat it shows Java Virtual Machine Launcher pop window "Could not create the Java Virtual Machine". After clicking on "OK" button on Pop window it shows the error on console. Error occurred during initialization of VM. Could not reserve enough space for object heap. Please give me any reference or suggestions. Thanks in Advance. 回答1: Error: sony@sony-VPCEH25EN:~$ java --version Picked up JAVA