tomcat

Reference issue with tomcat?

I'm experiencing and issue with tomcat where if I try to deploy my code I get the following error: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serv...

Start / stop a web application from itself?

Hello to all, I've made a web application using Java, Struts and running over Apache Server and Tomcat. It would be very useful to be able to restart the application from the web. I don't want to restart Tomcat, only this wbapp, the same way as Tomcat Manager does it. Do you know how can I do it? If not, any way to simulate that behavi...

Apache/Tomcat and Ant verification using GnuPG

how in the heck is it possible to verify the signature of a distribution for apache Tomcat or ant? i've been using GnuPG and it doesn't seem to do the trick, despite warnings all over the apache site to verify files first. using windows...if that helps. STEPS: 1) download binary version .exe / .zip / .asc / KEYS file 2) gpg --import K...

How to get the message in a custom error page (Tomcat)?

In JSPs, you may use response.sendError(int code, String message) to return a particular error code (eg 404 for not found) and a message as well. These messages display fine, as long as you use the default ugly Tomcat error pages. However, if you create a custom error page, how do you get that message? I've tried exception.getMessage() ...

Using Javascript's LiveConnect functionality to access classes not in java, sun or netscape causes ClassNotFoundException

Hello, I am trying to access a class I wrote using JavaScript's Packages object, but I get a ClassNotFoundException. I am running Apache Tomcat 6, using Firefox 3.0.11 to view the content. Here is the class: package tests; public class testclass { public String str; public testclass() { str = "String from external clas...

How best to package a website

I'm working on a website running in Tomcat that stores a lot of member data, and I'm not sure how to best package it. I want to be able to deploy a war easily without needing to remove anything from it first. My first thought was to break out the member data into its own directory outside of the war, but my problem is that some of that...

How can I customize my web.xml configuration

I'd like to deploy the same web application for a number of different customers. Each deployment needs a different value in one of the elements of the web.xml configuration file. Without building a different .war file for each customer (with the different values set in the web.xml in each .war), is it possible to configure the values fo...

Mac OS - Built SVN from source, now Apache2 not loading sites

This relates to another question I asked earlier today. I built SVN 1.6.2 from source. In the process, it has completely screwed up my dev environment. After I built SVN, Apache wasn't loading. It was giving me this error: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec /apache2/mod_dav_svn.so int...

Integrating tomcat and eclipse as a hot-deploy environment.

I would like to setup eclipse and tomcat in an integrated fashion such that changes to my JSPs and servlets(if possible) are reflected immedietely without requiring a deployment. Ok, this is one of those questions that has plenty of answers all across the internet but they all seem different. (use Sysdeo plugin, use JBOss plugin, do stu...

Configure addition libraries for JSP in Tomcat

I'm very sorry if my question isn't clear. Actually, it's not my own question, it's my gf's one. I'm not experienced in Netbeans and Tomcat, so I cannot help her. She built a project in Netbeans (a Jsp website), use some addition libraries. Everything's fine, unless she copies all the project into the root folder of Tomcat. She doesn't ...

Java Heap Space (CMS with huge files)

EDIT: Got the directory to live. Now there's another issue in sight: The files in the storage are stored with their DB id as a prefix to their file names. Of course I don't want the users to see those. Is there a way to combine the response.redirect and the header setting für filename and size? best, A Hi again, new approach...

How to create war files

What are the best practices of creating war files (using eclipse) to run on tomcat? tutorials, links, examples are highly appreciated. ...

Tomcat shuts down automatically

I'm using Apache and Tomcat on a Windows server and since this morning, Tomcat stops working without any logs. It doesn't hang, it just shut down. There's no log in Tomcat, the CPU/Memory are fines, there are no System.Exit in my code. Anybody ever had this problem? It happens at random, after 5-10 minutes. The application responds no...

Why does my Tomcat/Alfresco site become unresponsive every half a day or so?

I'm a developer running a website on a CentOS 5 box with Apache Tomcat 6.x, Alfresco Labs 3 (the standalone .war file) and a couple custom webapps. The server has been up and running without problem for the past several months, but just the other day someone was uploading an image through Alfresco and the site stopped responding. In ad...

jruby on tomcat - RackInitializationException

After following http://kenai.com/projects/jruby/pages/JrubyOnRailsOnTomcat#Rails_2.0 though with tomcat 5.5, jruby 1.3.0, rails 2.3.2 tomcat gives: SEVERE: unable to create shared application instance org.jruby.rack.RackInitializationException: Please install the jdbc adapter: gem install activerecord-jdbc-adapter (no such file to load...

Can I manipulate tomcats answer on request.getServerName() or request.getLocalAddr() by configuration in server.xml

and if so: How? I need this because the server is known under different IPs in different sub-networks. ...

NullPointerException With Quartz & Spring

I'm using the Spring Quartz integration, and every time I try to shut down Tomcat, the Quartz processes fail to shut down. This is the stack trace: Exception in thread "org.springframework.scheduling.quartz.SchedulerFactoryBean#0_QuartzSchedulerThread" java.lang.NullPointerException at org.apache.commons.logging.LogFactory...

Why does my Sun JVM fail to initialize when I set PermGen above 128M?

I need to increase my PermGen. Currently I pass the following as command line parameters: -XX:PermSize=128m -XX:MaxPermSize=128m This works. If I try to increase the values, however, my JVM fails to initialize, giving me this error: [2009-06-18 01:39:44] [info] Error occurred during initialization of VM [2009-06-18 01:39:44] [info] Co...

Tomcat session-cluster: Is it production level? Does it scale?

I would like to know any experience with the Tomcat Session Cluster solution. Is it production level? Does it scale? Can I use it in a server farm? Do you recommend any other solution for a session cluster? (Ex: database, terracota, jgroups, etc.) ...

Tomcat and VM

Hi, I really confused in understanding where the tomcat actually runs. Is it execute inside the JVM, which execute servlets. Or it has it's own VM in executing servlet or JSP. Thanks in advance. ...