Trouble with java.util.Timer in Tomcat 5.5

2007-06-29 Thread David kerber
I have an app running in Tomcat 5.5.12, with jre 1.5.0_12 (explicitly specified in the service configuration), on windows 2000 server. I have one class that is initialized by a servletContextListener, in the contextInitialized event. This class uses java.util.Timer and java.util.TimerTask to

Re: Run multiple instances of tomcat on windows

2007-06-25 Thread David kerber
Ashish Kulkarni wrote: Hi The problem i am having is, when i installed second instance of tomcat it replaced the windows service for the first tomcat, so i have only one tomcat Use service.bat from the .zip package to create another service. The easiest way to handle this is to do the windows

Re: Multiple Contexts from single WAR

2007-06-22 Thread David kerber
I don't know if this is how it *should* be done, but I have gotten it to work by putting the context definitions in server.xml, and specifying both their context base and doc base. I never got it to work using any other technique, and I tried a bunch of iterations. Dave Johnny Kewl wrote:

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread David kerber
I have no hard stats to back me up, but I doubt you'll see a significant difference in performance as long as the hardware spec is the same. Our Tomcat app on Windows 2000 runs for months between restarts, and even then the restarts are for OS or application updates, not for Tomcat problems.

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David kerber
It's an acronym for "As Far As I Know". D 吴熊敏 wrote: > “AFAIK” What it mean? > > >> AFAIK 400% of zero is still zero :D >> - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Embed license to tomcat

2007-06-08 Thread David kerber
Kristian Rink wrote: David kerber schrieb: ... hardware failures won't cause problems. If they move to a completely new machine, but you politely post a nag screen that says something to the effect "New hardware detected; please contact Mycompany within 30 days for a new lice

Re: Embed license to tomcat

2007-06-08 Thread David kerber
Mark H. Wood wrote: As others have noted, this may be doable but it's the wrong approach. You are trying to solve a legal problem with information technology. It is very rare for such an approach to accomplish much, other than to irritate customers who are behaving properly. MAC address is a par

Re: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread David kerber
bachuba wrote: Hi, I'm fairly new to using Tomcat, but need to determine what JVM version (or at least the path to it) a running Tomcat service is currently using on a Windows system. If I run tomcat5w.exe and click on the Java tab, I notice the informaiton is listed there, but I would like to b

Re: Tomcat stopped logging

2007-05-29 Thread David kerber
Propes, Barry L wrote: I'm not even close to that! I'm at about 4.7 MB! For the logs anyway...isn't that the directory to which you're referring? But one thing I do wonder about...seems as if someone had told me one time there was a finite amount of folders or items that could be in a Windows d

Re: Error trapping

2007-05-18 Thread David kerber
Nelson, Tracy M. wrote: I actually have a note about this exact thing. Check here: http://randomcoolzip.blogspot.com/2006/02/hack-of-day.html | -Original Message- | From: David kerber [mailto:[EMAIL PROTECTED] | Sent: Friday, 18 May, 2007 12:47 | To: users@tomcat.apache.org | Subject

Re: Error trapping

2007-05-18 Thread David kerber
Joe Riopel wrote: Can't you grab that from the stack trace? http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StackTraceElement.html Looks like a possibility; I'll have to look into it. Thanks for the suggestion. D - To st

Error trapping

2007-05-18 Thread David kerber
In my plain .java files, is there a way of programmatically grabbing what method is executing? I already grab the class for logging in the catch block, but can I find the method without going through too many gyrations? Currently, I just hard-code the method name in the text that I log along

Re: [OT] Re: ACL (access control list) tutorial or example

2007-05-09 Thread David Kerber
Pid wrote: ... There isn't a standard way of doing programmatical security of this nature - the nature of it is such that you have to write it yourself. That is essentially what I'm trying to do, using various built-in tools , such as java.security.acl.*, sun.security.acl.AclImpl, sun.s

Re: WAR deployment incomplete (sometimes)

2007-05-09 Thread David Kerber
I've occasionally seen this on 5.5.15 on Windows, but never thought much of it, just assuming it was a random glitch. It seems to be more common for me when I restart it quickly after stopping, and less often if I let it sit for 30 seconds or so before restarting. Michael Heinrichs wrote:

Re: ACL (access control list) tutorial or example

2007-05-09 Thread David Kerber
Pid wrote: David Kerber wrote: ... There isn't a standard way of doing programmatical security of this nature - the nature of it is such that you have to write it yourself. That is essentially what I'm trying to do, using various built-in tools , such as java.se

Re: ACL (access control list) tutorial or example

2007-05-09 Thread David Kerber
Pid wrote: David Kerber wrote: ... There isn't a standard way of doing programmatical security of this nature - the nature of it is such that you have to write it yourself. That is essentially what I'm trying to do, using various built-in tools , such as java.se

Re: ACL (access control list) tutorial or example

2007-05-09 Thread David Kerber
... There isn't a standard way of doing programmatical security of this nature - the nature of it is such that you have to write it yourself. That is essentially what I'm trying to do, using various built-in tools , such as java.security.acl.*, sun.security.acl.AclImpl, sun.security.acl.Acl

Re: ACL (access control list) tutorial or example

2007-05-08 Thread David Kerber
in tomcat itself beyond whatever is there in the default installation. Dave Pid wrote: David Kerber wrote: Thanks for the response, but I don't think either of these are what I need. My application involves users who need access to the inventory data for stores throughout the country, and

Re: ACL (access control list) tutorial or example

2007-05-08 Thread David Kerber
n confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Origina

ACL (access control list) tutorial or example

2007-05-08 Thread David Kerber
I posted this on comp.lang.java.security yesterday, but haven't gotten a single answer, so I'm hoping you people can help: I'm trying to implement ACL's in my Tomcat-based webapp, and am having trouble applying what I read in the docs and in my googling to my real-life application. Could some

Re: Tomcat as Service (WinXP): Automatic startup

2007-05-04 Thread David Kerber
If the user as appropriate permissions, they can just start it from the services control panel, or, as part of your script you can execute: net start "tomcat service name" Dave Gregor Schneider wrote: Hi list, I'm trying to install Tomcat 5.5.23 as a service in Windows XP, using the file

Re: Log files always locked

2007-05-02 Thread David Kerber
Johnny Kewl wrote: Thanks... does the trick. But still wondering why the file handles are left open... I would think its not good practice. I would assume for performance reasons, but that's just a guess. I do the same thing when I know I'm going to be doing a lot of writing, but if there

Re: JNI in Tomcat6

2007-05-02 Thread David Kerber
Christian Becker wrote: Hello Everybody, i am currently developing a Servlet for Controlling my Winamp with my Mobile. The Library i want to use is jdic. jdic uses JNI with a DLL As Java Application, it is perfectly working. But on my Tomcat6 i always get a Exception while Servlet Initializati

Re: Tomcat support

2007-04-26 Thread David Kerber
Venkata Naveen wrote: Can you find out how many concurrent users can one tomcat server support? Yes. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread David Kerber
[EMAIL PROTECTED] wrote: I know next to nothing about Oracle app server, but price would be a big difference, since you don't have to pay for Tomcat. I really can't see any clear general advantage to Oracle's app server. The Only clear advantage I can see is the integration with Oracle if

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread David Kerber
I know next to nothing about Oracle app server, but price would be a big difference, since you don't have to pay for Tomcat. saravanan ragothman wrote: This is Saran doing good as an admin, and I have few questions about the Apache Tomcat Server after reading the documentation. In my workpl

Re: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread David Kerber
Nelson, Tracy M. wrote: | From: David Kerber [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 24 April, 2007 10:38 | | What is a good java package that I can use with my webapp to let my | customers authenticate against their active directory installation, from | my Tomcat 5.5.15 webapp? Can'

Authenticating to ActiveDirectory from webapp

2007-04-24 Thread David Kerber
What is a good java package that I can use with my webapp to let my customers authenticate against their active directory installation, from my Tomcat 5.5.15 webapp? Right now, I'm authenticating against my app's built-in database, but that's not very extensible, even though it works ok so far

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-23 Thread David Kerber
this change to each of the 10 equipment clases, then make one change to the classpath entry for the standalone app, and I was done in about an hour. Thanks for pointing this out, David! Dave David Kerber wrote: David Smith wrote: JAVA_HOME/lib/ext is in the bootstrap classloader (top-most,

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber
David Kerber wrote: David Smith wrote: JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above System). Given your need for running this code standalone and in a webapp, I think a refactoring is in order. The parts that have to live in JAVA_HOME/lib/ext should not refer to the

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber
combining all aspects of each type of equipment into a single class, but you seem to be saying that I should split each equipment class into two classes, one for management/configuration, and one for runtime. Is that interpretation correct? Dave --David David Kerber wrote: I did some more

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber
rg/tomcat-5.5-doc/class-loader-howto.html I've read that several times in the past, but it's kind of short on the information I need. I'll look again... --David David Kerber wrote: Running tomcat 5.5.15 on Windows server 2003. Why would I get the subject error when I'm de

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-19 Thread David Kerber
Running tomcat 5.5.15 on Windows server 2003. Why would I get the subject error when I'm deep into my code, and not near the top when I first use it? I'm getting this in a class that is buried several layers deep in a utility jar file. The servlet that calls this class is working fine, I get

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
Mladen Turk wrote: Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Or you can read the documentation for a c

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Do I need to do something to tell it to be used? Yes: when you run the .exe installer, you'll get a "Choose Components" screen; the Tomcat box is gray,

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
That's what I needed; thanks. I'm seeing this line in my logs: Apr 18, 2007 9:56:30 AM org.apache.coyote.http11.Http11AprProtocol start which from what you said means it's seeing the tcnative.dll. Thanks for all your help, Markus! Dave Markus Schönhaber wrote: Dav

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
Markus Schönhaber wrote: David Kerber wrote: Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... By simply using your crystal ball ;-) Unfortunately, it 's a windows-based crystal ba

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
e web site, and there is nothing that explains it at this level that I can find. Dave Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Location of APR Win32 binaries Thanks; how could I have found that from the main Tomcat site? I followed the download lin

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
Thanks; how could I have found that from the main Tomcat site? I followed the download links, and it didn't take me to that site... Markus Schönhaber wrote: David Kerber wrote: Where can I find the binaries download of the Win32 APR? I can find the source on the APR page of the t

Location of APR Win32 binaries

2007-04-18 Thread David Kerber
Where can I find the binaries download of the Win32 APR? I can find the source on the APR page of the tomcat site, but not the binaries... Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
ot; Sent: Tuesday, April 17, 2007 4:09 PM Subject: Re: Cascading style sheets and tomcat I've used css in JSP files no problem javascript also no problem - Original Message - From: "David Kerber" <[EMAIL PROTECTED]> To: "Tomcat Users List" Se

Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
href="${pageContext.request.contextPath}/path/to/your.css" /> The example above is using the el expression language so be sure your webapp's web.xml file is declared with the servlet spec version 2.4 schema. --David David Kerber wrote: Can I use .css files with .jsp's, part

Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
Can I use .css files with .jsp's, particularly when they are being served up by Tomcat 5.5? Or do they only work with static html files? TIA! Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mai

Re: recognise tomcat finished starting up

2007-04-16 Thread David Kerber
[EMAIL PROTECTED] wrote: Thanks for the responses...I'll try the listener creating some kind of file I can check for the existence of - this is complicated by trying to do it remotely... A loop-on-fail in the first test would work...as long as my first test never breaks ;-) It wouldn't have

Re: Which Tomcat 5.5.23 file do I download for Windows?

2007-03-28 Thread David Kerber
The way I've always done a windows installation is to install from the .exe file to get my services set up, and then unzip the .zip version right on top of the installation, so I have the extra support files from the zip, without having to manually do the service installation. Jayson Enriquez

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread David Kerber
Mikolaj Rydzewski wrote: David Kerber wrote: I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app. What is the best way (place) to deploy this

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread David Kerber
No one has a suggestion about this? David Kerber wrote: This is on Windows server 2003. I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app

Deploying libs for use both with Tomcat, and standalone apps

2007-03-19 Thread David Kerber
This is on Windows server 2003. I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app. What is the best way (place) to deploy this jar? It appears

Re: server/lib annoys me

2007-03-19 Thread David Kerber
Tremal Naik wrote: 2007/3/19, Tremal Naik <[EMAIL PROTECTED]>: Please, bear in mind my original question was "is it possible avoid using server/lib?" I never asked for java/j2ee programming lessons Of course, I accept all suggestions I receive gratefully, I'm not a some kind of troll, the l

Re: server/lib annoys me

2007-03-19 Thread David Kerber
Tremal Naik wrote: 2007/3/19, David Delbecq <[EMAIL PROTECTED]>: I don't understand why you try to do a webapp specific stuff (licence checking) in a server context (a valve). Well, my license is limiting the number of contemporary sessions, i.e. there is a limit on the number of users can

Re: Appropriate version of Tomcat

2007-03-09 Thread David Kerber
Caldarale, Charles R wrote: From: Richard Gemmell [mailto:[EMAIL PROTECTED] Subject: Re: Appropriate version of Tomcat I'd recommend the Windows Service Installer version. I'd recommend NOT using the .exe download, but instead use the .zip: 1) The .exe leaves out the .bat files, which

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
and everything is fine now. Thanks for the hint!! Dave Tim Funk wrote: Its a system property - you can see it by with of the following in a sample jsp: out.println(System.getProperties().getProperty("user.timezone")) or System.getProperties().list(new java.io.PrintWriter(out)

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
What file would that be in? Tim Funk wrote: Look at your system properties [user.timezone] -Tim David Kerber wrote: I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzed

Server suddenly using GMT instead of local time

2007-03-06 Thread David Kerber
I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzedit to update the DST settings, then rebooted the server. Everything came back up normally, but when I looked at the data being writ

Multiple physical processors

2007-03-02 Thread David Kerber
It's a simple question, so I hope it's a simple answer: Running TC 5.5.15, with a single webapp, will Tomcat take advantage of multiple physical processors if they exist? Tks! Dave - To start a new topic, e-mail: users@tomc

Re: Tomcat mysteriously shuts down

2007-02-19 Thread David Kerber
raine king wrote: OK I figured it out: Me and a couple testers were all running versions of Tomcat and once in a while we would use the same machine, and we hadn't changed the shutdown port/message(server.xml) so we were occasionally shutting down one another's Tomcats with shutdown.sh! D'oh

Re: tomcat /shared/lib jars

2007-02-15 Thread David Kerber
delbd wrote: Caldarale, Charles R a écrit : From: sudip shrestha [mailto:[EMAIL PROTECTED] Subject: Re: tomcat /shared/lib jars once again the version is: 5.5.20. Interesting use of the clause "once again", since you haven't provided that bit of information before in this threa

Re: multiple versions of TC

2007-02-14 Thread David Kerber
Propes, Barry L [GCG-NAOT] wrote: Hi, I'm running 4.0.1 currently on my local box, but our prod box has 4.1.3. I was wondering, if I copy down the newer version, can I run it also (not simultaneously) but without having to delete the older version? You could even run them simultaneously if

Re: Apache Software DST (2007) Compliance

2007-02-13 Thread David Kerber
Cory L Tryon wrote: To Whom It May Concern, With the recent changes in Daylight Savings Time, business are now attempting to determine which software is DST compliant and what is not. Would someone please let me know what versions of Apache Tomcat are DST (2007) compliant, or if not, what patch

Re: Unable to work with Tomcat 4.0

2007-02-11 Thread David Kerber
Rahul Choubey wrote: Dear Friends, I have installed Apache Tomcat version 4.0 in my system. I am getting the homepage correctly on writing http://localhost:8080 on the browser's address bar but when I go to servlets example page I am unable to execute the servlets,the same is the problem with JS

Re: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread David Kerber
Tom Davis wrote: Hi All. I'm getting some intermittent exceptions from Tomcat with which I would appreciate some assistance. I get an IllegalStateException from Tomcat. This is not a unique error, though it looks like the circumstances causing it are. We have a complex application, with

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Previously, I had been using the java Preferences class, which stores things in a way that is transparent to the java program (in the registry on windows, elsewhere on other OS&#

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
David Kerber wrote: Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out h

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out how to pick that locati

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at startup. The properties api appears to be easy to use, and works very similarly to the

How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at startup. The properties api appears to be easy to use, and works very similarly to the Preferences class. M

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Christopher Schultz wrote: Aah, okay. That's the same thing as in web.xml, I think. I think I need to look at that; I'd like to eliminate the entry in ser

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Storing webapp startup parameters A JNDI browser might simplify this for you if you can either deploy it into your existing application, or if you can somehow connect to it from the outside. Doe

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: No, I'm using , with this in server.xml: This in web.xml: fileImportInterval java.lang.string Aah, okay. That's the same thing as in web.xml, I t

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Christopher Schultz wrote: You could store your preferences in a JNDI context. If you use in your web.xml instead of using or something else, then they will be automatically loaded

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Is there a built-in method of having different settings for each instance of tomcat, but which won't require bouncing tomcat to put the changes into effect? I know I could roll my own

Storing webapp startup parameters

2007-01-25 Thread David Kerber
I know of two built-in methods of storing preferences for a webapp, but need one with characteristics which combine both of them. Using the java Preferences class allows changes to be made while the app is running, but AFAICS they will apply to all instances of tomcat running on a given machin

Re: Daylight Savings 2007

2007-01-18 Thread David Kerber
John Flores wrote: I am concerned about the change in Daylight Savings Times in 2007. Is there a patch that is needed to accomodate this change for all versions of Tomcat. If so, can you tell me where I can find the patch and intallation documentation for each version? Thanks John Flores

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
or higher, consider using ScheduledThreadPoolExecutor which is generally considered a replacement for Timer. Robert On 1/16/07, David Kerber <[EMAIL PROTECTED]> wrote: The javax.management.Timer class was rather more complex than I liked for the simple stuff I needed, but while digging into

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
The javax.management.Timer class was rather more complex than I liked for the simple stuff I needed, but while digging into it, I discovered the java.util.Timer class, which works great and is easy to implement, so thanks for putting me on the Timer track! Dave David Kerber wrote: Mikolaj

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Mikolaj Rydzewski wrote: David Kerber wrote: Thanks for the suggestion. One question about this technique: can I run the directory check loop directly in the contextInitialized event of the Listener, or is it mandatory to create a new thread? You can't make an infinite (almost)

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Caldarale, Charles R wrote: From: Tim Funk [mailto:[EMAIL PROTECTED] Subject: Re: Watching a directory for new files Various operating system allow hooks to do be notified when items in the filesystem change. But since we're using java - thats not the case here Tomcat does have the ca

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
f the ServletContextListener is called too. David Kerber wrote: Hi, Tomcatters - I have a working application to which I need to add a new function, where I need to watch a networked directory (not on the local tomcat server machine) for newly-appearing files, which I will then process. I need to have

Watching a directory for new files

2007-01-16 Thread David Kerber
Hi, Tomcatters - I have a working application to which I need to add a new function, where I need to watch a networked directory (not on the local tomcat server machine) for newly-appearing files, which I will then process. I need to have this done at intervals not exceeding about two minutes

Re: different version of java

2007-01-15 Thread David Kerber
It's not the code port that is time-consuming; it's the testing and verification of correct operation of every function in that code. fausto mancini wrote: The problem is for 'which' servlet specification your applications are designed for... I do not see too much effort in porting a J2EE app

Re: running tomcat invisibly

2007-01-10 Thread David Kerber
Roger Simmons wrote: Is it possible to run tomcat invisibly (that is without any console being displayed) if you check "Allow Service to Interact with the Desktop" in Windows services? (I'm using tomcat 5.5) Probably not, but if you *uncheck* that option, the only place you'll see it is in t

Re: Standards Complaint Browser Campaign

2007-01-06 Thread David Kerber
No, it's converted to Java code by Tomcat, along with whatever literal HTML you have in the .jsp. The HTML that is sent to the client is whatever you have your code generating. Dave Pierre Goupil wrote: Errr... I thought that the JSP was converted into HTML by Tomcat ? Regards, Pierre

Re: How to set tomcat service as automatic?

2006-12-31 Thread David Kerber
kkus wrote: I installed 5.5.20 as service and can start it from its configuration page. From there I set it up as automatic startup type. Then after I reboot PC and it still shows me startup type as manual. That isn't what I intend. 1. How can I make tomcat service loaded automatically every

Re: Peak load of Tomcat-powered server(s)?

2006-12-25 Thread David Kerber
My app has about 270 simultaneous site connections, each sending data pretty much continuously (it's instrumentation readings). The total data readings I receiven averages about 2.1 million per day, and ranges from about 50 to 500 per second. I run a single instance of tomcat on a single mach

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
Got this going; thanks for the help! David Smith wrote: Yes. I'm saying the original request won't be available. One other alternative I can think of is for the last page submit to add all the saved params to the request for page 1. Last page example form tag: --David David Ke

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
he saved params to the request for page 1. Last page example form tag: --David David Kerber wrote: David Smith wrote: You won't be able to re-compose the request object as if it was just submitted. The quickest, dirtiest way is to just stow the form params in the session upfro

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
t directly, and therefore will need to check for the stored parameters on the page that I'm re-opening? Example: Your request for ${SessProp} follows: . --David David Kerber wrote: David Smith wrote: So you want to effectively save the parameters from the orig

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
ad been requested from the jsp, but without them needing to re-enter the location ID and clicking on the submit button again. How can I do that? Thanks for any suggestions! Dave Hassan Schroeder wrote: On 12/21/06, David Kerber <[EMAIL PROTECTED]> wrote: Nobody has a suggestion

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
Caldarale, Charles R wrote: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Re-executing a servlet request 2. With sessions -- the original params are stored in the session and page 1 uses them in the absence of form params -- ie when completing the process. Have to be careful

Re: Re-executing a servlet request

2006-12-21 Thread David Kerber
e jsp, but without them needing to re-enter the location ID and clicking on the submit button again. How can I do that? Thanks for any suggestions! Dave Hassan Schroeder wrote: On 12/21/06, David Kerber <[EMAIL PROTECTED]> wrote: Nobody has a suggestion about this? Sure. I suggest y

Re: Re-executing a servlet request

2006-12-21 Thread David Kerber
Nobody has a suggestion about this? David Kerber wrote: I have a web app that starts with a .jsp, and then goes through a series of servlets to process some data. If possible, I'd like to set it up so that after the last processing page is done, it goes back and re-executes the

Re-executing a servlet request

2006-12-19 Thread David Kerber
I have a web app that starts with a .jsp, and then goes through a series of servlets to process some data. If possible, I'd like to set it up so that after the last processing page is done, it goes back and re-executes the first servlet (the one that they go to from the .jsp), which is a data

Re: Deploying shared .jar's

2006-12-12 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's Was that feature changed in the 5.0 and later versions? My 4.1.x version allows me to put f

Re: Deploying shared .jar's

2006-12-11 Thread David Kerber
oader=${catalina.home}/shared/classes,${catalina.home}/shared/lib/*.jar or something else that achieves your goal. D'oh Why didn't I think of that??? Cheers, Larry -Original Message----- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 6:55

Re: Deploying shared .jar's

2006-12-11 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct?

Re: Deploying shared .jar's

2006-12-11 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's My webapps can't see classes in the .jar that is in the shared/lib folder; I get the ClassNotFound errors when I try. Check your conf/catalina.properties file and

Re: Deploying shared .jar's

2006-12-11 Thread David Kerber
otFound errors when I try. On 12/11/06, David Kerber <[EMAIL PROTECTED]> wrote: From what I've read in the Tomcat 5.5 docs, I should be able to deploy a .jar that is shared across multiple webapps on Windows by putting it in the (tomcat)/shared/lib folder, but I've never gotten that

Deploying shared .jar's

2006-12-11 Thread David Kerber
From what I've read in the Tomcat 5.5 docs, I should be able to deploy a .jar that is shared across multiple webapps on Windows by putting it in the (tomcat)/shared/lib folder, but I've never gotten that to work. I've always had to put that jar in the web-inf/lib folder of each of the webapps

Re: tomcat w/o commercial crap

2006-12-05 Thread David Kerber
Enrico Weigelt wrote: * Christopher Schultz <[EMAIL PROTECTED]> wrote: IIRC, when Gentoo upgraded to JDK 1.5.0, they removed the requirement that you download Sun's JDK from their website and drop it in your portage package directory. Now, portage can download and install it automatically

<    4   5   6   7   8   9   10   11   >