tomcat

Reload Tomcat webapp automatically?

Is it possible to configure web.xml to reload a specific tomcat webapp at a particular time automatically. If not, is it possible to do this programatically? ...

How can I configure a server in Eclipse?

When I start my Tomcat server, I am getting a problem described by the error messages listed below. How can I resolve this problem? Aug 5, 2010 10:25:13 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:...

Security Configuration for Tomcat using Virtual Hosts and Aliases

We have a grails app that uses two domain names and Tomcat was configured to use Virtual hosts and Aliases. Here's the server.xml snippet: <Host name="domain1.com" appBase="myApp" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>domain2.com</Alias> </Host> We also wanted ...

How to disable compression in Apache on some response header from mod_jk proxied application server

I have a tomcat server configured (by mod_jk) to work through Apache Httpd server. Apache Httpd server compresses (by mod_deflate) all text/html sent to browser. Some jsp pages are interactive and long running, i.e. display progress or log during execution. If compression turned on, all text on these pages comes at the end of page exec...

Spring MVC rendered JSP truncated when containing special characters

If I pass variables with extended characters to my JSP, the end of the rendered file is truncated by 2 bytes for each non-ascii character. Why is this so? Here is an example. My Controller: import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestM...

Can I ignore some jsp files when pre-compiling jsp using tomcat?

I'm pre-compiling jsp's in a webapp using tomcat as described here: http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web_Application_Compilation Is a way to exclude a subset of jsp files in the application? According to the documentation of org.apache.jarsper.JpsC it offers no such thing. But I was wondering if someone has come...

Alternative of FarmWarDeployer.

Hi since FarmWarDeployer is broken in Tomcat6. So is there any alternative to deploy the application in the tomcat cluster without deploying in each and every node. Is this compatible with tomcat7? Thanks ...

Hibernate - Connection hangs

I'm getting these warnings in my application, and it takes a long time get the response from database calls like 10-15 minutes. But is works fairly with slow response time, the problem is this same application works in my friends machine with fast database calls and no hangs under same configurations, even it worked in my machine before ...

Deploying a Java Project on Tom Cat

I have a java project (not a web application, no web.xml etc) I need to deploy it as a WAR on a tomcat with init servlet. Can anyone help me with the steps to do the same? ...

Not to log to catalina.out

I have the following logging.properties configuration: 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ...

Setting directory permissions for JSP/Tomcat/Windows

Hi All, I have a web app consisting of some JSPs that were previously running on a Linux box. I need to get this running on a Windows XP SP3 machine running Tomcat 5.5.29. Most everything is working now but this one item: The app has a capability to write a configuration file to its Windows directory (i.e. C:\Program Files\Apache\Tomca...

Caching Tomcat HttpClient testing

I'm using HttpClient for testing and when I have been restarting/redeploying to Tomcat I have been getting some sort of client side caching... For example I tried deleting my authentication servlet and ran my tester class (which connects using HttpClient) and I get the same response over and over. I'm going crazy trying to figure out wha...

Which version of Apache Tomcat should I install in my linux server space?

I need to install Apache Tomcat on my linux server space in rackspace.com. I'm not sure which is the best version I need to use. I also need support for PHP, Java, JSP, servlets and ASP. Do I need to install these separately or does apache/linux support these by default? If I need to install them separately, which versions of PHP, Java, ...

Why am I having trouble accessing a .properties file in a standalone instance of tomcat but not in an eclipse-embedded instance?

I wrote a simple Hello World Servlet in Eclipse containing the following in the doGet method of my HelloWorldServlet.java PrintWriter writer = response.getWriter(); String hello = PropertyLoader.bundle.getProperty("hello"); writer.append(hello); writer.flush(); PropertyLoader is a simple class in the same package as the Servlet th...

NullPointerException in solr multicore

Hi! I'm configuring my solr for two cores and have got most of it working, but I'm getting this cryptic error. First off, here's my solr.xml: <?xml version='1.0' encoding='UTF-8'?> <solr persistent="true"> <cores adminPath="/admin/cores"> <core name="cars" dataDir="/var/lib/solr/data/cars" config="/etc/solr/home_cars/conf/solrconfi...

response.setContentType() always trim the space between "; charset" ?

Hi, I'm using Tomcat 6.0.20, HttpServlet my servlet code are as followings :- response.setContentType("application/xml; charset=utf-8"); but each time i will got the content type as : application/xml;charset=utf-8 which is without the space between " ; ". May i know how to bypass the space being trimmed? Is there anyway to do s...

Tomcat JVM crash - EXCEPTION_ACCESS_VIOLATION (0xc0000005)

I am getting the following jvm crash every few days running Tomcat 6.0.16 on java 1.6.0_07. The effect is tomcat dies instantly. Any ideas what this means? An unexpected error has been detected by Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d889bb3, pid=4228, tid=8264 Java VM: Java HotSpot(TM) Clien...

web services call from a web application running on tomcat

When trying to make a web service (hosted on a different server) call from a web application running on Apache Tomcat 5.5.23 we are getting the below listed error. The certificates are imported to the JKS and the web service call is successfully made as part the unit testing. Appreciate your help. The error logs are an error occured:...

How to do file I/O with a servlet running on Tomcat

I am writing a Java servlet, using Tomcat as the container, which creates and serves PDF files to the end-user. Currently the PDF files are created in-memory and written out as a response to a POST. I would like to change this up somewhat so that the PDF files are written to disk (so they can be served up again later). I am having troub...

Glassfish Tomcat

What is Glassfish and Tomcat for? I have sourced it and it says GlassFish is an open source application server project led by Sun Microsystems for the Java EE platform but I don't really understand. help anyone? ...