Re: Re: Thanks!
Please have a look at the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is accepted way to read/write files in Tomcat ?
Hi all, What is the best way to read and write file(the file locations are inside context) in a servlet container. I was able to read file using getResourceAsStream() but writing using URLConnection().getOutputStream() failed and throws protocol doesn't support output - UnknownServiceException. Is it legitimate to use the getRealPath() to get the context root and write the file ? Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosting Revisited - Apache serving static pages..???
John B. Moore said: Thanks for responding.. And yes, I keep hearing that one can do this ... But...G I'm slow I guess, because that still does not give me a hint as to HOW that is to be configured.. Do you have some virtual host directives that do this that I can use as examples.. Maybe my problem is that I am thinking I could have the static pages located under Apache/htdocs and the jsp pages under Tomcat/webapps.. I can't find and example that combines the standard Apache virtual host directives with what is needed to also direct the jsp to Tomcat.. I can easily to each separately, but have yet to find a way to do both Here you go... # External IP Address: xxx.xxx.xxx.xxx VirtualHost 192.168.1.111:80 ServerName test.mydomain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/test.mydomain.com ErrorLog /var/log/httpd/test.mydomain.com/error_log CustomLog /var/log/httpd/test.mydomain.com/access_log combined JkMount /someurl/MySpecialServlet worker1 JkMount /admin/* worker1 JkMount /manager/* worker1 JkMount /*.jsp worker1 /VirtualHost Create as many JKMount entries as you need to map all your servlets and JSPs. Whatever doesn't match any of the JkMount entries will be handled by Apache from the document root (/var/www/test.mydomain.com in this example). You can even route the different servlet/jsp requests to different tomcat workers (if that is needed or works for you). Hope that helps. John Sidney-Woollett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SESSION PROBLEM in UNIX
Do you know how the session is being tracked in the browser? Cookie, url? Are you saying you use the same browser in each case? Can you log the http traffic? Martin -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 04:26 To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX hi, Thank you for your reply and suggestion . I have only one user and one browser window and I get this problem . I also like to mention that in the starting of the JSP if I added a line of code like session = request.getSession(false), then I don't get this problem at all .But I am not able to understand why access to the session variable gives exception suddenly after some refresh if I don't do this.Also I checked the codes , no session invalidation is done nor a new session is created anywhere. Thanks and Regards Mukund -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:24 AM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Hi, How about implementing HttpSessionListener so that you know when your session is getting created and destroyed? Also do you have multiple users running the same jsp? If you do, you may want to synchronize that block of code. Hope this helps:). -Yan -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 07:41 To: Tomcat Users List Subject: SESSION PROBLEM in UNIX Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println(session is null:::); } System.out.println(session3:::+session.toString()); if (session.isNew()) { System.out.println(HI); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,failed) ; response.setHeader(Refresh,1; URL=/MCOne/BP/index.html); return; } } catch (Exception e) { System.out.println(I am in exception ); System.out.println(I am after hello +request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
I've read in the Workers How To of apache that the property sticky_session for lb worker properties enables / disables session affinity for the load balancer. When I tried it on my system the session doesn't seem to be retained often resulting to a session timed out or a not logged in error. Below is my worker.properties configuration. # # worker.properties # # In Unix, we use forward slashes: ps=/ # list the workers by name worker.list=tomcat1, tomcat2, loadbalancer # # tomcat1 worker # worker.tomcat1.host=192.168.0.61 worker.tomcat1.port=8009 worker.tomcat1.lbfactor=100 worker.tomcat1.type=ajp13 worker.tomcat1.cachesize=10 worker.tomcat1.cache_timeout=600 worker.tomcat1.socket_keepalive=1 worker.tomcat1.socket_timeout=300 # # tomcat2 worker # worker.tomcat2.host=192.168.0.65 worker.tomcat2.port=8009 worker.tomcat2.lbfactor=100 worker.tomcat2.type=ajp13 worker.tomcat2.cache_timeout=600 worker.tomcat2.socket_keepalive=1 worker.tomcat2.socket_timeout=300 # # end of file # Can anyone give me an idea where I may have an error? Thanks. - ian
how does lb factor work?
Can anyone explain to me how lb factors work? What values are recommended? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Did you set the jvmRoute in the Engine tag in server.xml. The value must match the name of the workers. (I'm not shure if it's the name or the attribute 'tomcatid') -Original Message- From: ian [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 9:34 AM To: 'Tomcat Users List' Subject: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2) I've read in the Workers How To of apache that the property sticky_session for lb worker properties enables / disables session affinity for the load balancer. When I tried it on my system the session doesn't seem to be retained often resulting to a session timed out or a not logged in error. Below is my worker.properties configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JTA support
Hello everybody, I've been going up and down DBCP's (and Tomcat's) homesite and haven't found the answer to this: Does Tomcat support (and manage) JTA? I know there is Tyrex, which provides this support, but I don't want to use it. From what I've read, it's somewhat obsolete, replaced by DBCP. I'm currently using DBCP. On the top of that, from what I've understood from reading Sun's JTA specs (yes, I'm a newbie to JTA), one thing is to provide the JTA connectivity support (which is provided by the JDBC driver), and a different one to support JTA management (this is transaction management and so...), which is responsibility of the container (Servlet container / App. Server). Am I right? Will appreciate any help you can provide. Thanks in advance. Regards, Freddy.
RE: SESSION PROBLEM in UNIX
Hi , Thank you for your reply . I use IE 6 as my browser in windows and tomcat on HP unix. I meant that ,all I did was open a browser window load my application, goto a particular page Set page to refresh for every 10 secs( application had a combo box to set interval of refresh).After few refresh I get a null pointer exception and realize that the session is null suddenly .( I repeat I don't get this issue when I run tomcat in windows) Thanks and Regards mukund -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 1:00 PM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Do you know how the session is being tracked in the browser? Cookie, url? Are you saying you use the same browser in each case? Can you log the http traffic? Martin -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 04:26 To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX hi, Thank you for your reply and suggestion . I have only one user and one browser window and I get this problem . I also like to mention that in the starting of the JSP if I added a line of code like session = request.getSession(false), then I don't get this problem at all .But I am not able to understand why access to the session variable gives exception suddenly after some refresh if I don't do this.Also I checked the codes , no session invalidation is done nor a new session is created anywhere. Thanks and Regards Mukund -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:24 AM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Hi, How about implementing HttpSessionListener so that you know when your session is getting created and destroyed? Also do you have multiple users running the same jsp? If you do, you may want to synchronize that block of code. Hope this helps:). -Yan -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 07:41 To: Tomcat Users List Subject: SESSION PROBLEM in UNIX Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println(session is null:::); } System.out.println(session3:::+session.toString()); if (session.isNew()) { System.out.println(HI); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,failed) ; response.setHeader(Refresh,1; URL=/MCOne/BP/index.html); return; } } catch (Exception e) { System.out.println(I am in exception ); System.out.println(I am after hello +request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JTA support
Freddy, IMHO your options in this issue are: 1. Use Tyrex (Dead project, so you're on your own when you run into problems) 2. Use JOTM from Objectweb (that code is not really maintained nor in a good shape either. current project lead agreed on the mailing list, that it's probably a good idea to rewrite and several people who have run into problems have come to the same conclusion) 3. Use JBoss (Almost certainly the best-supported but that means you have to learn how to set up tomcat to run within JBoss, the complexity of which others should judge as I have not tried it) 4. Buy a commercial solution as the one by atomikos (rather strange licensing model IMHO) The right choice depends on what kind of project you do (critical commercial or less critical e.g. university project). I would recommend against 1 which I've been doing myself and it's not really worth the trouble. 2 is rather easy to set up and OK if it works for you (as I mentioned quite a few people including myself have run into some issues but a lot of others as I understand use it in production with success). I guess 3 would probably be the safest route but might be a bit of a learning curve in the beginning. 4 I have not used but if you don't know exactly how many concurrent TXs you will have the license may become very expensive. Hope this helps, Robert Freddy Villalba Arias wrote: Hello everybody, I've been going up and down DBCP's (and Tomcat's) homesite and haven't found the answer to this: Does Tomcat support (and manage) JTA? I know there is Tyrex, which provides this support, but I don't want to use it. From what I've read, it's somewhat obsolete, replaced by DBCP. I'm currently using DBCP. On the top of that, from what I've understood from reading Sun's JTA specs (yes, I'm a newbie to JTA), one thing is to provide the JTA connectivity support (which is provided by the JDBC driver), and a different one to support JTA management (this is transaction management and so...), which is responsibility of the container (Servlet container / App. Server). Am I right? Will appreciate any help you can provide. Thanks in advance. Regards, Freddy. -- Robert Krüger Signal7 GmbH Brüder Knauss Str. 79 64285 Darmstadt Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5 with apache1.3.29
I have tomcat 5.0 running and I can access the servelt-examples and jsp-examples on localhost:8180/servlet-examples. (OS is Unix, not windows) I also have apache 1.3.29 running. httpd-error.log: [Thu Apr 15 10:44:41 2004] [notice] Apache/1.3.29 (Unix) mod_jk/1.2.5 configured -- resuming normal operations [Thu Apr 15 10:44:41 2004] [notice] Accept mutex: flock (Default: flock) looks ok. netstat -an: tcp4 0 0 *.8009 *.*LISTEN tcp4 0 0 *.8180 *.*LISTEN tcp4 0 0 *.80 *.*LISTEN stdout.log: Apr 15, 2004 10:48:23 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta-tomcat5.0/webapps/servlets-examples Apr 15, 2004 10:48:24 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8180 Apr 15, 2004 10:48:24 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Apr 15, 2004 10:48:24 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/33 config=/usr/local/jakarta-tomcat5.0/conf/jk2.properties Apr 15, 2004 10:48:25 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 9432 ms What I'm missing totally is the connection between apache and tomcat. I mean the integration. That I don't need port 8180. And the mapping I was used to under tomcat 3.1, /servlets/servlet Help, please. -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTA support
Thanks, Robert. You've been quite helpful! In Fact, I'd already installed and configured JBoss, knowing that it was the best (cheapest / safest / easiest) option available; that is, those I could envision based on my knowledge / experience, of course -- for instance, I didn't know products such as JOTM (therefore, did not took it into account as a possibility). Based on your comments and my previous thoughts about this issue, I believe I'll just stick to JBoss, play it safe. Should anybody else have a different opinion, I'm still open to suggestions. Thanks everybody, Freddy. -Mensaje original- De: Robert Krüger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 15 de abril de 2004 11:04 Para: Tomcat Users List Asunto: Re: JTA support Freddy, IMHO your options in this issue are: 1. Use Tyrex (Dead project, so you're on your own when you run into problems) 2. Use JOTM from Objectweb (that code is not really maintained nor in a good shape either. current project lead agreed on the mailing list, that it's probably a good idea to rewrite and several people who have run into problems have come to the same conclusion) 3. Use JBoss (Almost certainly the best-supported but that means you have to learn how to set up tomcat to run within JBoss, the complexity of which others should judge as I have not tried it) 4. Buy a commercial solution as the one by atomikos (rather strange licensing model IMHO) The right choice depends on what kind of project you do (critical commercial or less critical e.g. university project). I would recommend against 1 which I've been doing myself and it's not really worth the trouble. 2 is rather easy to set up and OK if it works for you (as I mentioned quite a few people including myself have run into some issues but a lot of others as I understand use it in production with success). I guess 3 would probably be the safest route but might be a bit of a learning curve in the beginning. 4 I have not used but if you don't know exactly how many concurrent TXs you will have the license may become very expensive. Hope this helps, Robert Freddy Villalba Arias wrote: Hello everybody, I've been going up and down DBCP's (and Tomcat's) homesite and haven't found the answer to this: Does Tomcat support (and manage) JTA? I know there is Tyrex, which provides this support, but I don't want to use it. From what I've read, it's somewhat obsolete, replaced by DBCP. I'm currently using DBCP. On the top of that, from what I've understood from reading Sun's JTA specs (yes, I'm a newbie to JTA), one thing is to provide the JTA connectivity support (which is provided by the JDBC driver), and a different one to support JTA management (this is transaction management and so...), which is responsibility of the container (Servlet container / App. Server). Am I right? Will appreciate any help you can provide. Thanks in advance. Regards, Freddy. -- Robert Krüger Signal7 GmbH Brüder Knauss Str. 79 64285 Darmstadt Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Your music
Your file is attached. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HOW TO - Include a directory as a context at startup
Hi All, Does anyone know how one can add a directory as a parameter/argument at startup so that the global application sees it in its path and can access a jar file stored under this directory. I have an application that uses an applet that needs to access the relevant jar file as follows: param name=\archive\ value=\/[directory]/[Applet].jar\ Using jetty I can add an extra context by having the following in the jetty.xml configuration file: Call name=addContext Arg/viewer/Arg Set name=ResourceBaseviewer/Set Set name=ServingResourcesTRUE/Set /Call I have searched within the tomcat documentation/FAQ and archives and as yet have not found how to do the same in tomcat. Can anyone assist? Thanks Andrew -- Andrew Mercer, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SESSION PROBLEM in UNIX
MUKUND Premchander wrote: Thank you for your reply . I use IE 6 as my browser in windows and tomcat on HP unix. I meant that ,all I did was open a browser window load my application, goto a particular page Set page to refresh for every 10 secs( application had a combo box to set interval of refresh).After few refresh I get a null pointer exception and realize that the session is null suddenly .( I repeat I don't get this issue when I run tomcat in windows) Anyway, first try to localize the problem, there are some ways: * implement javax.servlet.http.HttpSessionListener interface to see what's happening with your sessions; * install RequestDumperFilter filter into your application to see every request and response data; * sniff HTTP traffic (don't know how...) * try another browser (I don't force you to throw IE, just try another one), for example Mozilla has excellent tool named Live HTTP headers which shows all HTTP request/response headers. That way you will see if a session invalidates normally for whatever reason or it lost somehow. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Your software
Please read the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: remove my mail please
At the bottom of every mail to this list is a link to unsubscribe you from this list. Sometimes (due to way the messages are threaded) this information may appear two or three times. If you would send (iirc) a blank email to that address and then when the confirmation email arrives send another confirmation mail that will remove you. - Original Message - From: Francis P. Chauvel H. [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 3:54 AM Subject: remove my mail please They would be so kind of unsubscribe of the list of interest, sends to the webmaster for removes my mail Thank you -Mensaje original- De: Robert Hall [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 14 de Abril de 2004 07:15 p.m. Para: Tomcat Users List Asunto: Re: Virtual Hosting Revisited - Apache serving static pages..??? We use apache to serve up static content by including the following in httpd.conf via an Include directive: IfModule mod_alias.c # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So /icons isn't aliased in this # example, only /icons/. If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # Alias /app-name/ /usr/local/htdocs/app-name/ Directory /usr/local/htdocs/app-name Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /IfModule And workers2.properties (similar to mod_jk.conf ?) contains URI entries so tell apache what to request from Tomcat, the static content is served up by apache via the Alias above. HTH, Robert John B. Moore wrote: Posted this previously and still need some pointers... Maybe this is not possible, but it seems to be suggested in a lot of the documentation I have read. Unfortunately those docs assume something that I am not privy to.. (a brain.. yeah well...G) and do not outline specific configurations for this setup. I read a lot of and you can have Apache serve the static pages..etc.. but I have yet to find and example of how this would be configured. I would prefer setting this up via the server.xml and the web.xml files and have those autoconfigure to the /auto/mod_jk.conf file, but for now I need some specifics on how to tell Apache to serve the static pages. (I have no problems with serving the jsp and servlets..) Thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Hi Don't you also have to provide the properties for the loadbalancer worker? eg # properties for load balanced workers worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 and then add the extra properties you require (to worker.loadbalancer.XXX)? Hope that helps. John Sidney-Woollett ian said: I've read in the Workers How To of apache that the property sticky_session for lb worker properties enables / disables session affinity for the load balancer. When I tried it on my system the session doesn't seem to be retained often resulting to a session timed out or a not logged in error. Below is my worker.properties configuration. # # worker.properties # # In Unix, we use forward slashes: ps=/ # list the workers by name worker.list=tomcat1, tomcat2, loadbalancer # # tomcat1 worker # worker.tomcat1.host=192.168.0.61 worker.tomcat1.port=8009 worker.tomcat1.lbfactor=100 worker.tomcat1.type=ajp13 worker.tomcat1.cachesize=10 worker.tomcat1.cache_timeout=600 worker.tomcat1.socket_keepalive=1 worker.tomcat1.socket_timeout=300 # # tomcat2 worker # worker.tomcat2.host=192.168.0.65 worker.tomcat2.port=8009 worker.tomcat2.lbfactor=100 worker.tomcat2.type=ajp13 worker.tomcat2.cache_timeout=600 worker.tomcat2.socket_keepalive=1 worker.tomcat2.socket_timeout=300 # # end of file # Can anyone give me an idea where I may have an error? Thanks. - ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JTA support
Hi Freddy, do you know (or anyone else for that matter) where to find instructions how to configure a minimal JBoss to provide Tomcat 5 with JTA? On the JBoss website I can only see bundles with Tomcat 4. In case you succeed. I would be interested in having a look at your configuration files. In the medium term I would like to get rid of our current hacked Tyrex-based JTA solution. Regards, Robert Freddy Villalba Arias wrote: Thanks, Robert. You've been quite helpful! In Fact, I'd already installed and configured JBoss, knowing that it was the best (cheapest / safest / easiest) option available; that is, those I could envision based on my knowledge / experience, of course -- for instance, I didn't know products such as JOTM (therefore, did not took it into account as a possibility). Based on your comments and my previous thoughts about this issue, I believe I'll just stick to JBoss, play it safe. Should anybody else have a different opinion, I'm still open to suggestions. Thanks everybody, Freddy. -- Robert Krüger Signal7 GmbH Brüder Knauss Str. 79 64285 Darmstadt Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTA support
Hi Robert, Well... eerrrhmmm... let's see: I just downloaded JBoss' latest version. I has already integrated (ready to use) Tomcat 4 (v4.1, if I recall). Then, based on what JBoss claims, I suppose (have not confirmed it, I have to say...) that the JTA management implementation is provided (as specified by Sun's JTA specs) by JBoss. The complementary part is, as you already know, provided (or not) by the JDBC driver you are using. In a few words, I'm trusting JBoss's JTA-ability, not Tomcat's. That said, I can do this for you: (1) Given the fact that I'll be using JBoss + Tomcat 4, just as they are shipped, I'll develop a few JTA test over JBoss. Once I run them all, I can send you my config files (cannot guarantee when I'll finish this, I'm into lots of stuff right now). :) (2) I can give it a look to see if I find something on the Internet (so far, all I've found refers to v4, not v5). Let me know if there is something else I can do for you. Cheers, Freddy. -Mensaje original- De: Robert Krüger [mailto:[EMAIL PROTECTED] Enviado el: jueves, 15 de abril de 2004 12:44 Para: Tomcat Users List Asunto: Re: JTA support Hi Freddy, do you know (or anyone else for that matter) where to find instructions how to configure a minimal JBoss to provide Tomcat 5 with JTA? On the JBoss website I can only see bundles with Tomcat 4. In case you succeed. I would be interested in having a look at your configuration files. In the medium term I would like to get rid of our current hacked Tyrex-based JTA solution. Regards, Robert Freddy Villalba Arias wrote: Thanks, Robert. You've been quite helpful! In Fact, I'd already installed and configured JBoss, knowing that it was the best (cheapest / safest / easiest) option available; that is, those I could envision based on my knowledge / experience, of course -- for instance, I didn't know products such as JOTM (therefore, did not took it into account as a possibility). Based on your comments and my previous thoughts about this issue, I believe I'll just stick to JBoss, play it safe. Should anybody else have a different opinion, I'm still open to suggestions. Thanks everybody, Freddy. -- Robert Krüger Signal7 GmbH Brüder Knauss Str. 79 64285 Darmstadt Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Your software
Here is the file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing with apache2, mod_jk2 tomcat 5.0
Yes. I did a full stop and start of apache. There are no errors in the log files either. Do you, or anyone else, have a workers2.properties file of a working system that you are willing to share? I've gone through all the sections and properties in the latest jakarta jk2 document as well as other How-Tos and don't see what I've missed (I'm afraid I don't understand all of it either :). Does the shm section play a part? I interpretted it to be needed only if one wants to share session data between the differnet tomcat servers, and does not have anything to do with load balancing. Thanks, -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, Did you restart the Apache2 server? My understanding is JK only reloads it only if the section you modified in workers.properties has ver defined. Also, check your jk.log and Catalina.log files for errors. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 7:09 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Thanks but it doesn't seem to make any difference. For each tomcat server I added sections like the following: [ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb tomcatId=psahammerhead It still only wants to use one of the servers. There are other properties that could be used but they're not documented too well. Any other suggestions would be greatly appreciated. -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, I think you need to further define the workers with {ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb ... etc hope this helps. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: Load balancing with apache2, mod_jk2 tomcat 5.0 Hi, I have set up four tomcat 5.0 servers for load balancing using an apache2 server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most of the user sessions are routed to only one of the tomcat servers even though the lb_factor for all is the same, 10. All tomcat servers seem to be working since I can disable all but one in the workers2.properties file to force that tomcat server to be used. Chnaging the lb_factor can also cause a different tomcat server to be used most of the time, but I haven't figured out how to control the balancing by lb_factor. Below is the workers2.properties file that I am using. Thanks for any help you can provide, -Tom # workers2.properties [logger] level=DEBUG [config:] debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log #[shm:] #info=Scoreboard. Required for reconfiguration and status with multiprocess servers #file=/usr/local/apache2/logs/jk2.shm #size=100 #debug=0 #disabled=0 [workerEnv:] info=Global server options debug=0 timing=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] ver=1 info=Default load balancer. debug=10 [channel.socket:psahammerhead:8009] ver=1 graceful=0 info=A tomcat instance - psahammerhead. debug=0 disabled=0 group=lb tomcatId=psahammerhead lb_factor=10 [channel.socket:psashovelhead:8009] ver=1 graceful=0 info=A tomcat instance - psashovelhead. debug=0 disabled=0 group=lb tomcatId=psashovelhead lb_factor=10 [channel.socket:psabonnethead:8009] ver=1 graceful=0 info=A tomcat instance - psabonnethead. debug=0 disabled=1 group=lb tomcatId=psabonnethead lb_factor=10 [channel.socket:psawinghead:8009] ver=1 graceful=0 info=A tomcat instance - psawinghead. debug=0 disabled=1 group=lb tomcatId=psawinghead lb_factor=10 [status:status] info=Status worker, displays runtime informations [uri:/jkstatus] group=status:status # Map the Tomcat examples webbapp [uri:/myapp/*] info=Map the whole webapp group=lb __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th
precompilation of jsps
Hi All, Is it possible to precompile the jsps during the starting process of tomcat so that they are not compiled during run time? I know its possible in weblogic but am not sure about Tomcat. The HOW- TO also don't mention any thing about it. Regards, Niraj
Re: JTA support
Robert Krüger wrote: Hi Freddy, do you know (or anyone else for that matter) where to find instructions how to configure a minimal JBoss to provide Tomcat 5 with JTA? On the JBoss website I can only see bundles with Tomcat 4. In case you succeed. I would be interested in having a look at your configuration files. In the medium term I would like to get rid of our current hacked Tyrex-based JTA solution. I think JBoss 3.2.4RCx ships with Tomcat 5.0.18 as default and has 4.1.x as optional (under doc/examples or some such path). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: precompilation of jsps
You need to use Jasper 2 whic is on the Tomcat 5 homepage. There is an Ant build file that you need to run to do this .. the instructions are there. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html ADC -Original Message- From: Niraj Alok [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 12:58 To: Tomcat Users List Subject: precompilation of jsps Hi All, Is it possible to precompile the jsps during the starting process of tomcat so that they are not compiled during run time? I know its possible in weblogic but am not sure about Tomcat. The HOW- TO also don't mention any thing about it. Regards, Niraj FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTA support
Hi, Sorry if I misled you. I'm using JBoss v3.2.3. According to that version's download page: (includes Tomcat 4.1.29 JBossWeb HTTP server and JSP/Servlet engine, EJB, CMP2.0, JCA, IIOP, Clustering, JTA, JMX and more) I suppose (would have to start it up and check the logger's output) that's the default version used by that version of JBoss. However, I can't assure anything about other versions (of JBoss). Regards, Freddy. -Mensaje original- De: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Enviado el: jueves, 15 de abril de 2004 14:04 Para: Tomcat Users List Asunto: Re: JTA support Robert Krüger wrote: Hi Freddy, do you know (or anyone else for that matter) where to find instructions how to configure a minimal JBoss to provide Tomcat 5 with JTA? On the JBoss website I can only see bundles with Tomcat 4. In case you succeed. I would be interested in having a look at your configuration files. In the medium term I would like to get rid of our current hacked Tyrex-based JTA solution. I think JBoss 3.2.4RCx ships with Tomcat 5.0.18 as default and has 4.1.x as optional (under doc/examples or some such path). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JTA support
Freddy Villalba Arias wrote: Hi, Sorry if I misled you. I'm using JBoss v3.2.3. According to that version's download page: (includes Tomcat 4.1.29 JBossWeb HTTP server and JSP/Servlet engine, EJB, CMP2.0, JCA, IIOP, Clustering, JTA, JMX and more) Look under doc/examples, there is a build dir for Tomcat 5.0.1x. You'll need a working Ant to build it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTA support
You are right, Nik. There it is. However, I believe the default used by JBoss (as shipped, of course) will be v4.1.29... right? (haven't confirmed it yet) :) Cheers, Freddy. -Mensaje original- De: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Enviado el: jueves, 15 de abril de 2004 14:19 Para: Tomcat Users List Asunto: Re: JTA support Freddy Villalba Arias wrote: Hi, Sorry if I misled you. I'm using JBoss v3.2.3. According to that version's download page: (includes Tomcat 4.1.29 JBossWeb HTTP server and JSP/Servlet engine, EJB, CMP2.0, JCA, IIOP, Clustering, JTA, JMX and more) Look under doc/examples, there is a build dir for Tomcat 5.0.1x. You'll need a working Ant to build it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing with apache2, mod_jk2 tomcat 5.0
This is pretty much what I have and it works fine. [logger] level=DEBUG [config:] debug=0 debigEnv=0 [uriMap:] info=Maps the requests, Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon #size=104856 #debug=1 [workerEnv:] info=Global server options debug=0 logger=logger.file:0 # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] info=Default Load Balancer debug=10 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 lb_factor=5 tomcatid=tomcat1 # Second Scoket Channel [channel.socket:localhost:8019] port=8019 host=127.0.0.1 lb_factor=10 tomcatid=tomcat2 # Third Scoket Channel [channel.socket:localhost:8029] port=8029 host=127.0.0.1 lb_factor=10 tomcatid=tomcat3 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # define the second worker [ajp13:localhost:8019] channel=channel.socket:localhost:8019 group=lb # define the Third worker [ajp13:localhost:8029] channel=channel.socket:localhost:8029 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=JSP Examples group=lb [uri:/webtest/*] info=Test JSP Page group=lb [status:] -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:46 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Yes. I did a full stop and start of apache. There are no errors in the log files either. Do you, or anyone else, have a workers2.properties file of a working system that you are willing to share? I've gone through all the sections and properties in the latest jakarta jk2 document as well as other How-Tos and don't see what I've missed (I'm afraid I don't understand all of it either :). Does the shm section play a part? I interpretted it to be needed only if one wants to share session data between the differnet tomcat servers, and does not have anything to do with load balancing. Thanks, -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, Did you restart the Apache2 server? My understanding is JK only reloads it only if the section you modified in workers.properties has ver defined. Also, check your jk.log and Catalina.log files for errors. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 7:09 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Thanks but it doesn't seem to make any difference. For each tomcat server I added sections like the following: [ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb tomcatId=psahammerhead It still only wants to use one of the servers. There are other properties that could be used but they're not documented too well. Any other suggestions would be greatly appreciated. -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, I think you need to further define the workers with {ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb ... etc hope this helps. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: Load balancing with apache2, mod_jk2 tomcat 5.0 Hi, I have set up four tomcat 5.0 servers for load balancing using an apache2 server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most of the user sessions are routed to only one of the tomcat servers even though the lb_factor for all is the same, 10. All tomcat servers seem to be working since I can disable all but one in the workers2.properties file to force that tomcat server to be used. Chnaging the lb_factor can also cause a different tomcat server to be used most of the time, but I haven't figured out how to control the balancing by lb_factor. Below is the workers2.properties file that I am using. Thanks for any help you can provide, -Tom # workers2.properties [logger] level=DEBUG [config:] debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log #[shm:] #info=Scoreboard. Required for reconfiguration and status with multiprocess servers #file=/usr/local/apache2/logs/jk2.shm #size=100 #debug=0 #disabled=0 [workerEnv:] info=Global server options debug=0 timing=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] ver=1 info=Default load balancer. debug=10
Re: JTA support
Freddy Villalba Arias wrote: You are right, Nik. There it is. However, I believe the default used by JBoss (as shipped, of course) will be v4.1.29... right? (haven't confirmed it yet) :) I don't think so. There is absolutely no reason to stick with 4.1 branch if 5.0 is stable (and it looks that way). In any case, even 3.2.3 had both branches, only 4.1 was the default. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is accepted way to read/write files in Tomcat ?
Is it legitimate depends on who you talk to. ;) Purists (I don't mean that negatively) would remind you that the only 'guaranteed' filepath available is the javax.servlet.context.tempdir . And getRealPath() would blow up on you, if you were running your webapp from a WAR file. However, if *you* know that your app will only ever be used unpacked, then fully document this requirement, and go ahead and use getRealPath(). -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:28 AM To: Tomcat Users List Subject: What is accepted way to read/write files in Tomcat ? Hi all, What is the best way to read and write file(the file locations are inside context) in a servlet container. I was able to read file using getResourceAsStream() but writing using URLConnection().getOutputStream() failed and throws protocol doesn't support output - UnknownServiceException. Is it legitimate to use the getRealPath() to get the context root and write the file ? Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IBM Java VS SUN Java
Hi, HT boxes have shown various serious performance problems with Java, although supposedly JDK 1.5 is better. Search the archives for more details. Yoav Shapira Millennium Research Informatics -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 3:00 AM To: Tomcat Users List Subject: RE: IBM Java VS SUN Java It's technology by intel: http://www.intel.com/products/ht/hyperthreading.htm -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:41 AM To: Tomcat Users List Subject: RE: IBM Java VS SUN Java Hi, sorry for the question but what does hyper-threaded mean? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Require a tomcat build with bug fix....
Hi, I would think so... Yoav Shapira Millennium Research Informatics -Original Message- From: Philip Baruc [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 10:39 AM To: Tomcat Users List Subject: RE: Require a tomcat build with bug fix Will this issue be resolved in a tomcat 5.0 version? pb --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, You're also not going to get a tomcat 4.0 official build for this fix. Yoav Shapira Millennium Research Informatics -Original Message- From: Philip Baruc [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 4:42 PM To: Tomcat Users List Subject: RE: Require a tomcat build with bug fix I just tried to run tomcat 5.0.22 and i don't belive the bug(10469) is resolved in this build. I see the fix here: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- 4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.ja v a This also were i got the version 1.50 that i alluded to in an earlier email. from what i can see. IN the 1.50 version. there has been a change made to the getURL(File file) function: /** * Get URL. */ protected URL getURL(File file) throws MalformedURLException { File realFile = file; try { realFile = realFile.getCanonicalFile(); } catch (IOException e) { // Ignore } //return new URL(file: + realFile.getPath()); URLEncoder urlEncoder = new URLEncoder(); urlEncoder.addSafeCharacter(','); urlEncoder.addSafeCharacter(':'); urlEncoder.addSafeCharacter('-'); urlEncoder.addSafeCharacter('_'); urlEncoder.addSafeCharacter('.'); urlEncoder.addSafeCharacter('*'); urlEncoder.addSafeCharacter('/'); urlEncoder.addSafeCharacter('!'); urlEncoder.addSafeCharacter('~'); urlEncoder.addSafeCharacter('\''); urlEncoder.addSafeCharacter('('); urlEncoder.addSafeCharacter(')'); return new URL(urlEncoder.encode(realFile.toURL().toString())); } In the tomcat 5.0.22 version, it appears that the getURL(File) still looks as it did before markt made his feb 22 fix to the bug. It appears that the fix is in the tomcat 4.0 branch but not in the tomcat 5.0 branchs. I hope i am reading the cvs repositories correctly. If not perhaps you can help me. Basially I'm looking for a build of tomcat (perferably a 4.0 build) that has this fix. I am reluctant to build the tomcat source files myself and distribute a custom bug fixed version of tomcat to our customers. I'm running into a problem without this fix because i'm attempting to make an RMI call from with in tomcat. When tomcat attempts to resolve the remove interface i get an exception like: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache I belive that this is cause WebAppClassLoader getURL(File) function is suffering from a bug encoding problem in the jdk. http://developer.java.sun.com/developer/bugParade/bugs/4273532.html I belive that Apache has recognized this problem and has implemented its fix in its cvs repositories in its tomcat 4.0 branch, but no in any of the builds on the 4.0 branch. Please advice... Thank You, P.B. --- Shapira, Yoav [EMAIL PROTECTED] wrote: http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/ Yoav Shapira Millennium Research Informatics -Original Message- From: Philip Baruc [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 3:04 PM To: Tomcat Users List Subject: RE: Require a tomcat build with bug fix Is there a place where i can download a build of the 5.0.22-alpha version of tomcat, or does this require me pulling the 5.0.22 branch from cvs and building it? philip b --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I've also downloaded the 4.1.30 source and noticed that the WebAppClassLoader is only at version 1.48 where as the bug fix is applied to a 1.50 version of the WebAppClassLoader. I'm not sure where you're getting your version numbers. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/sr c / s hare/org/apache/catalina/loader/ shows that 1.31 is the current CVS version of WebAppClassLoader, so what's 1.48 and 1.50 that you're talking about? Mark marked the issue as fixed on 2004-02-22. 4.1.30 was released on 2004-01-25. So what I said before was wrong: 4.1.30 doesn't have your fix. For that matter, 5.0.19 is from 2004-02-14, so it doesn't have your fix either. 5.0.22-alpha is from last week and should have your fix. Tomcat 5 is not so different that you should be afraid to try it. Yoav Shapira This e-mail,
RE: shared/lib again...
Hi, Try putting the jar in common/lib instead of shared/lib. Yoav Shapira Millennium Research Informatics -Original Message- From: Julio César Aguilar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 6:51 PM To: Tomcat Users List Subject: shared/lib again... I've read the ClassLoading part of Tomcat documentation and searched this list but I've still found no clue to my recent problem: Tomcat 5.0.19 JDK 1.4.2_03 Windows XP I have several applications running with a common jar of my own in each WEB-INF/lib and everthing works. If I move that jar to %CATALINA_HOME%/shared/lib the applications wont start reporting a CNFE about a class in the previously mentioned jar. I can reproduce the problem in Linux (same version of Tomcat and JDK) placing the jar in CATALINA_BASE/shared/lib or CATALINA_HOME/shared/lib. Is there something that has to be done to be able to share a jar through applications? Thanks for any help. --- Julio César Aguilar Cabrera [EMAIL PROTECTED] Proyecto SIGC3, LANIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Threads Locking cont.
Hi, I also don't think it's a tomcat issue. It's certainly not a known issue. Furthermore, what makes you think it's the println statement? I saw you only posted that thread from your thread dump, but how did you select only that one? Yoav Shapira Millennium Research Informatics -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 12:53 PM To: Tomcat Users List Subject: RE: Threads Locking cont. this is not a tomcat, issue, it is your code (or should I say the webservice code) that is locking when trying to read data from the socket. you should set SO_TIMEOUT on the socket, and it will timeout and throw an error instead of hanging forever when there is no data from the other side. Filip -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 11:45 AM To: Tomcat Users List Subject: Threads Locking cont. After removing all System.out.println statements (including printStackTrace()) Tomcat is still experiencing thread locking issues. I just put this on a different machine running Win 2k Server service pack 4. Again, it's been running for over a year on a linux box with no issues. We've also had 2 people developing it on XP and Win2k pro for the year without seeing this. Has anyone else had any problems with threads locking? Windows 2K Server service pack III Tomcat 5.0.19 (also tried 5.0.18) Thread Dump: http80-Processor79 daemon prio=5 tid=0x008836d0 nid=0x2618 runnable [1abde000..1abdfd88] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) - locked 0x1011c860 (a java.io.BufferedInputStream) at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSen der. j ava:506) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy. java : 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2526) at org.apache.axis.client.Call.invoke(Call.java:2515) at org.apache.axis.client.Call.invoke(Call.java:2210) at org.apache.axis.client.Call.invoke(Call.java:2133) at org.apache.axis.client.Call.invoke(Call.java:1656) at com.fwdco.server.TimeSheetBean.fetchTimeSheetList(Unknown Source) at com.fwdco.server.TimeSheetServlet.doPost(Unknown Source) at com.fwdco.server.TimeSheetServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntex t Valve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j a va:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 4 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte x t.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:16 4 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte x t.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a :156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 33) at
RE: Tomcat 5 : DEBUG level
Hi, getServletContext().log(message...); RTFM. Yoav Shapira Millennium Research Informatics -Original Message- From: Francesco Pellegrini [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:02 PM To: Tomcat Users List Subject: Tomcat 5 : DEBUG level Hi all, I'm looking for an help to customize a LOG level for my server. I have some JSP and SERVLET that uses : System.out.println(message...); in server.xml I set : Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Now, Instead of save the message on stdout.log I would like to store all message on localhost_log.-MM-DD.txt, beacause the stdout.log it's become too large. How can i solve this issue? Thanks Franz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Turn off session persistence
Hi, RTFM. (Tomcat's configuration docs on the Manager element.) Yoav Shapira Millennium Research Informatics -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 5:26 PM To: 'Tomcat Users List' Subject: Turn off session persistence Hi all, I have an application running on tomcat 4.1.24. I saw the session persistence is turned on. I want to turn it off . How can I do that ? Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session persistance
Hi All, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Thanks, Anu Mathew
RE: Session persistance
The Manager section of the configuration docs covers persistent sessions and JDBC session stores. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Anu Mathew [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 8:04 AM To: Tomcat Users List Subject: Session persistance Hi All, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Thanks, Anu Mathew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session persistance
Hi, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Here's one thought: RTFM. JDBC store for sessions: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsessionid parameter not being accepted
I have done my own url re-writing manually to cater for those browsers who have turned off cookies. i.e. I have manually added ?jsessionid=session id parameter to every url. This worked well in Jrun, but Tomcat is not accepting the jsessionid parameter, and is creating a new session each time. The tomcat session manager is the default one, in fact there is no session manager visibly enabled in server.xml, so everything is default. Has anybody got any ideas what is going on and what I should do? Regards, Malcolm Warren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent pls help ! Protection problems of using Realm
An easier method would be to use SecurityFilter (http://securityfilter.sourceforge.net/). There is an example web application (actually several web apps) bundled with the software. Just look at the code and I think you'll find it fairly straightforward to implement what you want. a a wrote: Dear all, I do not have any idea of writing a custom realm, even how to start writing it. Can you give me some example or any references that teaching how to write a custom realm ? Thankyou very much ! kawai Mark Thomas [EMAIL PROTECTED] wrote: You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use Realm to check the roles and password and do authentication directly in my server. Is there any method that can solve that problem ? or any method instead of using Realm ? or override the current settings of Realm ? ... http://ringtone.yahoo.com.hk/ -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsessionid parameter not being accepted
- You don't have to implement your own url re-writing - The time is long gong when the session id was a parameter, it's now before the ? Just throw away your url rewiting and use rsponse.encodeUrl() instead. -Original Message- From: Malcolm Warren [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 3:16 PM To: [EMAIL PROTECTED] Subject: jsessionid parameter not being accepted I have done my own url re-writing manually to cater for those browsers who have turned off cookies. i.e. I have manually added ?jsessionid=session id parameter to every url.
R: Tomcat 5 : DEBUG level
Hi, getServletContext().log(message...); When I was in Servlet class or in JSP pages I can use it, but How can I log message if I'm in Model or Controller layer ( my application is tie-tier), for examples in MyDBConnection.class and I don't have a ServletContext? Thanks, Francesco. -Messaggio originale- Da: Shapira, Yoav [mailto:[EMAIL PROTECTED] Inviato: giovedi 15 aprile 2004 15.04 A: Tomcat Users List Oggetto: RE: Tomcat 5 : DEBUG level Hi, getServletContext().log(message...); RTFM. Yoav Shapira Millennium Research Informatics -Original Message- From: Francesco Pellegrini [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:02 PM To: Tomcat Users List Subject: Tomcat 5 : DEBUG level Hi all, I'm looking for an help to customize a LOG level for my server. I have some JSP and SERVLET that uses : System.out.println(message...); in server.xml I set : Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Now, Instead of save the message on stdout.log I would like to store all message on localhost_log.-MM-DD.txt, beacause the stdout.log it's become too large. How can i solve this issue? Thanks Franz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 : DEBUG level
I think you need to setup a logger, if using java1.4 then just use built in java.util.logging.Logger, otherwise maybe log4j, prob best to create a file logger and log ALL webapp spcefic messages to it here is mine if you need something to start, its a singleton so you'd typically invoke with cdmanager.CdManagerLogger.getInstance().logp( Level.FINE, this.getClass().getName(), yourMethodName, your output message); === package cdmanager; import java.util.logging.Logger; import java.util.logging.Level; import java.util.logging.FileHandler; public class CdManagerLogger { protected static java.util.logging.Logger logger = null; private CdManagerLogger() { if(logger==null) { // Initalize the instance of the class logger = java.util.logging.Logger.getLogger(); try { FileHandler fh = new FileHandler(D:\\JBuilder9\\myprojects\\cdmanager\\logs\\cdmanager.log); fh.setFormatter(new java.util.logging.SimpleFormatter()); // Send logger output to our FileHandler. logger.addHandler(fh); logger.setLevel(java.util.logging.Level.ALL); } catch(Exception e) { e.printStackTrace(); } } } static public java.util.logging.Logger getInstance() { if(logger!=null) return logger; else { new CdManagerLogger(); return logger; } } } -Original Message- From: Francesco Pellegrini [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 9:28 AM To: Tomcat Users List Subject: R: Tomcat 5 : DEBUG level Hi, getServletContext().log(message...); When I was in Servlet class or in JSP pages I can use it, but How can I log message if I'm in Model or Controller layer ( my application is tie-tier), for examples in MyDBConnection.class and I don't have a ServletContext? Thanks, Francesco. -Messaggio originale- Da: Shapira, Yoav [mailto:[EMAIL PROTECTED] Inviato: giovedi 15 aprile 2004 15.04 A: Tomcat Users List Oggetto: RE: Tomcat 5 : DEBUG level Hi, getServletContext().log(message...); RTFM. Yoav Shapira Millennium Research Informatics -Original Message- From: Francesco Pellegrini [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:02 PM To: Tomcat Users List Subject: Tomcat 5 : DEBUG level Hi all, I'm looking for an help to customize a LOG level for my server. I have some JSP and SERVLET that uses : System.out.println(message...); in server.xml I set : Logger className=org.apache.catalina.logger.FileLogger verbosity=4 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Now, Instead of save the message on stdout.log I would like to store all message on localhost_log.-MM-DD.txt, beacause the stdout.log it's become too large. How can i solve this issue? Thanks Franz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsessionid parameter not being accepted
I wish it was as easy as you say... I know that I don't have to implement my own url re-writing, but I did, and it was a long time ago! Right now I don't really want to re-write everything - sending the jsessionid as an ordinary parameter worked in Jrun, can't it work in Tomcat? On Thu, 15 Apr 2004 15:25:00 +0200, Ralph Einfeldt [EMAIL PROTECTED] wrote: - You don't have to implement your own url re-writing - The time is long gong when the session id was a parameter, it's now before the ? Just throw away your url rewiting and use rsponse.encodeUrl() instead. -Original Message- From: Malcolm Warren [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 3:16 PM To: [EMAIL PROTECTED] Subject: jsessionid parameter not being accepted I have done my own url re-writing manually to cater for those browsers who have turned off cookies. i.e. I have manually added ?jsessionid=session id parameter to every url. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing with apache2, mod_jk2 tomcat 5.0
Thanks. The only change that you made to the tomcat server.xml conf file is assigning your timcatid values to the jvmRoute property, correct? Engine name=Catalina defaultHost=localhost debug=0 jvmRoute=psahammerhead -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: This is pretty much what I have and it works fine. [logger] level=DEBUG [config:] debug=0 debigEnv=0 [uriMap:] info=Maps the requests, Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon #size=104856 #debug=1 [workerEnv:] info=Global server options debug=0 logger=logger.file:0 # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] info=Default Load Balancer debug=10 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 lb_factor=5 tomcatid=tomcat1 # Second Scoket Channel [channel.socket:localhost:8019] port=8019 host=127.0.0.1 lb_factor=10 tomcatid=tomcat2 # Third Scoket Channel [channel.socket:localhost:8029] port=8029 host=127.0.0.1 lb_factor=10 tomcatid=tomcat3 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # define the second worker [ajp13:localhost:8019] channel=channel.socket:localhost:8019 group=lb # define the Third worker [ajp13:localhost:8029] channel=channel.socket:localhost:8029 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=JSP Examples group=lb [uri:/webtest/*] info=Test JSP Page group=lb [status:] -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:46 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Yes. I did a full stop and start of apache. There are no errors in the log files either. Do you, or anyone else, have a workers2.properties file of a working system that you are willing to share? I've gone through all the sections and properties in the latest jakarta jk2 document as well as other How-Tos and don't see what I've missed (I'm afraid I don't understand all of it either :). Does the shm section play a part? I interpretted it to be needed only if one wants to share session data between the differnet tomcat servers, and does not have anything to do with load balancing. Thanks, -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, Did you restart the Apache2 server? My understanding is JK only reloads it only if the section you modified in workers.properties has ver defined. Also, check your jk.log and Catalina.log files for errors. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 7:09 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Thanks but it doesn't seem to make any difference. For each tomcat server I added sections like the following: [ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb tomcatId=psahammerhead It still only wants to use one of the servers. There are other properties that could be used but they're not documented too well. Any other suggestions would be greatly appreciated. -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, I think you need to further define the workers with {ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb ... etc hope this helps. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: Load balancing with apache2, mod_jk2 tomcat 5.0 Hi, I have set up four tomcat 5.0 servers for load balancing using an apache2 server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most of the user sessions are routed to only one of the tomcat servers even though the lb_factor for all is the same, 10. All tomcat servers seem to be working since I can disable all but one in the workers2.properties file to force that tomcat server to be used. Chnaging the lb_factor can also cause a different tomcat server to be used most of the time, but I haven't figured out how to control the balancing by lb_factor. Below is the workers2.properties file that I am using. Thanks for any help you can provide, -Tom # workers2.properties [logger] level=DEBUG [config:] debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache2/logs/jk2.log #[shm:]
RE: Load balancing with apache2, mod_jk2 tomcat 5.0
Yes. -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 9:42 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Thanks. The only change that you made to the tomcat server.xml conf file is assigning your timcatid values to the jvmRoute property, correct? Engine name=Catalina defaultHost=localhost debug=0 jvmRoute=psahammerhead -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: This is pretty much what I have and it works fine. [logger] level=DEBUG [config:] debug=0 debigEnv=0 [uriMap:] info=Maps the requests, Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon #size=104856 #debug=1 [workerEnv:] info=Global server options debug=0 logger=logger.file:0 # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] info=Default Load Balancer debug=10 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 lb_factor=5 tomcatid=tomcat1 # Second Scoket Channel [channel.socket:localhost:8019] port=8019 host=127.0.0.1 lb_factor=10 tomcatid=tomcat2 # Third Scoket Channel [channel.socket:localhost:8029] port=8029 host=127.0.0.1 lb_factor=10 tomcatid=tomcat3 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # define the second worker [ajp13:localhost:8019] channel=channel.socket:localhost:8019 group=lb # define the Third worker [ajp13:localhost:8029] channel=channel.socket:localhost:8029 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=JSP Examples group=lb [uri:/webtest/*] info=Test JSP Page group=lb [status:] -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:46 AM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Yes. I did a full stop and start of apache. There are no errors in the log files either. Do you, or anyone else, have a workers2.properties file of a working system that you are willing to share? I've gone through all the sections and properties in the latest jakarta jk2 document as well as other How-Tos and don't see what I've missed (I'm afraid I don't understand all of it either :). Does the shm section play a part? I interpretted it to be needed only if one wants to share session data between the differnet tomcat servers, and does not have anything to do with load balancing. Thanks, -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, Did you restart the Apache2 server? My understanding is JK only reloads it only if the section you modified in workers.properties has ver defined. Also, check your jk.log and Catalina.log files for errors. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 7:09 PM To: Tomcat Users List Subject: RE: Load balancing with apache2, mod_jk2 tomcat 5.0 Thanks but it doesn't seem to make any difference. For each tomcat server I added sections like the following: [ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb tomcatId=psahammerhead It still only wants to use one of the servers. There are other properties that could be used but they're not documented too well. Any other suggestions would be greatly appreciated. -Tom --- Yang Xiao [EMAIL PROTECTED] wrote: Hi, I think you need to further define the workers with {ajp13:psahammerhead:8009] channel=channel.socket:psahammerhead:8009 group=lb ... etc hope this helps. Yang -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:17 AM To: [EMAIL PROTECTED] Subject: Load balancing with apache2, mod_jk2 tomcat 5.0 Hi, I have set up four tomcat 5.0 servers for load balancing using an apache2 server and mod_jk2 on RedHat 9.0. The trouble that I am having is that most of the user sessions are routed to only one of the tomcat servers even though the lb_factor for all is the same, 10. All tomcat servers seem to be working since I can disable all but one in the workers2.properties file to force that tomcat server to be used. Chnaging the lb_factor can also cause a different tomcat server to be used most of the time, but I haven't figured out how to control the balancing by lb_factor. Below is the workers2.properties file that I am using. Thanks for any help you can provide, -Tom # workers2.properties [logger] level=DEBUG [config:] debug=0
RE: Tomcat 5 : DEBUG level
Hi, getServletContext().log(message...); When I was in Servlet class or in JSP pages I can use it, but How can I log message if I'm in Model or Controller layer ( my application is tie-tier), for examples in MyDBConnection.class and I don't have a ServletContext? You original question asked only about servlets and JSPs. You can pass the ServletContext around if you'd like, or for a cleaner solution pick up a logging toolkit like log4j. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Tomcat 5 : DEBUG level
I'll try to use log4j. Thanks for your kind attention Francesco. -Messaggio originale- Da: Shapira, Yoav [mailto:[EMAIL PROTECTED] Inviato: giovedi 15 aprile 2004 15.48 A: Tomcat Users List Oggetto: RE: Tomcat 5 : DEBUG level Hi, getServletContext().log(message...); When I was in Servlet class or in JSP pages I can use it, but How can I log message if I'm in Model or Controller layer ( my application is tie-tier), for examples in MyDBConnection.class and I don't have a ServletContext? You original question asked only about servlets and JSPs. You can pass the ServletContext around if you'd like, or for a cleaner solution pick up a logging toolkit like log4j. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: running SaxonServlet under Tomcat 5 and saxon 7
Got it! It was a problem with the servlet-mapping. Thanks. Q On Wed, Apr 14, 2004 at 05:00:23PM -0400, Cindy Girard wrote: Q : I'm running the newest versions of jdk, tomcat, and saxon. Q : Saxon is running under tomcat (it sees the directory structure in Q : http://localhost:8080/saxon , but I can't get it to see Q : SaxonServlet. I've tried putting SaxonServlet.class in every Q : WEB-INF/classes directory I could find with no result. Q If Saxon is just another webapp (or lone servlet, or whatever) you Q should only have to put it in {context}/WEB-INF/classes or a jar in Q {context}/WEB-INF/lib. Putting it in other dirs may give you trouble Q down the line. Q What does the Tomcat log say when the servlet fails? Q What's the web.xml entry for the servlet declaration and mapping? Q -QM -- - Cindy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access Manager and Admin utilities with load balancing enabled
Hi list, I have to ask this one more time since no one replied to my last post. I have load balancing enabled with TC 5.0.19 and JK2 and I changed the line in server.xml that says Engine name=Catalina defaultHost=localhost debug=0 to: Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 but I can no longer access the admin and manager utilities, please help. Yang
Re: shared/lib again...
Julio Cesar Aguilar wrote: I've read the ClassLoading part of Tomcat documentation and searched this list but I've still found no clue to my recent problem: Tomcat 5.0.19 JDK 1.4.2_03 Windows XP I have several applications running with a common jar of my own in each WEB-INF/lib and everthing works. If I move that jar to %CATALINA_HOME%/shared/lib the applications wont start reporting a CNFE about a class in the previously mentioned jar. If you use multiple instance Tomcat's feature, this may be the case. According to class-loader-howto.html, shared classloader looks its classes in $CATALINA_BASE/shared/lib , not in $CATALINA_HOME/shared/lib . I just tried this and it works. Alternatively you can place your .jar in $CATALINA_HOME/common/lib . I can reproduce the problem in Linux (same version of Tomcat and JDK) placing the jar in CATALINA_BASE/shared/lib or CATALINA_HOME/shared/lib. Is there something that has to be done to be able to share a jar through applications? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: blocked at every turn - SSL or mod_jk2
I already followed the Tomcat 5 SSL-howto. Everything installed correctly with no error messages. The only problem is that I can't get any clients to connect to the server at port 8443 even though it is listening. Netscape or firefox or mozilla all report: browsername and domainname cannot communicate securely because they have no common encryption algorithms. Help! Bill Barker wrote: Check the Tomcat 5 SSL-howto. There are notes on changes that are necessary to get Tomcat to work with IBM's JSSE implementation. Daniel Gibby [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] tomcat 5.0.19 Standalone SSL seems to be running correctly with no error messages logged, and it is listening on port 8443. I'm having some sort of problem with the keystore containing a valid global cert for the browser, maybe... I get this error message from my browser once I try to connect: Firefox and domainname cannot communicate securely because they have no common encryption algorithms. A google search for cannot communicate securely common encryption only yields 8 results. No-one posted an answer there, although multiple people have had the problem for quite a while. It's a good thing I use firefox, or I'd never know what the problem is. IE hides the error- just like pretty much any error. lynx https://localhost:8443 reports: Alert!: Unable to make secure connection to remote host. See my venting below if you really care... It might make you feel compassionate to help me out ;-) Thanks, Daniel venting In the past I've used mod_jk with apache1.3 and things back then seemed to be stable enough. Those were the good old days. If only there weren't security holes and features that are great from newer releases! Then about a year ago we switched to apache 2 and mod_jk2. It works alright, but we've had so many more lock-ups than we used to. So I decide to try Standalone SSL on tomcat4. That didn't work since I'm using IBM 1.4 and tomcat4's code imports the wrong packages for SSLSocket in com.sun.net or something instead of javax.security... I think. So I decide to try the latest and greatest tomcat 5 since JSSE is included in 1.4. I import my keystore according to tomcat5's documentation! Yeah success, but now this: My browser can't talk the talk. / venting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk connector build / configure failure
In the vein of getting tomcat 5 apache 1.3.29 integration working I'm now at the point where I came to the conclusion that I need to build jakarta-tomcat-connectors-jk-1.2.5-src/jk/native Correct me if I'm wrong but I came there by reading and skimming the web. Noone could help me in this list so far. Maybe because everyone is using apache2, don't know. Anyway, BUILDING says: ./configure --with-apxs=/usr/sbin/apxs Doing that I get (I copied apxs from the apache tree to /usr/sbin): checking for grep... /usr/bin/grep checking for echo... /bin/echo checking for sed... /usr/bin/sed checking for cp... /bin/cp checking for mkdir... /bin/mkdir checking for libtool... /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin need to check for Perl first, apxs depends on it... checking for perl... /usr/bin/perl could not find /usr/sbin/apxs configure: error: You must specify a valid --with-apxs path Hell, apxs is there in that path. The path *is* correct. From config.log: configure:8172: result: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin :/usr/local/bin:/usr/X11R6/bin:/root/bin configure:8197: result: need to check for Perl first, apxs depends on it... configure:8201: checking for perl configure:8219: found /usr/bin/perl configure:8232: result: /usr/bin/perl configure:8293: result: could not find /usr/sbin/apxs configure:8295: error: You must specify a valid --with-apxs path mybox# ls -l /usr/sbin/apxs -rwxr-xr-x 1 root wheel 26670 Apr 15 15:38 /usr/sbin/apxs mybox# clueless. -- Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting up a Default WepApp
I want myapp.war to be mapped so that instead of writing http://www.mydomain.com/mywar; , I simply type http://www.mydomain.com; and the page is directed to the index.jsp of myapp.war, but the URL in the addess bar remains http://www.mydomain.com; . Can anyone help me in doing this? Regards, Umer
Re: Multiple Paths in one Context
HI, Thanks for the input but I have spent the last two days on and off trying to find out how to do this... more help would be greatly appreciated.. POinters to where you descibed it before etc. Thank you very much Mvh Benjamin A. Janes Maersk Data Sverige M. +46 (0)40-630 04 88 Drottninggatan 18, S-211 49 Malmö, Sweden |-+ | | Ben Janes| | | [EMAIL PROTECTED]| | | com | | || | | 2004-04-07 08:53 | | | Please respond to| | | Tomcat Users| | | List| |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Multiple Paths in one Context | --| Hi, I would like one webapp to serve multiple paths so www.mywebapp.com/fred and www.mywebapp.com/fred2 go to the same webapp, I can do this with two contexts I know, however I don't want the webapp to load twice... Is it possible to do: Context path=/fred;/fred2 docBase=myFredApp debug=5 reloadable=true crossContext=true / Or is it something else? Mvh Benjamin A. Janes Maersk Data Sverige M. +46 (0)40-630 04 88 Drottninggatan 18, S-211 49 Malmö, Sweden - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
List problems
I just changed server hosts and now that I have my domain moved there I cant seem to get any emails from the tomcat-user list. I send a subscribe message and nothing comes back. I can send and receive mail from this account. Any suggestions? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Paths in one Context
Do you want to use other contexts beside those two ? If not, you can use one context with an empty path so that fred and fred2 are just subdirectories of one context. Context path= ... -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:32 PM To: Tomcat Users List Subject: Re: Multiple Paths in one Context I would like one webapp to serve multiple paths so www.mywebapp.com/fred and www.mywebapp.com/fred2 go to the same webapp, I can do this with two contexts I know, however I don't want the webapp to load twice... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Paths in one Context
Upto say 20/30 contexts.. Benjamin A. Janes Maersk Data Sverige M. +46 (0)40-630 04 88 Drottninggatan 18, S-211 49 Malmö, Sweden |-+-- | | Ralph Einfeldt | | | [EMAIL PROTECTED]| | | ime-isc.de| | | | | | 2004-04-15 16:40 | | | Please respond to | | | Tomcat Users List| |-+-- | | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Multiple Paths in one Context | | Do you want to use other contexts beside those two ? If not, you can use one context with an empty path so that fred and fred2 are just subdirectories of one context. Context path= ... -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:32 PM To: Tomcat Users List Subject: Re: Multiple Paths in one Context I would like one webapp to serve multiple paths so www.mywebapp.com/fred and www.mywebapp.com/fred2 go to the same webapp, I can do this with two contexts I know, however I don't want the webapp to load twice... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List problems
Is it possible that mails from the list are blocked by the new host ? (Blacklisted or identified as spam) -Original Message- From: John Trollinger [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:36 PM To: [EMAIL PROTECTED] Subject: List problems I just changed server hosts and now that I have my domain moved there I cant seem to get any emails from the tomcat-user list. I send a subscribe message and nothing comes back. I can send and receive mail from this account. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsessionid parameter not being accepted
Malcolm Warren wrote: I wish it was as easy as you say... I know that I don't have to implement my own url re-writing, but I did, and it was a long time ago! Right now I don't really want to re-write everything - sending the jsessionid as an ordinary parameter worked in Jrun, can't it work in Tomcat? You may be required to implement custom Manager (see org.apache.catalina.Manager interface), where you'll put your session id generation logic. But if you are not absolutely forced to use that old-fashined url-rewrite style, you should use session mechanism described in Servlet spec. That spec also mentions url-rewrite solution, when a user have switched cookie off, but still it is advisable to use response.encodeURL(String) method. Read description of javax.servlet.http.HttpServletResponse.encodeURL(String) for a more advanced explanation. On Thu, 15 Apr 2004 15:25:00 +0200, Ralph Einfeldt [EMAIL PROTECTED] wrote: - You don't have to implement your own url re-writing - The time is long gong when the session id was a parameter, it's now before the ? Just throw away your url rewiting and use rsponse.encodeUrl() instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Replicating session across applications
Hi, I use Tomcat 5.0.19 under Windows 2000 and have different applications running on one tomcat instance. When I set a session variable in one application it does not appear in the other applications. Is there an easy way to achive that? Thanks Bernhard Slominski Technical Project Manager zooplus AG Eichenweg 4 RG. 85774 Unterföhring Tel + 49. 89. 95 00 6 - 129 Fax + 49. 89. 95 00 6 - 500 mailto:[EMAIL PROTECTED] http://www.zooplus.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Paths in one Context
The main point was not, how many you want to use, but if you want a real contexts beside the others that have their own context element. Trying to rephrase the question: Do you want all paths handled by one context ? If yes you can follow my suggestion. -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:43 PM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: Multiple Paths in one Context Upto say 20/30 contexts.. Do you want to use other contexts beside those two ? If not, you can use one context with an empty path so that fred and fred2 are just subdirectories of one context. Context path= ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mapping a WAR
I want myapp.war to be mapped so that instead of writing http://www.mydomain.com/mywar; , I simply type http://www.mydomain.com; and the page is directed to the index.jsp of myapp.war, but the URL in the addess bar remains http://www.mydomain.com; . Can anyone help me in doing this? Regards, Umer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mapping a WAR
Hi, Wow, you're impatient. It used to be people actually waited a little bit before resending. You need to explicitly define a context path of (the empty string) for your webapp. If you're not sure how to do that, go read the tomcat docs. Yoav Shapira Millennium Research Informatics -Original Message- From: Umer Rashid [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:54 AM To: Tomcat Users List Subject: Mapping a WAR I want myapp.war to be mapped so that instead of writing http://www.mydomain.com/mywar; , I simply type http://www.mydomain.com; and the page is directed to the index.jsp of myapp.war, but the URL in the addess bar remains http://www.mydomain.com; . Can anyone help me in doing this? Regards, Umer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mapping a WAR
TC4 | TC5? There are several ways, when defining the context for your webapp, use the context ... path= ... / If TC5, then you can rename your webapp to ROOT.war, and it will deploy. -Original Message- From: Umer Rashid [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:54 AM To: Tomcat Users List Subject: Mapping a WAR I want myapp.war to be mapped so that instead of writing http://www.mydomain.com/mywar; , I simply type http://www.mydomain.com; and the page is directed to the index.jsp of myapp.war, but the URL in the addess bar remains http://www.mydomain.com; . Can anyone help me in doing this? Regards, Umer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Leak
Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com
RE: Memory Leak
I think I've seen back posts indicating that the JMX option will do this, try removing.. Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ From your server.xml, we have no apparent memory leaks using the same configuration. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:27 AM To: 'Tomcat Users List' Subject: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Memory Leak
Hi, I had a simalar problem when not closing database related stuff (connections, resultsets, statemnts). Does that apply to your application maybe? Cheers Bernhard -Ursprüngliche Nachricht- Von: Chanan Braunstein [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. April 2004 16:27 An: 'Tomcat Users List' Betreff: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat as deamon
Just a short thank you This is working great...and I hope that I can help someone on the list as everyone has helped me -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 11:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as deamon Look at the 'Tomcat.sh' script in jsvc-src/native. That one is for Tomcat 4. Of course, you'll likely have to edit the file to fix things like paths and the user. It's pretty straight forward to change it. And, yes, I've run Tomcat 4 happily with jsvc ;-). Wilson, Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Doug... I failed to mention that I am on Tomcat 4do you have any experience with jsvc and that. If not, I read through the link you've provided and I may have to move up to Tomcat 5. Allen -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:24 PM To: Tomcat Users List Subject: Re: tomcat as deamon Allen, Read this page. It will make a little more sense than the instructions on the commons page. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Note the last paragraph on the page. And the script has already been changed for TC5. Once you have completed these steps then you can put the script in init.d and link it from the desired runlevels. Here is what my modified script looks like: # Adapt the following lines to your configuration JAVA_HOME=/tomcat/jv CATALINA_HOME=/tomcat/tc DAEMON_HOME=/tomcat/tc/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ -Xms384m \ -Xmx512m \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat start/stop exit 1;; esac I also put a link in usr/bin to the script in init.d which allows me to do a tomcat stop and tomcat start from anywhere to stop and start tomcat. My script name is tomcat without the .sh . Sorry if I am too verbose in my instructions. Doug - Original Message - From: Wilson, Allen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 12, 2004 6:59 PM Subject: RE: tomcat as deamon Doug... I tried to figure out how to use the jsvc...I have it configured but I not sure how to use in in a class...any ideas' Allen -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 5:55 PM To: Tomcat Users List Subject: Re: tomcat as deamon Emerson, It depends. If you need to run tomcat on port 80, then you will need jsvc otherwise calling startup.sh should work. Doug www.parsonstechnical.com - Original Message - From: Emerson Cargnin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 12, 2004 5:39 PM Subject: tomcat as deamon Anyone has experience in using tomcat as deamon?? What would be the best way? using jsvc??? or create a script to be called by init.d? Would be enough to call startup.sh and shutdown in apache init.d script -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This
Re: jsessionid parameter not being accepted
OK, I think I'll have to re-write, at least that way I eliminate incompatibility across servlet containers. Thanks everyone for your advice. On Thu, 15 Apr 2004 18:46:53 +0400, Veniamin Fichin [EMAIL PROTECTED] wrote: Malcolm Warren wrote: I wish it was as easy as you say... I know that I don't have to implement my own url re-writing, but I did, and it was a long time ago! Right now I don't really want to re-write everything - sending the jsessionid as an ordinary parameter worked in Jrun, can't it work in Tomcat? You may be required to implement custom Manager (see org.apache.catalina.Manager interface), where you'll put your session id generation logic. But if you are not absolutely forced to use that old-fashined url-rewrite style, you should use session mechanism described in Servlet spec. That spec also mentions url-rewrite solution, when a user have switched cookie off, but still it is advisable to use response.encodeURL(String) method. Read description of javax.servlet.http.HttpServletResponse.encodeURL(String) for a more advanced explanation. On Thu, 15 Apr 2004 15:25:00 +0200, Ralph Einfeldt [EMAIL PROTECTED] wrote: - You don't have to implement your own url re-writing - The time is long gong when the session id was a parameter, it's now before the ? Just throw away your url rewiting and use rsponse.encodeUrl() instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
In your profiler rather than looking at the type of object taking the memory look at the accumulated memory consumed by your classes. This will show you which classes are taking up the most memory and if you have a leak you might expect this accumulated value to be a high percentage of the overall heap being used.. look for a percetage of memory used. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 15:27 To: 'Tomcat Users List' Subject: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mapping a WAR
Hi, I have done it. In server.xml, i have written Context path= docBase=myapp debug=0/. But when I type http://localhost:8080, it is still directed to ROOT/index.jsp, even after when I remove ROOT folder from /webapps folder. Can you please guide me further? Regards, Umer - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 7:52 PM Subject: RE: Mapping a WAR Hi, Wow, you're impatient. It used to be people actually waited a little bit before resending. You need to explicitly define a context path of (the empty string) for your webapp. If you're not sure how to do that, go read the tomcat docs. Yoav Shapira Millennium Research Informatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
I don't think so. I have one class that access the database for the whole webapp. And it closes the result sets, statements and connection each in a try/catch. Also, I have the log abandoned turned on. I will try to turn off the jmx as suggested by Arthur, cannot hurt as I don't use the admin app anyway. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:59 AM To: 'Tomcat Users List' Subject: AW: Memory Leak Hi, I had a simalar problem when not closing database related stuff (connections, resultsets, statemnts). Does that apply to your application maybe? Cheers Bernhard -Ursprüngliche Nachricht- Von: Chanan Braunstein [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. April 2004 16:27 An: 'Tomcat Users List' Betreff: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
looking for jk2
I'm running Tomcat 4.1.18 and apache 1.3 on linux Mandrake 9.0 I'm trying to migrate from warp to jk2. Can someone point me an url where I could find a step by step documentation about how to install and configure jk2. thanks in advance. L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
RE: Memory Leak
I am not sure I understand, my classes i.e. stuff I created under com.knovel.* take up almost nothing of the heap, I have the view sorted by size in memory and they are way down there. Most of the heap is taken up by char[]. Byte[], String, Object[], int[] and StringBuffer. The biggest class I have is taking 100k - it never grows, it is created in a singleton at startup and is only read from, I checked it is always at 100k - never growing bigger (as expected). Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:10 AM To: Tomcat Users List Subject: RE: Memory Leak In your profiler rather than looking at the type of object taking the memory look at the accumulated memory consumed by your classes. This will show you which classes are taking up the most memory and if you have a leak you might expect this accumulated value to be a high percentage of the overall heap being used.. look for a percetage of memory used. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 15:27 To: 'Tomcat Users List' Subject: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
you're classes might not take a lot of memory, but the classes that your classes reference, such as byte[] char[] String etc will. so if the leak is in your code, you need a profile to track it down. Filip -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:20 AM To: 'Tomcat Users List' Subject: RE: Memory Leak I am not sure I understand, my classes i.e. stuff I created under com.knovel.* take up almost nothing of the heap, I have the view sorted by size in memory and they are way down there. Most of the heap is taken up by char[]. Byte[], String, Object[], int[] and StringBuffer. The biggest class I have is taking 100k - it never grows, it is created in a singleton at startup and is only read from, I checked it is always at 100k - never growing bigger (as expected). Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:10 AM To: Tomcat Users List Subject: RE: Memory Leak In your profiler rather than looking at the type of object taking the memory look at the accumulated memory consumed by your classes. This will show you which classes are taking up the most memory and if you have a leak you might expect this accumulated value to be a high percentage of the overall heap being used.. look for a percetage of memory used. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 15:27 To: 'Tomcat Users List' Subject: Memory Leak Hello, I am having a problem with Tomcat 5.0.19 on windows with JDK 1.4.2_02. The memory that java.exe is using keeps growing till the point that tomcat stops responding. Using a profiler, doesn't seem to give me any clues. I can see the memory being used by certain classes go up (mainly char[]) and even reach all the way to the point that used java heap equals to the java heap, but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. For example right now it is at 717,000 K, even though the heap used is at about 200,000 K. What am I missing here? My current params are -server -Xrs -Xms356M -Xmx356M - I tried all kinds of different sizes for the memory but that doesn't really help. Any suggestions as to where (how) to look to find my memory leak? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mapping Images and Style sheets
Hi, myapp has been successfully mapped as root webapp , but when I go to http://localhost:8080 , the images and styles don't display. Can anyone help me? Regards, umer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
Which memory are you talking about: - Java Heap If this doesn't go down after a load peak where the load of the heap was near the limit you have a problem. (In your test it did get down) To solve that, you have to find a reproducable test that exposes the problem and run a profiler with that. - OS Memory as reported by the task manager This will never ever go down until restart. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:24 PM To: 'Tomcat Users List' Subject: RE: Memory Leak Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is accepted way to read/write files in Tomcat ?
Some thoughts on this matter :-) If I am not wrong, the servlet specification states that the directory pointed by javax.servlet.context.tempdir can be cleaned on restart (it is left to the container implementation). I think Tomcat does not do such a cleaning, but other containers (or even future Tomcat versions) are perfectly allowed to do so :-S So, sticking to the specification, I guess the only way left to define such a location is specifying it through JNDI. This means that any webapp needing (for example) to work as file server are unnecessary difficult to implement. Having to implement a custom servlet that does the same as the default one, but accessing another directory out of the context, sounds to me like reinventing the wheel :-D Having war deployments this lack of functionality, it has always seemed strange to me that the specification only considers mandatory this type of deployment. Rodrigo Ruiz Mike Curwen wrote: Is it legitimate depends on who you talk to. ;) Purists (I don't mean that negatively) would remind you that the only 'guaranteed' filepath available is the javax.servlet.context.tempdir . And getRealPath() would blow up on you, if you were running your webapp from a WAR file. However, if *you* know that your app will only ever be used unpacked, then fully document this requirement, and go ahead and use getRealPath(). -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 12:28 AM To: Tomcat Users List Subject: What is accepted way to read/write files in Tomcat ? Hi all, What is the best way to read and write file(the file locations are inside context) in a servlet container. I was able to read file using getResourceAsStream() but writing using URLConnection().getOutputStream() failed and throws protocol doesn't support output - UnknownServiceException. Is it legitimate to use the getRealPath() to get the context root and write the file ? Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.658 / Virus Database: 421 - Release Date: 09/04/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
this is what I have heard before but it is not true. our Tomcat 5.0.19 under load in the task manager view goes up to about 150MB and overnight or under light load goes back down to 95MB. ADC -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 16:32 To: Tomcat Users List Subject: RE: Memory Leak Which memory are you talking about: - Java Heap If this doesn't go down after a load peak where the load of the heap was near the limit you have a problem. (In your test it did get down) To solve that, you have to find a reproducable test that exposes the problem and run a profiler with that. - OS Memory as reported by the task manager This will never ever go down until restart. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:24 PM To: 'Tomcat Users List' Subject: RE: Memory Leak Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosting Revisited - Apache serving static pages..???
John, Thanks much.. Reading this I take it that by setting the DocumentRoot to the Apache/htdocs directory (or where that might be..) ..that is sufficient... Hmm... way, way to simple...G Now, is there a way to set this up in the server.xml so that autoconfig generates that setting...?? Or am I forced to hand set this for each virtual host.. (I have a LOT of these to manage)... John.. John Sidney-Woollett wrote: John B. Moore said: Thanks for responding.. And yes, I keep hearing that one can do this ... But...G I'm slow I guess, because that still does not give me a hint as to HOW that is to be configured.. Do you have some virtual host directives that do this that I can use as examples.. Maybe my problem is that I am thinking I could have the static pages located under Apache/htdocs and the jsp pages under Tomcat/webapps.. I can't find and example that combines the standard Apache virtual host directives with what is needed to also direct the jsp to Tomcat.. I can easily to each separately, but have yet to find a way to do both Here you go... # External IP Address: xxx.xxx.xxx.xxx VirtualHost 192.168.1.111:80 ServerName test.mydomain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/test.mydomain.com ErrorLog /var/log/httpd/test.mydomain.com/error_log CustomLog /var/log/httpd/test.mydomain.com/access_log combined JkMount /someurl/MySpecialServlet worker1 JkMount /admin/* worker1 JkMount /manager/* worker1 JkMount /*.jsp worker1 /VirtualHost Create as many JKMount entries as you need to map all your servlets and JSPs. Whatever doesn't match any of the JkMount entries will be handled by Apache from the document root (/var/www/test.mydomain.com in this example). You can even route the different servlet/jsp requests to different tomcat workers (if that is needed or works for you). Hope that helps. John Sidney-Woollett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
Yes, the heap memory does go down, my problem is the OS memory. Why will it never go down? Won't that cause over time in tomcat (as indeed is what I am seeing)? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:32 AM To: Tomcat Users List Subject: RE: Memory Leak Which memory are you talking about: - Java Heap If this doesn't go down after a load peak where the load of the heap was near the limit you have a problem. (In your test it did get down) To solve that, you have to find a reproducable test that exposes the problem and run a profiler with that. - OS Memory as reported by the task manager This will never ever go down until restart. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:24 PM To: 'Tomcat Users List' Subject: RE: Memory Leak Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
the only time my task manager memory went up and never came down came from the classloader having to reload classes because I had dynamic reloading switched on ... are you deploying classes that force tomcat to do a live reinit? -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 16:42 To: 'Tomcat Users List' Subject: RE: Memory Leak Yes, the heap memory does go down, my problem is the OS memory. Why will it never go down? Won't that cause over time in tomcat (as indeed is what I am seeing)? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:32 AM To: Tomcat Users List Subject: RE: Memory Leak Which memory are you talking about: - Java Heap If this doesn't go down after a load peak where the load of the heap was near the limit you have a problem. (In your test it did get down) To solve that, you have to find a reproducable test that exposes the problem and run a profiler with that. - OS Memory as reported by the task manager This will never ever go down until restart. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:24 PM To: 'Tomcat Users List' Subject: RE: Memory Leak Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
Which vm and os do you use ? That behaviour is jvm and os dependend. (This is the first time I hear of an implementation that returns memory to the os, although I knew that it could be done) -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:38 PM To: Tomcat Users List Subject: RE: Memory Leak this is what I have heard before but it is not true. our Tomcat 5.0.19 under load in the task manager view goes up to about 150MB and overnight or under light load goes back down to 95MB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
we run windows 2000, jdk 1.4.2_04, tomcat 5.0.19 and I guarantee that memory is being returned to the OS here by the JVM as our task manager memory goes up and down by as much as 55MB. ADC -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 16:47 To: Tomcat Users List Subject: RE: Memory Leak Which vm and os do you use ? That behaviour is jvm and os dependend. (This is the first time I hear of an implementation that returns memory to the os, although I knew that it could be done) -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:38 PM To: Tomcat Users List Subject: RE: Memory Leak this is what I have heard before but it is not true. our Tomcat 5.0.19 under load in the task manager view goes up to about 150MB and overnight or under light load goes back down to 95MB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mapping Images and Style sheets
does your app contain a servlet mapped to / ? -Original Message- From: Umer Rashid [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:34 AM To: Tomcat Users List Subject: Mapping Images and Style sheets Hi, myapp has been successfully mapped as root webapp , but when I go to http://localhost:8080 , the images and styles don't display. Can anyone help me? Regards, umer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 session replication in a production environment
Hi, Is anyone using Tomcat 4 session replication in a production environment, if so, could you please share your experiences ? Unfortunately we are unable to upgrade to TC 5 for now but I need to setup session replication for some of our TC 4 servers for fail-over purposes (we have HW load balancers for load balancing). I have successfully set it up in our stage environment to prove it is viable but I am interested in others experiences. Also, is it possible for me to create a new replication jar for TC 4 which incorporates the bug fixes done on the TC 5 branch ? Thanks, Ryan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
difference in jsp:usebean between tomcat 4 and 5
Hi, I've noticed a change in the java code that results from a jsp:usebean when upgrading from tomcat 4 to tomcat 5. I'm wondering if this is a change in the spec or just a coding difference between versions: *This jsp:* jsp:useBean id=payment class=mybeans.ValidateableBean scope=session / *Results in this java code: * *on tomcat-5.0.19:* mybeans.ValidateableBean payment = null; synchronized (session) { payment = (mybeans.ValidateableBean) _jspx_page_context.getAttribute(payment, PageContext.SESSION_SCOPE); if (payment == null){ payment = new mybeans.ValidateableBean(); _jspx_page_context.setAttribute(payment, payment, PageContext.SESSION_SCOPE); } } *in tomcat-4.1.27 (same on tomcat-4.1.30 I believe):* mybeans.ValidateableBean payment = null; synchronized (session) { payment = (mybeans.ValidateableBean) pageContext.getAttribute(payment, PageContext.SESSION_SCOPE); if (payment == null){ try { payment = (mybeans.ValidateableBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), mybeans.ValidateableBean); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException(Cannot create bean of class + mybeans.ValidateableBean, exc); } pageContext.setAttribute(payment, payment, PageContext.SESSION_SCOPE); } } Was this a 'performance enhancement'? The problem I have with the tomcat 5 code is that it doesn't catch errors. ValidateableBean just happened to be an abstract class with multiple ValidateableBean subclasses. The section of code that this is in had an if statement around it that made sure that the 'payment' variable shouldn't have been null, and that it was already an instance of a ValidateableBean subclass, so the code would have just called pageContext.getAttribute and have been done. Tomcat 4 was fine with the abstract class because when it compiled it never tried validate the call to 'new mybeans.ValidateableBean()' Tomcat 5 throws an error that an abstract class can't be instantiated (which is true, but why does is the compiler now forced to perform this check?) Insights? Daniel Gibby
Extending GenericPrincipal/RealmBase: Essentially a classloader question
HI all, He have implemented our own realm and principal buy extending org.apache.catalina.realm.RealmBase and GenericPrincipal. (Using TC5.0.19 on Solaris and Windows. Realm defined in Context.) By doing this, however, we've got ourselves into sort of a catch 22 in terms of classloading. Hopefully someone can offer some assistance. I've referenced the Class Loader HOW-TO at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html, so I'll use it's terminology. RealmBase and GenericPrincipal are located in catalina.jar, which resides physically in server/lib. The howo defines this jar as in the Catalina class loader. The definition says that the Catalina classes are totally invisible to web applications, which seems true enough. In order to extend these, I must locate my jar in server/lib. So far so good. The problem is that I need to use my extension of GenericPrincipal within my webapps. I tried moving my jar to common/lib, since, according to the parent tree in the howto, it is visible to both the Catalina branch and the webapp branch. Doing this causes a NoClassDefFoundError for GenericPrincipal. Apparently since the Catalina classloader is below the common classloader, it can't find GenericPrincipal. The only solution that appears to work is moving the entire contents of server/lib to common/lib, essentially 'promoting' all of the classes normally in the Catalina class loader to the common class loader. Is this the best solution? It seems to me that I should be able to extend RealmBase/GenericPrincipal without having to move jars around. Any ideas? John
quick question when getting started
I'm upgrading from Tomcat 4 to 5 and I just installed Tomcat 5 on a dev machine to play with it, and I know a couple things are organized a bit differently, but the provided index page is weirding me out. I tried to add a line of text to the index.jsp in webapps\ROOT and when I reload the page (that I browse to by going to localhost on my Win 2K Server machine), that line of text isn't appearing. I've tried adding other bits, too, and I've tried restarting Tomcat, and I found a catalina-root.jar in the WEB-INF\lib folder and deleted that in an effort to get it to recompile the index.jsp, but nothing seems to be working! Why? Here's an example of what I've modified in the HTML: pcenterbIf you're seeing this page via a web browser, it means Stephen has setup Tomcat successfully. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
I am not sure what a live reinit is, but I doubt it, I just have an exploded webapp directory with jar files in the lib directory, should be ok. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:44 AM To: Tomcat Users List Subject: RE: Memory Leak the only time my task manager memory went up and never came down came from the classloader having to reload classes because I had dynamic reloading switched on ... are you deploying classes that force tomcat to do a live reinit? -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 16:42 To: 'Tomcat Users List' Subject: RE: Memory Leak Yes, the heap memory does go down, my problem is the OS memory. Why will it never go down? Won't that cause over time in tomcat (as indeed is what I am seeing)? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:32 AM To: Tomcat Users List Subject: RE: Memory Leak Which memory are you talking about: - Java Heap If this doesn't go down after a load peak where the load of the heap was near the limit you have a problem. (In your test it did get down) To solve that, you have to find a reproducable test that exposes the problem and run a profiler with that. - OS Memory as reported by the task manager This will never ever go down until restart. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:24 PM To: 'Tomcat Users List' Subject: RE: Memory Leak Well, I am not sure why tomcat crashes in that case, why isn't it reducing the memory over time. I might add that I noticed that even during low traffic periods the memory won't go back down. Even if I take one off the cluster (hardware load balancer), so no traffic is going to it at all the memory doesn't go down. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you test fails to expose the memory leak. -Original Message- From: Chanan Braunstein [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:27 PM To: 'Tomcat Users List' Subject: Memory Leak but then GC kicks in and drops down back to where it was when I started the test. However, the memory in the task manager keeps going up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Leak
Sun 1.4.2_02 on win2k Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:47 AM To: Tomcat Users List Subject: RE: Memory Leak Which vm and os do you use ? That behaviour is jvm and os dependend. (This is the first time I hear of an implementation that returns memory to the os, although I knew that it could be done) -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:38 PM To: Tomcat Users List Subject: RE: Memory Leak this is what I have heard before but it is not true. our Tomcat 5.0.19 under load in the task manager view goes up to about 150MB and overnight or under light load goes back down to 95MB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
auto generation of mod_jk.conf in tomcat 5
When we used tomcat 3.2.3, I configured it to autogenerate the mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use it??? I like it becouse each time a app is deployed I just have to make apache re-read it's conf file to get the new map to work. how do I configure tomcat 5 to auto-generate it??? -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extending GenericPrincipal/RealmBase: Essentially a classloader question
Can your webapps see GenericPrincipal? Looking at the JavaDocs for the Catalina api, it looks like the session façade your get app gets is going to have access to a java.security.Principal (likely also a façade), not a GenericPrincipal. Maybe instead of extending a class in the server/Catalina classloader, you could implement another subclass of java.security.Principal, and have that class loaded in the common classloader. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: John H [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:25 AM To: Tomcat Users List Subject: Extending GenericPrincipal/RealmBase: Essentially a classloader question HI all, He have implemented our own realm and principal buy extending org.apache.catalina.realm.RealmBase and GenericPrincipal. (Using TC5.0.19 on Solaris and Windows. Realm defined in Context.) By doing this, however, we've got ourselves into sort of a catch 22 in terms of classloading. Hopefully someone can offer some assistance. I've referenced the Class Loader HOW-TO at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html, so I'll use it's terminology. RealmBase and GenericPrincipal are located in catalina.jar, which resides physically in server/lib. The howo defines this jar as in the Catalina class loader. The definition says that the Catalina classes are totally invisible to web applications, which seems true enough. In order to extend these, I must locate my jar in server/lib. So far so good. The problem is that I need to use my extension of GenericPrincipal within my webapps. I tried moving my jar to common/lib, since, according to the parent tree in the howto, it is visible to both the Catalina branch and the webapp branch. Doing this causes a NoClassDefFoundError for GenericPrincipal. Apparently since the Catalina classloader is below the common classloader, it can't find GenericPrincipal. The only solution that appears to work is moving the entire contents of server/lib to common/lib, essentially 'promoting' all of the classes normally in the Catalina class loader to the common class loader. Is this the best solution? It seems to me that I should be able to extend RealmBase/GenericPrincipal without having to move jars around. Any ideas? John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: looking for jk2
http://www.reliablepenguin.com/clients/misc/tomcat/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:18 AM To: [EMAIL PROTECTED] Subject: looking for jk2 I'm running Tomcat 4.1.18 and apache 1.3 on linux Mandrake 9.0 I'm trying to migrate from warp to jk2. Can someone point me an url where I could find a step by step documentation about how to install and configure jk2. thanks in advance. L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Threads Locking cont. Solved
You're right this isn't a tomcat issue. It appears that the problems has to do with us starting tomcat while connected to the machine via Terminal Services. Tomcat was actually hanging during startup (even before we deployed our app). Ant also hung. On Wednesday 14 April 2004 12:53 pm, Filip Hanik \(lists\) wrote: this is not a tomcat, issue, it is your code (or should I say the webservice code) that is locking when trying to read data from the socket. you should set SO_TIMEOUT on the socket, and it will timeout and throw an error instead of hanging forever when there is no data from the other side. Filip -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 11:45 AM To: Tomcat Users List Subject: Threads Locking cont. After removing all System.out.println statements (including printStackTrace()) Tomcat is still experiencing thread locking issues. I just put this on a different machine running Win 2k Server service pack 4. Again, it's been running for over a year on a linux box with no issues. We've also had 2 people developing it on XP and Win2k pro for the year without seeing this. Has anyone else had any problems with threads locking? Windows 2K Server service pack III Tomcat 5.0.19 (also tried 5.0.18) Thread Dump: http80-Processor79 daemon prio=5 tid=0x008836d0 nid=0x2618 runnable [1abde000..1abdfd88] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) - locked 0x1011c860 (a java.io.BufferedInputStream) at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender. j ava:506) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java : 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2526) at org.apache.axis.client.Call.invoke(Call.java:2515) at org.apache.axis.client.Call.invoke(Call.java:2210) at org.apache.axis.client.Call.invoke(Call.java:2133) at org.apache.axis.client.Call.invoke(Call.java:1656) at com.fwdco.server.TimeSheetBean.fetchTimeSheetList(Unknown Source) at com.fwdco.server.TimeSheetServlet.doPost(Unknown Source) at com.fwdco.server.TimeSheetServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex t Valve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a va:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 4 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte x t.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:16 4 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte x t.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a :156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte x t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn e ction(Http11Protocol.java:732) at