tomcat

Is there a url rewriting engine for Tomcat/Java ?

How can we provide URL-Rewriting support for Tomcat/Java ? mod_rewrite provides this functionality for Apache and can modify URLs even before they reach the handler (e.g. PHP). Is there a similar tool in Java/Tomcat ? To be more specific we need modifications such as http://www.somedomain.com/person/1 Maps to http://www.som...

Eclipse WTP: How do I enable SSL on Tomcat?

Eclipse WTP creates its own server.xml file which it places in some folder which configures the tomcat instance you are running for your web project. If you double click on the server in the servers list you get a nice screen which makes it simple to configure some aspects of the server.xml file. How do I configure a new connection to a...

NoClassDefFoundError while accessing GraphicsEnvironment.getLocalGraphicsEnvironment on Tomcat.

I have an application which is running on tomcat, one of the methods is, creating a simple thumbnail from an jpeg image. The functions works fine offline and a week ago also on tomcat. But now i get the following error: java.lang.NoClassDefFoundError java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:164) java.aw...

Spring JMS Message Listener Container

Hi, I'm new to JMS and I am working on setting up ActiveMQ with Tomcat 6 and Spring. I have most of the basic things configured however I'm a little bit confused with the Message Listener Containers that Spring provides. Reading the documentation it sounds like the Message Listener Container is used to "handle" subscribing (I'm worki...

Nutch search always returns 0 results

I have set up nutch 1.0 on a cluster. It has been setup and has successfully crawled, I copied the crawl directory using the dfs -copyToLocal and set the value of searcher.dir in the nutch-site.xml file located in the tomcat directory to point to that directory. Still when I try to search I receive 0 results. Any help would be greatly a...

Can I do this? Apache + mod_jk + Tomcat + Axis

Hello! We're making a product which requires a web service to hook up to an existing database used by one of our other products. Owing to time constraints we need to get this thing up and running pretty quickly. Our web server is Apache on a Linux machine, and the client software for the new product is constrained to communication on Po...

Apache + Tomcat: Using mod_proxy instead of AJP

Is there any way I connect Apache to Tomcat using an HTTP proxy such that Tomcat gets the correct incoming host name rather than localhost? I'm using this directive in apache: ProxyPass /path http://localhost:8080/path But it comes through as localhost, which is useless when we have a bunch of sites on the same server. I could set the...

Tomcat sessions expiring unexpectedly

We are running tomcat application server that handle over 100 concurrent sessions. In the last 2 months the most active users noticed that sometimes they are getting kicked off from the system. As I understood from the log tomcat sessions are getting expired without any reason. I see no problems from the web application side. Is ther...

How to relay dataset/datatable from Tomcat to a .NET application ?

I need to provide data to a DataTable in a .NET application from a servlet hosted in Tomcat. It seems tempting to just stream back XML the .NET application can just pupulate using DataTable.ReadXML. Is that the proper road to go down ? And not the least; are there existing Java components that can help me with this on the Tomcat side ? ...

Is it possible to disable jsessionid in tomcat servlet?

Hi Gurus, Is it possible to turnoff jsessionid in the url in tomcat? the jsessionid seems not too search engine friendly. Please Advise Thanks ...

Why use Tomcat's context.xml files to declare DBCP resources?

Im having trouble understanding why I would use a context.xml file to declare a resource, in my case a database connection pool. Hopefully I've got my facts straight in the following arguments against using context.xml As far as I can tell, resources declared in /META-INF/context.xml are only available within the context, so there's no...

SocketException in ActiveMQ when exiting listener application

Hi, I am currently setting up a Tomcat Server that is running an embedded ActiveMQ broker. I'm using Spring to configure JMS. I wrote a test application to listen to topics and when I exit the test application the ActiveMQ broker throws a SocketException. Here is the exception: 2009-06-09 13:12:48,005 DEBUG Transport:229 - Transpor...

RichFaces on Secure Site

Has anyone used RichFaces on a secure site? I'm using the following: Tomcat 6 RichFaces 3.3.1 (also tried 3.1.4.GA) intermediate certificate My application is using the Rich panel bar. When using HTTPS, only the panel labels are rendered and I get the following JavaScript error: 'RichFaces' is undefined This is the JavaScript creat...

Tomcat jsp error "The type org.apache.axis2.AxisFault cannot be resolved. It is indirectly referenced from required .class files"

I am using Tomcat 5.5 on Windows XP. The tree is: \Tomcat 5.5\webapps\Test \Tomcat 5.5\webapps\Test\TestJsp.jsp \Tomcat 5.5\webapps\Test\WEB-INF \Tomcat 5.5\webapps\Test\WEB-INF\classes \Tomcat 5.5\webapps\Test\WEB-INF\lib I access the jsp via: http://localhost:8090/Test/TestJsp.jsp and get the error: The type org.apache.axis2.Ax...

Setting "endorsed" dir in an embedded tomcat server

Hi, I am creating a web application using Eclipse (3.4), and m2eclipse. I am using the deploy goal but often prefer to use the run goal for the use of the embedded tomcat in the maven tomcat plugin. I added the xalan jar to the endorsed dir as I had problems with the xalan that is in the rt.jar. It works fine on deployment, but I can't ...

Eclipse 3.4 + Tomcat 6.0 + Remote Debugging with Console Output

Hi! I'm using this configuration: Eclipse 3.4 + Tomcat 6.0 + Remote Debugging It's working great, I can debug a servlet and so on, no problems. But, my servlet console output is going to $CATALINA_HOME/logs/catalina.out. Is that possible to redirect to the Eclipse console window? I use Log4J in my project but every entry goes to ca...

IIS -> connector -> Tomcat (NTLM authentication)

Hi All, I wanted to get feedback on a potential setup and wanted to make sure it would likely work before embarking on this path. I want to use IIS in from of Tomcat to do NTLM authentication. There is a Web service running in tomcat that would get requests get forwarded to it by IIS. This service requires knowledge of the remote NT u...

Input type "hidden" vs text area

Hi, I'm having a weird issue with an input type hidden and was wondering if anyone has ever seen something like this before. I'm saving about 2MB of data to a hidden field, in a comma separated format, then I'm posting that data to a jsp that simply sets some headers (so the output is recognized as an excel file) and then echoes the dat...

Removing the Apache TomCat runtime from a project in Eclipse?

I've got a project I've been building on Eclipse Ganymede targetted at tomcat 6.0, I've imported it into Europa and I need it to run on apache Tomcat 5.5 I can't find the reference to where the runtime is set to 6.0 to remove it. I've tried going to Windows > preferences > Server and I've installed the 5.5 runtime. I can't however seem...

how secure is tomcat

Hey everyone, as can be seen from two other question I had I am looking for a secure webserver as there where discussion at work how safe tomcat really is. But basically what I found on the net regarding how safe it is is greek to me. So I was hoping, someone could explain to me how safe tomcat really is? Like, is it possible to mess wi...