pageContext.getException() always null

2005-06-06 Thread Konrad Bernstein
Hi,
I have a rather strange problem with handling an exception within a custom
jsp tag.

The problem is, that pageContext.getException() always returns null.
This is the case within the tag's code, but also witin a Scriptlet within
the JSP.
However, the variable 'exception' itself is properly set.

My error.jsp looks like this:
[EMAIL PROTECTED] isErrorPage=true %
%@ taglib uri=/WEB-INF/custom.tld prefix=custom %

%
   System.out.println(Exception =  + exception);
   System.out.println(exPage =  + pageContext.getException());
%
   
HTML
  HEAD
titleError/title
  /HEAD
  body
   H1Error occured/H1
   custom:errortag/
  /body
/html


The tag class has code like this:

private Exception getTerribleException() {

if (pageContext.getException() == null) {
System.out.println(pageContext has null exception);
return null;
}
...
}

Well, the output is as mentioned above: only the variable 'exception' within
the JSP can be successfully accessed. Retrieving the exception from the
pageContext always returns null.

Exception = javax.servlet.ServletException: This is my self thrown
exception.
exPage = null
pageContext has null exception

As far as I know, for all error pages ([EMAIL PROTECTED] isErrorPage=true 
%),
the counterpart for the implicit variable 'exception' of a JSP is
pageContext.getException().

However, something seems to go wrong.
I'm using JBoss 3.2.26 with integrated Tomcat. I also tried tomcat
standalone (5.0.18), same result.

Help greatly appreciated,
Konrad

-- 
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden  testen ++ http://www.gmx.net/de/go/promail ++

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Welcome file list

2005-06-06 Thread Steve Forster
Hi, this is probably a basic question but I could really use a hand.

Is there a way to simply read/display www.mydomain.com without
redirecting to index.jsp?

I found out how to do the opposite in web.xml
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list


TIA

Steve


Problem with Tomcat 5.0.28 and big POSTs

2005-06-06 Thread Miguel Gesteiro
Hello everybody,

we are having a strange problem with Tomcat getting big POSTs:

Linux (FC3)
Tomcat 5.0.28
SSL with a test certificate

We have written a servlet with only the doPost method wich receives POSTs
with a lot of parameters, 8 different (fixed) and all the rest repeated (the
same parameter many times: the data records). We have put a dumper valve
wich show us all the requests.

The problem is that sometimes the POSTs come in empty, we think, when they
are big enough (200 parameters or more - 20Kb sized post). As we can't
see the raw http request (because of the ssled env.) we have to believe
what dumper valve says... The POSTs are generated with a Windows HTTP
library (Indy 9) wich we don't trust very much, from a windows env. probably
with all that SP2-firewal stuff (or others from McAfee, Norton or similar)
that may interfere with the tcp traffic.

questions:
* how does tomcat analyze a POST request (the TCP incoming stream)? Does it
nullize the entire POST when something is wrong? Is there any rule about
how does it expect the tcp traffic: continued or it could be chunked?
* is there any limit in the size of incoming requests? are theese
configurable?
* is there any way to see the raw headers before tomcat analyzes it? (ssl
env.)
* how much does it interfere a slow, or unstable, or firewalled tcp
connection?


thanks in advance!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread delbd
Hello,
I had to write my own realm implementation to authenticate users.
Now am faced with a problem, this realm contains additionnal datas on the 
user, like email, fullname, office telephone number.
I'd like to pass this informations to the webapplication, however am not sure 
how to do this. I thought to create a decorator class around  a Principal to 
store this information and do a typecasting in webapp to access additionnal 
informations. 

But the realm implementation is stored in server/lib/myrealm.jar and am not 
sure classes in server/lib/*.jar are visible to the webapplication.

Any recommendation?

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread Peter Crowther
 From: delbd [mailto:[EMAIL PROTECTED] 
 I thought to create a decorator class around  
 a Principal to 
 store this information and do a typecasting in webapp to 
 access additionnal informations. 

Or implement your own Principal - either would work I think.

 But the realm implementation is stored in 
 server/lib/myrealm.jar and am not 
 sure classes in server/lib/*.jar are visible to the webapplication.
 
 Any recommendation?

We've dealt with this in another project by splitting the implementation
into two jars: myrealm-impl.jar and myrealm-api.jar.  The API jar
contains the classes required by server and webapp (which should just be
the interface definitions if it's factored correctly), and goes into
common/lib.  The other jar contains the implementation and goes in
server/lib.  It worked for us; watch out for classloader issues if you
mention any class in the API that is in the implementation jar, as the
webapp won't be able to load those classes.

- Peter
--
Peter Crowther, Director, Melandra Limited
John Dalton House, 121 Deansgate, Manchester M3 2AB
t: +44 (0)161 828 8736  f: +44 (0)161 832 5683

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread delbd
Thanks for quick answer Peter.
Le Lundi 6 Juin 2005 11:43, Peter Crowther a écrit :
  From: delbd [mailto:[EMAIL PROTECTED]
  I thought to create a decorator class around
  a Principal to
  store this information and do a typecasting in webapp to
  access additionnal informations.

 Or implement your own Principal - either would work I think.

  But the realm implementation is stored in
  server/lib/myrealm.jar and am not
  sure classes in server/lib/*.jar are visible to the webapplication.
 
  Any recommendation?

 We've dealt with this in another project by splitting the implementation
 into two jars: myrealm-impl.jar and myrealm-api.jar.  The API jar
 contains the classes required by server and webapp (which should just be
 the interface definitions if it's factored correctly), and goes into
 common/lib.  The other jar contains the implementation and goes in
 server/lib.  It worked for us; watch out for classloader issues if you
 mention any class in the API that is in the implementation jar, as the
 webapp won't be able to load those classes.

   - Peter
 --
 Peter Crowther, Director, Melandra Limited
 John Dalton House, 121 Deansgate, Manchester M3 2AB
 t: +44 (0)161 828 8736  f: +44 (0)161 832 5683

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to unify multiple contexts

2005-06-06 Thread teknokrat
We have multiple servlets that i wish to unify under a single context. 
That is, I want to get rid of the legacy servlets and introduce a 
dispatcher servlet to handle all the different functions under a single 
context. The problem is that this will break legacy apps that expect the 
old contexts. I've considered sending redirect requests to any client 
using the old contexts but some of the devices connecting to our system 
may not be fully http capable.


Is there anything in tomcat that could be used? Some settings or someway 
of rewriting requests?


thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread QM
On Mon, Jun 06, 2005 at 11:36:11AM +0200, delbd wrote:
: I had to write my own realm implementation to authenticate users.
: Now am faced with a problem, this realm contains additionnal datas on the 
: user, like email, fullname, office telephone number.
: I'd like to pass this informations to the webapplication, however am not sure 
: how to do this.

Let's take a step back: is the extra info used to authenticate the user?
or is it used by the webapp itself, after the user has logged in?

In the latter case, you can store a user-specific object in the session
after the user logs in.  Many people write a ServletFilter that checks
for said object and, if it doesn't exist, creates/populates it.

(Of course, the filter should only be mapped to protected areas; it is
otherwise of limited value ;)

-QM


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Force Non-SSL

2005-06-06 Thread Tim Funk

Almost. (I think)

You can't request any pages under /WEB-INF. Security constraints are only for 
the incoming URL - not urls obtained by getRequestDispatcher()


-Tim

Duong BaTien wrote:

On Thu, 2005-05-26 at 06:34 -0400, Tim Funk wrote:


From a config point of view no. The simple workaround
- Ditch the web.xml config for requiring SSL
- Create a filter which checks the scheme and URL - if the do not match what 
you desire - you can issue a redirect in the filter to https (or http) as desired



-Tim



Hello Tim and other tomcat 5.5.9 experts:

If i understand you correctly, you propose:
  1) set security constraint pages you want to run under ssl, such as:
 security-constraint
   web-resource-collection
 url-pattern/WEB-INF/secure/*/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
   /web-resource-collection
   user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

  2) Write a servlet filter to direct any url NOT under the
pattern /WEB-INF/secure/* to the same url such as /public/123.jsp. Do
you have this code handy and want to share with others?

The result will be:
  1) When a user requests a /WEB-INF/secure/logonSuccess.jsp the
container will force the user with its logon FORM, if the user is not
authenticated. If username/password is authenticated the page
logonSuccess.jsp wil be served.
  2) If you create a user session (e.g. a guestTag for collecting user
activities) while user is NOT authenticated, and the container now
authenticated the user after the request of logonSuccess.jsp, the
servlet spec will guarantee that the session visible to developer code
after login be the same session object that was created prior to SSL
login so there is no loss of session information.
  3) Since the security model does not apply to RequestDispatcher
according to serlet spec, the container will serve other requests under
standard http and NOT https as reported after the user was served the
logonSuccess.jsp.
  4) Only after the user is authenticated by the server, we can use
getUserPrincipal(), isUserInRole() to integrate container authentication
with programmatic authorization. Before that, only a generic guestTag
for recording user activities.

Do i miss something?

Thanks

BaTien
DBGROUPS



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread delbd
Does the realm have access to the session? Because informations i need in 
webapp is taken from where the realms does it's authentification.

I my case, the realm access a NIS to check user passwoard, and informations 
such as fullname, phone and email, are alos in this nis. I do not want the 
webapp to also access directly the nis.

Le Lundi 6 Juin 2005 12:48, QM a écrit :
 On Mon, Jun 06, 2005 at 11:36:11AM +0200, delbd wrote:
 : I had to write my own realm implementation to authenticate users.
 : Now am faced with a problem, this realm contains additionnal datas on the
 : user, like email, fullname, office telephone number.
 : I'd like to pass this informations to the webapplication, however am not
 : sure how to do this.

 Let's take a step back: is the extra info used to authenticate the user?
 or is it used by the webapp itself, after the user has logged in?

 In the latter case, you can store a user-specific object in the session
 after the user logs in.  Many people write a ServletFilter that checks
 for said object and, if it doesn't exist, creates/populates it.

 (Of course, the filter should only be mapped to protected areas; it is
 otherwise of limited value ;)

 -QM

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache2+mod_jk + ssl: howto

2005-06-06 Thread jfc100

faisal wrote:


Apache web server's SSL certificate was already configured by our client so
i did't ve to configure anything on apache. But we did configure SSL on
tomcat.

When redirecting, redirect through apache web server's port instead of
tomcat's port, because now your requests are being processed by apache web
server not tomcat. I also made this mistake of redirecting to tomcat's ports
whenever switching between SSL to Non-SSL ports.

We are using tomcat 5.5.9.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 4:27 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:

 


i used mod_jk2 when i was integrating tomcat with apache2. i also tried my
hands on mod_jk and i find mod_jk2 a bit simpler of the two.

   


I have been using mod_jk2 to forward requests on the httpd2 web server
to tomcat4 successfully - but this was before I tried to implement SSL.
Now that I am looking at how to configure things, I read that jk2 is no
longer supported and that all the new features unique to jk2 have been
included in jk. Seeing as you have it working,  lets assume for the rest
of this thread that I still want to get it working with jk2.

 


regarding SSL, ur gonna ve to enable SSL on both server.

   


Does that mean generating the key stuff on both machines?

 


apache2 on fedora
core 3 comes SSL ebabled so i did't ve to do anything there.

   


I thought my httpd was SSL-enabled too but I couldn't find any ssl.conf
on my htttp machine. I found a mod_ssl.so file but no config. I didn't
know what to do about it.

 


my java web
application used SSL for user logins so i had to configure my tomcat to
enable SSL (java jeystore and tomcat server.xml and stuff.)

   


This I did too and could access the tomcat install and successfully use
SSL in my app but I was still (and still am) stuck with setting up an
ssl-enabled httpd server and configuring it to act as a front to my
tomcat servlet engine.

 


be carefull when redirecting user requests to HTTP to SSL or SSL to HTTP
port on ur tomcat. use Apache web server ports instead of tomcat's
port(which are 80 for http and 443 for https.)


   


why?

 


how ur gonna integrate Apache web server - tomcat??
u dont. AJPConnetor13 does it for u.

u only ve to configure ur apache server to use mod_jk2 for ur web app
requests. tomcat handles everything out of box(atleast newer one which we
uses.)


   


which version of tomcat are you using?

Thanks!
jfc

 


-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 1:54 PM
To: tomcat-user
Subject: apache2+mod_jk + ssl: howto


Hi,

My environment: linux 2.4.22, httpd2 running on its own machine with an
appropriate mod_jk module, tomcat4.1.24+jboss3 running on a seperate
machine.

I have searched this list for an answer to my question but so far have
come up empty handed. My question is simply, 'If I want to front an
instance of tomcat with an instance of apache httpd and to enable my
java webapps to use ssl, do I need to configure httpd for ssl or do I
need to configure tomcat for ssl?'.

Any help will be much appreciated.

jfc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 


ok, let me just get a few things straight.

1. What version of Apache httpd are you using?
2. What version of mod_jk are you using?
3. When you say 'redirect' do you mean the directives in the workers 
properties file?


Thanks
jfc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jspinterceptor in server.xml

2005-06-06 Thread bouml
Hi !
 
I need some more information about JSPInterceptor in server.xml. Is there a
detailed docu ?
 
Is JSPInterceptor for compiling .jsp to .java or for .java to .class ?
 
thanks a lot.
 
Thomas


Jspinterceptor in server.xml

2005-06-06 Thread bouml
Hi !
 
I need some more information about JSPInterceptor in server.xml. Is there a
detailed docu ?
 
Is JSPInterceptor for compiling .jsp to .java or for .java to .class ?
 
thanks a lot.
 
Thomas


accessing webapp via proxy

2005-06-06 Thread Jan Behrens
Hello list,

we are currently in the pretest stage for a webapp we build for a customer 
situated at various locations. We got reports that our app could not be 
accessed by a number of testers who are connecting through a proxy. The 
funny thing is, they can access the first page (therefore can connect to 
the url and port 8080). The login then fails with a valid user account, 
the login data is stored in the session and requires cookies (which are 
enabled).

I have talked to the admins on the other side and as far as they know 
everything should be working... Has anyone experienced something similar? 
The archives are full of proxy questions, unfortunately all I found 
regarded other aspects of proxied connections :( I assume that this is not 
really Tomcat related but still hope that someone has an idea as to where 
to look for an answer.

Our setup: TC 5.0.28 @ 8080 on Suse 9 EE (Kernel 2.6.8-24.14-smp) with SDK 
1.4.2_06-b03

TIA,

Jan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



worker.domain directive

2005-06-06 Thread Jean-Michel MAISONNAVE



Hi
i dont manage to use domain directive
in order to implement this technical arhcitecture:


In my Dev environment, I have 2
server. In each server, I installed one instance of Apache and 2 instances of
Tomcat.

A_01 is linked with T_01 and
T_O3.
A_02 is linked with T_02 and
T_O4
T_01 and T_02 are in the first
server.

T_03 and T_04 are in the second
server.

Here is my workers.properties:

# Define
workersworker.list=LB

# Set properties for LB
(lb)worker.LB.type=lbworker.LB.balance_workers=A_01_T_01,A_01_T_03,A_02_T_02,A_02_T_04worker.LB.sticky_session=true

# Set properties for A_01_T_01
(ajp13)worker.A_01_T_01.domain=xworker.A_01_T_01.type=ajp13worker.A_01_T_01.host=128.1.21.51worker.A_01_T_01.port=8009worker.A_01_T_01.lbfactor=50worker.A_01_T_01.cachesize=10worker.A_01_T_01.cache_timeout=600worker.A_01_T_01.socket_keepalive=1worker..A_01_T_01.reclycle_timeout=300

# Set properties for A_01_T_03
(ajp13)worker.A_01_T_03.domain=xworker.A_01_T_03.type=ajp13worker.A_01_T_03.host=128.1.21.52worker.A_01_T_03.port=8009worker.A_01_T_03.lbfactor=50worker.A_01_T_03.cachesize=10worker.A_01_T_03.cache_timeout=600worker.A_01_T_03.socket_keepalive=1worker..A_01_T_03.reclycle_timeout=300

# Set properties for A_02_T_02
(ajp13)worker.A_02_T_02.domain=xworker.A_02_T_02.type=ajp13worker.A_02_T_02.host=128.1.21.51worker.A_02_T_02.port=9009worker.A_02_T_02.lbfactor=50worker.A_02_T_02.cachesize=10worker.A_02_T_02.cache_timeout=600worker.A_02_T_02.socket_keepalive=1worker..A_02_T_02.reclycle_timeout=300

# Set properties for A_02_T_04
(ajp13)worker.A_02_T_04.domain=xworker.A_02_T_04.type=ajp13worker.A_02_T_04.host=128.1.21.52worker.A_02_T_04.port=9009worker.A_02_T_04.lbfactor=50worker.A_02_T_04.cachesize=10worker.A_02_T_04.cache_timeout=600worker.A_02_T_04.socket_keepalive=1worker..A_02_T_04.reclycle_timeout=300


I dont know what kind of information i must write
in domain directive.Somebody could help me?


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re[2]: Tomcat/mod_jk rpm for FC3

2005-06-06 Thread rassylkaformazaj
http://www.jpackage.org/rpm.php?id=2456

f I am looking for rpms for tomcat/mod_jk that work with FC3.   Any tips ?



-- 
Ñ óâàæåíèåì, ìàçàé.
MAZ-RIPE   mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IE-Page not found problem

2005-06-06 Thread sudip shrestha
I have a struts-hibernate powered webapp running off a debian box, jdk
1.5 and tomcat 5.5.7
I have IE users complaining about page not found problems from time to
time where as Firefox users never. I myselft have never encountered
this problem as I use FirefoxThis led me to thinking that this
might be a IE problem...Any suggestions on how to move ahead on the
problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Joe Plautz

Simple, test with IE as well.

sudip shrestha wrote:

I have a struts-hibernate powered webapp running off a debian box, jdk
1.5 and tomcat 5.5.7
I have IE users complaining about page not found problems from time to
time where as Firefox users never. I myselft have never encountered
this problem as I use FirefoxThis led me to thinking that this
might be a IE problem...Any suggestions on how to move ahead on the
problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread sudip shrestha
Dude:  Read the email first...
I am informing of the problem after we experienced with IE...

On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:
 Simple, test with IE as well.
 
 sudip shrestha wrote:
  I have a struts-hibernate powered webapp running off a debian box, jdk
  1.5 and tomcat 5.5.7
  I have IE users complaining about page not found problems from time to
  time where as Firefox users never. I myselft have never encountered
  this problem as I use FirefoxThis led me to thinking that this
  might be a IE problem...Any suggestions on how to move ahead on the
  problem?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  .
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Frank W. Zammetti
Moving on to a more helpful answer...

Have you tried using something like HTTPWatch to see what's going on?  IE
seems to display that page generically for a host of different problems,
and viewing the underlying HTTP transaction might narrow things down a
bit.

Also, you could ask your users to turn off the friendly messages
option... I'm not certain, but I believe they will get you slightly more
helpful (to you) messages with that option turned off.  It's under
Tools...Internet Options... Advanced... Show Friendly HTTP Error Messages.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, June 6, 2005 10:22 am, Joe Plautz said:
 Simple, test with IE as well.

 sudip shrestha wrote:
 I have a struts-hibernate powered webapp running off a debian box, jdk
 1.5 and tomcat 5.5.7
 I have IE users complaining about page not found problems from time to
 time where as Firefox users never. I myselft have never encountered
 this problem as I use FirefoxThis led me to thinking that this
 might be a IE problem...Any suggestions on how to move ahead on the
 problem?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 .


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Rafa Krupiski

Joe Plautz wrote:

Simple, test with IE as well.


yet simpler, tell your users it's IE problem and to use firefox instead :)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Joe Plautz
Sorry for not including the smiley face but, dude, you're informing of a 
problem that exists within a browser that is used by the vast majority 
of web users and for some reason refused to test with it. Works on my 
box is not a valid excuse.


Here's a link to a html validator, http://validator.w3.org/

Here's a link that explains a lot of the known issues,
http://www.howtocreate.co.uk/wrongWithIE/

sudip shrestha wrote:

Dude:  Read the email first...
I am informing of the problem after we experienced with IE...

On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:


Simple, test with IE as well.

sudip shrestha wrote:


I have a struts-hibernate powered webapp running off a debian box, jdk
1.5 and tomcat 5.5.7
I have IE users complaining about page not found problems from time to
time where as Firefox users never. I myselft have never encountered
this problem as I use FirefoxThis led me to thinking that this
might be a IE problem...Any suggestions on how to move ahead on the
problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Force Non-SSL

2005-06-06 Thread Duong BaTien


On Mon, 2005-06-06 at 07:04 -0400, Tim Funk wrote:
 Almost. (I think)
 
Thanks. I will try the workaround and report to the list for the
benefits of others.

BaTien
DBGROUPS
 
 You can't request any pages under /WEB-INF. Security constraints are only for 
 the incoming URL - not urls obtained by getRequestDispatcher()
 
 -Tim
 
I know. These are my protected pages and i want to make sure that they
must go through my presentation engine (Jsf + Tiles).

BaTien

 Duong BaTien wrote:
  On Thu, 2005-05-26 at 06:34 -0400, Tim Funk wrote:
  
  From a config point of view no. The simple workaround
 - Ditch the web.xml config for requiring SSL
 - Create a filter which checks the scheme and URL - if the do not match 
 what 
 you desire - you can issue a redirect in the filter to https (or http) as 
 desired
 
 
 -Tim
  
  
  Hello Tim and other tomcat 5.5.9 experts:
  
  If i understand you correctly, you propose:
1) set security constraint pages you want to run under ssl, such as:
   security-constraint
 web-resource-collection
   url-pattern/WEB-INF/secure/*/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint
  
2) Write a servlet filter to direct any url NOT under the
  pattern /WEB-INF/secure/* to the same url such as /public/123.jsp. Do
  you have this code handy and want to share with others?
  
  The result will be:
1) When a user requests a /WEB-INF/secure/logonSuccess.jsp the
  container will force the user with its logon FORM, if the user is not
  authenticated. If username/password is authenticated the page
  logonSuccess.jsp wil be served.
2) If you create a user session (e.g. a guestTag for collecting user
  activities) while user is NOT authenticated, and the container now
  authenticated the user after the request of logonSuccess.jsp, the
  servlet spec will guarantee that the session visible to developer code
  after login be the same session object that was created prior to SSL
  login so there is no loss of session information.
3) Since the security model does not apply to RequestDispatcher
  according to serlet spec, the container will serve other requests under
  standard http and NOT https as reported after the user was served the
  logonSuccess.jsp.
4) Only after the user is authenticated by the server, we can use
  getUserPrincipal(), isUserInRole() to integrate container authentication
  with programmatic authorization. Before that, only a generic guestTag
  for recording user activities.
  
  Do i miss something?
  
  Thanks
  
  BaTien
  DBGROUPS
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Joe Plautz

If it was only that simple.

Rafa Krupiski wrote:

Joe Plautz wrote:


Simple, test with IE as well.



yet simpler, tell your users it's IE problem and to use firefox instead :)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread sudip shrestha
I have no idea why you are continuing on this pathBut all I am
looking for is suggestions on how to debug this problem with IE, if
there is any.  I am not offerring any excuse!!  It's my work related
work.  I have had few issues with IE in the past such as url
redirection problem but I have managed to find the fix for those.  So,
I was thinking maybe somebody in the users list have had some kind of
positive experience with this in the past.  Frank's suggestion on this
regard was constructive.  I work in a huge company...suddenly asking
users to change the browser is not exactly the pratical solution
either.

On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:
 Sorry for not including the smiley face but, dude, you're informing of a
 problem that exists within a browser that is used by the vast majority
 of web users and for some reason refused to test with it. Works on my
 box is not a valid excuse.
 
 Here's a link to a html validator, http://validator.w3.org/
 
 Here's a link that explains a lot of the known issues,
 http://www.howtocreate.co.uk/wrongWithIE/
 
 sudip shrestha wrote:
  Dude:  Read the email first...
  I am informing of the problem after we experienced with IE...
 
  On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:
 
 Simple, test with IE as well.
 
 sudip shrestha wrote:
 
 I have a struts-hibernate powered webapp running off a debian box, jdk
 1.5 and tomcat 5.5.7
 I have IE users complaining about page not found problems from time to
 time where as Firefox users never. I myselft have never encountered
 this problem as I use FirefoxThis led me to thinking that this
 might be a IE problem...Any suggestions on how to move ahead on the
 problem?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 .
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  .
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Frank W. Zammetti
Please see my previous post in this thread for some actual help
(potentially anyway).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, June 6, 2005 11:14 am, sudip shrestha said:
 I have no idea why you are continuing on this pathBut all I am
 looking for is suggestions on how to debug this problem with IE, if
 there is any.  I am not offerring any excuse!!  It's my work related
 work.  I have had few issues with IE in the past such as url
 redirection problem but I have managed to find the fix for those.  So,
 I was thinking maybe somebody in the users list have had some kind of
 positive experience with this in the past.  Frank's suggestion on this
 regard was constructive.  I work in a huge company...suddenly asking
 users to change the browser is not exactly the pratical solution
 either.

 On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:
 Sorry for not including the smiley face but, dude, you're informing of a
 problem that exists within a browser that is used by the vast majority
 of web users and for some reason refused to test with it. Works on my
 box is not a valid excuse.

 Here's a link to a html validator, http://validator.w3.org/

 Here's a link that explains a lot of the known issues,
 http://www.howtocreate.co.uk/wrongWithIE/

 sudip shrestha wrote:
  Dude:  Read the email first...
  I am informing of the problem after we experienced with IE...
 
  On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote:
 
 Simple, test with IE as well.
 
 sudip shrestha wrote:
 
 I have a struts-hibernate powered webapp running off a debian box,
 jdk
 1.5 and tomcat 5.5.7
 I have IE users complaining about page not found problems from time
 to
 time where as Firefox users never. I myselft have never encountered
 this problem as I use FirefoxThis led me to thinking that this
 might be a IE problem...Any suggestions on how to move ahead on the
 problem?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 .
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  .
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Nikola Milutinovic

sudip shrestha wrote:


Dude:  Read the email first...
I am informing of the problem after we experienced with IE...
 



As you have said, YOU did not expirience it, since you're using FireFox. 
It would be most advisable to do two things:


1. Use IE yourself (I know, I loathe it, too, and prefer 
Mozilla+Tidy_HTML_Validator)

2. Look at the logs - pages that were missed should show up in the logs.

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread masro
You are using SSL ?

try:

BrowserMatch .*MSIE.* nokeepalive ssl-unclean-shutdown

regards


Quoting Joe Plautz [EMAIL PROTECTED]:

 If it was only that simple.
 
 Rafał Krupiński wrote:
  Joe Plautz wrote:
  
  Simple, test with IE as well.
  
  
  yet simpler, tell your users it's IE problem and to use firefox instead :)
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  .
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



--
  /\
   /\/  \/\
  Powerd by llbc.de - letz board it, yeahhh !!/  \ \ \ \
---  /  / \   \




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Andrew Miehs

Hi,

IMHO the best solution is to run tcpdump (or ethereel) on the server, 
and log the IE users
traffic (and try to limit it to only 1 user as you seem to indicate that 
you can easily reproduce
the problem). That will show you exactly what is going on. Anything else 
is just speculation.


Regards

Andrew

sudip shrestha wrote:


I have no idea why you are continuing on this pathBut all I am
looking for is suggestions on how to debug this problem with IE, if
there is any.  I am not offerring any excuse!!  It's my work related
work.  I have had few issues with IE in the past such as url
redirection problem but I have managed to find the fix for those.  So,
I was thinking maybe somebody in the users list have had some kind of
positive experience with this in the past.  Frank's suggestion on this
regard was constructive.  I work in a huge company...suddenly asking
users to change the browser is not exactly the pratical solution
either.

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE-Page not found problem

2005-06-06 Thread Nikola Milutinovic

Rafa Krupiski wrote:


Joe Plautz wrote:


Simple, test with IE as well.



yet simpler, tell your users it's IE problem and to use firefox 
instead :)



It is still worth investigating. Mozilla/Firefox is eager to correct 
badly formed HTML, just as IE is. I would advise you to install Tidy 
HTML Validator in your Firefox and to weed out all errors and warnings, 
if possible.


Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Shared web.xml

2005-06-06 Thread Trice, Jim
 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 02, 2005 4:29 PM
 To: Tomcat Users List
 Subject: Re: Shared web.xml
 
 On Thu, Jun 02, 2005 at 02:01:15PM -0500, Trice, Jim wrote:
 :I inherited a tomcat installation with two tomcat servers running
RedHat
 : Enterprise 3 and tomcat 4.1. They are being load balanced behind a
netscaler.
 : The webapps directory and thus the web.xml files for each context are
shared
 : via NFS.
 
 This will hurt.  What's the point of load-balancing the two Tomcat
 instances (eliminating a single point of failure), if they are
 susceptible to a problem with the NFS server (introducing a single point
 of failure)?
The point of load balancing in this case is to improve response under heavy
load. Using nfs need not introduce a single point of failure. In this case
the solution to the single point of failure would more likely be setting up a
clustered nfs service.
 
 I realize it's more of a headache to manage two installs than one; but
 it's even more painful to manage nothing when the shared storage goes
 south. =)
 
 
 Read on:
 
 : The problem I have is that any time the web.xml is updated for a
 : context that context is reloaded. Since the web.xml file is shared that
means
 : both servers reload the context at the same time. That means downtime. I
know
 : I can set up a local copy of web.xml and create a link to that but this
makes
 : things more complicated. Is there any way to force tomcat 4 to wait to
reload
 : the class until a reload is requested? I have tried reloadable=false
for
 : each context.
 
 
 Setting reloadable=false (inside the Context/ attribute of
 server.xml, or inside context.xml) and restarting Tomcat should have
 done it.
 
 You mention you inherited this setup.  Perhaps the old admins had setup
 a watchdog job, and that's what triggers restarts?
I tested a default install of the tomcat 4.1 and it exhibited the same
behavior using the examples context set to reloadable=false. 
 
 -QM
 
 
 --
 
 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.org/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP-specific newsgroups/mailing list

2005-06-06 Thread GB Developer
Javaranch.
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi

 -Original Message-
 From: David Wall [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, June 04, 2005 3:07 PM
 To: Tomcat Users List
 Subject: JSP-specific newsgroups/mailing list
 
 
 Can anybody recommend a good JSP/servlet newsgroups or 
 mailing lists for 
 questions.  Obviously, this list is directed towards Tomcat in 
 particular, but while I'm using Tomcat, I'm trying to get an answer 
 regarding some a way in JSP to allow a page developer to 
 create his own 
 bean that can be passed between JSP pages (such as by putting 
 the object 
 in the session or request object).
 
 Thanks,
 David
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



domain directive in workers.propertie

2005-06-06 Thread Jean Michel MAISONNAVE

Can somebody could give me an exemple of domain for theses routing decision 
hierarchical:

a) sticky worker if not in error
b) else worker from same domain
c) else local worker
d) else local domain (worker inside domain of one of the local workers)
e) any other worker

Thks

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Re: IE-Page not found problem

2005-06-06 Thread sudip shrestha
Thanks a lotI am using SSL and this is definitely a good direction
to work on

On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 You are using SSL ?
 
 try:
 
 BrowserMatch .*MSIE.* nokeepalive ssl-unclean-shutdown
 
 regards
 
 
 Quoting Joe Plautz [EMAIL PROTECTED]:
 
  If it was only that simple.
 
  Rafa Krupiski wrote:
   Joe Plautz wrote:
  
   Simple, test with IE as well.
  
  
   yet simpler, tell your users it's IE problem and to use firefox instead :)
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   .
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 --
   /\
    /\/  \/\
   Powerd by llbc.de - letz board it, yeahhh !!/  \ \ \ \
 ---  /  / \   \
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



What is wrong with TC or something else?

2005-06-06 Thread Vernon

I already have this project in the stable status for
some time. After updating a few of libraries, the TC
container acts weird. A session seems to get timeout
right away soon after it is created. Here is a paire
of related log message I spot in the log file:


2005-06-03 09:54:54,500 DEBUG
[org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1117817694500
sessioncount 4
2005-06-03 09:54:54,500 DEBUG
[org.apache.catalina.session.ManagerBase] - End expire
sessions StandardManager processingTime 0 expired
sessions: 0

How I can pin down the cause of the problem? 

I need to get this project out of the door ASAP. Your
helps are much appreciated.


Thanks,

Vernon

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is wrong with TC or something else?

2005-06-06 Thread Vernon _


I already have this project in the stable status for
some time. After updating a few of libraries, the TC
container acts weird. A session seems to get timeout
right away soon after it is created. Here is a paire
of related log message I spot in the log file:


2005-06-03 09:54:54,500 DEBUG
[org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1117817694500
sessioncount 4
2005-06-03 09:54:54,500 DEBUG
[org.apache.catalina.session.ManagerBase] - End expire
sessions StandardManager processingTime 0 expired
sessions: 0

How I can pin down the cause of the problem?

I need to get this project out of the door ASAP. Your
helps are much appreciated.


Thanks,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jspinterceptor in server.xml

2005-06-06 Thread Mark Thomas

bouml wrote:

I need some more information about JSPInterceptor in server.xml. Is there a
detailed docu ?


Have you looked at
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#JspInterceptor 


?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



simple question on deltamanger - understanding

2005-06-06 Thread John MccLain


 My understanding is that the clustering replication DeltaManager it is
called via a setAttribute if UseDirtyFlag is set to true. So does this mean
that it only checks for a  delta on the attribute that was set, or does it
check the deltas in the entire session?

Also, does anyone know where I can get commercial Tomcat support - we are
having trouble with clustering

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Skepticism is the first step toward truth


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



connection pooling oracle

2005-06-06 Thread Brian . Allen
I am attempting to set up connection pooling in tomcat 5.0.28 using oracle 
10g. I am able to successfully use 
org.apache.commons.dbcp.BasicDataSourceFactory as long as my 
rs.executeQuery() is not cast to OracleResultSet. I have seen a few 
threads on this topic but I can't seem to find an implementation that I 
can actually get to work. Does anyone have any helpful info that can guide 
me in the right direction?

Thanks 

Re: Clustering without farmwardeployer

2005-06-06 Thread Filip Hanik - Dev Lists

Two suggestions:

1. Make sure the farm war deployer is really turned off, and by the way, 
the farm war deployer doesn't deploy into webapps, instead into the dir 
you specify in server.xml
2. Check your scripts again, chances are you are the one redeploying 
your own old code.


Filip



Todd Huss wrote:


We have a Tomcat cluster setup across 9 servers with clustering for session
replication. However, we are not using the farmwardeployer because we have
our own script that we use to shutdown each tomcat, deploy a fix version,
and then start it up again so we don't incur any downtime. However, we're
seeing some very unusual behavior.

After shutting down one node, deleting contents of webapps and work
directories, dropping in a new war, and restarting, the new files that get
exploded in the webapps directory are not those of the war dropped into the
webapps directory. They are instead the files from the previous war which is
no longer on the local filesystem. 


It leads me to believe that even though we have the farmwardeployer turned
off, that when we start tomcat in clustered mode, rather than exploding the
local war, it's getting the contents of the war from another node.

Any ideas?

Thanks,
Todd


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to determine clustering problem?

2005-06-06 Thread Filip Hanik - Dev Lists

turn on logging, see Tomcat docs
then through log4j you can turn on logging for only 
org.apache.catalina.cluster


and you will be able to see all messages going through.

Filip


John MccLain wrote:


We have a webapp that runs fine in 1 tomcat instance.
We have insured that all classes being stored in session are serializable
When I put the app into a cluster of 3 Tomcats on my machine, it kind of
works, but I am getting inconsistent failures. It is like constantly running
down rabbit holes as the errors change continually.

Is there a way to debug clustered apps? If this is a possible memory, issue,
How do I change the memory configuration for each Tomcat instance? Is there
a timeout for each screen request? can I configure it?

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Skepticism is the first step toward truth


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sslProtocol default value in 5.5.9 - broken?

2005-06-06 Thread Mark Thomas

Paul Singleton wrote:

If I configure my HTTPS connector with the (supposedly
redundant) attribute

sslProtocol=TLS

then it works fine, but if I leave it out, requests
just hang and eventually time out (Firefox says The
request to xxx.yyy has terminated unexpectedly. Some
data may have been transferred)

Am I missing something, is this a documentation bug
or a Tomcat bug?


It is a bug. I have fixed it in CVS and the fix will be included in the 
5.5.10 and later releases.


Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I change the error page being served while tomcat is starting up?

2005-06-06 Thread j r
When I start tomcat, it takes approximately 1 minute to complete its
startup process.  If apache is up during that period, the following
page gets served:

Service Temporarily Unavailable

The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache Server at server name Port 80


For obvious reasons, I removed the server name and apache version.  I
do not want either of these displayed to the customer.  How can I
changed those?

I have tried to put the following in web.xml to no avail:
error-page
error-code404/error-code
location/errors/joey.html/location
/error-page
error-page
error-code500/error-code
location/errors/joey.html/location
/error-page


Any Ideas?


-jr

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I change the error page being served while tomcat is starting up?

2005-06-06 Thread Brian McGovern
From what it sounds like you have apache running as a proxy to tomcat.  If 
thats the case,

Add the following to your apache config file httpd.conf change

ErrorDocument 503 /your_file.html
ErrorDocument 200 /your_file.html

-B
-Original Message-
From: j r [mailto:[EMAIL PROTECTED]
Sent: Monday, June 06, 2005 5:40 PM
To: tomcat-user@jakarta.apache.org
Subject: How do I change the error page being served while tomcat is
starting up?


When I start tomcat, it takes approximately 1 minute to complete its
startup process.  If apache is up during that period, the following
page gets served:

Service Temporarily Unavailable

The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache Server at server name Port 80


For obvious reasons, I removed the server name and apache version.  I
do not want either of these displayed to the customer.  How can I
changed those?

I have tried to put the following in web.xml to no avail:
error-page
error-code404/error-code
location/errors/joey.html/location
/error-page
error-page
error-code500/error-code
location/errors/joey.html/location
/error-page


Any Ideas?


-jr

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebappLoader and Auto-Detection of Class Changes

2005-06-06 Thread Scott Dudley


A gentleman responded on the dev list suggesting I have a look at the 
modified() method.  My reply was as follows:


   /Bill,

   I added an over-ridden modified() method to my classloader that also
   checks for changes to my added classes folders.  I see that
   WebappLoader.java checks only jars.

   Works like a charm.

   Thanks./



Scott Dudley wrote:



I extended WebappLoader.java to create a custom classloader to allow 
me to append an alternate set of class folders.  The loader works as 
intended but I noted that it doesn't detect any changes to these 
resources and call Context.reload() as is the case with 
WEB-INF/classes, lib, and any WatchedResource entries.  What am I 
missing.  Looking at WebappLoader.java and I fail to notice the 
mechanism which provides said functionality.


Can someone point me in the right direction?

Many thanks.



--

Regards,

Scott Dudley


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I change the error page being served while tomcat is starting up?

2005-06-06 Thread j r
Brian,

You are correct!  I was looking in the wrong place by trying to find
the solution in tomcat.  Changing apache works.


Thanks!
-jr

On 6/6/05, Brian McGovern [EMAIL PROTECTED] wrote:
 From what it sounds like you have apache running as a proxy to tomcat.  If
 thats the case,
 
 Add the following to your apache config file httpd.conf change
 
 ErrorDocument 503 /your_file.html
 ErrorDocument 200 /your_file.html
 
 -B
 -Original Message-
 From: j r [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 06, 2005 5:40 PM
 To: tomcat-user@jakarta.apache.org
 Subject: How do I change the error page being served while tomcat is
 starting up?
 
 
 When I start tomcat, it takes approximately 1 minute to complete its
 startup process.  If apache is up during that period, the following
 page gets served:
 
 Service Temporarily Unavailable
 
 The server is temporarily unable to service your request due to
 maintenance downtime or capacity problems. Please try again later.
 Apache Server at server name Port 80
 
 
 For obvious reasons, I removed the server name and apache version.  I
 do not want either of these displayed to the customer.  How can I
 changed those?
 
 I have tried to put the following in web.xml to no avail:
 error-page
 error-code404/error-code
 location/errors/joey.html/location
 /error-page
 error-page
 error-code500/error-code
 location/errors/joey.html/location
 /error-page
 
 
 Any Ideas?
 
 
 -jr
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple source directories for one webapp

2005-06-06 Thread Marius Scurtescu

Laurent Brucher wrote:
It all depends on what OS and what editor you use. Under Unix using 
symbolic links could be a solution.


I am not familiar with rsync, but you could use a tool like 
that to keep 
two folders in sync. It should be possible to setup a process that is 
watching your working folder and every time a file changes to copy it 
over to the deployed web app folder.



I'm running Windows, so no synlinks.


There are sym links under Windows, quite obscure though. Have a look at 
Junction:

http://www.sysinternals.com/Utilities/Junction.html



I'm using Eclipse, which is capable of copying files to a given folder, but
cannot do that across Eclipse projects, and that's what I need to do.
Finally, I'm using tomcat 5.5.

I'm not familiar with IDEA, but I'd rather avoid having to actually do
something
such as pressing a key. I guess I'm looking for a solution that ideally
requires as little
external tool as possible...


One key press per changed file is not a big deal and it gives you 
control on what/when you deploy.


Have you looked into rsync and the like? See Unison:
http://www.cis.upenn.edu/~bcpierce/unison/

Also, check the recent File synchronization software thread(s) on the 
VanJUG mailing list:

http://lists.openroad.ca/pipermail/vanjug/2005-June/thread.html




Thanks for the info anyway,
Laurent.


Marius






I had a similar problem a while back (Windows/IDEA) and I 
ended up using 
a plugin that will copy the JSP file to the right location 
when hitting 
 a special key. I found this plugin to be very effective.




Thanks,
Laurent.


Marius



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TC5.5.4 auto deployment

2005-06-06 Thread alan . sinclair
Hi,
I know this subject is periodically revisited but I haven never been able to 
satisfactorily make auto deploys work consistently. Sometimes the context file 
for the application is removed from the 
${catalina.home}/conf/Catalina/localhost directory? When the WAR file is 
dropped into the webapps directory, I get the web.xml file is missing. Maybe I 
should upgrade to 5.5.9.

Any suggestion is appreciated.
Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



picture of session state for nodes in cluster??

2005-06-06 Thread John MccLain
How can I get a picture of session state for each node in a cluster every
time a session is replicated? is there some valve or filter out there I can
use? I am having clustering problems with our app, and I want to see what
the difference is in session state between the nodes in the cluster

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Skepticism is the first step toward truth


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Disabling put and delete http methods...

2005-06-06 Thread Peter Fellwock
Tomcat Gurus:

 

How can I disable put and delete http methods?

 

Thanx,

Peter

 

 

 



Re: connection pooling oracle

2005-06-06 Thread Patrick Thomas
Brian,
What is it that you're looking to accomplish with that cast? It makes
it hard for others to respond with suggestions when they don't know
what your criteria are. Also, how does it fail when you try it (ie
ClassCastException)?

Personally, I haven't run into any issues, but I just stick with the
generic result set.

Give a few more details so that people can understand your issue.

Cheers,
PST


On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I am attempting to set up connection pooling in tomcat 5.0.28 using oracle
 10g. I am able to successfully use
 org.apache.commons.dbcp.BasicDataSourceFactory as long as my
 rs.executeQuery() is not cast to OracleResultSet. I have seen a few
 threads on this topic but I can't seem to find an implementation that I
 can actually get to work. Does anyone have any helpful info that can guide
 me in the right direction?
 
 Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Module jk2 and jk Connectormodules

2005-06-06 Thread Andreas Bauer
Hello!

I'm trying to configure a Tomcat-Apache connection with jk2.

I tried the jk2 module in Suse(.so) without succeed, in windows(.dll) with
succeed.

With Tomcat 5.5. and Apache 2.0.

 

My httpd.conf with jk2:

LoadModule jk2_module modules/mod_jk2.so Location /*.jsp JkUriSet 

worker ajp13:localhost:8009 /Location Location /mywebapp 

JkUriSet worker ajp13:localhost:8009 /Location

 

Is there a difference between httpd.conf with jk2 and jk module in Suse and
in the other configurationfiles, howto?

 

Many Thanks

Andreas



Re: IE-Page not found problem

2005-06-06 Thread Mark Leone
If users are having this problem only when the server is serving content 
from a protected context in Tomcat, then it is highly likely that you 
have run into this.


http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

It's something in IE that most people would call a bug, but MS has 
chosen to call a feature. The problem occurs when Tomcat appends cache 
control headers (i.e. cache-control:no-cache and pragma:no-cache) 
that indicate no caching is allowed by HTTP intermediaries. However, IE 
interprets these headers to mean that temporary storage in the client is 
also forbidden. So IE attempts to write the file to temporary storage as 
it does for all file downloads, and cancels the operation when it 
encounters the cache control headers. Then the app or file system 
(depending on whether you're running or saving the file) tries to find 
the file, doesn't find it, and cleverly reports that the site is 
unreachable.


To fix it, you simply have to configure Tomcat to not set the cache 
control headers when serving content from a protected context. Create a 
valve as follows, and put it in the appropriate context/ element. Make 
sure to substitute the class for whatever type of authentication you're 
using.


Valve className=org.apache.catalina.authenticator.DigestAuthenticator
 disableProxyCaching=false /

It's a silly problem. I ran in to it a while back, and it really 
mystified me until I found the bug write-up. Tomcat is doing the right 
thing, but MS has declared that IE is working as designed in this. 
FWIW, the HTTP spec is clear that the no-cache behavior applies to HTTP 
intermediaries, not user agents.


-Mark

sudip shrestha wrote:


I have a struts-hibernate powered webapp running off a debian box, jdk
1.5 and tomcat 5.5.7
I have IE users complaining about page not found problems from time to
time where as Firefox users never. I myselft have never encountered
this problem as I use FirefoxThis led me to thinking that this
might be a IE problem...Any suggestions on how to move ahead on the
problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is wrong with TC or something else?

2005-06-06 Thread Anto Paul
On 6/7/05, Vernon _ [EMAIL PROTECTED] wrote:
 
 I already have this project in the stable status for
 some time. After updating a few of libraries, the TC

It is not clear what libraries you updated.

-- 
rgds
Anto Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is wrong with TC or something else?

2005-06-06 Thread Vernon _




brbrbrOriginal Message FollowsbrFrom: Anto Paul 
lt;[EMAIL PROTECTED]gt;brReply-To: Anto Paul 
lt;[EMAIL PROTECTED]gt;brTo: Tomcat Users List 
lt;tomcat-user@jakarta.apache.orggt;brSubject: Re: What is wrong with TC 
or something else?brDate: Tue, 7 Jun 2005 09:28:57 +0530brMIME-Version: 
1.0brReceived: from mail.apache.org ([209.237.227.199]) by 
MC8-F39.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 6 Jun 2005 
20:59:14 -0700brReceived: (qmail 78593 invoked by uid 500); 7 Jun 2005 
03:59:12 -brReceived: (qmail 78570 invoked by uid 99); 7 Jun 2005 
03:59:11 -brReceived: pass (hermes.apache.org: domain of 
[EMAIL PROTECTED] designates 64.233.170.201 as permitted 
sender)brReceived: from rproxy.gmail.com (HELO rproxy.gmail.com) 
(64.233.170.201)  by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 06 Jun 2005 
20:59:10 -0700brReceived: by rproxy.gmail.com with SMTP id a41so2526433rng 
   for lt;tomcat-user@jakarta.apache.orggt;; Mon, 06 Jun 2005 
20:58:57 -0700 (PDT)brReceived: by 10.38.71.22 with SMTP id 
t22mr685171rna;Mon, 06 Jun 2005 20:58:57 -0700 (PDT)brReceived: by 
10.38.152.34 with HTTP; Mon, 6 Jun 2005 20:58:57 -0700 
(PDT)brX-Message-Info: 
JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=brMailing-List: contact 
[EMAIL PROTECTED]; run by ezmlmbrPrecedence: 
bulkbrList-Unsubscribe: 
lt;mailto:[EMAIL PROTECTED]gt;brList-Help: 
lt;mailto:[EMAIL PROTECTED]gt;brList-Post: 
lt;mailto:tomcat-user@jakarta.apache.orggt;brList-Id: quot;Tomcat Users 
Listquot; lt;tomcat-user.jakarta.apache.orggt;brDelivered-To: mailing 
list tomcat-user@jakarta.apache.orgbrX-ASF-Spam-Status: No, hits=0.0 
required=10.0tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASSbrX-Spam-Check-By: 
apache.orgbrDomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; 
   
b=XKnNsZzZ9O10kQuFcEIlglLbXDAGF5hssCpoN1HaVSQa1F0rJJjrCwJ3Azbc9Niq/FPGfGWs4DfRITKywyzolvRe/KSZy2V2U2OcYdDOMdxcgLZc+2O4aha2ZPzzLtOCAf6xPNUom6OkvxciDnkWa7v8IjvWA7ZdRfotkvCuqc8=brReferences: 
lt;[EMAIL PROTECTED]gt;brX-Virus-Checked: 
CheckedbrReturn-Path: 
[EMAIL PROTECTED]brX-OriginalArrivalTime: 
07 Jun 2005 03:59:14.0819 (UTC) FILETIME=[4520CD30:01C56B15]brbrOn 
6/7/05, Vernon _ lt;[EMAIL PROTECTED]gt; wrote:br gt;br gt; I already 
have this project in the stable status forbr gt; some time. After 
updating a few of libraries, the TCbrbrIt is not clear what libraries 
you updated.brbr--brrgdsbrAnto 
Paulbrbr-br


All library files are not container related. They are Hibernate and 
SpringFramework.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disabling put and delete http methods...

2005-06-06 Thread Anto Paul
On 6/7/05, Peter Fellwock [EMAIL PROTECTED] wrote:
 Tomcat Gurus:
 
 
 
 How can I disable put and delete http methods?
 

Putting a security constraint in web.xml works. Try this in
applications web.xml. Usually it will be last element in the web.xml.

security-constraint
web-resource-collection
web-resource-nameDisallowed Location/web-resource-name
url-pattern*/url-pattern
http-methodDELETE/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
 /security-constraint


-- 
rgds
Anto Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]