tomcat

Saxon XMLBeans Tomcat

We recently updated our Tomcat web service. The only things we really updated were that we updated XMLBeans to version 2.4 and Saxon to version 9. Running it Netbeans and eclipse, our project now works fine, but when trying to deploy to tomcat we get the following. We tried updating JAXEN to version 1.1.1 but no joy. Any ideas? Th...

Load balance web application

There are load balanced tomcat web servers. Every request could be served by different tomcat server. How could we take care of this while writing code for the j2ee (struts) based web application? ...

From Netbeans Dev to Tomcat Production: DB Connection Not Found

I developed a Java web application in Netbeans 6.5 using a MySQL database and Hibernate. Both the development database server and development application server (Tomcat 6) reside on my development machine. Everything works; the application pulls data from the database correctly. Now, I'm ready to move it to the production server. Aga...

Create Installer

Hi All, How to create a installer using Java that combine tomcat, mysql and war file and come out a final exe? ...

Tomcat problem redeploying:

In the catalina log file we see this error message in some cases when the web application are tried to be redeployed: INFO: Deploying web application archive ROOT.war 13-May-2009 09:50:09 org.apache.catalina.core.StandardContext processTlds SEVERE: Error reading tld listeners java.lang.IllegalArgumentException: URI has an authority comp...

Under Tomcat java.lang.NoClassDefFoundError when accessing a servlet?

I'm writing a web applicaion in Eclipse, and I'm using the XStream Serialization Library to generate My JSON. I've encapsulated the Code that builds up the JSON in a class which is called by my servelet. Then encapsulated class has a main method for testing and when I run it everything seems to work fine. However when I use the call th...

Deploying modules in a web application

I have a web application - deployed on Tomcat. It has two modules Module A and Module B Both have java code as well as UI component (struts\JSP etc.) Functionally, Module A is independent an doesn't depend upon Module B For ModuleA: We create a war for Module A and deploy it as ModuleA.war Now Module B depends upon Module A We so "me...

Does JVM that services your web-app re-start on redeploy to an Application Server?

Is this something you can configure and/or dependent on your Application Server? I am wondering if a singleton object will be reconstructed when you re-deploy the application. I would rather ask here and try and get a concise answer than googling randomly or resorting to reading J2EE Servlet Specs - I hope people can understand :) ...

AspectJ load-time weaving in production systems

Does anyone have an experience with pure AspectJ load time weaving in production systems (mostly interesting Tomcat related activities)? I'm slightly worrying regarding memory footprint and cpu overhead. ...

Changing cookie JSESSIONID name

I have a requirement of having to run multiple tomcat server in single physical box. While accessing these from a browser, when user switches between the applications, it results in logging out the user previously access application. This is because of JSESSIONID cookie conflict. One possible solution is to run each applications in diff...

Killing a windows session from a Java program

I am running a tomcat server and am attempting to update code on that server. To do this I need to shut down the server reliably in a Windows environment. To the best of my knowledge, the tomcat shutdown.bat script can have issues with runaway threads, and I need this to work even if I accidentally create a thread that will keep the .b...

Best strategy for user registration and login for a web application

I am writing a web app (servlet / JSP on tomcat) and wanted to know best practices / experiences for user management (logins and registration) I am more insterested in database design security issues (how to store the password on the server and how to send the password from the cline tover https) common mistakes etc Thanks --Jatin ...

Porting a tomcat web project from eclipse ganymede to intellij 8.1

I have a standard (I think) web project developed with the eclipse IDE. I wish to port it to Intellij idea 8.1 - I think that, among other things, it has better taglib support. My project structure is as follows: Project Folder ./src [java source files etc.] ./conf [configuration files - log4j, spring beans...] ./buid [ant files] ./We...

mod_jk in apache

Hi, I use Apache 2.2 and Tomcat 6.0.18 on Windows XP. I want to to redirect the URL that comes to my Apache instance into Tomcat with the module mod_jk. I want to be able to redirect from http://localhost/myvanityURL to Tomcat where the app is located at http://localhost:8080/MyApp/Start. I have installed the module. If I enter the URL...

Is there an easy way to monitor sessions in a tomcat web application?

I'm working on a web application using Spring MVC 2.5. I'm using Eclipse as my IDE and deploying to Tomcat 6. I'm concerned that I don't understand how sessions work in Spring, and was wondering how I might go about monitoring session status. I know that Tomcat has various monitoring capabilities, and I can even turn them on in Eclips...

Security Reinforcement: How to collect visitors' IP addresses in Grails Framework?

How to make a logging list of Users' IP addresses, should this be done via tomcat or grails or a combination of both ...

Connection attempt failed in postgreSQL server

hi all, In our project we are using postgresSql(8.3) as the database server, but we are rarely facing problem (once a while) . in the log file i am seeing error Like ****Connection attempt failed**** it means for me that , application is attempting to get connection object from the DB server but it was unsuccessfull. Strange t...

Tomcat 6: Importing utility class from WEB-INF/classes

Hi All, (I've removed client name because of NDA) Java/JSP newbie here. I have a JSP site and I have a 'Functions' class in WEB-INF/src/client/project/Functions.java In the Functions.java, the package is com.client.util This is compiled and ends up as WEB-INF/classes/client/project/Functions.class WEB-INF/classes/client/project/Func...

Application Server

What are some factors that would drive me away from using Tomcat in production for an enterprise application. My company is not big, but a few departments, and it will be a dynamic site (db, web services). I am not planning to use EJBs, but Spring and POJOs. Beside EJBs, is there a technical reason about an application that would necessa...

Is there any mod_proxy equivalent for tomcat?

I'm trying to run modified JWChat (a simple javascript based jabber client) on tomcat 5.5. This application is based on ajax, and uses http binding in order to communicate with the jabber server (I'm using openfire). When running it on apache server, it requires redirecting of the requests to the http-bind using mod_proxy and it works. ...