RE: Help with reloading a servlet for log4j logging.

2005-05-25 Thread Mariano
You must use PropertyConfigurator.configureAndWatch(fileProperties,miliseconds) By Mariano -Mensaje original- De: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED] Enviado el: jueves, 26 de mayo de 2005 8:35 Para: tomcat-user@jakarta.apache.org Asunto: Help with reloading a servlet for log4j

Help with reloading a servlet for log4j logging.

2005-05-25 Thread Subhrajyoti Moitra
Hi, I am initializing Log4J system using an init servlet, which is loaded on start-up (servlet name is Log4JInitServlet). In web.xml I am pointing to the log4j.properties file using the tag. Problem Now suppose I change some properties in log4j.properties file. (change the log level f

Re: blank page on invalid form

2005-05-25 Thread Nikola Milutinovic
Andy wrote: Hi All, I'm unable to output any errors using tag, in Tomcat 5.5.7 I've tried numerous configurations and have now ran out of patience. As I haven't been using Struts for more than three days I hope somebody more experienced can point help me out. When I select Submit, entering da

Re: Force Non-SSL

2005-05-25 Thread Nikola Milutinovic
August Detlefsen wrote: Is there no way to do it? SSL creates a lot of overhead for a site that is serving up 100MB image files. There are ugly or less ugly workarounds, like the one yahoo uses. Login can go against HTTPS, sets up it's version of session and then redirects the user to HT

Re: blank page on invalid form

2005-05-25 Thread David Smith
Look for an exception in the logs. Empty output usually means an uncaught exception. --David Andy wrote: Hi All, I'm unable to output any errors using tag, in Tomcat 5.5.7 I've tried numerous configurations and have now ran out of patience. As I haven't been using Struts for more than thre

Re: apache2 + mod_jk + tomcat 4.1.31 - jkstatus

2005-05-25 Thread Praveen KUMAR
Increase MaxThread in server.xml file Regards, Praveen Soni STMicroelectronics Pvt Ltd. Arnar Gestsson wrote, On 05/25/2005 02:45 PM: Hi all, I've installation of apache2, mod_jk and tomcat4.1.31 where the apache is serving port 80, and 5 vhost are directing jsp/servlet requests to 5 separ

Re: Force Non-SSL

2005-05-25 Thread Parsons Technical Services
Since there is no way to maintain the session without hacking Tomcat, as Tim said no. But what you could try is a single use password. User hits the SSL encrypted login page. User authenticates with normal username and password. Random string password is created and stored in database and put in

sign Files using Aladdin's eToken USB Pro

2005-05-25 Thread Carol Chamblas
i had configured tomcat to use secure connections (https), and i've included the root certificated from my CA in the cacerts file from JAVA_HOME. so, i've also installed the drivers from my eToken, and when i load my page with https, the certificated stored in my eToken is shown. when i choose

blank page on invalid form

2005-05-25 Thread Andy
Hi All, I'm unable to output any errors using tag, in Tomcat 5.5.7 I've tried numerous configurations and have now ran out of patience. As I haven't been using Struts for more than three days I hope somebody more experienced can point help me out. When I select Submit, entering data into my for

Prevent the Default Servlet from piggybacking data

2005-05-25 Thread Alan Chiang
Greetings all, I have attempted to scour the list for this problem, but I haven't been able to find it. This is a special case where I need Tomcat to serve MIDlets. When a handset downloads a JAD file, it processes the file and locates the corresponding JAR file. It will then proceed to download

Re: Force Non-SSL

2005-05-25 Thread August Detlefsen
Is there no way to do it? SSL creates a lot of overhead for a site that is serving up 100MB image files. --- Tim Funk <[EMAIL PROTECTED]> wrote: > no > > -Tim > > August Detlefsen wrote: > > In my webapp I force clients to use SSL encryption for logins with > a > > security constraint and tr

Re: Force Non-SSL

2005-05-25 Thread Tim Funk
no -Tim August Detlefsen wrote: In my webapp I force clients to use SSL encryption for logins with a security constraint and transport-guarantee elements like this: Login /login/* CONFIDENTIAL However, once a user hits the login

Force Non-SSL

2005-05-25 Thread August Detlefsen
In my webapp I force clients to use SSL encryption for logins with a security constraint and transport-guarantee elements like this: Login /login/* CONFIDENTIAL However, once a user hits the login page, every subsequent page also use

Re: Mysterious failures

2005-05-25 Thread Grant Ingersoll
On May 25, 2005, at 3:32 PM, Mark Eggers wrote: --- Grant Ingersoll <[EMAIL PROTECTED]> wrote: Thanks for the ideas. I cranked my debugging up to 99. There are a couple of things that I see, but don't know if they are serious: 1. SEVERE: The scratchDir you specified: /development/jakarta

Building mod_jk from source Apache2.0.52/Tomcat5.5.9/Solaris8 - aspx issues

2005-05-25 Thread uttam.g.dubal
In my staging environment I am attempting to create a mod_jk connector (1.2.13) between Apache 2.0.52 and Tomcat 5.5.9 on a Solaris8 box. The system is spitting out Errors with the apxs file. rc=65536. Are there any known issues around this? Also, I am using JDK 1.4.2_08 Are there any known

Re: Tomcat/Personal Web Server Problem

2005-05-25 Thread Jason Bainbridge
On 5/25/05, Robin Rembish <[EMAIL PROTECTED]> wrote: > I had both Tomcat 4.1 and Microsoft Personal Web Server installed on my > laptop ( an IBM Thinkpad - Windows NT operating system). It had been several > months since I used Tomcat. > > When I started the Tomcat server and typed in localhost:

Tomcat/Personal Web Server Problem

2005-05-25 Thread Robin Rembish
I had both Tomcat 4.1 and Microsoft Personal Web Server installed on my laptop ( an IBM Thinkpad - Windows NT operating system). It had been several months since I used Tomcat. When I started the Tomcat server and typed in localhost:8080 in the Internet Explorer address window, it brought me t

ConcurrentModificationException in 5.0.27

2005-05-25 Thread Ryan LeCompte
We discovered what appears to be a bug regarding a ConcurrentModificationException Tomcat 5.0.27. The problem arises when two web apps are deployed that are trying to interact with each other in some way. The exception isn't thrown when one of the web apps is taken out of the loop. Here is the rele

Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Will Hartung
> From: "Mladen Turk" <[EMAIL PROTECTED]> > Sent: Wednesday, May 25, 2005 10:08 AM > Sure all that is in place, but OTOH the http keep-alive connection *can* > be opened for several hours or days. > HTTP/1.1 uses persistent connections by default and you must explicitly > add the 'Connection: clos

Re: Mysterious failures

2005-05-25 Thread Mark Eggers
--- Grant Ingersoll <[EMAIL PROTECTED]> wrote: > Thanks for the ideas. I cranked my debugging up to > 99. > > There are a couple of things that I see, but don't > know if they are > serious: > 1. SEVERE: The scratchDir you specified: > /development/jakarta-tomcat-5.0.28/work/Catalina/localhos

Re: JAAS LoginModule weird error

2005-05-25 Thread Mark Thomas
Might be related to bug 22617 (which has been fixed in CVS). Mark Faine, Mark wrote: I've written a JAAS Login Module for my web application that authenticates against a third party (Documentum) content management server. It works fine but it seems to attempt to login once before the dialog is

RE: HttpSessionListener

2005-05-25 Thread Randy George
Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apac

RE: HttpSessionListener

2005-05-25 Thread Randy George
Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apac

Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Jason Bainbridge
On 5/25/05, Mladen Turk <[EMAIL PROTECTED]> wrote: > Nikola Milutinovic wrote: > > [EMAIL PROTECTED] wrote: > >> > > > > Then you're messing it up. HTTP has no paradigm of a session, which is > > what you need here. HTTP has a very clear request/response model. It is > > not designed to hold the HT

Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Mladen Turk
Nikola Milutinovic wrote: [EMAIL PROTECTED] wrote: Then you're messing it up. HTTP has no paradigm of a session, which is what you need here. HTTP has a very clear request/response model. It is not designed to hold the HTTP channel open indefinitely and will break off after a timeout. Time

RE: log files with servlets ?

2005-05-25 Thread rusty+tomcat
If you don't want to mess with your server.xml file, or you're a mere user and can't, you can do it easily with Apache log4j. Create the following file, log4j.properties and put it in your WEB-INF/classes directory. This will create a log file in /var/tmp named logtags.log. The docs for log4j

RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread Steve Kirk
Peter, I agree that > DNS is a very lumpy way of doing load balancing. But your comments interested me. Can I ask how sure you felt of what you say here please: > No standard way afaik. Worse, downstream DNS servers may (often do) > cache the returned IPs for up to a day despite any cache e

Re: HttpSessionListener

2005-05-25 Thread Will Hartung
> From: "Christoph Kutzinski" <[EMAIL PROTECTED]> > Sent: Wednesday, May 25, 2005 9:04 AM > I suspect that the Listener class is not found on the production server. > You should check your deployment. Are you deplyoing via WAR files in > both cases? Yea, I would make sure that your listener is ev

Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: Please, I need Advice for connections Hi guys. I need a technical advice using tomcat 5.0 Presently, tomcat server is used with JBOSS in a solution that I am developping for my clients. Users are connecting to the solution by invoking a servlet (runned by tomcat).

RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread Peter Crowther
> From: John MccLain [mailto:[EMAIL PROTECTED] > 1) for DNS Request Distribution - I dont understand. The > browser sends a URL > to the DNS, the DNS responds back with an IP address. But > what if at that IP > address, you have a web server listening on port 80? The browser talks to that Web s

Re: HttpSessionListener

2005-05-25 Thread Christoph Kutzinski
I suspect that the Listener class is not found on the production server. You should check your deployment. Are you deplyoing via WAR files in both cases? Randy George wrote: Hi Jacob, Thanks for the reply. My situation is a little more straightforward than the replication cl

DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread John MccLain
I was looking at the book, 'Tomcat: the definitive guide' last night, and the clustering chapter talked about load balancing via DNS Request distribution or TCP NAT distribution. Could someone explain these to me a little better in relation to Tomcat in a microsoft architecture? most of that book i

RE: HttpSessionListener

2005-05-25 Thread Randy George
Hi Jacob, Thanks for the reply. My situation is a little more straightforward than the replication cluster you are dealing with. In my case the first server is simply the development environment and the second server is the production deployment server. The two environments use id

RE: HttpSessionListener

2005-05-25 Thread Randy George
Hi Jacob, Thanks for the reply. My situation is a little more straightforward than the replication cluster you are dealing with. In my case the first server is simply the development environment and the second server is the production deployment server. The two environments use id

RE: Different Authentication Requirements Based On Connector, Por t or Protocol?

2005-05-25 Thread Wick, Daniel
You might think about using Apache HTTP server to proxy (mod_proxy) the external traffic back to your tomcat instance on ports 80 (80 <->8080) & 443 (443<->8443). I've run into situations where ports other than the "standard" 80 & 443 are blocked by corporate firewalls. You might be able to use a

Re: HttpSessionListener

2005-05-25 Thread Jacob Champlin
Randy, I don't believe you have session replication set up in your cluster. This is why when a session is created it only calls your HttpSessionListener on one box. The second box will only get the session if its replicated over to that box. However! I tried to do the same thing and I was

Different Authentication Requirements Based On Connector, Port or Protocol?

2005-05-25 Thread Daniel Rigal
Hi, We have a Tomcat server (without Apache HTTP server) serving on two ports, 8080 and 8443 (HTTP and HTTPS respectively) using two connectors as described in the various Tomcat SSL FAQs. What I want to do is require users coming in on port 8443 (from the internet) to pass basic user authentica

Doubt on Validator Plug in

2005-05-25 Thread Sriram_Mahalingam
Hi All, I get the following exception while validating a user name field . Struts Version is 1.2.4 Jakarta ORO version is 2.0.8 Validator Package version is 1.1.3 Error details : EVERE: org.apache.struts.validator.FieldChecks.validateMask(java.lang.Object, org.apache.commons.valid

error while precompiling JSP with ant file

2005-05-25 Thread bouml
Hi ! I want to precompile my JSP files with a ant file. after starting the ant file i get this error: java.lang.NoClassDefFoundError: org/apache/jasper/jspc Exception in Thread "main". I'm working with tomcat 3.3. I searched in all jar files but didnt find anything. After searching in all

error while precompiling JSP with ant file

2005-05-25 Thread bouml
Hi ! I want to precompile my JSP files with a ant file. after starting the ant file i get this error: java.lang.NoClassDefFoundError: org/apache/jasper/jspc Exception in Thread "main". I'm working with tomcat 3.3. I searched in all jar files but didnt find anything. After searching in all

Re: Validation of HowTo Deploy

2005-05-25 Thread Lionel Farbos
Because of no answer, I create a bug "enhancement" in bugzilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=35063) with the HowTo document and an example more complete. ... On Mon, 23 May 2005 19:12:07 +0200 Lionel Farbos <[EMAIL PROTECTED]> wrote: > 2nd test with the doc HTML inside...

Re: EJB3/JBoss Entity Bean remoting issue

2005-05-25 Thread Julian Templeman
> AccountServices service = (AccountServices) > context.lookup(AccountServices.class.getName()); > Account a = service.findAccountById(id); One thing occurs immediately: The lookup will be fine if AccountServices is a local interface on the bean. If it is a remote interface, you'll need to narrow

JAAS LoginModule weird error

2005-05-25 Thread Faine, Mark
I've written a JAAS Login Module for my web application that authenticates against a third party (Documentum) content management server. It works fine but it seems to attempt to login once before the dialog is even presented to the user. The logs show: DfPrincipalException:: THREAD: http-443-Pr

RE: redeploy of webapp loses GlobalNamingResource DataSource

2005-05-25 Thread bob_b
Thanks for the response Steve. It is certainly a good thing to check, but unfortunately not the issue here. Actually I know I have the driver correctly configured because I have been using it successfully for a v. long time :). My problem is specifically that on *redeploy* of a war file, the Cont

IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread kenoh
Please, I need Advice for connections Hi guys. I need a technical advice using tomcat 5.0 Presently, tomcat server is used with JBOSS in a solution that I am developping for my clients. Users are connecting to the solution by invoking a servlet (runned by tomcat). If a user is auhentified, th

EJB3/JBoss Entity Bean remoting issue

2005-05-25 Thread Alexander Taylor
Hi, I am having an issue with a ClassCastException whilst trying to remote an EJB3 entity bean. I have a simple Entity bean "Account" which appears to function perfectly. I then have a stateless session bean with the following function: public Account findAccountById(int id) { Account a = (Ac

RE: Performing an action on form-based login

2005-05-25 Thread Steve Kirk
Not maybe of direct help unless you get really stuck, but my approach was to use TCs sessions, but not its authentication framework. My original reasoning for this was that I wanted login details to be in a RDMS table along with other data. So I coded the login/logout process myself, which was a

RE: Validation Frame work

2005-05-25 Thread Steve Kirk
What a good point, especially as IE becomes harder and harder to secure, people are starting to turn off "active" content, which can include simple innocent js code. I'm a fan of the "lowest common denominator" approach to using HTML and JS features. > -Original Message- > From: Bernhard

RE: How to create user thread in tomcat

2005-05-25 Thread Steve Kirk
Write your thread class (myThreadClass) as implementing Runnable. Write a class that implements ServletContextListener and config it in web.xml like this: mypackage.MyScListenerClass Now have your ServletContextListener start a new thread using your Runnable

RE: Problem with Tomcat 5.5.9

2005-05-25 Thread Steve Kirk
Have you moved your config files across? conf/web.xml conf/server.xml conf/tomcat-users.xml conf/[engineName]/[hostName]/contextName.xml Do you have the welcome files configured in web.xml (either in conf/ or in the webapp's WEB-INF folder) ? What do they point to for /test/? If a servlet,

AW: Validation Frame work

2005-05-25 Thread Bernhard Slominski
I agree with Steve, but there is a much simpler possibility that the JS validation does not work: The user can just switch it off in the browser. This might not be just to bypass validation, but maybe just for security reasons, so for a business critical apllications I'd discourage anyone from usin

Re: Tomcat Training

2005-05-25 Thread epyonne
Since Tomcat is an open source application, no school has training class on that. You can check into the Apache organization as they might have something set up. But frankly, most people train by themselves. There are some good books on Tomcat that you can buy and study. Hope this helps. - O

Problem with Tomcat 5.5.9

2005-05-25 Thread Aleksandar Valchev
Hi, please advise possible reason for: We have a java web application running under Tomcat 5.0.19 without problems. After upgrade to Tomcat 5.5.9 we encountered the following: When requesting "http://localhost:8080/test/";(where "test" is our webapp context) an empty page with the follo

How to create user thread in tomcat

2005-05-25 Thread Terence Chan
Hi, Please help. I would like to create a thread or service that start running once the web server is started. This thread need to communicate with other applications using HTTP protocol. Terence -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Da

RE: log files with servlets ?

2005-05-25 Thread Steve Kirk
For how to set up logging of your Java servlet code on 5.0.28, you need to add a to your conf/server.xml file, inserting it inside your ... or ... tags will probably get you going. To get apache-httpd type logging going, you need a , again insert it within your Engine or Host tags, looks a bit l

Re: Minimal server

2005-05-25 Thread Giuseppe Briotti
> == > Date: Tue, 24 May 2005 10:42:46 -0700 (PDT) > From: Dola Woolfe <[EMAIL PROTECTED]> > To: Tomcat Users List > Subject: Re: Minimal server > == > > Yes, I think Will captured what I'm trying to do. > Let me give you a slightly more specific de

apache2 + mod_jk + tomcat 4.1.31 - jkstatus

2005-05-25 Thread Arnar Gestsson
Hi all, I've installation of apache2, mod_jk and tomcat4.1.31 where the apache is serving port 80, and 5 vhost are directing jsp/servlet requests to 5 separate workers. I'm entering into bottlenecks where one of the workers issues, "threadpool full". I've had problems debugging the situation and

log files with servlets ?

2005-05-25 Thread Jean-Luc Douville
I am testing MIDlets connection to servlet. I am using Netbeans 4.1 with mobility pack, Tomcat bundled with NB (5.5.7) or external Tomcat (5.028). I have added an EchoServlet under TomcatServletExample (Servlet v 2.3). My EchoServlet can respond to POST and GET methods. It is OK when i send par

RE: Mysterious failures

2005-05-25 Thread Steve Kirk
Sorry but I don't use apache-httpd so can't help you there, although would comment that if you have mod_jk compilation warnings they sound worth looking at. My only experience of httpd with tc gave me the impression that it was unreliable. Although to be fair that was a few versions back, on wind