Re: 5.5.17 cluster doesn't sync sessions on startup

2006-10-20 Thread David Rees
On 9/6/06, Ronald Klop <[EMAIL PROTECTED]> wrote: We are running a 4-node cluster of 5.5.17. Sometimes java or tomcat crashes and we restart it automaticly. With 5.0.x this was ok, but with 5.5.x it doesn't sync session on startup often. Ronald, I am seeing nearly the exact same issue/errors wi

tcnative-1.dll version 1.1.6 getaddrinfo error

2006-10-20 Thread Ron Wheeler
The download of version 1.1.6 of the windows binary of tcnative-1.dll from http://tomcat.heanet.ie/native/ appears to have been built with a set of libraries that only work on Windows XP. In Windows 2000, you get a message that an entry point for getaddrinfo can not be found when Tomcat tries to

Re: Eliminating the need for a trailing slash in accessing sub-directoryresources on a Tomcat HTTP server

2006-10-20 Thread Ramez Ghazzaoui
Thanks Chuck. Originally, at the time I submitted this question, I was definitely not experiencing a 302 or automatic refresh/resubmit. I was just experiencing a "The page cannot be displayed" error in IE6. But with your hint, I figured this must be browser-related. So I downloaded and installe

Re: Tomcat server.xml config for wildcard host

2006-10-20 Thread Bill Barker
"Andreas Müller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm looking for a solution to have only one Host configured in server.xml > with is listening for a hostname pattern like *.sub.domain.tld. > > I'cant take a host just on the IP address because I need 2 or 3

Re: login page behavior and the 2.4 specification

2006-10-20 Thread Michael Swierczek
(response at bottom) Michael Swierczek wrote: 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 conn

Upgrading to 5.5

2006-10-20 Thread Michael Hencin
Hello all I am looking at upgrading to 5.5 from 5.0.28. Is there a document that details any major changes between the versions that would affect our web app? Mike

RE: Upgrade to 5.5

2006-10-20 Thread Michael Hencin
Oh, ok. My ignorance proceeded me there! ;) -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 6:35 PM To: Tomcat Users List Subject: Re: Upgrade to 5.5 When starting a new thread (ie sending a message to the list about a new topic) please do no

problem after mod_jk update

2006-10-20 Thread Torsten R.
hi, i used tomcat 5.0.27 with mod_jk 1.2.13 an apache 2.0.58 and everything worked fine. tomcat's task is to serve several (about 1.000) chatstreams, so the tomcat-connections are open a long time. now, i updated to mod_jk 1.2.19 and the chat-users just see a "white page" while they are logg

Re: Upgrade to 5.5

2006-10-20 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Upgrade to 5.5

2006-10-20 Thread Michael Hencin
Hello all I am looking at upgrading to 5.5 from 5.0.28. Is there a document that details any major changes between the versions that would affect our web app? Mike - To start a new topic, e-mail: users@tomcat.apache.org To unsu

Re: Using tomcat with commons-digester in commons/lib won't work

2006-10-20 Thread Mark Thomas
Allen,Eva wrote: > What gives? It looks like the version of commons-digester.jar that > comes with tomcat 4.1.24 isn't even compatible with it, but that can't > be right? I suppose the bigger question, though, is how can I get > Jakarta digester and tomcat 4 to play nice with each other? Almost

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Mark Thomas
Philipp Südmeyer wrote: > The problem is that service() isn't called at all if I send a put-request. > In fact doPut isn't called. PUTs are handled by the default servlet out of the box. Unless you change the readonly init parameter in conf/web.xml to true then PUT and DELETE are rejected. Depend

Re: What happened to MailSessionFactory?

2006-10-20 Thread Mark Thomas
Andreas Schildbach wrote: > Russ Bonsall wrote: > >> We just moved from Tomcat 5.5.17 to 5.5.20. Our application uses the >> JavaMail Session as a resource configured in the server.xml. When >> sending an email in our application I was getting the following >> exception: >> >> =20 javax.naming.N

RE: Tomcat server.xml config for wildcard host

2006-10-20 Thread Caldarale, Charles R
> From: Andreas Müller [mailto:[EMAIL PROTECTED] > Subject: Tomcat server.xml config for wildcard host > > *.sub.domain1.tld -> Host 1 > *.sub.domain2.tld -> Host 2 > *.sub.domain2.tld -> Host 3 Could you use a valve at the Engine level to forward requests to the desired host? http://tomcat.apac

Using tomcat with commons-digester in commons/lib won't work

2006-10-20 Thread Allen,Eva
I want to use the Jakarta commons digester xmlrules package to parse the xml I get from a web service I access from within a service. This means I have to include four commons jar files within the classpath tomcat uses commons-digester, commons-logging, commons-beanutils and commons-collections.

RE: ***SPAM 6.3*** Enabling CGI's in Tomcat

2006-10-20 Thread Caldarale, Charles R
> From: Rob Truxler [mailto:[EMAIL PROTECTED] > Subject: Re: ***SPAM 6.3*** Enabling CGI's in Tomcat > > There are multiple WEB-INF folders, so if you're using a > theoretical servlet "helloworld," you would place your cgi > script in "/helloworld/WEB-INF/cgi/" and the URL which tomcat > maps to

Re: ***SPAM 6.3*** Enabling CGI's in Tomcat

2006-10-20 Thread Rob Truxler
Hi Kevin, It sounds like Chuck already pointed to the most valuable resources. Keep in mind that cgi is supported by tomcat but may not necessarily be the best option for future development. If you're using legacy code, that's a different story and so sometimes its the only option. I've fo

RE: Eliminating the need for a trailing slash in accessing sub-directoryresources on a Tomcat HTTP server

2006-10-20 Thread Caldarale, Charles R
> From: Ramez Ghazzaoui [mailto:[EMAIL PROTECTED] > Subject: Eliminating the need for a trailing slash in > accessing sub-directoryresources on a Tomcat HTTP server > > My Tomcat 5.5 installation requires that you enter a trailing slash at > the end of your URL if it doesn't end with a filename.

Tomcat server.xml config for wildcard host

2006-10-20 Thread Andreas Müller
Hello, I'm looking for a solution to have only one Host configured in server.xml with is listening for a hostname pattern like *.sub.domain.tld. I'cant take a host just on the IP address because I need 2 or 3 similar hostname pattern on the same tomcat: *.sub.domain1.tld -> Host 1 *.sub.domain2.

RE: Enabling CGI's in Tomcat

2006-10-20 Thread Caldarale, Charles R
> From: Kevin Mullin [mailto:[EMAIL PROTECTED] > Subject: Enabling CGI's in Tomcat We'll presume you have read this first: http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html And also the comments in the CGI portion of conf/web.xml. > well, I have lots of WEB-INF directories, I suspect it w

Enabling CGI's in Tomcat

2006-10-20 Thread Kevin Mullin
I'm using the book "Tomcat: the definitive guide" from O'reilly, but it was written for Tomcat 4.x, and I'm using 5.5.17.  In doing things to enable servlet processing it says (on pg. 65, step 4) to: Either place the CGI scripts under the WEB-INF/cgi directory well, I have lots of WEB-INF d

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
Hi Christopher, First of all: thanks for spending time on my problem! I think you understand the general problem I've got. Yes your right, we did some changes on Tomcat but I just installed a new instance on another computer and tried it out in that environment but it still doesn't work. The hea

Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-20 Thread Dave Kennedy
Hi, The INFO logging messages are still not output even though everything seems to be configured Am I missing something? 1. JCL is configured to use Log4j - property file attached 2. org.apache.struts.action.ActionServlet debug - see attached web.xml From: "Boris Unckel" <[EMAIL PROTECTED]>

Apache Tomcat Connector

2006-10-20 Thread Matthew Dickinson
Hi, I'm running into an issue of a new install of Tomcat and the Connector to integrate with an existing apache site. RHEL4 httpd-2.0.55-2 tomcat5-5.5.17-6jpp_2rh Mod_jk-1.2.19 built from source The error that I'm seeing is I get a 400 status code for any page I'm trying to serve - looking at th

Eliminating the need for a trailing slash in accessing sub-directory resources on a Tomcat HTTP server

2006-10-20 Thread Ramez Ghazzaoui
Hi, My Tomcat 5.5 installation requires that you enter a trailing slash at the end of your URL if it doesn't end with a filename. For example, to reach a directory listing, or other non-file resource, you must put a trailing slash after that directory name. Is there a way to configure tomcat so

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
Philipp, > At the moment I just try to get the service-method called which is > the initiater for a Servlet. As far as I know, service() usually > calls the appropriate method which can be doGet() or doPost() but > doPut() as well. That /should/ be the case. You can decompile HttpServlet from the

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
OK - I try to explain my problem again: I want to use a program which sends data to my Tomcat Server to be stored an disk. The problem is that the program provides only PUT. At the moment I just try to get the service-method called which is the initiater for a Servlet. As far as I know, service()

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
Philipp, > I overwrote the service-method of HttpServlet. When I call my servlet > using an PUT service() is not called. If I use a normal Webform, it > is called. Woah, what is a Webform? Are you using some kind of application framework such as Struts or Tapestry? If so, then the rules are very

Re: read file inside WEB-INF

2006-10-20 Thread Christopher Schultz
Tomas, > 2) Then the code will be independent of the servlet API > > InputStream in = > my_class_name.class.getResourceAsStream("/my_configuration"); Not a bad idea. The use of the term "web service init" made me think of a webapp initializer, in which case, he's already tied to the servlet API.

Re: static content

2006-10-20 Thread Joe Riopel
I'm not trying to plug my site or anything, but I put up a page about configuring mod_jk with Apache2. If you have any comments let me know. http://www.crankhouse.com/howto.php?f=modjk On 10/20/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Peter Gershkovich [mailto:[EMAIL PROTECTE

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
The problem is that service() isn't called at all if I send a put-request. In fact doPut isn't called. 2006/10/20, Michael Courcy <[EMAIL PROTECTED]>: Why not this public void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException { doGet(req, resp); } and you implem

Re: What happened to MailSessionFactory?

2006-10-20 Thread Andreas Schildbach
Russ Bonsall wrote: We just moved from Tomcat 5.5.17 to 5.5.20. Our application uses the JavaMail Session as a resource configured in the server.xml. When sending an email in our application I was getting the following exception: > =20 javax.naming.NamingException: Could not create resource

Re: read file inside WEB-INF

2006-10-20 Thread Tomas Hulek
Or, alternatively, you can just rely on the class loader which loaded your servlet and it for a Java resource. 1) Put the configuration file under WEB-INF/classes. 2) Then the code will be independent of the servlet API InputStream in = my_class_name.class.getResourceAsStream("/my_configuration"

RE: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Caldarale, Charles R
> Philipp Südmeyer a écrit : > > Unfortunately Tomcat by default calls the doGET-method > of a given Servlet instead of doPUT when it receives > data by put-method. That's simply not true. Did you code a doPUT() or a doPut() method? (The latter is correct, the former will be ignored.) - Chuc

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Michael Courcy
Why not this public void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException { doGet(req, resp); } and you implement only doGet Of course it's not consistent if your request need to handle put and get request differently. Mic Philipp Südmeyer a écrit : Hi, I n

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
I overwrote the service-method of HttpServlet. When I call my servlet using an PUT service() is not called. If I use a normal Webform, it is called. I also had a look on the sent packages - They are almost equal, but the one begins with put and the other with post. Due to that fact I am pretty sur

RE: static content

2006-10-20 Thread Caldarale, Charles R
> From: Peter Gershkovich [mailto:[EMAIL PROTECTED] > Subject: static content > > We have apache2 with ssl enabled and linked via jk2_module with > apache-tomcat-5.5.12. By the way, mod_jk2 has been deprecated for over a year. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHE

Re: Receiving PUT-messages - calling doPUT

2006-10-20 Thread Christopher Schultz
Philipp, > I need to receive data via the PUT-method instead of POST. Unfortunately > Tomcat by default calls the doGET-method of a given Servlet instead of > doPUT when it receives data by put-method. This doesn't sound right. javax.servlet.http.HttpServlet has a method, doPut, that has the same

Re: read file inside WEB-INF

2006-10-20 Thread Christopher Schultz
Nuno, > I have a web-service that i'am trying to pack it in a war file. > I am trying to store configuration files into WEB-INF/data directory. In > my web-service init method, I have to load the configuration file that > was stored in WEB-INF/data directory. Is it possible? How can I do it? (fro

Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-20 Thread Dave Kennedy
HI, I must be missing something http://javaboutique.internet.com/tutorials/Struts2/jsp-pages.html I have built the struts app in this tutorial (source in resources at end of article) There does not appear to be any explicit logging as in http://struts.apache.org/1.2.9/userGuide/building_controll

Re: static content

2006-10-20 Thread Christopher Schultz
Peter, > Does anyone know how to configure apache 2 with apache tomcat so that > static content (images and javascript) would go bypassing ssl? If you want to bypass SSL, your application needs to generate non-https URLs for those page elements. You can't skip SSL if the browser is speaking it.

Re: read file inside WEB-INF

2006-10-20 Thread Steve Ochani
On 20 Oct 2006 at 16:06, Nuno Martins wrote: > Hi, > > I have a web-service that i'am trying to pack it in a war file. > I am trying to store configuration files into WEB-INF/data directory. > In my web-service init method, I have to load the configuration file > that was stored in WEB-INF/data d

static content

2006-10-20 Thread Peter Gershkovich
Hi everybody, Does anyone know how to configure apache 2 with apache tomcat so that static content (images and javascript) would go bypassing ssl? We have apache2 with ssl enabled and linked via jk2_module with apache-tomcat-5.5.12. Web application in tomcat container has resources that wou

Receiving PUT-messages - calling doPUT

2006-10-20 Thread Philipp Südmeyer
Hi, I need to receive data via the PUT-method instead of POST. Unfortunately Tomcat by default calls the doGET-method of a given Servlet instead of doPUT when it receives data by put-method. I know that I usually could use POST and everything would be fine, but in this special case I can't. So I

read file inside WEB-INF

2006-10-20 Thread Nuno Martins
Hi, I have a web-service that i'am trying to pack it in a war file. I am trying to store configuration files into WEB-INF/data directory. In my web-service init method, I have to load the configuration file that was stored in WEB-INF/data directory. Is it possible? How can I do it? Regards

Re: IPTABLES

2006-10-20 Thread Christopher Schultz
Paul, > PS if you know how to configure iptables to also > forward internal requests to localhost:8080 please > pass it on! Linux's iptables can certainly re-route localhost ports as well as incoming ports. You just need additional configuration. See the post from "Johannes" from a few hours ago

Re: IPTABLES

2006-10-20 Thread Paul Singleton
Parsons Technical Services wrote: So, if I read correctly you have no problems running you apps as root? ??? Sorry if I gave that impression; I run Tomcat standalone as a non-privileged user, doing port forwarding with iptables. I thus depend only on iptables, a Sun JRE and Tomcat, the simples

RE: Problem Deploying an Application

2006-10-20 Thread Nelson, Tracy
| From: Marco Aurélio S. Silva [mailto:[EMAIL PROTECTED] | Sent: Thursday, 19 October, 2006 13:17 | | I checked and the javax/servlet/http/HttpServletRequest is in the jar, I | had | try to change the jar and nothing happens... Is it possible there's another copy of the servlet jar in your CLASSP

Re: Problems with useBean

2006-10-20 Thread Len Popp
That is the correct behaviour. According to the JSP spec, the class attribute must be "The fully qualified name of the class that defines the implementation of the object." So you must include the full package name. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/20/06, Frederik G

RE: Tomcat, Apache and mod_jk configuration

2006-10-20 Thread Gormley, Josh
I'm trying to do a similar setup as well and I'm using just about the same configuration as shown below (I've attached my configs). But I'm having one big issue: when I try to do a hot redeploy of my webapp, I do not see the changes at http://rtv.myhost.com unless I restart Tomcat. BUT, I do

Re: Program to obtain a performance in tomcat server

2006-10-20 Thread Christopher Schultz
Acácio, > The intention is of comparing Windows with Linux in environment > Apache + Tom Cat. > > We made some measurements and no matter how incredible it seems, the > windows (web editon) it ended up being a little faster (small > difference). > > Now we want to obtain a test of load in two o

Re: multiple Tomcat config question

2006-10-20 Thread Christopher Schultz
Chris (Garwood), > I need to set up multiple instances > of Tomcat, one for each web front end so that each front end can talk to > its respective database. As someone else on the the list mentioned, you can probably run a single instance of Tomcat with multiple contexts (webapps) defined. It's n

Re: Program to obtain a performance in tomcat server

2006-10-20 Thread Michael Courcy
Have a look there http://jakarta.apache.org/jmeter/ Acácio Furtado Costa a écrit : Does anyone know some product or java program(s) that I can install in one tomcat server to measure the performance or response time. Something that works like "SITESPEED" offers in www.numion.com but "Sitespeed

Program to obtain a performance in tomcat server

2006-10-20 Thread Acácio Furtado Costa
Does anyone know some product or java program(s) that I can install in one tomcat server to measure the performance or response time. Something that works like "SITESPEED" offers in www.numion.com but "Sitespeed" program is in PERL. The intention is of comparing Windows with Linux in environ

Re: Problems with useBean

2006-10-20 Thread David Smith
From what I saw of the source the last time someone had trouble with useBean, it uses reflection to come up with the class. The useBean tag is a compiled class already and as such probably doesn't have any knowlege of the import directive. --David Frederik Gottlieb wrote: Thanks for the adv

Re: multiple Tomcat config question

2006-10-20 Thread Franck Borel
Hi Cristopher, I was also under the impression that I had to use a connector (mod_jk?) but this wasn't hugely clear to me. You only need mod_jk if you want to connect Apache to Tomcat. If you are using Tomcat as standalone server, only configure Tomcat. The most important configuration file i

Re: Problems with useBean

2006-10-20 Thread Frederik Gottlieb
Thanks for the advice, but lets leave the java.lang.String alone (remember that it works if I fully qualify the package name) I have a bean defined, dk.releaze.service.web.smsbulk.beans.Customer, that is a public class with a public no-arg constructor with public accessors and mutators - ie. a

RE: some bug

2006-10-20 Thread Caldarale, Charles R
> Сергей Ковтун wrote: > There is a problem of work "Tomcat" under the https > protocol if it is loaded dll (tcnative-1.dll). SSL configuration is different with APR (tcnative-1.dll). Have you looked at the following? http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS - Chuck THIS COMMUN

Re: Problems with useBean

2006-10-20 Thread David Smith
The class specified in the useBean tag must be a valid bean. java.lang.String is not a valid bean. Why don't you just use the request attribute directly and omit the ? Example: Login failed value is ${loginFailed} Resin may be lax on this point, but tomcat 5.5 is a fair stickler on this.

multiple Tomcat config question

2006-10-20 Thread Christopher Garwood
Hi, I'm very new to Tomcat and web server stuff but have been asked to set up multiple instances of Tomcat on one server to talk to some database servers. I've found the existing documentation a little confusing (sorry) and was wondering if anyone would be able either to give me step-by-step

Problems with useBean

2006-10-20 Thread Frederik Gottlieb
Hi, I'm new to Tomcat, but have been using Resin 2.1.16 for quite some time now. We are in the process of upgrading our server software, and we would like to test out the new Tomcat 5.5.20, but I seem to get some problems. We are moving our existing (working) applications to a test server, now

Re: some bug

2006-10-20 Thread Mark Thomas
Сергей Ковтун wrote: > There is a problem of work "Tomcat" under the https protocol if it is > loaded dll (tcnative-1.dll). > Without loading given dll-s all works perfectly. > Sometimes together with loaded dll (tcnative-1.dll) works normally, if > on the party > the client already was install the

some bug

2006-10-20 Thread Сергей Ковтун
Hello! I not so well write in English, therefore I ask me to excuse if that not clearly. There is a problem of work "Tomcat" under the https protocol if it is loaded dll (tcnative-1.dll). Without loading given dll-s all works perfectly. Sometimes together with loaded dll (tcnative-1.dll) wor

Re: Setting development=false for performance increase

2006-10-20 Thread Frank Niedermann
And I found another one: classdebuginfo which is true by default but will also increase performance if set to false. Unfortunately I found no way to test both parameters, the Tomcat examples are already to fast to see any difference. Is there any way to slow the whole thing down to see different

Setting development=false for performance increase

2006-10-20 Thread Frank Niedermann
Hello, I've deployed a third party web application on my Tomcat servers. There are no parameters for development or reloading set in the web applications web.xml so I think the default values from conf/web.xml will be used which is development=true is that correct? I don't want to change the web

Re: commons-logging, Tomcat 5.5 and Hibernate 3.2

2006-10-20 Thread Boris Unckel
Hi, > 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

Re: IPTABLES

2006-10-20 Thread Johannes
I'm running IP tables with the addition that it's possible for the apps to talk on port 80. This is the script I'm using: #!/bin/sh IPTABLES=/sbin/iptables EXTERNAL_IP= # The IP-address of the external interface of the firewall EXTERNAL_INTERFACE=eth0 # The external