Re: Communicating between webapps

2008-10-08 Thread Leon Rosenberg
RMI, CORBA or (worst choice) SOAP. Everything else, like using libs in shared/server folders etc are hacks :-) Leon On Wed, Oct 8, 2008 at 10:53 AM, Darryl Pentz [EMAIL PROTECTED] wrote: I have an issue where webapp A needs to let webapp B know about an event, and then return a response to

Re: Communicating between webapps

2008-10-08 Thread André Warnier
Leon Rosenberg wrote: RMI, CORBA or (worst choice) SOAP. Everything else, like using libs in shared/server folders etc are hacks :-) Leon On Wed, Oct 8, 2008 at 10:53 AM, Darryl Pentz [EMAIL PROTECTED] wrote: I have an issue where webapp A needs to let webapp B know about an event, and then

RE: Communicating between webapps

2008-10-08 Thread Peter Crowther
From: André Warnier [mailto:[EMAIL PROTECTED] Maybe hacks, but why not use them if they are easier, faster, and have a smaller memory footprint ? Because they can be harder to maintain. Note *can be* - it depends on the developers and admins. Not being very good at either Java or Tomcat,

Re: Non-secure HTTP connector with secure=true requires a keystore?

2008-10-08 Thread Peter Rossbach
Hi, I don't have this problem at tomcat 6.0.18 Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ Connector port=9080 executor=tomcatThreadPool protocol=HTTP/1.1 connectionTimeout=6 URIEncoding=UTF-8 / Connector

Re: Communicating between webapps

2008-10-08 Thread Darryl Pentz
In my case, webapp A needs to let webapp B know that an event has occurred ... webapp B then does something based on that event, and the result of that action is relevant to webapp A. I did in fact use HttpURLConnection because the original HttpClient class (Commons I think) was a memory pig

apache virtual hosts using different tomcat on different servers

2008-10-08 Thread Nicola Burns
Hi, Is it possible to have the following scenario configured? Virtual host test1.foo.com using apache on server1 configured in workers.properties file as workerA that points to localhost jboss And test2.foo.com also using apache on server1 configured in the

Re: Communicating between webapps

2008-10-08 Thread Mikolaj Rydzewski
Leon Rosenberg wrote: You need additional lib (commons httpclient), you need special servlet/action/jsp on B-side, you probably need to start threads, you need to monitor those on A side, and and and... One can use HttpURLConnection. There're probably some actions/jsps already in the webapp,

Re: Communicating between webapps

2008-10-08 Thread André Warnier
Brantley Hobbs wrote: Darryl Pentz wrote: I have an issue where webapp A needs to let webapp B know about an event, and then return a response to webapp B's processing of that event to the browser. So basically I need to communicate between webapps in the same container. Since Daryl seems

Re: cannot seem to see deployed application

2008-10-08 Thread Mark Thomas
cooper5114 wrote: it's a clean download tar.gz from apache. When you copied x.war to webapps, did it expand into a x directory? If so, is the contents what you expect? If not, did you change anything in server.xml? Are the permissions on the file correct? Mark markt-2 wrote: cooper5114

Re: Communicating between webapps

2008-10-08 Thread Leon Rosenberg
On Wed, Oct 8, 2008 at 12:00 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Darryl Pentz wrote: I have not found a no-brainer solution to this as yet. The one I have tried is making a localhost HTTP call which I find to be rather expensive, given that it requires creating a socket connection

Re: Communicating between webapps

2008-10-08 Thread Mikolaj Rydzewski
Darryl Pentz wrote: I appreciate the suggestions from all so far. It does seem like at least there isn't a 'no-brainer' approach, as in of course stupid, why don't you just do X - everybody else does. It sounds like each solution has its clear pros and cons which must be weighed up in light

Re: Communicating between webapps

2008-10-08 Thread Brantley Hobbs
Darryl Pentz wrote: I have an issue where webapp A needs to let webapp B know about an event, and then return a response to webapp B's processing of that event to the browser. So basically I need to communicate between webapps in the same container. I have not found a no-brainer solution to

Re: Communicating between webapps

2008-10-08 Thread Mikolaj Rydzewski
Darryl Pentz wrote: I have not found a no-brainer solution to this as yet. The one I have tried is making a localhost HTTP call which I find to be rather expensive, given that it requires creating a socket connection to the same container. Have you actualy measured that additional local

Re: Too many open files

2008-10-08 Thread Konstantin Kolinko
2008/10/8 Mohit Anchlia [EMAIL PROTECTED]: I can see you can't wait to hear the debate. Anyhow, I am using HttpClient from apache commons and I do have .getReleaseConnection(). See comment #22 here: https://issues.apache.org/bugzilla/show_bug.cgi?id=28727#c22 and the message thread that it

external folder be mapped to Tomcat 'specific 'web application'

2008-10-08 Thread Karthik Nanjangude
Hi SPEC TOMCAT 6018 O/s UNIX11 J2SDK 1.6 Folder : /root/images Web application folder : /root/TOMCAT6018 / webapps / XYZAPPS Note: by defining the xml in context under TOMCAT6018/conf/Catalina\localhost Virtual Mapping as 'http://IP:PORT/images' can be achieved

Re: Tomcat migration from T5 to T5.5 mail

2008-10-08 Thread AlexM3
Resolved!!! There was a mailapi.jar in the application. Tomcat 5 priorzed his library in front of that one, however, the new Tomcat 5.5 prioriced that aplication library before his lib and it crashed. Is there any place where you can configure that? Thanks a lot for your help! -- View this

Re: Communicating between webapps

2008-10-08 Thread André Warnier
Mikolaj Rydzewski wrote: Leon Rosenberg wrote: You need additional lib (commons httpclient), you need special servlet/action/jsp on B-side, you probably need to start threads, you need to monitor those on A side, and and and... One can use HttpURLConnection. There're probably some

Communicating between webapps

2008-10-08 Thread Darryl Pentz
I have an issue where webapp A needs to let webapp B know about an event, and then return a response to webapp B's processing of that event to the browser. So basically I need to communicate between webapps in the same container. I have not found a no-brainer solution to this as yet. The one I

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/9/23 Jérôme Delattre [EMAIL PROTECTED] Hello, Env: Tomcat 6.0.18 / Java 6 / Windows 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

Re: external folder be mapped to Tomcat 'specific 'webapplication'

2008-10-08 Thread albrecht andrzejewski
Folder : /root/images Web application folder : /root/TOMCAT6018 / webapps / XYZAPPS Question Can a external folder be mapped to Tomcat 'specific 'web application' only as shown below If a folder is external, why should it be considered as part of the webapp context ? A

Re: Tomcat migration from T5 to T5.5 mail

2008-10-08 Thread Mark Thomas
AlexM3 wrote: Resolved!!! There was a mailapi.jar in the application. Tomcat 5 priorzed his library in front of that one, however, the new Tomcat 5.5 prioriced that aplication library before his lib and it crashed. Is there any place where you can configure that? I am afraid not. It is

Re: external folder be mapped to Tomcat 'specific 'web application'

2008-10-08 Thread Mark Thomas
Karthik Nanjangude wrote: Hi SPEC TOMCAT 6018 O/s UNIX11 J2SDK 1.6 Folder : /root/images Web application folder : /root/TOMCAT6018 / webapps / XYZAPPS Note: by defining the xml in context under TOMCAT6018/conf/Catalina\localhost Virtual Mapping as

Re: apache virtual hosts using different tomcat on different servers

2008-10-08 Thread Mikolaj Rydzewski
Nicola Burns wrote: test1.foo.com works. Test2.foo.com goes to the same application because they are both reading from the localhost mod-jk.conf. Try to use apache 2.x with mod_proxy_ajp - there's no mod-jk.conf file, you configure connections to ajp connectors inside VirtualHost elements

RE: Basic Tribes Questions

2008-10-08 Thread Mike Wannamaker
Cool, Is there a repository to just get the tribes jar or just the tribes source without having to get all of tomcat to get it? Like a SVN or CVS repository I could get the fix from and build myself? Thanks Mike -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Felix Schumacher
Hi Jerome, have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Consider having an objectClass tomcatRoleMapping which has one attribute tomcatRole. Than with your mapping like below securityrole1=group1,group2,group4

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Caldarale, Charles R
From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Even that's not necessary. The servlet security model already has

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Felix Schumacher
Am Mittwoch, den 08.10.2008, 12:04 -0500 schrieb Caldarale, Charles R: From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal

Re: Basic Tribes Questions

2008-10-08 Thread Peter Rossbach
HI Mike, tribes is part of tomcat. Yoo can find the svn repo links at http://tomcat.apache.org/svn.html Peter Am 08.10.2008 um 17:18 schrieb Mike Wannamaker: Cool, Is there a repository to just get the tribes jar or just the tribes source without having to get all of tomcat to get it?

can't get success page on tomcat startup

2008-10-08 Thread steve kirby
Hi, I had been building web products on a different Linux server, but that crashed, so I need to get apache tomcat going on a new Linux server. I'm trying to run apache-tomcat-5.5.15. I have JAVA_HOME and CATALINA_HOME set. I do startup.sh and the catalina.out log file indicates

Re: can't get success page on tomcat startup

2008-10-08 Thread Tim J Schumacher
Is port 8080 open? I just went through this and had to use the fedora system config firewall script to open it. Tim steve kirby wrote: Hi, I had been building web products on a different Linux server, but that crashed, so I need to get apache tomcat going on a new Linux server.

Re: can't get success page on tomcat startup

2008-10-08 Thread steve kirby
Hi Tim, That is a good question - I am not sys admin on this system so will have to relay this one. Based on no errors showing up, that definitely seems like it is the problem. Will let you know after I test here. Thanks much, --Steve --- On Wed, 10/8/08, Tim J Schumacher [EMAIL PROTECTED]

Re: Communicating between webapps

2008-10-08 Thread Bill Davidson
Darryl Pentz wrote: I have an issue where webapp A needs to let webapp B know about an event, and then return a response to webapp B's processing of that event to the browser. So basically I need to communicate between webapps in the same container. I have not found a no-brainer solution to

Help with installing orbeon.war. Running tomcat on vmplayer

2008-10-08 Thread Alan Butler
Hi, I am running Tomcat 5.5 on vmplayer. I have successfully ran several simple programs such as a sample.war. I am now trying to run orbeon.war. I deployed it through the manager in the same way, but when I try to go to localhost:8180/orbeon it says this application is not available and it

RE: Help with installing orbeon.war. Running tomcat on vmplayer

2008-10-08 Thread Alan Butler
Thank you. How do I grant it permission or run without a security manager? -Alan -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 12:37 PM To: Tomcat Users List Subject: Re: Help with installing orbeon.war. Running tomcat on vmplayer

Re: Help with installing orbeon.war. Running tomcat on vmplayer

2008-10-08 Thread Mark Thomas
Alan Butler wrote: After sifting through the other applications on tomcat to see what was different I found one thing. In my /usr/share/tomcat5.5/work/Catalina/localhost directory there is a directory for each application installed. Under each of these directories there is a tldCache.ser

Re: Basic Tribes Questions

2008-10-08 Thread Filip Hanik - Dev Lists
catalina-tribes.jar it depends on tomcat-juli.jar both of them are in the binary distribution for Tomcat Filip Mike Wannamaker wrote: Cool, Is there a repository to just get the tribes jar or just the tribes source without having to get all of tomcat to get it? Like a SVN or CVS

Re: Non-secure HTTP connector with secure=true requires a keystore?

2008-10-08 Thread Filip Hanik - Dev Lists
Peter Rossbach wrote: Hi, I don't have this problem at tomcat 6.0.18 Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ Connector port=9080 executor=tomcatThreadPool protocol=HTTP/1.1 connectionTimeout=6

Exception while running web application with Tomcat security manager enabled

2008-10-08 Thread Vijayaraghavan Amirisetty
hello, I am trying to run a simple webapp on tomcat 5.0 with the security manager enabled i.e with the additional options -Djava.security.manager -Djava.security.policy=%CATALINA_BASE%\conf\catalina.policy for the tomcat JVM. I get the following Stack Trace when I point the browser to my

RE: Basic Tribes Questions

2008-10-08 Thread Mike Wannamaker
Yes, I know it's in the tomcat distribution, but lets say you fix the TCPFailureDetector I would have to wait until a new version of tomcat is published before getting the fix? There is no repository I could get it from and build myself? Mike -Original Message- From: Filip Hanik -

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/10/8 Caldarale, Charles R [EMAIL PROTECTED] From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: JNDIRealm - mapping LDAP group to security role have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Even

Re: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Jérôme Delattre
2008/10/8 Felix Schumacher [EMAIL PROTECTED]: Hi Jerome, have you thought about adding an extra attribute to the groups, so that the mapping is done by a normal ldap query? Consider having an objectClass tomcatRoleMapping which has one attribute tomcatRole. Than with your mapping like below

RE: JNDIRealm - mapping LDAP group to security role

2008-10-08 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Delattre Subject: Re: JNDIRealm - mapping LDAP group to security role What should I do with it? add the same security-role-ref for each LDAP group to all my Servlets? sound strange... Yes, you're right; I missed that this

Re: Communicating between webapps

2008-10-08 Thread Darryl Pentz
Bill, You would think so but it isn't that easy. Which is good to some degree, because that would seem like a scary security vulnerability. Nevertheless, besides that, Tomcats classloader hierarchy also prevents this mechanism. It would be useful if there was some form of publish-subscribe

RE: Communicating between webapps

2008-10-08 Thread Caldarale, Charles R
From: Darryl Pentz [mailto:[EMAIL PROTECTED] Subject: Re: Communicating between webapps Nevertheless, besides that, Tomcats classloader hierarchy also prevents this mechanism. If you put the singleton's class in the common library, it will be accessible to both webapps. However, you have

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

2008-10-08 Thread Caldarale, Charles R
From: Vijayaraghavan Amirisetty [mailto:[EMAIL PROTECTED] Subject: Exception while running web application with Tomcat security manager enabled I am trying to run a simple webapp on tomcat 5.0 The 5.0 branch is no longer supported; can you try it on 5.5 or 6.0? i.e with the additional

Re: Basic Tribes Questions

2008-10-08 Thread Filip Hanik - Dev Lists
oh, of course, and that is easy 1. svn co http://svn.apache.org/repos/asf/tomcat/trunk 2. cd trunk 3. ant download 4. ant catalina-tribes.jar would be in outbuild/build/lib/catalina-tribes.jar Filip Mike Wannamaker wrote: Yes, I know it's in the tomcat distribution, but lets say you fix the

Re: can't get success page on tomcat startup

2008-10-08 Thread steve kirby
Hi Tim, Thanks! It was a firewall issue. All is well. You saved me a lot of time. Greatly appreciate it! Now, back to architecting Regards, Steve --- On Wed, 10/8/08, steve kirby [EMAIL PROTECTED] wrote: From: steve kirby [EMAIL PROTECTED] Subject: Re: can't get success page on

Re: Help with installing orbeon.war. Running tomcat on vmplayer

2008-10-08 Thread Mark Thomas
Alan Butler wrote: Thank you. How do I grant it permission or run without a security manager? Don't start Tomcat with the -security option. Mark -Alan -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 12:37 PM To: Tomcat Users

Re: isapi riderctor

2008-10-08 Thread Mark Thomas
Frank Uccello wrote: Tomcat redirector for iss not working I can http://localhost:8080/app/servlet but not http://localhost/app/servlet It give me The page cannot be found error Please help I very much doubt anyone on this list is going to be able to help given the information you

Re: can't get success page on tomcat startup

2008-10-08 Thread Tim J Schumacher
No Problem, Glad I could actually answer one of the questions on this list! -Tim steve kirby wrote: Hi Tim, Thanks! It was a firewall issue. All is well. You saved me a lot of time. Greatly appreciate it! Now, back to architecting Regards, Steve --- On Wed, 10/8/08, steve kirby

Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread uddav
hello everyone, i am a novice in this field. I was trying to create a virtual directory (alias directory) in Tomcat in Solaris box. Following is what i did. 1. stopped tomcat 2. located the server.xml file under INSTALL DIR/tomcat/conf 2. edited it to add Context path=/test

Re: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread Scott Dunbar
What is in the directory /dirtest/prod_scrpts? If it doesn't have a file named index.jsp, index.html or index.htm (defaults set in conf/web.xml) then it will give a 404. Try a very small hello world html page for one of those files. The default is to disable file listings for directories

RE: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread Caldarale, Charles R
From: uddav [mailto:[EMAIL PROTECTED] Subject: Creating virtual directory in Tomcat - HTTP Status 404 ... docBase=/dirtest/prod_scrpts URL http://servername:8080/test i get the error: HTTP Status 404 - /test/ Unless you have a welcome file (e.g., index.html)

Re: Too many open files

2008-10-08 Thread Mohit Anchlia
So I tried all the options. I also changed the code to use connection pooling with only 2 connections but still there are bunch of CLOSE_WAITS. As soon as I stop tomcat all of them go away. I am not able to figure out why there are so many CLOSE_WAITS hanging around when I just have 2 connections

Re: Too many open files

2008-10-08 Thread Serge Fonville
I'm recently new to tomcat, but still I hope I am able to help a little.On one end, any connection object should be nulled so the garbage collector can pick it up. On the other end, in server.xml define an executor and refer it in the connector, that way, you can specify the idle time and the

Re: Authentication behaviour

2008-10-08 Thread Maurizio Lotauro
On 6 Oct 2008 at 14:58, Christopher Schultz wrote: Maurizio, Christofer, Maurizio Lotauro wrote: I already read this rfc and now I have read it again, but I'm unable to found where it describe that the server can answer with 401 before the client has finished to send all data.

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

2008-10-08 Thread Vijayaraghavan Amirisetty
Hi Charles, The additional On Thu, Oct 9, 2008 at 1:49 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Vijayaraghavan Amirisetty [mailto:[EMAIL PROTECTED] Subject: Exception while running web application with Tomcat security manager enabled I am trying to run a simple

Unbounded content-length (e.g no Content-Length) in POST?

2008-10-08 Thread Ken Johanson
Greetings, Does Tomcat have an option to allow POSTs that do not have a Content-Length header, but instead only provide a range: Range: bytes=0- This is common for streaming media delivery software which may POST live data, or with other system that cannot predetermine the stream length.

Re: Communicating between webapps

2008-10-08 Thread Bill Davidson
Darryl Pentz wrote: You would think so but it isn't that easy. Which is good to some degree, because that would seem like a scary security vulnerability. Nevertheless, besides that, Tomcats classloader hierarchy also prevents this mechanism. So if I'm understanding you correctly,

Re: Communicating between webapps

2008-10-08 Thread Johnny Kewl
- Original Message - From: Darryl Pentz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 08, 2008 10:02 PM Subject: Re: Communicating between webapps Bill, You would think so but it isn't that easy. Which is good to some degree, because that

Re: Too many open files

2008-10-08 Thread Mohit Anchlia
I don't know how that will help in lowering down the CLOSE_WAITS from tomcat to apache. I'll look at it though. On Wed, Oct 8, 2008 at 3:07 PM, Serge Fonville [EMAIL PROTECTED] wrote: I'm recently new to tomcat, but still I hope I am able to help a little.On one end, any connection object

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

2008-10-08 Thread Vijayaraghavan Amirisetty
Adding some more findings.-The java.security.AccessController.doPrivileged(AccessController.java:147) is a native method. -Using java 1.5.0 to start the tomcat with Security Manager enabled works fine. Figuring out what has changed in java.security across 1.4.2 and 1.5 On Thu, Oct 9, 2008 at 4:55

Re: tomcat ROOT

2008-10-08 Thread Rusty Wright
Excellent; thanks! Johnny Kewl wrote: - Original Message - From: Rusty Wright [EMAIL PROTECTED] To: Markus Lord [EMAIL PROTECTED]; Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 07, 2008 11:31 PM Subject: Re: tomcat ROOT Hi Markus, did you ever figure this out?

Re: tomcat ROOT

2008-10-08 Thread Rusty Wright
Not naive at all; I think it's an entirely relevant and obvious question. In my situation we have a system that's administered by a different group than mine (we're merely application programmers) and the system administrators have settled on doing things this way. They're understaffed and