tomcat6

JSF 2.0 Deployment in Netbeans - ASCII and UTF8 problem

I have a problem with the deployment of the jsf application. All the jsp files are encoded as ASCII instead of required UTF8. I'm building the war file on Windows using Netbeans, then I copy it to the Tomcat6 webapp directory. However, when I unpacked the .war file I noticed that those .jsp files are all ASCII. How do I change it in Netb...

How to set up ssl in tomcat?

Hi All, I am trying to setup ssl in tomcat. I have googled many websites, some told to add keystore file path in the connector tag in server.xml file. and sone not. I followed many tutorial, but while typing the url, it is keep on loading, and it could not catch the application. Please teach me how to set up https site in tomcat. Th...

How to reduce the number of open file handles on linux while reading static resources from jar file in tomcat 6.0?

Hi, in our application we read static resources (i.e. javascript files) from a jar file located in WEB-INF/lib. It happens that the server quits working with too many open files exception. I found out (using lsof), that the jar file is opened several times. And the number increases when I reload a page by the number of javascript files...

Getting JBoss Seam to work with Eclipse

I have been trying to get to run a simple example project with JBoss Seam in Eclipse 3.5. So far unsuccessfully. What i did: I set up a MySQL server that i can connect to using eclipse's data tools. I installed Tomcat 6.0 and set it up as a server in eclipse I installed the "JBossAS Tools" v2.2.0 plugin I created a new Seam Project us...

mod_jk connection problems with axis2 requests

Our Apache2 web server is connected to Tomcat6 with mod_jk. The Apache2 web server is running on CentOS Linux and has a VPN connection to the tomcat. Our web application is running fine, but when we try to connect with axis2 it doesn't work. We tried running the Apache web server on a a different (Windows) machine and it worked. Also co...

Getting warning: "There should only be one Seam phase listener per application" while starting native tomcat with exploded wars from IntelliJ

I have two web application projects which are related. One is the website itself and the other one serves the static resources (css, JS) for the website. I'm trying to run a native tomcat6 instance from IntelliJ and deploy the two exploded wars. When I run my configuration I get the following warning: WARN [org.jboss.seam.jsf.SeamPhase...

Apache httpd 2.2.x + mod_jk 1.2.30 + tomcat 6 Error : Could not find worker with name 'XXXXX' in uri map post processing.

I am getting the following error while setting up the load balancer with two tomcat instances : Blockquote [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [error] jk_uri_worker_map.c (506): Could not find worker with name 'loadmanager' in uri map post processing. Blockquote Follwoing are configuration settings: httpd.conf ch...

Why is Jboss "better" than Tomcat?

Hi all. I'm currently starting a new app development. The app architect insists we use JBoss5 because its "better". Do anyone has a wider definition of "better" (if its the case)? I have experience using Tomcat5 and 6 in large scale applications with big user loads and it handles pretty well (IMHO). Both would be running over a RedHat...

Tomcat not recovering from excess trafic

When my tomcat (6.0.20) maxThreads limit is reached, i get the expected error: Maximum number of threads (XXX) created for connector with address null and port 80 And then request starts hanging on queue and eventually timing out. so far, so good. The problem is that when the load goes down, the server does not recover and is forev...

Proxy tomcat urls to map a host request to a path

Hi, how, if possible, can I redirect a request for a hostname to a specific subdirectory of one of the deployed apps? E.g., I wish to forward http://host.com to http://host.com/app/path It is however possible to redirect to a specific application on tomcat, e.g., <Host name="host.com" appBase="webapps"> <Context p...

jruby regex different on windows from os x?

i've got a jruby regex that i'm printing in rails: @@private = /somethingthatshouldnevermatch/ def secure? puts "security test(#{action_name}/#{@@private}: #{@@private.match(action_name).nil?.to_s}" action_name =~ @@private end on os x, using WEBRick and jruby, this prints security test(index/(?-mix:somethingthatshouldnevermatch...

user authentication in Tomcat

Hi, I need to implement a login feature for the web application that I am building on eclipse using JEE and Tomcat, JDBCRealm has been suggested for this purpose, but I don't understand why I can't simply get the login and password and check against the database for authentication? ...

security issue running jruby on tomcat6

i deployed a jruby/rails app to tomcat6 through a warbler-built war. system is ubuntu 8, running tomcat6. when i try to start the app, i get the following stack trace Sep 13, 2010 7:57:24 PM org.apache.catalina.core.ApplicationContext log SEVERE: Application Error java.security.AccessControlException: access denied (java.ut...

How do you map a sub domain to a webapp on Tomcat 6 (including the root webapp)?

Hello, subject says it all. What I want is to map each sub domain to a webapp like: http://root.domain.com:8080 -> http://domain.com:8080/ http://manager.domain.com:8080 -> http://domain.com:8080/manager http://abc.domain.com:8080 -> http://domain.com:8080/abc http://def.domain.com:8080 -> http://domain.com:8080/def on a localhost ma...

Does it make sense to have multiple tomcat instances on the same server?

I have seen some clusters with more than one tomcat running per machine. The main argument is that the garbage collector is slower on large heaps, so it would better to have 4 tomcats with 1G heap than 1 tomcat with a 4G heap. Have anyone ever profiled that? what do you think? ...

Tomcat 6.x web.xml default and custom servlet routing

I have two servlets defined in the web.xml file, namely the default2 and myservlet. The default2 servlet is used to map the static files like the javascript and css. The myservlet is used for getting dynamic content. <servlet> <servlet-name>default2</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servl...

How do I clean Windows 7 from duplicate (Tomcat 6) services which seem to strangely shadow each other irregularly?

I'm experiencing something rather strange: I had to reinstall Tomcat 6 on my local Windows 7 machine. In sys control, there was no entry to uninstall, so I seem to have installed it by ZIP only. I just deleted all files. I then downloaded the installer for Tomcat 6 and installed into the same directory as before, WITH service. The inst...

Web application specific form authenticator under Tomcat 6

Hi to everyone. With your help I have successfully resolved a question that I have asked here. I have developed a custom Tomcat authenticator for the web application, and currently the authenticator and its configuration file are located in the %CATALINA_HOME%\lib\ directory. Unfortunately, the authenticator configuration file is almost...

Tomcat 6.0.26 caching Java classes

I am facing a wierd issue suddenly and I am out of wits why this would happen. My basic setup is to use maven (eclipse plugin 0.20), Tomcat 6.0.26. Until few days back i was able to start tomcat in debug mode, make changes in code while debugging and test them. Then later run prepare-package for maven, stop and start tomcat to reflect ...

JSF application giving 404 for a sub-context

I am working on a web application which uses JSF. I have a folder called 'admin' under 'web' and I have couple of jsp pages under folder 'admin'. I can access jsp pages under 'web' but when I try to access the pages under 'admin' I get '404-Requested resource cannot be found' The 'context.xml' for my application is something like this: ...