Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-19 Thread Dave Kennedy
Hi, Running Tomcat "standalone" without Eclipse Log4j logging is now configured and generating output to /logs/tomcat.log except that struts logging is not generated ie. Oct 19, 2006 11:24:26 AM org.apache.catalina.core.ApplicationContext log INFO: action: Processing a POST for /cancel Does stru

Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-19 Thread Michael Courcy
Tomcat use commons.logging, so you can choose either java.util.logging or Log4J , http://tomcat.apache.org/tomcat-5.5-doc/logging.html But hibernate use Log4J http://www.hibernate.org/97.html I permanantly use Tomcat/hibenate/Spring without any logging issue ? H

Re: IPTABLES

2006-10-19 Thread Gaël Lams
Im running a tomcat in port 80 without httpd I want redirect packages from 80 to 8080 because tomcat is running as tomcat user (cant run as other non root under port 1025) and I tried the IPTABLES redirection aproach but doesnt work I performed the same setup to have tomcat running on 8080 but u

Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-19 Thread Boris Unckel
Hello, > The issue seems to be with commons-logging, Tomcat and Hibernate > > There are lot of articles on the Web on this but I still can't resolve > this > Anyone have Hibernate 3.2 and Tomcat 5.5 logging with commons-logging? > > > >Hi, > >ENV1: Struts 1.2.9, Tomcat 5.5, Eclipse 3.2.0 > >ENV2:

Re: Problem Deploying an Application

2006-10-19 Thread Li
Hi, Try to re-install tomcat ... wish it works Li On 10/20/06, Marco Aurélio S. Silva <[EMAIL PROTECTED]> wrote: Hi, I discover some thing new about the problem... This application is using a jar file that have the ServletContextListener, and it's used by the web application, til monday thi

commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-19 Thread Dave Kennedy
The issue seems to be with commons-logging, Tomcat and Hibernate There are lot of articles on the Web on this but I still can't resolve this Anyone have Hibernate 3.2 and Tomcat 5.5 logging with commons-logging? From: "Dave Kennedy" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: users@t

RE: problems with unpacking ROOT.war

2006-10-19 Thread Caldarale, Charles R
> From: Rizalino DeVilleres [mailto:[EMAIL PROTECTED] > Subject: RE: problems with unpacking ROOT.war > > Is there another work around to get them both working? I believe, this > is the same setup we've had on the previous versions of Tomcat, we > simply want to place all the war/JSPs files in th

Re: Stopping Tomcat

2006-10-19 Thread Parsons Technical Services
One approach that would work with any app is to use a set of lock files. Set a lock file say TomcatStart at the beginning of the start script. Delete it and set a TomcatRun file upon completion of the start script. Check for the presence of the files in the Java application. TomcatStart exists: T

Re: IPTABLES

2006-10-19 Thread Parsons Technical Services
So, if I read correctly you have no problems running you apps as root? If this is true, then I say you have a very weak security posture. Might I suggest you do some additional research on the subject. And that those who run things in a chroot jail must be real paranoid freaks. And now this p

Re: Problem Deploying an Application

2006-10-19 Thread Marco Aurélio S. Silva
Hi Li, I checked and the javax/servlet/http/HttpServletRequest is in the jar, I had try to change the jar and nothing happens... I write a simple test page and everything run correctly... I use the same war file in other server, and it deploys and run, only on this server I'm having problem

Re: IPTABLES

2006-10-19 Thread Paul Singleton
Christopher Schultz wrote: Apache httpd is configured out of the box to start up as root, bind to port 80 (or really any port), and then drop its privileges to the httpd user. Without some really nasty code, Tomcat is unable to do the same thing, so we're forced to do silly things like internal

Re: Problem Deploying an Application

2006-10-19 Thread Marco Aurélio S. Silva
Hi, I discover some thing new about the problem... This application is using a jar file that have the ServletContextListener, and it's used by the web application, til monday this was working ok, and still working on my PC and in other servers, but one of them is given the problem When I us

How to log INFO in Tomcat

2006-10-19 Thread Dave Kennedy
Hi, ENV1: Struts 1.2.9, Tomcat 5.5, Eclipse 3.2.0 ENV2: Struts 1.2.9, Tomcat 5.5, Eclipse 3.2.0, Hibernate 3.1 The info below is logged to Tomcat in ENV1 but not ENV2. How is Tomcat configured to log info? log/localhost.2006-10-19.log ... Oct 19, 2006 1:20:31 PM org.apache.catalina.core.Applicat

Re: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread Michael Courcy
Yes it looks much more powerful than my solution. Especially if you want to guarantee a minimum JVM heap size for each app. Thanks a lot. JVM It looks like what to have more than one webapp as the "root webapp". My suggestion would be to run each webapp in a different instance of Tomcat. It's

Re: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread Michael Courcy
Yes it's what I mean, in your JkMount declaration change jkMount /struts-dev-1/*.do ajp13 jkMount /struts-dev-1/*.jsp ajp13 By jkMount /*.do ajp13 jkMount /*.jsp ajp13 And your server.xml fragment should look this way It should works. DE VINZELLES, Guillaume (ext.) a écrit

Re: running tomcat 5.5 as a service on 64bit windows

2006-10-19 Thread joon yoo
so awesome, thank you very much. joon On 10/15/06, Mladen Turk <[EMAIL PROTECTED]> wrote: joon yoo wrote: > Hello, > > Is there a way to run tomcat 5.5 as a service on Win 2003 64bit? Or is > there a 3rd party app monitor that can start tomcat if it detects that it's > down. > http://svn.apa

RE: URL mapping without multiple initialization

2006-10-19 Thread Caldarale, Charles R
> From: Iacopo Savoia [mailto:[EMAIL PROTECTED] > Subject: URL mapping without multiple initialization > > I have a standalone Tomcat 5.5 and > I am not able to figure out how to map multiple url > to the same webapp without having tomcat initialize > the webapp twice. Two possibilities come imm

URL mapping without multiple initialization

2006-10-19 Thread Iacopo Savoia
I have a standalone Tomcat 5.5 and I am not able to figure out how to map multiple url to the same webapp without having tomcat initialize the webapp twice. I have an webapp deployed in webapps/testapp This is accessible through http://localhost/testapp Now I want to access the same webapp usin

RE: moving the context xml from $CATALINA_BASE/conf/

2006-10-19 Thread Caldarale, Charles R
> From: Molina, Teresa [mailto:[EMAIL PROTECTED] > Subject: RE: moving the context xml from $CATALINA_BASE/conf/ > > we had configured a default context to define the jdbc connections > commonly used by our multiple webapps (we are running more than a > dozen webapps under one Tomcat JVM, basic

Administrate Tomcats in a cluster

2006-10-19 Thread ying lcs
Hi, I am running multiple Tomcats in a cluster. Can you please tell me if I can have a single admin console which administrate the whole cluster? e.g. load a war file across the whole cluster? or change the configuration of Tomcat across the whole cluster? Thank you. -

Stopping Tomcat

2006-10-19 Thread Miguel Correia Ricardo
Hello, I'm having problems in stopping Tomcat. More precisely stopping Tomcat, while is starting. I want to be able to check the status of a running instance of Tomcat, and be able to wait, before sending the shutdown command (all this in a Java application), otherwise Tomcat throws an exception,

RE: moving the context xml from $CATALINA_BASE/conf/

2006-10-19 Thread Molina, Teresa
Chuck, I can see where the confusion might arise; I'll clarify. In my original email, I did write "...know how to specify a location for the default context.xml file outside of $CATALINA_BASE/conf?" You should read this as "how to specify a location for the file itself outside of (not anywhere "b

RE: problems with unpacking ROOT.war

2006-10-19 Thread Rizalino DeVilleres
Charles, I followed the recommendations and certainly fixed the issue, however doing so, I've created another problem: Here is the current setup that worked and resolved the issue but it created issues in serving JSP pages. $CATALINA_BASE/conf/Engine/Host/ROOT.xml: $CATALINA_BASE/conf/server

Struggling with Class Loader

2006-10-19 Thread Lei Lin
Greetings, Our web application needs to hot deploy some classes and jar files out of WEB-INF/classes and WEB-INF/lib directory without shutting down the application and tomcat. Is there any way that we can let WebappX Class Loader know there are new classes have been added and load those class

Re: a discrepancy in webapp behavior in two environments

2006-10-19 Thread Jon Wingfield
Mark, Take a look at the LiveHttpHeaders plug-in for Firefox. It may help you debug this on the client side. Temporarily enabling the RequestDumperValve on the server side will enable you to see if cookies are reaching the server. HTH, Jon Aronszajn, Mark wrote: Thanks for the information.

RE: Configure resourses for host-context

2006-10-19 Thread Caldarale, Charles R
> From: Roland Carlsson [mailto:[EMAIL PROTECTED] > Subject: Configure resourses for host-context > > So my question: Is it possible to put Resources or preferbly > ResourseLinks inside the Host-tag of my server.xml. If you were to move to 5.5, you could do this. Each host can have its own de

Re: placing context.xml in META-INF works?

2006-10-19 Thread Michael Hencin
Hello, you are correct on both parts. Thanks for the tip, I will make sure to fix that. Also the method I tried worked just fine. My next test is to see if I can create diffrent context with the same war, then edit the resulting context.xml files to have diffrent db files. this way I can host s

Re: Problem Deploying an Application

2006-10-19 Thread Li
If so, I dont see any problem for your tomcat since some webapp can be deployed without any problem. Can you check: 1. there is javax/servlet/http/HttpServletRequest in your servlet jar (under common), do not place it in your WEB-INF/lib 2. you can write a very simple test page as home page for t

Re: Problem Using Tomcat Connector on Windows 2000 Advanced Server

2006-10-19 Thread Darryl Ong
Thanks for the advice Christopher! Will give it a shot. *crosses fingers* Regards, Darryl Christopher Schultz wrote: Darryl, After installation, I wanted to test if I could then view JSP pages, so I just created a temporary folder in the /webapps/ folder called /testing/ and dumped in he

Re: Problem Deploying an Application

2006-10-19 Thread Marco Aurélio S. Silva
The both are ok! I have some applications running well and some give me this problem 2006/10/19, Li <[EMAIL PROTECTED]>: It looks like servlet jar can not be found, if your class path setting is ok, make sure the permission is ok On 10/19/06, Marco Aurélio S. Silva <[EMAIL PROTECTED]> w

Re: Problem Deploying an Application

2006-10-19 Thread Li
It looks like servlet jar can not be found, if your class path setting is ok, make sure the permission is ok On 10/19/06, Marco Aurélio S. Silva <[EMAIL PROTECTED]> wrote: Hi folks, I'm trying to deploy an application on my Tomcat 5.5.9 under a Windows 2003 Server with JVM 1.5.0_04, and get t

RE: moving the context xml from $CATALINA_BASE/conf/

2006-10-19 Thread Caldarale, Charles R
> From: Molina, Teresa [mailto:[EMAIL PROTECTED] > Sent: 2006 October 19, Thursday 09:06 > To: Tomcat Users List > Subject: RE: moving the context xml from $CATALINA_BASE/conf/ > > it's the file itself I wish to move from the $CATALINA_BASE > directory structure to another location. I think you

Problem Deploying an Application

2006-10-19 Thread Marco Aurélio S. Silva
Hi folks, I'm trying to deploy an application on my Tomcat 5.5.9 under a Windows 2003 Server with JVM 1.5.0_04, and get the following stack error: 19/Out/2006 11:02:13 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet HTMLManager threw exception java.lang

RE: IPTABLES

2006-10-19 Thread Asensio, Rodrigo
I will try this aproach. Im trying with iptables because find out jsvc a little bit late and run the make an all this stuff... I just modify the iptables and that's all ( if it worked!) I will try this and let you know what happened Thanks for the help guys. -Original Message- From: Pars

RE: moving the context xml from $CATALINA_BASE/conf/

2006-10-19 Thread Molina, Teresa
Thanks, Peter, but that's not really the question. I have the defaults configured and working just fine; it's the file itself I wish to move from the $CATALINA_BASE directory structure to another location. -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Thursday, O

Re: login page behavior and the 2.4 specification

2006-10-19 Thread Christopher Schultz
Jon (and Mike), > But you need to cater for the people who hit the login page and then go > to lunch. Happens more frequently than you might think ;) I recently switched to securityfilter. It's pretty much a drop-in replacement for Tomcat's authenticator, and does not suffer from the problem that

RE: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread DE VINZELLES, Guillaume \(ext.\)
Michael and Chris, thanks a lot for your valuable help. I'm going to try this ASAP. The "multi instance" Tomcat seems really interesting. Thanks again! Regards Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : Chr

RE: Problem Using Tomcat Connector on Windows 2000 Advanced Server

2006-10-19 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Problem Using Tomcat Connector on Windows 2000 > Advanced Server > > > After installation, I wanted to test if I > > could then view JSP pages, so I just created a temporary folder in > > the /webapps/ folder called /testing/ a

Re: mod_jk broken pipe

2006-10-19 Thread Rafael . Almeida
Just my 5 cents: I clicked like a crazy user (clicked 5 or 10 times, not giving the chance to to page to be loaded, just when I stopped clicking) on a link to a jsp in our page and got some broken pipes, and I use mod_proxy_ajp, apache 2.2.3, Jdk 1.5.07 and tomcat 5.5.17. Under heavy load I sup

Re: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread Christopher Schultz
Guillaume, > In fact, I've already put the jkMount directive in the VirtualHost > conf. [snip] > And I'd like to have my webapp accessible through > http://preprod.skyce.net/ instead of > http://preprod.skyce.net/struts-dev-1/. It looks like what to have more than one webapp as the "root web

Re: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread Michael Courcy
Yes it's what I mean, in your JkMount declaration change jkMount /struts-dev-1/*.do ajp13 jkMount /struts-dev-1/*.jsp ajp13 By jkMount /*.do ajp13 jkMount /*.jsp ajp13 And your server.xml fragment should look this way It should works. DE VINZELLES, Guillaume (ext.) a écrit

Re: Tomcat 5.5.20 library problems

2006-10-19 Thread Christopher Schultz
Alessandro, > I'm working with 5.5.20 version, on a SuSE linux (both 10 and 10.1). > I've found library problems in libraries in "common/lib". What do you mean, "problems"? > I've changed these libraries with the ones found on a 5.5.17 version an all > work fine...Is that a bug??? Generally,

Re: Problem Using Tomcat Connector on Windows 2000 Advanced Server

2006-10-19 Thread Christopher Schultz
Darryl, > After installation, I wanted to test if I > could then view JSP pages, so I just created a temporary folder in > the /webapps/ folder called /testing/ and dumped in helloworld.jsp. That's not enough: you have to actually create a webapp in order for Tomcat to deploy it. You need a META-

RE: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-19 Thread Gunnar.Bostrom
Hi Mark, You are absolutly right. I changed my filter and the CGI.pm as you proposed and it now works for POST and GET but NOT with multipart forms. I've looked into the CGI.pm to see if there was a similar change for multpart but I have not found any and my perl knowledge is not good enough.

Re: login page behavior and the 2.4 specification

2006-10-19 Thread David Smith
IMHO, a custom 408 error page is in order for abandon login pages. Or possibly a meta refresh in the login page that pushes the client back to the public page after 10 minutes. --David Jon Wingfield wrote: But you need to cater for the people who hit the login page and then go to lunch. Ha

Re: login page behavior and the 2.4 specification

2006-10-19 Thread Jon Wingfield
But you need to cater for the people who hit the login page and then go to lunch. Happens more frequently than you might think ;) David Smith wrote: Don't send people who logout to a protected page, forcing a login page to appear. Better to offer up a public, non-login page and have people cl

Re: login page behavior and the 2.4 specification

2006-10-19 Thread David Smith
Don't send people who logout to a protected page, forcing a login page to appear. Better to offer up a public, non-login page and have people click a link to initiate a new request for a protected page. --David Michael Swierczek wrote: I'm receiving a 408 error, and I do understand why. I

Re: login page behavior and the 2.4 specification

2006-10-19 Thread Jon Wingfield
Quick and dirty solution is to have your login page make a meta refresh every, say, ten minutes pointing to the index page of your protected content. This simple approach works for us. We also catch "unexpected" errors coming back from the login form submission and re-present the login page.

RE: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread DE VINZELLES, Guillaume \(ext.\)
In fact, I've already put the jkMount directive in the VirtualHost conf. It looks like: DocumentRoot "/var/www/preprod.skyce.net/htdocs" Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all ServerName preprod.skyce.net

login page behavior and the 2.4 specification

2006-10-19 Thread Michael Swierczek
I'm receiving a 408 error, and I do understand why. I just can't figure out an end-user friendly way to avoid it. The application runs on Tomcat 5.0.28 with form-based authentication. It is accessed by some end users from regular PCs, but most connect from kiosk web browsers. When someone init

Re: Tomcat 5.5.20 library problems

2006-10-19 Thread Mark Thomas
Alessandro Ruzzon wrote: > Hi! > > I'm working with 5.5.20 version, on a SuSE linux (both 10 and 10.1). > I've found library problems in libraries in "common/lib". > I've changed these libraries with the ones found on a 5.5.17 version an all > work fine...Is that a bug??? Possibly a side-effect

Re: IIS6.0 with JBoss4.0.3sp1 using mod jk 1.2.19

2006-10-19 Thread Mladen Turk
VikasSharma-ATG, Noida wrote: Yes, I do have Jakarta connector listed under 'Web Services Extensions'. But I just have Jakarta connector as Allowed, others are prohibited OK. Either one will do. Also you didn't answer if you have defined jakarta virtual directory under 'Default Web Site' o

Re: Tomcat, Apache and mod_jk configuration

2006-10-19 Thread Michael Courcy
Hello Here is a fragment of my server.xml verlina.com tique-et-puce.fr www.tique-et-puce.fr shampooing-chien.fr www.shampooing-chien.fr directory="logs" prefix="verlina.com_access_log." suffix=".txt"

How to setup wildcard host

2006-10-19 Thread Andreas Müller
Hello, how can I setup a host in server.xml so it will listen on all hosts "*.sub.domain.tld" ? I can't find any documentation about the name syntax for a host. Thanks, Andreas - To start a new topic, e-mail: users@tomcat.apa

Re: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-19 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > Hi, > > That is odd because I have the following problems: > > 1) When I post an ordinary form, not a multipart, no parameters will be sent > to the Perl script. And light dawns. Sorry - should have spotted this sooner. You call getParameterMap() in your filter which

Configure resourses for host-context

2006-10-19 Thread Roland Carlsson
Hi! In my Tomcat 5.0 installation I have a load of Resourses inside the GlobalNamingResources. These Resources are linked inside DefaultContext with ResourceLinks that I use inside my webapps. This have served me well for a quite long time. Now I face the problem that I basically have to hos

RE: placing context.xml in META-INF works?

2006-10-19 Thread Steffen Heil
Hi > 2) User places our clean database file in the "recommended > location on the server machine. i.e c"\databse\ourfile.gdb" A off-topic side note on this: The c and the backslashes suggest you are using windows. The gdb extension suggest you are using firebird or interbase. My recommendati

Tomcat, Apache and mod_jk configuration

2006-10-19 Thread DE VINZELLES, Guillaume \(ext.\)
Hi there, Here is my problem. I got a working Tomcat 5.5.20 handling 4 webapps in /var/tomcat/webapps. I got a working Apache 2, configured with several virtualhosts. I managed to connect the Apache to the Tomcat using an AJP13 connector, and everything is working fine. Now, I'd like to map eac

Tomcat 5.5.20 library problems

2006-10-19 Thread Alessandro Ruzzon
Hi! I'm working with 5.5.20 version, on a SuSE linux (both 10 and 10.1). I've found library problems in libraries in "common/lib". I've changed these libraries with the ones found on a 5.5.17 version an all work fine...Is that a bug??? This is the stack trace: org.apache.jasper.JasperException

Re: Downloadable file name is not correct on Linux/Unix box

2006-10-19 Thread Michael Courcy
Did you try to add the mime type in your header ? Content-Type: application/octet-stream Mic Umar Zubair a écrit : I am using Tomcat5.5. I have a jsp page with option to download xls and pdf files. When I click the link to download file and try to save it, I can not see the exact file name. It

SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-19 Thread Gunnar.Bostrom
Hi, That is odd because I have the following problems: 1) When I post an ordinary form, not a multipart, no parameters will be sent to the Perl script. 2) When I post a multipart form I get everything OK, but not a parameter that my servlet filter introduced. We have done some changes now to

Re: placing context.xml in META-INF works?

2006-10-19 Thread Michael Courcy
Caldarale, Charles R a écrit : From: Michael Courcy [mailto:[EMAIL PROTECTED] Subject: Re: placing context.xml in META-INF works? How do you manage the problem, if you need to define a Host element whith many Alias ? Hosts are a completely different problem, since they are not subordina

RE: IIS6.0 with JBoss4.0.3sp1 using mod jk 1.2.19

2006-10-19 Thread VikasSharma-ATG, Noida
Mladen wrote: > Did you add 'Jakarta Connector' to the list of > 'Web Services Extensions' in ISS Manager? > You can simply 'Allow' All Unnknown ISAPI Extensions. Yes, I do have Jakarta connector listed under 'Web Services Extensions'. But I just have Jakarta connector as Allowed, others are pr

Re: IIS6.0 with JBoss4.0.3sp1 using mod jk 1.2.19

2006-10-19 Thread Mladen Turk
VikasSharma-ATG, Noida wrote: Mladen wrote: extension_uri=/jakarta/isapi_redirect.dll instead extension_uri=d:\vsharma\jakarta\bin\isapi_redirect.dll I tried this even, but didn't help. Both the setting generating same debug log. Did you add 'Jakarta Connector' to the list of 'Web Service