tomcat

MySQL connection timeout

I'm running program at apache tomcat server, that should be on permanently, but every morning(the client part isn't accessible at night) i receive error message (in apache tomcat console) that MySQL server is off. So is there any way to prevent this? Thanks in advance! ...

ClassNotFoundException when running a Spring + Maven2 project on Tomcat 6 from within Eclipse 3.5

When trying to launch a Web project from within Eclipse I get: SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa...

What is the JSP EL equivalent for request.getRemoteUser()?

I'm using <%=request.getRemoteUser()%> to retrieve the logged on user's ID within Tomcat. What would be the equivalent using JSP Simple Expression Language? ...

Is it possible to map a root domain URL to a Grails' controller?

Let's have an example: A grails project, myproj, is deployed in Tomcat 6. It can be accessed anywhere thru this link: http://www.mycompany.com/myproj. Let's say we purchase another domain, http://newcompany.com, and we would like to point it to http://www.mycompany.com/myproj/url. If I go to http://newcompany.com/12345, it should be t...

Specifying a relative path in web.xml when debugging a servlet with Eclipse's WTP Tomcat Server?

I'm trying to specify a relative directory in the web.xml file. I basically want it to read the "data" folder underneath "web-inf", but nothing I've tried seems to work. "/data" translates to the data folder in the root directory (I'm using windows). "data" translates to "C:\Program Files\Eclipes\data" "${CATALINA_HOME}/[etc...]" doe...

How do I organise my libraries in sub-directories in a web application project

I am working on a huge web-application with hundreds of dependencies (jar files). I want to organise the jars in sensible way as each piece of software comes with its bunch of jar files and when I want to remove or upgrade version of that software it will be easier to do if kept in sub directories. Problem is that when using a web-serv...

jsp page is cached, can not change it, tomcat

Hallo, I have a java server, when I change somethin within the JSP code, and I call the page again from the browser, my changes are not shown, the server returns the old JSP. Do you have any idea why? ...

How do Tomcat examples work?

Alright, this is a very simple question. I just installed Tomcat 6 on my Mac to play around with it, and every tutorial I look at says the first thing to do to create a new web application is to add a line to the server.xml file with defines a new Context. Fair enough. However, my question is, I don't see a line in there for the examp...

Tomcat 4.1.X and Tomcat 5.0.X

I have a problem about tomcat, Our application designed on Tomcat 4.1.X and When I restart Tomcat 4.1.X there is no problem. But I upgrade it to Tomcat 5.0.X. Now ,when I restart Tomcat 5.0.X session is down and application redirect me to login page. Any idea? ...

Importing Thawte trial certificates into a Java keystore

Hello, I'm trying to configure a Tomcat server with SSL. I've generated a keypair thus: $ keytool -genkeypair -alias tomcat -keyalg RSA -keystore keys Next I generate a certificate signing request: $ keytool -certreq -keyalg RSA -alias tomcat -keystore keys -file tomcat.csr Then I copy-paste the contents of tomcat.csr into a form ...

Problems with deploying JSF project from Netbeans to Tomcat

Hi! Googled everything, but can't find solution for my problem. When i'm trying to deploy my project to Tomcat, i have such errors in Tomcat log: SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.NoClassDefFoundError: javax/servlet/ServletRequestListener I tried to deplo...

Compiling a webapp against Tomcat 5.5 libraries and deploying on Tomcat 6.

I have a Struts2 webapp, in which I compiled using the Tomcat 5.5 libraries. If I deploy this webapp on a Tomcat 6 server, should it still work without a hitch? ...

Apache - Tomcat ProxyPass VirtualHost - Context Path

Hi, I have a problem configuring apache tomcat ProxyPass directive for two applications that have two different Contaxt Pathes in tomcat. The tomcat is running behind an apache and I use the apache to proxy path the requests to tomcat. In apache I want to access both application via a hostname instead of a context path. Scenario: tomc...

How to call bash process from within django / wsgi?

I'm using mod_wsgi apache2 adapter for a django site and I like to call some bash process within a view, using the usual ... p = subprocess.Popen("/home/example.com/restart-tomcat.sh", shell=True) sts = os.waitpid(p.pid, 0)[1] ... This code works perfectly from within a usual python shell but does nothing (I can trace right now) when ...

Subdomain under Apache to proxy into Tomcat

I'm having trouble with making a subdomain to my Windows computer while using AJP to proxy to Tomcat. This is what I have in my httpd.conf file: <VirtualHost *:80> ServerName subdomain.localhost ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / ajp://localhost:8009/folde...

How to update crl for tomcat

How to create and update the crl file for tomcat server.xml? ...

Huge anon blocks in pmap

I am doing a pmap on a tomcat process and I am seeing some huge anon blocks. From what I read anon blocks are used for thread stacks and for JNI. I have a very moderate thread count. How can I go about finding out what is causing these huge anon blocks? 00000000ee0d0000 26752K rwx-- [ anon ] 00000000efaf0000 33792K rwx-- [ anon...

(Why) does Tomcat/Java perform better on Linux than on Windows?

I just read this (one) study in which Tomcat under Linux outperformed Windows. From your experience, is this generally true? Any deep reason that could explain the performance difference? ...

How do I access a tomcat 5.5 installation via localhost running on Virtual PC 2007?

I have a tomcat installation of 5.5 up and running on a Virtual PC with a fresh XP pro SP3. Launching tomcat gives the standard messages: INFO: Find registry server-registry.xml at classpath resource Apr 12, 2010 11:43:44 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3576 ms However, I cannot for th...

unable to implement HTTP Tunneling correctly in order to enable Java rmi calls over internet(and under ISP)

in my previous question :-How to Setup RMI Server under(NAT/ISP) Now,i m able to start my RMI server by Installing apache Tomcat 6.0 server. i have also installed servlet programs into apache Tomcat server in order to enable HTTP tunneling. my servlet codes:- (1) [SimplifiedServletHandler.java][2] (2) [ServletForwar...