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

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: 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,

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.security.acl

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: [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,

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

Re: ACL (access control list) tutorial or example

2007-05-08 Thread David Kerber
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. - Original Message - From: David Kerber [EMAIL

Re: ACL (access control list) tutorial or example

2007-05-08 Thread David Kerber
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 those locations

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: 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

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

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

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

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

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

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, above

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

2007-04-20 Thread David Kerber
-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 deep into my code, and not near the top when I first

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

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

2007-04-20 Thread David Kerber
by 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

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

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: 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 tomcat

Re: Location of APR Win32 binaries

2007-04-18 Thread David Kerber
, 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 links

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 ball

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: David Kerber wrote

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, indicating

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 change

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,

Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
=stylesheet type=text/css 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

Re: Cascading style sheets and tomcat

2007-04-17 Thread David Kerber
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 users@tomcat.apache.org Sent: Tuesday, April 17, 2007 9:43 PM Subject

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

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

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

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: 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 last

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

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

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

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 tzedit

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)); -Tim David

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:

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!

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

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

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

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

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
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 how

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

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's

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

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

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 env-entry in your web.xml instead of using context-param or something else

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 env-entry, with this in server.xml: Environment name=fileImportInterval type=java.lang.String value=60/ This in web.xml: resource-env-ref resource-env-ref

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.

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 env-entry in web.xml, I think. I think I need to look at that; I'd like to eliminate the entry in server.xml

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.

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

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 location

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

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

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

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) loop

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
, 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 it, I discovered

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

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

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

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-22 Thread David Kerber
, 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 you

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
though all the form fields you want to save. -- /c:if pYour request for ${SessProp} follows:/p . --David David Kerber wrote: David Smith wrote: So you want to effectively save the parameters from the original request to page 1 and then use them when you come back to page 1. I can

Re: Re-executing a servlet request

2006-12-22 Thread David Kerber
?frmParam1=valuefrmParam2=value --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 upfront and then use them from the session later

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 first

Re: Re-executing a servlet request

2006-12-21 Thread David Kerber
, 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 you rephrase what

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

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: Deploying shared .jar's

2006-12-11 Thread David Kerber
. 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 to work. I've always had to put that jar

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 make sure

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? Yes

Re: Deploying shared .jar's

2006-12-11 Thread David Kerber
=${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 PM To: Tomcat

Re: tomcat w/o commercial crap

2006-12-05 Thread David Kerber
Enrico Weigelt wrote: * Christopher Schultz [EMAIL PROTECTED] wrote: snip 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

Re: Is jsp designed for use by large websites

2006-11-30 Thread David Kerber
Nelson, Tracy wrote: ... taglibs and other supporting classes in Java rather than use JavaScript. Testing JSPs also seems to take longer, although a good IDE should make it fast (I've never used an IDE that had good JSP support). With PHP, Have you tried Eclipse? Not perfect, but pretty

Re: How to get fields list in order

2006-11-03 Thread David Kerber
Christopher Schultz wrote: Dave, David Kerber wrote: Christopher Schultz wrote: Wait... I thought you said you were using JNI...?! Or, are you using someone else's JNI package to do some dirty tricks? I thought there was only a C binding for JNI thus far. I'm using a 3rd

Re: How to get fields list in order

2006-11-03 Thread David Kerber
Christopher Schultz wrote: ... I read the data from the structures, load it into my classes, do all my processing in java with those regular classes, then write the data back out of the classes into the structures, and pass it back to the calling prog. I'm sorry to say it (again), but I

How to get fields list in order

2006-11-02 Thread David Kerber
This is more of a java question than it is Tomcat-specific, but it's the only java group I hang out in, so here goes: How can I get a list of the public fields declared in a class, *in the order they are declared*? Using Reflection's getFields and getDeclaredFields methods returns them in no

Re: How to get fields list in order

2006-11-02 Thread David Kerber
Christopher Schultz wrote: David, How can I get a list of the public fields declared in a class, *in the order they are declared*? Using Reflection's getFields and getDeclaredFields methods returns them in no particular order, and I need them in the order they are declared so I can get

Re: How to get fields list in order

2006-11-02 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to get fields list in order Then I could just check the field type, and increment the byte counter by the appropriate amount (i.e. if the java field type is int, then I know the width in the passed

Re: How to get fields list in order

2006-11-02 Thread David Kerber
Christopher Schultz wrote: David, Then I could just check the field type, and increment the byte counter by the appropriate amount (i.e. if the java field type is int, then I know the width in the passed structure is 4 bytes, etc). As Chuck points out, this is unlikely to work. If

Re: How to get fields list in order

2006-11-02 Thread David Kerber
Christopher Schultz wrote: David, Since you mentioned byte offsets, I have to ask: are you trying to subvert the serialization system? Or, even worse, inspect the object memory from with JNI? The latter, sort of. I'm using a package which puts a wrapper around JNI to make it

Re: How stable is tomcat

2006-11-01 Thread David Kerber
Dima Retov wrote: How stable is tomcat with Sun's HotSpot JVM 1.5? Right now we have apache servers that are up for 3 and 4 months. So I guess apache 1.3 may works for months. How stable is tomcat against apache or other webservers? Would tomcat be able to work 1 year without restart?

Re: How stable is tomcat

2006-11-01 Thread David Kerber
Dima Retov wrote: Thanks Dave. What version of JVM have you used? I believe (not sure) it's 1.5.0_06 on the server; I'm running _07 on my dev machine. As Rainer mentioned, don't try to use hot deployment for busy apps; I always stop tomcat for updates, so my updates tend to be saved up

Re: Very basic web server hosting question

2006-10-30 Thread David Kerber
Use your router's instructions to set port forwarding. You will need to specify the port the outside world will connect to, and what port on your machine those connections will be forwarded to. The details vary by router manufacturer and model, so we can't give you specific instructions.

Re: Writing a text file back to browser from a servlet

2006-10-16 Thread David Kerber
to, but it would be nice if I could show my users the file content in the browser as well. Thanks! Dave David Kerber wrote: Thanks, Tim - I'll give that a try later today. Dave Tim Lucia wrote: You could stream it directly to the user, if practical (why write to a temp file only to stream that back

Re: Writing a text file back to browser from a servlet

2006-10-14 Thread David Kerber
: response.setContentType(text/plain; charset=UTF-8); response.setHeader(Content-disposition, attachment; filename=.txt); charset is optional... Tim -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 10:13 PM To: Tomcat Users List Subject: Writing a text

Writing a text file back to browser from a servlet

2006-10-13 Thread David Kerber
I'm trying to do something that seems like it should be very easy, but can't get it to work: sending a .txt file back to the user's browser so they can save it to their local hard disk. I am having no trouble creating the file and writing it to a temporary place on the server, but can't

Re: AOL

2006-10-10 Thread David Kerber
Daniel Blumenthal wrote: Chris, How does the lb decide where you go for all requests after the first one? Typically, the session id is sniffed from the URL or cookie and the lb maintains a table of mappings that expires after some time. Our two choices are evidently IP-based and

Platform list

2006-09-25 Thread David Kerber
I just looked, but couldn't find the list of supported platforms for tomcat 5.5.x. I'm specifically looking to see if it will run ok on a Fedora core 4 server. Dave - To start a new topic, e-mail: users@tomcat.apache.org

Re: Platform list

2006-09-25 Thread David Kerber
Oops, I knew that GGG. Thanks for jerking my d'oh chain! Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Platform list I just looked, but couldn't find the list of supported platforms for tomcat 5.5.x. I'm specifically looking to see if it will run ok

<    4   5   6   7   8   9   10   >