Re: AJP13 Connector and JKOptions
What do the URL's look like? Here is an example. If I right click and get the properties on the "missing" image, I see this (well I'd add a more "real" looking URL but the this mailing list has rejected my last 9 attempts as spam...): MyDomain/images/bg_hdr_logo.gif and the image does NOT display. The actual source from that page shows this: So, looking at the page that DOES display correctly I see this for the image properties: localhost:8080/images/bg_hdr_logo.gif It looks like both resolve to the /images folder correctly in the URL but does Apache pass the /images/ url to Tomcat? In this case, the *only* reason I am using Apache as the front end is so that the URL can be "friendly". That is, have it run through port 80 and served up with the other web apps that Apache is running. Apache has no other role except to "pass through" the traffic to Tomcat. Apache will serve no content at all. That is it. The site, run directly to/through Tomcat is *perfect*. No problems with URL, images, anything. I just want to access the app, located on the same hardware and through the same IP as the Apache app like this: MyDomain/MyAPP If there is another way to have Tomcat serve the app at port 80 at the same IP address as Apache, I'd be happy to entertain it. Using AJP seemed the right way to do it. I am going to look into Andre's suggestion to use: SetHandler jakarta-servlet and see what happens with that option. I'll post back. Pete Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 2/18/2009 8:17 AM, Pete Helgren wrote: The pages display but none of the images display and several of the webapps links are broken. So, something isn't quite right. It is almost as though the application links aren't relative to the correct root. What do the URLs look like in the page itself? Like in the HTML elements. Is the URL is wrong, it's not going to work. Also, if you are using Apache httpd to serve static content, URLs containing the ";jsessionid=123456789" parameter aren't interpreted correctly by Apache httpd and you should add "JkStripSession On" to your configuration. This will allow Apache to properly serve static images that include this jsessionid parameter. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcaT0ACgkQ9CaO5/Lv0PDT5wCfY28zvbYD/BjOb6hMzjKUX81W iFYAoIz62/NzUiYv77lcbZG7FWECgOJ1 =1YWc -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HttpServletResponse.sendRedirect() not working?
Thanks for the feedback and suggestions. I've decided to take a different approach with my error handling. I think the error handling strategy I was trying to implement was a bad idea and I have abandoned it. (In particular, I think I was trying to do a redirect after my frameworks had done one or more forwards. Several filters are involved as well. I tried to diagnose it all but it became too complicated for me to unravel.) BTW, I analyzed the behavior in Jetty and found that the client was responding to the redirect before the original request had completed, i.e. the handling of the redirect request was taking place in my servlet even before the original error-causing request had completed. The debugging statements for both requests were intermingled in my log files. Brad Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Brad, > > On 2/17/2009 12:32 AM, Brad Whitaker wrote: >> try { >> >> if(LOG.isDebugEnabled()) { >> LOG.debug("Executing redirect with response >> ["+response+"]"); >> } >> String redirectUrl = response.encodeRedirectURL(actualUri); >> response.sendRedirect(redirectUrl); >> >> } catch (IOException e) { >> throw new ControllerExecutionException("Error redirecting >> request for url ["+actualUri +"]: " + e.getMessage(),e); >> } catch (Exception ex) { >> LOG.error("redirectResponse: caught Exception=" + ex); >> throw new ControllerExecutionException("Error redirecting >> request for url [" + actualUri + "]: " + ex.getMessage(), ex); >> } >> return null; > > This should totally work. > >> I'm certain that the redirect is never sent to the browser. I've been >> using >> Firebug and HttpWatch to monitor each request and response. When I >> execute >> this code on Jetty I do see the redirect sent to the browser. > > How do you know that no exceptions are being thrown? > >> I took a look at the Error Handling sections of the Servlet spec and it >> wasn't clear to me if perhaps the redirect is not permitted after an >> exception has been thrown. > > Exceptions are orthogonal to request/response processing. If you allow > the exception to propagate (that is, you don't catch it), then Tomcat > typically sends a 500 Server Error response to the client. There is no > requirement for exception handling in the servlet spec (other than those > implied by the API itself) and no reason a "regular" response can't be > given even in an exceptional condition. > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkmcXiIACgkQ9CaO5/Lv0PArfQCdFhJqH2nEPLirJrjfo8+P7Efk > V/IAnRFdu9dTlMd7B/m3zlut1Xk7Ej5t > =Mb/0 > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/HttpServletResponse.sendRedirect%28%29-not-working--tp22049004p22090697.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk pool/thread/configure questions
That's what I thought too looking at the docs, but I found posts like this: http://mail-archives.apache.org/mod_mbox/tomcat-dev/200802.mbox/%3c47c45363.5060...@hanik.com%3e and http://www.mailinglistarchive.com/users@tomcat.apache.org/msg25455.html FYI, DisableReuse hurt my performance by about 30%. So, I think I'm fine the way I am. Thanx, -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, February 18, 2009 3:32 PM To: Tomcat Users List Subject: Re: mod_jk pool/thread/configure questions -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 4:43 PM, Anthony J. Biacco wrote: > 1. That's how I understood the documentation also. Maybe "Max" in > jkstatus refers to the max simultaneous connections it has done so > far, not the max it can do? I have no idea. Rainer or Mladen will have to answer this. Guys? > 2. Yeah, I tried the Executor attribute. Unfortunately, it doesn't > work on AJP connectors. But a good thought. Perhaps the DisableReuse > JkOption. I'll have to load test performance both ways. Really? It's documented to be supported here: http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html If it doesn't work, you should file a bug report. I'm not sure is DisableReuse is going to change anything... the Java threads are independent of that setting. The DisableReuse will just establish new ajp13 connections with the backend. The same set of threads will still handle the requests. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcjFUACgkQ9CaO5/Lv0PAEWACeJY83r5pgaxevuChm5vTWU6vv bEAAn3ZKkf+3EcigpkcrMyHPF3Nmb5+9 =dA2C -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Record and simulate a web app
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, On 2/18/2009 5:10 PM, Frank W. Zammetti wrote: > +1 to what Christopher said... but, you can save yourself some time: > > http://javawebparts.sourceforge.net/ > > More specifically: > > http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/RequestRecorderFilter.html I think this might get you started, but it only records the request parameters. You'll need to hash everything if you really want to detect the "same" request for replay. > ...and to go along with that: > > http://javawebparts.sourceforge.net/javadocs/javawebparts/misc/package-summary.html I think the RecordedRequestPlayer is another "client" replay driver rather than something that can replay the response back to a particular request. This is interesting enough that I might try to do it myself ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcjSkACgkQ9CaO5/Lv0PCmjgCeOqn/zlpm+65JwS55tJVUu59d 4G4An0sorb8+Ne5NYTEuM9f228Hybtu4 =B0nb -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk pool/thread/configure questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 4:43 PM, Anthony J. Biacco wrote: > 1. That's how I understood the documentation also. Maybe "Max" in > jkstatus refers to the max simultaneous connections it has done so > far, not the max it can do? I have no idea. Rainer or Mladen will have to answer this. Guys? > 2. Yeah, I tried the Executor attribute. Unfortunately, it doesn't > work on AJP connectors. But a good thought. Perhaps the DisableReuse > JkOption. I'll have to load test performance both ways. Really? It's documented to be supported here: http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html If it doesn't work, you should file a bug report. I'm not sure is DisableReuse is going to change anything... the Java threads are independent of that setting. The DisableReuse will just establish new ajp13 connections with the backend. The same set of threads will still handle the requests. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcjFUACgkQ9CaO5/Lv0PAEWACeJY83r5pgaxevuChm5vTWU6vv bEAAn3ZKkf+3EcigpkcrMyHPF3Nmb5+9 =dA2C -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can I access Tomcat's JNDI provider from outside tomcat?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uma, On 2/13/2009 7:16 AM, Uma Gudi wrote: > How to access Tomcat's JNDI provider from outside tomcat 5.5.27 ? Tomcat does not provide a complete JNDI directory, etc. It is only for use within Tomcat. If you need to mock-up a JNDI DataSource for unit testing, these guys have apparently done something like that: http://faq.javaranch.com/java/CodeBarnLibrariesAndFrameworks - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmciy8ACgkQ9CaO5/Lv0PDxewCfQsSKj2LLn+rEw3hhk3uTvjAI dbEAniXzR2AT/uDrHJCl9NTF+aUckSF6 =cOnJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Record and simulate a web app
+1 to what Christopher said... but, you can save yourself some time: http://javawebparts.sourceforge.net/ More specifically: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/RequestRecorderFilter.html ...and to go along with that: http://javawebparts.sourceforge.net/javadocs/javawebparts/misc/package-summary.html I think that'll pretty much do as suggested. Frank -- Frank W. Zammetti Author of "Practical Dojo Projects" and "Practical DWR 2 Projects" and "Practical JavaScript, DOM Scripting and Ajax Projects" and "Practical Ajax Projects With Java Technology" (For info: apress.com/book/search?searchterm=zammetti&act=search) My "look ma, I have a blog too!" blog: zammetti.com/blog Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Youssef, On 2/18/2009 2:02 PM, Youssef Mohammed wrote: Sorry if this not directly related to tomcat itself. I have a swing app that communicate with backend thru a web app deployed on tomcat. For testing purposes, we want to be able to record some http responses and later on be able to simulate the same response when it gets the same request ( aka simulating the web sever). All tools we could find only record requests and simulate the client not the sever. Any help/hint is appreciated. thnx This sounds like something you could write yourself as a relatively simple webapp: 1. Write an HTTP recorder filter. Configure it as the first filter that gets run for any request. Wrap the request object with one that records the input stream coming in, say, to a file. Wrap the response with one that records the output to another file. Your request object can link these two files any way it wants. You probably want to do something like use Content-Length + SHA1(request) as a key to the request that you store for later. 2. Run your application through this filter to generate some test data. 3. Write a servlet that does nothing but read requests, hash them, look up the "test response" from your database of responses, and dump the response back to the client. You'll have to watch out for a few things: 1. The recorded response is not directly playable because it includes things like the status header, which you can't send twice. So you'll have to record the status header and set it appropriately instead of just writing content. 2. Similar to #1, you have to send headers using setHeader() instead of just writing to the output stream, because the output stream is used solely for the response body. 3. If your requests include bodies, you might want to pre-process the requests to account for varying amounts of whitespace, etc. In thinking about #1 and #2 above, I think a change to the "recorder" is in order: you probably want to store the headers, status code, etc. specially instead of just as text in your recorded file. This will make it easier to "play back" the response. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcfiwACgkQ9CaO5/Lv0PBdqQCgs8PYXOm4U6f2oD+ejQVkHvFQ QRMAoJJCjhY8XRJX2n9tMDwjIewvtK27 =6R37 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org __ Information from ESET Smart Security, version of virus signature database 3865 (20090218) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk pool/thread/configure questions
1. That's how I understood the documentation also. Maybe "Max" in jkstatus refers to the max simultaneous connections it has done so far, not the max it can do? 2. Yeah, I tried the Executor attribute. Unfortunately, it doesn't work on AJP connectors. But a good thought. Perhaps the DisableReuse JkOption. I'll have to load test performance both ways. 3. Thank you. -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, February 18, 2009 2:24 PM To: Tomcat Users List Subject: Re: mod_jk pool/thread/configure questions -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 1:14 PM, Anthony J. Biacco wrote: > I'm using apache 2.2.11 with tomcat 6.0.18 and mod_jk 1.2.27 on linux > 2.6 x86_64. > I was using a prefork mpm in apache, but have now moved to the worker > mpm. > I have a question or two regarding mod_jk in light of this change. > > 1. I'm running with ThreadsPerChild at 25 and MaxClients at 500. So, > I understand this to mean my connection pool minimum size will be a > total of 13. (25+1/2). - From the JK documentation: " connection_pool_size This defines the number of connections made to the AJP backend that are maintained as a connection pool. It will limit the number of those connection that each web server child process can made. Connection pool size property is only used for multi threaded web servers such as Apache, IIS and Netscape/Sun. The connection_pool_size property needs to reflect the number of requests one web server process should be able to send to a backend in parallel. Usually this is the same as the number of threads per web server process. JK will discover this number for the Apache web server automatically and set the pool size to this value. For IIS the default value is 250 (before version 1.2.20: 10), for Netscape/Sun the default value is 1. " Sounds like your connection pool size will be fixed at 25 connections per httpd process. > And then that this will be divided between my 4 tomcat > backends fairly equally. If I'm reading the documentation correctly, the connection_pool_size is set for a particular worker, so if you have 4 separate workers (for 4 separate Tomcat instances), each with a connection_pool_size of 25, you'll end up with 100 ajp13 connections from httpd to Tomcat /per process/. So, if you are using the worker mpm and have 10 processes, then you'll have 1000 ajp13 connections from httpd to Tomcat. The stats you get from the jkstatus make it obvious that I don't know what I'm talking about. > 2. In tomcat, It seems that my threads keep increasing, though they're > not used. I thought that the connectTimeout in tomcat and the > connect_timeout/ping_timeout in mod_jk would stop this by closing idle > threads, but it does not. Eventually the threads in tomcat with reach > the max of 400 and stay there until tomcat is restarted. Is there a way > to resolve this? And more importantly, should I resolve it? Is there any > major memory/CPU inplications to it keeping its threads at the max? I seem to recall someone saying that (for the standard HTTP and AJP connectors) allocated request processors are never recycled. That is, once a thread is created to handle an incoming connection, it is never retired. If you use an , I believe you can do real thread management and have your threads disappear when they are idle for too long. You might want to check the documentation for : http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html You'll want to use the "executor" attribute on your elements to have your connectors use the named executor for thread management. > 3. What are the benefits to configuring mod_jk with --enable-EAPI and for > what circumstances should this be used? You are using Apache httpd 2.2, so EAPI isn't applicable. EAPI is only for httpd 1.3. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcfGQACgkQ9CaO5/Lv0PDO0wCfQAcW+GeHXc29g+LtpFptVR7v XhEAoLkFDzdMK24ZP3nZwV7VjLa6B2MD =gtNt -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Record and simulate a web app
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Youssef, On 2/18/2009 2:02 PM, Youssef Mohammed wrote: > Sorry if this not directly related to tomcat itself. I have a swing app that > communicate with backend thru a web app deployed on tomcat. For testing > purposes, we want to be able to record some http responses and later on be > able to simulate the same response when it gets the same request ( aka > simulating the web sever). All tools we could find only record requests and > simulate the client not the sever. Any help/hint is appreciated. thnx This sounds like something you could write yourself as a relatively simple webapp: 1. Write an HTTP recorder filter. Configure it as the first filter that gets run for any request. Wrap the request object with one that records the input stream coming in, say, to a file. Wrap the response with one that records the output to another file. Your request object can link these two files any way it wants. You probably want to do something like use Content-Length + SHA1(request) as a key to the request that you store for later. 2. Run your application through this filter to generate some test data. 3. Write a servlet that does nothing but read requests, hash them, look up the "test response" from your database of responses, and dump the response back to the client. You'll have to watch out for a few things: 1. The recorded response is not directly playable because it includes things like the status header, which you can't send twice. So you'll have to record the status header and set it appropriately instead of just writing content. 2. Similar to #1, you have to send headers using setHeader() instead of just writing to the output stream, because the output stream is used solely for the response body. 3. If your requests include bodies, you might want to pre-process the requests to account for varying amounts of whitespace, etc. In thinking about #1 and #2 above, I think a change to the "recorder" is in order: you probably want to store the headers, status code, etc. specially instead of just as text in your recorded file. This will make it easier to "play back" the response. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcfiwACgkQ9CaO5/Lv0PBdqQCgs8PYXOm4U6f2oD+ejQVkHvFQ QRMAoJJCjhY8XRJX2n9tMDwjIewvtK27 =6R37 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk pool/thread/configure questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 1:14 PM, Anthony J. Biacco wrote: > I'm using apache 2.2.11 with tomcat 6.0.18 and mod_jk 1.2.27 on linux > 2.6 x86_64. > I was using a prefork mpm in apache, but have now moved to the worker > mpm. > I have a question or two regarding mod_jk in light of this change. > > 1. I'm running with ThreadsPerChild at 25 and MaxClients at 500. So, > I understand this to mean my connection pool minimum size will be a > total of 13. (25+1/2). - From the JK documentation: " connection_pool_size This defines the number of connections made to the AJP backend that are maintained as a connection pool. It will limit the number of those connection that each web server child process can made. Connection pool size property is only used for multi threaded web servers such as Apache, IIS and Netscape/Sun. The connection_pool_size property needs to reflect the number of requests one web server process should be able to send to a backend in parallel. Usually this is the same as the number of threads per web server process. JK will discover this number for the Apache web server automatically and set the pool size to this value. For IIS the default value is 250 (before version 1.2.20: 10), for Netscape/Sun the default value is 1. " Sounds like your connection pool size will be fixed at 25 connections per httpd process. > And then that this will be divided between my 4 tomcat > backends fairly equally. If I'm reading the documentation correctly, the connection_pool_size is set for a particular worker, so if you have 4 separate workers (for 4 separate Tomcat instances), each with a connection_pool_size of 25, you'll end up with 100 ajp13 connections from httpd to Tomcat /per process/. So, if you are using the worker mpm and have 10 processes, then you'll have 1000 ajp13 connections from httpd to Tomcat. The stats you get from the jkstatus make it obvious that I don't know what I'm talking about. > 2. In tomcat, It seems that my threads keep increasing, though they're > not used. I thought that the connectTimeout in tomcat and the > connect_timeout/ping_timeout in mod_jk would stop this by closing idle > threads, but it does not. Eventually the threads in tomcat with reach > the max of 400 and stay there until tomcat is restarted. Is there a way > to resolve this? And more importantly, should I resolve it? Is there any > major memory/CPU inplications to it keeping its threads at the max? I seem to recall someone saying that (for the standard HTTP and AJP connectors) allocated request processors are never recycled. That is, once a thread is created to handle an incoming connection, it is never retired. If you use an , I believe you can do real thread management and have your threads disappear when they are idle for too long. You might want to check the documentation for : http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html You'll want to use the "executor" attribute on your elements to have your connectors use the named executor for thread management. > 3. What are the benefits to configuring mod_jk with --enable-EAPI and for > what circumstances should this be used? You are using Apache httpd 2.2, so EAPI isn't applicable. EAPI is only for httpd 1.3. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcfGQACgkQ9CaO5/Lv0PDO0wCfQAcW+GeHXc29g+LtpFptVR7v XhEAoLkFDzdMK24ZP3nZwV7VjLa6B2MD =gtNt -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > > My WEB-INF/classes/ contains the "missing" class... > MsgServiceImpl.class .. not sure what the heck the problem is..? You don't have it properly placed in the subdirectories; it needs to be: WEB-INF/classes/com/i2s/webMonster/server/MsgServiceImpl.class The package name is the subdirectory structure - this is basic Java. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
Caldarale, Charles R wrote: From: Scott Carlson [mailto:scarl...@i2s.com] Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems That was what I had originally, it has changed often due to conflicting advice on forums. I did change it back to test. Leave it as is, without the package name. The must match... the URL pattern (what a coincidence). If you're not using com.i2s.webMonster.server as part of the URL, it shouldn't be in the . (Whatever forum advised including the package name is a forum to avoid.) 127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST /webMonster/MsgService HTTP/1.1" 500 2656 0.004 - The above is the only one of interest in the access log. As previously suggested, test with just this URL, using wget or equivalent, direct to Tomcat; eliminate the rest of the crap until the servlet is sorted. SEVERE: Allocate exception for servlet MsgService java.lang.ClassNotFoundException: com.i2s.webMonster.server.MsgServiceImpl Perhaps you need to fix the above before doing anything else. I haven't seen that latter log until just now! Does this help? In the word of Homer Simpson, Doh! - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for your time Chuck. I have moved this question to the GWT Group, hope they respond as fast as you did! As of now, I haven't resolved these issues. I will come back with a follow-up.. My WEB-INF/classes/ contains the "missing" class... MsgServiceImpl.class .. not sure what the heck the problem is..? Thanks Again Scott - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
On Feb 18, 2009, at 3:24 PM, Alan Chaney wrote: I agree with Jorge - I run several Tomcats under VMware for both production and development. However it is worth noting that if you use the appropriate vmware tools for your installation (vmware-guestd etc.) you get a significant performance boost on network accesses which may well be important for tomcat. (See vmxnet) YMMV. Regards Alan Chaney Jorge Medina wrote: There are no issues on running Tomcat in a VM. Tomcat is unaware of where it is running. Performance depends on the host running your VM. If you compare a VM running application A on host H compared to application A running directly on host H, you will notice that running on the real server is faster. This is true for any application, not just Tomcat. -Original Message- From: acacio costa [mailto:acaciofco...@yahoo.com.br] Sent: Wednesday, February 18, 2009 2:33 PM To: users@tomcat.apache.org Subject: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization Hi, Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? i apreciate to know if you have issues and a tips to go on. Other things to know, Performance comparative with a real server? as the same? better? What the parameters you perceive as better than other environment and what cause as you move Tom Cat to VM. Thanks in advance, Acacio Costa Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org !DSPAM:499c67d762582136417547! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I would add only that You - OP - might want to have a "Bridged" network connection in the VM. I have VmWare Fusion on my Mac and as soon as I bridged it things got much better, network wise. János - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
Agreed, I run 2 LBed tomcats in seperate vmware machines for our dev environ. with no noticeable problems. Depends on the app though. For instance, my mysql cluster in vmware sucks when you do just about anything in the vm machines, because it's so sensitive to latency. -Tony Sent from my Windows Mobile® phone. -Original Message- From: Alan Chaney Sent: Wednesday, February 18, 2009 1:26 PM To: Tomcat Users List Subject: Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization I agree with Jorge - I run several Tomcats under VMware for both production and development. However it is worth noting that if you use the appropriate vmware tools for your installation (vmware-guestd etc.) you get a significant performance boost on network accesses which may well be important for tomcat. (See vmxnet) YMMV. Regards Alan Chaney Jorge Medina wrote: > There are no issues on running Tomcat in a VM. Tomcat is unaware of where it > is running. > > Performance depends on the host running your VM. If you compare a VM running > application A on host H compared to application A running directly on host H, > you will notice that running on the real server is faster. This is true for > any application, not just Tomcat. > > > > -Original Message- > From: acacio costa [mailto:acaciofco...@yahoo.com.br] > Sent: Wednesday, February 18, 2009 2:33 PM > To: users@tomcat.apache.org > Subject: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization > > Hi, > > Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? > > i apreciate to know if you have issues and a tips to go on. > > Other things to know, Performance comparative with a real server? as the > same? better? > What the parameters you perceive as better than other environment and what > cause as you move Tom Cat to VM. > > Thanks in advance, > > Acacio Costa > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > !DSPAM:499c67d762582136417547! > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Expired Self-Signed Certificates?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/17/2009 3:03 PM, Furman, Mark wrote: > Thanks Serge. I believe that answers my question. Note that, if your client app is Java-based, the Java HTTPS provider will do all that checking for you, and should be complaining about the non-validity of the SSL certificate. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmccKIACgkQ9CaO5/Lv0PAaNgCfdcFbdnS77Lwj357K3MDlepg3 MSgAn2J+sv56A37f1kXjZjqm+GVrCdvG =KZ+W -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat in-memory (session) cookie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Makaira, On 2/17/2009 5:38 PM, makaira nigricans wrote: > So after my all my dilemmas > JSESSIONID is simple cookie! Yes, containing only the id of the HttpSession living on the server. You can look at this cookie's contents by watching the HTTP traffic between client and server using LiveHTTPHeaders (a Firefox add-on) or similar add-on to another browser, or by using a TCP sniffer such as Wireshark. > But I still do not know is this the cookie > which exists only when browser is opened because I closed browser and run my > cookie-printing servlet which printed this cookie again?! I suspect that you had another browser window opened somewhere. If you don't close all the browser windows, then the browser is still considered to be running, and your cookie will continue to be sent. > You said that through the HttpSession object I can access the cookies This was an incorrect statement. > and > you said and that JSESSIONID attribute is handled by Tomcat but you said "It > is enough to add the attribute(s) you will later use." Does this means that > I can add more values to JSESSIONID cookie?! Cookies can have only one value. The JSESSIONID cookie has the only value it will ever need: the id of the session. Don't mess around with the JSESSIONID cookie. > If I can this is great, it solves my problem, I can check with my second > servlet is JSESSIONID present and I can check does it contains my value and > if it does I redirect, if it doesn't I inform user. I think you need to be more clear about your requirements. Do you just want to know if the user has visited your "second servlet" during their session? If so, then you can simply store that fact as an attribute of the session. Something like this: session.setAttribute("did-visit-second-servlet", Boolean.TRUE); You can check for this value like this: if(Boolean.TRUE.equals(session.getAttribute("did-visit-second-servlet"))) { response.sendRedirect("http://www.google.com/";); return; } - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcb7oACgkQ9CaO5/Lv0PC+2gCghSo7c9nOL5YJRldbJSf/b3YH DkoAoJPUu6KiHqcCV8Oy4VQO1d8bfLXG =yTiS -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
I agree with Jorge - I run several Tomcats under VMware for both production and development. However it is worth noting that if you use the appropriate vmware tools for your installation (vmware-guestd etc.) you get a significant performance boost on network accesses which may well be important for tomcat. (See vmxnet) YMMV. Regards Alan Chaney Jorge Medina wrote: There are no issues on running Tomcat in a VM. Tomcat is unaware of where it is running. Performance depends on the host running your VM. If you compare a VM running application A on host H compared to application A running directly on host H, you will notice that running on the real server is faster. This is true for any application, not just Tomcat. -Original Message- From: acacio costa [mailto:acaciofco...@yahoo.com.br] Sent: Wednesday, February 18, 2009 2:33 PM To: users@tomcat.apache.org Subject: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization Hi, Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? i apreciate to know if you have issues and a tips to go on. Other things to know, Performance comparative with a real server? as the same? better? What the parameters you perceive as better than other environment and what cause as you move Tom Cat to VM. Thanks in advance, Acacio Costa Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org !DSPAM:499c67d762582136417547! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat in-memory (session) cookie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, On 2/17/2009 3:57 PM, Jorge Medina wrote: > My confusion came from the fact that through the HttpSession object, > you can access the cookies with methods that names then Attributes > (getAttribute/setAttribute). It was unclear -to me- that it is the same > stuff as a "cookie". No, the JSESSIONID cookie contains only the session identifier. The HttpSession object lives on the server (only) and contains any number of attributes. These attributes are not related to the cookie in any way other than the cookie identifies the HttpSession object which holds them. HttpSessions can be tracked using techniques other than cookies. URL rewriting is a second standard way to communicate session ids when cookies are unavailable and/or unwanted. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcbdoACgkQ9CaO5/Lv0PDQfwCeOnxeHlJprpDcqZeaH7wWqVqY M+sAn0NrF+Ry2gJV2VDdpOsrtc8/9XX4 =wlvi -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat vs deflate
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Morc, On 2/17/2009 8:07 AM, Gabor 'Morc' KORMOS wrote: > So basically you say code it for yourself by modifying the HTTP connector? Tomcat's existing gzip is implemented as an OutputFilter. You might want to browse the source for that before you go messing around with the HTTP connector. I'm not sure how the GzipOutputFilter hooks into the HTTP response, though. org/apache/coyote/http11/filters/GzipOutputFilter.java - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcawEACgkQ9CaO5/Lv0PA7sQCaAgnaETbGhJ4A9xuUlpjOLcG+ hRsAn3wBPpiOZRKUJzaJULUAWBszhWqX =mtTA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AJP13 Connector and JKOptions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 2/18/2009 8:17 AM, Pete Helgren wrote: > The pages display but none of the images display and several of the > webapps links are broken. So, something isn't quite right. It is almost > as though the application links aren't relative to the correct root. What do the URLs look like in the page itself? Like in the HTML elements. Is the URL is wrong, it's not going to work. Also, if you are using Apache httpd to serve static content, URLs containing the ";jsessionid=123456789" parameter aren't interpreted correctly by Apache httpd and you should add "JkStripSession On" to your configuration. This will allow Apache to properly serve static images that include this jsessionid parameter. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcaT0ACgkQ9CaO5/Lv0PDT5wCfY28zvbYD/BjOb6hMzjKUX81W iFYAoIz62/NzUiYv77lcbZG7FWECgOJ1 =1YWc -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
There are no issues on running Tomcat in a VM. Tomcat is unaware of where it is running. Performance depends on the host running your VM. If you compare a VM running application A on host H compared to application A running directly on host H, you will notice that running on the real server is faster. This is true for any application, not just Tomcat. -Original Message- From: acacio costa [mailto:acaciofco...@yahoo.com.br] Sent: Wednesday, February 18, 2009 2:33 PM To: users@tomcat.apache.org Subject: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization Hi, Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? i apreciate to know if you have issues and a tips to go on. Other things to know, Performance comparative with a real server? as the same? better? What the parameters you perceive as better than other environment and what cause as you move Tom Cat to VM. Thanks in advance, Acacio Costa Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
On Wed, Feb 18, 2009 at 11:32 AM, acacio costa wrote: > Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? FYI, it's "Tomcat". > i apreciate to know if you have issues and a tips to go on. I've run Tomcat under VMware for testing purposes. No issues, it's no different than running it on a different host. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization
Hi, Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? i apreciate to know if you have issues and a tips to go on. Other things to know, Performance comparative with a real server? as the same? better? What the parameters you perceive as better than other environment and what cause as you move Tom Cat to VM. Thanks in advance, Acacio Costa Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: HttpServletResponse.sendRedirect() not working?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad, On 2/17/2009 12:32 AM, Brad Whitaker wrote: > try { > > if(LOG.isDebugEnabled()) { > LOG.debug("Executing redirect with response > ["+response+"]"); > } > String redirectUrl = response.encodeRedirectURL(actualUri); > response.sendRedirect(redirectUrl); > > } catch (IOException e) { > throw new ControllerExecutionException("Error redirecting > request for url ["+actualUri +"]: " + e.getMessage(),e); > } catch (Exception ex) { > LOG.error("redirectResponse: caught Exception=" + ex); > throw new ControllerExecutionException("Error redirecting > request for url [" + actualUri + "]: " + ex.getMessage(), ex); > } > return null; This should totally work. > I'm certain that the redirect is never sent to the browser. I've been using > Firebug and HttpWatch to monitor each request and response. When I execute > this code on Jetty I do see the redirect sent to the browser. How do you know that no exceptions are being thrown? > I took a look at the Error Handling sections of the Servlet spec and it > wasn't clear to me if perhaps the redirect is not permitted after an > exception has been thrown. Exceptions are orthogonal to request/response processing. If you allow the exception to propagate (that is, you don't catch it), then Tomcat typically sends a 500 Server Error response to the client. There is no requirement for exception handling in the servlet spec (other than those implied by the API itself) and no reason a "regular" response can't be given even in an exceptional condition. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcXiIACgkQ9CaO5/Lv0PArfQCdFhJqH2nEPLirJrjfo8+P7Efk V/IAnRFdu9dTlMd7B/m3zlut1Xk7Ej5t =Mb/0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HttpServletResponse.sendRedirect() not working?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad, On 2/16/2009 8:55 PM, Brad Whitaker wrote: > Is there a valid reason why this might occur, or is this likley a > bug in Tomcat? A bug is unlikely. I would guess that 100% of webapps out there use redirects and they work perfectly fine. > My code has thrown an exception prior to invoking the redirect but I can't > find anything in the Servlet spec that would indicate this is a problem. Er... if your code throws an exception then the sendRedirect call will never occur because your method is done executing. Can you post some code? > The > HttpServletResponse.sendRedirect() is within a try/catch block and no > exception is being thrown in response to sendRedirect(). The exception is probably happening before the sendRedirect. Are you swallowing any exceptions (that is, catching them and ignoring them)? > I > have verified that sendRedirect() is being executed and not throwing an > exception. How have you verified that the sendRedirect is being executed? > This same code is working as desired when executed on Jetty (i.e. > the desired redirect is received by the browser) but when executed in Tomcat > I see the default Tomcat error page displayed rather than the redirect. Everything else is the same? All the libraries are at the same patch level, etc.? Are you seeing any errors in your Tomcat log files? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcXX0ACgkQ9CaO5/Lv0PA4lQCbBogI29p8tS7vSsRRgfasrJVn LAYAn09+8k1ydcCT7nU0mNOwIVRQUiF7 =Sa/K -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > That was what I had originally, it has changed often due to > conflicting advice on forums. I did change it back to test. Leave it as is, without the package name. The must match... the URL pattern (what a coincidence). If you're not using com.i2s.webMonster.server as part of the URL, it shouldn't be in the . (Whatever forum advised including the package name is a forum to avoid.) > 127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST > /webMonster/MsgService HTTP/1.1" 500 2656 0.004 - The above is the only one of interest in the access log. As previously suggested, test with just this URL, using wget or equivalent, direct to Tomcat; eliminate the rest of the crap until the servlet is sorted. > SEVERE: Allocate exception for servlet MsgService > java.lang.ClassNotFoundException: > com.i2s.webMonster.server.MsgServiceImpl Perhaps you need to fix the above before doing anything else. > I haven't seen that latter log until just now! Does this help? In the word of Homer Simpson, Doh! - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Record and simulate a web app
Sorry if this not directly related to tomcat itself. I have a swing app that communicate with backend thru a web app deployed on tomcat. For testing purposes, we want to be able to record some http responses and later on be able to simulate the same response when it gets the same request ( aka simulating the web sever). All tools we could find only record requests and simulate the client not the sever. Any help/hint is appreciated. thnx
Re: Tomcat Internal Buffering with Jython
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prashant, On 2/15/2009 11:56 AM, Prashant Golash wrote: > Note:The python script is actually called using the PythonInterpreter class > and all those Java and Jython integration techniques. Why bother writing to a file at all, instead of reading from the servlet input stream and writing to the servlet output stream? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcWlkACgkQ9CaO5/Lv0PCGAgCaAhJVXkg81+SgE26SXLrZL8c5 X9UAoIjmbbsClhuQFz9SDNU0D9aq5w5f =pzF+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tribes
Is there a way to get more documentation on the Tribes package ? I would like to reuse the dynamic membership discovery feature of Tribes, but many of the links are not working on the page http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html Thanks -Jorge
Re: Resource JDBC connection pooling USING LDAP
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 2/17/2009 10:46 AM, trames wrote: > Thanks, that is exactly what I did. > > Since the documentation stated that it used apache (tomcat's version) dbcp > and the BasicDataSourceFactory, I looked at the source for this class > through SVN. It fairly simply creates a BasicDataSource. So that is what I > did. I retrieved all the parameters from LDAP within my factory class. > Worked out great. Would you be willing to post your implementation into the Tomcat wiki? This seems like something someone may either want to use directly (unlikely IMO) or as a jumping-off point for developing their own ResourceFactory. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcWaEACgkQ9CaO5/Lv0PBSEACdFVAp1J+8xdpat2BQA+a8ql6/ a5IAn2MsH5/QVzsiXL3m/5LqLoj4Dugj =MOsW -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] of the different methods to get a user-id
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 2/17/2009 5:08 AM, Peter Crowther wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> IMHO, you either have control of your production environment >> yourself (and can do whatever you want) or you have an ops team >> with complete control of your production environment (and they >> ought to be able to handle scary stuff like scheduling cron jobs >> and running shell scripts) or you have no control whatsoever and >> therefore do not have a production environment. > > Chris, how would you handle the case of writing software for > installation by third parties in environments over which you have no > control? Those third parties' environments are still "production > environments", but you have no control over them. I see that situation as a special case of "you have an OPS team". If your customers want to control their boxes, they should know how to do thing like schedule jobs. Maintaining server software just isn't as simple as babysitting something like Microsoft Office. Customers have to understand that. Those customers who aren't qualified to maintain their installations of your server software should start paying YOU to maintain them properly. That's another revenue stream for you. Be happy! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcWVcACgkQ9CaO5/Lv0PCu4gCgs/GdyLEtpfatGosImZtlPs5N uyEAoKxUcaZNt8PnMpWZcEBsovhSrMq9 =y5MR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
Caldarale, Charles R wrote: From: Scott Carlson [mailto:scarl...@i2s.com] Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems The majority of the forums always bring up web.xml Which is appropriate, since yours is incorrect. Your URL pattern should be: /MsgService - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hi Chuck -- That was what I had originally, it has changed often due to conflicting advice on forums. I did change it back to test. I undeployed my app. changed web.xml to this snip MsgService com.i2s.webMonster.server.MsgServiceImpl MsgService /MsgService snip And still no luck. Here are my logs.. These are fresh. - access_log - 127.0.0.1 - scott [18/Feb/2009:13:46:14 -0500] "GET /manager/html/undeploy?path=/webMonster HTTP/1.1" 200 9595 0.048 - 127.0.0.1 - - [18/Feb/2009:13:46:14 -0500] "GET /manager/images/tomcat.gif HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:13:46:14 -0500] "GET /manager/images/asf-logo.gif HTTP/1.1" 304 - 0.003 - 127.0.0.1 - scott [18/Feb/2009:13:46:21 -0500] "POST /manager/html/upload HTTP/1.1" 200 10721 0.238 - 127.0.0.1 - - [18/Feb/2009:13:46:23 -0500] "GET /webMonster/ HTTP/1.1" 404 988 0.001 - 127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST /webMonster/MsgService HTTP/1.1" 500 2656 0.004 - 127.0.0.1 - - [18/Feb/2009:13:46:44 -0500] "GET /webMonster/webMonster/MsgExample.html HTTP/1.1" 404 1066 0.003 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 200 1304 0.001 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 200 5694 0.001 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 200 44221 0.000 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 200 28413 0.000 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 200 5943 0.001 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 200 1384 0.000 - 127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1057 0.001 - -- snip --- catalina logs - Feb 18, 2009 1:46:07 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib Feb 18, 2009 1:46:07 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 18, 2009 1:46:07 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 497 ms Feb 18, 2009 1:46:07 PM org.apache.catalina.users.MemoryUserDatabase save WARNING: User database is not persistable - no write permissions on directory Feb 18, 2009 1:46:07 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 18, 2009 1:46:07 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Feb 18, 2009 1:46:08 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 18, 2009 1:46:08 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Feb 18, 2009 1:46:08 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/33 config=null Feb 18, 2009 1:46:08 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 553 ms Feb 18, 2009 1:46:20 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive webMonster.war - snip localhost tomcat logs - Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost' Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: init: Global resources are available Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: undeploy: Undeploying web application at '/webMonster' Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' Feb 18, 2009 1:46:21 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' Feb 18, 2009 1:46:39 PM org.apache.catalina.
Re: Apache/mod_jk serves random files from tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/17/2009 1:48 PM, Yuval Perlov wrote: > Is APR part of tomcat or apache [httpd]? APR is the Apache Portable Runtime. Technically, it's its own beast and is used by both httpd and Tomcat (optionally). > If I am running on linux and have no > .so files in my tomcat directory does that mean I have no APR installed? The Tomcat directory isn't the only place .so files could be located. Anywhere in the java.library.path is possible. If you have an AprLifecycleListener configured in your server.xml, then you are attempting to use APR. If you get a message in catalina.out on startup that says something like "APR Configured" or "APR library not found" then you have your answer. > On a more positive note, we switched to proxy_http (after making the > necessary code changes) and everything works now - no more mixed content. > > Of course we lost a lot of necessary functionality: > 1. request.isSecure() doesn't work You can always use https :) > 2. we don't know the server name we are hit with (since it is "hard > coded" in httpd.conf) This should be an option in mod_proxy. Is it not? ProxyPreserveHost? > 3. we have no access to the source IP (for geo location) Why not use mod_headers to convert the original IP address into an X-Original-IP header. Better yet, use the X-Forwarded-For header that should be set by default by mod_proxy. > BTW - Am I the only one that is seriously worried that this kind of > problem can even exist on a platform of this maturity? Which problem? The "swapping-responses" problem or everything else you've outlined about your inadequate configuration? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcV0AACgkQ9CaO5/Lv0PBw4wCgtvTgf5Jy6z30u9Z3z/8M9ViN stwAn1urDcjts1xtPvSMiSuL00jEMYPV =/Ge+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > > The majority of the forums always bring up web.xml Which is appropriate, since yours is incorrect. Your URL pattern should be: /MsgService - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
André Warnier wrote: Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, restart Tomcat, re-deploy your webapp, then have a look at the Tomcat logs. Thanks for the quick response.. I am not entirely sure how I would do that. I am using a generic GWT RPC implementation. Are you familiar? I should also mention that I can get to my application via Port 80 using mod-proxy. This seems to work fine, just no functioning servlet. The majority of the forums always bring up web.xml (I've attached in previous post).. -SCarlson I did some reading.. Here is a quote from another list. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/64c676ad67fabb6e "GWT-RPC uses the browsers XMLHTTPRequest mechanism. As such, it is required to use the same protocol and port used to load your host page (to avoid running afoul of the Same Origin Policy). So, if your host page is loaded via HTTP port 80 the RPC uses HTTP port 80 ... if you are in hosted mode (HTTP port ) then rpc uses HTTP port . If your host page was loaded via HTTPS port 443 then GWT-RPC uses HTTPS port 443. " -SCarlson - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
André Warnier wrote: Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, restart Tomcat, re-deploy your webapp, then have a look at the Tomcat logs. Thanks for the quick response.. I am not entirely sure how I would do that. I am using a generic GWT RPC implementation. Are you familiar? I should also mention that I can get to my application via Port 80 using mod-proxy. This seems to work fine, just no functioning servlet. The majority of the forums always bring up web.xml (I've attached in previous post).. -SCarlson - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_jk pool/thread/configure questions
Hello, I'm using apache 2.2.11 with tomcat 6.0.18 and mod_jk 1.2.27 on linux 2.6 x86_64. I was using a prefork mpm in apache, but have now moved to the worker mpm. I have a question or two regarding mod_jk in light of this change. 1. I'm running with ThreadsPerChild at 25 and MaxClients at 500. So, I understand this to mean my connection pool minimum size will be a total of 13. (25+1/2). And then that this will be divided between my 4 tomcat backends fairly equally. And as I look at my jkstatus page, I see the 13 for "Max busy", but for each backend it lists a "Max" of 3,4,5, and 5 respectively. My question is this.. for the min size of "13" why is it labeled in jkstatus as "Max Busy" (and the distributed connection pool for each worker under "Max"). If this is actually the connection MIN size, isn't the label inaccurate? If it is really the Max size instead of the Min size, does that mean it's the Max per httpd process or across all processes? I would THINK per process, since the ThreadsPerChild are per process. So, for my total of 13 above, if I have 4 httpd processes running, is my pool total for all backends 13*4 (52), or 13? I was hoping that my max connections per backend were my (MaxClients - number of thread in reserve for apache static)/number of tomcat backends. So if I wanted 100 threads for apache static and had 4 backends, I'd have (500 - 100)/4 = 400/4 = 100 max pooled connections per backend. Is this not a viable way to run things? My maxThreads in the tomcat backends are set to 400. 2. In tomcat, It seems that my threads keep increasing, though they're not used. I thought that the connectTimeout in tomcat and the connect_timeout/ping_timeout in mod_jk would stop this by closing idle threads, but it does not. Eventually the threads in tomcat with reach the max of 400 and stay there until tomcat is restarted. Is there a way to resolve this? And more importantly, should I resolve it? Is there any major memory/CPU inplications to it keeping its threads at the max? 3. What are the benfits to configuring mod_jk with --enable-EAPI and for what circumstances should this be used? Relevant configurations follow.. Thanx a lot. APACHE: ServerLimit 20 StartServers3 MaxClients 500 MinSpareThreads 50 MaxSpareThreads 125 ThreadsPerChild 25 MaxRequestsPerChild 20 JkWatchdogInterval 60 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories MOD_JK: worker.template.port=8009 worker.template.type=ajp13 worker.template.lbfactor=1 worker.template.connection_pool_timeout=120 worker.template.reply_timeout=2 worker.template.socket_timeout=20 worker.template.socket_connect_timeout=5000 worker.template.ping_mode=A worker.template.ping_timeout=25000 worker.loadbalancer.sticky_session=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=tr1,tr2,tr3,tr4 TOMCAT: -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, restart Tomcat, re-deploy your webapp, then have a look at the Tomcat logs. scarlson wrote: Hello All -- I've been pouring over the mailing lists trying to solve my problem, which seems like a popular one. My servlet does not seem to be running. I'm using Ubuntu 8.10 / Apache2 / Tomcat6 and Mod-Proxy Both Apache and Tomcat are functional (Mod-proxy also works). I deploy my war file and my client side code works. Just not the servlet. The servlet is minimal, just returns a string. This of course, works fine in GWT Host Mode, but not when I deploy to real server. Here is some output from my access logs. The MsgService is the servlet. - snip --- 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.002 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.005 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.002 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - -snip--- Here is my httpd.conf ---snip ProxyTimeout 1 ProxyRequests Off ProxyPreserveHost On ProxyPass / http://localhost:8080/webMonster/ ProxyPassReverse / http://localhost:8080/webMonster/ http://localhost:8080/webMonster> Order allow,deny Allow from all --- snip The only change I've made to server.xml is turning on access logs. Attached are the source code and my WAR files.. I hope this is enough information to offer. It seems like I've tried most of the suggestions, regarding paths.. I am obviously missing something? Thanks in Advanced for your help! -SCarlson http://www.nabble.com/file/p22084028/webMonster-src.zip webMonster-src.zip http://www.nabble.com/file/p22084028/webMonster.war webMonster.war - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
Hello All -- I've been pouring over the mailing lists trying to solve my problem, which seems like a popular one. My servlet does not seem to be running. I'm using Ubuntu 8.10 / Apache2 / Tomcat6 and Mod-Proxy Both Apache and Tomcat are functional (Mod-proxy also works). I deploy my war file and my client side code works. Just not the servlet. The servlet is minimal, just returns a string. This of course, works fine in GWT Host Mode, but not when I deploy to real server. Here is some output from my access logs. The MsgService is the servlet. - snip --- 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.002 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.005 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.002 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.html HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.css HTTP/1.1" 304 - 0.000 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 - 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "POST /webMonster/MsgService HTTP/1.1" 404 1018 0.001 - -snip--- Here is my httpd.conf ---snip ProxyTimeout 1 ProxyRequests Off ProxyPreserveHost On ProxyPass / http://localhost:8080/webMonster/ ProxyPassReverse / http://localhost:8080/webMonster/ http://localhost:8080/webMonster> Order allow,deny Allow from all --- snip The only change I've made to server.xml is turning on access logs. Attached are the source code and my WAR files.. I hope this is enough information to offer. It seems like I've tried most of the suggestions, regarding paths.. I am obviously missing something? Thanks in Advanced for your help! -SCarlson http://www.nabble.com/file/p22084028/webMonster-src.zip webMonster-src.zip http://www.nabble.com/file/p22084028/webMonster.war webMonster.war -- View this message in context: http://www.nabble.com/Ubuntu-8.10-GWT-Apache2-Tomcat-Servlet-Problems-tp22084028p22084028.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multiple tomcat processes
Mark Thomas wrote: gunnar.bost...@tieto.com wrote: So the questions are: why does Tomcat (or jsvc) start new processes To execute your perl scripts. and how can I prevent it? Don't use perl. Better, keep using perl, but not under Tomcat. Configure an Apache httpd front-end and run you perl processes there, preferably with mod_perl. You will probably gain a factor 100 or so of performance for your perl processes, and free Tomcat for what it's good at, which is to run Java applications. If you need help to do that, I can provide some, but not on the Tomcat forum. Send me a message directly. Or subscribe to the mod_perl list, at http://perl.apache.org/maillist/modperl.html#Subscription_Information - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AJP13 Connector and JKOptions
János Löbb wrote: On Feb 18, 2009, at 8:17 AM, Pete Helgren wrote: Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I use a URL like this: http://www.mywebsite.com:8080/MyAPP Which I wanted to change to this: http://www.mywebsite.com/MyAPP Using Apache I added the worker.properties file and the following directives to an existing Apache server that has been serving several sites. #Tomcat Settings # Mount the worker containing MyAPP JKMount /MyAPP myappw How about: JkMount /MyApp* myappw ?? Or use the following at the Apache level : SetHandler jakarta-servlet See here for details (also on JkMount above) : http://tomcat.apache.org/connectors-doc/reference/apache.html Scroll down to "Using SetHandler and Environment Variables" - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 4 can't find import files.
> > I have downloaded and installed the tar files for Commons fileupload. I am > running on SUSE10 and have the following structure: > > Using CATALINA_BASE: /homes/yanicrk/tomcat > Using CATALINA_HOME: /opt/tomcat > Using CATALINA_TMPDIR: /homes/yanicrk/tomcat/temp > Using CATALINA_OUT:/homes/yanicrk/tomcat/logs/catalina.out > Using JAVA_HOME: /homes/yanicrk/jdk1.6.0_11 > > The jar files are in /homes/yanicrk/tomcat/shared/lib > > yani...@lrpa7019tv:~/tomcat/shared/lib> ls > catalina-ant.jar commons-fileupload-1.2.1.jar > commons-io-1.3.jar mx4j.jar servlets-default.jar >servlets-webdav.jar tomcat-jk2.jar > catalina.jar commons-fileupload-1.2.1-javadoc.jar > commons-logging-1.1.1.jar mx4j.license servlets-invoker.jar >tomcat4-coyote.jar tomcat-jk.jar > commons-beanutils.jar commons-fileupload-1.2.1-sources.jar > commons-modeler-2.0.1.jar servlets-cgi.renametojar servlets-manager.jar >tomcat-coyote.jartomcat-util.jar > commons-digester-1.8.jar commons-fileupload-1.2.jar > jakarta-regexp-1.5.jar servlets-common.jar > servlets-ssi.renametojar tomcat-http11.jar > > When I run the html and jsp that should upload with the following line for > import > > <%@ page import="org.apache.commons.fileupload.*, > org.apache.commons.fileupload.servlet.ServletFileUpload, > org.apache.commons.fileupload.disk.DiskFileItemFactory, > org.apache.commons.io.FilenameUtils, java.util.*, java.io.File, > java.lang.Exception" %> > > > I receive the error messages: > > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 16 in the jsp file: /file_upload.jsp > > Generated servlet error: > [javac] Compiling 1 source file > > /homes/yanicrk/tomcat/work/Standalone/localhost/_/file_upload_jsp.java:7: > package org.apache.commons.fileupload does not exist > import org.apache.commons.fileupload.*; > ^ > /homes/yanicrk/tomcat/work/Standalone/localhost/_/file_upload_jsp.java:8: > package org.apache.commons.fileupload.servlet does not exist > import org.apache.commons.fileupload.servlet.ServletFileUpload; > ^ > /homes/yanicrk/tomcat/work/Standalone/localhost/_/file_upload_jsp.java:9: > package org.apache.commons.fileupload.disk does not exist > import org.apache.commons.fileupload.disk.DiskFileItemFactory; > ^ > /homes/yanicrk/tomcat/work/Standalone/localhost/_/file_upload_jsp.java:10: > package org.apache.commons.io does not exist > import org.apache.commons.io.FilenameUtils; >
Re: Multiple tomcat processes
gunnar.bost...@tieto.com wrote: > So the questions are: why does Tomcat (or jsvc) start new processes To execute your perl scripts. and > how can I prevent it? Don't use perl. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Multiple tomcat processes
Hi, We are running Tomcat 5.5.25 on a Solaris 10 server. We use jsvc to start Tomcat on port 443. When starting I can see as expected 2 process one owned by root and one owned by tomcat. In production I can see multiple tomcat processes, one owned by root and the others owned by tomcat. By looking at parent id's I can see that root only has created one tomcat process and this process has created the others. Most of the web pages use JSP but some use old perl programs. After a while we get java.io.IOException: Not enough space when trying to run a perl program. Not this is not light weight processes I'm talking about! I thought that Tomcat 5.5 should not start any new processes and just use threads (or light weight processes)! So the questions are: why does Tomcat (or jsvc) start new processes and how can I prevent it? Thanks Gunnar - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AJP13 Connector and JKOptions
On Feb 18, 2009, at 8:17 AM, Pete Helgren wrote: Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I use a URL like this: http://www.mywebsite.com:8080/MyAPP Which I wanted to change to this: http://www.mywebsite.com/MyAPP Using Apache I added the worker.properties file and the following directives to an existing Apache server that has been serving several sites. #Tomcat Settings # Mount the worker containing MyAPP JKMount /MyAPP myappw How about: JkMount /MyApp* myappw ?? János # Globally deny access to the WEB-INF directory AllowOverride None deny from all The pages display but none of the images display and several of the webapps links are broken. So, something isn't quite right. It is almost as though the application links aren't relative to the correct root. I read through the JKOptions for Apache but can't tell if I need to add one or more options to allow the links to correctly display. The reason for the use of Apache is that there are several web sites currently hosted on this server (PHP and static sites) served by Apache so it seemed logical to use Tomcat with an Apache front end to serve the Java Servlet. Any suggestions would be greatly appreciated. Apache/2.2.11 (Win32) DAV/2 mod_jk/1.2.27 mod_ssl/2.2.11 OpenSSL/ 0.9.8i Tomcat 5.5.27 Anyone seen this before? Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk
On Feb 17, 2009, at 7:40 PM, Mohit Anchlia wrote: Is there a way to verify if mod_jk is load balancing properly among given live servers - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org You can also look: http://Your.server.com/jkmanager János - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat5.5.23 and localization
Tx. Peter Crowther wrote: From: Uwe Hostmann [mailto:uwe.hostm...@alcatel-lucent.de] Only if you can answer quickly: can you conclude from the following snippets who (apache or tomcat) is responsible for the static file .../scripting/manual/start.html.en?: [...] #JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /scripting/servlet/* ajp13 Tomcat handles /servlet and /scripting/servlet. Therefore httpd serves files under /scripting/manual. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Uwe Hostmann TietoEnator R&D Central Europe, NSM Colditzstrasse 34-36 D 12099 Berlin, Germany Phone +49 (0)30 7002-3926 Fax +49 (0)30 7002-4780 Email uwe.hostm...@alcatel-lucent.de http://www.tietoenator.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat5.5.23 and localization
> From: Uwe Hostmann [mailto:uwe.hostm...@alcatel-lucent.de] > Only if you can answer quickly: can you conclude from the following > snippets who (apache or tomcat) is responsible for the static file > .../scripting/manual/start.html.en?: [...] > #JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > JkMount /scripting/servlet/* ajp13 Tomcat handles /servlet and /scripting/servlet. Therefore httpd serves files under /scripting/manual. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat5.5.23 and localization
Hi Mark, Mark Thomas wrote: Uwe Hostmann wrote: Hi, in former tomcat versions (under different OS) static page "/start.html.en" That has not been the case for as long as I can remember. Are you thinking of httpd? tx. for the question: we use apache between client and tomcat. I changed from mod_jk to mod_proxy_ajp and, thereby, the httpd directives. I'm not sure now - whether static files were in the preceding version handled by either tomcat or apache although below docBase of tomcat - what is the situation now. Only if you can answer quickly: can you conclude from the following snippets who (apache or tomcat) is responsible for the static file .../scripting/manual/start.html.en?: from server.xml (both cases): appBase="/ScriptingServer/webapps" unpackWARs="true" autoDeploy="true" workDir="/var/ScriptingServer/work" xmlValidation="false" xmlNamespaceAware="false"> className="org.apache.catalina.authenticator.SingleSignOn" /> docBase="/ScriptingServer/webapps/scripting" allowLinking="true" debug="0" reloadable="true" workDir="/var/ScriptingServer/work"> # from httpd.conf (preceding): Alias /scripting "/ScriptingServer/webapps/scripting" /ScriptingServer/webapps/scripting"> Options Indexes FollowSymLinks MultiViews AddLanguage en .en AddLanguage de .de #JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /scripting/servlet/* ajp13 # from httpd.conf (now): Alias /scripting "/ScriptingServer/webapps/scripting" /ScriptingServer/webapps/scripting"> Options Indexes FollowSymLinks MultiViews AddLanguage en .en AddLanguage de .de ProxyPass /servlet ajp://localhost:/servlet ProxyPassReverse /servlet ajp://localhost:/servlet ProxyPass /scripting ajp://localhost:/scripting ProxyPassReverse /scripting ajp://localhost:/scripting ProxyPass /scripting/servlet ajp://localhost:/scripting/servlet ProxyPassReverse /scripting/servlet ajp://localhost: ## In each case, thanks for your suggestive question. Best regards Ho. Mark was found under appropriate locale conditions for URL ".../start.html" . Now, I get that the requested resource is not available (link from start.html.en to start.html works fine) although I tried, e.g., different browser language settings (en/en_US) and played around with export LANG=en_US.iso88591 when starting tomcat. Formerly the language suffixes were an easy method to distinguish language dependent static html files, gif's etc. I'm looking for a tutorial how to handle localization aspects under tomcat but found only a tomcat3 note where locale dependency handling was described (in a way a bit different from the above suffix usage but very similar: but this didn't help either with tomcat5.5.23. Tx. Rgds. Ho. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Uwe Hostmann TietoEnator R&D Central Europe, NSM Colditzstrasse 34-36 D 12099 Berlin, Germany Phone +49 (0)30 7002-3926 Fax +49 (0)30 7002-4780 Email uwe.hostm...@alcatel-lucent.de http://www.tietoenator.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AJP13 Connector and JKOptions
Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I use a URL like this: http://www.mywebsite.com:8080/MyAPP Which I wanted to change to this: http://www.mywebsite.com/MyAPP Using Apache I added the worker.properties file and the following directives to an existing Apache server that has been serving several sites. #Tomcat Settings # Mount the worker containing MyAPP JKMount /MyAPP myappw # Globally deny access to the WEB-INF directory AllowOverride None deny from all The pages display but none of the images display and several of the webapps links are broken. So, something isn't quite right. It is almost as though the application links aren't relative to the correct root. I read through the JKOptions for Apache but can't tell if I need to add one or more options to allow the links to correctly display. The reason for the use of Apache is that there are several web sites currently hosted on this server (PHP and static sites) served by Apache so it seemed logical to use Tomcat with an Apache front end to serve the Java Servlet. Any suggestions would be greatly appreciated. Apache/2.2.11 (Win32) DAV/2 mod_jk/1.2.27 mod_ssl/2.2.11 OpenSSL/0.9.8i Tomcat 5.5.27 Anyone seen this before? Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problems with Tomcat behind a Proxy server
Hello people from the list. I work in a University and have a server running Tomcat 6 with many applications on it. Here in the University, we connect to external addresses trough a proxy server, with many restrictions. Some protocols are blocked, but the HTTP and HTTPS are allowed. One of my applications has to connect to an external web server to request some WCS and WMS information. But I can't make the application retrieve this information because the proxy always returns a 407 (authentication required) error. I have configured Tomcat to connect to the proxy by adding http.proxyHost and http.proxyPort in catalina.properties. I put the option setProxy=true on the Catalina.properties too. The same problem occurred, because an authentication is obligatory. So I used the http.proxyUser and http.proxyPassword directive to solve the issue, but the error still happens. Is there any other configuration that I have forgotten or missed? Plz. help me. []s
Re: Using custom Charset's through CharsetProvider SPI in webapps not working
Joonas Koivunen wrote: > I guess the System's ClassLoader cannot see the webapp's libraries at > all? Correct. > Or is this a fault in Tomcat's webapp -classloader, not exposing > SPI meta information? Unlikely. > Is it impossible to have webapps that benefit from SPIs and custom > charset-implementations? It will depend on how the extension is loaded. In the case of Charset, it looks like it isn't going to work. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat IO exception on startup
paul.ocklef...@nhs.net wrote: > I added this as I need to add support for jstl to my web app. I have also > noticed that now tomcat also seems to be using some cached version of > classes, even if I remove a class file and restart tomcat it is still using > a constant defined in an older version of a class. If you are restarting Tomcat, rather than just your webapp, then you aren't updating the class correctly. > Can anybody help? I have removed the file SESSIONS.ser that is getting > created but this doesn't make any difference. Given the exception, you haven't deleted the right SESSIONS.ser file. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat5.5.23 and localization
Uwe Hostmann wrote: > Hi, > > in former tomcat versions (under different OS) static page > "/start.html.en" That has not been the case for as long as I can remember. Are you thinking of httpd? Mark was found under appropriate locale conditions > for URL ".../start.html" . Now, I get that the requested resource is not > available (link from start.html.en to start.html works fine) although I > tried, e.g., different browser language settings (en/en_US) and played > around with export LANG=en_US.iso88591 when starting tomcat. Formerly > the language suffixes were an easy method to distinguish language > dependent static html files, gif's etc. > I'm looking for a tutorial how to handle localization aspects under > tomcat but found only a tomcat3 note where locale dependency handling > was described (in a way a bit different from the above suffix usage but > very similar: but this didn't help either with tomcat5.5.23. > > Tx. Rgds. Ho. > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Context in [engine]/[host]/[app].xml and .war deployment
Hello, I want to implement the following scenario: Developer creates .war file, which expects all config to be in context. He sends this file to IT guy who should create [engine]/[host]/[app].xml with all config he need, and copy .war file to webapps. Tomcat then should depoly this app (or redeploy, if one already exists). Next version of app could be easly copied to webapps and that redeployed. So, here is two general ideas: 1) IT guy does not need to go inside of .war file, he may configure application using [engine]/[host]/[app].xml 2) New .war file can be deployed automatically, and redeployment does not affect config (which is in [engine]/[host]/[app].xml file). But when I create [engine]/[host]/[app].xml and than start tomcat, it says: "SEVERE: Error starting static Resources: java.lang.IllegalArgumentException: Document base [CATALINA_HOME]/webapps/[MY_APP] does not exist or is not a readable directory" Well. it seems to be OK: I did not deploy .war file yet. But when I deploy .war file -- tomcat does NOT deploy it, and even logs are empty. Looks like tomcat does not see my new .war file. Here are my questios: 1) Did I do something wrong? 2) Is it possible to implement my scenario? Tomcat: 6.0 Thank you, Ilya. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Using custom Charset's through CharsetProvider SPI in webapps not working
Hi everyone, In my application I need to use a library that requires two custom Charset implementations which are delivered in a jar, with proper SPI meta information (META-INF/services/...). It works under Eclipse when doing unit-tests. This all is using Apache Tomcat 6.0.18, under Sun Java 1.6.0_07, Linux 2.6 (Kubuntu 8.04.2). I've included the encoding-library jar in $WEBAPP/WEB-INF/lib, and when I delpoy my webapp, an ExceptionInInitializerError is thrown as one of the classes statically references the charset (private static final Charset DEFAULT_CHARSET = Charset.forName("...");). However when I test this with custom ServletContextListener [1] it is able to find my custom Charset-implementations. Looking at OpenJDK6 java.nio.charset.Charset implementation it's "private static Charset lookupviaProviders(final String charsetName)" does the lookup using java.security.AccessController.doPriviledged(PriviledgedAction). It's priviledged action seems to always create a new anonymous class instance that wraps ServiceLoader.load(CharsetProvider.class, cl).iterator() and iterate it until it's exhausted or a charset is found... I guess the System's ClassLoader cannot see the webapp's libraries at all? Or is this a fault in Tomcat's webapp -classloader, not exposing SPI meta information? This question has been brought up before; by Christoph Kutzinski in 2005 [2], but was left unanswered. Is it impossible to have webapps that benefit from SPIs and custom charset-implementations? 1 = http://www.rifers.org/paste/show/8801 2 = http://marc.info/?l=tomcat-user&m=111927941225330&w=2 -- -- Joonas Koivunen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat IO exception on startup
Hi, I am using tomcat version 5.5.23 and I have noticed that tomcat is now giving the following exception on startup: - IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputSt .java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectIn tream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java ) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.(CustomObj nputStream.java:58) at org.apache.catalina.session.StandardManager.doLoad(StandardManage va:362) at org.apache.catalina.session.StandardManager.load(StandardManager. :321) at org.apache.catalina.session.StandardManager.start(StandardManager a:637) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.j 432) at org.apache.catalina.core.StandardContext.start(StandardContext.ja 160) at org.apache.catalina.core.ContainerBase.addChildInternal(Container .java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.jav 0) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig a:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConf ava:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig. :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Life eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1 at org.apache.catalina.core.StandardHost.start(StandardHost.java:736 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java ) at org.apache.catalina.core.StandardService.start(StandardService.ja 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) - Exception loading sessions from persistent storage java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputSt .java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectIn tream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java ) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.(CustomObj nputStream.java:58) at org.apache.catalina.session.StandardManager.doLoad(StandardManage va:362) at org.apache.catalina.session.StandardManager.load(StandardManager. :321) at org.apache.catalina.session.StandardManager.start(StandardManager a:637) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.j 432) at org.apache.catalina.core.StandardContext.start(StandardContext.ja 160) at org.apache.catalina.core.ContainerBase.addChildInternal(Container .java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.jav 0) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig a:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConf ava:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig. :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Life eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1 at org.apache.catalina.core.StandardHost.start(StandardHost.java:736 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java ) at org.apache.catalina.core.StandardService.start(StandardService.ja 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java ) at org.apache.catalina.startup.Catalina.start(Catalina.jav
tomcat5.5.23 and localization
Hi, in former tomcat versions (under different OS) static page "/start.html.en" was found under appropriate locale conditions for URL ".../start.html" . Now, I get that the requested resource is not available (link from start.html.en to start.html works fine) although I tried, e.g., different browser language settings (en/en_US) and played around with export LANG=en_US.iso88591 when starting tomcat. Formerly the language suffixes were an easy method to distinguish language dependent static html files, gif's etc. I'm looking for a tutorial how to handle localization aspects under tomcat but found only a tomcat3 note where locale dependency handling was described (in a way a bit different from the above suffix usage but very similar: but this didn't help either with tomcat5.5.23. Tx. Rgds. Ho. -- Uwe Hostmann TietoEnator R&D Central Europe, NSM Colditzstrasse 34-36 D 12099 Berlin, Germany Phone +49 (0)30 7002-3926 Fax +49 (0)30 7002-4780 Email uwe.hostm...@alcatel-lucent.de http://www.tietoenator.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk
On Tue, 2009-02-17 at 16:40 -0800, Mohit Anchlia wrote: > Is there a way to verify if mod_jk is load balancing properly among > given live servers Yes - look at the logging for mod_jk, and the logging for the tomcat servers. You may need to increase the log level of mod_jk to get the info you need. There is also the status worker. Details for configuration and viewing the status of your lb status worker are here: http://tomcat.apache.org/connectors-doc/generic_howto/workers.html You can also monitor the TCP connections between your webserver and tomcat servers using netstat or similar. Cheers, Ben > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org