Multiple Security Providers with Tomcat

2005-04-18 Thread Tom Bednarz
I have a customer who likes to introduce chipcards with client certificates for single-sign-on. I need to add support for that in a web-application we provided. The problem is, that not ALL users of the application may have a certificate. So for all not able to present a valid certificate I

Tomcat 5, Velocity and XML Parser issues

2004-04-06 Thread Tom Bednarz
Hi, I just experienced a problem with Velocity and Tomcat 5.0.19. I use Velocity 1.3, Velocity Tools 1.0, Struts 1.1 and Tomcat 5.0.19. When starting my Web-App I got the following error: 2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity [info] Velocity successfully started.

Implementing my own Realm based on JDBCRealm

2004-04-06 Thread Tom Bednarz
Hi, I like to implement my own Realm based on the JDBCRealm provided by Tomcat. I currently use Tomcat 5.0.19, Eclipse 3M7 is my IDE (together with MyEclipseIDE). To implement my own Realm I like to derive my class from org.apache.catalina.realm.JDBCRealm Eclipse throws an error saying that

Write my own Realm - HOWTO ?

2004-03-25 Thread Tom Bednarz
Im using Tomcat 5.0.19. I need to extend the JDBC Realm a little bit, precisly I need to have my own implementation of authenticate(..). In the Realm Configuration HOW-TO is a incomplete Link (FIXME) to information how to do this. Could anybody please point me to that link? Basically I want

Java IDE for Tomcat

2004-03-25 Thread Tom Bednarz
Does anybody know if it is possible to integrate Tomcat 5 into JBuilder 8 Enterprise? Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 with Eclipse (debugging servlets, JSP etc)? Many thanks for your feedback on your experience. Tom

Re: Java IDE for Tomcat

2004-03-25 Thread Tom Bednarz
Thank you Guys for all that feedback! Tom - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:38 PM Subject: Java IDE for Tomcat Does anybody know if it is possible to integrate Tomcat 5 into JBuilder 8

HTTP instead of FTP downloads with Tomcat

2003-11-26 Thread Tom Bednarz
Hi, Could anybody please give me some hints how to solve the following problem: Some of my customers cannot use FTP from their offices due to security restrictions. I have to offer them the possibility to download files using the HTTP protocol. I use TOMCAT but have the listings tag set to

Re: HTTP instead of FTP downloads with Tomcat

2003-11-26 Thread Tom Bednarz
Thanks a lot for all input. I will give it a try and come back if I experience problems. Tom - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 6:45 AM Subject: HTTP instead of FTP downloads with Tomcat Hi, Could anybody

Re: Re[4]: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-05-03 Thread Tom Bednarz
Jake, Thanks for the link! I will download the stuff. I was already looking into that JNI stuff a couple of months ago and found it quite complicated! Tom - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 8:30

Re: Re[2]: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-05-01 Thread Tom Bednarz
Jake, Also, what is that -jvm_option? I haven't seen that before? My %CATALINA_OPTS% evironment var looks like: -server -Xms8m -Xmx128m. Should I be using -jvm_option? I have NO -server option. I think there is a big difference between Tomcat 3.x and 4.x. If you type tomcat.exe /? you

server.xml - context parameter question

2002-04-30 Thread Tom Bednarz
Hi I have a problem in initializing my web application. The application stores all of its configuration parameters in a database table. My application has an initialization servlet which loads beside other things the configuration. Initially this is done in the init method, over time it is

Re: server.xml - context parameter question

2002-04-30 Thread Tom Bednarz
. The catalina scripts should call this setenv script which will set the JAVA_OPTS env variable. Then your code should be able to get this property from the System.getProperty(dbserver) line. Just a thought. Hope it helps, Abe -Original Message- From: Tom Bednarz [mailto:[EMAIL

Re: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-04-30 Thread Tom Bednarz
Tony, There is no such file on Windows. Usually you install Tomcat as service on NT/W2K. You have to pass all parameters to the TOMCAT.exe file. Type Tomcat /? and you will get command line help. The whole thing is not so easy and it took me quite a while to figure it out! So I have written a

Bug in implementation of HttpSessionAttributeListener with Tomcat 4.0.1 ??

2002-04-11 Thread Tom Bednarz
Hi, I have a very funny behaviour when using the HttpSessionAttributeListener interface. I have derived a class from HttpSessionAttributeListener and implemented the two methods - public void attributeAdded(HttpSessionBindingEvent se) - public void attributeRemoved(HttpSessionBindingEvent se)

Re: Question about Catalina.bat

2002-02-12 Thread Tom Bednarz
Irene, Please explain the following code in catalina.bat : %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3%9 start for example, -Dcatalina.home=%CATALINA_HOME% My only guess is that

reloading templates

2002-02-05 Thread Tom Bednarz
Hello, What possibilities do I have to reload and quickly test changed templates? Do I need to reload an application in TOMCAT using the manager app or is there anything shorter? (JSP just recompile, quite handy for testing) Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For

Re: reloading templates

2002-02-05 Thread Tom Bednarz
FORGET THIS, I postet to the wrong list!!! SORRY! Thomas - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:28 PM Subject: reloading templates Hello, What possibilities do I have to reload and quickly

Re: Help giving Tomcat more memory

2002-02-01 Thread Tom Bednarz
Michael, I then start the program with java -Xms145M -Xmx160M test If I understand this correctly, the initial heap size should be 145 megs. However, looking at my processes, there is only about 7200K allocated for the program. Why doesn't it start out at 145? That is the same behaviour

Re: Problems with .exe install for NT

2002-01-31 Thread Tom Bednarz
Hello Anton, I've found a link at tomcat-dev (JavaService - http://www.alexandriasc.com/software/JavaService/index.html) I posted it here couple of days ago in that old thread you asked for it last time. Mayby I should have posted it to you directly, sorry. Many thanks for that link!

Re: Session Timeout

2002-01-30 Thread Tom Bednarz
It works for me on TC 4.0.1. I have implemented a servlet that monitors all sessions currently active on my application (using the new HttpSessionListener interface) and I can see expired sessions. Maybe a problem of previous TC versions Thomas - Original Message - From: [EMAIL

Re: Problems with .exe install for NT

2002-01-30 Thread Tom Bednarz
John, Type tomcat.exe /? for a help screen. I have written some batch files to install and uninstall it as service with apropriate settings for the VM. Here the exemples (all on one line please) snip @echo on d: cd \Tomcat4.0\bin tomcat.exe -install Apache Tomcat

TOMCAT 4.0.1 and Cookies / URL Rewriting

2002-01-28 Thread Tom Bednarz
Hi, Is it correct, that session tracking with TOMCAT is only possible if Cookies are allowed in the browser. Or is there any configuration possibility to use URL rewriting if a browser has cookies disabled? Thanks, Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional

RE: TOMCAT 4.0.1 and Cookies / URL Rewriting

2002-01-28 Thread Tom Bednarz
Hi Mike, At 28.01.2002 11:05, you wrote: No, that's not exactly correct. Tomcat performs URL rewriting in its default configuration. So sessions are not 'only' possible if cookies are enabled. As a first line of defense, your JSP/servlets should be using the encodeURL or encodeRedirectURL

Re: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation

2002-01-28 Thread Tom Bednarz
Michael, It seems very likely that your environment variables exceed the maximum allowed bytes. I am not sure but I think it is 4 or 8 KB. Since changing the environment variables (such as path, classpath etc) requires a reboot for system variables, many software vendors do not properly

RE: Sources for Tomcat 4.0.1 Win32 Service

2002-01-25 Thread Tom Bednarz
Hello Anton, Name of start class for me is org.apache.catalina.startup.BootstrapService, it also a stop class too. Here is me inst.bat for installing Tomcat as a service: (all at one line) @tomcat.exe -install Tom C:\jdk1.3\jre\bin\hotspot\jvm.dll -jvm_option

Re: web.xml Question

2002-01-22 Thread Tom Bednarz
OK, I just wanted to know how this works. My development environment is not the same as an environment in a large company which usually has a lot of restrictions regarding accessing the internet. I have made a simple test and unplugged the network cable of my workstation. TOMCAT still started

Re: How to give tomcat's JVM more heap space ?

2002-01-22 Thread Tom Bednarz
In the catalina.bat or catalina.sh set the variable CATALINA_OPTS On Windows I would do: set CATALINA_OPTS=-Xms64M -Xmx256M to set a minimum of 64 MB and a maximum of 256 MB RAM. You should do this at the beginning of the file. HTH Thomas At 22.01.2002 15:50, you wrote: I have a server

Tomcat Win32 Service question

2002-01-21 Thread Tom Bednarz
Hi, I run Tomcat 4.0.1 on a Win2000 box as System Service. Is there any way to modify startup parameters? I like to define the memory settings of the VM by setting the following options: -Xms64M -Xmx256M wich will start Tomcat with a minimum of 64 MB and a maximum of 256 MB RAM. When

RE: Tomcat Win32 Service question

2002-01-21 Thread Tom Bednarz
. (It should be pretty straight forward) Randy -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:03 AM To: [EMAIL PROTECTED] Subject: Tomcat Win32 Service question Hi, I run Tomcat 4.0.1 on a Win2000 box as System

web.xml Question

2002-01-21 Thread Tom Bednarz
Hi everybody, Usually the web.xml file of a web application starts with the following: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; This URL referst to the dtd file on SUN's server. I think most XML parsers like

JSP Escape character problem - PLEASE HELP

2002-01-10 Thread Tom Bednarz
Hi, I have a problem that could be a bug somewhere inside the JSP compiler. I have ported an application from JRun 3.0 to TOMCAT. The following code inside a JSP causes an Exception: snip SCRIPT LANGUAGE=JavaScript1.2 TYPE=text/javascript !-- if (isMenu)

Re: JSP Escape character problem - PLEASE HELP

2002-01-10 Thread Tom Bednarz
At 10.01.2002 10:44, you wrote: The escaped double quotes should be fine. I would think that it's the escaped forward slash (in \/SCRIPT), which shouldn't need to be escaped at all. Thats correct! It works fine when removing the '\' character. I don't remember why I had put it there.