tomcat

Is it possible to have one appBase served by multiple context paths in Tomcat?

Is it possible to have one appBase served up by multiple context paths in Tomcat? I have an application base that recently replaced a second application base. My problem is a number of users still access the old context. I would like to serve the, now common, application from a single appBase yet accessed via either context. I took a...

How to add /usr/share/java libs to webapp's classpath?

Summary Is that possible for webapps deployed on linux + tomcat5.5 to use/see all /usr/share/java/ jars automatically? Details I'm packaging my java webapp for Ubuntu (yet the question is related to any linux-based distro) and going to make it depend on tomcat. I'm going to put context descriptor (an xml file) to /usr/share/tomcat5.5...

How do I get apache to forward web service requests to tomcat?

I know websphere does it, so there must be something that lets apache figure out what needs to go to the app server and what it can handle itself. ...

What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk

what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size? ...

How to map a Servlet to get extra path information with getPathInfo()

I am having an issue where Tomcat is treating extra path information as part of the servlet name. This is breaking a bunch of RESTFul functionality in our webapp (we use extra path info rather than ?name=value pairs for crawler friendly links). It was working correctly before, but it broke after adding explicit mappings and removing th...

How to avoid storing passwords in the clear for tomcat's server.xml Resource definition of a DataSource?

The resource definition in tomcat's server.xml looks something like this... <Resource name="jdbc/tox" scope="Shareable" type="javax.sql.DataSource" url="jdbc:oracle:thin:@yourDBserver.yourCompany.com:1521:yourDBsid" driverClassName="oracle.jdbc.pool.OracleDataSource" username="tox" password="toxbaby" maxIdle="3" maxActive="10" removeAba...

Different layouts and i18n in JSP application

I have a bunch of JSP files and backend in Tomcat. I have 3 different versions of JSP with same logic inside but with different layouts. So if I change some logic I have three JSP file to fix. What is the proper soution for such a scenario? I thought of some XML and XSLT stack: backend gives only data in XML and than for each layout I h...

What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application?

What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? Are there any performance considerations? How would this compare with the native integration between Apache httpd and Tomcat? ...

How can I configure Tomcat to always direct to index.jsp after login?

Currently Tomcat's login support redirects users back to where they initially were when the application figured out they weren't logged in. For this particular application I need to force them to always go back to index.jsp. I'm pretty sure this is a simple configuration option in the WAR's web.xml, but I haven't found the answer in go...

How can I browse my Tomcat localhost from another computer on the network?

I'm an IIS guy and know its as simple as just using the http://[computername]/path to webapp.. however, I can't seem to figure out how to make this possible for a JSP application I'm writing that runs under Tomcat. Is there a configuration setting I need to set somewhere? ...

How to configure Tomcat JULI logging to roll log files?

I have a several webapps which use java.util.logging. Tomcat 5.5 is configured to use the Juli logger so that each webapp has its own log file. The problem is that Juli does not have properties for maximum file size and file count. Using Juli the files will grow unbounded and only roll at the end of the day. Also, an unlimited number...

How to get UTF-8 working in java webapps?

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases. My setup is the following: Development encironment: Windows XP Production encironment: Debian Database used: MySQL 5.x Users mainly use Firefox2 but also O...

Tomcat 6.0.18 service will not start on a windows server.

I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service. I'm running it with jdk 1.6.0_07. It runs when I start it with tomcat6.exe. I got a vague error in the System Event Log on Windows. The Apache Tomcat 6 service terminated with service-specific error 0 (0x0). ...

What is the default session timeout for a Java EE website?

If I do not specify the following in my web.xml file: <session-config> <session-timeout>600</session-timeout> </session-config> What will be my default session timeout? (I am running Tomcat 6.0) ...

Tomcat deployment

Is there a way, given a war file, to deploy on a tomcat server. I want to do this without having to use the web interface. ...

Is Lambda Probe dead?

Does anyone know where to get the source code for LambdaProbe? Alternatively, does anyone know if the project could be moved to a community repository? Besides the tool not being updated for over a year, the LambdaProbe website has been down since late September 2008. Background: Lambda Probe is a useful tool for viewing stats on a ...

What is the best way to set-up authentication in a tomcat webapp?

I have a self built JSP webapp and at the moment I'm using tomcats built in admin pannel to manage user accounts (that are stored in tomcats config xml files) but this is limited because i can not create new accounts from within the web-app (eg. I can not have a sign up website) and need to manually create the accounts. What is the mos...

What's the best way to deploy a JRuby on Rails application to Tomcat?

I'm looking at ways to deploy a Ruby on Rails app (running on JRuby) to a Tomcat instance for testing. The tomcat instance is running on a Solaris server that I can SSH to. I've looked at using Capistrano, but there doesn't seem to be a lot out there about using it to deploy to Tomcat, or even about running it under JRuby, and I keep hi...

NoClassDefFoundError with a long classname on Tomcat with java 1.4.2_07-b05

Hi I have a java class. it.eng.ancona.view.RuoliView$TabElaborazioneFattureValidazione$ ElencoDettaglioElaborazioneFattureValidazione$RigaElencoDettaglioElaborazioneFattureValidazione (i break the line for better readable) Is so long for multiple inner class. If i use 1.4.2_07-b05 on Eclipse and i call this class, all go fine. If i...

tomcat session replication without multicast

i am planning to use 2 dedicated root servers rented at a hosting provider. those machines will run tomcat 6 in a cluster. if i will add additional machines later on - it is unlikely that they will be accessible with multicast, because they will be located in different subnets. is it possible to run tomcat without multicast? all tutoria...