tomcat

Encoding problem in JSP / Tomcat5

I have a web application running on Tomcat5. In a jsp page say page1.jsp, there are some check boxes, where title and value have some french characters (Français). When I select some of the check boxes and submit the page, it goes to page2.jsp where I am showing selected titles. Problem is, on this page the special characters are getting...

connecting jdeveloper 11 to tomcat server

Hello all, I would like to deploy my application with Jdeveloper 11 to tomcat server. For that I created a new connection to my tomcat server, but it says after opening the deplyments in the tree of Application Server Navigator: Connection Error What is this connection error? Where can I check the reason of it? What can be teh reason of...

Tomcat Clustering and Load Balancing ?

I have 3 tomcat servers where users get into all time. They are 3 because the processing of each request is heavy (lot of sql). Lusers enters to server 1 or 2 or 3. Now I want to make them "one". I know I need do clustering but, will clustering spread the requests thru the 3 servers or here is where I need implement load balancing with a...

Deploying Jersey-enabled servlet to Tomcat: Exceptions.

Hey guys, Here is what I'm trying to do: we are switching over to using JAXB and Jersey for all our REST services and XML/JSON serialization needs. So far, I have been able to get a simple test working where some beans are annotated, some test objects created and these are perfectly serialized to either XML or JSON and return to the c...

Injecting an object into a HttpSessionAttributeListener via Guice ?

Configuration: Guice 1.0, Apache Tomcat 6.0 I am currently manually injecting objects configured in a Guice Module, into my servlet, using this method: public void init( ServletConfig config ) throws ServletException { super.init( config ); ServletContext sc = config.getServletContext(); Injector injector = (Injector) sc ...

Tomcat: Set cookie value multiple times for 1 request?

I'm running into a problem with Apache Tomcat 6.0.20 where I can't change a cookie's value once it has been added to the response. Basically, I'm trying to replicate Session functionality using cookies. I have a custom "Session" object, which is backed by a cookie. When I create my Session, I pass it an HttpServletResponse, and it cre...

Why ctrl-c sometimes doesn't shutdown Tomcat

I'm running Apache Tomcat on Windows, and I've noticed that sometimes CTRL-C starts an orderly shutdown, and sometimes it won't have any effect. Why is that? (Coincidently, CTRL-Break will print general statistics) ...

Problem with session variables using ColdFusion, Tomcat and Firefox

Hi there. Any help is appreciated. When using cfimage to generate a captcha, we keep his value in a session variable. After the user submits the form, we compare the value of the captcha that the user entered with the session variable value. Like this: Step one - User arrives the form with captcha. Step two - Is created the variabl...

Starting Tomcat with remote debugging (jdwp) when installed as a windows service

I have a Tomcat installed as a Windows service. I'd like to configure it to support remote debugging via jdwp. When starting it from the command line (catalina.bat), I can add this string to allow debugging: -agentlib:jdwp=transport=dt_socket,suspend=n,server=y,address=10000 Where can I added jdwp support when running it as a windows...

IntelliJ: configure several Tomcat configurations with different server.xml

In IntelliJ, I would like to have different configurations to start several Tomcat instances, but with different server.xml config files. Is there a way to do this? ...

Has anyone installed a Tomcat client on OSX

I work in a design shop the does most of our back end work on apache servers running php. We have a job where we need to set up a very basic project using JSP to generate some html templates for a client. I work primarily on OSX, what's the best way to get a local apache tomcat server running on my local machine? I'm looking for a s...

Tomcat ThreadWithAttributes causing Memory Leak

I have out of memory issues with following environment: Tomcat 5.1.23 Using XFire WebServices Framework JDK 1.5 Used YourKit to profile it and found out multiple instances of class org.apache.tomcat.util.threads.ThreadWithAttributes has huge ArrayList object (Stack Local) with java.lang.Object array containing duplicate string. Follow...

war file generated by Grails ignores dataSource URL

Grails version :1.1 Tomcat version: 5.5 The problem: The application doesn't use the URL data sources. It seems like - it is using some other data source- but it doesn't seem to be in memory DB- since I can see the data persisted between sessions. I have even tried giving a non -existant database name -and the application works fine...

What causes the "FAIL - Deploy Upload Failed, Exception: null" error message in tomcat?

What causes the "FAIL - Deploy Upload Failed, Exception: null" error message in tomcat? I'm trying to deploy a war to tomcat from the manager but when I try to upload I get the error FAIL - Deploy Upload Failed, Exception: null with the following error message in the log SEVERE: HTMLManager: FAIL - Deploy Upload Failed, Exception: n...

How do I get JNDIRealm in Tomcat to use Kerberos auth?

I am trying to run a tomcat JNDIRealm using using Kerberos for authentication (authentication="GSSAPI"). However, I'm getting this: SEVERE: Catalina.start: LifecycleException: Exception opening directory server connection: javax.naming.AuthenticationException: GSSAPI [Root exception is javax.security.sasl.SaslException: GSS init...

Tomcat - Multiple Instances using same outside directory

Hi all, We're looking into running multiple instances of Tomcat from the same copy of the code base. Our current setup is using a Root.xml context setting to load our application from an outside directory rather than from webapps or a war file, for example /build. What I'd like to do is start both instances using the same directory but ...

How to prevent tomcat session hijacking?

In my web.xml I've defined a user-data-constraint for some resources: <security-constraint> <web-resource-collection> <web-resource-name>Personal Area</web-resource-name> <url-pattern>/personal/*</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>User Area</web-resource-name> <url-pattern>/u...

Has anyone setup tomcat to run virtual hosts using mod_jk

I work in OSX primarily with mostly PHP. Normally I work locally using MAMP and virtual hosts setup in my httpd.conf so that I can point a browser to http://some-project and have as many projects as I need setup. We have a project coming up where we need to serve JSP pages and I would like to set up my local apache server to serve only...

how to access thread/busy thread counts within a jee filter under tomcat

Hi, I'd like to access my servlet container's thread/busy thread counts within a filter under tomcat. Is this a part of the jee standard? Or does it have to be tomcat specific? Is there a more general server load measurement? ...

Can NullPointerExceptions cause Tomcat performance issues after they've stopped happening?

Hi, all. One of my applications runs on a Windows Service instance of Tomcat 5.5, running Java 1.6. We've got an issue in the code where the application creates a NullPointerException if a SOAP request times out. We had an issue, this morning, where the component on the other side of the SOAP request was unavailable. The result was a...