tomcat

Despite my setting up my own logging.properties, everything still also logs to catalina.out. How to stop?

I am using Tomcat version 5.5.x. My WAR sets its own logging properties successfully and logs to $TOMCAT_HOME/logs/.YYYY-MM-DD.log. Everything that is written to my log is also written to catalina.out. Is there a way to stop the redundant logging to catalina.out stop? ...

Message when running web application in Tomcat from NetBeans?

Hello Is anyone able to shed any light on the message 'SEVERE: A web application appears to have started a thread named [DefaultQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.'? The message is generated a number of times when a web application is launched from NetBeand 6.9.1 using Tomca...

Performance benefits of Apache Tomcat native connectors

I have compiled and deployed the native connectors for Tomcat and have run my load testing benchmarks. There is no measurable difference. So my question is, under which circumstances are native connectors demonstratably faster? and can they be tuned to gain more performance from them. I do not mean "how do I benchmark to show an incre...

url redirection/mapping of the same java web application to multiple sub-domains

Hi, I've a domain, say www.domain.com. And I've developed a java web application, say jwa. Now I want to install the same app for different clients using subdomains, what is the best solution possible? something like "client1.domain.com" points to "client1" (renamed jwa) I know we can get client1.domain.com/client1/ but client1 twice ...

What are some alternatives to using Tomcat for Jruby Rack apps??

We're looking at some alternatives to our Tomcat based stack for a JRuby on Rails app. So far I've read about the Trinidad gem, which is actually Tomcat based, and the Glassfish gem. I can't however for either of these find production examples. Both of them it seems allow you to just run the command on command line, which is fine fo...

Configuring Tomcat to accept DOD CAC card certificates

I’m running an application on a stand-alone tomcat 6 server on a Windows box. I want it to be able to request and receive client certificates from DoD CAC cards. I have a client machine running IE that set up correctly to pass the certs from a CAC card, I know its correct because when I go to a CAC enabled site IE pops up a window as...

tomcat6: cannot create directory for logging in linux

i use ubuntu 9.04 for testing platform. I have created a webapp that log a hardcoded string whenever someone visit index.jsp. I have enable SECURITY_MANAGER in /etc/init.d/tomcat6. And I have grant permission for the webapp named w1 with grant codeBase "file:${catalina.base}/webapps/w1/-" { permission java.security.AllPermission; }...

Tomcat server url restriction

I want to configure Tomcat server such a way that particular url patterns can not access by browser, how do I configure this? ...

Tomcat 7.0.0 CSRF filter prevents deploying war file

Using the manager application to deploy a war file used to work for me but now consistently fails with "FAIL: Nonce mismatch. Command "/upload" was ignored." I understand that the nonce is generated, stored in my session and used to validate the request. I have tried removing cookies, closing the browser (Firefox) and logging in and re...

Install Tomcat 5.0.28 failed

hi, I am using tomcat5.0.28 windows installer , and it stopped in the middle of progress bar. with the last message "using jvm: c:\java\j2sdk1.4.2_19\" i wait for a long time, and it seems freeze, i have to kill the process. I use process explorer to check the processes. i found a children process created by tomcat installer, i checked ...

JRockit product differences (Mission Control/Real time)

The detailed differences between the jrockit downloads available: Oracle JRockit Mission Control and Oracle JRockit Real Time *(Version 4.x) Anyone faced any issues in testing Jrockit with Tomcat (Version 7.x or 5.x?) ...

Getting Tomcat to reload a web app with a static context

I have a Host that doesn't automatically deploy all web apps. <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false"> But I do want the dreambear web app to automatically reload without a restart, for development purposes (hence this is on SO, no...

Is Tomcat running?

Interested to know how people usually check to see if Tomcat is running on a Unix environment. I either check that the process is running using ps -ef | grep java ps -ef | grep logging or i check that the port number is active netstat -a | grep 8080 is there a better way of checking that Tomcat is running? The above seem to be t...

java.lang.IllegalStateException: Timer already cancelled when webapp redeploys on tomcat

Hi, Using Hibernate in a struts2 webapp when the application redeploys I get this error when trying to access pages after redeploy. java.lang.IllegalStateException: Timer already cancelled. Just after redeploy tomcat logs the following output which indicates the cause of the problem is that Hibernate is not shutting down properly whe...

Using RESTful services with JAX-RS/CXF in Tomcat

I'm interested in using Apache's JAX-RS implementation (CXF) in a Tomcat environment. The documentation is pretty clear and straight forward about developing a RESTful service with JAX-RS/CXF. However, I'm not sure how to develop a JAX-RS service within the context of a Tomcat environment. Does anyone know of a good tutorial on developi...

Deploying just HTML, CSS webpage to Tomcat

I am just getting started on developing a website. All I have at the moment is a HTML page supported by a couple of CSS stylesheets. Can I create a WAR file from the HTML and CSS pages? How do I deploy them on to a Tomcat server? Thanks. ...

How to trace session creation

greetings all i have an application which are made with Spring framework and deployed on apache,tomcat and i see on tomcat manager that there are many un-used sessions in the application and i want to trace when this session are created and who is creating them, how to do so ? ...

ClassCastException: org.apache.axis2.saaj.SOAPMessageImpl

I published a JAX-WS styles webservice on tomcat 6. This webservice itself consumes a JAX-RPC style webservice. As soon as i include the call to the RPC webservice, i get the error below. The error is not present when i don't call the RPC style webservice. java.lang.ClassCastException: org.apache.axis2.saaj.SOAPMessageImpl cannot be cas...

How can I expire all my sessions in Tomcat ?

I would like to expire all my sessions in Tomcat. We test our product under Fitnesse and some sessions remain and the end of the session causes dependency between the tests. I do it by hand with the following code, but some sessions remain (I can check it with the http://localhost:8080/manager/html/list url) public static void expireAll...

Which load balancer?

I am looking for a load balancer that: Is good stuff (free, open source, documented) Handles SSL Workers register in the load balancer, instead of listing workers (like jboss mod_cluster) works with apache tomcat (unlike jboss mod_cluster) Anyone knows a load balancer that can do this? ...