RE: FORM based authentication LOGOUT

2006-11-02 Thread Caldarale, Charles R
> From: John McPeek [mailto:[EMAIL PROTECTED] > Subject: FORM based authentication LOGOUT > > I have tried to invalidate the session and get a new one. > No Dice. When you say "No Dice", what actually happens? All the admin app for Tomcat does is the following, which seems to work: Htt

FORM based authentication LOGOUT

2006-11-02 Thread John McPeek
Hi, I have written a JAAS LoginModule and use it with FORM based authentication. Everything works fine, except I can't figure out how to log a user out. I have tried to invalidate the session and get a new one. No Dice. I did a search on the source and didn't find much. There are articles on t

Re: forced to constantly restart Tomcat

2006-11-02 Thread Tuomas
> The server is most likely running a linux OS or similar. Such systems > don't allow non-root users to bind to ports below 1024. I THINK it I have solved it, with your support. http://www.coreservlets.com/Apache-Tomcat-Tutorial/ install Tomcat on Windows and the author recommends editing conf/s

Re: Could a bad servlet initializtion stop tomcat?

2006-11-02 Thread David Smith
A lot of things are possible. I'm sure a context could fail to start because of bad code. Even seen it happen once or twice. The whole container? I'll say possible, but the code would have to do some really terrible things. I can't see it happening by accident unless you call System.exit()

Re: Could a bad servlet initializtion stop tomcat?

2006-11-02 Thread Martin Gainty
Yaar- try init() { try { //code here } catch(Exception excp) { System.exec("/PATH/TO/JAKARTA/bin/shutdown.sh"); } } Anyone else? Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. I

Could a bad servlet initializtion stop tomcat?

2006-11-02 Thread Yaar Schnitman
Is there a way to make the failure of a single servlet's initialization stop the initialization of the other servlets, or even stop tomcat with an error? The issue is that my system operators fail to notice initialization errors. ---

Re: forced to constantly restart Tomcat

2006-11-02 Thread Martin Gainty
It appears someone mucked up your socket permissions inside %TOMCAT_HOME%/conf/catalina.policy check for this SocketPermission grant grant { permission java.net.SocketPermission "localhost:80", "accept,connect,listen,resolve"; } Martin -- This e-mail communication and any attachments may contain

Re: forced to constantly restart Tomcat

2006-11-02 Thread David Smith
Error 1: SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use You most likely have another instance of tomcat running Error 2: SEVERE: Error initializing endpoint java.net.BindException: Permission denied:80 The server is most likely running a linux OS or s

Re: log question and lambda probe

2006-11-02 Thread mast
I thought that logguer className in the conf doesn t work anymore? (and that can t be put in a context.xml ?) For the listing it can be overriden by user in their web.xml no ? and it will ony denied to being browsed not being readen if you specify the file tomcat-users.xml ? Regards - Ori

Re: forced to constantly restart Tomcat

2006-11-02 Thread EDMOND KEMOKAI
Is there a reason you can't use something like netbeans? which comes bundled with tomcat, that way your don't have to fiddle with the settings. Looks like you may be starting multiple instances of tomcat and the port is already in use. On 11/2/06, Tuomas <[EMAIL PROTECTED]> wrote: > The catalin

RE: forced to constantly restart Tomcat

2006-11-02 Thread Tuomas
> The catalina files are more likely to have something of interest. In > particular, look during the time period right after you make the browser > request. See if anything like these messages is in there: Here is it. I cannot decipher it. Sorry for the lengthy quotation. Nov 2, 2006 9:27:42 PM

Re: FW: question regarding 'mod_jk: error flushing'

2006-11-02 Thread Durk Strooisma
Thanks for looking into the source code. Well as long as no functional or performance problems arise in our web applications it seems to be okay. But, of course, the error messages are not really satifying. Anyway, I'll keep in mind that versions of mod_jk from 1.2.14 and above will not be able t

Re: forced to constantly restart Tomcat

2006-11-02 Thread Tuomas
> If you're getting a "connection refused" error, it may be that you're > using > the wrong local host IP address. check the sys/host file, it may have an > entry in there that looks like this: > > your_user_name 127.0.1.1 desktop:/etc# cat /etc/hosts 127.0.0.1 localhost.localdomain local

Re: forced to constantly restart Tomcat

2006-11-02 Thread EDMOND KEMOKAI
If you're getting a "connection refused" error, it may be that you're using the wrong local host IP address. check the sys/host file, it may have an entry in there that looks like this: your_user_name 127.0.1.1 That would indicate the localhost for your user account is 127.0.1.1 instead of 127.

RE: forced to constantly restart Tomcat

2006-11-02 Thread Caldarale, Charles R
> From: Tuomas [mailto:[EMAIL PROTECTED] > Subject: RE: forced to constantly restart Tomcat > > I didn't find anything "special" in the localhost file. The catalina files are more likely to have something of interest. In particular, look during the time period right after you make the browser r

RE: forced to constantly restart Tomcat

2006-11-02 Thread Tuomas
> Didn't realize Tomcat was being used in Middle Earth... Fighting Sauron... His shadow seems to have taken over my computer. :-/ > What's in the Tomcat log files? desktop:/usr/local/bin/apache-tomcat-5.5.20/logs# ls -lh total 112K -rw-r--r-- 1 tuope tuope 0 Nov 2 18:43 admin.2006-11-02.log

RE: log question and lambda probe

2006-11-02 Thread Robert Harper
I think you can specify a full path but Tomcat must have full access to the other directory. Set in the [Catalina_home]/conf/server.xml file. As for hiding the tomcat-users data from being browsed, you will have to turn off directory listings listings false For the default ser

RE: forced to constantly restart Tomcat

2006-11-02 Thread Caldarale, Charles R
> From: Tuomas [mailto:[EMAIL PROTECTED] > Subject: forced to constantly restart Tomcat Didn't realize Tomcat was being used in Middle Earth... > "Test 1: A Servlet That Does Not Use Packages" Probably not a good test, since packages are required for almost everything these days - but it's not

Re: FW: question regarding 'mod_jk: error flushing'

2006-11-02 Thread Rainer Jung
I'm afraid I can't tell for sure. I browsed a little through the apache code but not deep enough. The call has been removed after a discussion more or less based on "no other module calls flush like mod_jk, just remove it". I didn't find a reliable source of information, when ap_rflush() is nee

forced to constantly restart Tomcat

2006-11-02 Thread Tuomas
Hi! I have a problem that mystifies me. I have followed the instructions given in to the tiniest detail (in my opinion). And in fact, I have managed to get to the Tomcat's welcome page, and I successfully "passed" the test "Test 1: A Servlet Th

Re: log question and lambda probe

2006-11-02 Thread mast
Nobody has ideas ? - Original Message - From: mast To: Tomcat Users List Sent: Wednesday, November 01, 2006 12:27 AM Subject: log question and lambda probe Hi again, i have download the lambda probe to see how it was and i have notice some things with log, in their cont

RE: Modifying the response

2006-11-02 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Modifying the response > > can you be more specific on this bug? I gave a link to the thread that discussed the issue - which you apparently ignored. Here it is again: http://marc.theaimsgroup.com/?t=11613669471&r=1&w=2 - Chuc

Re: Modifying the response

2006-11-02 Thread Martin Gainty
Hello Charles- can you be more specific on this bug? Thx, M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have receiv

Re: Multiple paths to one application

2006-11-02 Thread Martin Gainty
actually the performance is better as you have control over what is being accessed, who is accessing and you dont have to play games with external http servers such as IIS / Apache M- This e-mail communication and any attachments may contain confidential and privileged information for the use of

Re: Modifying the response

2006-11-02 Thread Tremal Naik
2006/11/2, Caldarale, Charles R <[EMAIL PROTECTED]>: There is a known bug in IE6 that loses the port number while handling redirects. This thread may be related: yes, I use a valve to filter all incoming request to fix this problem. Or it might not be. You could try IE7 to see if that cures

RE: Multiple paths to one application

2006-11-02 Thread Caldarale, Charles R
> From: Peter Neu [mailto:[EMAIL PROTECTED] > Subject: AW: Multiple paths to one application > > My problem is that I have parts of my application which are > restricted and I just want to filter the path requests with > the httpd server which sits in front of tomcat so that I > don't to configu

AW: AW: Multiple paths to one application

2006-11-02 Thread Peter Neu
Yes, I know this reaction but what are you gonna do when you are told Put user authentication in the DMZ, filter on an XOR basis between ip address and password? I did not find any better way. Besides how is it possible to connect to an port in the intranet which is closed and only open for an fix

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 easier

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 th

Re: AW: Multiple paths to one application

2006-11-02 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I hope that this is not really the reason why you want two paths to the application? Tomcat has user authentication built in!? Why not use it?! Otherwise, some smart user is going to have the idea of connecting directly to your tomcat instance.

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 str

AW: Multiple paths to one application

2006-11-02 Thread Peter Neu
This means when I configure it like this it makes no difference to just deploying the same application twice with different paths, right? My problem is that I have parts of my application which are restricted and I just want to filter the path requests with the httpd server which sits in front of

RE: Problem using Flush method from PrintWriter class on tomcat5.0.30

2006-11-02 Thread Caldarale, Charles R
> From: Debianito [mailto:[EMAIL PROTECTED] > Subject: Problem using Flush method from PrintWriter class on > tomcat5.0.30 > > Everything worked perfect till I move it to the actual version of > tomcat5 on Debian Testing system, which is 5.0.30-12, on tomcat > 5.0.30-10 it stills working. A ste

Re: How to get fields list in order

2006-11-02 Thread Christopher Schultz
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 the JIT for the platform decides to

RE: How to get fields list in order

2006-11-02 Thread Caldarale, Charles R
> 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 > structure is 4 bytes,

Re: How to get fields list in order

2006-11-02 Thread Christopher Schultz
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 easier to create windows standard

Problem using Flush method from PrintWriter class on tomcat5.0.30

2006-11-02 Thread Debianito
Hello everyone, First of all, thanks in advance for bringing me a bit of your time. I had an app built using j2se 1.5.0 which, in some part of it some data must be exchanged by the user with an external resource throw a browser form (and it takes some time to post the data), so it generates a d

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 To modify return parameters, I need the byte offsets of the various pieces of the structure, which I'm mirroring in my java classes. That's a very scary way to do it.

RE: How to get fields list in order

2006-11-02 Thread Caldarale, Charles R
> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: How to get fields list in order > > To modify return parameters, I need the byte offsets of > the various pieces of the structure, which I'm mirroring > in my java classes. That's a very scary way to do it. Using order to determine

RE: Multiple paths to one application

2006-11-02 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple paths to one application > > Doesn't this only work if your application replaces the 'ROOT' > application? Correct. If you want two names for the same app, you could place an additional element in conf/[engine]/[host]/[ap

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 the

RE: Modifying the response

2006-11-02 Thread Caldarale, Charles R
> From: Tremal Naik [mailto:[EMAIL PROTECTED] > Subject: Modifying the response > > This causes Explorer 6 giving the error "Cannot find server". Mozilla > Firefox is working fine. There is a known bug in IE6 that loses the port number while handling redirects. This thread may be related: http:

Deployment Problem using context.xml

2006-11-02 Thread mailinglist
I'm indirectly involved in a web application that we are deploying to a Tomcat 5 environment. When I say 'indirect', it's because I originally wrote most of the application, but now other people are responsible for it. Anyway, the application has had no problem working with Tomcat when it was dep

Re: How to get fields list in order

2006-11-02 Thread Christopher Schultz
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 their starting > byte offsets

Re: Context reload mandatory ?

2006-11-02 Thread Mikolaj Rydzewski
Mikolaj Rydzewski wrote: This webapp writes some reports under ($TOMCAT_HOME/webapps/ABCReports) It is a bad thing. Oh, I misread that you already has two contexts ;-) -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature

[resolved] RE: Context reload mandatory ?

2006-11-02 Thread Remy.Coqueugniot
Thanks for your advice, About this webapp design. The case is : 1-Some users may submit an analyse. 2-This analyse must complete asynchronously, and send a mail when it's done. 3-The URL of the report is include in the mail. 4-When it has been read, the user may delete it. So no need to 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: Context reload mandatory ?

2006-11-02 Thread Mikolaj Rydzewski
[EMAIL PROTECTED] wrote: Indeed, the work dir is full of cloned webapps, and until a reload the ABCReports doesn't contain my pages. But how can I specify ABCReport not doing this copying job? Disabling antiJar/antiResource Locking ? I think you should redesign your application. This weba

Re: Modifying the response

2006-11-02 Thread Tremal Naik
2006/11/2, Pid <[EMAIL PROTECTED]>: Using a valve seems a bit crazy, even a filter seems excessive. ok, what do you suggest? I'm not quite clear on what the problem is; is it that IE is misbehaving, or is it that your app is gaining a query string where it's unnecessary? both. If Mozilla Fi

Re: problem starting tomcat

2006-11-02 Thread Rob Berens
Hi Raffaele, Raffaele Viola wrote: I solved the problem. The server had a incorrect LOOPBACK interface settings Thanks Raffo I seem to have the same problem. Could you please tell what changes you made to the LOOPBACK interface settings. Thanks in advance, Rob Berens -

RE: Context reload mandatory ?

2006-11-02 Thread Remy.Coqueugniot
Thanks for your answer. > This causes the app to be copied to the work directory and > read from there. Anything you write to you web app won't have > been copied, hence the 404. The reload causes the files to be > recopied. Indeed, the work dir is full of cloned webapps, and until a reload the

Re: Modifying the response

2006-11-02 Thread Pid
Tremal Naik wrote: > 2006/11/2, Tremal Naik <[EMAIL PROTECTED]>: >> I'd like to filter the response to strip the unnecessary query string >> from the Location header. Should I use a Valve or a Filter or what? > > I noticed that I can change the header Location after the invoke() > call in a Valve:

Re: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-02 Thread Mark Thomas
Zsolt Koppany wrote: > David, > > it is very simple. If the jar file (ditchnet-tabs-taglib.jar > http://ditchnet.org/tabs/) is under > /install_dir/tomcat/webapps/APPLICATION/WEB-INF/lib the > ServletContextListener is not called I need the following lines in my > web.xml: > > > > org.ditchnet

Re: Context reload mandatory ?

2006-11-02 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > This webapp writes some reports under ($TOMCAT_HOME/webapps/ABCReports) > When The reports is ready, an URL acces attempt on > http://localhost/ABCReports/report.html give me an 404 error. > In the manager when I reload the "ABCReports" context, the same URL is > OK. > >

Re: Modifying the response

2006-11-02 Thread Tremal Naik
2006/11/2, Tremal Naik <[EMAIL PROTECTED]>: I'd like to filter the response to strip the unnecessary query string from the Location header. Should I use a Valve or a Filter or what? I noticed that I can change the header Location after the invoke() call in a Valve: getNext().invoke(request, re

Tomcat authenticate with Active directory

2006-11-02 Thread Johannes
I have a webapp that I want to protect the best way possible. Our environment has previously been Windows and still are but our new system is running tomcat 5.0. Now I would like to protect one part of our setup with login from our Windows 2003 Active directory domain server when there is a lot

RE: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-02 Thread Zsolt Koppany
David, it is very simple. If the jar file (ditchnet-tabs-taglib.jar http://ditchnet.org/tabs/) is under /install_dir/tomcat/webapps/APPLICATION/WEB-INF/lib the ServletContextListener is not called I need the following lines in my web.xml: org.ditchnet.jsp.taglib.tabs.listener.TabServletContext

RE: JNDI Realm and Active Directory root search

2006-11-02 Thread Zsolt Koppany
Matt, what do you mean with 'referrals="follow"' ? Is that a jndi configuration option ? Zsolt > -Original Message- > From: Matt Warren [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 01, 2006 6:24 PM > To: Tomcat Users List > Subject: Re: JNDI Realm and Active Directory root searc

Modifying the response

2006-11-02 Thread Tremal Naik
Hello, I'm using SSLExt to manage https redirection in a Struts 1.1 project. SSLExt (http://sslext.sourceforge.net/) is a framework to let Struts application easily switch back and forth from a secure channel when a page displays sensitive data (i.e. password input forms) If the user requests a p

Re: FW: question regarding 'mod_jk: error flushing'

2006-11-02 Thread Durk Strooisma
Alright, thanks for your explanation! Are the "mod_jk: error flushing" messages more or less harmless? If so, I prefer sticking to 1.2.6 for the moment. Durk > Hi Durk, > > the flushing has been changed in May 2005 around the time of version > 1.2.13 or 1.2.14. Previously there were a lot of cal

Context reload mandatory ?

2006-11-02 Thread Remy.Coqueugniot
Hi tomcat users. My environment: Win32 + Tomcat 5.5.17 + JDK 1.4 + 1.4 compatibility package I've got a webapp deployed under the context name /ABC ($TOMCAT_HOME/webapps/ABC) This webapp writes some reports under ($TOMCAT_HOME/webapps/ABCReports) When The reports is ready, an URL acces attempt on

Re: Multiple paths to one application

2006-11-02 Thread Stephan Schöffel
you are right. you still have to include the webapps folder in your path. therefore it would work this way: localhost/myapp/path1/servlet1 localhost/myapp/path2/servlet2 i guess you had to replace the root app to have just / as your app folder... (just as you said) --stephan Andrew Miehs wr

Re: Multiple paths to one application

2006-11-02 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doesn't this only work if your application replaces the 'ROOT' application? Andrew On 02/11/2006, at 9:56 AM, Stephan Schöffel wrote: if you map them to one app in your web.xml you can have different paths link to one app. like: MyS

Re: Multiple paths to one application

2006-11-02 Thread Stephan Schöffel
if you map them to one app in your web.xml you can have different paths link to one app. like: MyServlet my.Servlet MyServlet /path1/servlet1 MyServlet /path2/servlet2 both links would map to MyServlet ie my.Servlet.class Peter Neu w

Multiple paths to one application

2006-11-02 Thread Peter Neu
Hello, is here a way to have multiple paths configured for one apps? Like : Localhost/path1/servlet1 Localhost/path2/servlet2 Cheers, Pete - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [

Re: Unable to read TLD "META-INF/c.tld" from JAR file

2006-11-02 Thread Vasiliy Keretsman
I am sorry I didn't see the details. perhaps there is a problem with running tomcat with compatibility package and having tld's in WEB- INF/lib/standard.jar file. Yes, it might be that. I am running Tomcat 5.0.28 on JDK5 locally and it works. Do you know any resources or solution for this probl