Getting Principal into Session

2006-02-17 Thread Cindy
According to servlet spec, the only way to tell if a request has been authenticated is request.getUserPrincipal() returning a non-null Prinicpal object. Is it possible to obtain such an object from the current HttpSession instead? Or, I should say is there any facility provided by Tomcat to co

RE: Very weird isapi_redirect - bug on one webapp only

2006-02-17 Thread David Thielen
Never mind - weirdness in the virtual directory I set up - this is fixed. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 9:07 PM To: tomcat-user@jakarta.apache.org Subjec

RE: Very weird isapi_redirect - bug on one webapp only

2006-02-17 Thread David Thielen
Hi; This is with the release isapi_redirect, not the new one by Mark. I have installed Tomcat and isapi_redirect on a new web server. It all works fine for 4 webapps. But for the 5th one, while it comes up fine using http://www.windward.net:8080/forums/index.jsp, it fails for http://www.win

Re: Tomcat 5.5.15 Clustering ?

2006-02-17 Thread David Avenante
Ok so question .. if I configure my tomcat with apr (Apache Portable Runtime) it's isue be solved ? I've listen that futur version of Tomcat will embed APR as natif and i can run Tomcat without apache in fronted with same performance and with support of other scripring language like PHP Is i

RE: VirtualHost + SSL and only one ip

2006-02-17 Thread George Sexton
If it was possible to do it with re-write rules that the Apache HTTPD FAQ that I originally referenced would have mentioned that. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Haluk Durmus [mailto:[EMAIL PROTECTED] > Sent:

RE: VirtualHost + SSL and only one ip

2006-02-17 Thread Haluk Durmus
I thought that my be the load balancer is able to differ the DNS. But I learnd that at leas our loadbalacer has not this bility. This could be done with an other Tomcat or Apache and some rewrite rules ... thx, Haluk > And since the HOST argument has not yet been presented, how would the load > ba

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Tim Lucia
Sorry - I was not clear. You need to define the resources (not the contexts), before you can refer to them. In your context, you specify the name (think symlink) of the resource as a reference, and in the global context, the customer fills in a datasource, mailsession, etc., for that name. See h

Re: Where to place JNDI sections for customer deployment

2006-02-17 Thread Darren
I have been testing this (as if I was a customer) so I can write instructions for the customers. I tried adding my JNDI entries into $CATALINA/conf/server.xml within a Context declaration, but it seemed to prevent me deploying the war file correctly. While testing I use the manager applic

Re: sePrincipal

2006-02-17 Thread Ken Johanson
[EMAIL PROTECTED] wrote: Thanks for reply Bill. Is there anyway to setPrincipal on HttpServletRequest? can I cast to concreate class that implemented that HttpServletRequest? Which class is it? Anil, is this what you are looking for? http://issues.apache.org/bugzilla/show_bug.cgi?id=38658

RE: configuring mod_jk with apache / tomcat

2006-02-17 Thread Richard Mixon
Brad, I also am running SuSE SLES9 and have mod_jk connecting apache to tomcat. Here are the packages I have installed: # rpm -qa | egrep apache2 apache2-example-pages-2.0.49-27.29 apache2-mod_php4-4.3.4-43.46.8 apache2-prefork-2.0.49-27.38 apache2-devel-2.0.49-27.34 apache2-worker-2.

Re: Tomcat 5.5.15 Clustering ?

2006-02-17 Thread Filip Hanik - Dev Lists
you're welcome, glad I could help. there is one problem that you have on your linux box, NIO is not working properly, so disabling acknowledgements solved that problem (waitForAck="false") Filip David Avenante wrote: OK i continu to explore this multicast problem on my boxes So what i've l

Re: Tomcat 5.5.15 Clustering ?

2006-02-17 Thread David Avenante
OK i continu to explore this multicast problem on my boxes So what i've learn I learn that it's right to develop J2EE application on Linux. I can see very quickly problem that i can find in production infrastructure. i'm sure on windows all my problemes was be masked. It's improve my knlowl

RE: [May Be Spam] Re: Rolling mod_jk logs

2006-02-17 Thread Earnie Dyke
Thanks for the info. Earnie! -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 2:45 PM To: Tomcat Users List Subject: Re: [May Be Spam] Re: Rolling mod_jk logs Earnie Dyke wrote: > This would probably work had I not failed to mention that we

Re: [May Be Spam] Re: Rolling mod_jk logs

2006-02-17 Thread Mladen Turk
Earnie Dyke wrote: This would probably work had I not failed to mention that we use IIS instead of Apache. :-( Guess I got "rolled" after all!! :-) Right, I'm afraid isapi_redirect does not support log rotation. Regards, Mladen. -

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Duan, Nick
If you (or someone else) have full control of the database configuration, not your customers, you may consider using a true JDNI server. The JNDI implementation provided by Tomcat (or most of the app servers in the market today) are not true JDNI services, but only a look-up table, because objects

Re: New isapi_redirect.dll has problems

2006-02-17 Thread Mark Thomas
David Thielen wrote: > Hi; > > Ok, I went back to Info and it is happening again. I think it's the logging > because the IIS logs don't match the isapi log. Not only does the list of > files not match (these are the only places most of these filenames occur) > but there are files listed in the isa

RE: [May Be Spam] Re: Rolling mod_jk logs

2006-02-17 Thread Earnie Dyke
This would probably work had I not failed to mention that we use IIS instead of Apache. :-( Guess I got "rolled" after all!! :-) Earnie! -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 2:16 PM To: Tomcat Users List Subject: [May Be Spam] Re

Re: Rolling mod_jk logs

2006-02-17 Thread Mladen Turk
Earnie Dyke wrote: Greetings all. Is there a way to configure mod_jk to roll its log file? Only if you put the 'rock' in front. Then mod_jk will rock'n'roll it's log files :) Sorry, I had to ;) Anyhow, I suppose you might be interested in log rotation. The syntax is the same as for the Ap

Re: Tomcat 5.5.15 Clustering ?

2006-02-17 Thread Filip Hanik - Dev Lists
Perfect David, and as far as I can tell, the latter sequence that you present, clustering and session replication is working just fine. now, obviously your system is not setup correctly to bind an interface to the multicasting, so don't do it if it works without it. so what have you learned? :)

Rolling mod_jk logs

2006-02-17 Thread Earnie Dyke
Greetings all. Is there a way to configure mod_jk to roll its log file? Earnie!

Re: Tomcat 5.5.15 Clustering ?

2006-02-17 Thread David Avenante
-- Ok so let's go ;) My two tomcat are stopped and i run the MCaster on both box >From agnes java -cp tomcat-replication.jar MCaster 224.0.0.1 45564 ovea-inspiron Usage MCaster [address port message] BEGIN TO RECEIVE SENT:ovea-inspiron1 RECEIVED:ovea-inspiron1 FROM /192.168.2.102:45564 BEGIN TO R

Re: Client Cert

2006-02-17 Thread David Tonhofer, m-plify S.A.
--On Friday, February 17, 2006 2:01 PM -0300 Luis Henrique <[EMAIL PROTECTED]> wrote: I dont care about the session security. I just want to associate the broser user with one in my database. For this a need to get his cert. You *can* set up HTTPS then drop to NULL encryption :-P To get the

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Tim Lucia
You should have the *customer* add these to the global data sources, using the admin tool, or by adding the xml fragments (you can ship) to server.xml themselves. Tim -Original Message- From: Darren [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 11:00 AM To: users@tomcat.apa

Re: Client Cert

2006-02-17 Thread Luis Henrique
I dont care about the session security. I just want to associate the broser user with one in my database. For this a need to get his cert. On 2/17/06, Duan, Nick <[EMAIL PROTECTED]> wrote: > What do you want to accomplish? SSL is the only (I mean one that is > established) way to ensure a secure

Re: Problems with web.xml file

2006-02-17 Thread Dhaval Patel
Hi Mark, What kind of error do you get? 404? Is there any exception on catalina.out? Try this: Secure Area /secure/* GET POST CONFIDENTIAL Regards, D --- Mark Whitby <[EMAIL PROTECT

RE: Client Cert

2006-02-17 Thread Duan, Nick
What do you want to accomplish? SSL is the only (I mean one that is established) way to ensure a secure session. ND -Original Message- From: Luis Henrique [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 10:11 AM To: users@tomcat.apache.org Subject: Client Cert Is there anywa

Re: configuring mod_jk with apache / tomcat

2006-02-17 Thread David Avenante
1 - Yes it's seems the good binary. 2 - sample part httpd.conf to add for support mod_jk in apache # Load mod_jk module LoadModulejk_modulemodules/mod_jk.so JkWorkersFile /etc/apache2/jk-workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevelERROR JkLogStampFormat "[%

Re: Problems with web.xml file

2006-02-17 Thread Mark Whitby
Just to update you on this problem, I've now got the error page working (I needed /error.jsp and not just error.jsp) but I am still having problems with the tag. When I try to use this I end up with the generic Tomcat 404 error page and can't load up a single page. Once I comment this out ev

Where to place JNDI sections for customer deployment

2006-02-17 Thread Darren
Hi, I am running Tomcat 5.5.9 and would like to deploy an application (as a war file) to various customers, but I am having trouble finding the best place for JNDI lookups. During development I kept everything inside the war file and placed my JNDI entries in $WAR/META-INF/ context.xml, b

Re: Update: Robots cannot read JSP?

2006-02-17 Thread Hassan Schroeder
On 2/17/06, Scott Purcell <[EMAIL PROTECTED]> wrote: > My web site is a struts application, and is the default app. The way the > site is configured, it is the root app, and I configured the root app to > use welcome-file as a .jsp. So when the user hits the url > it goes to a jsp page, which the

Problems with web.xml file

2006-02-17 Thread Mark Whitby
Hi there, I've set up a basic web.xml file to test that my ssl connection is working fine for the specified pages to be protected in this way and to test to see if my custom 404 error page works fine. I've got the certificate for my SSL page working fine and I've tested it before, but since I'

RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-17 Thread George Sexton
And yet it would be so easy to test. You seem to think that the presence of this header (and how it alters the page results) will affect both browsers in the same way. Why do you think this? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message

RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-17 Thread George Sexton
Since less than 2% of the users out there now have IE 5.x, I would personally drop this. Even further, once you set a valid doctype you ought to think about running your pages the the w3 validator http://validator.w3.org/ Doing so can reduce the cases where your pages work differently in differe

ClassLoader problem during deserialization/restoring

2006-02-17 Thread Ugur Dincer
Hi, I've some ClassNotFoundException problem. All the objects I want to serialize and deserialize implements Externazible/Serializable. I'm running Tomcat 5 and JAVA5. The .jar lib implementing serialization and deserialization of the application reside under server/lib (Catalina loader) an

Re: [Fwd: How can we capture all errors without defining it]

2006-02-17 Thread Len Popp
You need a separate error-page declaration for each error code, according to the servlet spec. The set of HTTP status codes is limited, so after a couple minutes of copy & paste you'll be done with it. On 2/16/06, Java Pro <[EMAIL PROTECTED]> wrote: > Is there anyone who can help me with this quer

Client Cert

2006-02-17 Thread Luis Henrique
Is there anyway to request a client cert without https? Thanks for your help Luis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Update: Robots cannot read JSP?

2006-02-17 Thread Leon Rosenberg
wget www.theuniquepear.com saves the welcome.do page. So it seems to work. Btw. I would suggest you change your mapping from .do to .html or change your mapping to path-mapping and not extension: /unique/do/welcome instead of /unique/welcome.do. For better indexing change 'do' through something me

Re: JAAS in Tomcat

2006-02-17 Thread Mohan Radhakrishnan
Hi, Now I have made some progress. My policy file is grant CodeBase "file:C:/apache-tomcat-5.5.15/webapps/struts-blank" Principal * * { permission javax.security.auth.AuthPermission " createLoginContext.WhitePaper"; permission java.util.PropertyPermission "java.home", "read"; perm

Re: Session Expires At Every Request (Tomcat5.0.28/Firefox)

2006-02-17 Thread Filip Hanik - Dev Lists
Hi Michael, use LiveHttpHeaders to track all requests until you get your "session" expired. Then post the log from that here. You only posted one request, how can a session expire for one request :) -> it can't Filip Michael Andreas Omerou wrote: Dear all, Thanks for your replies to my prob

Update: Robots cannot read JSP?

2006-02-17 Thread Scott Purcell
I started the below thread last weekend, and upon suggestions, I have changed some javascript redirects to get to my site, into some JSP redirects, based upon user input earlier this week. In a nutshell, I am trying to make sure that robots can index my web site. My web site is a struts applicati

Re: configuring mod_jk with apache / tomcat

2006-02-17 Thread Brad O'Hearne
Bump. Does anyone have any idea on these? I need to get Tomcat configured with apache. Thanks! Brad On Feb 16, 2006, at 8:00 PM, Brad O'Hearne wrote: I am trying to get the Tomcat connector configured to connect tomcat and apache and I have two questions: 1) I downloaded the binary distri

Re: Best IDE for dev of Tomcat Servlet?

2006-02-17 Thread Joe Riopel
I've tried both Eclipse and Netbeans and they're both great. I just seem to be more productive with Netbeans. It's unexplainable ! -Joe On 2/16/06, Glen Mazza <[EMAIL PROTECTED]> wrote: > Pulkit Singhal wrote: > > I would say Eclipse web edition...but you have to figure out how to > > integr

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-17 Thread David Delbecq
I was hoping to get something else. Sure our sysadmin will enjoy to put 600 usernames in one line of /etc/groups (assuming HP-UX and NFS allows it)... Mark Thomas a écrit : >David Delbecq wrote: > > >>*outch* This mean i will have to change my web.xml with future tomcat >>version. >>How do I al

JAAS in Tomcat

2006-02-17 Thread Mohan Radhakrishnan
Hi, I have anabled authentication usng JAASRealm in Tomcat 5.x The steps are 1. Security constraints in web.xml - Working 2. JAAS LoginModule implementation - Working because I am able to login. 3. Policy file like this grant CodeBase "file:./struts-blank.war" Principal com.paper.security.fil

RE: Change Max Post Size

2006-02-17 Thread Tim Lucia
The context work dir has to be the same as the temp dir, at least for Struts using commons upload, for upload to work correctly on files bigger then 256K: ---struts-config.xml--- ---xxx.xml--- > -Original Message- > From: news [mailto:[E

RE: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread Marc Wentink
> I won't recommand putting classes in /share unless really needed (shared > libs poses problems For now, only that one servlet will run in Tomcat. > Tomcat 5.5 works also on jdk 1.4 (just add the compatibility package as > stated in doc) Ok. And the performance is a lot better? > Mmm your in

Re: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread David Delbecq
Marc Wentink a écrit : >Ok, it seems to work putting the class in C:\Program Files\Apache Group\Tomcat >4.1\shared > >The servlet now starts up. > >\shared is, after reading the docs the general place for classes used by all >apps. > > I won't recommand putting classes in /share unless really

RE: How to install a simple servlet in Tomcat?

2006-02-17 Thread Richard Mixon
Marc, Tomcat 5.x and 5.5.x work just fine with Java 1.4. For Tomcat 5.5 just be sure to also download the "compat" kit that includes and extra jar or two needed with Java 1.4. -Original Message- From: Marc Wentink [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 2:03 AM To: Tomc

RE: Configuring a web application at the container level

2006-02-17 Thread Richard Mixon
Matt, We just modify the apache-tomcat-5.5.15-deployer/build.xml script to customize the application when it compiles and deploys it. It's a standard ant build.xml, we just added another target that lets us modify properties and other files for the specific host we are deploying to. Theres a deplo

Re: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread David Delbecq
Once again, you must map you servlet in your web.xml Marc Wentink a écrit : >>Where does Tomcat expect me to put my class file, or jar file? >>Is it sufficient to put the servlet class in WEB-INF classes or must you >>install a war file? >> >> > > >I actually tried to put HelloIZ.class in a

RE: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread Marc Wentink
> Where does Tomcat expect me to put my class file, or jar file? > Is it sufficient to put the servlet class in WEB-INF classes or must you > install a war file? I actually tried to put HelloIZ.class in a what seemed to me a logical place: C:\Program Files\Apache Group\Tomcat 4.1\webapps\HelloI

Re: Re: context error

2006-02-17 Thread Warren Pace
> > From: "jacky" <[EMAIL PROTECTED]> > Date: 2006/02/16 Thu PM 11:08:59 EST > To: "Tomcat Users List" > Subject: Re: Re: context error > > I added the , it still doesn't work > > Best Regards. >jacky > > - Original Message - > From: "Caldarale, Charles R" <[EMA

startup error: Unable to find required classes (javax.activation.DataHandler ...)

2006-02-17 Thread Dr. Exner
Hi, with both, the preconfigured version from jakarta-tomcat-5.5.9-preconfigured.zip and the installation from apache-tomcat-5.5.15.exe I get the following startup messages: - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd - Unable to find r

RE: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread Marc Wentink
Ok, it seems to work putting the class in C:\Program Files\Apache Group\Tomcat 4.1\shared The servlet now starts up. \shared is, after reading the docs the general place for classes used by all apps. It got me further, sorry to bother you guys so much, this it the idea of my managers: "I sho

Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread Marc Wentink
Dear Sirs, dear group, Where does Tomcat expect me to put my class file, or jar file? Is it sufficient to put the servlet class in WEB-INF classes or must you install a war file? I am using Tomcat 4.1 to get a simple servlet working. I have succeeded in compiling the servlet. I have put the cla

RE: How to install a simple servlet in Tomcat?

2006-02-17 Thread Marc Wentink
> Unless you're tasked with development or maintenance of an old > application environment, I'd suggest moving up to the current 5.5.x > version of Tomcat. I should turn a java program into a servlet and run it in Tomcat. The idea is this repeatedly called java program would work more efficie