tomcat6

JDBC Connection pool not reopening connections in Tomcat

天涯浪子 提交于 2019-12-20 21:01:11
问题 I have set up Tomcat to use a connection pool yet after the MySQL timeout on connections the connections previously open in the pool are not opened. Here is what my context.xml file looks like: <Resource name="jdbc/hpsgDB" auth="Container" type="javax.sql.DataSource" maxActive="5" maxIdle="3" maxWait="10000" username="uname" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/hpsgdb?autoReconnect=true"/> As you can see I have included autoReconnect as

NIO Connector in Tomcat

两盒软妹~` 提交于 2019-12-20 14:13:05
问题 I'm trying to enable NIO Connector in Tomcat 6.0 by configuring server.xml file, but I'm getting Firefox can't establish a connection to the server at localhost:8081. in the browser whenever I type localhost:8081 . This is how I've configured NIO connector in Tomcat 6.0. May I know what's the problem? <Connector connectionTimeout="20000" port="8081" protocol="org.apache. coyote.http11.Http11NioProtocol" redirectPort="8443"/> 回答1: I've tried your tag on my server. Your Connector tag has one

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

霸气de小男生 提交于 2019-12-20 12:21:36
问题 I am getting this error, when executing JSF and PrimeFaces. I have included these jars, jsf-api-2.0.3.jar, jsf-impl-2.0.3.jar , jstl-1.0.2.jar jars and primefaces-2.2.RC2.jar in the WEB-INF/lib folder. Is there any jar I am missing? 回答1: Apparently, you're not missing anything else. Just try to do the following: Ensure that the necessary jars exist in the "lib" project folder; Do clean & build; In the end, you should find those included jars, available within the "build" project folder. 回答2:

HTTPS login with Spring Security redirects to HTTP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 08:56:17
问题 I have a Spring web app, secured with Spring Security, running on EC2. In front of the EC2 instance is an Elastic Load Balancer with an SSL cert (https terminates at the load balancer ie. port 443 -> port 80), so from Tomcat's perspective, inbound requests are HTTP. My login form submits to https, however the subsequent redirect goes to http (success or fail). The authentication was successful, and I can go back to https and I'm logged in. My login configuration looks like so: <security:form

Hibernate fails with NullPointerException in EntityTuplizerFactory.constructTuplizer? Why?

点点圈 提交于 2019-12-20 07:36:09
问题 I have a problem when I try to instantiate Hibernate and connect with a MySQL database (see error message below). Curiously enough the connection works fine using the exact same hibernate.cfg.xml file when running Junit tests but it refuses to work when run from Tomcat... I am starting to run out of ideas. Any clues or tip where to look? Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.DynamicMapEntityTuplizer] at org.hibernate

How To Setup Logback with Tomcat 6 on Windows

限于喜欢 提交于 2019-12-20 05:39:27
问题 I have tomcat6 installed on my Windows desktop for testing purpose. At the moment nothing is added to the webapps folder, just the normal tomcat start up. Following log files are produced: catalina.2011-12-24.log host-manager.2011-12-24.log jakarta_service_20111224.log localhost.2011-12-24.log manager.2011-12-24.log stderr_20111224.log stdout_20111224.log My problem is simple, I want these logs [stdout included] to be rolled and compressed on the basis of defined size limit. I have read about

Callback on Tomcat server startup complete

假装没事ソ 提交于 2019-12-20 01:58:09
问题 Is there any mechanism, lifecycle event or callbacks, in Spring or Tomcat to notify once Tomcat server startup is completed? (I have 8 web applications and queues configured. I would prefer to get notification back to each application once all the applications are started.) I know Spring has the application listener, which can be used once the web application is initialized. But I cannot use it in my case because I would prefer to get a notification once all the web apps are initialized. ****

Starting Tomcat v6.0 Server at localhost fails

雨燕双飞 提交于 2019-12-19 10:27:15
问题 I am not able to start Tomcat v6.0 from Eclipse Helios. I have my Java bin path set properly. Moreover, I can start the server from outside of Eclipse manually. I could start it from Windows Services as well as using tomcat6.exe and see that it works correctly in my browser by typing localhost:8080 in the URL, but when I start from Eclipse a window appears saying that it encountered a problem while starting tomcat. And my Console shows the following error:- java.lang.reflect

Starting Tomcat v6.0 Server at localhost fails

穿精又带淫゛_ 提交于 2019-12-19 10:27:09
问题 I am not able to start Tomcat v6.0 from Eclipse Helios. I have my Java bin path set properly. Moreover, I can start the server from outside of Eclipse manually. I could start it from Windows Services as well as using tomcat6.exe and see that it works correctly in my browser by typing localhost:8080 in the URL, but when I start from Eclipse a window appears saying that it encountered a problem while starting tomcat. And my Console shows the following error:- java.lang.reflect

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

时光毁灭记忆、已成空白 提交于 2019-12-19 06:24:48
问题 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