why the ThreadPool is empty if traffic is so low? (block with Tomcat 4.1.24-LE on linux)
Hello all, I'm sorry to bother again but I was wondering whether any of you has some feedback about the following problem. Synopsis: Tomcat hangs because the threadpool is empty, but traffic is really low == what can cause all these threads/connections to hang? The Whole story. I have a web service published together with a webapp under Tomcat 4.1.24-LE on linux redhat. The web service is built using Axis 1.0 facilities and it interacts with an Oracle db. Up to date it has worked like a charm: more than 6 months up running without any needs of a restart. A few days ago the server entered in a not responding state. Examining the log I have discovered that: CUT HERE Oct 13, 2004 4:02:04 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads are busy, waiting. Please increase maxThreads or check the servlet status150 150 CUT HERE HTTP connections are handled through non-SSL Coyote HTTP/1.1 Connector on port 8080. This is the rilevant portion of server.xml CUT HERE Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=100 maxProcessors=150 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / CUT HERE Dumping the network connections I have found (not surprisingly): *) 89 connections in SYN_RECV state *) 133 connections in CLOSE_WAIT state Examining the access log I have found nothing in particular, last access was at 13/Oct/2004:15:44:09, a GET on one of the webapp's servlets, served successfully. Examining the application log I only see a few exceptions caused by an RDBMS shutdown. I am asking myself if this can be the cause of zombie threads, but it seems strange to me. Nothing seems to be happened at 4:02:04 PM, or at least the JVM was not able to log any information right before the block (it seems reasonable because the server was not able to instantiate any thread from the pool in order to manage the request; the question is whether access log writes before getting a thread from the pool or after that). Do you have any ideas? I may increase ThreadPool dimension, but when the block occurred traffic was low and it doesn't seem to justify any change on the configuration side. Is it a Tomcat issue? We are planning to upgrade to 4.1.30 very soon, but could it be worth to go towards 4.1.31 or 5.x.y (not really planned yet)? I'd appreciate any feedback about it. TIA Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29
I will follow the way with squid. Thanks for your input and support. Your cooperation is welcome. Mit freundlichen Grüßen, Volker Neise - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper error compiling jsp
hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.java:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Environment entries question
Hello! I created environment entry in web.xml: env-entry env-entry-nametest/env-entry-name env-entry-valuesimple test/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry This entry is used in the following way: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); String value = (String) envCtx.lookup(test); Then I tried to change this environment entry using admin application. It was changed correctly in admin application, but code, listed above, returns old value. I know two ways of how to make this code know of new value: 1. Change it in web.xml and restart tomcat 2. Change it in admin application and reload corresponding context I do not like both of these ways. Could somebody please tell me - is there a way of changing environment entry value, so that code, described above will see new value? Thank you in advance, Igor
Sv: jasper error compiling jsp
Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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: Testing/Development environment setups..
My 2 cents: Learning to use Ant - especially for features Yoav and others have suggested - is very worth while. Ant is a fantastic tool. Harry Mantheakis Yoav, Ben: Thanks for the tips - I think I finally have a grasp on how a real project would be run properly. I already use MySQL, cvs(in a manual fashion), ant(still new) so I'm not that far away. Development Box Question: Is it *inadvisable* to do the development using the same tomcat version, ant and a local mysql database on a Windows XP box versus the production server which is a linux box? I'd like to start using an real IDE(Eclipse or Netbeans) and having everything on my XP box sounds doable. Thanks for all your help. --JW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database realm in tomcat admin
Hi! I have configured my tomcat to use a database realm. My problem is that I have been using the tomcat admin to administer my users and feel no need to replace that tool. So is it possible to make tomcat-admin to use the database realm instead of the MemoryRealm? Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jdbc pool
when I compile using jdbc pool the following error show: javax.servlet.ServletException: Name jdbc is not bound in this Context VerifyLogin.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause javax.naming.NameNotFoundException: Name jdbc is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:815) org.apache.naming.NamingContext.lookup(NamingContext.java:185) org.apache.naming.NamingContext.lookup(NamingContext.java:826) org.apache.naming.NamingContext.lookup(NamingContext.java:185) org.apache.naming.NamingContext.lookup(NamingContext.java:826) org.apache.naming.NamingContext.lookup(NamingContext.java:198) org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) javax.naming.InitialContext.lookup(InitialContext.java:347) VerifyLogin.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What is that mind? Thanks in advance ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jdbc pool
Follow http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations closely. Viorel Dragomir . .. --- vioss was here - Original Message - From: kangkoong Kakoong To: Tomcat Users List Sent: Friday, October 22, 2004 10:52 Subject: jdbc pool when I compile using jdbc pool the following error show: javax.servlet.ServletException: Name jdbc is not bound in this Context VerifyLogin.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause javax.naming.NameNotFoundException: Name jdbc is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:815) org.apache.naming.NamingContext.lookup(NamingContext.java:185) org.apache.naming.NamingContext.lookup(NamingContext.java:826) org.apache.naming.NamingContext.lookup(NamingContext.java:185) org.apache.naming.NamingContext.lookup(NamingContext.java:826) org.apache.naming.NamingContext.lookup(NamingContext.java:198) org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) javax.naming.InitialContext.lookup(InitialContext.java:347) VerifyLogin.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What is that mind? Thanks in advance ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mulitple JVMs
Dear All, Due to a version upgrade of some third-party component accessed through J-Integra (Java/COM bridge) I've been informed that I need to run the new version in a different JVM to the rest of my webapp (the earlier versions lived in harmony). I know I could have a separate Tomcat on a different (or the same) server dedicated to running the new stuff, but I wondered if anyone has any advice on this. Many thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
split mod_jk2 configuration file for vhosts
I tell apache httpd where is the workers2.properties file with JkSet config.file /etc/httpd/conf/workers2.properties Now I have multiple ip virtual host webapps and each one has a file included in httpd.conf with Include /etc/httpd/conf/vhosts/*.conf How can I configure Jk2 configuration file (workers2.properties) for each host separately? Can I use JkSet config.file /etc/httpd/conf/workers2.properties in each vhosts/xxx.conf file even if I have only one instance of httpd? Thanks, Matteo Turra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sv: jasper error compiling jsp
hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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: split mod_jk2 configuration file for vhosts
I would advise to use a single workers2.properties file, and just setup different workers in that file, one for each VirtualHost to use. If I'm not mistaken, anything you'd want to customize per workers file can be customized per-worker in one file. -Brendan -Original Message- From: Matteo Turra [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 4:32 AM To: Tomcat Users List Subject: split mod_jk2 configuration file for vhosts I tell apache httpd where is the workers2.properties file with JkSet config.file /etc/httpd/conf/workers2.properties Now I have multiple ip virtual host webapps and each one has a file included in httpd.conf with Include /etc/httpd/conf/vhosts/*.conf How can I configure Jk2 configuration file (workers2.properties) for each host separately? Can I use JkSet config.file /etc/httpd/conf/workers2.properties in each vhosts/xxx.conf file even if I have only one instance of httpd? Thanks, Matteo Turra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jasper error compiling jsp
It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper error compiling jsp
Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev "Sarath PS" [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - 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]
Webserver - Tomcat - Tapestry / Error 405 Method Not Allowed / :jsession
Hi folks. situation: I wrote a webapplication using the Tapestry (version 3.0) Framework. As a webcontainer I am using Tomcat 5. Total of 3 pages: 1. page START: form user has to type in two values /submit 2. page INPUT: form user can type in couple of values or 'cancel' application /submit * 3. page END: Only Text: Thanks for your input *(user can repeat this page as often as requested to type in more and more) session: --- Session are using, so that I wrote my own VISIT object to hold all the needed information. property name=org.apache.tapestry.visit-classMyVisit/property in MyApp.application testing: -- = Tomcat My tests using http://myTomcatUrl/context/ worked just fine!! No Problem at all. = Webserver (Zeus) As weberver I don't use Tomcat. Therefor I needed an redirect for all unknwon Request to my Tomcat. No Problem at all, all request reach my webappl installed and running under tomcat. BUT: --- When I cklick a button of my provided form-Elements, i get from my Webserver a .. Error 405 Method Not Allowed The requested method POST is not allowed for URL /context/;jsessionid=8BFBF57F25A3D826434CEDBDB5A8842E Powered by Zeus Technology Has anybody an idea, what the reason for that could be? It works under Tomcat but not through my webserver, very strange. Thanks for every note. Bye, Fred -- Geschenkt: 3 Monate GMX ProMail + 3 Ausgaben der TV Movie mit DVD Jetzt anmelden und testen http://www.gmx.net/de/go/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading for the sake of it?
Hello, My questions here are fairly broad and open to opinion, I have not the experience to be dealing with these scenarios though so if you could help me it would be much appreciated. I do not mean to be inflammatory so if it is please ignore. Recently there was a post asking why people are still using Tomcat 4 instead of upgrading to version 5. I have been using Tomcat 4.0.4/Apache 1.3.26 for years and only recently upgraded Tomcat to 4.1.24. Now I am in a position I have never had before. I have been given a Windows server to manage and free reign over what to put onto it. So is the best advice to go with what I know best (and can be sure my websites run under) and install old versions. Or to go with the very latest of everything. If so then is it a good idea to keep updating Tomcat and Apache (httpd) or should I get one thing working and stick with what works? The answer to a previous post of mine about Tomcat 4.1.31 told me that is was a 'maintenance release', if this is the case then should all 4.1.x administrators have updated to it? Thanks, Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading for the sake of it?
Summary: Keeping upgrading if your webapp code keeps changing. ** If the webapps running on the tomcat instance will not change or only change for critical fixes - then don't upgrade tomcat. Newer versions may break old applications. (like any software upgrade) ** If the webapps are undergoing active development - try to stay up to date. New code tends to flush out bugs or deficiencies because ... there are new requirements and new things to test (and therefor a better chance at things which will break) -Tim Andoni wrote: Hello, My questions here are fairly broad and open to opinion, I have not the experience to be dealing with these scenarios though so if you could help me it would be much appreciated. I do not mean to be inflammatory so if it is please ignore. Recently there was a post asking why people are still using Tomcat 4 instead of upgrading to version 5. I have been using Tomcat 4.0.4/Apache 1.3.26 for years and only recently upgraded Tomcat to 4.1.24. Now I am in a position I have never had before. I have been given a Windows server to manage and free reign over what to put onto it. So is the best advice to go with what I know best (and can be sure my websites run under) and install old versions. Or to go with the very latest of everything. If so then is it a good idea to keep updating Tomcat and Apache (httpd) or should I get one thing working and stick with what works? The answer to a previous post of mine about Tomcat 4.1.31 told me that is was a 'maintenance release', if this is the case then should all 4.1.x administrators have updated to it? Thanks, Andoni. - 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]
AW: Upgrading for the sake of it?
Hi So is the best advice to go with what I know best (and can be sure my websites run under) and install old versions. Or to go with the very latest of everything. I would recommend to use some recent version. Not the lastest, because they are alpha/beta versions. Simply try it and if it works, okay. If not, remove them and use your old versions. Two thinks to remember: - Tomcat 5 uses newer specifications than 4.1.x. does. Your App MIGHT be incompatible. - Tomcat 5 improved a lot in terms of speed over Tomcat 4. - Sun JDK 1.5.0 improved a lot of JDV 1.4.2 which is already much faster than 1.3.x... So yes, you should take some recent versions, but be sure to test before putting that into production. If so then is it a good idea to keep updating Tomcat and Apache (httpd) or should I get one thing working and stick with what works? Ths is a had decition. Read anounces for new stable releases and read the changelog. If there is something in for you, update. Otherwise keep your version as long as no leaks are found in them. The answer to a previous post of mine about Tomcat 4.1.31 told me that is was a 'maintenance release', if this is the case then should all 4.1.x administrators have updated to it? AFAIK 4.1.x is in maintainance mode and no new features are added to it. Development takes place in 5.0.x and 5.5.x, mostly the later which is still in alpha/beta stages. About updates see my statement above. Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Embedded tomcat
Hi Is there any place where I can find information about embedded tomcat? I mean beyond the docs - Examples and such? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: Upgrading for the sake of it?
If you're convinced that the conditions such as your code, your requirements, the status of the underlying system, and/or the security of all the pieces involved (and there are no guarantees that someone won't find a security hole in one of them this afternoon) are never going to change then going with what you know is probably the path of least resistance. There are lots of mainframes out there with apps written in the 70s and 80s that are chugging along just fine. If not, it's easier to make incremental changes with each stable release than to upgrade across several major releases. At a minimum, I would try installing the latest stable releases and test your apps on them. If your apps are spec compliant, you will probably find that there is very little to do, if anything, to get them running on the newer releases. Releases come fast in open source projects so you need to figure out what kind of an upgrade schedule best suits your business model. The acquisition of a new server sounds like a great opportunity to consider upgrading the whole stack, especially if it means having the opportunity to run the two in parallel for a while before going live with it. On Fri, 2004-10-22 at 06:49, Andoni wrote: Hello, My questions here are fairly broad and open to opinion, I have not the experience to be dealing with these scenarios though so if you could help me it would be much appreciated. I do not mean to be inflammatory so if it is please ignore. Recently there was a post asking why people are still using Tomcat 4 instead of upgrading to version 5. I have been using Tomcat 4.0.4/Apache 1.3.26 for years and only recently upgraded Tomcat to 4.1.24. Now I am in a position I have never had before. I have been given a Windows server to manage and free reign over what to put onto it. So is the best advice to go with what I know best (and can be sure my websites run under) and install old versions. Or to go with the very latest of everything. If so then is it a good idea to keep updating Tomcat and Apache (httpd) or should I get one thing working and stick with what works? The answer to a previous post of mine about Tomcat 4.1.31 told me that is was a 'maintenance release', if this is the case then should all 4.1.x administrators have updated to it? Thanks, Andoni. - 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: Mulitple JVMs
On Fri, Oct 22, 2004 at 08:58:10AM +0100, Chris Ward wrote: : I know I could have a separate Tomcat on a different (or the same) : server dedicated to running the new stuff, but I wondered if anyone : has any advice on this. You may want to search the archives -- this question appears frequently. The short story: search the Tomcat docs for $CATALINA_HOME vs $CATALINA_BASE. That lets you setup separate Tomcat instances (distinct JVMs, server.xml, etc.) but have only one set of Tomcat binaries. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jasper error compiling jsp
I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message-From: Sarath PS [mailto:[EMAIL PROTECTED]Sent: 22 October 2004 11:06To: Tomcat Users ListSubject: Re: jasper error compiling jspThanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards,Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED]] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev "Sarath PS" [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in
RE: Upgrading for the sake of it?
Steffen Heil wrote: - Tomcat 5 uses newer specifications than 4.1.x. does. Your App MIGHT be incompatible. Yes unexpected problems can happen. An example of this is the config files. V4 supports the v2.3 of the servlet spec, V5 supports v2.4 as well as v2.3. If you use v2.4 features, make sure that your config file headers are not v2.3, otherwise tomcat will ignore the new 2.4 features (or throw an exception). Note that the web.xml files that ship with the standard v5 installers contain a mix of 2.3 and 2.4 spec files. This took me days to spot before I realised what was happening! Having said that I'm not trying to put you off. Just wanted to give you an example, to make you aware of the unexpected things that MIGHT happen if you decide to upgrade :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jasper error compiling jsp
then alan, could you please give me any hints ? The library i'm about to use is proprietory and i don't have the source code. So refactoring the classes is not possible! Flisch, Alan wrote: I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- *From:* Sarath PS [mailto:[EMAIL PROTECTED] *Sent:* 22 October 2004 11:06 *To:* Tomcat Users List *Subject:* Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and
Upgrading for the sake of it?
Hi, Running the two in parallel is not something I had thought of. I could run TC4 and TC5 and just switch back if an issue arises in testing (or production) of TC5. Andoni. - Original Message - From: Ben Souther [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Friday, October 22, 2004 12:23 PM Subject: Re: Upgrading for the sake of it? If you're convinced that the conditions such as your code, your requirements, the status of the underlying system, and/or the security of all the pieces involved (and there are no guarantees that someone won't find a security hole in one of them this afternoon) are never going to change then going with what you know is probably the path of least resistance. There are lots of mainframes out there with apps written in the 70s and 80s that are chugging along just fine. If not, it's easier to make incremental changes with each stable release than to upgrade across several major releases. At a minimum, I would try installing the latest stable releases and test your apps on them. If your apps are spec compliant, you will probably find that there is very little to do, if anything, to get them running on the newer releases. Releases come fast in open source projects so you need to figure out what kind of an upgrade schedule best suits your business model. The acquisition of a new server sounds like a great opportunity to consider upgrading the whole stack, especially if it means having the opportunity to run the two in parallel for a while before going live with it. On Fri, 2004-10-22 at 06:49, Andoni wrote: Hello, My questions here are fairly broad and open to opinion, I have not the experience to be dealing with these scenarios though so if you could help me it would be much appreciated. I do not mean to be inflammatory so if it is please ignore. Recently there was a post asking why people are still using Tomcat 4 instead of upgrading to version 5. I have been using Tomcat 4.0.4/Apache 1.3.26 for years and only recently upgraded Tomcat to 4.1.24. Now I am in a position I have never had before. I have been given a Windows server to manage and free reign over what to put onto it. So is the best advice to go with what I know best (and can be sure my websites run under) and install old versions. Or to go with the very latest of everything. If so then is it a good idea to keep updating Tomcat and Apache (httpd) or should I get one thing working and stick with what works? The answer to a previous post of mine about Tomcat 4.1.31 told me that is was a 'maintenance release', if this is the case then should all 4.1.x administrators have updated to it? Thanks, Andoni. - 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: jasper error compiling jsp
Scroll down to point 8 under Incompatibilities Between Java 2 Platform, Standard Edition, v1.4.0 and v1.3, read the second bullet. This confirms Alan's comments. http://forum.java.sun.com/thread.jsp?thread=466368 http://forum.java.sun.com/thread.jsp?thread=466368forum=31message=2145193 forum=31message=2145193 -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:23 To: Tomcat Users List Subject: RE: jasper error compiling jsp I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 11:06 To: Tomcat Users List Subject: Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp .j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 15 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 74 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] _ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. _ - To
Webapp don't start after shutdown
Hi! I having problem with tomcat not starting web-apps after a shutdown. I deploy my web-app through the manager web-interface. I try the web-app and it works perfectly. Then I run the bin/shutdown.sh script and bin/startup.sh I attempt to access the web-app and only get 404 errors. I look in the manager and it says the web-app is stopped. I try to start the web-app but if fails. The logfile says that either the file doesn't exist or isn't readable but when I look the files are there. It is the same user that runs the show so it seems kind of strange if tomcat doesn't have rights enough to read files it has created by itself. I'm running tomcat 5.0.28 on a Mac OS X server. Please help me with this, it is rather urgent! Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: split mod_jk2 configuration file for vhosts
Run a web service in the other JVM? -Original Message- From: Matteo Turra [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 4:32 AM To: Tomcat Users List Subject: split mod_jk2 configuration file for vhosts I tell apache httpd where is the workers2.properties file with JkSet config.file /etc/httpd/conf/workers2.properties Now I have multiple ip virtual host webapps and each one has a file included in httpd.conf with Include /etc/httpd/conf/vhosts/*.conf How can I configure Jk2 configuration file (workers2.properties) for each host separately? Can I use JkSet config.file /etc/httpd/conf/workers2.properties in each vhosts/xxx.conf file even if I have only one instance of httpd? Thanks, Matteo Turra - 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: jasper error compiling jsp
Sorry - ignore my last post, it contained the wrong link. Try this instead. Go to point 8, second bullet: http://java.sun.com/j2se/1.4/compatibility.html#incompatibilities1.4 -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:55 To: 'Tomcat Users List' Subject: RE: jasper error compiling jsp Scroll down to point 8 under Incompatibilities Between Java 2 Platform, Standard Edition, v1.4.0 and v1.3, read the second bullet. This confirms Alan's comments. http://forum.java.sun.com/thread.jsp?thread=466368 http://forum.java.sun.com/thread.jsp?thread=466368forum=31m essage=2145193 forum=31message=2145193 -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 12:23 To: Tomcat Users List Subject: RE: jasper error compiling jsp I wouldn't think so. The changes necessary to the app are likely to be pretty trivial, although you never know what else might be lurking in there. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 11:06 To: Tomcat Users List Subject: Re: jasper error compiling jsp Thanks alan, So you say it's not possible to run the app in my current configuration ? (tomcat 4, j2sdk1.4.2_03) regards, Sarath Flisch, Alan wrote: It's not Tomcat that is objecting, its javac, the java compiler. Perhaps some other version of the compiler was more forgiving at some point. I think getting the application fixed somehow, is your best option. -Original Message- From: Sarath PS [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 09:43 To: Tomcat Users List Subject: Re: jasper error compiling jsp hi, Thanks for the replay . But this not an application i develop. I just want to deploy it on my tomcat. It seems the app is developed for some other container. Is there any work around to run it on tomcat ? regards, Sarath PS Roland Carlsson wrote: Hi! I'm not sure but I don't think you can import classes from the root-level. Try to create a package and then import mypackage.Account; Or import mypackage.*; Regards Roland Carlsson Den 04-10-22 09.03, skrev Sarath PS mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: hi all , I get an an error like this. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache /jsp/index_jsp .j ava:6: '.' expected import Account; ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa ultErrorHandle r. java:83) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis patcher.java:3 15 ) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) org.apache.jasper.compiler.Compiler.compile(Compiler.java:463) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:5 11 ) org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 74 ) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at line 6 of index_jsp.java there is an import statement like this. import Account; The class Account is very much there. I tried to put it in WEB-INF/classes, WEB-INF/lib (after making a jar) But nothing worked. What must be wrong ? thanks in advance, Sar * * - 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] _ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly
Performance Tuning [Apache2 + JK2 + Tomcat]
Hi, does anybody know which parameters are involved in tuning the performance of the configuration in subject? And witch tools use to monitor where are bottlenecks? How can I monitor how many request are queued on apache and how many on tomcat? Thanks, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with the JRE install
Hi remy, In fact the tomcat version is 5.0.18., and the JRE 1.4.2_04 doesnt install on this PC, I dont understand why ? do you know if the JRE install is instable and what can I do ? -Message dorigine- De: Remy Maucherat [mailto:[EMAIL PROTECTED] Date: jeudi 21 octobre 2004 19:08 À: Tomcat Users List Objet: Re: Problem with the JRE install On Thu, 21 Oct 2004 18:25:37 +0200, Hauberoche, Patrick [EMAIL PROTECTED] wrote: Hi, I have a problem with the JRE install and the consequence is TOMCAT doesn't find the path. I don't understand why on 6 PC it works and on 2 PC it doesn't work, the OS is NT 4 pack 6. The error message for one PC is : Error 1327.invalid Drive The error message for the second PC is : internal error 2755.1631, C:\winnt\profiles\a44588\local settings\application data\'7148F046-6813-11D6-A77B-00B0D0142040}\java 2 Runtime environment, se v 1.4.2_04.msi Any idea? Which version of Tomcat are you trying to install ? You should be able to specify the JRE path manually if the installer doesn't find it. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: performance difference between tomcat 5.0 and 5.5?
I am curious if there is any performance improvements over Tomcat 5.5 vs Tomcat 5.0, using jdk1.5. We are in the process of doing testing to prepare for our December upgrades and I don't know if we should try to move to Tomcat 5.5 this year or wait till summer. The main webapp is a webservice that will be used constantly, and needs to be fast. Thank you. -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with the JRE install
Tomcat 5.0 requires a full j2sdk, not just a JRE (unless you're not using JSP, or unless your JSPs are precompiled) On Fri, 2004-10-22 at 08:28, Hauberoche, Patrick wrote: Hi remy, In fact the tomcat version is 5.0.18., and the JRE 1.4.2_04 doesnt install on this PC, I dont understand why ? do you know if the JRE install is instable and what can I do ? -Message dorigine- De: Remy Maucherat [mailto:[EMAIL PROTECTED] Date: jeudi 21 octobre 2004 19:08 : Tomcat Users List Objet: Re: Problem with the JRE install On Thu, 21 Oct 2004 18:25:37 +0200, Hauberoche, Patrick [EMAIL PROTECTED] wrote: Hi, I have a problem with the JRE install and the consequence is TOMCAT doesn't find the path. I don't understand why on 6 PC it works and on 2 PC it doesn't work, the OS is NT 4 pack 6. The error message for one PC is : Error 1327.invalid Drive The error message for the second PC is : internal error 2755.1631, C:\winnt\profiles\a44588\local settings\application data\'7148F046-6813-11D6-A77B-00B0D0142040}\java 2 Runtime environment, se v 1.4.2_04.msi Any idea? Which version of Tomcat are you trying to install ? You should be able to specify the JRE path manually if the installer doesn't find it. -- x Rmy Maucherat Developer Consultant JBoss Group (Europe) SRL x - 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: Environment entries question
Hi, I think there's been an open bugzilla issue for this for months. It's such a marginal use-case that (as evidenced by the fact no one's done it for months) no one seems to care, given the two workarounds in your post. So if you really care, maybe you could submit a patch? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Igor [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:25 AM To: [EMAIL PROTECTED] Subject: Environment entries question Hello! I created environment entry in web.xml: env-entry env-entry-nametest/env-entry-name env-entry-valuesimple test/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry This entry is used in the following way: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); String value = (String) envCtx.lookup(test); Then I tried to change this environment entry using admin application. It was changed correctly in admin application, but code, listed above, returns old value. I know two ways of how to make this code know of new value: 1. Change it in web.xml and restart tomcat 2. Change it in admin application and reload corresponding context I do not like both of these ways. Could somebody please tell me - is there a way of changing environment entry value, so that code, described above will see new value? Thank you in advance, Igor 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: jakarta-tomcat-4.1.31 fails to render the example JSPs
Hi, I forgot you were still on Tomcat 4.1, not 5.x. In 4.x, which implements Servlet Spec 2.3, the servlet and JSP APIs are in the same Jar (servlet.jar). So make sure there's only one of those, and ignore my comment on jsp-api.jar/jsp.jar. And upgrade to 5.x when you get a chance ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Rob Tanner [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 6:41 PM To: Shapira, Yoav Cc: Tomcat Users List Subject: RE: jakarta-tomcat-4.1.31 fails to render the example JSPs --On Thursday, October 21, 2004 10:03:17 AM -0400 Shapira, Yoav [EMAIL PROTECTED] wrote: This usually indicates multiple versions of either the JSP APIs or the Jasper classes on the server's runtime classpath. I hope when you upgraded your server you did an installation to a clean directory, not an overwrite of the old directory. If you did the latter, search it for jsp.jar and jsp-api.jar and make sure only one is present: the latest. Same thing for the Jasper jars (jasper-compiler, jasper-runtime, etc.). Yoav Yes, the install was into a clean directory. There is only one each of the two jasper jars, and no jsp.jar or jsp-api.jar in the installation directory (or in the download zip file jakarta-tomcat-4.1.31.zip) Are those two jars supposed to be included?? The only place I even find the jsp jars is in the Eclipse and MyEclipse toolkits. Eclipse is an IDE, and I'm bringing up tomcat (at least initially) outside of the IDE. Are these two jsp jars something I should have and so I should go get them seperately from the tomcat distro? And where should they go? Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR - 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: performance difference between tomcat 5.0 and 5.5?
Hi, Yes, there are performance difference. Yoav Shapira http://www.yoavshapira.com -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 8:34 AM To: Tomcat Users List Subject: re: performance difference between tomcat 5.0 and 5.5? I am curious if there is any performance improvements over Tomcat 5.5 vs Tomcat 5.0, using jdk1.5. We are in the process of doing testing to prepare for our December upgrades and I don't know if we should try to move to Tomcat 5.5 this year or wait till summer. The main webapp is a webservice that will be used constantly, and needs to be fast. Thank you. -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] - 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: Tomcat 5.5 and ClassNotFoundException:org.apache.catalina.logger.FileLogger
Hi, Did you use a Tomcat 5.0 server.xml or context XML file? The Logger elemnt is history, doesn't exist in Tomcat 5.5. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Martin Grotzke [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 6:49 PM To: Tomcat Users List Subject: Tomcat 5.5 and ClassNotFoundException:org.apache.catalina.logger.FileLogger hi all, i just wanted to test tomcat 5.5. beta, so i downloaded the binary (jakarta-tomcat-5.5.3.tar.gz), set classpath to the jdk 1.5 and ran `./catalina.sh run`. the output i got does not look really good: Using CATALINA_BASE: /opt/jakarta-tomcat-5.5.3 Using CATALINA_HOME: /opt/jakarta-tomcat-5.5.3 Using CATALINA_TMPDIR: /opt/jakarta-tomcat-5.5.3/temp Using JAVA_HOME: /usr/lib/jvm/java-1.5.0 Oct 22, 2004 12:35:35 AM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) i took a look into jars in $CATALINA_HOME/server/lib, but none of these contained the FileLogger... the tomcat 5.0.27 installation has a catalina.jar in server/lib that contains this class, the catalina.jar of tomcat 5.5 does not. am i doing anything wrong? any help appreciated, thanx very much, martin 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: Problem with the JRE install
Hi, ben Yes the jsp are already precompiled, but do you know the mean of the error message see email below -Message dorigine- De: Ben Souther [mailto:[EMAIL PROTECTED] Date: vendredi 22 octobre 2004 14:37 À: Tomcat Users List Objet: RE: Problem with the JRE install Tomcat 5.0 requires a full j2sdk, not just a JRE (unless you're not using JSP, or unless your JSPs are precompiled) On Fri, 2004-10-22 at 08:28, Hauberoche, Patrick wrote: Hi remy, In fact the tomcat version is 5.0.18., and the JRE 1.4.2_04 doesnt install on this PC, I dont understand why ? do you know if the JRE install is instable and what can I do ? -Message dorigine- De: Remy Maucherat [mailto:[EMAIL PROTECTED] Date: jeudi 21 octobre 2004 19:08 À: Tomcat Users List Objet: Re: Problem with the JRE install On Thu, 21 Oct 2004 18:25:37 +0200, Hauberoche, Patrick [EMAIL PROTECTED] wrote: Hi, I have a problem with the JRE install and the consequence is TOMCAT doesn't find the path. I don't understand why on 6 PC it works and on 2 PC it doesn't work, the OS is NT 4 pack 6. The error message for one PC is : Error 1327.invalid Drive The error message for the second PC is : internal error 2755.1631, C:\winnt\profiles\a44588\local settings\application data\'7148F046-6813-11D6-A77B-00B0D0142040}\java 2 Runtime environment, se v 1.4.2_04.msi Any idea? Which version of Tomcat are you trying to install ? You should be able to specify the JRE path manually if the installer doesn't find it. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - 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]
[OT]: performance difference between tomcat 5.0 and 5.5?
The main webapp is a webservice that will be used constantly, and needs to be fast. he he, on the joking side, one could argue that for a webservice, how can it be fast, given that XML/SOAP adds not only extra bytes to transfer over raw data but adds parsing overhead in your system. If you transported raw data over TCP (or HTTP) your webservice would probably be faster, but I know, we all fall into the pressure of the standards, even though they are inherently designed to be slower than the simple solution. have a great day! Filip - Original Message - From: James Black [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 22, 2004 7:34 AM Subject: re: performance difference between tomcat 5.0 and 5.5? I am curious if there is any performance improvements over Tomcat 5.5 vs Tomcat 5.0, using jdk1.5. We are in the process of doing testing to prepare for our December upgrades and I don't know if we should try to move to Tomcat 5.5 this year or wait till summer. The main webapp is a webservice that will be used constantly, and needs to be fast. Thank you. -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[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: Mulitple JVMs
Hi, One webapp can only run in one JVM. But if you are splitting your webapp, you can use the CATALINA_BASE/CATALINA_HOME approach QM referred to, or have an entirely new Tomcat instance. It doesn't make that big a difference. Consider also making the rest of your webapp run in the new JVM, so that you stay in harmony. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Chris Ward [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:58 AM To: Tomcat Users List Subject: Mulitple JVMs Dear All, Due to a version upgrade of some third-party component accessed through J-Integra (Java/COM bridge) I've been informed that I need to run the new version in a different JVM to the rest of my webapp (the earlier versions lived in harmony). I know I could have a separate Tomcat on a different (or the same) server dedicated to running the new stuff, but I wondered if anyone has any advice on this. Many thanks, Chris - 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: Testing/Development environment setups..
To build on what others have said... Several things I'd recommend: 1) Automate your testing and do it up front. Project managers who still think in terms of the waterfall approach to development tend to place testing at the end of the project. Inevitably timelines get tight and testing gets cut. That's called short term gain for long term loss, because automated tests save SO much time when making changes in the various environments. A project that doesn't have automated tests will have to do days or weeks of manual testing when a change comes through (upgrading to a new version of Tomcat for a security patch, for example). 2) Automate, automate, automate. This goes beyond testing to all parts of your development, deployment, and promotion (moving from dev to test to staging to production) process. I would recommend using a good scripting language that has strong integration with Java. Ant has the strong integration but is a bad scripting language (in large part because it's a build tool). Jython or the new kid on the block Groovy, perhaps making calls to Ant classes, are better choices for automating your deployment and promotion processes. The more repeatable and automated they are, the less chance for human error, the less chance for downtime in production. 3) Production should have a maintenance window, a time when users know there may be changes going in. A window brings consistency to upgrades and eases the communication to the users as to when a particular change will go in. For example, some of our production servers have a maintenance window for 6 AM - 7 AM on Saturday morning, because that's the period of least use. Any changes to those servers go in during that time period, unless it's an absolute emergency (in which case there's a whole alternate approval/communication/notification process to follow). Hope those help. Kyle _ Kyle Adams | Java Developer | Gordon Food Service | 616-717-6162 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mulitple JVMs
Hi, One webapp can only run in one JVM. But if you are splitting your webapp, you can use the CATALINA_BASE/CATALINA_HOME approach QM referred to, or have an entirely new Tomcat instance. It doesn't make that big a difference. That's is what I thought, but thanks for verifying it. Consider also making the rest of your webapp run in the new JVM, so that you stay in harmony. Ah, now, there's the rub. One of my webapps uses the COM/Java bridge to talk to a COM app (Bloomberg) on a REMOTE machine and requires the bridge to be run in DCOM mode. Something in the *new* version of my other COM componenet (Monis) apparently dictates use of NATIVE mode for the bridge. This COM app is on the same machine as Tomcat. Before the new version, it would happily run in non-native mode. The folks who produce the bridge code confirm what I'd found in extensive tests... Unfortunately, J-Integra is not designed to run in both native mode and DCOM mode within the same JVM. My suggestion is to alter your architecture such that Bloomberg and Monis are accessed from separate JVM instances. So the most painless thing would be to install Bloomberg on all the machines that will be running Tomcat. Just so you see why I asked the question. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why the ThreadPool is empty if traffic is so low? (block with Tomcat 4.1.24-LE on linux)
Hi, It seems like connections aren't being closed properly. Some RedHat users have reported a need to set the LD_ASSUME_KERNEL parameter such that NPTL is not used and threading problems go away. I myself don't have experience with that, but if you search this list's archives for LD_ASSUME_KERNEL you'll see what I'm talking about. I'm sorry to bother again but I was wondering whether any of you has some feedback about the following problem. Don't worry/apologize, you're not bothering anyone. Ask away. If someone doesn't feel like answering, they won't ;) Examining the application log I only see a few exceptions caused by an RDBMS shutdown. I am asking myself if this can be the cause of zombie threads, but it seems strange to me. It could be, depending on your driver. If you're using connection pooling such as via DBCP, try adding a validation query to the pool's configuration. Do you have any ideas? I may increase ThreadPool dimension, but when the block occurred traffic was low and it doesn't seem to justify any change on the configuration side. Is it a Tomcat issue? We are planning to upgrade to 4.1.30 very soon, but could it be worth to go towards 4.1.31 or 5.x.y (not really planned yet)? The block did not occur because traffic was high: I bet the hung connections accumulated over a long period: possibly even the six months you mentioned. It's definitely worth your time to test with Tomcat 5.0.28. Yoav 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: Tomcat 5.5 and ClassNotFoundException:org.apache.catalina.logger.FileLogger
On Fri, 2004-10-22 at 15:17, Shapira, Yoav wrote: Hi, Did you use a Tomcat 5.0 server.xml or context XML file? The Logger elemnt is history, doesn't exist in Tomcat 5.5. D'oh, my fault. I copied my old (tc-5.0.27) server.xml to tomcat 5.5 conf directory, and did not realize to test the original one... now it works really great! seems to be faster than tc-5.0.27 (running with jdk 1.5, too)... thanx a lot, martin Yoav Shapira http://www.yoavshapira.com -Original Message- From: Martin Grotzke [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 6:49 PM To: Tomcat Users List Subject: Tomcat 5.5 and ClassNotFoundException:org.apache.catalina.logger.FileLogger hi all, i just wanted to test tomcat 5.5. beta, so i downloaded the binary (jakarta-tomcat-5.5.3.tar.gz), set classpath to the jdk 1.5 and ran `./catalina.sh run`. the output i got does not look really good: Using CATALINA_BASE: /opt/jakarta-tomcat-5.5.3 Using CATALINA_HOME: /opt/jakarta-tomcat-5.5.3 Using CATALINA_TMPDIR: /opt/jakarta-tomcat-5.5.3/temp Using JAVA_HOME: /usr/lib/jvm/java-1.5.0 Oct 22, 2004 12:35:35 AM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) i took a look into jars in $CATALINA_HOME/server/lib, but none of these contained the FileLogger... the tomcat 5.0.27 installation has a catalina.jar in server/lib that contains this class, the catalina.jar of tomcat 5.5 does not. am i doing anything wrong? any help appreciated, thanx very much, martin 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] signature.asc Description: This is a digitally signed message part
Re: Taglib loading classes of web application
Instead of checking the type of class by doing getClass().getName() I would recommend using If (myclass instanceof com.name.webapp.entities.MetaDataEntity){ ... } else { ... } This is better because you can check the presence of a class at compile time instead of runtime when you do things like Class.forName(className) -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/21/04 7:49 PM, Michael Wille [EMAIL PROTECTED] wrote: Hello all, I have a strange question. I need to load a class that is inside a packkage of a web application from within a taglib that the web application is using within its context. Let me try and explain this: I have a bunch of entities in the package: com.name.webapp.entities. In this package, there are two base classes: Entity and MetaDataEntity. There are quite a few entity classes that are derived from these two clases. I've setup a taglib to take an array of either Entity or MetaDataEntity from the request's attribute map and loop through the array do some processing. The problem I have is that different processing needs to be done if the array is of a type derived from Entity or derived from MetaDataEntity. To do this, I get the first element in the array and get that object's superclass. So the code I have in the taglib to discover the super class is: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); Object entity = entities[0]; className = entity.getClass().getSuperclass().getName(); if(className.startsWith(com.name.webapp.entities.Entity)) // do one thing... else if(className.startsWith(com.name.webapp.entities.MetaDataEntity)) // do another... else // throw exception. (realizing that this will only work with direct descendants of the 2 base classes) Which works fine if the array is not empty. However, when entities.length == 0, I have to use a different method: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); // class name from the array is [Lcom.name.webapp.entities.entityname, get rid of the [L... className = entities.getClass().getName().substring(2); className = Class.forName(className).getSuperclass().getName(); However, I get a ClassNotFoundException. I believe that is because the taglib is using a different class loader than my webapp, which makes sense. But is there any other way (short of creating my own class loader for the webapp and accessing that loader from the taglib) to do this? I'd rather avoid a custom classloader at all costs. Thanks for any advice. -Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Taglib loading classes of web application
Hi, Yeah, using instanceof or isAssignableFrom are much better approaches for this. You cannot simply trim the [L from an array class name and get a valid class name: that's not guaranteed by the JLS and it's cruising for a bruising, as you've already found out. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 9:52 AM To: Tomcat Users List Subject: Re: Taglib loading classes of web application Instead of checking the type of class by doing getClass().getName() I would recommend using If (myclass instanceof com.name.webapp.entities.MetaDataEntity){ ... } else { ... } This is better because you can check the presence of a class at compile time instead of runtime when you do things like Class.forName(className) -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/21/04 7:49 PM, Michael Wille [EMAIL PROTECTED] wrote: Hello all, I have a strange question. I need to load a class that is inside a packkage of a web application from within a taglib that the web application is using within its context. Let me try and explain this: I have a bunch of entities in the package: com.name.webapp.entities. In this package, there are two base classes: Entity and MetaDataEntity. There are quite a few entity classes that are derived from these two clases. I've setup a taglib to take an array of either Entity or MetaDataEntity from the request's attribute map and loop through the array do some processing. The problem I have is that different processing needs to be done if the array is of a type derived from Entity or derived from MetaDataEntity. To do this, I get the first element in the array and get that object's superclass. So the code I have in the taglib to discover the super class is: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); Object entity = entities[0]; className = entity.getClass().getSuperclass().getName(); if(className.startsWith(com.name.webapp.entities.Entity)) // do one thing... else if(className.startsWith(com.name.webapp.entities.MetaDataEntity)) // do another... else // throw exception. (realizing that this will only work with direct descendants of the 2 base classes) Which works fine if the array is not empty. However, when entities.length == 0, I have to use a different method: Object entities[] = (Object []) pageContext.getRequest().getAttribute(list); // class name from the array is [Lcom.name.webapp.entities.entityname, get rid of the [L... className = entities.getClass().getName().substring(2); className = Class.forName(className).getSuperclass().getName(); However, I get a ClassNotFoundException. I believe that is because the taglib is using a different class loader than my webapp, which makes sense. But is there any other way (short of creating my own class loader for the webapp and accessing that loader from the taglib) to do this? I'd rather avoid a custom classloader at all costs. Thanks for any advice. -Mike - 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: Webapp don't start after shutdown
Hi, Then I run the bin/shutdown.sh script and bin/startup.sh Are you sure shutdown is completed properly, i.e. the JVM process is gone? I attempt to access the web-app and only get 404 errors. Are there any errors or startup? If so, please post the relevant logs and/or configuration information. Is the context information for your deployed webapp saved correctly? Yoav 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: Embedded tomcat
Hi, See the Embedded class itself: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s hare/org/apache/catalina/startup/Embedded.java?rev=1.24view=markup. It's fairly self-evident. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 7:17 AM To: 'Tomcat Users List' Subject: Embedded tomcat Hi Is there any place where I can find information about embedded tomcat? I mean beyond the docs - Examples and such? Regards, Steffen 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: Webapp don't start after shutdown
Also, have you tried starting it from Manager? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 9:58 AM To: Tomcat Users List Subject: RE: Webapp don't start after shutdown Hi, Then I run the bin/shutdown.sh script and bin/startup.sh Are you sure shutdown is completed properly, i.e. the JVM process is gone? I attempt to access the web-app and only get 404 errors. Are there any errors or startup? If so, please post the relevant logs and/or configuration information. Is the context information for your deployed webapp saved correctly? Yoav 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] !DSPAM:4179121095381515284706!
RE: adding HTTP headers for all responses in web application
If your pattern is /*.jsp, then your filter applies to all jsps. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 1:19 AM To: Tomcat Users List Subject: RE: adding HTTP headers for all responses in web application question: will the filter applied to response for custom error pages defined in web.xml: example: error-page exception-typeMyException/exception-type location/errorPage.jsp/location /error-page --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, There are filters that ship with Tomcat's example webapp. Beside being the best how-to possible, there's actually one that does what you want for character encoding, so it's a trivial copy/paste to suit it to whatever headers you need. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steven J.Owens [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:10 PM To: Tomcat Users List Subject: Re: adding HTTP headers for all responses in web application On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote: Search the archives, I believe Tim Funk has actually written and published one Not sure though. It's pretty straight-forward. This is the first filter I ever coded, it was a snap. I make no guarantees that the particular headers are exactly what you need (browser caching is annoyingly difficult to disable). -config - filter filter-nameNoCacheFilter/filter-name filter-classclass.path.to.NoCacheFilter/filter-class /filter filter-mapping filter-nameNoCacheFilter/filter-name url-pattern/*/url-pattern /filter-mapping -source - import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import javax.servlet.ServletException; public class NoCacheFilter implements Filter { public void init(FilterConfig config) throws ServletException { this.filterConfig = config; } private FilterConfig filterConfig; public FilterConfig getFilterConfig() { return this.filterConfig; } public void setFilterConfig (FilterConfig filterConfig) { this.filterConfig = filterConfig; } public void destroy() { this.filterConfig = null; } public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain) { try { if (response instanceof HttpServletResponse) { HttpServletResponse httpresponse = (HttpServletResponse)response ; // Set the Cache-Control and Expires header httpresponse.setHeader(Cache-Control, no-cache) ; httpresponse.setHeader(Expires, 0) ; } chain.doFilter (request, response); } catch (IOException e) { System.out.println (IOException in NoCacheFilter); e.printStackTrace() ; } catch (ServletException e) { System.out.println (ServletException in NoCacheFilter); e.printStackTrace() ; } } } -- -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - 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] ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: adding HTTP headers for all responses in web application
Actually the pattern is *.jsp - not /*.jsp -Tim Phillip Qin wrote: If your pattern is /*.jsp, then your filter applies to all jsps. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 1:19 AM To: Tomcat Users List Subject: RE: adding HTTP headers for all responses in web application question: will the filter applied to response for custom error pages defined in web.xml: example: error-page exception-typeMyException/exception-type location/errorPage.jsp/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Premature EOF error.
Hi All, I am using following environment. Web Server: Apache Tomcat on Sun Solaris Database: Oracle 8.1.7 on Sun Solaris I have batch process running on the web server. The process reads the xml from url and then parse the xml and insert data in the database. I am getting following error. ERROR importRandAllData : The following error occurred: java.io.IOException: Premature EOF at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:540) at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:584) at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:671) at java.io.FilterInputStream.read(FilterInputStream.java:111) at oracle.xml.parser.v2.XMLByteReader.fillByteBuffer(XMLByteReader.java:354) at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:142) at oracle.xml.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:448) at oracle.xml.parser.v2.XMLReader.fillBuffer(XMLReader.java:2026) at oracle.xml.parser.v2.XMLReader.skipWhiteSpace(XMLReader.java:1805) at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1235) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1088) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:293) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:260) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201) at com.gsk.ramos.ctsweb.RandAllImport.getAllStudiesFromURL(RandAllImport.java:1305) at com.gsk.ramos.ctsweb.DBAccess.importRandAllData(DBAccess.java:14020) at com.gsk.ramos.ctsweb.Gateway.service(Gateway.java:3316) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:356) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:536) Any inputs will be highly appreciated. Sachin Zope Preclinical IT Sr. Java Developer 610-270-5863 (Work) 610-269-2243 (Home)
Re: Including Zip functionality in a filter...
HI Tim // Don't worry about writing a compression filter - tomcat comes with one on its HTTP connector. // Or if your using apache - use mod_gzip. I here the latest IIS also has compression support. Thanks ALOT for the suggestion. We are just using Tomcat 4.1 and Tomcat 5, is this still possible. Could you send me an example how to use the HTTP Connector. I would be VERY grateful.. regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Including Zip functionality in a filter...
Hi, // Don't worry about writing a compression filter - tomcat comes with one on its HTTP connector. Thanks ALOT for the suggestion. We are just using Tomcat 4.1 and Tomcat 5, is this still possible. Could you send me an example how to use the HTTP Connector. Look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html, the compression attribute is covered well. Yoav 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: adding HTTP headers for all responses in web application
Why this url-pattern is always un-nature? I always have difficulties reading filter section in servlet spec 2.3. Couldn't we simply use /*.jsp in the next release of servlet, i.e. servlet xp? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 10:32 AM To: Tomcat Users List Subject: Re: adding HTTP headers for all responses in web application Actually the pattern is *.jsp - not /*.jsp -Tim Phillip Qin wrote: If your pattern is /*.jsp, then your filter applies to all jsps. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 1:19 AM To: Tomcat Users List Subject: RE: adding HTTP headers for all responses in web application question: will the filter applied to response for custom error pages defined in web.xml: example: error-page exception-typeMyException/exception-type location/errorPage.jsp/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:417919e7101532314120084!
RE: adding HTTP headers for all responses in web application
Hi, Contact the JSR154 Expert Group with your wishes and concerns. This is not up to us. (And I personally like the available url-patterns, but then again my tolerance for adding hacky stuff for user-friendliness has really dropped recently) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:18 AM To: 'Tomcat Users List' Subject: RE: adding HTTP headers for all responses in web application Why this url-pattern is always un-nature? I always have difficulties reading filter section in servlet spec 2.3. Couldn't we simply use /*.jsp in the next release of servlet, i.e. servlet xp? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 10:32 AM To: Tomcat Users List Subject: Re: adding HTTP headers for all responses in web application Actually the pattern is *.jsp - not /*.jsp -Tim Phillip Qin wrote: If your pattern is /*.jsp, then your filter applies to all jsps. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 1:19 AM To: Tomcat Users List Subject: RE: adding HTTP headers for all responses in web application question: will the filter applied to response for custom error pages defined in web.xml: example: error-page exception-typeMyException/exception-type location/errorPage.jsp/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:417919e7101532314120084! 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]
tomcat 4.1.31 problem + server stop responding most of the time
Hello guy, I have this problem since I have installed Tomcat 4.1.31. It usually stop responding and on restart the tomcat it works fine. Any help will be really appreciated. Regards ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding HTTP headers for all responses in web application
You can prefix map or extension map - not both. Since regexs are a part of 1.4 JDK - I am hoping that regexes may be used for URL mapping in the next spec. (Of course - doing so can also kill performance too) If you need real flexibility now - I have some servlet utilities that where you can create a filter which conditionally runs based on an EL expression. http://funkman.home.comcast.net/servletutils-0.2/ -Tim Phillip Qin wrote: Why this url-pattern is always un-nature? I always have difficulties reading filter section in servlet spec 2.3. Couldn't we simply use /*.jsp in the next release of servlet, i.e. servlet xp? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 10:32 AM To: Tomcat Users List Subject: Re: adding HTTP headers for all responses in web application Actually the pattern is *.jsp - not /*.jsp -Tim Phillip Qin wrote: If your pattern is /*.jsp, then your filter applies to all jsps. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.31 problem + server stop responding most of the time
Hi, Here's a quick fix: go back to whatever you were using before ;) 4.1.31 is a maintenance release and given the status of the 4.x branch, you may be better off spending your time on upgrading to 5.x than you would be on troubleshooting 4.1.31. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.31 problem + server stop responding most of the time Hello guy, I have this problem since I have installed Tomcat 4.1.31. It usually stop responding and on restart the tomcat it works fine. Any help will be really appreciated. Regards ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - 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]
[Slightly OT] Simplifying deployment
I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same thing - sepecially since httpd is probably faster at displaying static content But I'm left with a question: My application is delivered to my TC instance as a .war file. It seems to me that I'd have to break out the static content into something else in order for httpd to be able to serve that content. Is that the best way to accomplish this? Or is there something better that I can do on a *nix installation? Thanks much! Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Archive out of synch?
Searching the tomcat-user mail archive, I find an article that looks to be of interest: Re: OutOfMemory on Tomcat webapp with awt use ( http://www.mail-archive.com/[EMAIL PROTECTED]/msg137239.html ) and when I click the link, a totally different article appears: RE: [Possible bug?] Context configurations and .WAR deployment It seems to be a problem with recent archive entries. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Slightly OT] Simplifying deployment
I would keep it simple less things to hack, break, update, etc.. Also I remember reading in tomcat's documentation that it serves static content almost or just as fast. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:12 AM To: Tomcat Users List Subject: [Slightly OT] Simplifying deployment I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same thing - sepecially since httpd is probably faster at displaying static content But I'm left with a question: My application is delivered to my TC instance as a .war file. It seems to me that I'd have to break out the static content into something else in order for httpd to be able to serve that content. Is that the best way to accomplish this? Or is there something better that I can do on a *nix installation? Thanks much! Bob - 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: Including Zip functionality in a filter...
I looked at the docs and added to my 8080 non-SSL Connector in server.xml (tomcat 4.1.3) the following: compression=force compressableMimeType=text/html,text/xml,*/* and when i send Accept-Encoding: compress, gzip, I still am not getting compression. java is adding this header: Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 any suggestions . thanks much Dave Been Shapira, Yoav [EMAIL PROTECTED] 10/22/2004 08:04 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Including Zip functionality in a filter... Hi, // Don't worry about writing a compression filter - tomcat comes with one on its HTTP connector. Thanks ALOT for the suggestion. We are just using Tomcat 4.1 and Tomcat 5, is this still possible. Could you send me an example how to use the HTTP Connector. Look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html, the compression attribute is covered well. Yoav 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: [Slightly OT] Simplifying deployment
Hi, Yup, Chad's right. About the worst thing you can do is add complexity because you *think* it might be better. You do see a lot of connector-related traffic on this list. That's because connector configuration is not easy. The specifics greatly depend on which connector version, which tomcat version, which front-end (Apache httpd, IIS, others), and what environment you're using. And for many systems, the initial effort as well as the long-term maintenance costs are simply not worth it. For many other systems, the performance gain is not worth it. So if you really have an itch to scratch, make sure you set up a proper test server and benchmark your app to see if performance is really gained. Since your app is all Java (no PHP, CGI, etc.), you have no other argument for putting a front-end with Tomcat. Only if performance gains are substantial, and you still feel the added complexity/fragility is worth it, then I'd go ahead to modify your production setup. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Chad Maniccia [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 12:19 PM To: Tomcat Users List Subject: RE: [Slightly OT] Simplifying deployment I would keep it simple less things to hack, break, update, etc.. Also I remember reading in tomcat's documentation that it serves static content almost or just as fast. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:12 AM To: Tomcat Users List Subject: [Slightly OT] Simplifying deployment I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same thing - sepecially since httpd is probably faster at displaying static content But I'm left with a question: My application is delivered to my TC instance as a .war file. It seems to me that I'd have to break out the static content into something else in order for httpd to be able to serve that content. Is that the best way to accomplish this? Or is there something better that I can do on a *nix installation? Thanks much! Bob - 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 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: Archive out of synch?
Hi, You might want to contact the archive site's admins, as we have nothing to do with it. There are numerous other archives as well, like MARC and GMane, which seem to work well all the time. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: Archive out of synch? Searching the tomcat-user mail archive, I find an article that looks to be of interest: Re: OutOfMemory on Tomcat webapp with awt use ( http://www.mail-archive.com/[EMAIL PROTECTED]/msg137239.ht ml ) and when I click the link, a totally different article appears: RE: [Possible bug?] Context configurations and .WAR deployment It seems to be a problem with recent archive entries. - 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: Including Zip functionality in a filter...
Hi, I looked at the docs and added to my 8080 non-SSL Connector in server.xml (tomcat 4.1.3) the following: compression=force compressableMimeType=text/html,text/xml,*/* Look at the docs again. The attributes for Tomcat 4.1 and 5.x are different. The former doesn't have a compressableMimeTypes attribute. Yet another reason to upgrade. Yoav 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: [Slightly OT] Simplifying deployment
THANKS Chad and Yoav! Very good information. I will look elsewhere for performance improvements (possibly squid...) Bob On Fri, 2004-10-22 at 12:24, Shapira, Yoav wrote: Hi, Yup, Chad's right. About the worst thing you can do is add complexity because you *think* it might be better. You do see a lot of connector-related traffic on this list. That's because connector configuration is not easy. The specifics greatly depend on which connector version, which tomcat version, which front-end (Apache httpd, IIS, others), and what environment you're using. And for many systems, the initial effort as well as the long-term maintenance costs are simply not worth it. For many other systems, the performance gain is not worth it. So if you really have an itch to scratch, make sure you set up a proper test server and benchmark your app to see if performance is really gained. Since your app is all Java (no PHP, CGI, etc.), you have no other argument for putting a front-end with Tomcat. Only if performance gains are substantial, and you still feel the added complexity/fragility is worth it, then I'd go ahead to modify your production setup. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Chad Maniccia [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 12:19 PM To: Tomcat Users List Subject: RE: [Slightly OT] Simplifying deployment I would keep it simple less things to hack, break, update, etc.. Also I remember reading in tomcat's documentation that it serves static content almost or just as fast. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:12 AM To: Tomcat Users List Subject: [Slightly OT] Simplifying deployment I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same thing - sepecially since httpd is probably faster at displaying static content But I'm left with a question: My application is delivered to my TC instance as a .war file. It seems to me that I'd have to break out the static content into something else in order for httpd to be able to serve that content. Is that the best way to accomplish this? Or is there something better that I can do on a *nix installation? Thanks much! Bob - 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 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: Filter question in 4.1.18, can my filter get unchunked and un zipped requests?
Hi Bill I've tried that but it doesn't appear to work. Is this because I need to upgrade to a later version of tomcat or what??? Thanks Donie -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: 22 October 2004 03:54 To: [EMAIL PROTECTED] Subject: Re: Filter question in 4.1.18, can my filter get unchunked and unzipped requests? Donie Kelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I've been reading up on filters to see if I can find a solution to an annoying problem. I can't find it so I'm looking here. I have this http filter that messes with the http request and response before it enters and leaves tomcat. The problem is that this filter works at a fairly low level on the data but a big mistake we made is that it assumes that the data is neither chunked or gzipped. Now we have a situation where some clients send data either in chunked form or gzipped form and out fairly complicated filter gets very confused as it's not expecting this. Ok, we can re-write the thing to handle this but doesn't tomcat already unzip and de-chunk data? Problem is where is it done? My question is, how can we arrange it so that the initial processing on the incoming data is done by tomcat so that it unzip and de-chunks the data before it reaches my filter? Is this possible??? Please say it is You may need to plug in a newer Coyote Connector (or, even, plug it in in the first place, since 4.1.18 is a bit old :), but it will at least unchunk the input for you. It doesn't currently unzip for you, but that should be a lot less common. Many thanks Donie - 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: [Slightly OT] Simplifying deployment
I used to use TC behind Apache but found that a bit flakey under windows (which was my dev platform), and I found configuring the two servers separately a bit fiddly. So when I started a new project I did a bit of homework on TC standalone, then decided to drop Apache entirely and run TC standalone. No complaints so far, and I've yet to see a convincing case for introducing Apache into the picture (although maybe there are reasons to do this, in different circumstances to mine). -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 17:12 To: Tomcat Users List Subject: [Slightly OT] Simplifying deployment I have an application that I've developed that run strictly on Tomcat. I've noticed a lot of traffic on this list talking about using Apache httpd to serve up static content and using mod_jk to have httpd talk to Tomcat to serve up JSP traffic. And all of that got me thinking about doing the same thing - sepecially since httpd is probably faster at displaying static content But I'm left with a question: My application is delivered to my TC instance as a .war file. It seems to me that I'd have to break out the static content into something else in order for httpd to be able to serve that content. Is that the best way to accomplish this? Or is there something better that I can do on a *nix installation? Thanks much! Bob - 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]
Automated reply from bulletproof@www.bulletproofsoft.com
BulletProofSoft.com Support Ticket Reply. DO NOT REPLY TO THIS EMAIL Please use our Online Support system for faster results to your questions. You can monitor the status of your ticket online where you can add follow up replies. http://www.bulletproofsoft.com/cgi-bin/custquest/quest_desk.cgi If the URL above splits into two lines, please visit: http://www.bulletproofsoft.com/support.html and click on the Contact Customer Support link Rest assured we will do our best to respond to your query promptly. You will receive a further email notification when one of our technicians has replied. Tech Support BulletProofSoft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.31 problem + server stop responding most of the time
So in other words there is no solution of this problem except to upgrade the version. ? Regards --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here's a quick fix: go back to whatever you were using before ;) 4.1.31 is a maintenance release and given the status of the 4.x branch, you may be better off spending your time on upgrading to 5.x than you would be on troubleshooting 4.1.31. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.31 problem + server stop responding most of the time Hello guy, I have this problem since I have installed Tomcat 4.1.31. It usually stop responding and on restart the tomcat it works fine. Any help will be really appreciated. Regards ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.31 problem + server stop responding most of the time
Hi, So in other words there is no solution of this problem except to upgrade the version. ? That's not what I said. There ARE other solutions. One is to go back to the version that was working for you before you moved to 4.1.31. Another one is to investigate the root cause of the error you're seeing, and fixing it on the 4.1 tree, in the hopes that if there's ever a 4.1.32 release it'll be included. What I said is that the latter effort is IMHO a waste of time, and that upgrading to 5.x is the best of your options. Yoav Regards --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here's a quick fix: go back to whatever you were using before ;) 4.1.31 is a maintenance release and given the status of the 4.x branch, you may be better off spending your time on upgrading to 5.x than you would be on troubleshooting 4.1.31. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.31 problem + server stop responding most of the time Hello guy, I have this problem since I have installed Tomcat 4.1.31. It usually stop responding and on restart the tomcat it works fine. Any help will be really appreciated. Regards ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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]
which one is a stable version of tomcat
Hello, Which one is a stable version of Tomcat that I can use for production . I have been using Tomcat 4.1.24 , 4.1.28 and 4.1.31 and suffering as because web server usually stop responding, resulting i need to restart the web server to make it working. I am assuming i need to customize server.xml file -http connector but I am not sure. Any advice will really a big time help for me. Best Regards. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: which one is a stable version of tomcat
Hi, The latest stable versions of each branch are listed on the Tomcat home page. Right now these are 4.1.31 for Tomcat 4.1 and 5.0.28 for Tomcat 5.0. Tomcat is stable out of the box even if you don't customize server.xml. Chances are your server stops responding for other reasons. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 1:13 PM To: [EMAIL PROTECTED] Subject: which one is a stable version of tomcat Hello, Which one is a stable version of Tomcat that I can use for production . I have been using Tomcat 4.1.24 , 4.1.28 and 4.1.31 and suffering as because web server usually stop responding, resulting i need to restart the web server to make it working. I am assuming i need to customize server.xml file -http connector but I am not sure. Any advice will really a big time help for me. Best Regards. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - 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]
[Somewhat OT] Content vs. Programming
Hello, folks! Based on my readings, it seems that most people running Tomcat on dedicated boxes. Unfortunately, I'm in a shared environment running multiple instances of Tomcat, one for each client. My problem is that some clients like to update their own static content via ftp, while letting me, the programmer, handle the more complex stuff. What stinks is that if they ftp content to the server, then I've got to merge their new and changed stuff into my development box because when I deploy my war file (I'm developing in a separate environment), it overwrites all of their stuff. My content providers aren't technically savvy, so I can't expect them to learn to use CVS. They're probably using some GUI program like Dreamweaver to create their pages. Does anyone have a suggestion to help streamline the battle of content providers versus programmers? I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Is anyone else dealing with this kind of inefficiency, or do you all work with just other programmers? Thanks for your opinions, -Anthony Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in document
Important message, do not show this anyone! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Somewhat OT] Content vs. Programming
Sounds like it's a case where using a war file is causing the problem. I would drop the war files altogether and just distribute their contents. That way you can distribute just the bits of the webapp that you have changed. Sounds to me like you own the JSP/servlet/config files and they own the static files. So they can just ftp the files to the server, and you copy them to your machine when you need to, but you only ftp back up the files that you own. Or another approach is to put all static content in a webserver directory that is not part of the webapp. That way it won't be in the war file. I know this somewhat defeats the object of a warfile, but you have a situation here where a compromise is required. -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 18:24 To: 'Tomcat Users List' Subject: [Somewhat OT] Content vs. Programming Hello, folks! Based on my readings, it seems that most people running Tomcat on dedicated boxes. Unfortunately, I'm in a shared environment running multiple instances of Tomcat, one for each client. My problem is that some clients like to update their own static content via ftp, while letting me, the programmer, handle the more complex stuff. What stinks is that if they ftp content to the server, then I've got to merge their new and changed stuff into my development box because when I deploy my war file (I'm developing in a separate environment), it overwrites all of their stuff. My content providers aren't technically savvy, so I can't expect them to learn to use CVS. They're probably using some GUI program like Dreamweaver to create their pages. Does anyone have a suggestion to help streamline the battle of content providers versus programmers? I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Is anyone else dealing with this kind of inefficiency, or do you all work with just other programmers? Thanks for your opinions, -Anthony Carlos - 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: which one is a stable version of tomcat
On Fri, 22 Oct 2004 13:14:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, The latest stable versions of each branch are listed on the Tomcat home page. Right now these are 4.1.31 for Tomcat 4.1 and 5.0.28 for Tomcat 5.0. Tomcat is stable out of the box even if you don't customize server.xml. Except on RH 9 ;) -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Somewhat OT] Content vs. Programming
Anthony E. Carlos wrote: Hello, folks! Based on my readings, it seems that most people running Tomcat on dedicated boxes. Unfortunately, I'm in a shared environment running multiple instances of Tomcat, one for each client. My problem is that some clients like to update their own static content via ftp, while letting me, the programmer, handle the more complex stuff. What stinks is that if they ftp content to the server, then I've got to merge their new and changed stuff into my development box because when I deploy my war file (I'm developing in a separate environment), it overwrites all of their stuff. My content providers aren't technically savvy, so I can't expect them to learn to use CVS. They're probably using some GUI program like Dreamweaver to create their pages. Does anyone have a suggestion to help streamline the battle of content providers versus programmers? I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Is anyone else dealing with this kind of inefficiency, or do you all work with just other programmers? Don't war it and update the server with your changes via cvs. Then you can check if there are updates on the server, if so commit them and then update locally. best, -Rob Thanks for your opinions, -Anthony Carlos - 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: [Somewhat OT] Content vs. Programming
On Fri, Oct 22, 2004 at 01:24:00PM -0400, Anthony E. Carlos wrote: I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Sounds like you need to impose some structure on how your clients upload things. Since you have more than one person/group of people working on the same stuff _someone_ needs to do the merging, but there's no reason to do it by hand. Since you're using CVS, let CVS do some of the work for you. 1: Have your clients upload to a checked out copy of your sources This assumes your source layout and your installed layout are fairly similar. This can be made easier if you declare that all of their stuff needs to go in some subdirectory that maps to the installed layout in a well define manner. 2: To satisfy their immediate update requirement, write a script that watches for new files and copies them to the webapps directory when they appear. 3: Before you install a new war file, go into the upload directory, run an update, merge changes, check in those changes. Then re-update your development box and rebuild. If you define a branch for the client upload changes you can import each of their changes to the branch and then do all of your merging work on your development box. In fact, you could even automate the checkin using the afore mentioned script. Branches are extremely useful for things like this. eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Somewhat OT] Content vs. Programming
You must be saying that you are using an instance of Tomcat and that your content providers are putting pages into your application in that instance. If so, since you are only in development, why don't you forgo the war file and just bounce your application with manager to catch the differences? Michael McGrady Anthony E. Carlos wrote: Hello, folks! Based on my readings, it seems that most people running Tomcat on dedicated boxes. Unfortunately, I'm in a shared environment running multiple instances of Tomcat, one for each client. My problem is that some clients like to update their own static content via ftp, while letting me, the programmer, handle the more complex stuff. What stinks is that if they ftp content to the server, then I've got to merge their new and changed stuff into my development box because when I deploy my war file (I'm developing in a separate environment), it overwrites all of their stuff. My content providers aren't technically savvy, so I can't expect them to learn to use CVS. They're probably using some GUI program like Dreamweaver to create their pages. Does anyone have a suggestion to help streamline the battle of content providers versus programmers? I've thought of having them upload to a alternate directory and then running some ant script to copy new and changed files into the Tomcat directories, but that still won't help with the merging process. To make things even more complicated, and we're also using Tiles so my content providers have to ask me to add entries into struts-config.xml and tiles-defs.xml when they create a new page. Is anyone else dealing with this kind of inefficiency, or do you all work with just other programmers? m Thanks for your opinions, -Anthony Carlos - 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: Including Zip functionality in a filter...
right, I checked the 4.1 docs and removed the MimeTypes attribute and it still doesn't compress. So i set compression=5 to have it compress any output length 5 bytes be compressed. still didn't work. any other hints? thanks much for your replies. Yet another reason to upgrade Posted this problem last week: I tried tomcat 5 (jdk142) and 5.5 (jdk15) but our servlet doesn't return any output (compression disabled) from a POST (content-length always 0), I'm assuming we have to recompile w/the new servlet-api.jar, or we are having some other strange runtime problem. this production servlet works on a number of web servers since 2000. The output is persisted to a file, so i know that much works, just not returned to the client. nothing in logs. I understand this type of queston is too open ended to get any response.sorry. Dave Been Shapira, Yoav [EMAIL PROTECTED] 10/22/2004 09:27 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Including Zip functionality in a filter... Hi, I looked at the docs and added to my 8080 non-SSL Connector in server.xml (tomcat 4.1.3) the following: compression=force compressableMimeType=text/html,text/xml,*/* Look at the docs again. The attributes for Tomcat 4.1 and 5.x are different. The former doesn't have a compressableMimeTypes attribute. Yet another reason to upgrade. Yoav 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]
How to save files being download
Hi Folks, I am testing my website at web hosting company which is using tomcat. I can see my application running if I type www.abc.com/root/. But my problem is if I put www.abc.com/root/jsp it show all my jsps which lying in jsp directory and let any one to download my file. I tested any my localhost to and it works same. Any one know how to prevent it. What setting needs to change so that if user types www.abc.com/root/jsp he get unauthorised access or page can not be displayed kind message. Thanks in advance Vivek ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to save files being download
Hi, Change directoryListings to false for the DefaultServlet in conf/web.xml, as explained in the Tomcat FAQ. Yoav Shapira http://www.yoavshapira.com -Original Message- From: vivek gupta [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:07 PM To: Tomcat Users List Subject: How to save files being download Hi Folks, I am testing my website at web hosting company which is using tomcat. I can see my application running if I type www.abc.com/root/. But my problem is if I put www.abc.com/root/jsp it show all my jsps which lying in jsp directory and let any one to download my file. I tested any my localhost to and it works same. Any one know how to prevent it. What setting needs to change so that if user types www.abc.com/root/jsp he get unauthorised access or page can not be displayed kind message. Thanks in advance Vivek ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - 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: Webapp don't start after shutdown
Hi! (I'm home now so it is another email-adress) I think that I have found another lead to why tomcat doesn't do right with my web-apps. In the web.xml in the %tomcat-home%/conf/Catalina/mydomain .. there is a context path... and of some freak reason the path to the files are the one that I use on my workstation and not the path to where tomcat-manager save the .war and unpacks it to. No wonder why tomcat don't find the files after a restart of tomcat. I'm going to take weekend now but if anyone has any ideas why tomcat tries to use the path from the uploading client instead of the path on the server I'd be happy to hear about it. Thanks you very much! Regards Roland Carlsson - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:58 PM Subject: RE: Webapp don't start after shutdown Hi, Then I run the bin/shutdown.sh script and bin/startup.sh Are you sure shutdown is completed properly, i.e. the JVM process is gone? I attempt to access the web-app and only get 404 errors. Are there any errors or startup? If so, please post the relevant logs and/or configuration information. Is the context information for your deployed webapp saved correctly? Yoav 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: How to save files being download
More info here http://jakarta.apache.org/tomcat/tomcat-5.5-doc/default-servlet.html#secure which refers to the servlet spec, which is here http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html -Original Message- From: vivek gupta [mailto:[EMAIL PROTECTED] Sent: Friday 22 October 2004 19:07 To: Tomcat Users List Subject: How to save files being download Hi Folks, I am testing my website at web hosting company which is using tomcat. I can see my application running if I type www.abc.com/root/. But my problem is if I put www.abc.com/root/jsp it show all my jsps which lying in jsp directory and let any one to download my file. I tested any my localhost to and it works same. Any one know how to prevent it. What setting needs to change so that if user types www.abc.com/root/jsp he get unauthorised access or page can not be displayed kind message. Thanks in advance Vivek ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.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: which one is a stable version of tomcat
I am running tomcat on Redhat 9 Does it means it is some thing to do with OS ?? ( it stop responds usually, required to restart web server all the time ) Regards --- Remy Maucherat [EMAIL PROTECTED] wrote: On Fri, 22 Oct 2004 13:14:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, The latest stable versions of each branch are listed on the Tomcat home page. Right now these are 4.1.31 for Tomcat 4.1 and 5.0.28 for Tomcat 5.0. Tomcat is stable out of the box even if you don't customize server.xml. Except on RH 9 ;) -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: which one is a stable version of tomcat
Hi, Yes, most likely. Search the archives on the use of the LD_ASSUME_KERNEL parameter. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:31 PM To: Tomcat Users List; Remy Maucherat Subject: Re: which one is a stable version of tomcat I am running tomcat on Redhat 9 Does it means it is some thing to do with OS ?? ( it stop responds usually, required to restart web server all the time ) Regards --- Remy Maucherat [EMAIL PROTECTED] wrote: On Fri, 22 Oct 2004 13:14:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, The latest stable versions of each branch are listed on the Tomcat home page. Right now these are 4.1.31 for Tomcat 4.1 and 5.0.28 for Tomcat 5.0. Tomcat is stable out of the box even if you don't customize server.xml. Except on RH 9 ;) -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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]
testing my account please ignore.
Testing my account. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: which one is a stable version of tomcat
Hello, I tried that too. No luck. almost every day I have to suffer the same problem. Regards --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Yes, most likely. Search the archives on the use of the LD_ASSUME_KERNEL parameter. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Linux Guru [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:31 PM To: Tomcat Users List; Remy Maucherat Subject: Re: which one is a stable version of tomcat I am running tomcat on Redhat 9 Does it means it is some thing to do with OS ?? ( it stop responds usually, required to restart web server all the time ) Regards --- Remy Maucherat [EMAIL PROTECTED] wrote: On Fri, 22 Oct 2004 13:14:35 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, The latest stable versions of each branch are listed on the Tomcat home page. Right now these are 4.1.31 for Tomcat 4.1 and 5.0.28 for Tomcat 5.0. Tomcat is stable out of the box even if you don't customize server.xml. Except on RH 9 ;) -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Hi Steffen, Thank you for your response. I found that there is indeed a bug fro this problem reported for the SUN JDK. You can view it at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744405 It also seems that this bug has not yet been solved. Its status is in progress This is a short version of the bug report: Bug ID: 4744405 Votes 17 Synopsis RFE: lookupPrintServices() to refresh the printers list dynamically Category java:classes_2d Reported Against 1.4 , 1.4.1 Release Fixed State In progress, request for enhancement Related Bugs 5028849 , 5033703 Submit Date 10-SEP-2002 Description *This also happened on Windows platform. java version 1.4.1-rc Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19) Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode) When invoke method lookupPrintServices() on class PrinterJob or PrintServiceLookup, the printers list can not refreshed when adding or deleting printers dynamically. Steps to follow to reproduce the problem: 1. Compile and run the included test case 2. The print dialog shows up and avaible printers information is printed out on screen. Click cancel to dismiss the dialog. The test case is pending. 3. Use Printer Selector Tool to add a new printer into selected printers list and save changes. 4. Back to the terminal that run the test case an click enter button to continue. Then a new thread will be created to invoke the lookupPrintServices() and pop up the print dialog again. 5. The screen output shows that invoking lookupPrintServices() doesn't reflect the newly added printer information, neither does the print dialog. // source code begin---// import java.awt.print.*; import javax.print.*; public class MTPrinterTest extends Thread { public static void main(String[] args) { MTPrinterTest t1 = new MTPrinterTest(); t1.start(); try { System.in.read(); } catch (Exception e){} MTPrinterTest t2 = new MTPrinterTest(); t2.start(); } public void run() { PrinterJob printerJob; PrintService[] printServices; printerJob = PrinterJob.getPrinterJob(); printServices = printerJob.lookupPrintServices(); System.out.println(Number of servies found: + printServices.length); for (int i =0; i printServices.length; i++) System.out.println(-- Available Printer + i + : + printServices[i]); printerJob.printDialog(); } } // source code end --// Work Around Exit the current running application and run it again, then the printers list get refreshed. Seems the running JVM can not get updated printer information -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 8:25 AM To: 'Tomcat Users List' Subject: AW: Servlet caching? Hi If I write a java program to list the services and run the program from the command line, I can see the newly added service right away. Modify your program to list the services, wait one minute, list the services again. Install a printer in that time. See, if the application reflects that change. If not, the Lookup is caching information. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Hi, Note that this is an RFE, not a bug, so don't hold your breath, and further that you can register an use your own PrintService SPI already in JDK 1.4, and that's probably one reason the Sun folks aren't jumping to implement this RFE. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:55 PM To: 'Tomcat Users List' Subject: RE: Servlet caching? Hi Steffen, Thank you for your response. I found that there is indeed a bug fro this problem reported for the SUN JDK. You can view it at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744405 It also seems that this bug has not yet been solved. Its status is in progress This is a short version of the bug report: Bug ID: 4744405 Votes 17 Synopsis RFE: lookupPrintServices() to refresh the printers list dynamically Category java:classes_2d Reported Against 1.4 , 1.4.1 Release Fixed State In progress, request for enhancement Related Bugs 5028849 , 5033703 Submit Date 10-SEP-2002 Description *This also happened on Windows platform. java version 1.4.1-rc Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19) Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode) When invoke method lookupPrintServices() on class PrinterJob or PrintServiceLookup, the printers list can not refreshed when adding or deleting printers dynamically. Steps to follow to reproduce the problem: 1. Compile and run the included test case 2. The print dialog shows up and avaible printers information is printed out on screen. Click cancel to dismiss the dialog. The test case is pending. 3. Use Printer Selector Tool to add a new printer into selected printers list and save changes. 4. Back to the terminal that run the test case an click enter button to continue. Then a new thread will be created to invoke the lookupPrintServices() and pop up the print dialog again. 5. The screen output shows that invoking lookupPrintServices() doesn't reflect the newly added printer information, neither does the print dialog. // source code begin---// import java.awt.print.*; import javax.print.*; public class MTPrinterTest extends Thread { public static void main(String[] args) { MTPrinterTest t1 = new MTPrinterTest(); t1.start(); try { System.in.read(); } catch (Exception e){} MTPrinterTest t2 = new MTPrinterTest(); t2.start(); } public void run() { PrinterJob printerJob; PrintService[] printServices; printerJob = PrinterJob.getPrinterJob(); printServices = printerJob.lookupPrintServices(); System.out.println(Number of servies found: + printServices.length); for (int i =0; i printServices.length; i++) System.out.println(-- Available Printer + i + : + printServices[i]); printerJob.printDialog(); } } // source code end --// Work Around Exit the current running application and run it again, then the printers list get refreshed. Seems the running JVM can not get updated printer information -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 8:25 AM To: 'Tomcat Users List' Subject: AW: Servlet caching? Hi If I write a java program to list the services and run the program from the command line, I can see the newly added service right away. Modify your program to list the services, wait one minute, list the services again. Install a printer in that time. See, if the application reflects that change. If not, the Lookup is caching information. Regards, Steffen - 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]
Embedded Tomcat + JMX
I tried the Embedded class to work with Tomcat5 from the jakarta-tomcat-5.0.28-embed.tar.gz and am not getting very far, ie not able to deploy even the /manager webapp included in the webapps/. I also tried the JMX style using an xml file (not exactly sure why is this better than starting with the startup.sh from a full blown Tomcat5) and coming to a slightly different difficulties. I used the minmgr.xml (attached file)from Wrox book Tomcat5 and am not able to log in because it seems to use JAASRealm even though I do not see it define under any mbean. As matter of factly it is defined to use MemmoryRealm. 1) So where does it gets this JAASRealm? snippet error from running: await: [jmx] Oct 22, 2004 11:49:26 AM org.apache.catalina.realm.JAASRealm authenticate [jmx] SEVERE: Unexpected error [jmx] java.lang.SecurityException: Unable to locate a login configuration 2) The tomcat-users.xml is slightly different from what came with a regular Tomcat 5. Specifically using name as oppose to username. the tomcat-users.xml that came with the tarball: 1 !-- 2 NOTE: By default, no user is included in the manager role required 3 to operate the /manager web application. If you wish to use this app, 4 you must define such a user - the username and password are arbitrary. 5 -- 6 tomcat-users 7 user name=tomcat password=tomcat roles=tomcat / 8 user name=role1 password=tomcat roles=role1 / 9 user name=both password=tomcat roles=tomcat,role1 / 10 /tomcat-users Snippet of minmgr.xml specifically for the Realm: mbean name=${domain}:type=Engine code=org.apache.catalina.core.StandardEngine modeler=true attribute name=name value=Tomcat-Min-Standalone/ attribute name=baseDir value=${tomcat.home}/ attribute name=defaultHost value=localhost/ /mbean mbean name=${domain}:type=Realm code=org.apache.catalina.realm.MemoryRealm modeler=true attribute name=pathname value=${tomcat.home}/conf/tomcat-users.xml / /mbean mbean name=${domain}:type=Connector,port=9080 code=org.apache.coyote.tomcat5.CoyoteConnector modeler=true attribute name=port value=9080 / __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail project name=min-tc5 default=start basedir=. property file=${user.home}/build.properties/ property file=build.properties/ property name=tomcat.home location=. / property name=tomcat.webapps location=${tomcat.home}/webapps / path id=tomcatCP-extra / target name=init unless=init.done path id=tomcatCP path refid=tomcatCP-extra/ fileset dir=${tomcat.home}/lib includes=*.jar/ pathelement path=${tomcat.home}/conf/ /path taskdef resource=org/apache/commons/modeler/ant/ant.properties classpathref=tomcatCP / property name=init.done value=true/ /target property name=domain value=Tomcat-Min-Standalone / property name=jsr77Domain value=Tomcat-Min-Standalone / target name=run depends=init description=Start tomcat as an mbean, no server.xml modelerRegistry resource=org/apache/catalina/mbeans/mbeans-descriptors.xml / modelerRegistry resource=org/apache/catalina/loader/mbeans-descriptors.xml / mkdir dir=${tomcat.home}/work/${domain}/ / jmx-service mbean name=${domain}:type=Server code=org.apache.catalina.core.StandardServer modeler=true attribute name=port value=9005/ /mbean mbean name=${domain}:type=Service code=org.apache.catalina.core.StandardService modeler=true attribute name=name value=Tomcat-Min-Standalone/ /mbean mbean name=${domain}:type=Engine code=org.apache.catalina.core.StandardEngine modeler=true attribute name=name value=Tomcat-Min-Standalone/ attribute name=baseDir value=${tomcat.home}/ attribute name=defaultHost value=localhost/ /mbean mbean name=${domain}:type=Realm code=org.apache.catalina.realm.MemoryRealm modeler=true attribute name=pathname value=${tomcat.home}/conf/tomcat-users.xml / /mbean mbean name=${domain}:type=Connector,port=9080 code=org.apache.coyote.tomcat5.CoyoteConnector modeler=true attribute name=port value=9080 / /mbean mbean name=${jsr77Domain}:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none code=org.apache.catalina.core.StandardContext modeler=true attribute name=docBase value=${tomcat.webapps}/ROOT / attribute name=privileged value=true / attribute name=engineName value=${domain} / /mbean mbean
RE: Embedded Tomcat + JMX
Hi, Maybe ask the book's author ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:12 PM To: [EMAIL PROTECTED] Subject: Embedded Tomcat + JMX I tried the Embedded class to work with Tomcat5 from the jakarta-tomcat-5.0.28-embed.tar.gz and am not getting very far, ie not able to deploy even the /manager webapp included in the webapps/. I also tried the JMX style using an xml file (not exactly sure why is this better than starting with the startup.sh from a full blown Tomcat5) and coming to a slightly different difficulties. I used the minmgr.xml (attached file)from Wrox book Tomcat5 and am not able to log in because it seems to use JAASRealm even though I do not see it define under any mbean. As matter of factly it is defined to use MemmoryRealm. 1) So where does it gets this JAASRealm? snippet error from running: await: [jmx] Oct 22, 2004 11:49:26 AM org.apache.catalina.realm.JAASRealm authenticate [jmx] SEVERE: Unexpected error [jmx] java.lang.SecurityException: Unable to locate a login configuration 2) The tomcat-users.xml is slightly different from what came with a regular Tomcat 5. Specifically using name as oppose to username. the tomcat-users.xml that came with the tarball: 1 !-- 2 NOTE: By default, no user is included in the manager role required 3 to operate the /manager web application. If you wish to use this app, 4 you must define such a user - the username and password are arbitrary. 5 -- 6 tomcat-users 7 user name=tomcat password=tomcat roles=tomcat / 8 user name=role1 password=tomcat roles=role1 / 9 user name=both password=tomcat roles=tomcat,role1 / 10 /tomcat-users Snippet of minmgr.xml specifically for the Realm: mbean name=${domain}:type=Engine code=org.apache.catalina.core.StandardEngine modeler=true attribute name=name value=Tomcat-Min-Standalone/ attribute name=baseDir value=${tomcat.home}/ attribute name=defaultHost value=localhost/ /mbean mbean name=${domain}:type=Realm code=org.apache.catalina.realm.MemoryRealm modeler=true attribute name=pathname value=${tomcat.home}/conf/tomcat-users.xml / /mbean mbean name=${domain}:type=Connector,port=9080 code=org.apache.coyote.tomcat5.CoyoteConnector modeler=true attribute name=port value=9080 / __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail 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: Servlet caching?
Thanks for your clarification. At least the bug says Sate In progress ... Let us hope... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:01 PM To: Tomcat Users List Subject: RE: Servlet caching? Hi, Note that this is an RFE, not a bug, so don't hold your breath, and further that you can register an use your own PrintService SPI already in JDK 1.4, and that's probably one reason the Sun folks aren't jumping to implement this RFE. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Carlos Oliva [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:55 PM To: 'Tomcat Users List' Subject: RE: Servlet caching? Hi Steffen, Thank you for your response. I found that there is indeed a bug fro this problem reported for the SUN JDK. You can view it at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744405 It also seems that this bug has not yet been solved. Its status is in progress This is a short version of the bug report: Bug ID: 4744405 Votes 17 Synopsis RFE: lookupPrintServices() to refresh the printers list dynamically Category java:classes_2d Reported Against 1.4 , 1.4.1 Release Fixed State In progress, request for enhancement Related Bugs 5028849 , 5033703 Submit Date 10-SEP-2002 Description *This also happened on Windows platform. java version 1.4.1-rc Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19) Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode) When invoke method lookupPrintServices() on class PrinterJob or PrintServiceLookup, the printers list can not refreshed when adding or deleting printers dynamically. Steps to follow to reproduce the problem: 1. Compile and run the included test case 2. The print dialog shows up and avaible printers information is printed out on screen. Click cancel to dismiss the dialog. The test case is pending. 3. Use Printer Selector Tool to add a new printer into selected printers list and save changes. 4. Back to the terminal that run the test case an click enter button to continue. Then a new thread will be created to invoke the lookupPrintServices() and pop up the print dialog again. 5. The screen output shows that invoking lookupPrintServices() doesn't reflect the newly added printer information, neither does the print dialog. // source code begin---// import java.awt.print.*; import javax.print.*; public class MTPrinterTest extends Thread { public static void main(String[] args) { MTPrinterTest t1 = new MTPrinterTest(); t1.start(); try { System.in.read(); } catch (Exception e){} MTPrinterTest t2 = new MTPrinterTest(); t2.start(); } public void run() { PrinterJob printerJob; PrintService[] printServices; printerJob = PrinterJob.getPrinterJob(); printServices = printerJob.lookupPrintServices(); System.out.println(Number of servies found: + printServices.length); for (int i =0; i printServices.length; i++) System.out.println(-- Available Printer + i + : + printServices[i]); printerJob.printDialog(); } } // source code end --// Work Around Exit the current running application and run it again, then the printers list get refreshed. Seems the running JVM can not get updated printer information -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 8:25 AM To: 'Tomcat Users List' Subject: AW: Servlet caching? Hi If I write a java program to list the services and run the program from the command line, I can see the newly added service right away. Modify your program to list the services, wait one minute, list the services again. Install a printer in that time. See, if the application reflects that change. If not, the Lookup is caching information. Regards, Steffen - 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: Embedded Tomcat + JMX
The attached minmgr.xml clearly shows no other Realm other than MemoryRealm is set. And the web.xml of the stock /manager webapp set the authentication to BASIC. So please if you can check the attached minmgr.xml file and see how it possibly uses JAASRealm? I restarted again and see these logged: [jmx-service] INFO: Starting Coyote HTTP/1.1 on http-9080 [jmx-service] Oct 22, 2004 12:17:08 PM org.apache.catalina.core.StandardEngine start [jmx-service] INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 [jmx-service] Oct 22, 2004 12:17:08 PM org.apache.catalina.core.StandardHost start [jmx-service] INFO: XML validation disabled [jmx-service] Oct 22, 2004 12:17:09 PM org.apache.catalina.realm.JAASRealm setContainer [jmx-service] INFO: Setting JAAS app name Catalina [jmx-service] Oct 22, 2004 12:17:10 PM org.apache.catalina.realm.RealmBase start [jmx-service] INFO: This Realm has already been started [jmx-service] Oct 22, 2004 12:17:10 PM org.apache.coyote.tomcat5.CoyoteConnector start --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Maybe ask the book's author ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: sven morales [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:12 PM To: [EMAIL PROTECTED] Subject: Embedded Tomcat + JMX I tried the Embedded class to work with Tomcat5 from the jakarta-tomcat-5.0.28-embed.tar.gz and am not getting very far, ie not able to deploy even the /manager webapp included in the webapps/. I also tried the JMX style using an xml file (not exactly sure why is this better than starting with the startup.sh from a full blown Tomcat5) and coming to a slightly different difficulties. I used the minmgr.xml (attached file)from Wrox book Tomcat5 and am not able to log in because it seems to use JAASRealm even though I do not see it define under any mbean. As matter of factly it is defined to use MemmoryRealm. 1) So where does it gets this JAASRealm? snippet error from running: await: [jmx] Oct 22, 2004 11:49:26 AM org.apache.catalina.realm.JAASRealm authenticate [jmx] SEVERE: Unexpected error [jmx] java.lang.SecurityException: Unable to locate a login configuration 2) The tomcat-users.xml is slightly different from what came with a regular Tomcat 5. Specifically using name as oppose to username. the tomcat-users.xml that came with the tarball: 1 !-- 2 NOTE: By default, no user is included in the manager role required 3 to operate the /manager web application. If you wish to use this app, 4 you must define such a user - the username and password are arbitrary. 5 -- 6 tomcat-users 7 user name=tomcat password=tomcat roles=tomcat / 8 user name=role1 password=tomcat roles=role1 / 9 user name=both password=tomcat roles=tomcat,role1 / 10 /tomcat-users Snippet of minmgr.xml specifically for the Realm: mbean name=${domain}:type=Engine code=org.apache.catalina.core.StandardEngine modeler=true attribute name=name value=Tomcat-Min-Standalone/ attribute name=baseDir value=${tomcat.home}/ attribute name=defaultHost value=localhost/ /mbean mbean name=${domain}:type=Realm code=org.apache.catalina.realm.MemoryRealm modeler=true attribute name=pathname value=${tomcat.home}/conf/tomcat-users.xml / /mbean mbean name=${domain}:type=Connector,port=9080 code=org.apache.coyote.tomcat5.CoyoteConnector modeler=true attribute name=port value=9080 / __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail 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] ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webdav help
From: Darren Grant [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 6:08 AM To: [EMAIL PROTECTED] Subject: webdav help The example webdav servlet allows you to log into http://localhost:8080/webdav; and gives you access to the /$CATALINA_HOME/webapps/webdav/ folder which contains 3 files (index.html, tomcat.gif, tomcat-power.gif)... how does that help you when the web files for the default http://localhost:8080; are in /$CATALINA_HOME/webapps/ROOT/ folder? It doesn't. It only gives access to the /$CATALINA_HOME/webapps/webdav/ folder and below. This is by design. Am I missing something simple here? Where should the production website be deployed? And how do you use the simple webdav servlet to give you access to it? If you web site is 100% static content you can add the webdav servlet to your webapp and use it to edit your static content - make sure you get the security right. If you have any dynamic content then this isn't going to work. The fundamental problem is differentiating between a request for the dynamic content and a request to retrieve the resource for editing. HTH Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup processing
is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. _ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat startup processing
Certainly you can do it. As if you are using Struts you can do it with use of plug-ins in struts-config.xml as Plug-ins get invoked when server starts. I wrote a plug-in which goes to database at starup of system and stores state information in application context. Hope it will help. Thanks Vivek --- Didier McGillis [EMAIL PROTECTED] wrote: is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. _ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]