Re: anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-25 Thread Johnny Kewl
Yes that is true, as soon as you use the security XML stuff, tomcat starts doing its thing, but if you dont use it, tomcat ignores security, and you can write your own code in a servlet. Thing is its then portable to any servlet container... If you using BASIC its actually very easy to do...

Re: Imposible set default application out of ROOT environment with TOMCAT-5.5.20?

2007-04-25 Thread aordin
SOLVED!!! In first time, thank you a lot Markus! Finally i solved the problem with Apache2, i put one apache2 server connected to Tomcat, and with mod_proxy_ajp redirects the request to my application. Adolfo. Markus Schönhaber wrote: aordin schrieb: I'm looking for set my

Organizing WEB-INF/lib

2007-04-25 Thread JavierL
Hi I've a an Axis war where a lot of people publish applications and then, lib directory is caotic with a lot of jar files. Each time somebody delete your webservice application, he/she can't delete related jar files because ignores if somebody else is using it. I want to arrange and organize

Re: linux + tomcat, some path/link problem

2007-04-25 Thread Johnny Kewl
No... what I'm trying to tell you is that if your servlet makes a page with file/// links... microsofts new security is going to stop it from working nothing to do with Tomcat. Other browsers also do it If a page is delivered by Tomcat or any server with file:/// links you going to have

Tomcat - CometProcessor question

2007-04-25 Thread Praveen Balaji
Hi all, Not sure if the subject is appropriate. Here's a description of what I need to achieve: I have a servlet that can block on a request for a long duration. This essentially means the Tomcat processor thread that is serving the HTTP request is blocked and unable to process more incoming

Cas Filter, security filter and tomcat manager

2007-04-25 Thread Aurélien Allienne
Hi, I want to use these filters for authenticate on tomcat manger. I use this wiki page : http://www.ja-sig.org/wiki/display/CASC/Combining+CASFilter+with+Tomcat+Realms+using+SecurityFilter http://www.ja-sig.org/wiki/display/CAS/CASifying+Tomcat+Manager So I have this in my web.xml : ...

Re: linux + tomcat, some path/link problem

2007-04-25 Thread David Smith
Johnny's right. Just think of the fun and hijinks malicious web developers could bring to the table if they could reference any file (document or command) they could guess the path to.Add some ajax and the fun get's even better. IMHO, it's a good thing this doesn't work. --David

mod_jk - load balancing

2007-04-25 Thread Gregor Novak
Hi all, I'm trying to configure mod_jk as load balancer and I was not so successful so far. My environment architecture looks like this: 2 servers running each 3 instances of JBoss/tomcat Aplication server with ports 8080,8081 and 8082. Into each server instance I add AJP 13 protocol

RE: Tomcat - CometProcessor question

2007-04-25 Thread Reich, Matthias
Hi, I am working on a similar scenario and currently elaborate on the Comet interfaces. 1. With the BEGIN event you get a fully parsed request object, i.e. you don't need to wait for READ events to start processing the request. 2. You can keep a reference to the request and response object so

RE: Memory Leak with Comet

2007-04-25 Thread Reich, Matthias
I tried with Tomcat6 compiled from trunk revision 532271 and two browsers sending the requests. Unfortunately it is not that easy for me to put the dump on a public web server. Instead, I had a look at the dump myself. First I ran Tomcat with a single connector with attribute maxThreads=20, and

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Reich, Matthias [EMAIL PROTECTED] wrote: First I ran Tomcat with a single connector with attribute maxThreads=20, and started it with -Xmx10m. In the dump I saw 103 instances of class org.apache.coyote.http11.Http11AprProcessor and the same number of all the attached objects like

Re: Can't create jdbc resource in context.xml

2007-04-25 Thread Glen Vermeylen
It also doesn't work with the resource-ref element. The error was javax.naming.NameNotFoundException: Name jdbc is not bound in this Context, but I was able to lookup the jdbc/sandwiches datasource using programmatic jndi lookup. Weird part is that everything works fine if I move the datasource

Re: linux + tomcat, some path/link problem

2007-04-25 Thread LRS
David Smith [EMAIL PROTECTED] Martin Gainty [EMAIL PROTECTED] Johnny Kewl [EMAIL PROTECTED] Caldarale, Charles R [EMAIL PROTECTED] Fargusson.Alan [EMAIL PROTECTED] thank all you guys and those who are paying attention to this topic. to Martin : thanks for reminding me of policy, i didn't know

RE: Memory Leak with Comet

2007-04-25 Thread Reich, Matthias
So far, I have the feeling that I am the only one who has seen these memory leaks with asynchronous Comet responses. I tried with a number of variations, e.g. - let the browser wait for 500 millis before sending the next poll after receiving a result - keep the events queued in the serverfor at

Re: mod_jk - load balancing

2007-04-25 Thread Peter . Henningsen
Hello Gregor, did you configure jk_mounts in jk.conf ? They determine, what is passed on via the loadbalancer-worker to tomcat. Also, I dislike the idea to habe the same ajp-Port al all instances (or do they have different names?). Finally, do not forget to set the individual jvm_route on the

Re: Can't create jdbc resource in context.xml

2007-04-25 Thread Martin Gainty
in your webapp WEB-INF/web.xml you will need to define the ContextLoaderListener then you will also need a way to define the root context if you want to locate the parameters in your applicationContext.xml try !-- - Loads the root application context of this web app at startup, - by default

problem switching to port 80

2007-04-25 Thread John Pedersen
Hi, I have an app running fine on port 8080, but nothing works when I switch to port 80 - in server.xml, changing: Connector port=8080 protocol=HTTP/1.1 maxThreads=150 connectionTimeout=2 redirectPort=8443 / to Connector port=80 protocol=HTTP/1.1

Re: problem switching to port 80

2007-04-25 Thread Larry Meadors
Looks like something else is listening on port 80. Is IIS running? Larry On 4/25/07, John Pedersen [EMAIL PROTECTED] wrote: Hi, I have an app running fine on port 8080, but nothing works when I switch to port 80 - in server.xml, changing: Connector port=8080 protocol=HTTP/1.1

Re: problem switching to port 80

2007-04-25 Thread Huseyin Sinecan
The reason might be related with administration rights. Not every user has the right to run an application which listens to requests on port 80. since 8080 1024, so you don't live any problem. I couldn't get the whole picture in my head actually. I just wanted to remind this. Regards hs

RE: problem switching to port 80

2007-04-25 Thread Propes, Barry L
likely IIS by default! The WWW publishing service. -Original Message- From: John Pedersen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 9:55 AM To: users@tomcat.apache.org Subject: problem switching to port 80 Hi, I have an app running fine on port 8080, but nothing works

Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Sebastiaan van Erk
Hi, I have the following problem with Comet. I have a long request, and I asynchronously write data to the output stream of the response while the request is between the BEGIN and END/ERROR events. However, the writes do NOT occur while IN a READ request, but are triggered by other events on

Re: problem switching to port 80

2007-04-25 Thread Len Popp
Also check if something is using the other ports that Tomcat uses - the shutdown port, SSL port, other connectors (e.g. AJP), clustering ports. They're all found in server.xml (but some are probably commented out). -- Len On 4/25/07, John Pedersen [EMAIL PROTECTED] wrote: Hi, I have an app

RE: problem switching to port 80

2007-04-25 Thread Caldarale, Charles R
From: John Pedersen [mailto:[EMAIL PROTECTED] Subject: problem switching to port 80 I guess there must be something else using port 80? but I can't see it ( tried netstat). Use netstat -an; plain netstat without options may not show everything. The problem may not be port 80, since Tomcat

Application startup error - TOMCAT 5.0.28 / 1.5

2007-04-25 Thread Dwight Farris
Hello All, One of my webApps is throwing the following exception; java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file org/hibernate/hql/ast/ErrorCounter I have checked the UTF8 strings; nothing has changed and the app has been running without issue. Any ideas are

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Reich, Matthias [EMAIL PROTECTED] wrote: So far, I have the feeling that I am the only one who has seen these memory leaks with asynchronous Comet responses. I tried with a number of variations, e.g. - let the browser wait for 500 millis before sending the next poll after

RE: Application startup error - TOMCAT 5.0.28 / 1.5

2007-04-25 Thread Propes, Barry L
almost sounds like you have to use the equivalent for a like a lquo; or some similar type marking in the proper xml file. Might look into it, even though nothing changed as you said. -Original Message- From: Dwight Farris [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 10:11

RE: Application startup error - TOMCAT 5.0.28 / 1.5

2007-04-25 Thread Dwight Farris
Thanks for your quick response, Barry; I will take a look into that. Dwight -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 8:19 AM To: Tomcat Users List Subject: RE: Application startup error - TOMCAT 5.0.28 / 1.5 almost sounds like

Re: problem switching to port 80

2007-04-25 Thread John Pedersen
netstat -an with Tomcat stopped: Proto Local Address Foreign AddressState TCP0.0.0.0:1350.0.0.0:0 LISTENING TCP0.0.0.0:4450.0.0.0:0 LISTENING TCP0.0.0.0:1025 0.0.0.0:0 LISTENING TCP

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. Filip Reich, Matthias wrote: So far, I have the feeling that I am the only one who has

Re: problem switching to port 80

2007-04-25 Thread John Pedersen
Not sure what happened - but it is working now. Now I just have to try to find out if it was something I switched off, or someone else changing the networks settings. Thanks for the fast response guys. If I get a definite answer to what went wrong, I will post it for future reference. John

Re: problem switching to port 80

2007-04-25 Thread David Smith
My personal preference for ferreting out port problems in Windows is TCPView (http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx). It'll offer up a fair amount of info on the process that has the conflicting port. --David John Pedersen wrote: Hi, I have an app running

Re: My first JAAS implementation. A few questions.

2007-04-25 Thread shahab
Hi: I have similar issue. Would you know if we need to save trhe Subject in HttpSession? Otherwise, how would the context get the Subject as follows - pSubject = %= Subject.getSubject(AccessController.getContext()) %/p thanx Shahab Mark Benussi wrote: I am implementing my first JAAS

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. He submitted a test webapp

Re: Application startup error - TOMCAT 5.0.28 / 1.5

2007-04-25 Thread Rashmi Rubdi
On 4/25/07, Dwight Farris [EMAIL PROTECTED] wrote: Hello All, One of my webApps is throwing the following exception; java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file org/hibernate/hql/ast/ErrorCounter I have checked the UTF8 strings; nothing has changed and the

Re: Organizing WEB-INF/lib

2007-04-25 Thread Rashmi Rubdi
On 4/25/07, JavierL [EMAIL PROTECTED] wrote: Hi I've a an Axis war where a lot of people publish applications and then, lib directory is caotic with a lot of jar files. Each time somebody delete your webservice application, he/she can't delete related jar files because ignores if somebody

Re: how to set JAAS Subject in HTTPSession

2007-04-25 Thread Rashmi Rubdi
Hi shahab, Here's : http://forum.java.sun.com/category.jspa?categoryID=15 for JAAS related questions. To set any object into HTTP Session use the setAttribute method: http://java.sun.com/javaee/5/docs/api/ , and removeAttribute. Regards -Rashmi On 4/25/07, shahab [EMAIL PROTECTED] wrote:

Building from source

2007-04-25 Thread Gross, Keith
I was trying to follow the direction from the web site for building Tomcat 5.5 from source. I was wondering if anybody has done a from scratch build using those instructions? I found right off the build.xml (http://tomcat.apache.org/tomcat-5.5-doc/build.xml) linked from that page

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. He

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
definitely a bug, I will work on a fix right away. Filip Sebastiaan van Erk wrote: Hi, I have the following problem with Comet. I have a long request, and I asynchronously write data to the output stream of the response while the request is between the BEGIN and END/ERROR events. However,

Re: Memory Leak with Comet

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: then it's normal behavior, he'll just have to wait for a timeout or the client will disconnect I don't know for sure, of course, but it's my theory at the moment. Rémy

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding -Dorg.apache.tomcat.util.net.NioSelectorShared=false to your command line Filip Filip Hanik - Dev Lists wrote: definitely a bug, I will work on a fix right away. Filip

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Sebastiaan van Erk
Hi, Thanks for the quick action. I'll test the new version right away. :-) Regards, Sebastiaan Filip Hanik - Dev Lists wrote: Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding

Re: Building from source

2007-04-25 Thread Filip Hanik - Dev Lists
1. dont use folders with spaces, in theory they should work, in practice, who knows 2. building is easier than that, follow these steps a) svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x b) cd tc5.5.x c) edit build.properties.default (the base.path parameter is where it will

Re: Change response header

2007-04-25 Thread David Smith
And your tomcat version? In 5.5+ you should be able to set the server attribute of your connector. See the docs on the tomcat website for further details. --David Dummy wrote: When I make a request to my local server, I always receive a response header like this: HTTP/1.1 200 Server:

comet events and connections

2007-04-25 Thread Daniel Doubleday
Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. I want to find out if my understanding of the comet api in tomcat is right concerning how connections are handled and event are triggered. I have a very simple test webapp

(newbie) Why tomcat needs network on startup?

2007-04-25 Thread ypomonh
Why does Tomcat need network connectivity on startup. Can't I use it on a machine that is not connected on the network (localhost)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Re: (newbie) Why tomcat needs network on startup?

2007-04-25 Thread ypomonh
.. but it seems like it is searching for DNS server on startup :-/ --=_Part_140061_20812969.1177528468191 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It doesn't need network connectivity (at least not as far

Re: (newbie) Why tomcat needs network on startup?

2007-04-25 Thread David Smith
I'm not entirely sure, but it seems like I saw something once implying some OS's (I'm thinking MS) disable the localhost when there's no active network interface. Don't think there's any reason why tomcat should be prevented from binding to localhost if it's available. --David EDMOND

Re: (newbie) Why tomcat needs network on startup?

2007-04-25 Thread EDMOND KEMOKAI
It doesn't need network connectivity (at least not as far as i know). Most developers use it within a localhost setting. If you're on windows and you're getting a prompt about a process wanting to open a port, that is just a network security issue, it doesn't mean tomcat requires internet access.

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. I want to find out if my understanding of the comet api in tomcat is right concerning how connections are handled and event are triggered. I have a

Re: Organizing WEB-INF/lib

2007-04-25 Thread JavierL
Rashmi Rubdi-2 wrote: From my experience, adding Jars for different apps in the same lib folder will cause conflicts and duplicates, especially if one person is using a JAR for one version and another is using a different version. However, you can have different projects with each

RE: (newbie) Why tomcat needs network on startup?

2007-04-25 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: (newbie) Why tomcat needs network on startup? Don't think there's any reason why tomcat should be prevented from binding to localhost if it's available. By default Tomcat doesn't bind to localhost, it uses 0.0.0.0 - all IP

Re: problem switching to port 80

2007-04-25 Thread Johnny Kewl
Type netstat -noa It will give you the PID... Then Ctrl Alt Delete - Process's and View - Select Tab PID Then you can match up the application on port 80 exactly Bet its SKYPE... ;) - Original Message - From: John Pedersen [EMAIL PROTECTED] To: users@tomcat.apache.org Sent:

Re: Organizing WEB-INF/lib

2007-04-25 Thread Rashmi Rubdi
Javier, I don't know much about Webservices and Axis in particular, but at one time I did download the Axis distribution. In the lib folder of the Axis distribution there are a few JAR files axis.jar, wsdl4j-1.5.1.jar etc. Normally, when I write multiple projects that use JAR files from

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Sebastiaan van Erk
Hi, The fixes seem to work well, thanks again! :-) Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Thanks for the quick action. I'll test the new version right away. :-) Regards, Sebastiaan Filip Hanik - Dev Lists wrote: Sebastian, I have checked in a fix to SVN. You can also work

Re: comet events and connections

2007-04-25 Thread Daniel Doubleday
I don't think that a event.close() call should throw a NPE when the event is already closed. But I would rather catch an exception when I am writing to response object that has been closed. that is possible to do, do you have the stack trace of the NPE? Here is the stack trace:

Re: comet events and connections

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Daniel Doubleday [EMAIL PROTECTED] wrote: Here is the stack trace: Exception in thread Thread-17 java.lang.NullPointerException at org.apache.catalina.connector.CometEventImpl.close(CometEventImpl.java:84) at

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: I don't think that a event.close() call should throw a NPE when the event is already closed. But I would rather catch an exception when I am writing to response object that has been closed. that is possible to do, do you have the stack trace of the

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention Filip Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Thanks for the quick action. I'll test the new version right away. :-) Regards, Sebastiaan Filip Hanik -

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Rémy Maucherat
On 4/26/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Sebastiaan van Erk wrote: Hi, The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention And it was committed before tagging, not 5 minutes after as usually happens. I feel lucky today. Rémy

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/26/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Sebastiaan van Erk wrote: Hi, The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention And it was committed before tagging, not 5 minutes after as usually happens. I

RE: Tomcat deployment question

2007-04-25 Thread Lakshmi Venkataraman
I have upgraded from Tomcat 3.3 to Tomcat 5.5.23. It is running on WinXP and I am using Java 1.5. I asked this question before with a different directory set up in which the myApp directory was under Tomcat heirarchy. As Rashmi Rubdi suggested, by renaming myApp.xml to ROOT.xml, I could

Re: Tomcat deployment question

2007-04-25 Thread Rashmi Rubdi
Hi Lakshmi, I'll explain the way I got it to work - I think it's correct because I can access my app at the root context http://localhost:8080/ Please find my replies below: Of course you can undo all the changes mentioned below and bring it back to the original state at anytime. On 4/25/07,

RE: Tomcat deployment question

2007-04-25 Thread Lakshmi Venkataraman
Hi Rashmi, Thanks! Worked! :) By renaming myApp.xml to ROOT.xml and changing path= in both ROOT.xml and myApp/context.xml, I can access my application as http://localhost:8080. But I am curious, why http://localhost:8080/myApp did NOT work? Thanks Lakshmi -Original Message- From:

RE: Tomcat deployment question

2007-04-25 Thread Caldarale, Charles R
From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat deployment question Chuck Caldarale said it is preferable to have myApp outside Tomcat's directory heirarchy. That's only true when your desired app name is not the same as the name of the .war file. TOP_DIR

Seamless transition between application updates

2007-04-25 Thread lightbulb432
What are the strategies you might use to update an application running on multiple Tomcat instances (clustered with Apache mod_jk) with a seamless transition for somebody who's using the application at the time the application is redeployed? I've always wondered how web applications that cannot