Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread elvberg
>you can run something like jsvc and > set the user to 'tomcat' which allows you to bind Howto? /dan On Fri, 2008-02-22 at 12:57 -0800, Alan Chaney wrote: > Or as I mentioned in a recent email, you can run something like jsvc and > set the user to 'tomcat' which allows you to bind to the port and

Re: NIO Java or TC - What are u using it 4?

2008-02-22 Thread Johnny Kewl
Thanks Bill... ok I can kinda see it... ha ha I imagine a SP would look at it very carefully, more so than our typical application which is intranet and nowhere near massive volumes... The holding connections is interesting heres possibly a crazy scenariao, do you think this is possible an

Re: Custom URL handlers in Tomcat web app

2008-02-22 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > MK, > > MK wrote: > | I have the following problem: > | My Web application needs to handle Lotus Notes URLs which use the scheme > | "notes". However, since Java

Re: NIO Java or TC - What are u using it 4?

2008-02-22 Thread Bill Barker
Well, you need it for Comet (unless you use the APR Connector which has similar functionality). I have a project that hasn't moved to Comet yet, but probably will do sometime this year, since the prototypes show a lot of promise. With Comet, you are basically setting up long-lived connections

Http server + Tomcat

2008-02-22 Thread Upendra Sharma
Hi, I am newbie to HTTP-server and tomcat installation and setup and thus requesting help in setting up a multi-tier web-server for my experimentation. The setup I want to do is as follows: 1.) one dedicated machine for http-server 2.) another machine for tomcat server I wanted to know which h

Http server + Tomcat

2008-02-22 Thread Upendra Sharma
Hi, I am newbie to HTTP-server and tomcat installation and setup and thus requesting help in setting up a multi-tier web-server for my experimentation. The setup I want to do is as follows: 1.) one dedicated machine for http-server 2.) another machine for tomcat server I wanted to know which h

Re: Tomcat 5.5 security policie read jar content

2008-02-22 Thread Mark Thomas
Filipe David Manana wrote: Hi, How can I specify in catalina.policy (tomcat 5.5) that a webapp can read the contents of any jar file within WEB-INF/lib/ ? (namely, read xml files within jar files) Webapps have this permission by default. Mark -

Re: NIO Java or TC - What are u using it 4?

2008-02-22 Thread Johnny Kewl
- Original Message - From: "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 22, 2008 5:59 PM Subject: Re: NIO Java or TC - What are u using it 4? you're subject has an "or" in it, what are you actually asking? What kind of projects make

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread David Smith
I must've missed the place in the documentation where it explains how to get Tomcat to start as root, then drop privileges after opening listening sockets on low-numbered ports that are only accessible by root, like Apache HTTPD does. It's called the commons-daemon project. The linux compiled

RE: JDBC driver JARs in a shared production environment

2008-02-22 Thread Katilie, John
Florian, Thanks for the feedback. I'll give it a try! jfk -Original Message- From: Kirchhoff, Florian [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 2:52 PM To: Tomcat Users List Subject: RE: JDBC driver JARs in a shared production environment jfk, thank you for the feedback.

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Alan Chaney
Or as I mentioned in a recent email, you can run something like jsvc and set the user to 'tomcat' which allows you to bind to the port and then changes the user. Regards Alan Mark H. Wood wrote: I must've missed the place in the documentation where it explains how to get Tomcat to start as r

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Mark H. Wood
I must've missed the place in the documentation where it explains how to get Tomcat to start as root, then drop privileges after opening listening sockets on low-numbered ports that are only accessible by root, like Apache HTTPD does. On most Unix-alikes, you have to choose: o tell people to use

RE: JDBC driver JARs in a shared production environment

2008-02-22 Thread Kirchhoff, Florian
Chuck, thank you for your prompt feedback. I have a couple of follow-up questions below: >> 3) Deploy the JDBC jars and commons-dbcp.jar in the WAR in >> WEB-INF/lib?> > >Yes. Great, that's what'll do. But is there anything one must be careful about in this case? For example should a particul

RE: JDBC driver JARs in a shared production environment

2008-02-22 Thread Kirchhoff, Florian
jfk, thank you for the feedback. What I found out is that the only way to get the JDBC driver in WEB-INF/lib to be found by the classloader is if you also place a copy of commons-dbcp.jar in your WAR AND you modify your context.xml to include this attribute: factory="org.apache.commons.dbcp.Basi

RE: JDBC driver JARs in a shared production environment

2008-02-22 Thread Katilie, John
It makes sense to put the JDBC driver jars in the war but I had problems when I had a resource like the following in my context.xml: And doing a JNDI lookup for the Datasource. I ended up getting Class Not Found exceptions until I moved the Jar files into the Common Tomcat Lib directory. This wa

Re: mod_jk + HTTP Push problems

2008-02-22 Thread Rainer Jung
See FlushPackets in http://tomcat.apache.org/connectors-doc/reference/apache.html Regards, Rainer Stephen More schrieb: I have created a Servlet that uses multipart/x-mixed-replace to push out data. ( See: http://www.servlets.com/jservlet2/examples/ch06/#ex06_13 ) This works perfectly fine b

Re: FW: Certification Issue in production Tomcat server...

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pranab, [EMAIL PROTECTED] wrote: | I am getting the security certification problem in a J2EE based | application which is running on our production Tomcat server [while attempting to contact LDAP server over SSL]. [snip] | Caused by: java.security.

RE: JDBC driver JARs in a shared production environment

2008-02-22 Thread Caldarale, Charles R
> From: Kirchhoff, Florian [mailto:[EMAIL PROTECTED] > Subject: JDBC driver JARs in a shared production environment > > Question: if you cannot place the JDBC driver jars in > CATALINA_HOME/commons/lib, where can you put them? > > 1) Place the JDBC jars in $CATALINA_BASE/jdbc and modify the star

RE: Apache2 adn/or Tomcat6?

2008-02-22 Thread Caldarale, Charles R
> From: elvberg [mailto:[EMAIL PROTECTED] > Subject: Re: Apache2 adn/or Tomcat6? > > ...and how do I do that? Unless you have an distinct need for httpd or you want to make your life much more complex, don't do it. Just configure Tomcat to use port 80 (and 443 for HTTPS, if you're using that),

FW: Certification Issue in production Tomcat server...

2008-02-22 Thread pranab.das
Hello Folks, I am getting the security certification problem in a J2EE based application which is running on our production Tomcat server. The Web applications main functionality is to update user's details in Authentication Directory and reset users password, and we are getting error while re

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread elvberg
> Or put Apache 2 in front of your Tomcat, as it is usually done in production > environment. ...and how do I do that? /dan On Fri, 2008-02-22 at 16:18 +0100, Antonio Petrelli wrote: > 2008/2/22, Hassan Schroeder <[EMAIL PROTECTED]>: > > > > On Fri, Feb 22, 2008 at 7:08 AM, elvberg <[EMAIL PROTECT

Tomcat 5.5 security policie read jar content

2008-02-22 Thread Filipe David Manana
Hi, How can I specify in catalina.policy (tomcat 5.5) that a webapp can read the contents of any jar file within WEB-INF/lib/ ? (namely, read xml files within jar files) cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

JDBC driver JARs in a shared production environment

2008-02-22 Thread Kirchhoff, Florian
Hi everybody, Question: if you cannot place the JDBC driver jars in CATALINA_HOME/commons/lib, where can you put them? Here is the context of my question: * A production environment where each application runs in a separate instance of Tomcat * Each application has it's own $CATALINA_BASE and po

Why is session unbound called after cluster failover?

2008-02-22 Thread Andrew Hole
Hi! Why is session unbound called after cluster failover? Two more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequ

mod_jk + HTTP Push problems

2008-02-22 Thread Stephen More
I have created a Servlet that uses multipart/x-mixed-replace to push out data. ( See: http://www.servlets.com/jservlet2/examples/ch06/#ex06_13 ) This works perfectly fine between tomcat 5.5 and Firefox. When tomcat is front-ended with httpd + mod_jk, the live push no longer works. Is this a know

Re: Problem during starting tomcat-Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/s

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sneha, Sneha Manohar wrote: | I have installed tomcat6.x. I have set the path of tomcat_home & java_home. | when I start server , screen closes.I have used catalina out , I get follwing error | Exception in thread "main" java.lang.NoClassDefFou

Re: Custom URL handlers in Tomcat web app

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MK, MK wrote: | I have the following problem: | My Web application needs to handle Lotus Notes URLs which use the scheme | "notes". However, since Java does not know this protocol by default, it throws a | MalformedUrlException when I construct a jav

Tomcat 6.0 and JSF 1.2

2008-02-22 Thread jean-louis . mateo
Tomcat : 6 Java : JDK SUN 1.6.0_04 Hi everybody, I would like to work with JSF 1.2 embedded in Tomcat 6.0 Where can I find an "How-to" ? I 've tried to do the exercices from the Marty Hall site (coresrvlets) but I failed Many thanks Best Regards Jean-Louis Matéo ---

Re: NIO Java or TC - What are u using it 4?

2008-02-22 Thread Filip Hanik - Dev Lists
you're subject has an "or" in it, what are you actually asking? Filip Johnny Kewl wrote: Cant contain my curiousity anymore? What practical applications is this been used for? I see theres a lot of control over the socket etc... but what are you guys actually doing with it? Trying to get rule

Re: do I need to install Binary Distributions or Source Code Distributions for tomcat5.5

2008-02-22 Thread Philip Cote
Sounds like your pretty new to this. Go with the binary version. Bookmark the documentation page too. It helped me get pretty far. It should help you too. On Fri, 2008-02-22 at 10:36 +, Sneha Manohar wrote: > Hi , > I am new to tomcat. I have window vista OS & jdk1.6. Which version of >

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Hassan Schroeder
On Fri, Feb 22, 2008 at 7:18 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Or put Apache 2 in front of your Tomcat, as it is usually done in production > environment. I don't know if you have statistics to substantiate that opinion, but it doesn't answer the question, eh? :-) There are de

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Antonio Petrelli
2008/2/22, Hassan Schroeder <[EMAIL PROTECTED]>: > > On Fri, Feb 22, 2008 at 7:08 AM, elvberg <[EMAIL PROTECTED]> wrote: > > > Conclusion (am I right or wrong?): http://xxx.xxx.xxx.xxx is equivalent > > with http://xxx.xxx.xxx.xxx:80 > > but never with http://xxx.xxx.xxx.xxx:8080 i.e. > > I can

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Hassan Schroeder
On Fri, Feb 22, 2008 at 7:08 AM, elvberg <[EMAIL PROTECTED]> wrote: > Conclusion (am I right or wrong?): http://xxx.xxx.xxx.xxx is equivalent > with http://xxx.xxx.xxx.xxx:80 > but never with http://xxx.xxx.xxx.xxx:8080 i.e. > I can never browse http://xxx.xxx.xxx.xxx and utilize Tomcat as a w

Apache2 adn/or Tomcat6?

2008-02-22 Thread elvberg
Apache2 listens to port 80 and Tomcat6 to 8080 by default. I KNOW that browsing an IP http://xxx.xxx.xxx.xxx takes me to the Apache welcome page if the Apache service is running irrespective of Tomcat is enabled or not. If I stop the Apache service I get "Unable to connect" even if Tomcat is enable

Re: Tomcat Cluster -> node02 is invalid, removed or not replicated at this node.

2008-02-22 Thread Andrew Hole
Thanks. Some more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequently. -- The 35 seconds refers to the initial ti

Re: Tomcat Cluster -> node02 is invalid, removed or not replicated at this node.

2008-02-22 Thread Peter Rossbach
HI Andrew, Your mcastDropTime="1000" is to low. Please set it to 3 and it is true that you must wait > 35 sec before you can restart a cluster node. Use the Java Service Wrapper or add this to your start scripts to configure this. Peter Am 22.02.2008 um 11:48 schrieb Andrew Hole:

Problem during starting tomcat-Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/s

2008-02-22 Thread Sneha Manohar
hi I have installed tomcat6.x. I have set the path of tomcat_home & java_home. when I start server , screen closes.I have used catalina out , I get follwing error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap. sneha

Tomcat Cluster -> node02 is invalid, removed or not replicated at this node.

2008-02-22 Thread Andrew Hole
Hello guys! We are trying to test Tomcat clustering but we are getting some problems. Sometimes (Log2) everything works fine but in other cases the cluster doesn't work (Log1). The only difference is the time that we wait after we shutdown a node. When we make a request after shutdown a node, c

Re: do I need to install Binary Distributions or Source Code Distributions for tomcat5.5

2008-02-22 Thread David Delbecq
Unless you plan to compile your tomcat and play with it's internals, you don't need the source En l'instant précis du 22/02/08 11:36, Sneha Manohar s'exprimait en ces termes: Hi , I am new to tomcat. I have window vista OS & jdk1.6. Which version of tomcat 5.5 i.e Binary Distributions or

do I need to install Binary Distributions or Source Code Distributions for tomcat5.5

2008-02-22 Thread Sneha Manohar
Hi , I am new to tomcat. I have window vista OS & jdk1.6. Which version of tomcat 5.5 i.e Binary Distributions or Source Code Distributions. Please help me . Thank you sneha - Unlimited freedom, unlimited storage. Get it now

RE: How to modify default tomcat http header property "Server: Apache-Coyote/1.1" ?

2008-02-22 Thread Hanks Wang (hanwan)
Thanks for your help David. Get the answer, write it here in case someone meets same problem in future: add server attribute in Connector element of the conf/server.xml, something like this: Thanks Han -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: How to modify default tomcat http header property "Server: Apache-Coyote/1.1" ?

2008-02-22 Thread David Smith
You didn't mention which version of tomcat you are using. Starting w/ 5.5, the server attribute can be added to the Connector in server.xml. See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html for further details. --David Hanks Wang (hanwan) wrote: Hi all, I deployed a servlet i

Custom URL handlers in Tomcat web app

2008-02-22 Thread MK
Hi everybody, I have the following problem: My Web application needs to handle Lotus Notes URLs which use the scheme "notes". However, since Java does not know this protocol by default, it throws a MalformedUrlException when I construct a java.net.URL from a notes:// URL-string. So, I read up on