Re: Different webapp paths on different hosts

2013-01-25 Thread Casper Wandahl Schmidt
See inline Med venlig hilsen/Kind regards Casper W. Schmidt Den 25-01-2013 06:38, bxqdev skrev: On 1/24/2013 11:52 AM, Casper Wandahl Schmidt wrote: See inline Med venlig hilsen/Kind regards Casper W. Schmidt Den 24-01-2013 02:32, Christopher Schultz skrev: -BEGIN PGP SIGNED

Re: Different webapp paths on different hosts

2013-01-25 Thread Konstantin Kolinko
2013/1/25 bxqdev bxq...@themailbay.com: Anyway I would say a context.xml file in conf/catalina/path1 (the hostname)/path1.xml (the context name) should do the trick? Place the webapp outside the appbase of the hosts and then point the docbase to the webapp (or just drop the .war with two

Re: Load properties file from Tomcat directory

2013-01-25 Thread Konstantin Kolinko
2013/1/25 Justin Rosenberg rosenbe...@crlcorp.com: Is there a to load a properties file that is dropped in the ${catalina.base}/lib directory? When I try the following it returns null: MyClass.class.getResourceAsStream(PROPERTY_FILE_NAME) You should beware of the difference between

Re: Comet problem - HTTP method GET is not supported by this URL

2013-01-25 Thread Konstantin Kolinko
2013/1/22 Andrew Winter andrewcwin...@gmail.com: I am trying to implement a Comet process. Tomcat 6.0.36 Red Hat Enterprise Linux Server release 6.2 (Santiago) Java 7u11 (32 bit) I have implemented CometProcessor. I am using the NIO connector. When I try the servlet I get: HTTP method GET

Re: Tomcat6+webapps+log4j

2013-01-25 Thread Konstantin Kolinko
2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which version? Did you install it from a zip file downloaded from tomcat.apache.org? using JULI for logging (logging.properties in conf dir) plus several webapps using its own log4j.properties. I need to

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread Hermes Flying
I am using the correct server.xml. In the version 5.5.36 the maxThreads of 0 has no effect due to this code in org.apache.tomcat.util.net.PoolTcpEndpoint  public void setMaxThreads(int maxThreads) {     if( maxThreads 0)         tp.setMaxThreads(maxThreads);     } So what I observe is

Re: Loading a DeSerialized Class to WebabbClassLoader Question

2013-01-25 Thread Peter Lavin
Hi again Chris, comments below On 01/24/2013 07:05 PM, Christopher Schultz wrote: What if you try this: ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); FileClassLoader cl = new FileClassLoader(contextClassLoader); Class? spClass = cl.arrayToClass(null,

Re: Tomcat6+webapps+log4j

2013-01-25 Thread Tiago Sousa
Hi. Thanks for your reply. My answers follows below. Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which version? I'm using tomcat 6.0.16. Did you install it from a zip file downloaded from

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread André Warnier
Hermes Flying wrote: I am using the correct server.xml. In the version 5.5.36 the maxThreads of 0 has no effect due to this code in org.apache.tomcat.util.net.PoolTcpEndpoint public void setMaxThreads(int maxThreads) { if( maxThreads 0) tp.setMaxThreads(maxThreads); } So

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread Mark Thomas
On Jan 16, you wrote this : Hermes Flying wrote: Hi, I am using Tomcat 6 (I think it is version 33 but will double check) And JVM is Java 6 from IBM Do you need exact versions? And you haven't provided any other version number since then. So why are you quoting Tomcat 5.5.36 code

RE: Unexpected poller error

2013-01-25 Thread Vishal-sh Sharma
Hi Chris, Thanks for prompt reply. I am no java developer so gave me good lead. I compared the Poll.java in tomcat source ( 7.0.35 src ) with tomcat-native-1.1.24-src diff apache-tomcat-7.0.35-src/java/org/apache/tomcat/jni/Poll.java

Re: Comet problem - HTTP method GET is not supported by this URL

2013-01-25 Thread Andrew Winter
I am trying to implement a Comet process. Tomcat 6.0.36 Red Hat Enterprise Linux Server release 6.2 (Santiago) Java 7u11 (32 bit) I have implemented CometProcessor. I am using the NIO connector. When I try the servlet I get: HTTP method GET is not supported by this URL Am I doing

Re: Different webapp paths on different hosts

2013-01-25 Thread Shanti Suresh
On Fri, Jan 25, 2013 at 3:29 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2013/1/25 bxqdev bxq...@themailbay.com: Anyway I would say a context.xml file in conf/catalina/path1 (the hostname)/path1.xml (the context name) should do the trick? Place the webapp outside the appbase of

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hermes, On 1/25/13 4:16 AM, Hermes Flying wrote: I am using the correct server.xml. In the version 5.5.36 the maxThreads of 0 has no effect due to this code in org.apache.tomcat.util.net.PoolTcpEndpoint You said you were using Tomcat 6. Now

Re: Unexpected poller error

2013-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vishal, On 1/25/13 6:11 AM, Vishal-sh Sharma wrote: Thanks for prompt reply. I am no java developer so gave me good lead. I compared the Poll.java in tomcat source ( 7.0.35 src ) with tomcat-native-1.1.24-src diff

Re: Tomcat6+webapps+log4j

2013-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/25/13 4:45 AM, Tiago Sousa wrote: Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which version? I'm using tomcat 6.0.16. Did you install it

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread Hermes Flying
Hi, I actually deploy in 2 servers one in 6 and one in 5. I noticed the same behavior described (that was not believed). I did not aim in taking anyone's time. All I wanted to do is verify the functionality using really small values. In a previous mail it was written by someone that he tested

Re: Fw: Can not understand how maxThreads of Connectors works

2013-01-25 Thread Mark Thomas
On 25/01/2013 19:58, Hermes Flying wrote: Hi, I actually deploy in 2 servers one in 6 and one in 5. I noticed the same behavior described (that was not believed). I did not aim in taking anyone's time. All I wanted to do is verify the functionality using really small values. In a previous mail

Re: Different webapp paths on different hosts

2013-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dude, On 1/25/13 12:38 AM, bxqdev wrote: i want to have one instance of webapp, No problem. which has two paths, Problem: one context = one path = one instance If you want two separate paths, you need two separate contexts. and each of the

jsp:getProperty not working

2013-01-25 Thread Benin Technologies
Hi, I'm new to Tomcat/JSP I have a JSP page that instantiates a bean, then it access the bean through a scriptlet, it works fine. But when I replace the scriptlet by a jsp:getProperty.. tag, it doesn't work Take my code below : %= employee.getFirstName() % IS WORKING, it displays the

Re: jsp:getProperty not working

2013-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern, On 1/25/13 6:56 PM, Benin Technologies wrote: I'm new to Tomcat/JSP I have a JSP page that instantiates a bean, then it access the bean through a scriptlet, it works fine. But when I replace the scriptlet by a

Re: jsp:getProperty not working

2013-01-25 Thread Benin Technologies
thanks for your reply below my EmployeeBean source code package org.company.beans; public class EmployeeBean { private int id; private StringfirstName, lastName, email, department; public

Re: Best way to log requests from a servlet and to a database?

2013-01-25 Thread Hassan Schroeder
On Fri, Jan 25, 2013 at 6:00 PM, Brian Braun brianbr...@gmail.com wrote: What I need is to be able to accept as much HTTP requests as possible, to log every one of them as fast as possible (not syncronously), and to make everything fast and with a very low usage of RAM when MySQL gets slow and

Re: Best way to log requests from a servlet and to a database?

2013-01-25 Thread Brian Braun
Hi Hassan, I forgot to mention that I am already using Amazon's cloud (EC2+load balancer) so I love to see a suggestion that mentions it! I will definitely check your advice. The problem is that it costs money to use it, and I would love to just use some kind of framework that uses my own RAM to

Re: Best way to log requests from a servlet and to a database?

2013-01-25 Thread Brian Braun
OK, Amazon's solution would be too expensive to use as a first option. I would like to use it but just after a first queue is full. This first queue would be something running in my own host, using RAM to host the buffer. Any ideas on how to create this? On Fri, Jan 25, 2013 at 9:44 PM, Brian

Re: Different webapp paths on different hosts

2013-01-25 Thread bxqdev
On 1/25/2013 12:11 PM, Casper Wandahl Schmidt wrote: See inline Med venlig hilsen/Kind regards Casper W. Schmidt Den 25-01-2013 06:38, bxqdev skrev: On 1/24/2013 11:52 AM, Casper Wandahl Schmidt wrote: See inline Med venlig hilsen/Kind regards Casper W. Schmidt Den 24-01-2013 02:32,

Re: Different webapp paths on different hosts

2013-01-25 Thread bxqdev
On 1/25/2013 12:29 PM, Konstantin Kolinko wrote: 2013/1/25 bxqdev bxq...@themailbay.com: Anyway I would say a context.xml file in conf/catalina/path1 (the hostname)/path1.xml (the context name) should do the trick? Place the webapp outside the appbase of the hosts and then point the docbase

Re: Different webapp paths on different hosts

2013-01-25 Thread bxqdev
On 1/26/2013 1:05 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dude, On 1/25/13 12:38 AM, bxqdev wrote: i want to have one instance of webapp, No problem. which has two paths, Problem: one context = one path = one instance If you want two separate

Re: Tomcat 7.0.34 and ecj 3.7.2/4.2.1

2013-01-25 Thread Ralph Schaer
I started the process of uploading the ecj 4.2.1 artefacts to the maven central repository. I followed the description from Ian. http://ianbrandt.com/2011/10/10/ecj-3-7-1-published-to-maven-central/ According to this documentation