JK2 and 404 HTTP Error

2004-11-30 Thread Boulay Arnaud
Title: Tomcat in Cluster






Tomcat cluster and LBissue.

  
Says that I have apache HTTP + 2 Tomcats 
Workers.Each worker is defined in the same lb group and manage 
the same webapp.- It works fine in optimal context (2 Tomcat + Apache 
run).- It works fine in 1 tomcat crash.But the problem is when 
the webapp is stopped (by manager for ie.) on one worker.The query is 
send to both tomcat even to the one that have no webapp available and so, 
the answer to the client is a nice 404 HTTP Error code.IMHO, it's 
because that jk2 don't parses the http answer.Is there some issue please 
?

Regards, 
Arnaud


-
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]

Tomcat in Cluster

2004-11-29 Thread Boulay Arnaud
Hello , a specific jk2+lb question please.

Says that I have apache HTTP + 2 Tomcats Workers.

Each worker is defined in  the same lb group and manage the same webapp.
- It works fine in optimal context (2 Tomcat + Apache run).
- It works fine in 1 tomcat crash.

But the problem is when the webapp is stopped (by manager for ie.) on one 
worker.
The query is send to both tomcat even to the one that have no webapp available 
and so, the answer to the client is a nice 404 HTTP Error code.
IMHO, it's because that jk2 don't parses the http answer.
Is there some issue please ?
Regards, Arnaud

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

No more JK2 ?

2004-11-25 Thread Boulay Arnaud
Looking for some more details on this crucial subject.
IMHO, the tomcat home site don't give clear information yet.
MOD-JK replaced by MOD_JK2 in the past few year
MOD_JK2 replaced by JK in the near future ???
I don't undestand, may you help me please.
Regards,
Arnaud


hard load balancing problem

2004-11-25 Thread Boulay Arnaud
Hello , a specific jk2+lb question please.
 
Says that I have apache HTTP + 2 Tomcats Workers.
 
Each workers is defined in lb group and manage the same webapp.
- It works fine in optimal context (2 Tomcat + Apache run).
- It works fine in 1 tomcat crash.
 
But the problem is when the webapp is stopped (by manager for ie.) on one 
worker.
The query is send to both tomcat even to the one that have no webapp available 
and so, the answer to the client is a nice 404 HTTP Error code.
IMHO, it's because that jk2 don't parses the http answer.
Is there some issue please ?
Regards, Arnaud
 


live disable realm

2004-10-14 Thread Boulay Arnaud
Hello !
I'd like to solve this problem :
My webapp is defined with a realm X.
When the webapp starts, the realm is not available (break down somewhere ...).
How can I dynamicly say to my webapp to use the realm Y without change the Context 
declaration ?
Thank.,
regards,
Arnaud
 


RE: live disable realm

2004-10-14 Thread Boulay Arnaud
Ok merci beaucoup Yoav !!!
QM, I agree with you that code MUST be clear,efficient and stable but a Realm can use 
and external resource (that's the aim ;-) and if that resource is out of order, the 
webapp could automaticly switch to an another one and garantees a continued service.
Regards,
Arnaud

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: jeu. 14/10/2004 14:56 
: Tomcat Users List 
Cc: 
Objet: RE: live disable realm




Hi,

On Thu, Oct 14, 2004 at 11:14:52AM +0200, Boulay Arnaud wrote:
: My webapp is defined with a realm X.
: When the webapp starts, the realm is not available (break down
somewhere
...).
: How can I dynamicly say to my webapp to use the realm Y without
change
the Context declaration ?

I don't think this is possible.

It's possible.  You'd have to write a bit of Tomcat-specific code,
namely:

- Walk down the container hierarchy to your Context,
- Create and initialize your new Realm (Realm Y in the above text)
- Call YourContext.setRealm(Realm Y)
- Et voila...

But as I said, the code is Tomcat-specific.  It also has to reside in
common/lib or common/classes, not WEB-INF/lib or WEB-INF/classes.  And
it might be that you need to set privileged=true in your Context
declaration for this to work.

Yoav



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
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]

unpackWARs=false = hot unzip for static resources

2004-10-12 Thread Boulay Arnaud
Hello !
I would like to have confirmation for this topic :
 
Says a XML context file myapp.xml like this :
Context docBase=C:\app.war path=/agoodapp reloadable=false privileged=false/
 
and unpackWARs set to false in Host tag and server.xml file.
 
What does happen when the client call static resource (like HTML file) ? Is there an 
unzip call each time ? or something else (files stored in temp dir) ?
Thanks,
Arnaud
 

 


RE: RE: Check for deployed applications

2004-10-12 Thread Boulay Arnaud
Ant tomcat tasks is a better way ...
regards,
Arnaud

 Message d'origine 
De: kax [mailto:[EMAIL PROTECTED] 
Date: mar. 12/10/2004 16:22 
: Tomcat Users List 
Cc: 
Objet: Re: RE: Check for deployed applications



Maybe I can make a http request to the url and parse the result? Is that a 
good solution or is there any better?

/Kax


 From: kax [EMAIL PROTECTED]
 Date: 2004/10/12 ti PM 02:09:42 GMT
 To: Tomcat Users List [EMAIL PROTECTED]
 mne: Re: RE: Check for deployed applications

 Yes, but the problem is that I want to get this information from an external 
application.

 /Kax

 
  From: Shapira, Yoav [EMAIL PROTECTED]
  Date: 2004/10/12 ti PM 01:42:59 GMT
  To: Tomcat Users List [EMAIL PROTECTED]
  mne: RE: Check for deployed applications
 
  Hi,
 
  You can use the Manager webapp's HTML interface:
  http://localhost:8080/manager/list in your browser.
 
 
 
 
 
  Yoav Shapira
 
 
 
  -Original Message-
 
  From: kax [mailto:[EMAIL PROTECTED]
 
  Sent: Monday, October 11, 2004 3:04 AM
 
  To: [EMAIL PROTECTED]
 
  Subject: Check for deployed applications
 
  
 
  Hello,
 
  
 
  I know I can use the ant ListTask for getting the deployed applications
  on
 
  tomcat, but doing that I'm not getting a result to see if I have an
 
  applicatioon deployed at the root or at any other path. Is there
  another
 
  way to check this?
 
  
 
  Thanks in advance
 
  
 
  /Kax
 
  
 
  
 
  -
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
 
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.
 
 
 


 -
 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]

x-forwarded-for

2004-07-19 Thread Boulay Arnaud
Hello !
I would like to know how I can catch the real client IP address with Tomcat even if 
there is some proxy
between them.
I think that http header x-formwarded-for could embed it but I don't know how !!!
Thanks,
Arnaud
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

scripts for Workers

2004-07-06 Thread Boulay Arnaud
Hi !
I'm looking for scripts that work like startup.sh and shutdown.sh but with multi 
tomcat targets (workers). 
those scripts are for linux.
Thanks,
Arnaud

 

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

Tomcat 4.1 SSO pb

2004-06-21 Thread Boulay Arnaud
Hello !
I've got some trouble with SSO :
the SSO Valve is enabled, 2 Contexts are defined .
I must login on each application at the first time before I can do a straightforward 
switch between both application.
Any Idea ?
Thanks,
Arnaud
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 4.1 SSO pb - forget !

2004-06-21 Thread Boulay Arnaud
Sorry,
there was an error in my server.xml
Arnaud

 

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

Tomcat twice !

2004-06-14 Thread Boulay Arnaud
Hello again !
I have a trouble with Tomcat 4.1.29 on Linux :
after a delay where Tomcat running well, an other instance is created and both of them 
are blocked !
It's something special because in logic way, the socket is open by the first instance 
and so the other may not be started.
Any idea ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

dbcp and P6spy

2004-06-08 Thread Boulay Arnaud
Hello !
I am looking for example that shows how conf/server.xml must be set for my mysql 
webapp running well with dbcp pool and p6spy jdbc proxy driver.
Thanks, 
Arnaud
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

heap size profiling

2004-05-17 Thread Boulay Arnaud
I notice an auto increase (no webapp running) of memory heap with T4.1.29.
Any idea ?
Regards, 
Arnaud

 Message d'origine 
De: Tim Funk [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 14:13 
: Tomcat Users List 
Cc: 
Objet: Re: public_html directory



In that case - you'll need a hard cutover where during the conversion you'll
need to move the directories around into the servlet spec compliant webapp
format.

Weblogic 5.1 does support 2.2 webapps (IIRC). So that might be the way to 
start.

-Tim

Denny Lfgren wrote:

 This is intended for Windows. Actually, I want to get rid of Weblogic and
 only use Tomcat in some way. There will be only one system.

 //Denny





 Tim Funk [EMAIL PROTECTED]
 2004-05-17 13:57
 Please respond to Tomcat Users List
 
 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: public_html directory


 If using unix, I would try to use symlinks if you need to run the 2
 systems
 in parallel using the same code base. (Kludgy - yes)

 -Tim

 Denny Lfgren wrote:


Hi!

Ive been forced to use Weblogic 5.1 for some time now. I have a
public_html directory with sub-directories containing the jsps. At the
same level as the public_html catalog there is also the servletclasses
directory with the jars and compiled java-classes.

Ive been trying to shift things around in order to make the application

 a

j2ee one. Without luck.

Is there a way to have (almost) the same structure in tomcat (version
5024) as in weblogic 5.1?

Any help is appreciated!

//Denny


 -
 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: heap size profiling

2004-05-17 Thread Boulay Arnaud
Only the manager app running.
I use OptimizeIt and run the Memory Leak Detector.
the diff between 2 heap states  (1 minute delta) look like this : see linked image
I suppose that there is a thread that analyse web.xml but I wonder why (there is no ap 
running !) and how can I freeze it ?
Best regards, 
Arnaud
 

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 17:19 
: Tomcat Users List 
Cc: 
Objet: RE: heap size profiling




Hi,

I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
Any idea ?

It's almost impossible to have absolutely nothing running.  If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes).  However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
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: heap size profiling oups ! forgot logs

2004-05-17 Thread Boulay Arnaud
Optimizeit logs ! 

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 17:19 
: Tomcat Users List 
Cc: 
Objet: RE: heap size profiling




Hi,

I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
Any idea ?

It's almost impossible to have absolutely nothing running.  If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes).  However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
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]

Stop WA at startup

2004-05-13 Thread Boulay Arnaud
What is the way for stop all the Web Applications at Tomcat startup time ?

load-on-startup tag in web.xml seams to be here only to fix priority ...

Regards,

Arnaud 

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

RE: Stop WA at startup

2004-05-13 Thread Boulay Arnaud
No I persist : stop appli : I don't want my web apps to be available after the tomcat 
startup time.
Each web app must be started by a human act.
the lack of load-on-startup in my web.xml doesn't give the wanted result.
 
Regards, Arnaud

 Message d'origine 
De: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Date: jeu. 13/05/2004 15:09 
: Tomcat Users List 
Cc: 
Objet: RE: Stop WA at startup



Guessing that you are talking about starting instead of stopping...

load-on-startup is for servlets not for web applications.

If you include this tag in a servlet definition, the servlet will
be started at startup time. The value for the tag defines the order
of the startup.

 -Original Message-
 From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 13, 2004 2:59 PM
 To: Tomcat Users List
 Subject: Stop WA at startup

 What is the way for stop all the Web Applications at Tomcat
 startup time ?

 load-on-startup tag in web.xml seams to be here only to fix
 priority ...



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

RE: Stop WA at startup

2004-05-13 Thread Boulay Arnaud
Hi again !
For me, a deployment act is not the same semantic as start act : ie vi is available in 
Linux and it is not opened when the system is started ;-)
In my context, the Web apps list is bundled with a lot of other programs (say system 
programs) and installed by a local admin and this person is not the one who starts the 
web apps after the deployment process.
Regards,
Arnaud 

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: jeu. 13/05/2004 15:14 
: Tomcat Users List 
Cc: 
Objet: RE: Stop WA at startup




Hi,
Your message is vague.  However, take a look at the deployOnStartup flag
for the Host element in tomcat's configuration reference documentation.
It might not be exactly what you want.

Basically, if you don't want a webapp initialized when the tomcat server
is started, don't deploy that webapp.  You can always deploy it later
when you actually want it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 8:59 AM
To: Tomcat Users List
Subject: Stop WA at startup

What is the way for stop all the Web Applications at Tomcat startup
time ?

load-on-startup tag in web.xml seams to be here only to fix priority
...

Regards,

Arnaud




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
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: Stop WA at startup

2004-05-13 Thread Boulay Arnaud
I can't : working with T4.1.x :-(
 
Maybe the solution is specific webapp manager (tomcat jmx features) that starts after 
the other web apps and stop all of them !
 
Regards !

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: jeu. 13/05/2004 15:34 
: Tomcat Users List 
Cc: 
Objet: RE: Stop WA at startup




Hi,
Have you tried setting the Host's deployOnStartup attribute to false in your 
server.xml?  Does that address your needs?  If not, then you're SOL with the current 
tomcat version ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 9:27 AM
To: Tomcat Users List
Subject: RE : Stop WA at startup

Hi again !
For me, a deployment act is not the same semantic as start act : ie vi is
available in Linux and it is not opened when the system is started ;-)
In my context, the Web apps list is bundled with a lot of other programs
(say system programs) and installed by a local admin and this person is
not the one who starts the web apps after the deployment process.
Regards,
Arnaud

    Message d'origine
   De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Date: jeu. 13/05/2004 15:14
   : Tomcat Users List
   Cc:
   Objet: RE: Stop WA at startup




   Hi,
   Your message is vague.  However, take a look at the deployOnStartup
flag
   for the Host element in tomcat's configuration reference
documentation.
   It might not be exactly what you want.

   Basically, if you don't want a webapp initialized when the tomcat
server
   is started, don't deploy that webapp.  You can always deploy it later
   when you actually want it.

   Yoav Shapira
   Millennium Research Informatics


   -Original Message-
   From: Boulay Arnaud [mailto:[EMAIL PROTECTED]
   Sent: Thursday, May 13, 2004 8:59 AM
   To: Tomcat Users List
   Subject: Stop WA at startup
   
   What is the way for stop all the Web Applications at Tomcat startup
   time ?
   
   load-on-startup tag in web.xml seams to be here only to fix
priority
   ...
   
   Regards,
   
   Arnaud




   This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


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






This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
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]

Jmx HTTP/RMI Adaptors not found in Tomcat 4.1.29

2004-04-14 Thread Boulay Arnaud
Hello, I have some exceptions on Jmx setting :
 
14/04/2004 19:00:17,437 INFO  app Creating Naming:name=rmiregistry
14/04/2004 19:00:17,437 ERROR app MX4j RMI adapter not loaded: javax.management.
ReflectionException: null nested exception is java.lang.ClassNotFoundException:
mx4j.adaptor.rmi.jrmp.JRMPAdaptor
14/04/2004 19:00:17,453 INFO  app className [com.sun.jdmk.comm.HtmlAdaptorServer
] does not exist
14/04/2004 19:00:17,453 WARN  app No adaptors were loaded but mx.enabled was def
ined.
14/04/2004 19:00:17,468 INFO  app Registering the JMX hierarchy for Log4J
14/04/2004 19:00:17,562 INFO  app Jk running ID=0 time=15/359  config=C:\apache\
jakarta-tomcat-4.1.29\conf\jk2.properties
 
Althougth I copy jmx jars files (v2.0.1) in tomcat common and server libs ...
Thanks for your help.
Regards,
Arnaud


MX4J 2.0 JRMP on Tomcat 4.1.29

2004-04-07 Thread Boulay Arnaud
I have this exception :

ERROR app MX4j RMI adapter not loaded: javax.management.ReflectionException: null 
nested exception is java.lang.ClassNotFoundException: mx4j.adaptor.rmi.jrmp.JRMPAdaptor

I think it's due to the JSR 160 implementation of MX4 J2.0 that have dropped the 
RMPAdaptor. I can't get an older version of MX4J and I think that RMI adapter for 
using a JMX console like MC4J is a requirement.

I need some help !

Thanks, Regards ,

Arnaud



url-pattern pb in security constraints

2004-03-11 Thread Boulay Arnaud
Hello, I'm trying some web.xml security features and think that Catalina 
does'nt perform url pattern very well in some cases (whatever the kind of Realm).

For example :
Roles  : Administrateur and DTN
protected ressources :
 /pages/secret1/*.jsp reserved for Administrateur role
 /pages/*.jsp reserved for Administrateur and  DTN roles

When the current user has only DTN role, the first pattern is not filtered and 
so the ressource is not protected while if the first pattern is a straightforward 
ressource (say /pages/secret1/myfile.jsp) is correctly safe.
any idea ?
thanks in advance,
Arnaud

web.xml sample :

security-constraint
  web-resource-collection
web-resource-namewebapp2/web-resource-name
url-pattern/pages/secret1/*.jsp/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameAdministrateur/role-name
  /auth-constraint
 /security-constraint

 security-constraint
  web-resource-collection
web-resource-namewebapp1/web-resource-name
url-pattern/pages/*.jsp/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameDTN/role-name
   role-nameAdministrateur/role-name
  /auth-constraint
 /security-constraint







Realm url pattern mistake ?

2004-03-09 Thread Boulay Arnaud
Hello, I'm trying some web.xml security features and think that Catalina does'nt 
perform url pattern very well in some cases (whatever the kind of Realm).

For example :
Roles  : Administrateur and DTN
protected ressources :
 /pages/secret1/*.jsp reserved for Administrateur role
 /pages/*.jsp reserved for Administrateur and  DTN roles

When the current user has only DTN role, the first pattern is not filtered and so the 
ressource is not protected while if the first pattern is a straightforward ressource 
(say /pages/secret1/myfile.jsp) is correctly safe.
any idea ?
thanks in advance,
Arnaud

web.xml sample :

security-constraint
  web-resource-collection
web-resource-namewebapp2/web-resource-name
url-pattern/pages/secret1/*.jsp/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameAdministrateur/role-name
  /auth-constraint
 /security-constraint

 security-constraint
  web-resource-collection
web-resource-namewebapp1/web-resource-name
url-pattern/pages/*.jsp/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameDTN/role-name
   role-nameAdministrateur/role-name
  /auth-constraint
 /security-constraint





Checking http connection by user

2004-03-09 Thread Boulay Arnaud
Hello !
I want to ensure that a user could not use more than once his connection profile at a 
time.
In an another words, the user x can' t use his profile on machine A and machine B
How can I do that please ? (IP checking on servlet controler, specific Realm  ?)
Thanks,
Arnaud


jspc ant task and merge web.xml

2003-07-03 Thread BOULAY Arnaud
Hi !
I want to do an automatic merge of newweb.xml file generated with jspc task with 
an existing  web.xml.
Thanks in advance.
Regards, Arnaud


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



Memory Activity

2003-06-27 Thread BOULAY Arnaud
Hi !

How can I mesure the memory used for a web app (A struts one) that is started but not
used by any client. What must I do to prevent any waste of memory in this case.

In the same way, I must limit the memory consumtion of Tomcat on my system : 
It must be very small consumer as far as there is no client activity.

Thanks a lot.
Arnaud


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



webapps stopped à startup

2003-06-12 Thread BOULAY Arnaud
small tip please :
How can I tell Tomcat that I don't want any web app (say /web4 among /webN) don't 
start while tomcat start ?
thanks,
Arno


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



one web.xml for many web apps

2003-06-06 Thread BOULAY Arnaud
Hello !
It is said in Struts doc that only one controler servlet garantees that all will work 
fine but I must specify many web app in one descriptor (so many Action Servlet in 1 
web.xml )  so what is the real risk ? and the limitations ?
I think that it's not a good idea but I must proove it to my customer.
Thanks in advance.
Arnaud



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



Re: RE: one web.xml for many web apps

2003-06-06 Thread BOULAY Arnaud
Ok, thanks !
but what about commons tips (like timeout) : one web.xml for many web apps  implies 
the same session timeout for all of them: its a technical limit. 
Regards,
Arnaud


 Messages d´origine 
De: Shapira, Yoav [EMAIL PROTECTED]
Date: Vendredi 6 Juin  2003 14:13
Objet: RE: one web.xml for many web apps

 
 Howdy,
 There is one deployment descriptor per web application.  This 
 deploymentdescriptor is web.xml.
 
 Struts lets you define many sub applications or application flows
 (which translate into struts controller servlets) in every web
 application.
 
 The question is whether these application flows are big enough / 
 complexenough / loosely coupled enough (this last one is often the 
 key) to be
 webapps by themselves.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: BOULAY Arnaud [EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 8:05 AM
 To: [EMAIL PROTECTED]
 Subject: one web.xml for many web apps
 
 Hello !
 It is said in Struts doc that only one controler servlet 
 garantees that
 all
 will work fine but I must specify many web app in one descriptor (so
 many
 Action Servlet in 1 web.xml )  so what is the real risk ? and the
 limitations ?
 I think that it's not a good idea but I must proove it to my 
 customer.Thanks in advance.
 Arnaud
 
 
 
 --
 ---
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for 
 the individual(s) to whom it is addressed, and may not be saved, 
 copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail 
 from your computer system and notify the sender.  Thank you.
 
 
 ---
 --
 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]