Scheduling within Tomcat

2003-07-21 Thread Tim Shaw
Linux RH8, TC 4.1.24 I have an app I want to run regularly, so I've exposed the URI, and used wget to trigger it from a cron job. I also want to run this (or sub-set) at a particular point in time (e.g. 3:27mins in the future). If I provide an app that uses the java...Timer, can I just use it

Re: Log4j problem mixing 2 apps

2003-06-26 Thread Tim Shaw
I've been lurking on this, but I have nothing to add I'm afraid ... except that I'm seriously interested in the outcome :-) I had problems using jdk 1.4 logging in this scenario, and I am planning to investigate moving to log4j next week (functionality I am paid for, logging I'm not!). I'd

Re: Tomcat's Ant Tasks

2003-06-25 Thread Tim Shaw
Personally, I use deploy/undeploy, even during development - saves worrying about copying files around and mapping network drives etc (apart from anything, I run load-tests automatically on both W2K and Linux servers, scripted from Ant). This is the way I work remotely/in production, and it's

Re: Tomcat's Ant Tasks

2003-06-25 Thread Tim Shaw
/undeploy in TC5, so I guess I found the right route ... Phillip Qin wrote: Do you use Tomcat? Do you start Tomcat with -security? -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: June 25, 2003 11:34 AM To: Tomcat Users List Subject: Re: Tomcat's Ant Tasks Personally, I use

Re: Advantages to putting Apache as front end to Tomcat

2003-06-19 Thread Tim Shaw
Additional question if I may ... CGI? Reason : A previous Admin system was CGI-perl based. I have used TC to do the stuff I do ... but we still need the previous bits. We're about to integrate, and I have taken it on 'faith' that we can just 'mix the 2 together' - others know Apache well. I

Re: Advantages to putting Apache as front end to Tomcat

2003-06-19 Thread Tim Shaw
, I'd rather delegate that to Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 9:39 AM To: Tomcat Users List Subject: Re: Advantages to putting Apache as front end to Tomcat Additional question if I may

Re: java applets

2003-06-19 Thread Tim Shaw
Generally the server-side for applets is ... servlets - but they have very different semantics! The bean classes may be in your WEB-INF/classes - but the instances are inside Tomcat. You would not be able to share dynamically modified data using this approach - the Beans would be instantiated

Re: java applets

2003-06-19 Thread Tim Shaw
I haven't used applets since 1.0, but can't you create the jar and put it into /WEB-INF, and then get it from there? I thought that was sort of the point? Puzzled tim Shapira, Yoav wrote: Howdy, Yes. The bean classes must be in the jar that you name as the applet codebase. That jar cannot

Re: Extended characters in passwords working with admin application?

2003-06-19 Thread Tim Shaw
There was an extremely detailed UTF-8/ISO-8859-1 'how to' on this list recently (past week or so). I don't remember the details but it seemed to do it for the others. tim Jeff Tulley wrote: Has anybody successfully authenticated to the /admin application, with a user who has a password that

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Tim Shaw
This works for me ... web.xml : resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Tim Shaw
further thoughts? Thanks, Garrett Dangerfield. Tim Shaw wrote: This works for me ... web.xml : resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res

Re: JSP Compiler output?

2003-06-16 Thread Tim Shaw
When tools I use eat (or re-translate) messages I want, I tend to try getting the same behaviour without the tool ... Have you tried pre-compiling the JSP's? G'luck tim Tim Funk wrote: In log4j - try turning up logging for jasper, (for example in log4j.properties)

Re: ClassCastException

2003-06-16 Thread Tim Shaw
I've done a lot of dynamic class loading ... and have never needed to use a custom class loader ('cept one time when I stored them in a DB ... don't go there!). I would re-evaluate why you need a class loader rather than Class.forName( someClassName ).newInstance(). My gut feeling is, if you

Re: Can't get to /admin dir of our webapp

2003-06-16 Thread Tim Shaw
I called my admin app 'administration' ... because I wanted to be able to update tomcat and not have to mess about too much with the standard config. tim John Turner wrote: Well, the original question wasn't is removing the admin webapp a good idea? but how do I prevent Tomcat from serving

Re: ClassCastException

2003-06-16 Thread Tim Shaw
problem ;-) tim Tim Shaw wrote: I've done a lot of dynamic class loading ... and have never needed to use a custom class loader ('cept one time when I stored them in a DB ... don't go there!). I would re-evaluate why you need a class loader rather than Class.forName( someClassName

FAQ? JDK 1.4 Logging in Tomcat - long and discussive

2003-06-16 Thread Tim Shaw
Feedback welcome - I've been working on this without much help, and others may well have more experience (which I'd like to benefit from too). I would love to use a better approach than that described here ... I needed to be able to log my various (multiple-context) web apps. As I couldn't get

Re: Is possible to run JAX-RPC under Tomcat?

2003-06-10 Thread Tim Shaw
Take a look at JWSDP 1.1 from Sun - it's a fully configured Web Services setup for Tomcat 4.1.2, and it 'works out of the box' (ish :-) I note that http://java.sun.com/webservices/ has a 1.2 version, but I haven't tried that (yet). G'luck tim Shapira, Yoav wrote: Howdy, Tomcat is a servlet

Re: Startup error

2003-06-06 Thread Tim Shaw
FWIW. RH 8.0 'Server' install also had this problem. I had to install 'compat-libstdc++-7.3-2.96.110.i386.rpm' by hand (off the installation CDs). Workstation install was fine (already did it I guess. Looks like RH 9 has the same quirk? tim Luc Foisy wrote: Nobody can point me in the right

Re: Tomcat Manager deploy and undeploy

2003-06-06 Thread Tim Shaw
Best example is a Context entry in server.xml ... As I understand : context.xml contains whatever can go into the Context element in server.xml. These contents are explained (fairly well but without a tutorial aspect) in the Config HowTo docs. This context.xml file is then packaged into the

Logging help please

2003-06-05 Thread Tim Shaw
Hi, Does anyone have a link to a FAQ or HOW-TO for using commons-logging with Tomcat 4.1.x please? I've read the obvious ones at apache.org and sun.com, and tried all sorts before having to back out and go to a wrapper around ServletContext.log (which doesn't give me levels and files etc). I

Re: changing tomcat configuration on the fly

2003-06-05 Thread Tim Shaw
I wonder whether you actually want this approach at all. Depending on why you want to modify JNDI entries, and whether this is for the entire server or just a specific web-app ... If I need to change my JNDI entries (generally values and additions during development), I modify the context.xml

Re: Logging help please

2003-06-05 Thread Tim Shaw
is a wrapper. Try use log4j or jdk 1.4 logger for the underlying logger -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: June 4, 2003 1:42 PM To: Tomcat Users List Subject: Logging help please Hi, Does anyone have a link to a FAQ or HOW-TO for using commons-logging with Tomcat

Re: changing tomcat configuration on the fly

2003-06-05 Thread Tim Shaw
on somebodey going to the server and stop-start tomcat. Would like to hear any ideas /examples. Adi -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 18:48 To: Tomcat Users List Subject: Re: changing tomcat configuration on the fly I wonder whether you actually

Re: Bug with absolute Paths? errorPage=/error.jsp

2003-06-05 Thread Tim Shaw
Absolute paths are relative to the context. Makes it easier to avoid problems :-) tim Reinhard Moosauer wrote: Hello List, when using absolute Paths in JSPs errorPage-Directive, I get unexpected behavior: A path /error.jsp should go to this page: http://myserver.com/error.jsp At least I did