tomcat6

Tomcat - Configuring maxThreads and acceptCount in Http connector

跟風遠走 提交于 2020-01-11 04:59:06
问题 I currently have an application deployed using Tomcat that interacts with a Postgres database via JDBC. The queries are very expensive, so what I'm seeing is a timeout caused by Tomcat or Apache (Apache sits in front of Tomcat in my configuration). I'm trying to limit the connections to the database to 20-30 simultaneous connections, so that the database is not overwhelmed. I've done this using the \.. configuration, setting maxActive to 30 and maxIdle to 20. I also bumped up the maxWait. In

Tomcat - Configuring maxThreads and acceptCount in Http connector

こ雲淡風輕ζ 提交于 2020-01-11 04:59:06
问题 I currently have an application deployed using Tomcat that interacts with a Postgres database via JDBC. The queries are very expensive, so what I'm seeing is a timeout caused by Tomcat or Apache (Apache sits in front of Tomcat in my configuration). I'm trying to limit the connections to the database to 20-30 simultaneous connections, so that the database is not overwhelmed. I've done this using the \.. configuration, setting maxActive to 30 and maxIdle to 20. I also bumped up the maxWait. In

j_security_check for jsf app not working in IE

*爱你&永不变心* 提交于 2020-01-07 02:38:10
问题 I have a simple jsf app developed and working on tomcat 6.0.13. I added some security contraints to the entire application by adding the usual setting in web.xml. When I now deploy the application to tomcat and check, it works absolutely fine in firefox, I get my Login.html rendered(code below) and once authorised takes me to the relevant page. When I navigate to the same app in IE, i get the login prompt as below but clicking on the Submit button doesn't do anything. It just stays there like

Control server side caching by page (Tomcat)?

血红的双手。 提交于 2020-01-06 16:01:09
问题 I'm working with a grails application deployed in tomcat6, and I want to be able to enable or disable server side page caching on a "page by page" basis. In other words, I want to be able to specify, "Cache page A, but do not cache pages B and C." Is such a thing possible? If so, what is the best way to do this? Thanks in advance. 回答1: The Spring Cache plugin lets you cache controller actions and service method calls, so you could annotate the cacheable pages/actions and leave the ones that

Tomcat6 libs and /usr/share/java on Ubuntu

北城余情 提交于 2020-01-06 14:04:40
问题 I've faced with strange tomcat6 behavior. Tomcat uses jar files from both /usr/share/tomcat6/lib and /usr/share/java . It's not good for me because a also have installed maven and /usr/share/java contains few versions of each java library and some applications cannot start because they see all version of libraries. How I can disable using of /usr/share/java by Tomcat6? p.s. I use Ubuntu 13.04. 来源: https://stackoverflow.com/questions/20453076/tomcat6-libs-and-usr-share-java-on-ubuntu

Tomcat6 libs and /usr/share/java on Ubuntu

╄→гoц情女王★ 提交于 2020-01-06 14:03:55
问题 I've faced with strange tomcat6 behavior. Tomcat uses jar files from both /usr/share/tomcat6/lib and /usr/share/java . It's not good for me because a also have installed maven and /usr/share/java contains few versions of each java library and some applications cannot start because they see all version of libraries. How I can disable using of /usr/share/java by Tomcat6? p.s. I use Ubuntu 13.04. 来源: https://stackoverflow.com/questions/20453076/tomcat6-libs-and-usr-share-java-on-ubuntu

Prevent access to certain webapps in Tomcat6

回眸只為那壹抹淺笑 提交于 2020-01-06 05:28:08
问题 I asked this on server fault but really havent had much luck, hoping that someone here would be able to offer some advice... I have a Tomcat 6 server running just fine. I have external access working. I wanted to know how to prevent someone from seeing specific webapps, for example, I dont want external access to the ROOT tomcat page. How would I go about preventing some webapps while leaving other webapps visible to external users ? Here's what I've tried: This denies everything even 127.0.0

CXF 2.7.3 give error with spring 3.2.1.RELEASE possible conflict with libraries

谁说胖子不能爱 提交于 2020-01-05 06:53:50
问题 I have a project prev working fine with Spring 3.0.1 and apache CXF 2.4, but as there were memory leak issues in apache CXF 2.4 I have upgrade to version apache CXF 2.7.3 but it is not working with either spring 3.0.1 nor latest spring version Spring version 3.2.1. Exception is provided below. I am using maven and provided depedencies in pom.xml Feb 27, 2013 11:16:05 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet CXFServlet java.lang

How to access the one Web application Context in another Web application Context

╄→гoц情女王★ 提交于 2020-01-04 02:19:36
问题 I have deployed two WAR's in a Tomcat6 server, Say for example WAR-A , WAR-B in Context-A and Context-B respectively. I've stored some data in Context-A , and I want to read that data in Context-B . I have gone through the net and got some way to acheive it. I make the session ID of Context-A available for all the contexts by cookies. And I have set the crossContext = true in server.xml too. But when I do serveltContext.getContext("Context-A"); in Context-B it's returning null . 回答1: The

shared objects between webapps of the same tomcat

此生再无相见时 提交于 2020-01-03 13:36:46
问题 I have 2 webapps running at two contexts: c1, c2 (both immediately after the root). I put a startupListener in c1 to share a variable, and another one in c2 to retrieve it. My startuplistener in c1 is: public void contextInitialized(ServletContextEvent sce) { HashMap <String,Object> database ; //some code to init database ServletContext context = sce.getServletContext().getContext("/c1"); if (context!=null) { context.setAttribute("crossContext", true); context.setAttribute("cache", database);