tomcat6

Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost'

核能气质少年 提交于 2019-12-19 06:24:06
问题 I have been trying to set up a DatabaseConnectionPool for a web app for the last couple of days with no success. I have read the relevant sections of the Tomcat docs and a great deal around the subject and think I'm doing everything right, but obviously not because I keep on getting the following error: Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost' (using password: YES)) I'm not getting the error when I start Tomcat running, but when I try to run the following

does maxPostSize apply to multipart/form-data file uploads

假装没事ソ 提交于 2019-12-19 06:04:10
问题 I have a webapp on a Tomcat server that allows files to be uploaded. There is a limit on the size of a file upload, and I'd like that limit to be enforced preemptively (ie, once you cross the limit, the file upload fails, rather than transferring the whole file, checking that it's too big and then sending an error). I tried to do this by add maxPostSize="1000" to the connector section in the relevant connector in server.xml, but I can still upload larger files. I've seen a post indicating

Best way to increase heap size in catalina.bat file

柔情痞子 提交于 2019-12-18 11:55:39
问题 I have tomcat 6 server on windows xp ,And I start tomcat through console i.e. using startup.bat. AFAIK catalina.bat file is for windows so I am changing bat file for memory management.I don't have tomcat configuration window. Now I want to increase its heap size so My question is should I extend the existing JAVA_OPTS in catalina.bat file i.e. set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf

How to Install Solr in Tomcat?

蓝咒 提交于 2019-12-18 03:00:31
问题 I've put the file apache-solr-3.5.0.war in folder C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps . A folder "apache-solr-3.5.0" is created automatically. And when I go to: http://localhost:8080/apache-solr-3.5.0/ . I can see the message "Welcome to Solr!". Now, when I do the exact same with the file solr-4.3.1.war in the folder C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps A folder solr-4.3.1 is created automatically. But now when I go to: http://localhost

CATALINA_HOME environmental variable is not defined correctly

北城以北 提交于 2019-12-17 21:58:08
问题 I installed Apache Tomcat 6.0 to a C:/Program Files folder and I set the environmental variables JAVA_HOME and CATALINA_HOME , but when I start the server using startup.bat , I am getting the error: CATALINA_HOME environmental variable is not defined correctly. My CATALINA_HOME environment variable is set to CATALINA_HOME=C:\Program Files\apache-tomcat-6.0.35 . What did I do wrong? 回答1: At first you have to mention tomcat up to tomcat's version refer below CATALINA_HOME: C:\Program Files

Scheduled task in a web application? [duplicate]

廉价感情. 提交于 2019-12-17 18:37:34
问题 This question already has answers here : What is recommended way for spawning threads from a servlet in Tomcat [duplicate] (6 answers) Closed 5 years ago . I'm building a statistics apps for an online game, built using the servlet API in Java (to be deployed on Tomcat). It's easy enough to let the game send a message to the stats server every time a user logs in, because handling requests is what Servlets/Tomcat are for. I also need to periodically initiate requests on the stats server though

How do disable Transfer-Encoding in Tomcat 6

和自甴很熟 提交于 2019-12-17 18:27:52
问题 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

CATALINA_OPTS vs JAVA_OPTS - What is the difference?

帅比萌擦擦* 提交于 2019-12-17 15:09:26
问题 I was trying to find out the difference between Apache Tomcat variables - CATALINA_OPTS and JAVA_OPTS in SO and surprised to see that there is no question/answer posted here yet. So I thought of sharing it here (with answer) after finding out the difference. Check the answer/difference below. NOTE: At the time of this posting, we're running Apache Tomcat v6.0.10 with JDK 6u32 on CentOS5 64-bit arch. 回答1: There are two environment variables - CATALINA_OPTS and JAVA_OPTS - which are both used

CATALINA_OPTS vs JAVA_OPTS - What is the difference?

点点圈 提交于 2019-12-17 15:09:00
问题 I was trying to find out the difference between Apache Tomcat variables - CATALINA_OPTS and JAVA_OPTS in SO and surprised to see that there is no question/answer posted here yet. So I thought of sharing it here (with answer) after finding out the difference. Check the answer/difference below. NOTE: At the time of this posting, we're running Apache Tomcat v6.0.10 with JDK 6u32 on CentOS5 64-bit arch. 回答1: There are two environment variables - CATALINA_OPTS and JAVA_OPTS - which are both used

Get the server port number from tomcat without a request

偶尔善良 提交于 2019-12-17 05:50:27
问题 Is there any Tomcat API or configuration available which can tell an application (probably on startup), what port its running on without a request? Imagine a scenario where there are two web applications running in the same Tomcat and one of which need to invoke a web service from the other one. We don't want the request to leave the Tomcat (if you use the Apache server name or absolute URL, the request will go out and come back again and it can go to any instance) and come back in. For that