tomcat6

how to roll Tomcat 5.5 / 6 main logs

hi im using tomcat as servlet container for my web app , now im controlling my web app logs with log4j and its has its own log4j jar and its own log4j configuration file but now i need to control the main tomcat logs (Catalina.out for example) . i need to roll then by size and control its debug level how can i do that without adding l...

Confused with SSL configuration and Tomcat

Our application runs in two frameworks. One uses https one does not. I am trying to configure the tomcat connectors to work but when I get it working in one framework it does not work in the other. I have been told we do not need to 'handle' SSL totally as this is handled by our load balancers. Not sure what these means. For example:...

Error installing tomcat on Mac OS 10.6.

Hi, I have been trying to install tomcat-6.0.26 on my Mac OS 10.6. I followed these instructions: 1)Get the latest binary from here 2) Extract it to /usr/local 3) sudo vi /etc/profile and add the following settings export JAVA_HOME=/Library/Java/Home export CATALINA_HOME=/usr/local/tomcat 4)sudo chown -R nobody:nobody /usr/local/t...

How can JRE be enough for Tomcat to handle JSP files? Why not JDK?

Can someone clearly describe how JRE handles the JSP files which contain pure JAVA codes? I know that byte codes of JSP files are not placed in the WAR file. It consists of compiled CLASS files and plain JSP files. It says in Tomcat's RUNNING.txt "Apache Tomcat 6.0 requires the Java 2 Standard Edition Runtime Environment (JRE) version 5...

Tomcat 6 performance tuning

Hi All, I am planning on using Apache Tomcat 6.0 as web server in my web application. I have written my apps that it calls some ajax request/http request alternately. Can you share with me some tutorials on what items can I do to enhance the performance of my Tomcat when I release my web application to the users? I am hoping Tomcat c...

mod_proxy_ajp and Location headers

Recently I had to install a Java application for a client using Tomcat6. The application needed to run from the root of their domain so I also installed apache2 and mod_proxy_ajp to set up a proxy to make this work. After a bit of massaging and googling to deal with Location Headers including the original path of the servlets rather tha...

Using both SSL and Non-SSL in Tomcat 6

I have a Tomcat 6 server and I want just about everything to be behind SSL however I want one servlet to be accessible through non-ssl. Is it possible to configure Tomcat this way? It is currently set up to forward all requests to the secure port. ...

Tomcat Threads Ready

I deployed a web application on a server. I created a script in order to perform load on the application(stress test). The stress generated different requests using 10 threads. I arrived into the following status as shown in the manager of tomcat: Free memory: 34.57 MB Total memory: 1166.43 MB Max memory: 1166.43 MB Max threads: 200 Cu...

Monitor JVM on tomcat service

Hi I noticed that different tools for monitoring JVM require that the process will be java.exe in the taskbar. Its process id is supplied to them and then statistics regarding garbage collection and etc are returned. When running tomcat as a service, there is no a process named jave.exe but it is tomcat6.exe. How can I get statistics reg...

Handling Spanish characters in Java/JSP

I have a small webapp which handles a lot of Spanish text. At one point in the code, a JSP page responds with a Json String containing some of this text. If I print the String to the Console, it looks like jibberish. But if I examine the header/content of the response in Chrome Developer Tools, it looks correct. It is transferred in the...

Tomcat 6 not working on windows 7.

Tomcat 6 refuses to work in windows 7, it seems the problem is that it needs a 32bit jre, but i don't want to have a 64 and 32 bit installed. I want to get it to work with the 64bit jre and jdk. If anyone has encountered this problem and found a solution please let me know, thank you. ...

Displaying Images in Tomcat Portlet

Hello all, I currently have a portlet with a file explorer and a blank pane. When the user selects to open an image file, I would like to display the image in the pane. However, the image exists in /home/myUser/images/ and the portlet exists in /home/server/tomcat/tomcat-6.0.18/webapps/mycompany. It is placed there by hotdelploying a p...

Access MS SQL Server from a web application present in linux machine?

I can access MS Sql from a web application resides in Windows. But it is not possible with a web application reside in Linux. com.microsoft.sqlserver.jdbc.SQLServerDriver is used in this application. Following are the configurations. Tomcat 6 MS SQL 2005 jdk6 Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver ...

Tomcat 6 in Windows 7

I am having problem with Tomcat 6.0 in Windows 7. I installed it to work with EasyEclipse Server Java and changed it's configuration to Manual. But now when I try to Configure Tomcat, I get " Access is denied Unable to open the service 'Tomcat6' ". Also now when I start and stop Tomcat within EasyEclipse I get the following error: C:\Pr...

Why doesn't netbeans know tomcat started just fine?

When attempting to test a project in netbeans 6.9 using tomcat 6 on ubuntu, I get the following feedback from netbeans: Starting Tomcat process... Waiting for Tomcat... Starting of Tomcat failed. /home/[username]/NetBeansProjects/[projectname]/nbproject/build-impl.xml:683: Deployment error: Starting of Tomcat failed. See th...

Embedding Tomcat

Possible Duplicate: Howto embed Tomcat 6? How to Embed Tomcat 6 ? ...

quartz tomcat 6, no stop thread

Hi all, for my webapp I use Quartz. When I deploy the app all is ok. When I undeploy the app more Quartz's process don't be destroied. Log is: INFO: Stopping service Catalina SEVERE: The web application [/example] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This i...

Apache Commons File Upload - Stream ended unexpectedly

Well, I have to say that so far, this one has me stumped. Our web application, which is running in Tomcat 6.0.18 is failing during file upload, but only when the client machine is a windows machine, only for some machines, and for all browsers, not just IE. There is a stack trace in the logs, which seems to indicate that the client eith...

How to profile application running in Tomcat 6 on Solaris 10 Sparc Server ?

My J2EE based application running in Tomcat 6 on Solaris 10 sparc server is very very slow. It works fine on Linux servers. I am using flex as web front end to my application. I need to know how can I configure and run it using any java profiler on Sun Solaris server. ...

Problem reading request body in servlet.

I'am writing a HTTP proxy that is part of a test/verification system. The proxy filters all requests coming from the client device and directs them towards various systems under test. The proxy is implemented as a servlet where each request is forwarded to the target system, it handles both GET and POST. Somtimes the response from the t...