tomcat

Average max concurrent users on Tomcat

Hello, I am doing stress tests with JMeter on web application (built with Spring, Struts2 REST, uses PostgreSQL). I am simulating typical user's scenario with my app - 4 GET, 3 INSERT, 20 UPDATE calls. Server specs: 4core Intel Xeon X5365 3GHz 8GB RAM single 320GB SATA disk OS: Ubuntu 8.10 32bit DB: Postgresql 8.4 Tomcat 6.0.18 Java 1....

Get ServletContext on tomcat from jax-rs / jersey

I'm playing around with jax-rs , deploying on tomcat (handling via com.sun.ws.rest.spi.container.servlet.ServletContainer). It's basically @Path("/hello") @Produces({"text/plain"}) public class Hellohandler{ @GET public String hello() { return "Hello World"; } } Is there any way I can get hold of the ServletContext w...

tomcat6 application deployment error

Hi, I am new to tomcat and servlets and am trying to deploy my first web application in tomcat and the index.jsp page is showing up blank. It works fine in eclipse. I have the web.xml for the application setup to have the index.jsp as the default page. I am able to run the application and debug it in eclipse but when I export it as a W...

Java out of memory Exception

Hi, I am running a Java Web Application in Tomcat. The application uses Quartz framework to schedule the cron job at regular intervals. This cron job involves parsing a 4+ MB xml file, which I am doing using JDOM API. The xml file contains around 3600 nodes to be parsed and consequently data to be updated in DB which I am doing it sequ...

When is Spring + Tomcat not powerful enough?

I've been reading/learning more about Spring lately, and how one would use Spring in combination with other open-source tools like Tomcat and Hibernate. I'm evaluating whether or not Spring MVC could be a possible replacement technology for the project I work on, which uses WebLogic and a LOT of custom-rolled J2EE code. The thing is, I'v...

Problem getting tomcat to start up on reboot

I'm having trouble getting tomcat to start I followed these instructions to get tomcat / apache2 running: http://www.mogilowski.net/?p=121 ...but tomcat fails to start on reboot. Here's the message from the log: Nov 30, 2009 6:59:53 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 13009 ms Nov 30, 2009 6:59:53 P...

Tomcat per webapp memory settings

I am having two webapplication running inside tomcat. Java Heap space is allocated for Tomcat and it is shared for both appliaction. In that one application consumes more and other is getting OUT_OF_MEMORY. Is there any way to set memory settings per web application. Say 70% for one webapp and 30% for other from the overall memory allo...

trouble with JNDI Data Source in Tomcat

Hi, I've been having a hard time making a JNDI data source work. Following instructions at http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html I'm connecting to oracle with Tomcat5.5 I can connect fine if I use straight JDBC connection in code. Here is what I have: in my META-INF/context.xml: <Resource name="jdbc/mydb...

Clean up after servlet if init() failed

I have an Initializer class that implements the ServletContextListener interface. In its contextInitialized() method, I initialize some global classes that have to be destroyed, otherwise the servlet cannot be unloaded. However, when the servlet's init() method throws a ServletException, the contextDestroyed() method never gets called -...

How do I set up a non .war based app in Tomcat?

I want to run something outside of Tomcat's ROOT web dir. I used to do this in Tomcat 4, but can't seem to figure it out for the current version. I'm pretty sure it's as easy as creating a folder that is a sibling to ROOT and in it's web.xml file identifying what the web path ought to be... but I just can't find the right syntax. Does ...

Sharing a static object between a servlet and a webservice

I have a servlet which handles http get requests that I'd like to be able to share an object which is also used by a webservice im developing. They are both on the same tomcat server within the same web-app container. Im not sure best how to do it any ideas ? ...

Developing With Tomcat

I'm running TC 6 in "development mode", eg. the application classes are changing constantly and I want to see the latest version with minimal hassle. For a while I was using the TC HTML 'manager' application to reload; this worked up to a point, but I kept getting OOM errors after a while. Surfing suggested that TC has a leak when reloa...

DIMDIM Localization

I try to change the files in /usr/local/dimdim/ConferenceServer/apache-tomcat-5.5.17/webapps/dimdim/data/language to Arabic but still characters not displayed well how i cant change the language in dimdim to Arabic regards ...

Apache/Tomcat site nesting

Hello, I have two standalone sites in tomcat webapps folder $TOMCAT_HOME/siteA which is registered in DNS as siteA.example.com and $TOMCAT_HOME/siteB which is NOT registered in DNS Both sites are written in Java/Servlets. Is there a way to setup apache/tomcat/mod-rewrite to call siteB like so? siteA.example.com/siteB Does this l...

Timer class used from axis2 webservice

Hi, We have an axis2 webservice that scehdules a job using Timer. The class that gets executed when the jobs kicks off handles complex data types defined in the webservice package. We I deploy it and run it, I get class not found exception so I tested by packaging the datatype class file and putting it in the $tomcat_home/lib directory ...

How to configure a Apache primary web server to handle the SSL connections from users (Tomcat Servlet/JSP container)

How to configure a Apache primary web server to handle the SSL connections from users (Tomcat Servlet/JSP container) ...

Can IIS 6.0 show server status just like tomcat

the server status might contain: CPU Usage, Memory Usage and other server's status data. any recommendations ? ...

Questions about PHP and Java

I want to know how Java (JSP) on Tomcat compares to PHP on Apache in terms of performance. Two servers with the same hardware configurations, one running Tomcat/Java (JSP) the other Apache/PHP, both servers maxed out with how many connections they can handle at once. Would they be somewhat close or would one pull away from the other one...

Tomcat Valve settings

Hi %, I'm stuck with sort of a configuration issue I think. I need to protect a folder which is within my actual tomcat application from access from a certain IP range. I thought this was serverfault, so I posted the question there. Right now I'm not sure whether this is SO or SF anyways... Nevertheless I kept on trying geting it goin...

Setup SSL for form login only on Tomcat webapp

Can I set Tomcat (or my webapp if it's done that way) to require SSL for confidentiality of the built-in Form-Based Login mechanism? i.e. to protect the users credentials, and use standard http for any other transactions? ...