tomcat

Does the -server flag affect Tomcat behaviour (as opposed to performance)

Hi I know that the -server JVM flag causes the JVM to use the Server VM rather than the Client VM, however, according to some internal documentation at my workplace, the presence/absence of this flag causes Tomcat to do/not-do on-the-fly JSP compilation. Not knowing Tomcat that well, does anyone know if this is the case? My guess is th...

How to configure Tomcat to log everything via syslog ?

Hi, I'm trying to configure Tomcat and a webapp (Atlassian JIRA) to log everything over syslog. Here is what I added to the webapp log4j.properties (atlassian-jira/WEB-INF/classes/log4j.properties) : log4j.rootLogger=WARN, syslog log4j.appender.syslog=org.apache.log4j.net.SyslogAppender log4j.appender.syslog.facility=LOCAL0 log4j.app...

JSP and Servlet maintenance on Tomcat

I'm developing a JSP/Servlet webapp on Tomcat. How should I refresh some things (servlet classes, web.xml, JSPs etc.) while it is functioning? I can use a boolean variable in my servlets to detect it will be a maintenance period so all the requests will be ignored. (All my servlets extend my own base servlet class, so the only thing I h...

low priority tomcat thread which must not experience thread death

Hi, I have a ServletContextListener for Tomcat which pops serialized objects from a SQL "queue" and based on this object, must make several edits to 2 other db tables. I must be sure that if the serialized worker object is popped, the edits are made, or my whole database will become corrupted. Although this sounds like a transaction, ...

Apache TomCat problems

Here is the situation. I reinstalled NetBeans 6.9 to my desktop and the basic application is working fine as far as i can tell. During the installation I purposely loaded Tomcat and not Glassfish. It gave me that option. Tomcat is loaded under my Program Files directory and i confirmed it by going to my control panel. I have a short ap...

Tomcat6 behind Apache2.2 proxy with SSL

Hello, I use Apache 2.2 with SSL as proxy(mod_jk). Behind it running tomcat6(without SSL) . When I use http connection everything work ok eg. for tomcat manager "http://localhost/manager/html", but when I try "https://localhost/manager/html" I get "The requested URL /manager/html was not found on this server" message . Should I add somet...

What changes needed to support IPv6

What changes website needed to support IPv6 and IPv4? Also using socket service in java what changes i require to accept both type of connection ? Environment OS - Linux Webserver - Tomcat 5.5 ...

tomcat server response after continuous interval ?

i want in my j2me application that a server check a table in database and send response to the application after some time.I am using Tomcat as server. Any suggestion how and what way i will implement it ? ...

Purpose of the Tomcat conf folder

Hi This is just for my own confirmation really. Is the <CATALINA_HOME>/conf folder in Tomcat for configuring Tomcat itself, rather than configuring application-specific settings? I assume application-specific config files could be put into this folder if I wanted but it's not a good idea partly because it's the wrong place and they wo...

Findbugs "Method May Fail to Close Stream" when using getResourceAsStream

Hi If I have the following code in a servlet: Properties p = new Properties(); p.load(getClass().getResourceAsStream("/test.properties")); If I run the servlet through FindBugs, I would expect to get the warning OS_OPEN_STREAM, but I don't. If I use a similar approach to open an arbitrary file on the filesystem (ie not in the classpa...

Tomcat Protect files

dears does anyone knows if tomcat is able to password protect file (like apache .htaccess )? i mean when user request a file from tomcat webapp its prompt a dialogue to enter user-name and password and made this using configuration. or protect the file depend on its IP address . hope someone can help me ? regads ...

Logging those hidden stack traces

Hi, I'm develping a GWT application with Ebean. When I deploy it to my Tomcat 6 server, I get an Exception related to Ebean, but I don't know what it is. The stack trace is truncated, and shows the message "... 28 more". How can I see those 28 more? I also use log4j 1.2. Thanks in advanced. This is a copy of the output. Caused by: ja...

Tomcat, but I am making some progress

Hey guys, I finally worked out the port problem I was having. It is on port 8084. I issued localhost:8084/ in my browser and the Tomcat page came up telling me that my installation was successful. I appreciate all the help. Thank you. Lastly, and I promise I will not bug you again (no pun intended). I am trying to run a simple JSP page...

apache2 ignores MaxKeepAliveRequests, closes connections arbitrarily

We have a Tomcat front-end server that proxies to our Apache 2.2.11 app server, running on a 64-bit Fedora 2.6.21.7 EC2 2xlarge instance (AKI aki-b51cf9dc). Apache is running mod_perl and is not threaded. We are trying to have the connections persist for a long time between Tomcat, running on another EC2 instance, and the Apache server...

Deploying a WAR file gives me a 404 Status Code on Tomcat?

I am fairly new to Tomcat. I just managed to build a project and exported it as a WAR file. I tried manually copying a WAR file to the Tomcat folder then restarting. It created the folder structure and everything but I get a 404 Status code when I try to reach the application. I tried deploying it through the Tomcat Admin panel but I'm s...

Tomcat STDOUT as Error in Eclipse

Hi, I am configuring Tomcat (5.5) server in Eclipse (3.3.2). Once I add Tomcat and start it, the output is printed in Eclipse Console. This output is printed in RED indicating its Standard Error. Although the server gets started without any error the normal INFO is also marked as error. Jul 29, 2010 7:06:14 PM org.apache.catalina.core.A...

Can WEB-INF be at a subdirectory JSP Tomcat6

I have an JSP application, it is under server/a/b and WEB-INF is under server/a/b/WEB-INF, not at the app-root directory. Now I get an error saying the package P does not exisit when visiting server/a/b/index.jsp. Actually the package exists and it is at server/a/b/WEP-INF/classes/P/ I want to know whether the error is due to not-at-ro...

sessions in multiple tomcats

How do I make multiple tomcats on different servers sharing sessions? I have a balancer sitting in front of 2 tomcat on two different servers, so when user starts a session, it's only associated with one of the tomcats. He might or might not get the session in the next request. ...

Disable connection pool on Tomcat

Hello! How can I disable default connection pooling on Tomcat? Is there any Resource parameter for that? Thanks in advance! ...

tomcat error while deploying WAR file

Hi, Please help me with the below exceptions that I obtain while trying to deploy a WAR file on Tomcat server. 07:46:50,076 WARN HostConfig:606 - Exception while expanding web application archive chapal.war 07:47:00,123 INFO StandardHostDeployer:435 - Processing Context configuration file URL file:/home/eqdev/eqgen117/chrad/chapal-...