tomcat6

Tomcat6 can't connect to MySql (The driver has not received any packets from the server)

元气小坏坏 提交于 2019-11-29 04:35:32
i'm running an Apache Tomcat 6.0.20 / MySQL 5.1.37-lubuntu / sun-java6-jdk /sun-java6-jre / sun-java6-bin on my local machine using Ubuntu 9.10 as OS. I'm trying to get a simple DB-query example running for 2 days now, but i still get this Exception: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not

Tomcat 6 memory leaks log entries

余生长醉 提交于 2019-11-29 03:34:24
问题 Below is outtake of unique entries in my Catalina.out file on CentOS machine. I'm running Tomcat 6 with spring 3 and my application. There is whole bunch of them so I just picked some that keep repeating. This doesn't happen all the time but it happens at least once a week. The Question is what can I do to prevent the bellow from happening? Feb 3, 2011 2:37:48 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JBDC driver [com

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

自作多情 提交于 2019-11-29 02:55:14
问题 I need some help. I placed the code snippet below in my web.xml . <filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> and in my server.xml : <Connector connectionTimeout="20000" port="8080" protocol=

ubuntu eclipse tomcat6配置问题

a 夏天 提交于 2019-11-29 02:55:05
1、正常配置的情况下,无法添加tomcat server。(v6也一样) 解决方法: http://www.coderanch.com/t/572959/Linux-UNIX/Eclipse-Tomcat-Ubuntu Below Steps followed for tomcat installation: Eclipse with Tomcat V7.0 in Ubuntu 11.10 1. Download Eclipse from the Eclipse web site. ( J2EE version) 2. Download Tomcat version 7 or install it via apt-get apt-get install tomcat7 tomcat7-admin tomcat7-common tomcat7-docs tomcat7-examples 3. Set the following configuration: cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf conf sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy sudo ln -s /var/log/tomcat7 logs

How to deploy war files to tomcat manually?

江枫思渺然 提交于 2019-11-29 02:20:15
I have a war at location "C:\Documents and Settings\myProj.war". The web project is also available at "C:\Documents and Settings\myProj". I want to deploy this to one tomcat. location of the tomcat is "C:\Documents and Settings\tomcat6x". Please tell me how to do this manually or through command prompt. One application is already running in Tomcat. It is a maven project. I want to deploy another application on same tomcat which is not maven application. Luiggi Mendoza These are the steps I follow when I have to manually deploy a war in Tomcat on localhost: If Tomcat is running, stop/kill it.

How to pass the -D additional parameter while starting tomcat?

半世苍凉 提交于 2019-11-29 00:45:38
问题 I have a maven project, after running command mvn install all project as well as module compile and copied to local repository successfully. But now I want to run the generated web application in tomcat6. Client provided some parameter for tomcat like -Dapp.username,-Dapp.username, which will be used internally once project will start.ButI do not know how to set these additional parameter in tomcat6. Below is my development environment OS = Windows Tomcat = tomcat 6.0.27 Please help me? 回答1:

How to Install Solr in Tomcat?

房东的猫 提交于 2019-11-29 00:11:45
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:8080/solr-4.3.1/ OR to http://localhost:8080/solr-4.3.1/admin.html I see the error: HTTP Status 404 - type

java.lang.OutOfMemoryError: PermGen space

╄→尐↘猪︶ㄣ 提交于 2019-11-28 23:35:43
i'm getting the following error "http-9000-5" java.lang.OutOfMemoryError: PermGen space org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space. My application using axis2.I increased the heap size 1024mb.But its not working.What would be the problem.Solution please If you're using Tomcat as a Server of Eclipse, go to Server view, then double click on Tomcat, then "Open Launch Configuration", go to Arguments tab, and after setting -Dcatalina.base="" put this -Xms256m -Xmx512m -XX:MaxPermSize=512m

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

吃可爱长大的小学妹 提交于 2019-11-28 22:31:52
问题 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 some .xml file(depending on the container I believe) - they are "hardcoded" that is. And that's what I don't get. How can I authenticate a web service client by comparing BindingProvider.USERNAME_PROPERTY and BindingProvider.PASSWORD_PROPERTY with

Tomcat, keep session when moving from HTTPS to HTTP

。_饼干妹妹 提交于 2019-11-28 20:49:32
I have a Java application running on Tomcat 6.0.29, with Apache 2.2.3 in front. The login page uses HTTPS, while most pages use HTTP. If a user tries to access a page (HTTP) that is login protected, he gets redirected to the login page (HTTPS), logs in, then gets redirected back to the originally requested page. This works great, as the JSESSIONID cookie is set as non-secure, and used for both HTTP and HTTPS. However, if the user starts at the login page (HTTPS), the JSESSIONID cookie is set as Secure, and thus the session is not available after login when redirecting to pages under HTTP,