RE: JRE vs. JDK for Tomcat
Another thing that wander me is that I can run Tomcat 5.5.x on Fedore Core with JRE only installed but when I run Tomcat on Windows with JRE installed I receive a message that a JDK is required. -Original Message- From: Iannis Hanen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 4:59 AM To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Subject: JRE vs. JDK for Tomcat Hi, It seems that tomcat requires a JDK (and not only a JRE) to be present on the physical machine in order to run properly. I am a bit surprised that a JDK is also required. Is there a way to run Tomcat on top of a JRE only? How do I setup this? Thanks, Iannis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat vs Apache
You can find Peter's Benchmarks at http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf kr Marco --- http://www.kontaktlinsen-preisvergleich.de http://www.parfuem-faq.de Am Mittwoch, den 18.05.2005, 16:50 -0500 schrieb Caldarale, Charles R: From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat vs Apache I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? That is definitely no longer true - search the archives for Peter Lin's test results. It's not quite parity, but it's close. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JRE vs. JDK for Tomcat
Hi Vasil, Vasil Stefanov schrieb: Another thing that wander me is that I can run Tomcat 5.5.x on Fedore Core with JRE only installed but when I run Tomcat on Windows with JRE installed I receive a message that a JDK is required. Which Tomcat version do you run on Windows? To my knowledge, Tomcat 5.5 is the first Tomcat version which is able to run with the JRE only. So, if you run an earlier version on Windows, it will require a JDK. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting max HTTP header size
Hi, is it possible to set the max HTTP header size in Tomcat 4.1.31? In Tomcat 5 there is a parameter maxHttpHeaderSize for the http connector but it doesn`t seem to work for 4.1.31. How do I configure this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Undeploying webapp on windows
Hello, I've been out of town for a while so i haven't been able to respond earlier. Yes, i have tried all commands available in the manager, nothing helps this problem. When the manager tries to delete the directory, the jar-file being locked is left behind and the directory cannot be deleted. All other files are deleted. Is anyone at all out there successfully re-deploying webapps on the fly in tomcat 5.5 under windows? //j Serlet Jean-Claude wrote: Hello Have you tried to use the command undeploy of the manager ? Like this http://yourhost:yourportnumber/manager/undeploy?path=(context_path) Take care : this command after stopping the application will delete the directory where your application was deployed and remove the entry of the Context from your server.xml of CATALINA_HOME/conf Jean-Claude -Message d'origine- De : Joakim Ahlén [mailto:[EMAIL PROTECTED] Envoyé : mardi 10 mai 2005 09:20 À : Tomcat Users List Objet : Undeploying webapp on windows Hi, I guess this question has come up a thousand times on this list, but i still have no workaround for it so i need to get a tip or two from you guys. We're using Tomcat 5.5.9 on Windows 2003 Server, and we cannot hot-deploy webapps. The cause is one of our jar-files in WEB-INF being locked, so the webapp cannot be undeployed. (The directory webapps/webapp/ cannot be deleted). Now, i've scanned the net a lot about this problem and have tried lots and lots of stuff. - Stopping the webapp before trying to remove the webapps/webapp/-directory does NOT work. - Using reloadable=true, antiJARLocking=true antiResourceLocking=true in the context.xml for each webapp does NOT work. We have about 75 (almost identical) webapps or so running on our server. With the software Process Explorer from sysinternals (http://www.sysinternals.com/files/procexpnt.zip), i can see all open files in the system. On any given time, tomcat5.exe has one jar-file in each of about 3-5 webapps open with a file handle. These are never closed, but open for as long as tomcat lives (or at least, for a very long time. Hours or days.) Now, i know what is said about this problem. It's an OS problem, not a tomcat issue. I can't understand that though, since: - Hot deploy worked perfectly under windows with tomcat 4.1.X. What has changed since then? - Tomcat evidently has several file handles open to these jar-files which it doesn't close. Isn't the problem this, that tomcat doesn't close the file handles to its opened jar-files? I can close these file handles manually from within process explorer, but then tomcat goes berserk and nothing works. Is there anything i'm missing here? Isn't there any way whatsoever to be able to use hot deploy under windows today? Why doesn't antiJARLocking and antiResourceLocking work at all, i thought these should adress this particular problem? I'm attaching a screenshot of the open files from within process explorer. Hope you can help me! Regards Joakim - 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]
error-page not working for error-code 503?
- Original Message - From: Raymond [EMAIL PROTECTED] To: Tomcat Users tomcat-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 9:54 PM Subject: error-page not working for error-code 503? Hi, I have these in my tomcat server's global web.xml file: error-page error-code404/error-code location/http404.jsp/location /error-page error-page error-code503/error-code location/maintenance.html/location /error-page It works for the 404 but not the 503 error code. What's wrong with it? I want to redirect users to a maintenance in progress page when I stop any webapp with the tomcat manager. But it always gives me the default tomcat HTTP status page when I request a stopped webapp. Please help. Thanks. Raymond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and 1.5 Was: Tomcat on XP
Is it generally a good idea to develop on 1.5 - I actually like working in 1.5 (generics, annotations, etc. all good stuff, despite some of the implementation weirdness), but have avoided doing servlet stuff in 1.5 to date, as I'm not sure if it's a good idea... My project doesn't go live till December, so does it seem reasonable to go with 1.5? Or will that seriously limit options if, for example I need to switch containers or something (e.g. to Resin Pro) in case of performance issues. Any thoughts helpful here (hate having to hold myself back with type-unsafe collections, but it's much more of a pain to go from generic code to non-generic than the other way around, I think). Thanks Tim Woodchuck wrote: you need to get at least the Java 1.5 run-time environment (aka JRE 5.0) Tomcat 5.5.x does not work with Java 1.4 unless you install a compatibility patch since you are developing, i recommend you install the JDK 1.5 and update your JAVA_HOME to point to 1.5 instead of 1.4 hth, woodchuck --- Jobish P [EMAIL PROTECTED] wrote: Hi, I am not getting the tomcat home page while trying to run tomcat in Windows XP. I had set the JAVA_HOME and CATALINA_HOME path variables and stopped other servers(IIS ans apche) running in the system. But I couldn't see anything by typing http://localhost:8080. The utilitie's that I used are tomcat 5.5.9.exe and j2sdk1.4.2_07. Any thoughts ? It will be of great help if any of you could help in this regard. cheers, -Jobish P All men by nature desire to know- Aristotle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - 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]
Apache vs Tomcat WRT Security
I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. Please do not think that I am bashing Tomcat, juts pointing out some interesting findings that I have come across over time. I have been a supporter and user of tomcat back to the 3.x days and will continue. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page not working for error-code 503?
Hi, I have these in my tomcat server's global web.xml file: error-page error-code404/error-code location/http404.jsp/location /error-page error-page error-code503/error-code location/maintenance.html/location /error-page It works for the 404 but not the 503 error code. What's wrong with it? I want to redirect users to a maintenance in progress page when I stop any webapp with the tomcat manager. But it always gives me the default tomcat HTTP status page when I request a stopped webapp. Please help. Thanks. Raymond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim Fritz Schneider wrote: Chris, Earlier versions of Tomcat were quite a bit slower than Apache when delivering static pages. For high volume work the preferred solution was to have Apache listening on port 80, and when it received a request for a page from in a J2EE context, to forward it to Tomcat, listening on 8080. A similar connector is used for Microsoft IIS. Tomcat had a major rewrite for Tomcat 5, and the performance difference on static pages is now minor. An Apache-to-Tomcat connector is now used for the following reasons (and probably a few more): 1) History. We started out that way, and there's no reason to change. 2) Expansion. We have been running Apache (or IIS) and we need to add a J2EE container. 3) Load balancing. We have too many requests for a single server, so we have Apache take the incoming requests and dole them out to three or four Tomcat servers. 4) Management. We have a lot of customers. Some need CGI, some need PHP, and some need J2EE. I hope this helps, Fritz -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:39 AM To: Tomcat Users List Subject: Re: Tomcat vs Apache Apache is not a J2EE container - you are off-roading on this one ;-) Thanks. That was pretty much what I wanted to find out. BTW, I keep hearing of people using Apache and Tomcat in conjunction. How does that work? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
(Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
I won't argue with no. 1 since I don't use SSL connectors in Tomcat. However, no. 2 can be mitigated with the commons-daemon project among other tricks and IMHO, not a valid argument against having Tomcat out front. Just my thoughts on the subject. :-) -David Mark wrote: I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. Please do not think that I am bashing Tomcat, juts pointing out some interesting findings that I have come across over time. I have been a supporter and user of tomcat back to the 3.x days and will continue. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
On 5/19/05, Mark [EMAIL PROTECTED] wrote: I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. The next Tomcat 5.5 release will include APR based connectors, where SSL will (predictably) use OpenSSL. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. I think you should have googled for that. You can use either kernel level redirection (iptables, for example), or use jsvc. -- 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: Tomcat/Apache/JK(2)?
Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to pre-compile JSP with jspC ant task
Hello, I'm trying to precompile jsp pages with Ant before deploying a Web Archive. The ant task I'm using is : !-- definition of jspc task === -- taskdef classname=org.apache.jasper.JspC name=jasper2 classpath path id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar / !-- My Jars, commented = -- !-- fileset dir=${source.libs.dir} include name=*.jar / /fileset -- !-- End of My Jars = -- fileset dir=${tomcat.home.dir}/server/lib include name=*.jar / /fileset fileset dir=${tomcat.home.dir}/common/lib include name=*.jar / /fileset fileset dir=${tomcat.home.dir}/bin include name=commons-logging-api.jar / /fileset /path /classpath /taskdef Notice I commented the reference to the library directory. The task is then used by: !-- = -- !-- Compiles the jsp pages-- !-- = -- target name=jspc depends= description=Compile jsp pages with jasper2 mkdir dir=${jspc.src.dir} / jasper2 verbose=1 validateXml=false uriroot=${eclipse.my-app.dir}/web webXmlFragment=build/WEB-INF outputDir=build/WEB-INF/src / javac destdir=${deploy.class.dir} classpathref=jspc.classpath src path=${jspc.src.dir} /src /javac /target When I launch the task, I got the following error on a jsp file: org.apache.jasper.JasperException: file:C:/eclipse/workspace/MyWebApp/web/jsp/login/index.jsp(18,0) The value for the useBean class attribute myapp.jspbean.IndexJspBean is invalid. The error in the index.jsp file come from the line: jsp:useBean id=indexJspBean scope=session class= myapp.jspbean.IndexJspBean / As I thought that I should give to jspC a reference to the Bean, I tried to package the Bean in a jar file, put it in library directory and then uncommenting the reference to the libray directory in the previous ant file sample, but I got then the following error: [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationCon text.java:220) [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:809) [jasper2] at org.apache.jasper.JspC.execute(JspC.java:945) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [jasper2] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [jasper2] at java.lang.reflect.Method.invoke(Unknown Source) [jasper2] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364) [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341) [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jasper2] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [jasper2] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunne r.java:633) [jasper2] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunne r.java:412) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [jasper2] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [jasper2] at java.lang.reflect.Method.invoke(Unknown Source) [jasper2] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:350) [jasper2] at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run (AntLaunchDelegate.java:182) [jasper2] at java.lang.Thread.run(Unknown Source) BUILD FAILED: C:\eclipse\workspace\MywebApp\build.xml:158: org.apache.jasper.JasperException I'm using the task shipped with tomcat 5.5.4. Have anyone an idea about what I'm missing ? Regards, -- Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
I don't know about others, but I prefer to run tomcat on port 8080 and then setup the router to redirect port 80 to 8080. it's rather easy to setup these days. peter On 5/19/05, Remy Maucherat [EMAIL PROTECTED] wrote: On 5/19/05, Mark [EMAIL PROTECTED] wrote: I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. The next Tomcat 5.5 release will include APR based connectors, where SSL will (predictably) use OpenSSL. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. I think you should have googled for that. You can use either kernel level redirection (iptables, for example), or use jsvc. -- 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]
Certificate Revocation
Hi All Once if the certificates are revoked, how do I make Tomcat to know which certificates are revoked. Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
self shut down of tomcat? or forced?
hi; i am using tomcat 5.5.9 over jdk1.4 + plus compatibility package. i basically have a simple question: considerung the log below from the catalina.log file. is it possible that tomcat goes from being started to suddenlly pausing stopping by itself (what would cause such a behavior)? or is it deffinite that someone messed with it forcing it to shutdown. catalina.out: . INFO: Server startup in 5490 ms May 19, 2005 1:06:43 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-194.230.33.9-80 May 19, 2005 1:06:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina62 May 19, 2005 1:07:13 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-194.230.33.9-80 May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load commons-logging.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/org.apache.commons.logging.LogFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.Logger. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load java.util.logging.Logger. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load java.util.logging.Logger. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:51 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.logging.impl.SimpleLog. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:54 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.logging.impl.SimpleLog. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:54 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.logging.impl.SimpleLog. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:54 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.logging.impl.SimpleLog. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:54 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.logging.impl.SimpleLog. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. May 19, 2005 1:07:54 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO:
Re: Tomcat/Apache/JK(2)?
I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Tomcat Tapestry DEBUG mode
Hello, I use Tomcat5.0, j2sdk1.4.2_04, Tapestry3.0.3, Torque3.1 and I have a Debug Mode in Tomcat I liked remove this please Thank you BRAJUS Cédric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context example
Patrick Thomas wrote: Hi Phil, To answer your question directly; no, in 5 you don't need (and shouldn't have) a context entry in the server.xml for a war file (or any webapp for that matter). Assuming the war contains a context.xml file in META-INF, then tomcat will use that one (it will copy it to {TomcatHome}\conf\Catalina\hostname\WarFilename.xml and use it from there). Hope that clears things up. Cheers, Patrick On 5/18/05, phil campaigne [EMAIL PROTECTED] wrote: Hi, I'm new to tomcat 5.0 and the use of context seems to have changed since 4.0. I have a war that expands outside ROOT when I place it in the webapps directory. If I place it in the ROOT directory it doesn't. I also noticed that 5.0 doesn't use a context entry for ROOT. So my questions are: 1. do I need a context entry in server.xml for my war in the webapps directory? 2. if yes, is there an example? thanks, Phil - 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] thanks Patrick, I appreciate the help. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Tomcat vs Apache
See comment in message. -Message d'origine- De : Tim Diggins [mailto:[EMAIL PROTECTED] Envoyé : jeudi 19 mai 2005 13:24 À : Tomcat Users List Objet : Re: Tomcat vs Apache (Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? SRV.11.2 Specification of Mappings In the web application deployment descriptor, the following syntax is used to define mappings: * A string beginning with a '/' character and ending with a '/*' postfix is used for path mapping. * A string beginning with a '*.' prefix is used as an extension mapping. * A string containing only the '/' character indicates the default servlet of the application. In this case the servlet path is the request URI minus the context pth and the path info is null. * All other strings are used for exact matches only. (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
Look here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html If you override the mapping by putting your own reference to the default in your web.xml for the app, you should be able to map it the way you want and then have a mapping to your servlet with the / path. Or have your Spring dispatcher catch everything and parse the path to redirect the static stuff. Haven't tried this myself, just some thoughts. Doug - Original Message - From: Tim Diggins [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 19, 2005 7:23 AM Subject: Re: Tomcat vs Apache (Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - 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]
server options
Could you, please, give me a peace of advice? I want to set Xmx parameter. When I enter the line -server -Xmx256m on the console in the Java Options Tab , the server does not start. [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java C:\Apache\Tomcat\bin\bootstrap.jar [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 When I enter the line -Xmx256m - the server starts. If the line -Xmx256m is stayed, will it be correct ? Thanks in advance, regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java and Java 1.5 on same machine
How can Java 1.4.2 and Java 1.5 co-exist on one server. I need to run Tomcat 55 with Java 1.5 and my development Tomcat with java 1.4.2 on the same machine. I have just installed Java 5 and Tomcat 5.5.9 for evaluation and testing before migrating to the newer versions. However I only have one test machine and that is also used for the existing development server and so therefore has Tomcat 5.0.18 and Java 1.4.2. Even though I went in to the profile and added JAVA5_HOME and CATALINA55_HOME and JRE5_HOME, and substituted those in the catalina.sh file. When I run startup.sh it will show JRE5_HOME as java1.5... but doing a ps will show that its actually using java1.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
OK, so I will admit that I am out of the loop with regards to #2. But I still have an issue with storing and passwords required to open key files in the clear. Is there some function that will handle this for me... On 5/19/05, Peter Lin [EMAIL PROTECTED] wrote: I don't know about others, but I prefer to run tomcat on port 8080 and then setup the router to redirect port 80 to 8080. it's rather easy to setup these days. peter On 5/19/05, Remy Maucherat [EMAIL PROTECTED] wrote: On 5/19/05, Mark [EMAIL PROTECTED] wrote: I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. The next Tomcat 5.5 release will include APR based connectors, where SSL will (predictably) use OpenSSL. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. I think you should have googled for that. You can use either kernel level redirection (iptables, for example), or use jsvc. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat manager not working
I upgraded Tomcat from 4.1.18 to 5.0.28 and get the Tomcat home page (index.jsp) ok. However, when I click on the link for the manager applicatiion and other applications, they result in 404 errors. 1. should I be configuring something to get the examples and manager applicactions working? thanks, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
locking problem mod_jk 1.2.13 ??
Hi, I have tested mod_jk 1.2.13. But sometimes my tomcat becomes completely be locked for a while. A downgrade to 1.2.10 solves that problem. So I mean there is a something like a locking problem in 1.2.13, but I don't know where and how. This is my config: Solaris 8(sparc) / Tomcat 4.1.30 / JDK 1.4.2_06 Solaris 10(sparc) / Apache 2.0.54 / mod_jk_1.2.13 workers.properties: ps=/ worker.list=loadbalancer,status,wss01 worker.mmbase03.port=8082 worker.mmbase03.host=10.0.0.208 worker.mmbase03.type=ajp13 worker.mmbase03.lbfactor=100 worker.mmbase03.disabled=false worker.mmbase04.port=8082 worker.mmbase04.host=10.0.0.228 worker.mmbase04.type=ajp13 worker.mmbase04.lbfactor=100 worker.mmbase04.disabled=true worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=mmbase03,mmbase04 Any ideas? Cheers, Sander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
Mark wrote: OK, so I will admit that I am out of the loop with regards to #2. But I still have an issue with storing and passwords required to open key files in the clear. Is there some function that will handle this for me... Assuming that the file is sensibly protected with OS security if an attacker is able to read this file then the chances are they already own the box or are well on the way to owning it and you have much bigger problems. As always with security, you need to consider the all of threats to your system, the possible mitigation actions and the balance between effort/cost of the mitigation and the acceptable level of risk for your system. In my experience the balance is usually in favour of availability rather than using a password on startup but each system is unique. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot Login After Upgrade From 4.0.4 to 5.0.28
Hi all, we recently upgraded from 4.0.4 to 5.0.28. We had a login page under 4.0.4 that worked fine. Now under 5.0.28, after we enter the username and password, we get a Page cannot be found and the address it's looking for is http://ipaddress:8080/WebApp/jsp/security/login/j_security_check. I have checked the tomcat-users.xml file and it looks fine. I believe that the web.xml file is fine. As I said, all was fine under 4.0.4 with the same web.xml. Does anyone have any suggestions? Thanks! John __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: server options
Sergey, The -server option is not used in Windows. Instead, you copy the jre\bin\server folder from the JDK into your JRE installation folder and select that JVM in your service configuration. Fritz -Original Message- From: Sergey Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 1:15 PM To: Tomcat users Subject: server options Could you, please, give me a peace of advice? I want to set Xmx parameter. When I enter the line -server -Xmx256m on the console in the Java Options Tab , the server does not start. [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java C:\Apache\Tomcat\bin\bootstrap.jar [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 When I enter the line -Xmx256m - the server starts. If the line -Xmx256m is stayed, will it be correct ? Thanks in advance, regards, Sergey mailto:[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: server options
That is a new change with Java in 1.5. 1.4 allowed the runtime -server option. Right? -Original Message- From: Fritz Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 5:06 PM To: 'Tomcat Users List'; 'Sergey Livanov' Subject: RE: server options Sergey, The -server option is not used in Windows. Instead, you copy the jre\bin\server folder from the JDK into your JRE installation folder and select that JVM in your service configuration. Fritz -Original Message- From: Sergey Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 1:15 PM To: Tomcat users Subject: server options Could you, please, give me a peace of advice? I want to set Xmx parameter. When I enter the line -server -Xmx256m on the console in the Java Options Tab , the server does not start. [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java C:\Apache\Tomcat\bin\bootstrap.jar [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 When I enter the line -Xmx256m - the server starts. If the line -Xmx256m is stayed, will it be correct ? Thanks in advance, regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: locking problem mod_jk 1.2.13 ??
Sander de Boer wrote: Hi, I have tested mod_jk 1.2.13. But sometimes my tomcat becomes completely be locked for a while. A downgrade to 1.2.10 solves that problem. So I mean there is a something like a locking problem in 1.2.13, but I don't know where and how. Is tomcat locked or your response is sometimes slow? If the response is slow set the: worker.mmbaseXX.socket_timeout=10 Other option is to set the worker.loadbalancer.retries=1 The problem is related with Tomcat 4.1.x closing its side of connection after 30 seconds of inactivity, so you can set the connectionTimeout=0 in server.xml or use socket_timeout with lower value (60 seconds by system default). Using connectionTimeout=0 is the best way (default on Tomcat5) but you'll have to be sure that maxTreads in server xml equals MaxClients in httpd.conf. Further option is to set the worker.mmbaseXX.prepost_timeout=1 if the socket_timeout doesn't work on Solaris. Unlike 1.2.10 mod_jk 1.2.13 correctly handles that case without loosing session affinity that might happen on earlier versions. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: server options
It's platform dependant, AFAIK. -Original Message- From: Jim Henderson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 3:11 PM To: Tomcat Users List Subject: RE: server options That is a new change with Java in 1.5. 1.4 allowed the runtime -server option. Right? -Original Message- From: Fritz Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 5:06 PM To: 'Tomcat Users List'; 'Sergey Livanov' Subject: RE: server options Sergey, The -server option is not used in Windows. Instead, you copy the jre\bin\server folder from the JDK into your JRE installation folder and select that JVM in your service configuration. Fritz -Original Message- From: Sergey Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 1:15 PM To: Tomcat users Subject: server options Could you, please, give me a peace of advice? I want to set Xmx parameter. When I enter the line -server -Xmx256m on the console in the Java Options Tab , the server does not start. [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java C:\Apache\Tomcat\bin\bootstrap.jar [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 When I enter the line -Xmx256m - the server starts. If the line -Xmx256m is stayed, will it be correct ? Thanks in advance, regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird characters on JSP output
Hi, I'm having a weird problem when Tomcat 5.5.9 generates JSP files. At the end of the generated HTML code, it prints three weird characters. Here is the java source code that Tomcat generates (look at the 3 characthers in color RED): I may guess the problem may came from some strange charset encoding configured in Tomcat, which is running on a Redhat 9 Linux machine (Linux 2.4.20-42.9.legacybigmem) Anyone had this problem before? TIA, Gabriel package org.apache.jsp.sener; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.sql.*; import java.io.*; import java.util.*; public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private final String getDato(final HttpServletRequest request, final JspWriter out, final boolean bMuestraDeBase, final ResultSet rs, final String attrRS, final String requestParam, final String defaultStr) throws SQLException { if (bMuestraDeBase) { if ( rs.getString(attrRS) != null ) return rs.getString(attrRS); return defaultStr; } else if ( request.getParameter(requestParam) != null ) { return request.getParameter(requestParam); } return defaultStr; } private final String getDato(final HttpServletRequest request, final JspWriter out, final boolean bMuestraDeBase, final ResultSet rs, final String attrRS, final String requestParam) throws SQLException { return getDato(request, out, bMuestraDeBase, rs, attrRS, requestParam, ); } // Muestra de la base de datos, y si es null muestra defaultStr private final String getDato(final HttpServletRequest request, final JspWriter out, final ResultSet rs, final String attrRS, final String defaultStr) throws SQLException { return getDato(request, out, true, rs, attrRS, null, defaultStr); } private final void saveLog(final HttpServletRequest request, final Connection c, String cambio) throws SQLException { final String userid = (String)request.getSession().getAttribute(userid); if ( userid == null ) { // se murio la session c.rollback(); return; } // obtiene los parametros for(Enumeration it=request.getParameterNames(); it.hasMoreElements();) { String name = (String)it.nextElement(); cambio += name + '=' + request.getParameter(name) + ';'; } PreparedStatement pstmt = c.prepareStatement( insert into BITACORA (ID_LOG, TIME_STAMP, ID_USUARIO, CAMBIO) values + (AUTOINCREMENT_BITACORA.NEXTVAL, SYSDATE, ?, ?)); pstmt.setInt(1, Integer.parseInt(userid)); pstmt.setCharacterStream(2, new StringReader(cambio), cambio.length()); pstmt.executeUpdate(); } private static java.util.Vector _jspx_dependants; static { _jspx_dependants = new java.util.Vector(5); _jspx_dependants.add(/includes/header.jsp); _jspx_dependants.add(/includes/db.jsp); _jspx_dependants.add(/includes/menu_admin.jsp); _jspx_dependants.add(/includes/footer.jsp); _jspx_dependants.add(/includes/db_close.jsp); } public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html; charset=UTF-8); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\n'); out.write('\n'); out.write(!DOCTYPE html PUBLIC \-//W3C//DTD HTML 4.01Transitional//EN\\r\n); out.write(\r\n); out.write(html\r\n); out.write(\r\n); out.write(\thead\r\n); out.write(\t\tmeta http-equiv=\content-type\ content=\text/html;charset=iso-8859-1\\r\n); out.write(\t\ttitleSENER/title\r\n); out.write(\t\tlink href=\../zsener.css\ rel=\stylesheet\ media=\screen\\r\n); out.write(\t\tscript language=\JavaScript\ src=\../includes/gen_validatorv2.js\ type=\text/javascript\/script\r\n); out.write(\t\tscript Language=\Javascript\\r\n); out.write(\r\n); out.write(\t\t\tfunction ponerIndexPopup(elpopup,elvalor)\r\n); out.write(\t\t\t{\r\n); out.write(\t\t\t\tvar i = 1;\r\n); out.write(\t\t\t\tvar longitud = elpopup.length - 1;\r\n); out.write(\t\t\t\tfor(i=1;i=longitud;i++)\r\n); out.write(\t\t\t\t\t{\r\n); out.write(\t\t\t\t\t\tif (elpopup.options[i].value == elvalor) { elpopup.selectedIndex = i;}\r\n); out.write(\t\t\t\t\t}\r\n); out.write(\t\t\t}\r\n); out.write(\t\t/script\r\n); out.write(\t/head\r\n); out.write(\r\n); out.write(\tbody bgcolor=\#ff\ leftmargin=\0\ marginheight=\0\ marginwidth=\0\ topmargin=\0\\r\n); out.write(\t\t!--inicio tope a--\r\n);
Re: error-page not working for error-code 503?
On 5/19/05, Raymond [EMAIL PROTECTED] wrote: Hi, I have these in my tomcat server's global web.xml file: error-page error-code404/error-code location/http404.jsp/location /error-page error-page error-code503/error-code location/maintenance.html/location /error-page It works for the 404 but not the 503 error code. What's wrong with it? I want to redirect users to a maintenance in progress page when I stop any webapp with the tomcat manager. But it always gives me the default tomcat HTTP status page when I request a stopped webapp. Please help. Thanks. Raymond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] is Tomcat is behind of Apache ?. Try renaming /maintenance.html to /maintenance.jsp. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
start tomcat-4.1.31 with jsvc?
Is it possible to start tomcat 4 with jsvc from tomcat-5.5.0? If so, how are you doing it? I tried it using the args given on the tomcat 5 doc page but it doesn't start, it just immediately exits with no error. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to change the webapp/ROOT setting?
Hello there, I've installed Apache2 and Tomcat5 on my PC (XP), and seperately they work fine. Then I installed JK2 to let Apache run JSPs, and there is the problem. Everything works fine, in the sense that I can run html files and Apache can run Tomcat, as I choose a .jsp to run, I get the error screen of Tomcat, saying that _The requested resource (/Time.jsp) is not available._ That file is in the server directory sth/html for Apache. If I copy that file in $TOMCAT_ROOT/webapps/ROOT/, then I can load it succesfully. So jsp pages are search for in that directory. Which setting in which file do I need to change so the Apache server directory is used instead of the tomcat one for JSP pages? Thanks, Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server opts
Could you, please, give me a peace of advice? I want to set Xmx parameter. When I enter the line -server -Xmx256m on the console in the Java Options Tab , the server does not start. [2005-05-19 20:38:54] [418 javajni.c] [error] CreateJavaVM Failed [2005-05-19 20:38:54] [903 prunsrv.c] [error] Failed initializing java C:\Apache\Tomcat\bin\bootstrap.jar [2005-05-19 20:38:54] [1131 prunsrv.c] [error] ServiceStart returned 2 When I enter the line -Xmx256m - the server starts. If the line -Xmx256m is stayed, will it be correct ? Thanks in advance, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat
Where is there a good clean install doc for installing jdk 1.4.2 on solaris 9 with tomcat 5.0. My programmer squad has magnolia and it installs tomcat 5 which needs jdk 1.4.2. I am new webserver admin. What is this crazy unix daemon stuff under setup? I think this stuff rocks. I have through osmosis somehow figured out JkMount but am still wondering what happens to my site when I send everything JkMount /* over to /tomcat/webapps and then JkUnMount /*.jsp and /servlet/* ? Also what happens when you set apache DocumentRoot to /tomcat/webapps? -- ___ Get your free email from http://mymail.bsdmail.com Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Environment in Tomcat 5.0.28 not working with multiple tomcat services in server.xml
Hi, I am back with some more questions. I have configured Tomcat to operate with multiple services and engines (I have different services since I need separate connector for different set of web applications). For some web applications inside the host, I have specified some environment entries. In the first service, everything works great. But in the second service, I cannot access any of them. Is it a problem in Tomcat, or a misconfiguration? Here is an outline of my server.xml file below. Basically, AttrName2 in the foo2 context cannot be found. If I swap the order of the services in server.xml, only the first service (on the top) behaves properly. Thanks, Iannis Server ... Listener .../ Listener .../ Service name=Service1 Connector ... / Engine name=Engine1 defaultHost=localhost ... Logger .../ Host name=localhost ... DefaultContext Environment name=DefaultAttrName type=java.lang.String value=Some default value/ /DefaultContext Context path=/foo reloadable=false docBase=C:\foo.war workDir=C:\ tomcat\work\foo Environment name=AttrName type=java.lang.String value=myValueOK/ /Context /Host /Engine /Service Service name=Service2 Connector .../ Engine name=Engine2 defaultHost=localhost ... Logger .../ Host name=localhost ... Context path=/foo2 reloadable=false docBase=C:\foo2.war workDir=C:\ tomcat\work\foo2 Environment name=AttrName2 type=java.lang.String value=MyLostValue/ /Context /Host /Engine /Service /Server
tomcat
Sorry if my last post didn't make much sense toward the end. Where is there a good clean download unpack install doc for installing jdk 1.4.2 on solaris 9 with tomcat 5.0? My programmer squad has magnolia and it installs tomcat 5 which needs jdk 1.4.2. I am new webserver admin. What is this crazy unix daemon stuff under setup? I think this stuff rocks. I have through osmosis somehow figured out JkMount but am still wondering what happens to my site when I send everything JkMount /* over to /tomcat/webapps and then JkUnMount /*.jpg and /*.gif ? Will content from the webapp be all jpg n gif or will this mess up stuff like cascade style sheets etc. Anyone use magnolia? Also what happens when you set apache DocumentRoot to /tomcat/webapps? this seems like a nice trick but will it cause problems? Does anyone here use tomcat by itself for major production site? The docs say it can use SSL, and the gentleman above said that it can be made secure. -- ___ Get your free email from http://mymail.bsdmail.com Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
{Problems getting Tomcat running on OS 10.3.9)
Begin forwarded message: From: Christopher Barbee [EMAIL PROTECTED] Date: May 19, 2005 6:08:44 PM PDT To: tomcat-user@jakarta.apache.org Subject: Mime-Version: 1.0 (Apple Message framework v622) Bcc: Christopher Barbee [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: [EMAIL PROTECTED] Content-Transfer-Encoding: 7bit I am having difficulty getting Tomcat to run on OS 10.3.9 with latest 1.4.2 java. I am able to get $CATALINA_HOME/bin/catalina.sh version to work, but startup doesn't seem to want to work. Any suggestions from other MAc users would be appreciated. Chris Christopher-Barbees-Computer:~/Desktop christopherbarbee$ $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr Christopher-Barbees-Computer:~/Desktop christopherbarbee$ Christopher Barbee Senior Software Engineer SenySoft 3153 South Court Palo Alto, CA 94306 [EMAIL PROTECTED] Christopher Barbee Senior Software Engineer SenySoft 3153 South Court Palo Alto, CA 94306 [EMAIL PROTECTED]
problem: Session invalidation in the servlet accessed via foreign context
Hi all, It seems that there is a problem with session invalidation in tomcat5.0. Please refer to the explanation below: 1. HttpSession session = req.getSession(true); // get existing user session or create one if does not exist 2. session.invalidate(); // invalidate user session 3. session = req.getSession(true); // create a new session ( ie a valid session) The above three lines of code are commonly used to invalidate the user session and then create a new one. Tomcat implements this behaviour by creating a new session object in line No.3. However, in tomcat5.0 implementation (5.0.28) when the above code is accessed via foreign context it does not create a new session object and therefore a session is still invalid after lineNo.3 is executed. The following code demonstrates the problem: // servlet that runs in the same tomcat instance but in a different context to DebuggerServlet's context public class ForeignContextServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HttpSession session = req.getSession(true); session.invalidate(); session = req.getSession(true); // !!PROBLEM!! does NOT create a new session when accessed via foreign context's dispatcher } } // servlet that accesses ForeignContextServlet via foreign context's dispatcher public class DebuggerServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ServletContext ctx = getServletContext(); // dispatch the request to the servlet in a different context ServletContext foreignContext = ctx.getContext(/AccessCommon); foreignContext.getRequestDispatcher(/foreignContextServlet).include(req, res); } } Such behaviour is only observed in tomcat 5.0 (have not tried on tomcat5.5); tomcat3 and tomcat4 do create new session objects in lineNo.3 I greatly appreciate your comments on this issue. Kind regards, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache vs Tomcat WRT Security
On Thu, 19 May 2005, Mark wrote: I was very interested in the discussion concerning Apache vs Tomcat WRT Performance. While I cannot argue with the performance numbers, I do like putting Apache in front of Tomcat for 2 reasons that I have found so far. 1. SSL. If I am going to be serving pages whether they be dynamic or static, I think Apache handles the SSL communications and key storage better. In tests that I have run, the crypto that needs to be done to support SSL is faster in C than Java. Also, Tomcat stores any key information in a flat file, where Apache will prompt for a password on startup. Now some administrators might like this better, because Tomcat will then start automatically at boot time, I would not want any password of mine sitting in the clear in a test file. Agreed. 2. If you are hosting your site using port 80 on Unix boxes this means running Tomcat as root. I can think of very few reasons why Tomcat needs to be run as root. Apache has the ability to 'downgrade' user privileges once Apache is started. jscv will allow you to do this with Tomcat, a simple guide to setting this up is here http://www.mythic-beasts.com/support/topic_vds_java.html Yours, Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ the Flat Earth Society announced in 1995 that their membership was global - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Problems getting Tomcat running on OS 10.3.9)
Have you installed that extra lib that allows one to run tomcat 5.5.x on jdk 1.4.x? Otherwise you'll need to update to jdk 1.5... Michael - Original Message - From: Christopher Barbee [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, May 19, 2005 6:11 PM Subject: {Problems getting Tomcat running on OS 10.3.9) Begin forwarded message: From: Christopher Barbee [EMAIL PROTECTED] Date: May 19, 2005 6:08:44 PM PDT To: tomcat-user@jakarta.apache.org Subject: Mime-Version: 1.0 (Apple Message framework v622) Bcc: Christopher Barbee [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: [EMAIL PROTECTED] Content-Transfer-Encoding: 7bit I am having difficulty getting Tomcat to run on OS 10.3.9 with latest 1.4.2 java. I am able to get $CATALINA_HOME/bin/catalina.sh version to work, but startup doesn't seem to want to work. Any suggestions from other MAc users would be appreciated. Chris Christopher-Barbees-Computer:~/Desktop christopherbarbee$ $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /Users/christopherbarbee/Desktop/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr Christopher-Barbees-Computer:~/Desktop christopherbarbee$ Christopher Barbee Senior Software Engineer SenySoft 3153 South Court Palo Alto, CA 94306 [EMAIL PROTECTED] Christopher Barbee Senior Software Engineer SenySoft 3153 South Court Palo Alto, CA 94306 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: weird characters on JSP output
Errr the characters didn't show up in the email... for more information, at the end of the page, the browser shows me the following characters: Iuml;raquo;iquest; TIA On 5/19/05, Gabriel Belingueres [EMAIL PROTECTED] wrote: Hi, I'm having a weird problem when Tomcat 5.5.9 generates JSP files. At the end of the generated HTML code, it prints three weird characters. Here is the java source code that Tomcat generates (look at the 3 characthers in color RED): I may guess the problem may came from some strange charset encoding configured in Tomcat, which is running on a Redhat 9 Linux machine (Linux 2.4.20-42.9.legacybigmem) Anyone had this problem before? TIA, Gabriel package org.apache.jsp.sener; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.sql.*; import java.io.*; import java.util.*; public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private final String getDato(final HttpServletRequest request, final JspWriter out, final boolean bMuestraDeBase, final ResultSet rs, final String attrRS, final String requestParam, final String defaultStr) throws SQLException { if (bMuestraDeBase) { if ( rs.getString(attrRS) != null ) return rs.getString(attrRS); return defaultStr; } else if ( request.getParameter(requestParam) != null ) { return request.getParameter(requestParam); } return defaultStr; } private final String getDato(final HttpServletRequest request, final JspWriter out, final boolean bMuestraDeBase, final ResultSet rs, final String attrRS, final String requestParam) throws SQLException { return getDato(request, out, bMuestraDeBase, rs, attrRS, requestParam, ); } // Muestra de la base de datos, y si es null muestra defaultStr private final String getDato(final HttpServletRequest request, final JspWriter out, final ResultSet rs, final String attrRS, final String defaultStr) throws SQLException { return getDato(request, out, true, rs, attrRS, null, defaultStr); } private final void saveLog(final HttpServletRequest request, final Connection c, String cambio) throws SQLException { final String userid = (String)request.getSession().getAttribute(userid); if ( userid == null ) { // se murio la session c.rollback(); return; } // obtiene los parametros for(Enumeration it=request.getParameterNames(); it.hasMoreElements();) { String name = (String)it.nextElement(); cambio += name + '=' + request.getParameter(name) + ';'; } PreparedStatement pstmt = c.prepareStatement( insert into BITACORA (ID_LOG, TIME_STAMP, ID_USUARIO, CAMBIO) values + (AUTOINCREMENT_BITACORA.NEXTVAL, SYSDATE, ?, ?)); pstmt.setInt(1, Integer.parseInt(userid)); pstmt.setCharacterStream(2, new StringReader(cambio), cambio.length()); pstmt.executeUpdate(); } private static java.util.Vector _jspx_dependants; static { _jspx_dependants = new java.util.Vector(5); _jspx_dependants.add(/includes/header.jsp); _jspx_dependants.add(/includes/db.jsp); _jspx_dependants.add(/includes/menu_admin.jsp); _jspx_dependants.add(/includes/footer.jsp); _jspx_dependants.add(/includes/db_close.jsp); } public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html; charset=UTF-8); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession (); out = pageContext.getOut(); _jspx_out = out; out.write('\n'); out.write('\n'); out.write(!DOCTYPE html PUBLIC \-//W3C//DTD HTML 4.01Transitional//EN\\r\n); out.write(\r\n); out.write (html\r\n); out.write(\r\n); out.write(\thead\r\n); out.write(\t\tmeta http-equiv=\content-type\ content=\text/html;charset=iso-8859-1\\r\n); out.write(\t\ttitleSENER/title\r\n); out.write(\t\tlink href=\../zsener.css\ rel=\stylesheet\ media=\screen\\r\n); out.write(\t\tscript language=\JavaScript\ src=\../includes/gen_validatorv2.js\ type=\text/javascript\/script\r\n); out.write(\t\tscript Language=\Javascript\\r\n); out.write(\r\n); out.write(\t\t\tfunction ponerIndexPopup(elpopup,elvalor)\r\n); out.write(\t\t\t{\r\n); out.write(\t\t\t\tvar i = 1;\r\n); out.write(\t\t\t\tvar longitud = elpopup.length - 1;\r\n); out.write(\t\t\t\tfor(i=1;i=longitud;i++)\r\n);
Re: tomcat
On Fri, May 20, 2005 at 08:33:42AM +0800, . . wrote: : Where is there a good clean download unpack install doc for installing jdk : 1.4.2 on solaris 9 with tomcat 5.0? The JDK install instructions should be on the same site as the JDK download. =) I recall Sun ships JDKs as shell archives, so you can just run sh {archive file} to extract the bundle. (Change to the directory where you want the JDK installed, of course.) Same for Tomcat: notice, it ships as a zip or tar.gz file. Change to your chosen install directory, extract, run. : Also what happens when you set apache DocumentRoot to /tomcat/webapps? this : seems like a nice trick but will it cause problems? Problems is too strong a term; but it can lead people to equate Tomcat webapps directory with webserver document root. This is not always the case; and to not think in a J2EE frame of mind when setting up a Tomcat environment can lead to long-term architectural problems. : Does anyone here use tomcat by itself for major production site? The docs say : it can use SSL, and the gentleman above said that it can be made secure. Search the archives. This question comes up every so often, and plenty of people chime in with responses. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on XP
Hi, It works fine now. I used jDK 1_5_0_03, instead of JDK 1.4.x. Thanks, -Jobish P All men by nature desire to know- Aristotle On Wed, 18 May 2005, Guy Katz wrote: did you put the jdk1.4 tomcat compatibility package in there? i dont know if this is the cause but i need it anyway. its diwnloadable from the same page you download tomcat and is called something like 5.5.9_compat -Original Message- From: Jobish P [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 7:33 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat on XP Hi, I am not getting the tomcat home page while trying to run tomcat in Windows XP. I had set the JAVA_HOME and CATALINA_HOME path variables. And stopped other servers(IIS ans apche) running in the system. But I couldn't see anything by typing http://localhost:8080. The utilitie's that I used are tomcat 5.5.9.exe and j2sdk1.4.2_07. It will be of great help if any of you could help in this regard. cheers, -Jobish P - 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]
Can't Undeploy Struts Applications
Is this a bug? So, I deploy the struts-blank webapp to my webapps directory under tomcat. Everything works fine. Then I try to undeploy it under the manager, and it responds the a message, context undeployed. But when I do a list under the tomcat manager it is still there. If I look under the webapps directory, my struts-blank directory is still there. I look under the application directory under webapps, and I find that the commons-digester.jar, commons-validator.jar, and struts.jar are still there. If I try to delete them, I cannot. My operating complains that these files are still in use by another application. I shut down tomcat, and presto, the application is really undeployed. I actually found this problem working on my own application, and found that the build script failed to (re) deploy even though I undeployed an application. Thus I have two questions: 1) If an application is not fully undeployed, shouldn't the tomcat manager complain about it with a message or warning, rather than just ok? 2) Is there a known issue/bug with tomcat not releasing .jar resources (specifically the ones mentioned above) of applications being undeployed? I have searched under bugzilla, and there seems to be a undeploy bug identified and fixed, but I am not sure if it applies to what I have identified here or not. Versions: Struts 1.2.4 Tomcat: 5.5 J2SE: 5.0 Any Help?!?!? Warm Regards, Harry
Re: Apache vs Tomcat WRT Security
David Smith wrote: I won't argue with no. 1 since I don't use SSL connectors in Tomcat. However, no. 2 can be mitigated with the commons-daemon project among other tricks and IMHO, not a valid argument against having Tomcat out front. Just my thoughts on the subject. :-) I'll just add to the mix... The way I see it, you will use Apache as a front end for other reasons. Some of them might be: 1. You already have a web site, into which you would like to plug-in your applications 2. You would like to use Apache's mod_rewrite 3. You would like to mix PHP, ASP, Perl or something else on your global site 4. You have a need for exotic authentication, like LDAP or Kerberos5/SPNEGO (read: MS Active Directory) 5. You have a need for any of those nifty modules of Apache 6. You would like to use dedicated servers for TC's application serving and load balance Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Locked jar during Ant undeploy on Tomcat 5.5.3
I too have this problem too. This problem is not specific to your application. If you choose to deploy that ever so simple struts-blank, and then undeploy it, the undeploy works, but the locked jar files are still there. -Original Message- From: Quinten Verheyen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 7:01 PM To: Tomcat Users List Subject: RE: Locked jar during Ant undeploy on Tomcat 5.5.3 Hi, I'm experiencing a similar problem, I read the Tomcat docs and this thread first before submitting. In my case, on freshly unzipped Tomcat versions 5.0.25, 5.0.28 and 5.5.4 the catalina ant task 'undeploy' encounters a locked jar-file situation. I suspect the jar-file is locked because the webapp's web.xml file specifies configuration files from that jar-file (n.b. for Spring context loading). The Tomcat production version I want to undeploy on is 5.0.25. Also, the logs indicated Tomcat tries to redeploy the webapp after executing the undeploy task : INFO: Server startup in 12359 ms 31-Mar-2005 17:07:37 org.apache.catalina.core.ContainerBase log INFO: Removing web application at context path /mywebapp 31-Mar-2005 17:07:46 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /mywebapp from URL file:C:\webservers\jakarta-tomcat-5.0.28\webapps\mywebapp 31-Mar-2005 17:07:46 org.apache.catalina.startup.ContextConfig applicationConfig INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mywebapp ] Various options seem open to me, I want to try this list first because I can imagine this problem is common and goes beyond simple configuration errors ... Kind regards, Q -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 20:15 To: tomcat-user@jakarta.apache.org Subject: Re: Locked jar during Ant undeploy on Tomcat 5.5.3 Thank you for pointing out these redundant attributes. I applied these changes to the context, but got the same results. If I have time, I'll put together a small application that demonstrates the problem and send that to you. If the issue is real, then I think there will be someone to provide a webapp. Yes, and that person's me! :) I just sent a test WAR that demonstrates the problem directly to your Gmail address. As I'm using Gmane, and Gmane does not allow attachments, I could not attach the WAR to this message. Derek - 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: Java and Java 1.5 on same machine
Just use different ports. On 5/19/05, Didier McGillis [EMAIL PROTECTED] wrote: How can Java 1.4.2 and Java 1.5 co-exist on one server. I need to run Tomcat 55 with Java 1.5 and my development Tomcat with java 1.4.2 on the same machine. I have just installed Java 5 and Tomcat 5.5.9 for evaluation and testing before migrating to the newer versions. However I only have one test machine and that is also used for the existing development server and so therefore has Tomcat 5.0.18 and Java 1.4.2. Even though I went in to the profile and added JAVA5_HOME and CATALINA55_HOME and JRE5_HOME, and substituted those in the catalina.sh file. When I run startup.sh it will show JRE5_HOME as java1.5... but doing a ps will show that its actually using java1.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]