Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-22 Thread Dakota Jack
Use java.util.Timer and java.util.TimerTask. Create a Timer object. Timer timer = new Timer(). Then create a TimerTask object. SomeTask task = new SomeTasK(). private class SomeTask extends TimerTask { public void run() { // do stuff } } Schedule the task:

Tomcat 5.5 - JMX

2004-12-22 Thread Slobodan Vujasinovic
Hi, Has anyone succeeded to expose Tomcat 5.5.x server for remote JMX management with j2se 1.4? I've done it with JRE 5.0 but I'm limited to j2se 1.4 use! Regards, Slobodan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

tomcat 5.5, should i upgrade?

2004-12-22 Thread Krishnakant Mane
hello jan and other friends, I am currently using tomcat 5.25 on in a production environment. it is used to serve thousands of requests per hour. I will like to know if thomcat 5.5 is worth the upgrade. I will like to know the real facts. is tomcat 5.5 having some performance improvements

Re: Tomcat 5.5 - JMX

2004-12-22 Thread Dominik Drzewiecki
Slobodan Vujasinovic [EMAIL PROTECTED] napisa(a): Hi, Has anyone succeeded to expose Tomcat 5.5.x server for remote JMX management with j2se 1.4? Tomcat 5.5.x is intended to be run on JRE 5.0, but its *is* compatible with JRE 1.4. Several libraries became core ones for JRE 5.0, therefore,

tomcat stops when root ssh session ends

2004-12-22 Thread Morten Andersen
I'm running a tomcat server on a debian machine. I start the tomcat server through a ssh session. There has been no problems so far but just recently I became a Root on the machine. Whenever the ssh session ends tomcat stops... tomcat version 4.1.18 Morten Andersen

Re: tomcat stops when root ssh session ends

2004-12-22 Thread g . lams
Perhaps catalina_home is not defined in the root environment? What is the result of echo $CATALINA_HOME at the root prompt? Morten Andersen [EMAIL PROTECTED] wrote on 22/12/2004 11.22.31: I'm running a tomcat server on a debian machine. I start the tomcat server through a ssh session.

RE: tomcat 5.5, should i upgrade?

2004-12-22 Thread Arnab Chakravarty
I cannot comment on tomcat 5.5 but yes tomcat 5.0. Tomcat is being used for Production and not just for testing. You would be surprised to know the production setup, though I cannot delve into more details here. I am amazed by the potential it carries. Arnab -Original Message- From:

Re: Tomcat 5.5 - JMX

2004-12-22 Thread Slobodan Vujasinovic
That is the way to start and run tomcat under j2sdk 1.4.x! But, my question was regarding server exposure for remote jmx management (for example, to enable MC4J connection to installed tomcat 5.5). With java 5.0, it was enough to set 'com.sun.management.jmxremote.port' property for JVM. Slobodan

log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample

RE: Compile and Deploy JSPs - Tomcat 4.0

2004-12-22 Thread Abhay Hiwarkar
Hi, Thanks for your help. Also, I looked into archives and got more details. Still, I am not able to load any jsp which is comipled to class and deployed in a war file containing web.xml. On the other hand, I am able to get an html (also packed in the war file) loaded without any error.

Re: Tomcat 5.5 - JMX

2004-12-22 Thread Dominik Drzewiecki
Slobodan Vujasinovic [EMAIL PROTECTED] wrote: That is the way to start and run tomcat under j2sdk 1.4.x! But, my question was regarding server exposure for remote jmx management (for example, to enable MC4J connection to installed tomcat 5.5). I must have misread your question, sorry :/ /dd

RE: tomcat stops when root ssh session ends

2004-12-22 Thread Allistair Crossley
Hi, This sounds like you are not starting Tomcat as a daemon using nohup. Try starting Tomcat with (assuming you are in Tomcat's bin folder) nohup ./startup.sh This will allow you to close the shell and have Tomcat still running. Cheers, Allistair. -Original Message- From: [EMAIL

RE: log file by Logger ..... / for application context

2004-12-22 Thread Allistair Crossley
Hi, Don't use 5.0.19. Why do you want that? Allistair. -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 10:39 To: Tomcat Users List Subject: log file by Logger . / for application context Hi All, problem for creating the

RE: log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
Thanx for replying, but requirement is such that I have to use tomcat 5.0.19. it's impossible to port the project on other version of tomcat now. any help regarding this pls. thanx in advance Manish -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Tomcat 4.1 DBCP DB2 Problem

2004-12-22 Thread Friedrich Gonzalez
I think i should add something to my own thread. I check the site of dbcp http://jakarta.apache.org/commons/dbcp/downloads.html and found that i had the old version of commons-dbcp (1.1) and commons-pool (1.2) the release notes say something about Performance optimizations in the

Re: Automated reply from bulletproof@www.bulletproofsoft.com

2004-12-22 Thread Wade Chandler
[EMAIL PROTECTED] wrote: BulletProofSoft.com Support Ticket Reply. DO NOT REPLY TO THIS EMAIL Please use our Online Support system for faster results to your questions. You can monitor the status of your ticket online where you can add follow up replies.

Re: Tomcat 4.1 DBCP DB2 Problem

2004-12-22 Thread Erika . Schoenmoser
Return Receipt Your Re: Tomcat 4.1 DBCP DB2 Problem document :

RE: Automated reply from bulletproof@www.bulletproofsoft.com

2004-12-22 Thread Phillip Qin
One possibility is this guy owns bulletproofsoft. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: December 22, 2004 9:19 AM To: Tomcat Users List Subject: Re: Automated reply from [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: BulletProofSoft.com Support Ticket

dynamically compile JSPs

2004-12-22 Thread Matt Bathje
Hi all - If you have your tomcat servers setup with development=false (compiling every 5 minutes) - is there a way to dynamically compile certain JSP pages from inside your servlet code? (Or at least to trigger a compile to happen off of the schedule?) If so - are there any side effects of

Re: dynamically compile JSPs

2004-12-22 Thread Tim Funk
I would think that making the query string be jsp_compile=true would do it. For example: mypage.jsp?jsp_compile=true [I never tried it] -Tim Matt Bathje wrote: Hi all - If you have your tomcat servers setup with development=false (compiling every 5 minutes) - is there a way to dynamically

Cleint Side Certificates

2004-12-22 Thread Julian W H Osborne
Dear All, I've been trying to get client/server certificates working with tomcat now for a while and I'm not having much success. I have generated certificates which have worked successfully with apache but not tomcat. I decided to script what I needed to do, so hopefully if anyone can see a

Re: Compile and Deploy JSPs - Tomcat 4.0

2004-12-22 Thread Harry Mantheakis
I might be picking up fag ends here, but I noticed that in this block: servlet servlet-nameclient/servlet-name servlet-classclient/servlet-class /servlet The 'servlet-class' element would normally take the fully qualified name of the class - IOW the complete package name. Also, classes,

AW: performance issue with JK und IIS6

2004-12-22 Thread Michael Südkamp
Thank you! The user in your link described a problem related to IE but not with other HTTP clients. I didn't mention that in our case the problem is not related to a specific HTTP client. Anyway I grabbed and applied the MS Hotfix and made the registry tweaks. But that didn't help at all. Would

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though based on a google search it seems like it is is a JSP thing and not a tomcat thing) But anyways - it doesn't seem to work for me, and I think the reason is that the jsp I

RE: dynamically compile JSPs

2004-12-22 Thread Dale, Matt
This might be a long way round but you could call a system ant job to compile them. Or if it is appropriate in your environment you should just precompile them anyway, this way there will be no performance hit at all on your production server when a new deployment is made. Ta Matt

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
Well they are being precompiled at first. The problem is that some of the pages are being uploaded/overwritten through a web interface, and the changes aren't immediately visible to users. (They have to wait for the scheduled recompile to happen to see the changes they made.) Matt Dale, Matt

RE: dynamically compile JSPs

2004-12-22 Thread Dale, Matt
I'd go with my first suggestion then although I'm sure there's a better way. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:12 To: Tomcat Users List Subject: Re: dynamically compile JSPs Well they are being precompiled at first. The problem is

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
Oh, and setting development=true isn't really an option :) Matt Matt Bathje wrote: Well they are being precompiled at first. The problem is that some of the pages are being uploaded/overwritten through a web interface, and the changes aren't immediately visible to users. (They have to wait for

Re: dynamically compile JSPs

2004-12-22 Thread fzlists
If they are uploaded via a web interface, I assume it's your own interface... If so, why not just make part of the upload process a compilation? You can compile it and overwrite the working copy in Tomcat, changes should be there instantly. A bigger plus too is that you can catch any

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
[EMAIL PROTECTED] wrote: If they are uploaded via a web interface, I assume it's your own interface... If so, why not just make part of the upload process a compilation? You can compile it and overwrite the working copy in Tomcat, changes should be there instantly. A bigger plus too is that

Re: dynamically compile JSPs

2004-12-22 Thread fzlists
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper/docs/api/index.html Usage of the JspC class. This should be what you want. I work in Windows 95% of the time, and I'm a simplicity freak, so I tend do do things, most of the time, with batch files called from UltraEdit. Anyway, this is

Re: tomcat 5.5 and jndi context naming error

2004-12-22 Thread Ken Hall
I've been trying out many different avenues to make this work and finally found the following bug, hopefully this will save other people some time: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg64410.html which says: And finally i find the solution,that is to remove all

Scripts

2004-12-22 Thread Charles P. Killmer
I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { %

Re: Scripts

2004-12-22 Thread Ben Souther
try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; }

Re: tomcat 5.5 and jndi context naming error

2004-12-22 Thread Jacob Kjome
There should be away around this type of issue. I believe Tomcat already actively avoids loading java, javax, org.xml, org.w3c.dom, org.apache.xerces packages from WEB-INF/lib (I hope my memory isn't failing me here). Given this, maybe Tomcat should endorse certain core libraries so that they

Re: Scripts

2004-12-22 Thread Wade Chandler
Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function

RE: Scripts

2004-12-22 Thread Charles P. Killmer
Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within

Tomcat lost request parameters

2004-12-22 Thread Roberto Rios
Hi, I know that my subject sounds crazy, but I'm going nuts... I have an application, 100% java (jsp 1.2 and servlet 2.3). This application has more or less 1,5 years. So it is stable. I always used tomcat as my web server (without apache because I don't have static html to be served) with no

RE: Scripts

2004-12-22 Thread Ben Souther
Is 'testClass' a valid class? Is it accessible to your JSPs? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html Have you imported it to the JSP? %@ page import=package.class % If you're new to Java/JSP, you'll probably save yourself a lot of headaches by finding either a

RE: Tomcat lost request parameters

2004-12-22 Thread Mike Curwen
I once worked on a portal site that experienced very odd behaviour under load. When in development, everyone got what they were expecting. Under load testing, pages where missing items, some items were duplicated, etc, etc. The problem was the usage of variables in a JSP page declared in: %! %

Re: Tomcat lost request parameters

2004-12-22 Thread fzlists
I don't think your going crazy, I have been seeing the same thing too... I have an app that has been in production for about a year. Yes, there have been changes along the way, but it's been more or less rock-solid stable... except that the past few months I've seen occassional NPE's caused by

Turning on verbose mode in the JVM

2004-12-22 Thread Tennessee Leeuwenburg
Hi all, The documentation for passing in JVM flags from tomcat v5.5 seems to be a bit sketchy. I discovered I can't edit most of the useful looking wiki pages, and besides, I don't have an answer yet and was pointed here by the docs eventually. I FAQ'd and I Googled. In old versions,

RE: Turning on verbose mode in the JVM

2004-12-22 Thread Mark Thomas
From: Tennessee Leeuwenburg [mailto:[EMAIL PROTECTED] 1) How do I pass the -verbose (-v) flag to the JVM? JAVA_OPTS 2) How do I pass arbitrary flags to the JVM? JAVA_OPTS 3) How do I add information to the wiki when I don't have permission to edit the pages? I believe you have to

Re: Turning on verbose mode in the JVM

2004-12-22 Thread Tennessee Leeuwenburg
Awesome. Would that be an environment variable, or does it go into server.xml? I'll register and put it in the wiki. Cheers, -T From: Tennessee Leeuwenburg [mailto:[EMAIL PROTECTED] 1) How do I pass the -verbose (-v) flag to the JVM? JAVA_OPTS 2) How do I pass arbitrary flags to the

JK2 Officially Unsupported - Should I Avoid JK2?

2004-12-22 Thread Sean Dockery
On November 15th, there was an announcement that JK2 is officially unsupported. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#20041115.1 We're in the process of configuring new servers and integrating Apache with Tomcat. We are migrating applications from servers

Re: Cleint Side Certificates

2004-12-22 Thread Bill Barker
Julian W H Osborne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear All, I've been trying to get client/server certificates working with tomcat now for a while and I'm not having much success. I have generated certificates which have worked successfully with apache but not

apache jk2.conf and tomcat question heeelp

2004-12-22 Thread B Wiley
Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm trying to set things up so If i have a .jsp in my website root it forwards the request to tomcat without having the .jsp physically sitting inside the tomcat root. Is

Re: apache jk2.conf and tomcat question heeelp

2004-12-22 Thread Tennessee Leeuwenburg
I think the way to do that is set up an alias directory inside apache.conf pointing to that absolute location, then put the entry in jk2.conf for that alias. Cheers, -T Hello, Is there a way to put an absolute path in the jk2.conf location tag that would look like /var/www/html/*.jsp I'm

Want to know better way of deploying

2004-12-22 Thread Manisha Sathe
I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file strutstest.war already exists on server Inside /webapp - previous uploaded war file is still present. I can not delete just like that as it

Re: Want to know better way of deploying

2004-12-22 Thread Tennessee Leeuwenburg
What version of tomcat are you using? I am using ant to create war file. Then i undeploy previous version and try to deploy new version. But when i try to do this it says FAIL - War file strutstest.war already exists on server Inside /webapp - previous uploaded war file is still present. I can

Re: Want to know better way of deploying

2004-12-22 Thread Daniel Watrous
Manisha, I have also had this occur when using Tomcat on Windows, but never with Tomcat running on Linux. Maybe this is a bug related to Tomcat on Windows... Are you using Windows? Daniel - Original Message - From: Manisha Sathe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: Want to know better way of deploying

2004-12-22 Thread Goel, Manish Kumar
Daniel, On Linux running application are deleted it's not bug I guess. Manish -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 10:55 AM To: Tomcat Users List Subject: Re: Want to know better way of deploying Manisha, I have also had

Deploying jsps

2004-12-22 Thread Abhay Hiwarkar
Hi, I am week in deploying war with Tomcat4 on Windows. The war contains only the class files generated from JSPs. I am not able to access any JSP through http://localhost:8080/myProj/client.jsp The war file contains the web.xml with mapping of all servlets to jsps I will appriciate your help.

RE: Want to know better way of deploying

2004-12-22 Thread Abhay Hiwarkar
Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:29 To: Tomcat Users List Subject: RE: Want to

RE: Compile and Deploy JSPs - Tomcat 4.0

2004-12-22 Thread Abhay Hiwarkar
Harry, I decompiled all the class files and checked for CLASS NAME. They are same as provided in web.xml. servlet servlet-nameclient/servlet-name servlet-classclient/servlet-class /servlet Still not able to access any jsp through http://localhost:8080/myProj/client.jsp Any help will be

RE: Want to know better way of deploying

2004-12-22 Thread Manisha Sathe
Thanks all. I am on Windows but Tomcat version is 5.0. So meaning no other solution ? regards Manisha Abhay Hiwarkar [EMAIL PROTECTED] wrote: Manisha, Earlier versions of Tomcat lock the file and you can not modify the same while Tomcat is running. Which ver are you running? Abhay

RE: log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
No one here have any Idea regarding my problem. -Original Message- From: Goel, Manish Kumar Sent: Wednesday, December 22, 2004 4:58 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Thanx for replying, but requirement is such that I have to use

Difference in compilation by Tomcat and JSPC

2004-12-22 Thread Abhay Hiwarkar
I am picking up a difference in the way Tomcat compiles a JSP when accessed from a browser and the way JSPC compiles - Tomcat produces class file with class as - public class client$jsp extends HttpJspBase {...} while, Jspc produces java file with class as - public class client extends

RE: log file by Logger ..... / for application context

2004-12-22 Thread Jacob Kjome
At 07:58 AM 12/23/2004 +0200, you wrote: No one here have any Idea regarding my problem. What exactly is it about 5.0.19 that you are tied to? If your Logger works in 5.0.27 but doesn't work in 5.0.19, then there is something wrong with 5.0.19 and you probably shouldn't be using it. Jake

Log issues in Tomcat 4.1

2004-12-22 Thread Pradeep Chauhan
Hi All, In one of my production we are using Tomcat 4.1. Problem is if we didnt restart the tomcat services for 1 month thne log size of STDout.log become more then 1 GB. I know we can reduce that by avoiding System.out.println. But we need that to get the root cause of some issues which are

RE: Want to know better way of deploying

2004-12-22 Thread Abhay Hiwarkar
Manisha, Did you try Manager Application ? Look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html Good Luck, Abhay -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thu, 23 Dec 2004 07:50 To: Tomcat Users List Subject: RE: Want to know

RE: Want to know better way of deploying

2004-12-22 Thread Goel, Manish Kumar
Manisha, you you neeed to change some setting in your server.xml in the Host element, make these two attribute true (unpackWARs autoDeploy) like this Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false cheers

Re: Tomcat lost request parameters

2004-12-22 Thread Bob Feretich
I don't think that this will help much, but your problem seems like a multi-threading problem rather than a lost request parameter problem. Have you tried inserting in some debug code to write request parameters to the log from the first servlet that receives them? Regards, Bob Feretich

Re: Want to know better way of deploying

2004-12-22 Thread Andreas Vombach
For some reason autodeploy does not work anymore when I start using jdbc pooling. (see my autodeploy thread) Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context displayName=myapp docBase=myapp path=/myapp