tomcat

What is the best way to deal with environment specific configuration in java?

I have an application running in tomcat that has a bunch of configuration files that are different for each environment it runs in (dev, testing, and production). But not every line in a config file will be different between environments so there's invariably duplicated information that doesn't get updated if something changes. Is ther...

How to integrate Geronimo's transaction manager in Tomcat?

Does Geronimo provides a standalone transaction manager? And if it does, is it possible to use it in Tomcat? ...

How do I create a named log in $TOMCAT_HOME/logs for my servlet?

I'm currently logging via the simplest of methods within my servlet using Tomcat. I use the ServletConfig.getServletContext().log to record activity. This writes to the localhost.YYYY-MM-DD.log in $TOMCAT_HOME/logs. I don't want to get away from the simplicity of this logging mechanism unless absolutely necessary. But I would like to...

Eclipse & Tomcat: How to specify which folder is served from the project?

I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named "share". This folder comes from CVS so I'd like to use it with its given name instea...

Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application?

We have recently migrated a large, high demand web application to Tomcat 5.5 from Tomcat 4 and have noticed some peculiar slowdown behavior that appears to be related to JVM pauses. In order to run our application and support increased load over time on Tomcat 4, many not so standard JVM parameters were set and tuned as per the below, a...

Is there a way to set timeouts in tomcat?

Can I set timeouts for JSP pages in tomcat either on a per page or server level? ...

How would you implement salted passwords in Tomcat 5.5

My web application is relying on container-managed security and I'm wondering if it's possible to use salted passwords at all. As far as I can tell it's easy enough to store digested passwords in a database by just configuring a JDBC or DataSource Realm, but there's no way to add a salt to those digest. Any suggestions? Edit: it seems...

How do I get tomcat 5.5 to run behind apache 2 with mod_rewrite passing through requests to mod_jk and stripping app context?

Ok, so I want to get a webapp running in tomcat (5.5) to run behind apache 2 (2.2.3 to be precise) serving from the root of the site (i.e. without the context), with static content being served via apache. So if the app is running under "/myapp" on tomcat I want to use apache (plus mod_rewrite) to make it behave as if it's running under...

Strip whitespace from jsp output

How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting? ...

showing video through apache 5.5

I have a problem while showing .flv video file through apache 5.5 server. I am using jsp2.0 & javascript, flash video player in html. Whenever i am trying to run the video.jsp page which contains 10mb .flv video file through apache 5.5 server, my c drive is getting full. It also does not show the video on page & my whole laptop is becomm...

YAWS fronting Tomcat

Is there currently any easy way to set up a YAWS web server in front of Apache Tomcat Servlet container, similar to popular Apache httpd + Tomcat set up? ...

How to run Tomcat 6 on WinXP 64 bit ?

Installed Tomcat 6 on WinXP 64. It installed just fine. But when I try to launch it ( from Windows Services) I get the following error : "Can not start an the Apache Tomcat Service on Local computer." error 216:0xd8 ...

How do you launch multiple threads from within JEE?

I need to scale calls into Tomcat and it's been suggested to launch threads internally. Has anyone needed to do this and, if so, what solutions did they come up with? Thanks. ...

How do I troubleshoot why my rewrite rules aren't being applied by apache?

I've got a tomcat 6 web app running with apache httpd as the front end. I'm using mod_proxy and mod_proxy_ajp to forward the requests to tomcat. My server is running ubuntu. Now I'm trying to use mod_rewrite to remove the leading www, so that my canonical website url is http://domain.com rather than http://www.domain.com I've read a ...

Can Apache HTTP Server serve dynamic content?

Can Apache HTTP Server serve only static content? Tomcat is used to serve Servlets/JSP. Can Tomcat serve other dynamic contents like perl, PHP etc? ...

spring + tomcat + axis2 == jax-ws web service ?

I'm looking for a straightforward example / tutorial for implementing a JAX-WS (soap1.1 and soap1.2) web service based on wsdl definition using spring, axis2 and tomcat. hint anyone ? -- Yonatan ...

Problem with Commons Logging / Log4j setup in spring webapp with tomcat 6

I have a problem wih a logging setup in a apring webapp deployed under tomcat 6. The webapp uses the commons-logging api, on runtime log4j should be used. The log file is created but remains empty - no log entries occur. the setup is the following: WEB-INF/web.xml: <context-param> <param-name>log4jConfigLocation</param-name> ...

How do I connect my tomcat app to apache 2 so the paths aren't lame?

I've got a tomcat instance with several apps running on it... I want the root of my new domain to go to one of these apps (context path of blah).. so I have the following set up: <Location /> ProxyPass ajp://localhost:8025/blah ProxyPassReverse ajp://localhost:8025/blah </Location> it kinda works... going to mydomain.com/index...

Business Objects XI 3.0 Dashboard error via Infoview

I'm testing the latest Business Objects Edge Trial version, however when I'm logged in to the Infoview as the Administrator, when I click to create or organize a dashboard, I get one of the two following error messages... Cannot forward after response has been committed OR Servlet Engine Exception: null URL: /PerformanceManagement/sc...

Context information in Tomcat5.5

Hi, I am facing this peculiar problem. My webapp, works fine on my localhost. Its a JSP/Struts-Tomcat-MySQL app. However, when I host it on hostjava.net (shared tomcat), it is unable to connect to the database. After some debugging, I have identified the problem, to be with JNDI lookup for datasource. If you want, you can take a look a...