Re: logging of "response time"

2008-07-17 Thread Tony Anecito
I have asked on this group but have never gotten an answer. My guess is it means socket connect time. What that means is the real question. Again, I have a theory that the amount of time is not just the response time (taking into account the chatter of the signaling) of the app but how long it t

Re: mod_jk: docBase and appBase -- 'ROOT' taken out

2008-07-17 Thread Charles Caldarale
On Jul 17, 2008, at 23:30, Robert Koberg <[EMAIL PROTECTED]> wrote: unless I am doing something terrible wrong with nested contexts... Nested contexts are not permitted by the servlet spec. If another container supports such a violation, it just goes to show how far some will go to tie y

Re: mod_jk: docBase and appBase -- 'ROOT' taken out

2008-07-17 Thread Robert Koberg
On Thu, 2008-07-17 at 22:47 -0500, Charles Caldarale wrote: > On Jul 17, 2008, at 21:56, Robert Koberg <[EMAIL PROTECTED]> wrote: > > > > > The problem: even though I specifiy > > 'docBase="/home/app/wwwapps/ROOT/members"' > > Which is completely illegal; buzzwrecker. why? Is there a technical

Re: mod_jk: docBase and appBase -- 'ROOT' taken out

2008-07-17 Thread Charles Caldarale
On Jul 17, 2008, at 21:56, Robert Koberg <[EMAIL PROTECTED]> wrote: The problem: even though I specifiy 'docBase="/home/app/wwwapps/ROOT/members"' Which is completely illegal; webapps may not be nested - each must be in a separate directory (or war file), usually under the appBase dire

logging of "response time"

2008-07-17 Thread ywtsang
i log the response time by the following option: %D - Time taken to process the request, in millis does this mean that the time includes the sum of: - start of request - application logic - streaming the whole response (html text) back to client ? -- View this message in context: http://www

mod_jk: docBase and appBase -- 'ROOT' taken out

2008-07-17 Thread Robert Koberg
Hi, Redhat ES 5 jdk1.6.0_07 tomcat 6.0.16 tomcat-connectors-1.2.26-src (built on the machine) tomcat-native-1.1.14-src (built on the machine) After getting the connector working for httpd without SSL I am trying to get it working with SSL. A strange warning occurs followed by the severe error. O

Changing content type on reload

2008-07-17 Thread Dola Woolfe
Hi, I'm going to attempt asking a question by giving incomplete information but I am still hoping to get an answer. The complete story would be too cumbersome to describe. Basically here's a snippet of my code: <[EMAIL PROTECTED] errorPage="ErrorPage.jsp" contentType="application/x-java-jnlp-

Re: Tomcat 5.0.27 multiple instances in Solaris

2008-07-17 Thread Charles Caldarale
> Somewhere in forums I read that > there is way to work with single > binary and multiple tomcat > instances. Read the RUNNING.txt file that's in the Tomcat home directory. > Actually, my current tomcat server > serving for 10 different sites, Why don't you use Tomcat's virtual host capability

Re: Tomcat 5.0.27 multiple instances in Solaris

2008-07-17 Thread sridharmnj
Hi Steve, Thanks for your guidence. Yes, I can do that. But copying the entire tomcat folder means, it needs multiple binarys (bin folder). Somewhere in forums I read that there is way to work with single binary and multiple tomcat instances. Actually, my current tomcat server serving for 10 di

Re: Tomcat 5.0.27 multiple instances in Solaris

2008-07-17 Thread Steve Ochani
Date sent: Thu, 17 Jul 2008 15:30:33 -0700 (PDT) From: sridharmnj <[EMAIL PROTECTED]> Subject:Tomcat 5.0.27 multiple instances in Solaris To: users@tomcat.apache.org Send reply to: Tomcat Users List > > Hi, > > I have a

Tomcat 5.0.27 multiple instances in Solaris

2008-07-17 Thread sridharmnj
Hi, I have a working tomcat5.0.27 in /export/ae/tomcat5.027 folder. (os is solaris) Now I am creating one more tomcat instance. So, I created one directory "Instance1" in /export/ae/tomcat5.0.27 folder and copied conf, logs, temp, webapps, work folders. I also modified port nubmers 8080, 8005, 80

Re: mod_jk not connecting

2008-07-17 Thread Robert Koberg
On Thu, 2008-07-17 at 17:49 -0400, David Smith wrote: > What does your workers.properties file look like? > > In my environment, all but the JkMount/JkUnmount directives went into > the global httpd.conf. Then I put the mount/unmount directives in the > virtual hosts. Also I don't do anything

Re: mod_jk not connecting

2008-07-17 Thread David Smith
What does your workers.properties file look like? In my environment, all but the JkMount/JkUnmount directives went into the global httpd.conf. Then I put the mount/unmount directives in the virtual hosts. Also I don't do anything with SetHandler. --David Robert Koberg wrote: Hi, I am try

mod_jk not connecting

2008-07-17 Thread Robert Koberg
Hi, I am trying to get httpd and tomcat to work together and not having much luck. Redhat ES 5 jdk1.6.0_07 tomcat 6.0.16 tomcat-connectors-1.2.26-src (built on the machine) tomcat-native-1.1.14-src (built on the machine) If I put mod_jk directives inside a (httpd.conf) virtual host I can't seem

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
... and now my DNS has caught up and it's working again. For those of you who are still stuck with incorrect DNS info, the IP address for both www.apache.org and tomcat.apache.org is 140.211.11.130. -- Len On Thu, Jul 17, 2008 at 14:54, Len Popp <[EMAIL PROTECTED]> wrote: > Huh? If www.apache.o

RE: Mod_proxy_ajp and App Returing Generic Files For Download

2008-07-17 Thread Plana, Richard
Further to this, it seems that it only happens when IE6 is the browser. Firefox downloads the file properly and allows one to save it. IE6, OTOH, prompts to save and when it actually tries to download, I guess the connection has been closed. Help greatly appreciated. -- Richi Plana > -Origi

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
Huh? If www.apache.org is resolving to the wrong address, then it *is* a DNS problem. From here I can't tell for certain which is "bad", the DNS result or the IP address. But in my experience, when some people can reach an internet host by name and others cannot, it's almost always due to a DNS iss

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Youssef Mohammed
if you can't access 192.87.106.226 from firefox, then it has nothing to do with DNS. On Thu, Jul 17, 2008 at 9:36 PM, Len Popp <[EMAIL PROTECTED]> wrote: > www.apache.org is not currently working here. > ping www.apache.org gets a response from 192.87.106.226, but Firefox > doesn't get a respons

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Len Popp
www.apache.org is not currently working here. ping www.apache.org gets a response from 192.87.106.226, but Firefox doesn't get a response from either www.apache.org or 192.87.106.226. tomcat.apache.org is working. Maybe there was a DNS change that hasn't propagated everywhere yet? -- Len On Th

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread dave.smith
Hi Rainer, I just use mod_jk to connect apache to tomcat. I don't do anything special with the configurations: i just have a few virtual hosts that contain a few JkMounts and some apache rewrites. Do you think switching to mod_proxy_ajp would make the problem go away? Thanks, Dave Rainer Ju

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Steve Ochani
On 17 Jul 2008 at 14:05, Bajbutovic, Zoran wrote: Date sent: Thu, 17 Jul 2008 14:05:38 -0400 From: "Bajbutovic, Zoran" <[EMAIL PROTECTED]> Subject:Both www.apache.org and tomcat.apache.org are down To: Tomcat Users List Send reply

RE: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Bajbutovic, Zoran
Thanks for checking. Than could be network specific... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Kroeker Sent: Thursday, July 17, 2008 2:09 PM To: Tomcat Users List Subject: Re: Both www.apache.org and tomcat.apache.org are down I have no is

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Raymond Kroeker
I have no issues hitting either site. Raymond On Thu, Jul 17, 2008 at 11:05, Bajbutovic, Zoran <[EMAIL PROTECTED]> wrote: > Hi all, > > Both www.apache.org and tomcat.apache.org have been down for some time. > Is anyone there to fix this? This is not particularly encouraging for us > -Apache and

Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Bajbutovic, Zoran
Hi all, Both www.apache.org and tomcat.apache.org have been down for some time. Is anyone there to fix this? This is not particularly encouraging for us -Apache and Tomcat users. Zoran - To start a new topic, e-mail: users@to

Mod_proxy_ajp and App Returing Generic Files For Download

2008-07-17 Thread Plana, Richard
Hi, We're wanting a servlet request to return a generic file for download. In Java, we use the following code: public ActionForward myAction(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Clustering - serial replication

2008-07-17 Thread Mike Whittaker
I am using tomcat 5.5 and have a clustering / replication problem. I have a WAR file that i wish to deploy replicate and deploy across the cluster, however because of the way this application conducts its own upgrades, then the war files must be deployed serially. That is to say that the primary no

Re: load balancing and sticky sessions

2008-07-17 Thread nch
If, for instance, I have 3 tomcats and one apache/mod_jk on the front end. Two of them balanced and the other one not balanced. Would session replication work for the tree of them or just for the balanced ones? Thanks in advance. - Original Message From: Pavan Singaraju <[EMAIL PROT

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Tim Redding
Just checked the the mod_jk log file. 2 other files were requested at 12:31:42 in addition to the /css/global.css file. One was index.html which just happened to be 2352 bytes in size. Exactly the same as the mysterious global.css file we got served. I have full debug level log files for mod

RE: Configure JNDI resources in a separate file from server.xml

2008-07-17 Thread Radcliffe, William H.
Brantley Hobbs wrote: >My question is this: Is it possible to pull in an "include" file in >server.xml? I'd like to place all the database connection information >in a separate file. You are referring to placing a file called context.xml in the /META-INF folder of your web app. This file can b

Re: Configure JNDI resources in a separate file from server.xml

2008-07-17 Thread Mikolaj Rydzewski
Brantley Hobbs wrote: My question is this: Is it possible to pull in an "include" file in server.xml? I'd like to place all the database connection information in a separate file. I don't think it's possible. You can: 1. use conf/Catalina/.../.xml instead of application's context.xml 2.

Configure JNDI resources in a separate file from server.xml

2008-07-17 Thread Brantley Hobbs
All, We're trying to lock down our infrastructure here. We want to avoid having production database credentials in the web application's context.xml, so we're going to move them to tomcat's server.xml. (We have read the JNDI How-To and have noted the recommendation to place resources in the

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Tim Redding
I now have logs from both the Apache server and Tomcat. I'm a little unsure how to interpret these log files. It shows that Tomcat does serve the file correctly and it is Apache that appears to do something odd when Tomcat returns a 304 response code. Apache Access Log xx.xx.4.58 - - [17/Jul

Re: CometProcessor and DWR

2008-07-17 Thread Filip Hanik - Dev Lists
yes, you got it right, if you call event.close() inside the BEGIN event, you will not receive an END event, since the request never became async, it was basically, like a regular servlet. Filip Joe Walker wrote: I guess I misread the docs. From: http://tomcat.apache.org/tomcat-6.0-doc/aio.

Re: changing extension of a jsp

2008-07-17 Thread Mikolaj Rydzewski
Deepak Mishra wrote: so i thought, if there is a way to tweak tomcat, so that i can use change the extensions of my jsp to "show" asp. Look for JspServlet declaration in conf/web.xml -- Mikolaj Rydzewski <[EMAIL PROTECTED]> --

changing extension of a jsp

2008-07-17 Thread Deepak Mishra
hello. i am using apache-tomcat6. i was looking to play a prank over my friends , by publishing their results on a lookalike site of my university. the problem is that the university is using asp , and i know only jsp. so i thought, if there is a way to tweak tomcat, so that i can use change the

Re: CometProcessor and DWR

2008-07-17 Thread Joe Walker
I guess I misread the docs. From: http://tomcat.apache.org/tomcat-6.0-doc/aio.html While talking about EventType.READ: "It is not allowed to attempt reading data from the request object outside of the execution of this method." Would it be correct to say - Use EventType.READ if you're worried abou

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Eric Dalquist
Rainer Jung-3 wrote: > > Do you get any info or above log messages in the JK log file close to > this events? > I don't believe there was anything interesting in the JK log file near that time period. Rainer Jung-3 wrote: > > What is the last column in the log formats? Is it both %D? Then

RE: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread Caldarale, Charles R
> From: Edward Song [mailto:[EMAIL PROTECTED] > Subject: RE: Doubt on lifecycle of a class in "shared" folder > > I believe it is because you are sharing the class definition, > not instances, even if they are static instances. > > So webapp1 will create a static instance of Sharer, so will > webap

count of web traffic

2008-07-17 Thread tony . chamberlain
Is there anyway to run tomcat and have it keep track of number of bytes received and transmitted, for later review? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread Edward Song
I believe it is because you are sharing the class definition, not instances, even if they are static instances. So webapp1 will create a static instance of Sharer, so will webapp2 off of the same class definition, but each will have its own instance. -Original Message- From: java_is_ever

Re: CometProcessor and DWR

2008-07-17 Thread Filip Hanik - Dev Lists
what does your HTTP request look like, it would need to have a body for the READ event to be called. currently READ doesn't get invoked when you are using a x-www-form-urlencoded this was fixed in trunk yesterday, http://svn.apache.org/viewvc?rev=677473&view=rev also, in your begin event, yo

RE: Tomcat does not start after update

2008-07-17 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Hirschi > Subject: Re: Tomcat does not start after update > > I also tested > System.out.println(System.getProperty("java.class.path")); > in a test-class and so the output was: > .:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0

Re: [New Behavior - Maybe]Connections timing out even with validation query??

2008-07-17 Thread Ken Bowen
So I changed the 1000*60 to 6, and this morning, the site responds properly. Of course, this is kind of marginal science since a collection of invidious daemons could have lined up to hit the site every hour overnight. But assuming that these changes are responsible for the correct res

Re: load balancing and sticky sessions

2008-07-17 Thread Pavan Singaraju
Set your session stickiness attribute to false. e.g.: worker..sticky_session=false On Thu, Jul 17, 2008 at 4:24 PM, nch <[EMAIL PROTECTED]> wrote: > Hi, there. > I'm reading http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html > It says "Make sure that your loadbalancer is configured for st

Re: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread Mikolaj Rydzewski
java_is_everything wrote: Now, webapp1 sets the list size to 1. Now when Sharer.getListForOthers() from webapp1, "Size is 1", while when Sharer.getListForOthers() from webapp2, it shows "Problem !!". Any light ?/ Maybe gwt adds some magick? I have checked it now on 5.x a

load balancing and sticky sessions

2008-07-17 Thread nch
Hi, there. I'm reading http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html It says "Make sure that your loadbalancer is configured for sticky session mode". I have the requirement of an apache/mod_jk load balanced tomcat cluster using session replication without session stickyness. Is this

Re: CometProcessor and DWR

2008-07-17 Thread Joe Walker
Just noticed: s/Philip/Filip/g ;-) Joe. On Thu, Jul 17, 2008 at 10:39 AM, Joe Walker <[EMAIL PROTECTED]> wrote: > > Thanks for the help Philip. > > So I was hoping to use the normal Servlet processing for all requests, and > then do something special to drop a thread when doing comet. > My even

Re: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread java_is_everything
Shared Class : /// package client; import java.util.ArrayList; public class Sharer { public static ArrayList listForOthers = null; static {

RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25

2008-07-17 Thread Carlos Morales Diego
Hello, I did it and now I have this one: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 19: message.setText("Saludo de JavaMail"); 20: 21: Store store=s.getStore("pop3"); 22: store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); 23: Trans

Re: ReplicationListener in Tomcat 6.0

2008-07-17 Thread Mark Thomas
Pavan Singaraju wrote: When performing the clustering, in server.xml, in many posts(e.g., http://marc.info/?l=tomcat-user&m=121210007222860&w=2) i saw they were configuring the Tomcat 6.0 and have provided the tag with this class. Thats why i was wondering where that class is at? In Tomcat 5.x i

Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-17 Thread Nikhil
On Wed, Jul 16, 2008 at 8:06 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Thanks Rainer. If I want to explicitly pass an environment variable from >> the httpd to the tomcat, I am using the RequestHeader, JkEnvVar, Setenv >> but >> unable to have them as it is passed in the tomcat... how do I go

Re: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25

2008-07-17 Thread Youssef Mohammed
try this .. props.put("mail.smtp.host","smtp.correo.yahoo.es"); props.put("mail.smtp.port","25"); props.put("mail.smtp.auth", "true"); On Thu, Jul 17, 2008 at 12:41 PM, Carlos Morales Diego < [EMAIL PROTECTED]> wrote: > > > Hello Jonas, > > > I still have the same mistake, s

RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25

2008-07-17 Thread Carlos Morales Diego
Hello Jonas, I still have the same mistake, so I don't know, this is my code Properties props=new Properties(); props.put("correo.smtp.host","smtp.correo.yahoo.es"); props.put("correo.smtp.port","25"); props.put("correo.smtp.auth", "true"); Session s=Session.get

Re: CometProcessor and DWR

2008-07-17 Thread Joe Walker
Thanks for the help Philip. So I was hoping to use the normal Servlet processing for all requests, and then do something special to drop a thread when doing comet. My event method looks like this: public void event(CometEvent event) throws IOException, ServletException { if (event.getEventTyp

Re: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread java_is_everything
Thanks for the reply. Yes, I had ensured it (even did a double-check after your mail, everything seems in place). But the problem persists. Everytime, webapp2 calls x.getA(), a null is returned, which shouldn't be the case, since a is a static variable. I have done another test. What I have done

Re: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread Konstantin Kolinko
Make sure, that you do not have a copy of x.class in WEB-INF/classes or WEB-INF/lib/*.jar of any of your web applications. Those take precedence over shared or common classes. See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html for details. 2008/7/17 java_is_everything <[EMAIL PR

Re: ReplicationListener in Tomcat 6.0

2008-07-17 Thread Pavan Singaraju
When performing the clustering, in server.xml, in many posts(e.g., http://marc.info/?l=tomcat-user&m=121210007222860&w=2) i saw they were configuring the Tomcat 6.0 and have provided the tag with this class. Thats why i was wondering where that class is at? In Tomcat 5.x i saw that class in the do

Re: Doubt on lifecycle of a class in "shared" folder

2008-07-17 Thread Mikolaj Rydzewski
java_is_everything wrote: public int getA() { return a; } [...] value 123. But I don't .. :-( Instead I get a null as returned value. It's impossible to return null from such method. Show us complete code (both shared class and webapps). -- Mikolaj Rydzewski <[EMAIL

Re: ReplicationListener in Tomcat 6.0

2008-07-17 Thread Mark Thomas
Pavan Singaraju wrote: Hi all, Is the class "org.apache.catalina.cluster.tcp.ReplicationListener" present in Tomcat 6.0. When i used it, the server is throwing 'ClassNotFoundException". The documentation "java doc" also is not displaying it. Please help me I don't see that class anywhere in

Re: Tomcat does not start after update

2008-07-17 Thread Oliver Hirschi
"Caldarale, Charles R" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Hirschi > Subject: Tomcat does not start after update > > Since a Java or a MacOSX update, my Tomcat 6.0.14 does not start on > my > MacOSX Server