tomcat

Issue of running spring samples

Hi all, This is the second time I ask question about this issue,last time when I tried to run mvc-ajax project,I got error :can't find c.tld file. Then I remove jsp-api.jar,it works. But now I am running spring sample petclinic, the same issue here: org.apache.jasper.JasperException: /WEB-INF/jsp/welcome.jsp(1,1) Unable to read TLD "ME...

Getting permission denied for logging in tomcat.

I have a log4j.properties file as part of my application. #Updated at Thu Apr 01 14:30:43 GST 2010 #Thu Apr 01 14:30:43 GST 2010 log4j.rootLogger=INFO, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.appender.stdout.layout=org.apache.log4j.Pat...

tomcat too many files

I get the following after a day using tomcat: java 25006 root 996r FIFO 0,6 894580 pipe java 25006 root 997w FIFO 0,6 894586 pipe java 25006 root 998r FIFO 0,6 894587 pipe java 25006 root 1000r FIFO 0,6 894588 pipe java 25006 root 1001w FIFO ...

jsp page as css file on Tomcat

I want to have a css file which is in fact a jsp-page. One of the reasons is that I would like to use c:url tags to make the path to images context-independent. So far I only found a possibility to set this up in server.xml. But I need it for my webapp only, and not server-wide. Update: Setting the content-type to text/css of course ...

JPA2 on Tomcat - possible?

I'd like to use JPA along with Bean Validation, so JPA 2.0 sounds like what I need. I'm running my web application on Tomcat 6. Is Tomcat able to use JPA2? ...

How to configure Tomcat 6.0 with MySQL

Can one explain little more about how to configure Tomcat with MySQL? Where to place mysql-connector-java-5.1.13-bin in Tomcat directory? Should I place it under Tomcat 6.0\webapps\myapp\WEB-INF\lib? Do I need to confirgure context.xml or server.xml files? Should I write web.xml file and need to place under Tomcat 6.0\webapps\myapp\WEB...

Grasshopper framework: does it support specifying handler in web.config?

I was trying to port an ASP.NET web application to run on Tomcat using MainSoft Grasshopper framework. My application takes advantage of custom HTTP handlers. Here's how I use them right now: web.config: ... <system.web> <httpHandlers> <add verb="*" path="*.xyz" type="App1.XyzHandler" validate="false"/> ... XyzHandler.cs:...

Unable to get JPA working with Hibernate

For a weekend project I was trying to run JPA 2 with Hibernate 3.5. Please note that I am not getting any compile errors or runtime exceptions (when I deploy the war on Tomcat). Below is my code - persistence.xml <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x...

Unable to connect MYSQL database using JSP and TOMCAT

I am unable to connect database “test” created in mySQL using Java Server Pages (JSP) & Tomcat. I am getting the error message "Unable to connect to database". I am using following software specifications Tomcat 6.0 jdk1.6.0_21 mySQL 5.1.49 mysql-connector-java-5.1.13-bin I have configured following environment variables as follow ...

There is no catalina.out

Hi folks, I have no idea, how and what to set up, to have catalina.out on the Tomcat on my computer. I use Tomcat 6.0.28, zipped-version on Windows XP. To start server I just run startup.bat-file. Do I do something wrong?! Thanks in advance for any advices. Mur [Edited] All records (Exceptions or System.out) will be written in cons...

How can I embed an html page into a jsp whilst avoiding repeated logins yet hosting the html separately to the web app?

I have a tomcat hosted web-app, in one of the jsp pages the webapp displays I am using an iframe to embed an html document. I need to have the html pages separate to the web-app so that they can be altered without requiring a relaunch of the original web-app or access by editors to the web-app. It is also essential that html pages are ...

Dynamic Requests are getting cached with nginx on frontend

I'm using nginx as a reverse proxy in front of Tomcat ... At times dynamic request are getting cached as in if a record is added it not show on the page at first but after few refresh it comes up. I'm having above issue in firefox only its working fine on chrome and IE. ...

Deploying webapp in Tomcat6

I have the following problem. When I developed my application locally I was deploying it using Netbeans support. Now I need to deploy the application on the official server. I installed Tomcat6 and it displays the start page properly but how to deploy my app? Which changes are needed to make ot work on port 80 (at the moment it works on ...

Problem getting apache to default to a particular JKMount using mod_jk

Hi, I have an apache instance fronting 4 tomcat webapps, lets call them app1, app2, app3, app4. I'm using mod_jk to act as the connector and I've set up apache with JKMount entries for each and I can happily hit: server:8080/app1 server:8080/app2 server:8080/app3 server:8080/app4 But what i actually want is to have all the traffic ...

Tomcat in Production

What's the best way to achieve central management of a cluster of Tomcat servers in production? Specifically, I'm looking for automatic application (WAR) deployment, consolidated logs, and basic health monitoring at a minimum. What open source or commercial management tools are people using for this? ...

Oracle connection error using Tomcat

I am using Eclipse Galileo and Tomcat 6.0. I am getting an error like this: 2010-08-17 00:09:42,684,JDBCExceptionReporter,WARN,,SQL Error: 0, SQLState: null 2010-08-17 00:09:42,684,JDBCExceptionReporter,ERROR,,Cannot create PoolableConnectionFactory (ORA-01033: ORACLE initialization or shutdown in progress ) 2010-08-17 00:09:42,684,Sett...

How do I get servlet filters to stop loading on application startup in Tomcat?

Below is my deployment descriptor. I'm using Spring MVC, but I've got a url rewrite filter in place that is supposed to run, and then forward to the appropriate controller. For some reason this filter is loading on startup, trying to get the path translated, and throwing a nullpointerexception because there is no path. I never knew filte...

How to run multiple instances of a single GWT application with different web.xml files on different subdomains ?

I've a GWT application, I run my application on tomcat server. My application only uses MySQL database to save & retrieve all needed data & has no side effect on file system (I mean it does not change any file on it's deployment path). Now I want to run multiple instances of my application on different subdomains, the only different betw...

How can I web app poll a queue continously? or does it have to be another service?

If I use a queue in my web application (spring), can I do: while(..) { } To response to new items added to a queue, or does this have to be a seperate service that runs on the server? i.e. this can't be sustained in a web application correct? ...

Does log4j requires JSF jars?

I build a REST web service (using JAX-RS, Spring, Spring JMS, and ActiveMQ). I'm surprised that when I deploy it to Tomcat 5.5.23 I get an exception that JSF jars are required?! Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.ClassNotFoundException: org.apache.myfaces.we...