Re: Communicating between webapps

2008-10-09 Thread Darryl Pentz
Johnny, Indeed. I only yesterday discovered the crossContext flag and the getServletContext(String) call in the API, however my reading tells me that most servlet containers don't support it, being that they simply return null. For Tomcat you can specify the crossContext flag for that not to

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Hi. This is not my thread, so if anyone thinks I'm pushing the envelope a bit, tell me and I'll start another one. I am interested in this same issue, but in a broader sense : how to share some data, in general, between collaborating webapps within the same container. My case goes somewhat

Re: Communicating between webapps

2008-10-09 Thread Darryl Pentz
It's my thread, but you're welcome to it now. I'm done. :-) - Original Message From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 9, 2008 9:59:50 AM Subject: Re: Communicating between webapps Hi. This is not my thread, so if

Re: Communicating between webapps

2008-10-09 Thread Leon Rosenberg
On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote: I realise that this can be done via e.g. an external DB. It could also probably be done, most portably, by creating an entirely separate application accessed via HTTP calls e.g. (à la Amazon DB ?). But it looks as if within

Re: Communicating between webapps

2008-10-09 Thread Leon Rosenberg
On Thu, Oct 9, 2008 at 10:36 AM, André Warnier [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote: I realise that this can be done via e.g. an external DB. It could also probably be done, most portably, by creating an entirely

Tomcat 6 : timeoutConnect issues, intermitent long page load times

2008-10-09 Thread gary . l . johnstone
Hi, I am in the process of testing a move of our apache httpd tomcat application server from win2k3 to a solaris10 (5.10) environment. Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8h mod_jk/1.2.26 Apache Tomcat/6.0.16 running on java 1.6.0_07-b06 During testing I am seeing intermitent high

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Leon Rosenberg wrote: [...] It could look like following: [...] (200 lines of code snipped) Just a question : what do you answer when people ask for *really* detailed specifications ? :-) Many thanks. I'll need some time to digest that.

Re: Communicating between webapps

2008-10-09 Thread Ken Bowen
A very similar architecture would be offered by using JMS (say openjms or activeMQ; we've been using the latter; check for others at http://java-source.net/open-source/jms ). In this case, there is a message broker which runs separately. At the moment, we're using it on one development

problems of 5.0 to 5.5 upgrade

2008-10-09 Thread ancles
All, I encounter some problems when migrating our web application from Tomcat 5.0.25 to 5.5.25. The reason is some classes or methods are removed in 5.5.25. I need some help since I don't have much background in Tomcat API. 1. Class org.apache.catalina.Deployer was removed. In our program it

Re: Communicating between webapps

2008-10-09 Thread Leon Rosenberg
On Thu, Oct 9, 2008 at 1:01 PM, André Warnier [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: [...] It could look like following: [...] (200 lines of code snipped) Just a question : what do you answer when people ask for *really* detailed specifications ? :-) Usually I'm asking them

Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Kevin Jackson
I am trying to configure a JNDIRealm to authenticate against an Active Directory. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm The authentication seems to work but I wonder how to map LDAP groups to security roles. I do not want to add groups in the LDAP server, but to

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Leon Rosenberg wrote: On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote: I realise that this can be done via e.g. an external DB. It could also probably be done, most portably, by creating an entirely separate application accessed via HTTP calls e.g. (à la Amazon DB ?). But

redirector

2008-10-09 Thread Frank Uccello
I have installed tomcat 5.5 with iis 6 and using the isapi redirector I can point to the http://localhost:8050/Abc/servelt and that reslove fine. However when I try to use http://local/Abc/servelt it give me a web page that states Incorrect function. there nothing else on the web page I

RE: Communicating between webapps

2008-10-09 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Communicating between webapps My case goes somewhat like this : an application consisting of several webapps needs access to some common data (read/write). What you're describing is referred to as a bean in Java terminology. These

Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Jérôme Delattre
2008/10/9 Kevin Jackson [EMAIL PROTECTED]: I am trying to configure a JNDIRealm to authenticate against an Active Directory. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm The authentication seems to work but I wonder how to map LDAP groups to security roles. I do not

Migration tomcat 6.0.16 to 6.0.18

2008-10-09 Thread vicens
How can I migrate a tomcat 6.0.16 to tomcat 6.0.18? Where I can found any tutorial? Thanks -- View this message in context: http://www.nabble.com/Migration-tomcat-6.0.16-to-6.0.18-tp19900027p19900027.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Migration tomcat 6.0.16 to 6.0.18

2008-10-09 Thread Scott Dunbar
What problems are you having? This is a very simply migration. I was able to just deploy my apps and my server.xml to the 6.0.18 server and go. No code, no configuration changes for me at least. vicens wrote: How can I migrate a tomcat 6.0.16 to tomcat 6.0.18? Where I can found any

RE: Communicating between webapps

2008-10-09 Thread Caldarale, Charles R
From: Bill Davidson [mailto:[EMAIL PROTECTED] Subject: Re: Communicating between webapps So if I'm understanding you correctly, different webapps use different class loader instances and so the singleton is actually instantiated separately for each class loader? Depends on where the class

RE: Exception while running web application with Tomcat security manager enabled

2008-10-09 Thread Caldarale, Charles R
From: Vijayaraghavan Amirisetty [mailto:[EMAIL PROTECTED] Subject: Re: Exception while running web application with Tomcat security manager enabled Does the Tomcat Security Manager use any native libraries for it's operations? No. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Re: Migration tomcat 6.0.16 to 6.0.18

2008-10-09 Thread vicens
I doesn't have any problem yet, but why I need to re-deploy my apps when I only want to upgrade a minor version of tomcat? stdunbar wrote: What problems are you having? This is a very simply migration. I was able to just deploy my apps and my server.xml to the 6.0.18 server and go.

Re: problems of 5.0 to 5.5 upgrade

2008-10-09 Thread Mark Thomas
ancles wrote: All, I encounter some problems when migrating our web application from Tomcat 5.0.25 to 5.5.25. The reason is some classes or methods are removed in 5.5.25. I need some help since I don't have much background in Tomcat API. In both cases what are you actually trying to

Re: JNDIRealm - mapping LDAP group to security role

2008-10-09 Thread Juergen Weber
Geronimo maps roles to security principals: http://cwiki.apache.org/GMOxDOC10/jboss-to-geronimo-security-migration.html Maybe this feature could be ported into tomcat. On Thu, Oct 9, 2008 at 3:18 PM, Kevin Jackson [EMAIL PROTECTED] wrote: I am trying to configure a JNDIRealm to authenticate

Re: Migration tomcat 6.0.16 to 6.0.18

2008-10-09 Thread Scott Dunbar
Ok, I may have assumed too much. My configuration has virtual hosts spread over the file system. I stopped 6.0.16, copied over the server.xml and Context XML's to 6.0.18, copied a required JDBC library to the lib directory, started 6.0.18 and I was done. I guess that this isn't really a

Forwarding an exception to the default HTTP 500 error page

2008-10-09 Thread Lance Bader
I have a web application that uses a proxy class to exchange information with an external system. When this proxy class throws an exception, it always appears as a cause in some other exception, typically javax.el.ELException. I have built a custom error page to handle an exception where the

dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-09 Thread Ziggy
Hi All, I am using jdbc to connect to an oracle database but having a bit of a problem. Here is some details Jdbc driver - Type 4 App server - Tomcat 5.5 Oracle Version - 10g I have placed the jdbc driver on both the following directories [code] $TOMCAT_HOME/common/lib/

RE: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-09 Thread Caldarale, Charles R
From: Ziggy [mailto:[EMAIL PROTECTED] Sent: 2008 October 09, Thursday 11:12 org.apache.tomcat.dbcp.dbcp.PoolingDataSource I have placed the jdbc driver on both the following directories [code] $TOMCAT_HOME/common/lib/ $APPLICATION_ROOT_DIR/WEB-INF/lib/ [/code] Never, never, never put the

Re: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-09 Thread Ziggy
Hi, I originally only had it on $TOMCAT_HOME/common/lib but it didnt work. I only put it on both locations to test it out. I have now removed the copy from $APPLICATION_ROOT_DIR/WEB-INF/lib/ and i still have the same problem described below. Thanks On Thu, Oct 9, 2008 at 5:35 PM, Caldarale,

Re: context.xml in META-INF

2008-10-09 Thread Ziggy
Please ingnore this. There was a typo in the filename thats why it wasnt working. Thanks On Thu, Oct 9, 2008 at 5:17 PM, Ziggy [EMAIL PROTECTED] wrote: Hi all, I have the following datasource definition in my /META-INF/context.xml Resource name=jdbc/testdb auth=Container

Re: Communicating between webapps

2008-10-09 Thread Johnny Kewl
- Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 09, 2008 9:59 AM Subject: Re: Communicating between webapps Hi. This is not my thread, so if anyone thinks I'm pushing the envelope a bit, tell me and

Re: Authentication behaviour

2008-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maurizio, Maurizio Lotauro wrote: On 6 Oct 2008 at 14:58, Christopher Schultz wrote: Is it a problem to get this 401 before the request is complete? In my case it was a problem because the receive of the server response trigger an end of

Re: Dynamically change log4j.xml

2008-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, Mohit Anchlia wrote: Is there a way to dynamically change the logging level of log4j.xml in tomcat? I wrote a pair of JSPs a long time ago to do this. It requires a 1.2.x version of log4j, but you can change lots of stuff on the fly. See the

Session Timeout and Realm Authentication and Posted Error Message

2008-10-09 Thread Fu-Tung Cheng
Hi, My application has an ajax layer which asynchronously polls my tomcat server. When the session for the user is destroyed, the next request causes a forward to the login jsp defined for the form realm. On the login jsp I would like to output an error message like Your session has been

Re: Communicating between webapps

2008-10-09 Thread Leon Rosenberg
On Thu, Oct 9, 2008 at 7:16 PM, Johnny Kewl [EMAIL PROTECTED] wrote: I'm very much for the KISS principle... if you dont need it, dont use it... nothing is more powerful that POJO (plain old Java). Thing is KISS does not mean novice... you'll find only the guys that have been around for a

Tomcat 6.0.18 empties tomcat-users.xml

2008-10-09 Thread Robert Hufsky
Hi, I installed Tomcat 6.0.18 on Mac OS 10.4.11 / java version 1.5.0_16 and Ubuntu Hardy / java version 1.6.0_06 and in both cases I get the following strange behaviour: Before starting, $CATALINA_HOME/conf/tomcat-users.xml contains the default user entries. After starting Tomcat,

RE: Tomcat 6.0.18 empties tomcat-users.xml

2008-10-09 Thread Caldarale, Charles R
From: Robert Hufsky [mailto:[EMAIL PROTECTED] Subject: Tomcat 6.0.18 empties tomcat-users.xml Before starting, $CATALINA_HOME/conf/tomcat-users.xml contains the default user entries. Look again - they're all commented out. After starting Tomcat, $CATALINA_HOME/conf/tomcat-users.xml is

Re: Communicating between webapps

2008-10-09 Thread Johnny Kewl
- Original Message - From: Leon Rosenberg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 09, 2008 9:54 PM Subject: Re: Communicating between webapps On Thu, Oct 9, 2008 at 7:16 PM, Johnny Kewl [EMAIL PROTECTED] wrote: I'm very much for the

Re: JK and IIS - troubles?

2008-10-09 Thread br1
Hello again Rainer, Rainer Jung-3 wrote: But if you are really actively using 300 connections, it means there are 300 requests processed in parallel inside Tomcat. So you should first check with the thread dump, what those are actually doing, and whether it's a good idea to send even more

Re: Session Timeout and Realm Authentication and Posted Error Message

2008-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fu-Tung, Fu-Tung Cheng wrote: The way the realm typically works is that you request a url say /hello.jsp, the app detects you need authenticate so it saves the original request and forwards you over to the login.jsp. You fill in the fields, the

Re: Session Timeout and Realm Authentication and Posted Error Message

2008-10-09 Thread Fu-Tung Cheng
Hi Chris, Thank you for the response! So the user will be sent to a non-secure page that just says Session Timed out and a link that they click to go back to the login page? The link will then be to a url that requires authentication and then the application works as before?

[SECURITY] CVE-2008-3271 - Apache Tomcat information disclosure

2008-10-09 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-3271: Tomcat information disclosure vulnerability Severity: Low Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.31 Tomcat 5.5.0 Tomcat 6.0.x is not affected The unsupported Tomcat 3.x, 4.0.x and 5.0.x versions

Re: problems of 5.0 to 5.5 upgrade

2008-10-09 Thread ancles
So how could I find the best way to achieve this in programming? Mark Thomas-18 wrote: In both cases what are you actually trying to achieve. The 5.0-5.5 refactoring means that the 'new' classes might not be the best way to achieve what you are trying to achieve. Mark

Re: setHeader after DoFilter delegation in filter?

2008-10-09 Thread slioch
Thanks for the response Christopher. Unfortunately I need to set a value in the header after the doFilter() delegation. The reason is that header valuedepends on the result of the page rendering. So, if autoflush is disabled and the buffer size is not exceeded for the page shouldn't a