Authenticated JavaMail Session - a better way?

2003-10-27 Thread Brian Silberbauer
Hi all I have just managed to work out how to create an authenticated JavaMail session with JNDI in Tomcat, but it is a slight hack - I was wondering whether anybody has a better idea of how to go about it. The problem is one can't store the password in the properties, JavaMail does not pick t

RE: Socket permission in a CGI Script

2003-10-27 Thread Patrick Willart
I had the same problem and ended up rewriting the cgi program in java. It helped me get rid of an operation system dependency too, so it was a good thing to do. Patrick -Original Message- From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 5:56 PM To: Tomca

RE: Problem receiving huge text in IE

2003-10-27 Thread Patrick Willart
Do you have to output your data in a table. Maybe better format it with spaces within tags. That way the browser can render it right away. If it is in a table all the data has to be received before it can get rendered. Patrick -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTEC

Re: Tomcat + Connector issues

2003-10-27 Thread Bill Barker
"Tatu Vanhanen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > I have two questions about Tomcat and connnectors. The front-end web server > is Apache. > > 1.) When using Tomcat 4.1.24 and the Warp- connector, the creation of the > servlet and the call to init() happens two

JDBC Realm

2003-10-27 Thread Gardner, David [IT]
I have a JDBC Realm configured against a sybase database and it works fine. See below I have changed the details for obvious security reasons. I also have the user passwords encrypted using MD5 and this works fine. However we have a need to have all clear text passwords encrypted in c

Re: Setting cookie paths

2003-10-27 Thread Bill Barker
The browser isn't returning the path information when it returns the cookie, so Tomcat has no way of knowing what path it was created with. "Jessica P. Hekman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using Tomcat 4.1.27 (though I saw the same behavior with 4.0.6) I am > tryin

Large Scale Deploymenet on Tomcat ?

2003-10-27 Thread ARUN PRASAD
Hi ! Are there any success stories of deploying a large scale application (1+ users ) on tomcat+jboss out there ? Really need to convince the top bosses down here to give it a chance :) Arun Justin Ruthenbeck <[EMAIL PROTECTED] ne.com>

RE: IIS log files

2003-10-27 Thread Patrick Willart
You can log about anything you want, including cookies and specific HTTP headers. It is not in the 4.1 documentation but %{Referer}i, %{User-Agent}i, etc. work. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access%20L og%20Valve You can do the same with %{cookiename}c; and if

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 15:49, Justin Ruthenbeck wrote: > Here's the situation (correct me if I'm wrong): >+ User fills out a form and clicks submit >+ The browser submits the form and sits in a wait state >+ The server begins processing a request for a new record >+ The user clicks

RE: Centralized user management system

2003-10-27 Thread Cheong Takhoe
Hi Gang, We realised this 3 years ago when we started developing web applications for the company. So what we did in the first part was to develop our user management system onto our application framework. All our applications refer to the User object that goes across the applications. Managemen

Re: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
Agreed. One word of caution... At 06:46 PM 10/27/2003, you wrote: I've had to do this before when credit card processing was being done. A double-click can result in the credit card being charged twice, so you've really got to avoid it. We actually synchronized on the session for the duration

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 06:02 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 14:18, Justin Ruthenbeck wrote: > At 04:20 PM 10/27/2003, you wrote: > >On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: > > > > > Server side, instead of putting a token in the session when the page > > is > > > *served*, put a token i

Re: Form Double Submit Detection

2003-10-27 Thread Christopher Schultz
Tom, > Don't know if this is complimentary to your workflow, > try a javascript confirm (ie a client side pop-up, asking the user to click > "Ok" to continue). This will catch any double clicks on the client side. Unfortunatly I think our users would object to this solution. Server side, inst

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 14:18, Justin Ruthenbeck wrote: > At 04:20 PM 10/27/2003, you wrote: > >On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: > > > > > Server side, instead of putting a token in the session when the page > > is > > > *served*, put a token in the session while the submission

Re: Socket permission in a CGI Script

2003-10-27 Thread Jean-Francois Arcand
Try something like chmod a+x your_cgi or chmod 777 . If that doesn't work, then I have no idea :-( -- Jeanfrancois Patrick Willart wrote: Hmmm I don't know. Even without the security manager running the CGI program isn't allowed to open a socket connection. To my understanding the secur

RE: Socket permission in a CGI Script

2003-10-27 Thread Patrick Willart
Hmmm I don't know. Even without the security manager running the CGI program isn't allowed to open a socket connection. To my understanding the security manager just adds protection and doesn't allow you to do more things then normally would be allowed. patrick -Original Message- From

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 04:20 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: > Server side, instead of putting a token in the session when the page is > *served*, put a token in the session while the submission is being > processed (use it like a semaphore). The token has a finite li

RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-27 Thread Mario Juric
Hi, FYI I have found the error in server.xml. The following attribute value was missing from the Connector element: protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" Not all JK2 setup instructions mention this. However, the error messages in /var/log/httpd/error_log persist, but

Setting cookie paths

2003-10-27 Thread Jessica P. Hekman
Using Tomcat 4.1.27 (though I saw the same behavior with 4.0.6) I am trying to set the path of a cookie (Cookie.setPath()). When I check the Cookie object, the path's successfully set (to "/"). I commit the cookie. I load a different page. I ask for the list of cookies available to me. The cookie's

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 12:51, Justin Ruthenbeck wrote: > Server side, instead of putting a token in the session when the page is > *served*, put a token in the session while the submission is being > processed (use it like a semaphore). The token has a finite lifecycle > (created on form submis

RE: Form Double Submit Detection

2003-10-27 Thread Justin Ruthenbeck
At 03:34 PM 10/27/2003, you wrote: On Tue, 2003-10-28 at 12:26, Bill Lunnon wrote: > Don't know if this is complimentary to your workflow, > try a javascript confirm (ie a client side pop-up, asking the user to click > "Ok" to continue). This will catch any double clicks on the client side. Unf

RE: Form Double Submit Detection

2003-10-27 Thread Tom Parker
On Tue, 2003-10-28 at 12:26, Bill Lunnon wrote: > Don't know if this is complimentary to your workflow, > try a javascript confirm (ie a client side pop-up, asking the user to click > "Ok" to continue). This will catch any double clicks on the client side. Unfortunatly I think our users would obj

RE: Form Double Submit Detection

2003-10-27 Thread Bill Lunnon
Tom, Don't know if this is complimentary to your workflow, try a javascript confirm (ie a client side pop-up, asking the user to click "Ok" to continue). This will catch any double clicks on the client side. Hope this helps Bill -Original Message- From: Tom Parker [mailto:[EMAIL PROTECTE

Form Double Submit Detection

2003-10-27 Thread Tom Parker
I've designed my workflows so that they do not need to store anything in the user's session. This allows the user to conduct more than one instance of a particular task at the same time without data getting mixed up. However this presents me with a problem if the user double clicks the submit butto

Re: Calling method in servlet from JSP page - won't compile anymore

2003-10-27 Thread Christopher Schultz
Roland, I don't know why it can't import the class (or why I even need to -- WEB-INF/classes is supposed to be in the classpath). Just so everyone knows what I'm talking about, I put together a simplest case webapp which is attached. browse to http://localhost:8080/publicservlet after deploying fo

Tomcat 4.1.27 w/ SSL: Intermittent Page Load Failures

2003-10-27 Thread Eric Kohlenberg
Also using: JDK 1.3.1_07 IE 6.0 Tomcat running on Windows 2000 Service Pack 4 I have followed the HOW-TO guide for SSL configuration. HTTPS works for a few requests, then starts failing. In failure mode, browser client experiences intermittent page, image, css download errors- the browser indic

Re: Calling method in servlet from JSP page - attach

2003-10-27 Thread Justin Ruthenbeck
There are two accepted rules for Tomcat development (and Java dev in general). Failure to follow these rules will make your life needlessly more difficult: (1) Do not install into directories which contain spaces (ie the default location: "C:\Program Files"). (2) Always declare your classes i

Calling method in servlet from JSP page - attach

2003-10-27 Thread Roland Glenn McIntosh
exmlm stripped off my attachment (smart move). Here's a link, if you care to try it out and help me diagnose the problem: http://rgm.nu/publicservlet.war If you use wget, lie about your user agent (wget -Ufoo http...). Perhaps my test.class servlet needs to be in a package to be imported

Calling method in servlet from JSP page - won't compile anymore

2003-10-27 Thread Roland Glenn McIntosh
I have a JSP page which needs info from a servlet. I instantiate the servet (named test) and try calling a method like this snippet: <%@ page import = "test" %> fails to call method Message follows <% out.println( tt.getMessage() ); %>

Help with better understanding of the SESSION.ser file

2003-10-27 Thread Vasquez, Ryan
Title: Help with better understanding of the SESSION.ser file Currently, I am running Tomcat with no persistent session manager configured.  It is commented out in my server.xml file.  In this case I would never expect to see any session related information serialized in the Tomcat environment

Message broadcasting in Clustered tomcat environment

2003-10-27 Thread Karthik Duddala
We are in the process of implementing a clustered tomcat 5.1 environment running JBoss, I am trying to find out approaches to 1. System shutdowns across multiple servers 2. Message broadcasting across multiple servers. Thank you Karthik Duddala Developer - Web Team Commerce Technologies Ph.

Re: Tomcat 4.1.27 Running as a Service

2003-10-27 Thread Kenneth
Hi, check whether your Tomcat service is up or not. It happened something like that to me once, and when I checked (Control Panel->Tools->Computer Administration->Services & Applications or something like that) mi service was always down when I started my computer. I re-configured it and it all

Problem receiving huge text in IE

2003-10-27 Thread Mufaddal Khumri
Hi, Am using Tomcat 4.1.18. I have this problem on IE on Windows and Mac. I am trying to get a huge amount of text from the database and want to stream it to the user/s browser. Netscape and Safari work fine and start displaying the text as soon as they start receiving it. IE waits for the fu

RE: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Chris, I work with struts-1.1. Zsolt -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 8:34 PM To: Tomcat Users List Subject: Re: Out of memory with multipart/form-data and lot of checkboxes Zsolt, > in a form where the user can uploa

Problem configurimg mod_jk2 for Cocoon 2.1.2

2003-10-27 Thread Julio César Mejia Vergara
Hello everyone, I have instaled and configure: -Apache Web Server 2.0.47 - Tomcat 4.1 - Mod_Jk2 - JDK 1.4.2 - Cocoon 2.1.2 - Solaris 8 SPARC I allready have working all of the them, just cant get Cocoon to respond directly to Apache Web Server on port 80 (http://my.server.com/cocoon). Cocoon r

Seraph--a web application security framework

2003-10-27 Thread Gang Wu
All, Is there anyone running Seraph with their applications? How was it? http://opensource.atlassian.com/seraph/introduction.html Gang Wu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: Centralized user management system

2003-10-27 Thread Gang Wu
Yes, I need a program to maintain a centralized user database, then the later developed applications don't need invent their own user management module anymore. Instead the applications can reference the user information directly or via Tomcat JDBC Realm. There was an article published on Java Wor

Re: automatic reloading redux

2003-10-27 Thread Justin Ruthenbeck
When a reload is done, the entire Classloader is dropped and a new instance is created and used. Any instances of classes loaded by that CL will be gone as well. The behavior you're seeing is correct. justin At 11:43 AM 10/27/2003, you wrote: Hi all, This is not the standard reloading questi

automatic reloading redux

2003-10-27 Thread Rishikesh Tembe
Hi all, This is not the standard reloading question :) I have a bunch of properties files in the classpath, and a bunch of objects (created by a servlet) in Tomcat memory. In my webapp, I can see these objects as a list. The wierd thing is that if I change any one of the properties files, Tomcat

Re: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Christopher Schultz
Zsolt, in a form where the user can upload a file and set some attributes with checkbox (couple oh hundreds) I get an out of memory exception even when the file is very small (300 bytes). After some testing I figured out that it is caused by enctype="multipart/form-data". If I removed that I cannot

Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Hi, in a form where the user can upload a file and set some attributes with checkbox (couple oh hundreds) I get an out of memory exception even when the file is very small (300 bytes). After some testing I figured out that it is caused by enctype="multipart/form-data". If I removed that I cannot u

Servlet not found unless port specified and run thru Tomcat's Man ager; getting a seg fault in the error_log file

2003-10-27 Thread Kengott, Dan
Hi, I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I can't get this application to find and run the servlet. The file structure for this app is: /usr/local/jak/webapps/ProbLog/WEB-INF/classes /usr/local/jak/webapps/ProbLog/WEB-INF/lib/probserver.jar /usr/local

Re: IMP:Problem migrating to Latest Tomcat 5

2003-10-27 Thread Remy Maucherat
Paresh Varatkar wrote: Hi Remy Two questions 1 where Can I get the binary install for 5.0.14. http://mir2.ovh.net/ftp.apache.org/dist/jakarta/tomcat-5/v5.0.14-alpha/ (or another mirror) 2 Also do you think its possible to move the application from Tomcat to jboss easily. That's the idea :) The

RE: IMP:Problem migrating to Latest Tomcat 5

2003-10-27 Thread Shapira, Yoav
Hola, >1 where Can I get the binary install for 5.0.14. http://apache.oregonstate.edu/jakarta/tomcat-5/v5.0.14-alpha/ >2 Also do you think its possible to move the application from Tomcat to >jboss easily. Yes. ;) Yoav Shapira This e-mail, including any attachments, is a confidential busi

RE: IMP:Problem migrating to Latest Tomcat 5

2003-10-27 Thread Paresh Varatkar
Hi Remy Two questions 1 where Can I get the binary install for 5.0.14. 2 Also do you think its possible to move the application from Tomcat to jboss easily. Regards Paresh -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 1:46 AM To: To

RE: Centralized user management system

2003-10-27 Thread Shapira, Yoav
Howdy, It sounds like you're looking for a complete standalone user management program to talk to your database. Tomcat doesn't have such a thing, as that's not tomcat's job to provide ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Gang Wu [mailto:[EMAIL PROTECTE

RE: Centralized user management system

2003-10-27 Thread Gang Wu
Hi Yoav, Thanks for the message. The JDBC Realm provides a way to connect to an external user management system, so applications can verify user privileges in a standard way. But Tomcat does not provide any mechanism to manage users and roles, which is supposed to be implemented in the external us

Tomcat throws exception: java.io.CharConversionException: isHexDigit please help!

2003-10-27 Thread Ravikanth Gangarapu
Hi , I have a simple Servlet that takes a POST request. I am just trying to read a request parameter (from html form) into string and print it out. For some values of input parameters i get the following exception and the string will be empty. I tried Google, no luck. I receive an xmlfil

Re: Application-level security

2003-10-27 Thread Robert Hall
Chris, The August 2003 Java Developer's Journal (vol 8 issue 8) has an article you might want to take a look at: "ActiveAuthentication - Extending J2EE form-based authentication" by Thomas Beck; . Yes, logout is implemented by invalidating the sess

Re: Application-level security

2003-10-27 Thread Christopher Schultz
Yoav, Unfortunately, there are also some disadvantages, and some of them are deal-breakers: - No logout function (does session.invalidate() kill it? it occurs to me that it doesn't, but I haven't yet tried) There used be an HttpSession#logout method. It was removed for several reasons. One of th

RE: Virtual server on Tomcat 3.3

2003-10-27 Thread rsequeira
Actually for TC 3.3, it would help you to read: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#standard_contexts RS "Lars Ballieu

Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread Jean-Francois Arcand
Have you file a bug on java.sun.com? That would be good to make them aware of the problem (and there is possibly a workaround described there). This is clearly not an issue with Tomcat, but with the JDK. -- Jeanfrancois David O'Brien wrote: I face the same problem but haven't found a solution

RE: Virtual server on Tomcat 3.3

2003-10-27 Thread Lars Ballieu Christensen
Hi RS I'm just not sure that will do the job. I need to be able to distinguish between, say, www.abc.com and www.xyz.com Thanks for your help. Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 27. oktober 2003 18:33 To: Tomcat Users List Subject: Re: Virtu

Re: Virtual server on Tomcat 3.3

2003-10-27 Thread rsequeira
Use the Host element RS "Lars Ballieu

Virtual server on Tomcat 3.3

2003-10-27 Thread Lars Ballieu Christensen
Hi list I need to host a number of web domains on my Tomcat 3.3 server, and would appreciate if some could point me to a description of what I need to add to the server.xml file in order to create virtual servers. Any help is greatly appreciated. Kind regards Lars -

What should be the size of shm.file in workers2.properties

2003-10-27 Thread Asif Chowdhary
Hi, When configuring apache + tomcat + mod-jk2 is there a recommended size fo shm.file? Asif Chowdhary mailto:[EMAIL PROTECTED] www.xeye.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread David O'Brien
I face the same problem but haven't found a solution yet. I had to revert to the old version of the SDK. If you find anything could you let me know? -Dave At 12:12 PM 10/27/2003, you wrote: Hi everyone, I have the following configuration: Linux Mandrake 8.0 J2SDK 1.4.2_01 Tomcat 4.1.27 In my ap

J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread Luiz Ricardo
Hi everyone, I have the following configuration: Linux Mandrake 8.0 J2SDK 1.4.2_01 Tomcat 4.1.27 In my application I have to read some files that contains characters that are ISO-8859-1 charset but when I display these file contents by Tomcat the ISO-8859-1 characters are replaced by question ma

Re: Session attributes lost

2003-10-27 Thread Javier Sanchez Monzon
hi , i didn't use JBoss, but i had also a problem about losing http sessions while trying to connect apache and tomcat. the problem was on my configuration serv.xml. Therer was no proxy sever defined. I set up the proxy sever on tomcat an it works, but only internal. i mean only at the compute

Apache proxy question

2003-10-27 Thread William Bondy
I'm a newbie to apache/tomcat intergration. A couple of questions: 1) Can apache run in a proxy mode and still forward requests to Tomcat? 2) If it can, does apache send requests to Tomcat as if Tomcat is part of the proxy server (ie. absolute URL) or an origin server (ie. relative URL), I woul

Many projects

2003-10-27 Thread Andrey . Rogov
How should I configure tomcat to keep a few deployed projects (virtual hosts) and load the requested one project (host) according to request (http://www.site1 or http://www.site2 )?? Thank you, -- Best regards, Andrey mailto:[EMAIL PROTECTED]

Re: timer problem

2003-10-27 Thread Vano Beridze
Daniel Gibby wrote: Do you mean that it stopped 2 months ago, and now it has stopped again? yes Is it just the thread that stops? The timer stops. I mean the thread does not execute every four hour after that at all. Does your whole servlet or webapp stop? no Are there errors in your logs? no

Re: Tomcat in combination with SMP and Sun java 1.4.1-01 or IBM java 1.3.x?

2003-10-27 Thread Daniel Gibby
See thread tomcat jitters than hangs. Set environment variable for tomcat and apache: LD_ASSUME_KERNEL=2.2.5 Daniel Gibby Francois JEANMOUGIN wrote: When I run the same application on a uniprocessor (either a athlon 2400xp+ or single PIII550) the application runs stable for weeks, any idea's w

RE: Centralized user management system

2003-10-27 Thread Shapira, Yoav
Howdy, Tomcat can run with a JDBC Realm to authenticate users and define roles, and that likely has all the features you need. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Gang Wu [mailto:[

Re: timer problem

2003-10-27 Thread Daniel Gibby
How do you know that you still have a problem then? Did it just stop again? Do you mean that it stopped 2 months ago, and now it has stopped again? Is it just the thread that stops? Does your whole servlet or webapp stop? Are there errors in your logs? Is your disk full? Does the thread rely on

RE: Application-level security

2003-10-27 Thread Ralph Einfeldt
I prefer solution number 3 (Servlet Filter). As our application has to run under JSDK 2.0 we implemented out own 'filter' that is mapped to each request and has it's own rules how to map the url against users, roles oand groups. > -Original Message- > From: Christopher Schultz [mailto:[EM

RE: Map all URL to one servlet

2003-10-27 Thread Shapira, Yoav
Howdy, >I admit I was sloppy in my usage of "as stated in >spec". The *behaviour* was stated in the spec, while never mentioning >the implementation of that behaviour ;) The sloppy part is true, which is why I said be careful with terminology (and why I didn't say you were completely wrong) ;)

Session attributes lost

2003-10-27 Thread Markus Heussen
Hi all, Our environment: * Win2K * first Apache Tomcat/4.1.18 with JDK 1.3.1_07-b02 * Apache 2.0.44 in Front of the Tomcat an with mod_jk2 2.0.43 running for load balancing * JBoss 3.2.1 with a separate JDK 1.3.1_07 included a Tomcat 4.1.24 We have some strange losts of session attribute values

timer problem

2003-10-27 Thread Vano Beridze
Hello I've got a web app deployed on tomcat 4.1.24 I've got a strange problem. In a servlet that is loaded on startup I'm scheduling a thread that is executed every 4 hour. It happens to stop sometimes with no error. I don't understand what might be the problem though. It's not a systematic err

Centralized user management system

2003-10-27 Thread Gang Wu
Hello everyone, I have several applications running on Tomcat server. When developing the applications, each development team invented their own user management system(basically a set of database tables and web interface). Now we got into this kind of awkward situation: User has to remember differ

RE: Map all URL to one servlet

2003-10-27 Thread Mike Curwen
> -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Monday, October 27, 2003 9:47 AM > To: Tomcat Users List > Subject: RE: Map all URL to one servlet > > > > Howdy, > > >local values in WEB-INF/web.xml that 'match' values in conf/web.xml, > >will always takes

RE: Application-level security

2003-10-27 Thread Shapira, Yoav
Howdy, >I'm interested in people's thoughts on the following methods. > >1. Using container-based authentication and authorization (in the form >of j_security_check and the sections of web.xml). >Unfortunately, there are also some disadvantages, and some of them are >deal-breakers: > >- No logou

RE: hit count or statistics

2003-10-27 Thread Shapira, Yoav
Howdy, Enable the AccessLogValve in web.xml and run an analyzer (there are many free ones e.g. Webalizer) on the access log file. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Hugo Rucha [mailto:[EMAIL PROTECTED] >Sent: Monday, October 27, 2003 10:03 AM >To: [EMAIL

RE: Map all URL to one servlet

2003-10-27 Thread Shapira, Yoav
Howdy, >local values in WEB-INF/web.xml that 'match' values in conf/web.xml, >will always takes precedence (as stated in the spec). And the *.jsp Be careful where you tread: the spec doesn't mention anything about conf/web.xml, or a web.xml hierarchy. This is a tomcat-specific concern. Yoav S

RE: IIS log files

2003-10-27 Thread Bui, Bao-Ha D
I had to parse Tomcat access logs into the same format as the IIS logs and then merge the parsed Tc log and the iis log for each day and then use WebTrend as normal on the merged file. As far as I know, Webtrend can not read TC log. I am not sure about Live Stats. Bao-Ha Dam Bui [EMAIL PROTECTED

RE: Map all URL to one servlet

2003-10-27 Thread Mike Curwen
local values in WEB-INF/web.xml that 'match' values in conf/web.xml, will always takes precedence (as stated in the spec). And the *.jsp mapping in conf/web.xml is what makes JSP's work, so I hadn't forgotten that. ;) > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PRO

RE: Application-level security

2003-10-27 Thread Mike Curwen
I wrote a filter to implement security. I've been using my own, rather than container-managed, because like you, there is quite a bit of work to do, to a new session, before its useful to the app. Also, we wanted our users and roles in a database, rather than the deploy descriptor. So we have

RE: IIS log files

2003-10-27 Thread Chanan Braunstein
Might have to do it from the access logs from within Tomcat - Did you try doing that yet? I haven't yet. We were using Web Trends - we are now using Live Stats - Same idea as Web Trends. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Origin

Re: Map all URL to one servlet

2003-10-27 Thread Christopher Schultz
Mike, However, this mapping will override any extension-mapped (e.g. *.jsp) Servlet. Of course, your Servlet also has to be able to handle serving any static resources (e.g. gifs, stylesheets) as well. I'm currently using a /* mapping, and also using JSP pages, with no trouble. So your assert

Re: Map all URL to one servlet

2003-10-27 Thread Tim Funk
The matching should go from most exact to least exact in this order (IIRC): - Exact match - Extension match - Path match (meaning prefix) most exact winning first - Default servlet match So *.jsp takes precendence over /* -Tim Mike Curwen wrote: -Original Message- From: news [mailto:[EMA

RE: Map all URL to one servlet

2003-10-27 Thread Mike Curwen
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Sent: Saturday, October 25, 2003 8:48 PM > To: [EMAIL PROTECTED] > Subject: Re: Map all URL to one servlet > > However, this mapping will override any extension-mapped (e.g. > *.jsp) Servlet. Of cours

Application-level security

2003-10-27 Thread Christopher Schultz
All, I've been involved in quite a few web-based applications, and every time I've done one, the team has a different kind of application-level security. I'm interested in people's thoughts on the following methods. 1. Using container-based authentication and authorization (in the form of j_sec

RE: IIS log files

2003-10-27 Thread Bui, Bao-Ha D
I have been looking for a way to do that for a long time. So far, the answer is no. If you do find out anything, please post and let me know too. Thanks. Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc 651.765.1018 PS: just curious, are you looking at this to use the log for WebTren

IIS log files

2003-10-27 Thread Chanan Braunstein
Good Morning, I am using Tomcat 4 with the IIS redirector dll (version 1 I think). The URI being written to the IIS log files is always: /jakarta/isapi_redirect.dll instead of the JSP file name. Is there a way to fix that? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840

hit count or statistics

2003-10-27 Thread Hugo Rucha
It's possible to know the hit count statistics or the downloads numbers from my web site through the tomcat logs or other way. _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmai

RE: URL of calling JSP page calling a servlet.

2003-10-27 Thread Shapira, Yoav
Howdy, Yes, use HTTP Referer header. You can RTFM/google on this issue, it's easy. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: anunay ashish [mailto:[EMAIL PROTECTED] >Sent: Monday, October 27, 2003 9:40 AM >To: Tomcat Users List >Subject: Re: URL of calling JSP

Re: URL of calling JSP page calling a servlet.

2003-10-27 Thread anunay ashish
I mean I call a servlet addDataServlet from a JSP file pageFormats.jsp In the addDataServlet I want to know that which is the JSP page that called this servlet? - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, October 2

RE: modifying shutdown behaviour?

2003-10-27 Thread Shapira, Yoav
Howdy, >> When the $CATALINA_HOME/bin/shutdown.sh script is called I would like a >> particular web application to release its resources cleanly and perform >tidy > > >> > You could implement a ServletContextListener. The contextDestroyed() >method >> > will be called when your application is abo

RE: WAR file not found

2003-10-27 Thread Shapira, Yoav
Howdy, >I have a webapplication running on tomcat-4.1.24. >if i create a WAR file of the application and try to deploy it, tomcat >cannot find the application. >could some one help? Not without more information such as the errors in your tomcat log. Yoav Shapira This e-mail, including any a

RE: URL of calling JSP page calling a servlet.

2003-10-27 Thread Shapira, Yoav
Howdy, You mean like the Referer (misspelled) header? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: anunay ashish [mailto:[EMAIL PROTECTED] >Sent: Monday, October 27, 2003 8:55 AM >To: Tomcat Users List >Subject: URL of calling JSP page calling a servlet. > >Hi, >I

Re: modifying shutdown behaviour?

2003-10-27 Thread Christopher Schultz
Julie, When the $CATALINA_HOME/bin/shutdown.sh script is called I would like a particular web application to release its resources cleanly and perform tidy > > You could implement a ServletContextListener. The contextDestroyed() method > will be called when your application is about to be removed

Re: Information Push

2003-10-27 Thread Christopher Schultz
Ralf, To be more specise, but I do not want to restrict your answer, I could also think of these variant. I JSP site is requested by a browser. Every few seconds, the Java bean is producing a new updated version of this output website. How would I do this? If all you want is a fresh page after an

RE: Servlet reload problem

2003-10-27 Thread Shapira, Yoav
Howdy, Those links are present: you can click on Tomcat 4.1.27 in the main download page and you get to http://apache.oregonstate.edu/jakarta/tomcat-4/ or more generally http://[mirror-site]/jakarta/tomcat-4. Clicking on binaries in that page takes you to a page that has both the binaries and the

RE: modifying shutdown behaviour?

2003-10-27 Thread Shapira, Yoav
Howdy, Yup, that's a good suggestion. You actually have extremely fine tuned control over the shutdown process, including: 1. Session destroyed 2. Servlet destroyed 3. Filter destroyed 4. Context destroyed 5. Any class finalize() method 6. Runtime#addShutdownHook(Thread hook) The above list is n

Re: servlets: automatic compilation: is it possible?

2003-10-27 Thread Christopher Schultz
Neil, When I want to deploy a web application I have to recompile the servlet (.java file) and place the produced class file (bytecode) under the WEB-INF/classes directory. Now, with JSP when you have a .jsp file the it all happens automatically: you don't have to manually produce and place any c

RE: Directories structure

2003-10-27 Thread Shapira, Yoav
Howdy, Use the directory structure outlined here for tomcat 4.x and 5.x: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Freddy JSP [mailto:[EMAIL PROTECTED] >Sent: Monday, October 27, 2003 7:15 AM >To:

Re: How to use JAVA_OPTS with Apache tomcat4.0.6

2003-10-27 Thread Jacob Kjome
You need to read the docs a bit closer and remember that Java is case sensitive... http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html#options try using... java -Xms128m or java -Xmx256m Jake At 10:02 AM 10/27/2003 +0530, you wrote: Dear Sir/Madam, Please tell me how can I in

Re: Missing jdbc context

2003-10-27 Thread Christopher Schultz
Hans, Set debug="99" for your server, engine, host, so you can see why tomcat is running into errors processing server.xml. Unfortunately, that setting does not provide any more information about the problem. If this happening when you're trying to use a realm or something like that? I wrestled

URL of calling JSP page calling a servlet.

2003-10-27 Thread anunay ashish
Hi, I want to trap the url of the JSP page calling a servlet. I want to use the url in the servlet to determine my course of action. Thanks in advance. Regards, Anunay Ashish. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

RE: modifying shutdown behaviour?

2003-10-27 Thread Bodycombe, Andrew
You could implement a ServletContextListener. The contextDestroyed() method will be called when your application is about to be removed. -Original Message- From: Julie McCabe [mailto:[EMAIL PROTECTED] Sent: 27 October 2003 13:30 To: [EMAIL PROTECTED] Subject: modifying shutdown behaviour?

  1   2   >