tomcat6

How do disable Transfer-Encoding in Tomcat 6

徘徊边缘 提交于 2019-11-28 07:00:17
I have a web application running on Tomcat 6.0.29 server and JDK 1.6. When I send the response to the client, Tomcat sends Transfer-Encoding: chunked in the headers when the response size is > 8KB. For responses < 8KB, it sends Content-Length : I understand that Chunked encoding is the preferred way to handle bulk responses, however our clients do not want to change their code (as it is distributed all across the servers). How can I disable Chunked encoding in Tomcat? I could Disable HTTP/1.1 in Tomcat and enable HTTP/1.0 (not sure how I can do this) I tried the following with no success: In

Tomcat fails to start because of jdbc driver loading

↘锁芯ラ 提交于 2019-11-28 06:59:04
Here's the relevant portion of the tomcat startup log: SEVERE: Context [/f360] startup failed due to previous errors Apr 8, 2010 6:45:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: A web application registered the JBDC driver [org.apache.derby.jdbc.ClientDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 8, 2010 6:45:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: A web application registered the JBDC driver [oracle.jdbc

hudson cannot fetch from git repository

笑着哭i 提交于 2019-11-28 05:04:08
问题 I have a Hudson server, and a git repository, both running on our server (an ubuntu machine). Whenever I try to build my app with hudson, he says the follwing Iniciado pelo usuário anonymous Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c Using strategy: Default Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c Fetching changes from the remote Git repository Fetching upstream

Profile Tomcat Application With VisualVM

前提是你 提交于 2019-11-28 03:08:05
I would like to profile an application that runs on Tomcat with the VisualVM tool. Unfortunately, when I tell VisualVM to profile Tomcat, Tomcat prints out a couple of messages indicating it is connecting to a profile tool and then simply exits. Details… I am using Windows XP, Tomcat 6, VisualVM 1.2.1, and JDK 1.6.0_11. In Visual VM, I right-click on the Tomcat Application and select “Profile” In the Profiler Tab, I press the Memory button (or the CPU button). Tomcat exits Note that if I right-click on the Tomcat Application and select “Heap Dump” that seems to work OK. rwsimmo I have VisualVM

How to run Spring 3.0 PetClinic in tomcat with Hibernate backed JPA

点点圈 提交于 2019-11-27 23:51:00
OK, this probably is supposed to be the easiest thing in the world, but I've been trying for the entire day, and it's still not working.. Any help is highly appreciated! EDIT: For the correct procedure, please see Pascal's answer. My wrong (since I did not disabled LoadTimeWeaving) procedure is left for reference..: What I did: Downloaded Tomcat 6.0.26 & Spring 3.0.1 Downloaded PetClinic from https://src.springframework.org/svn/spring-samples/petclinic Built & deployed petclinic.war. Ran fine with default JDBC persistence. Edited webapps/WEB-INF/spring/applicationContext-jpa.xml and set

message java.lang.IllegalStateException: No output folder

瘦欲@ 提交于 2019-11-27 22:41:57
I am new to Tomcat on Windows. I am trying to deploy my Java project which I have made in RHEL 5 using Tomcat. Now I want to run that project on window. So I copied and pasted my project folder inside the Tomcat web apps Directory i.e C:\Program Files\apache-tomcat-6.0.37\webapps but I am unable to run the project as I am facing below error while opening my first login page. Do I need to make any further changes in code or web.xml file as I am now deploying it on Windows? type Exception report message java.lang.IllegalStateException: No output folder **Description** The server encountered an

Quartz job runs twice when deployed on tomcat 6/Ubuntu 10.04LTS

主宰稳场 提交于 2019-11-27 21:52:45
问题 I run a Spring Framework/SmartGWT based web-app, with now an added Quartz job. The job is supposed to run every day at 2am, and picks winners from a DB table. From my logs I see it runs twice, concurrently it seems, because as you can see, the logs overlap: Generating winners of yesterday... Generating winners of yesterday... winning id's: 15 done, mail queue is filled. winning id's: 18 done, mail queue is filled. My applicationContext.xml looks like this: <!-- initiates and calls the job -->

Character encoding issue with Tomcat

匆匆过客 提交于 2019-11-27 20:39:56
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 encodeURI as such: <script type="text/javascript"> $('#mailer_filter').change(function(){ var val = $(this).val(); console.log(val); console.log(escape(val)); console.log(encodeURI(val)); location.href = 'mailList.a?' + encodeURI($(this).val()); }); </script> the parameter on the action (java end) comes out as: Gaz Métro however on the front end it

Define Servlet Context in WAR-File

陌路散爱 提交于 2019-11-27 20:29:58
How can I tell e.g. Tomcat to use a specific context path when given my WAR-File? Example: I have a war file created by maven build and the resulting name of the file is rather long. So I do not want the tomcat manager application to use the filename of the war as the context. Supplying a context.xml in META-INF did not produce the desired results I also found this in the documentation for the path attribute of Context : The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context

Defining Tomcat servlet context parameters

馋奶兔 提交于 2019-11-27 20:18:13
Scenario: foo.war file contains a default value of init parameter fooParam=1. This is defined in foo.war!WEB_INF/web.xml which contains: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>fooParam</param-name> <param-value>1</param-value> <description> my parameter "fooParam" </description> </context-param> ... OK, now I want to be able to override it in a config file in the Tomcat {$CATALINA_HOME}/conf/ directory. Where/how can I do this??