tomcat

Tomcat admin tools?

I've worked with WebSphere, WebLogic, JBoss, and other app servers in the past. Now, I'm working on an app that will be deployed using Tomcat 6.x. While I prefer using the command line or XML config files, there are times when a good administrative console comes in handy. I've looked at the admin console that Tomcat comes with and fou...

when setting up a spring mvc project in intellij, how to you setup you tomcat/jetty?

When setting up a spring mvc project in intelliJ (community edition), how/where do you setup tomcat/jetty so when you click run it deploys to tomcat? ...

Tomcat, Singletons, & ServerContextListener

I've been attempting to pull hard-coded configuration data from a Tomcat web-app which I'm working on, into JNDI (web.xml) to make the app more configurable. Instead of continuously doing lookups into the InitialContext, I'm caching the lookups and the InitialContext using a singleton. Of course, when I stop and start the application...

Boot Problem with Tomcat on Mac OS X

Hi, Using recently Tomcat. So far I have used it on a Windows XP machine, and everything went well. I decided to install it on a Mac machine, Mac OS X Snow Leopard, but can not boot. I installed Tomcat by following this step: 1. download from site, 2. create folder /Library/Tomcat, 3. untar file in this new folder, 4. create simbolic l...

How to select saxon TransformerFactory in Java

In my web application I need to use Saxon TransformerFactory to use XSLT 2.0 but I can't use setProperty method because I haven't this right on the web server and there is a Security Manager. So i have read that it's possible to do this: Use the Services API (as detailed in the JAR specification), if available, to determine the clas...

Tomcat Restart automatically Web Application on startup, after error

Hi, I've a big trouble on tomcat. Before explaine, let me tell is the first time I see something like this... I'm building an application using JPA on Hibernate, Spring 3.0 and Jersey REST Framework. When using glassfish, everything works fine, but deployng the same application on tomcat, I registered the following error code: GR...

tomcat db2-jdbc datasource configure

Hi, i'm trying to configure a datasource of an db2 database in tomcat (using eclipse as IDE), but i cant solve the problem, Tomcat trow me the following exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.db2.jcc.DB2Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(...

Working/Include Direct of a Servlet

Hi there, I'm currently starting to learn to use java to create dynamic websites. I've started using a servlet and the template engine 'velocity'. My Environement: WebContent/ WEB-INF/ gallery/ template.file My Question: I want to use the "template.file" as template. WHAT filename/path do I have to enter to reach m...

Integration of tomcat and Quartz scheduler on startup

I am using tomcat version 6.0. My requirement is that when tomcat starts up, I would like to start a QuartzScheduler which will schedule some jobs at a regular interval. I am trying to figure out the best possible way to do it. Here are the options that I could think of - I can do this via a servlet with "load-on-startup" descriptor i...

Workaround for running tomcat with IntelliJ, maybe a script to push to tomcat?

what kind of workarounds would you guys suggest if I want to run a spring mvc project in intellij (free version) and run it on tomcat? How about a script to push compiled files to a running instance of tomcat? how would this work? ...

NetBeans and Tomcat Virtual Hosts

Hello all. Let me start out by saying that I am new to Java/JSP web development, so I may have totally missed something simple. If so, I apologize for it in advance. Basically, what I am trying to do is setup local development sites in Tomcat as a separate Virtual Host, similiar to how I have setup Apache Virtual Hosts in the past. I...

Tomcat Digest with Manager WebApp

I'm trying to get a digest password setup for the tomcat manager application. I've got <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" digest="MD5"/> in my tomcat server.xml changed the manager web application's web.xml to use digest and changed the realm name to TESTING: ...

Tomcat Postgres Connection

Hi, I'm using a singleton class for a PostgresSQL connection inside a servelet. The problem is that once it is open it works for a while (I guess until some timeout), and then it starts throwing a I/O exception. Any idea what is happening to the singleton class inside Tomcat VM? Thanks ...

Testing a servlet static method not allowed?

When I try from within JUnit I enter: public InvocationTargetException(Throwable target) { super((Throwable)null); // Disallow initCause this.target = target; } I know that I could put that code in an outer class and have servlet call it. Can I not test a static method of a servlet in Java EE 5 container, from a JUnit test m...

Grails Custom Error Page (500) & Tomcat

Hello I'm trying to implement simple custom error page after any Unhandled Exception being thrown by the Grails code. I've mapped the 500 to my controller: "500" ( controller: "error", action: "serverError" ) and handled the exception in the controller: def serverError = { try { // first check,...

What is an Enterprise Java Bean really?

On the Tomcat FAQ it says: "Tomcat is not an EJB server. Tomcat is not a full J2EE server." But if I: use Spring to supply an application context annotate my entities with JPA annotations (and use Hibernate as a JPA provider) configure C3P0 as a connection pooling data source annotate my service methods with @Transactional (and use A...

How do I get spring-ws + tomcat to log errors

I'm creating a Spring-WS based webservice and running it in tomcat. I made some change and now get a fault with OperationUnsupportedException. I'd like to see the entire stack trace that Spring-WS is getting, but cannot figure out how to have it logged. Does anybody know how to have this stack trace logged somewhere? ...

Add existing database schema to JasperServer Installation

I just installed Windows version of JasperServe and in the script it automatically created two databases (sugarcrm and foodmart) everything works fine. Now I would like to add my own database schema with existing tables and data. I tried to find example how to add existing database but had no luck so far. Is there any examples or tutoria...

Help with Struts Action mapping

I am having a problem with my struts application it is a class enrollment app and when the user clicks on a "show enrolled courses" button it is supposed to show the courses they are enrolled in but it shows nothing at the moment. Struts/Apache does not return any errors, it Just shows a blank page and I cannot figure out why. My action...

HTTP method GET is not supported by this URL

Hi, I'm calling servlets which has implemented CometProcessor interface, and whenever I try to call the servlets with get request, I'm getting the above error. May I know the reason? public class ChatServlets extends HttpServlet implements CometProcessor { public void event(CometEvent event) throws IOException, ServletExce...