RE: Encryption algorithms usage in Tomcat
Hi, Could you please redirect me to right point of contact. I need encryption usage details in Tomcat to receive an export control classification number (ECCN). Please let me know in case any other details are needed. Thanks, -Hitesh -Original Message- From: Hitesh Raghav [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 5:16 AM To: users@tomcat.apache.org Subject: Encryption algorithms usage in Tomcat Hi, Which encryption algorithms are used in Tomcat? Could I get detailed information about usage of these algorithms in Tomcat? Is there any change in encryption algorithm usage in Tomcat from v5.5.7 to v5.5.26 and v6.0.16? Thanks, -Hitesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web application issue
I have a web application installed in tomcat 5.5.20 on linux machine which uses spring, hibernate and mule 1.4, I need to configure my application components through XML configuration file. For this I have a Configuration manager which reloads the XML file (comp-config.xml e.g.) and creates a configuration object. The configuration manager uses javax.xml.parsers.DocumentBuilder to parse and create a document out of the xml config file. 1. when I start the web application and immediatly change the config file without accessing configmanager (to load the configuration), the application is able to show the changed configuration. 2. If I start the web application and access the configuration manager for default configuration it show me that, but when I modify the configuration file the application gets reloaded. For this I set the reload option in my context file to false, so that even I change the configuration the application doesn't reload. But my problem is that, in scenareo 2, reload is set to false(application not reloaded) and if I change the configuration file or delete the file (comp-config.xml e.g.) the configuration manager still shows the default configuration (note. it is able to read the file even it is deleted). Note : This appication module works fine when run as a stand alone application. 1. how configuration manager(my application component) is able to read the xml file even it is deleted? does tomcat loads the file in memory when xml file is loaded in memory as a XML Document? -- View this message in context: http://www.nabble.com/Web-application-issue-tp16296486p16296486.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encryption algorithms usage in Tomcat
Hi, You want to look at this page: http://www.apache.org/licenses/exports/ You'll need some time to understand it. I did this a couple of years ago. When I last I checked HTTPS support is the only encryption that Tomcat does. I don't believe that HTTPS is subject to ECCN, but I'm not a lawyer, yada yada . Good luck, Regards, Dave On Mar 26, 2008, at 1:18 AM, Hitesh Raghav wrote: Hi, Could you please redirect me to right point of contact. I need encryption usage details in Tomcat to receive an export control classification number (ECCN). Please let me know in case any other details are needed. Thanks, -Hitesh -Original Message- From: Hitesh Raghav [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 5:16 AM To: users@tomcat.apache.org Subject: Encryption algorithms usage in Tomcat Hi, Which encryption algorithms are used in Tomcat? Could I get detailed information about usage of these algorithms in Tomcat? Is there any change in encryption algorithm usage in Tomcat from v5.5.7 to v5.5.26 and v6.0.16? Thanks, -Hitesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: semi-OT: lambdaprobe and logging on tc6?
Hi *; Am Thu, 20 Mar 2008 10:57:20 +0100 schrieb Kristian Rink [EMAIL PROTECTED]: [...] webapp: /xport 04 Mrz 2008 12:05:46 [http-8080-4] ERROR org.jstripe.tomcat.probe.controllers.logs.ListLogsController - Could not interrogate context logger for /xport. Enable debug logging to se e the trace stack 04 Mrz 2008 12:05:46 [http-8080-4] DEBUG org.jstripe.tomcat.probe.controllers.logs.ListLogsController - java.lang.NoSuchMethodError: org.apache.catalina.Context.getLogger()Lorg/ap ache/commons/logging/Log; To add to this: Building a simple project just using one servlet, log4j and no commons-logging, I have found that everything works perfectly, the log file shows up in lambdaprobes log browser, no issues so far. But isn't commons-logging just a wrapper around log4j and/or other logger implementations? Somehow this kind of behaviour is sort of confusing me Can anyone get my mind right on that again? :) TIA and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
Bad Gateway wouldn't be generated by tomcat unless your tomcat code was somehow getting content from another site. Given your most recent log snippets have apparently been from an httpd error log file instead of tomcat's logs (like catalina.out), I'm going to guess your mod_jk setup in httpd isn't working. JSP compile errors don't show up in the httpd error log and mod_jk errors don't show up in catalina.out under any normal setup. As Chuck points out, there isn't just one problem here, there's several. Start by making sure your tomcat is working first. You can do that by making sure a standard http connector is setup to let's say port 8080 and then hitting http://ww3.nisonline.org:8080/test.jsp. When that works, fix your mod_jk setup. --David Tommy Peterson wrote: When the unable to compile class for JSP error showed up (it isn't anymore) it would mention the jsp file that I was calling. I intentionally called several different jsp files to see if it was the coding, althougth this application works now, and has for years, on a different server just fine (I need to move it)--so it isn't a code issue. The error points to a line in that file. I have looked to see if the class is there--it is. Anyway, this says to me that Java is somehow not being used or installed correclty--things can't compile. I verified that Java was installed correctly. Anyway, what happens now is that the page just sits there and then after a few seconds I get a Bad Gateway page. A 502 error. Try it: ww4.nislonline.org or use the other one that I am now pointing to the standard jsp examples to test whether Tomcat shows up: ww3.nislonline.org You'll see the HTML page but try to submit the post: same issue as it is posting to a jsp page. I don't understand why this has to be this difficult. I have followed the documentation. And it seems I just keep running into new brick walls. Thanks. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 3:55 PM -0500 wrote: In that case, there should have been some text after 'org.apache.jasper.JasperException: Unable to compile class for JSP: ' citing the line number and problem with the jsp. Is it really just blank where compile error message should be? Can you try to restart tomcat and see if that clears the issue? --David Tommy Peterson wrote: I went all the way to the top of the error log for the first error; there were two, one after the other: [error] jk_ajp_common.c (1004): (ajp13) can't receive the response message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4540 [Tue Mar 25 15:02:44.320 2008] [5796:5300] [error] jk_ajp_common.c (1766): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 2:26 PM -0500 wrote: From experience, this error is usually the result of an earlier error. Look further up your logs to the first error that occurs after you request this page. Fix that and this one should go away. --David Tommy Peterson wrote: this is the problem with every jsp page I try to hit. does this mean java can't compile the java beans? I don't get this. I did a search and lot of a ppl seem to have issue but no solutions. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 1:03 PM -0500 wrote: Sorry about that. Tomcat 6.0.1.4 Apache 2.2.9 What is the command to get a
Re: Tomcat 6.0 clustering
Hi Filip, These may be very basic questions. 1. What is heart beat in Tomcat clustering? 2. From which version of Tomcat, clustering is implemented? 3. In how many ways clustering is done in Tomcat 6.x? 4. In the article, http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html, It was mentioned like a) If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance, in most cases Tomcat is smart enough to resolve this on it's own by autodetecting available ports in the range 4000-4100. Please tell me where I can find tcpListenPort attribute. b) Do I need to update my server.xml file with the default setting given for the cluster element. Please tell me if any other documentation available for clustering Tomcat 6.x On 25/03/2008, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Ch Praveena wrote: Hi, Are there anyone who have done with clustering Tomcat 6.0? I have lot many doubts about them. what's your question? No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 3/23/2008 6:50 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Praveena Chalamcharla, Securview
RES: Securing Tomcat
We are currently using the steps published by OWASP too, in terms of tomcat configuration (there are application related security issues that are not covered by the article). Is there something else we should be aware of, that is not described? I have no personal experience with this but it might be a useful resource: http://www.owasp.org/index.php/Securing_tomcat - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Encryption algorithms usage in Tomcat
Thank you very much Dave for quick response. I didn't find any encryption details about Tomcat at page: http://www.apache.org/licenses/exports/. Does it mean that Tomcat does not use any encryption? Is there any URL about encryption usage details in Tomcat? Regards, -Hitesh +91-9960623311 -Original Message- From: David Fisher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 12:30 PM To: Tomcat Users List Subject: Re: Encryption algorithms usage in Tomcat Hi, You want to look at this page: http://www.apache.org/licenses/exports/ You'll need some time to understand it. I did this a couple of years ago. When I last I checked HTTPS support is the only encryption that Tomcat does. I don't believe that HTTPS is subject to ECCN, but I'm not a lawyer, yada yada . Good luck, Regards, Dave On Mar 26, 2008, at 1:18 AM, Hitesh Raghav wrote: Hi, Could you please redirect me to right point of contact. I need encryption usage details in Tomcat to receive an export control classification number (ECCN). Please let me know in case any other details are needed. Thanks, -Hitesh -Original Message- From: Hitesh Raghav [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 5:16 AM To: users@tomcat.apache.org Subject: Encryption algorithms usage in Tomcat Hi, Which encryption algorithms are used in Tomcat? Could I get detailed information about usage of these algorithms in Tomcat? Is there any change in encryption algorithm usage in Tomcat from v5.5.7 to v5.5.26 and v6.0.16? Thanks, -Hitesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 and Apache 2.2
Hello, I am trying to do the following: I want to use www.kriedertech.com instead of www.kriedertech.com/blog. I am using the mod_jk for the connector to Apache. I am having alot of problems doing this. Can anyone help with this? Lasana
RE: Solaris 10 Tomcat performance maxes out at 2 threads
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Solaris 10 Tomcat performance maxes out at 2 threads I have a poor understanding of how Tomcat spawns/manages threads. It's pretty simple, all under control of the attributes on the Connector elements in server.xml: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Each Connector maintains a pool of threads for servicing requests on that connection. When a request arrives, a thread from the pool is chosen (or created) and performs all the processing for that request, including calling whatever valves, filters, and servlets are in the chain. Once the request is finished, the thread returns to the pool. Look at the doc and the settings in server.xml for the limits on concurrency and number of idle threads. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
It is even clearer to me that you haven't read the Tomcat documentation that Apache has out there online: For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. This is because it makes modifing the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat. Context elements may be explicitly defined: in the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps in the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml. if the previous file was not found for this application, in an individual file at /META-INF/context.xml inside the application files inside a [ http://tomcat.apache.org/tomcat-5.5-doc/config/host.html ]Host element in the main conf/server.xml http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 5:02 PM -0500 wrote: From: Tommy Peterson [mailto:[EMAIL PROTECTED] Subject: Re: another apache/tomcat/mod_jk/virtual hosting question/issue I don't understand why this has to be this difficult. Because you seem to be trying to solve multiple problems simultaneously, rather than isolating them and taking care of one at a time. Until you can demonstrate that the webapps are functioning with direct browser-to-Tomcat connections, don't introduce httpd into the mix. I have followed the documentation. It's clear that you haven't (or else you're using sadly outdated documentation), or you would not be putting your Context elements in Tomcat's conf/server.xml file. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
It is actually because I have gotten such inconsistent experiences from this set up . . . the Tomcat apps were being served up at one point which is what I alluded to in my original post. But to fix the failure of Apache to forward requests to Tomcat I made changes; then this came about. It is one problem after the other. There is no complete documentation on this. It is obscure at best with people making references to a workers.properties file but they don't say which one. No wonder the forum is full of pleas for help in this area. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 5:02 PM -0500 wrote: From: Tommy Peterson [mailto:[EMAIL PROTECTED] Subject: Re: another apache/tomcat/mod_jk/virtual hosting question/issue I don't understand why this has to be this difficult. Because you seem to be trying to solve multiple problems simultaneously, rather than isolating them and taking care of one at a time. Until you can demonstrate that the webapps are functioning with direct browser-to-Tomcat connections, don't introduce httpd into the mix. I have followed the documentation. It's clear that you haven't (or else you're using sadly outdated documentation), or you would not be putting your Context elements in Tomcat's conf/server.xml file. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
Thanks for your advice David. I will abandon this forum and try to figure it out myself. Tomcat Users List users@tomcat.apache.org on Wednesday, March 26, 2008 at 7:46 AM -0500 wrote: Bad Gateway wouldn't be generated by tomcat unless your tomcat code was somehow getting content from another site. Given your most recent log snippets have apparently been from an httpd error log file instead of tomcat's logs (like catalina.out), I'm going to guess your mod_jk setup in httpd isn't working. JSP compile errors don't show up in the httpd error log and mod_jk errors don't show up in catalina.out under any normal setup. As Chuck points out, there isn't just one problem here, there's several. Start by making sure your tomcat is working first. You can do that by making sure a standard http connector is setup to let's say port 8080 and then hitting http://ww3.nisonline.org:8080/test.jsp. When that works, fix your mod_jk setup. --David Tommy Peterson wrote: When the unable to compile class for JSP error showed up (it isn't anymore) it would mention the jsp file that I was calling. I intentionally called several different jsp files to see if it was the coding, althougth this application works now, and has for years, on a different server just fine (I need to move it)--so it isn't a code issue. The error points to a line in that file. I have looked to see if the class is there--it is. Anyway, this says to me that Java is somehow not being used or installed correclty--things can't compile. I verified that Java was installed correctly. Anyway, what happens now is that the page just sits there and then after a few seconds I get a Bad Gateway page. A 502 error. Try it: ww4.nislonline.org or use the other one that I am now pointing to the standard jsp examples to test whether Tomcat shows up: ww3.nislonline.org You'll see the HTML page but try to submit the post: same issue as it is posting to a jsp page. I don't understand why this has to be this difficult. I have followed the documentation. And it seems I just keep running into new brick walls. Thanks. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 3:55 PM -0500 wrote: In that case, there should have been some text after 'org.apache.jasper.JasperException: Unable to compile class for JSP: ' citing the line number and problem with the jsp. Is it really just blank where compile error message should be? Can you try to restart tomcat and see if that clears the issue? --David Tommy Peterson wrote: I went all the way to the top of the error log for the first error; there were two, one after the other: [error] jk_ajp_common.c (1004): (ajp13) can't receive the response message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4540 [Tue Mar 25 15:02:44.320 2008] [5796:5300] [error] jk_ajp_common.c (1766): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 2:26 PM -0500 wrote: From experience, this error is usually the result of an earlier error. Look further up your logs to the first error that occurs after you request this page. Fix that and this one should go away. --David Tommy Peterson wrote: this is the problem with every jsp page I try to hit. does this mean java can't compile the java beans? I don't get this. I did a search and lot of a ppl seem to have issue but no solutions. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
Re: Tomcat 5.5 and Apache 2.2
Hi - There can be three cases (at least) (1) Your blog software insists on a folder name - a weblog id. Having played with Roller 4 and Tomcat, I was defeated in trying to get what you want. They are working on it in their next version, and people have reported how to do it. If you are using Roller you should be able to get help there. What is your blog application? (2) You need to adjust how apache rewrites the url. (3) You need to adjust your context or server.xml in tomcat. Regards, Dave On Mar 26, 2008, at 8:20 AM, Lasana Crider wrote: Hello, I am trying to do the following: I want to use www.kriedertech.com instead of www.kriedertech.com/blog. I am using the mod_jk for the connector to Apache. I am having alot of problems doing this. Can anyone help with this? Lasana - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to read shell environment variables
On Fri, Feb 29, 2008 at 2:23 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: When running a Java program under Win2008, what value does the system property os.name have? windows vista What JVM version are you running? (This has the potential of being a JVM, not Tomcat, problem. The value of the aforementioned system property should tell us which.) 1.6.0_03 In the code for CGIServelet.java there is no check for windows vista I have passShellEnvironment set to true as it's required for the scripts to run. Regards, Patrick - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
Which workers.properties file? It's the one specified by the JkWorkersFile directive in your httpd configuration. If you have more than one, you might want to consider getting rid of the others just to eliminate confusion. Official mod_jk connector docs can be found at http://tomcat.apache.org/connectors-doc/ I suspect for most people who have pleas here it's because they search the web and found some book or article that's either years old and out of date or written by someone who's offering really bad advice. --David Tommy Peterson wrote: It is actually because I have gotten such inconsistent experiences from this set up . . . the Tomcat apps were being served up at one point which is what I alluded to in my original post. But to fix the failure of Apache to forward requests to Tomcat I made changes; then this came about. It is one problem after the other. There is no complete documentation on this. It is obscure at best with people making references to a workers.properties file but they don't say which one. No wonder the forum is full of pleas for help in this area. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 5:02 PM -0500 wrote: From: Tommy Peterson [mailto:[EMAIL PROTECTED] Subject: Re: another apache/tomcat/mod_jk/virtual hosting question/issue I don't understand why this has to be this difficult. Because you seem to be trying to solve multiple problems simultaneously, rather than isolating them and taking care of one at a time. Until you can demonstrate that the webapps are functioning with direct browser-to-Tomcat connections, don't introduce httpd into the mix. I have followed the documentation. It's clear that you haven't (or else you're using sadly outdated documentation), or you would not be putting your Context elements in Tomcat's conf/server.xml file. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to read shell environment variables
From: Patrick Lee [mailto:[EMAIL PROTECTED] Subject: Re: Unable to read shell environment variables In the code for CGIServelet.java there is no check for windows vista As a workaround until this gets fixed, you can override the os.name property on the command line (or in the Java tab of tomcat{5|6}w.exe if running as a service). Just set: -Dos.name=Windows 2008 This should let you run CGI successfully. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Routing domain request to a context path
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhay, abhay srivastava wrote: | can anyone please help me here or is their a way to install an | application in / context path ? Name your WAR file ROOT.war, or, if you are using non-WAR webapps, simply name the directory your webapp lives in ROOT. Please note that case is significant (that is, make sure you use ROOT, not root or Root). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqWfYACgkQ9CaO5/Lv0PCK+ACgo5rHx7y+kwvfIhjLQY7ohRmd eDEAnRl6uANZD8w0vZmZRiUxB7b7HVIO =28kh -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: Securing Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: | We are currently using the steps published by OWASP too, in terms of | tomcat configuration (there are application related security issues that | are not covered by the article). Is there something else we should be | aware of, that is not described? Tomcat itself is relatively secure. What you really ought to worry about is your own application. What is the longest password you allow? What is the shortest password you allow? Are passwords easy to guess? Are they easy to change? Are there ways to coax information out of your database without authenticating? Are there ways to store content in the database that will result in possible XSS attacks against your customers? What about the amount of damage an insider can accomplish? Can an administrator see users' passwords? Etc., etc., etc... These are all not Tomcat-related, so there's not really any one source of information from them. Basically, you have to think like a cracker and try to subvert your own infrastructure. Anything that feels weak probably is. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqWxkACgkQ9CaO5/Lv0PAiHgCguETQphfVjCpd3mJVqMz9MYex LUIAoLTGgOVHZ04D/rCgAj7QrmS8giae =0ak5 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encryption algorithms usage in Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hitesh, Hitesh Raghav wrote: | Which encryption algorithms are used in Tomcat? Could I get detailed | information about usage of these algorithms in Tomcat? As David mentioned, the encryption that Tomcat uses directly is SSL to encrypt HTTP communication. The algorithms available to the SSL connector are limited by those provided by the JVM (or by openssl if you are using the native APR SSL connector). Your application can use any encryption algorithm provided by the JVM. | Is there any change in encryption algorithm usage in Tomcat from v5.5.7 | to v5.5.26 and v6.0.16? No. The more significant upgrade would be your JVM, or any JCE you have installed. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqW9QACgkQ9CaO5/Lv0PCj5wCeJds89Mx3eyt5ETXzfP1KNOuR DYcAoIsXCECwP5fpWjLj7BFGlRLlptDa =e8hp -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 service startup command line argument
I have read the document for class loaders, I need to add an endorsed jar file for my tomcat service on Windows. I am not sure where I can set the system property below when tomcat is started as a service. The -Djava.endorsed.dirs=c:/programs/tomcat6.0/endorsed The documentation at http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html states This section of the documentation applies to procrun 1.0, and is now obsolete. So I just tried to look for it and when I stop the service, add this to the start parameters, start the service, and then highlight the service and select properties again... it is no longer in the start parameters. Any idea how to make it stick? Thanks, Bina - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 service startup command line argument
From: B Reed [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 service startup command line argument I am not sure where I can set the system property below when tomcat is started as a service. Use the Java tab of the tomcat6w.exe program in Tomcat's bin directory. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
httpd cant talk to tomcat workers
Hi list, I'm new to tomcat and am trying to get apache to talk via mod_jk. I am using httpd 2.2.8 compiled from source mod_jk 1.2.26 from source and tomcat 5.5.23 from Alfresco 2.9B community. So far I have created a workers.properties based on the example file included with tomcat 5.5 source (just corrected the paths and set for UNIX) and added the following to my apache httpd.conf: # Load mod_jk module LoadModulejk_module modules/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.0.x) #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /opt/alfresco/tomcat/conf/workers.properties # Where to put jk shared memory JkShmFile /var/log/httpd/mod_jk.shm # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the timestamp log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /* ajp13 # Send servlet for context /examples to worker named worker1 #JkMount /alfresco/servlet/* worker1 # Send JSPs for context /examples to worker named worker1 #JkMount /alfresco/*.jsp worker1 #JkOptions +ForwardURICompatUnparsed When I try and connect via a browser to http://hostname/alfresco I get the error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. And in the mod_jk logs I see: [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8009) (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1) One thing Im not getting my head round is which configuration files tomcat looks in at startup and whether I should be seeing a java process listening on 8009 (i assume yes). How can I troubleshoot this further? I dont see any errors from tomcat regarding not being able to start a process listening on 8009, where is this normally done? thanks for any help! Andy.
RE: httpd cant talk to tomcat workers
From: Andy Smith [mailto:[EMAIL PROTECTED] Heh. Hi from a fellow Mancunian. tomcat 5.5.23 from Alfresco 2.9B community. The general comment from the folks here will be throw that away and get the downloaded one from the Tomcat web site. No need to compile from source, Tomcat's pure Java. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. [...] [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8009) (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [error] One thing Im not getting my head round is which configuration files tomcat looks in at startup Tomcat's conf/server.xml. If you can't find that on your system... you guessed it, throw it away and download from the Tomcat site. and whether I should be seeing a java process listening on 8009 (i assume yes). Yes. How can I troubleshoot this further? I dont see any errors from tomcat regarding not being able to start a process listening on 8009, where is this normally done? My guess is that the Alfresco-packaged version has the AJP connector commented out. Look in conf/server.xml for a Connector element that's an AJP connector on 8009. If you're lucky, it's commented out - uncomment and restart Tomcat. If you're unlucky, the repackager has removed it - throw it away and download from the Tomcat site :-). - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another apache/tomcat/mod_jk/virtual hosting question/issue
Good Morning- the applicable snippet from jk_ajp_common.c authored by Gal Shachor [EMAIL PROTECTED] jk_log(l, JK_LOG_ERROR, Can't receive the response message from tomcat, network problems or tomcat is down (%s), err=%d, jk_dump_hinfo(ae-worker-worker_inet_addr, buf), rc); Were you able to verify port 4540 is open and clear of firewalls and or natted proxies? netstat -a | grep 4540 //you should see TC is *listening* on 8080 The default port assignment for non-SSL HTTP/1.1 from %TOMCAT_HOME%/conf/server.xml is 8080 as illustrated in this example !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 These configurations can be difficult to diagnose..please feel free to ping the group for any questions HTH Martin- - Original Message - Wrom: HMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZA To: Tomcat Users List users@tomcat.apache.org Cc: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 8:45 AM Subject: Re: another apache/tomcat/mod_jk/virtual hosting question/issue Thanks for your advice David. I will abandon this forum and try to figure it out myself. Tomcat Users List users@tomcat.apache.org on Wednesday, March 26, 2008 at 7:46 AM -0500 wrote: Bad Gateway wouldn't be generated by tomcat unless your tomcat code was somehow getting content from another site. Given your most recent log snippets have apparently been from an httpd error log file instead of tomcat's logs (like catalina.out), I'm going to guess your mod_jk setup in httpd isn't working. JSP compile errors don't show up in the httpd error log and mod_jk errors don't show up in catalina.out under any normal setup. As Chuck points out, there isn't just one problem here, there's several. Start by making sure your tomcat is working first. You can do that by making sure a standard http connector is setup to let's say port 8080 and then hitting http://ww3.nisonline.org:8080/test.jsp. When that works, fix your mod_jk setup. --David Tommy Peterson wrote: When the unable to compile class for JSP error showed up (it isn't anymore) it would mention the jsp file that I was calling. I intentionally called several different jsp files to see if it was the coding, althougth this application works now, and has for years, on a different server just fine (I need to move it)--so it isn't a code issue. The error points to a line in that file. I have looked to see if the class is there--it is. Anyway, this says to me that Java is somehow not being used or installed correclty--things can't compile. I verified that Java was installed correctly. Anyway, what happens now is that the page just sits there and then after a few seconds I get a Bad Gateway page. A 502 error. Try it: ww4.nislonline.org or use the other one that I am now pointing to the standard jsp examples to test whether Tomcat shows up: ww3.nislonline.org You'll see the HTML page but try to submit the post: same issue as it is posting to a jsp page. I don't understand why this has to be this difficult. I have followed the documentation. And it seems I just keep running into new brick walls. Thanks. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 3:55 PM -0500 wrote: In that case, there should have been some text after 'org.apache.jasper.JasperException: Unable to compile class for JSP: ' citing the line number and problem with the jsp. Is it really just blank where compile error message should be? Can you try to restart tomcat and see if that clears the issue? --David Tommy Peterson wrote: I went all the way to the top of the error log for the first error; there were two, one after the other: [error] jk_ajp_common.c (1004): (ajp13) can't receive the response message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4540 [Tue Mar 25 15:02:44.320 2008] [5796:5300] [error] jk_ajp_common.c (1766): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 2:26 PM -0500 wrote: From experience, this error is usually the result of an earlier error. Look further up your logs to the first error that occurs after you request this page. Fix that and this one should go away. --David Tommy Peterson wrote: this is the problem with every jsp page I try to hit. does this mean java can't compile the java beans? I don't get this. I did a search and lot of a ppl seem to have issue but no solutions. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP:
Re: httpd cant talk to tomcat workers
Andy Are ports 8009 and 8080 clear or are they being blocked or natted? If ports 8009 and 8080 are clear startup TC and verify TC mod_jk listener is listening on 8009 e.g. netstat -a | grep 8009 ? Martin - Original Message - From: Andy Smith [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 26, 2008 9:45 AM Subject: httpd cant talk to tomcat workers Hi list, I'm new to tomcat and am trying to get apache to talk via mod_jk. I am using httpd 2.2.8 compiled from source mod_jk 1.2.26 from source and tomcat 5.5.23 from Alfresco 2.9B community. So far I have created a workers.properties based on the example file included with tomcat 5.5 source (just corrected the paths and set for UNIX) and added the following to my apache httpd.conf: # Load mod_jk module LoadModulejk_module modules/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.0.x) #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /opt/alfresco/tomcat/conf/workers.properties # Where to put jk shared memory JkShmFile /var/log/httpd/mod_jk.shm # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the timestamp log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /* ajp13 # Send servlet for context /examples to worker named worker1 #JkMount /alfresco/servlet/* worker1 # Send JSPs for context /examples to worker named worker1 #JkMount /alfresco/*.jsp worker1 #JkOptions +ForwardURICompatUnparsed When I try and connect via a browser to http://hostname/alfresco I get the error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. And in the mod_jk logs I see: [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8009) (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1) One thing Im not getting my head round is which configuration files tomcat looks in at startup and whether I should be seeing a java
Re: Tags not being executed on first request...
A few more details based on your suggestion. TagB looks like this (tagb.tag) %@ include file=/WEB-INF/views/jsp/common/include.jsp % %@ attribute name=ID required=true type=java.lang.String % c:url value=/somelink.htm c:param name=XYZ ${ID}/c:param /c:url TagA looks like this (taga.tag) {html/jsp code} c:when test=count 0} a href=tags:taga ID=${identifier} / Some Link text /a /c:when {html/jsp code} The when condition gets evaluated 3 times on the page, first 2 are false, last is true. I put some logging statements in TagB, around the url tag. In the third case the tag is called with the proper value, however the param tag is ignored, just the link is generated with the parameter. Now if I refresh the page in the browser it all works correctly. So I am not sure if this is a tomcat issue or a JSTL lib issue? Any thoughts? -Nate david delbecq wrote: It's probably that tag A you use has conditional logic that is false upon first request. Making it skip it's content. Difficult to tell more without knowing the taglibs involved and the associated conditions Nathan Wilhelmi a Ă©crit : Hello - We are using Tomcat 6.0.14, we have some pages that use some nested tags, such as Page A - Tag A - Tab B, it's not reclusive problem. We are using the JSP.tag files for this. The problem is on the first request, Page A - Tag A works fine, however Tag B never appears to be rendered. Now on the second request Page A - Tag A - Tab B is all properly executed. Is this a know issue, are there any workarounds, are we doing something that isn't supported/allowed? Thanks! -Nate - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem using DynDNS
Hi, Newbie question unfortunatelyI am attempting to host a servlet, it works fine using http://localhost:8080/Project/servlet/Servlet but I have set up dyndns so it's accessible outside of my network, http://npopoola.doesntexist.com brings up my router set up page so I assume that dyndns is working OK. But when I try to access the servlet using http://npopoola.doesntexist.com:8080/Project/servlet/Servlet, I get The connection to the server was reset while the page was loading.. If I try it without specifying the port number, http://npopoola.doesntexist.com/Project/servlet/Servlet, it just says '404 Not Found'. I have implemented port forwarding for 8080 and stopped the firewall from blocking 8080... does anyone know what I am doing wrong? Thanks, Natasha. _ Win 100’s of Virgin Experience days with BigSnapSearch.com http://www.bigsnapsearch.com
Re: httpd cant talk to tomcat workers
Hi Peter, hey thanks a lot, got it working! As I had a number of files in the conf directory I was a bit confused and was also not reading what where comments and what where not very accuarately in the XML! :P So I just uncommented the connection in server.xml and straight off httpd can talk to tomcat :D Actually enabling the AJP in server.xml initially broke the app, Alfresco, which I manage to fix by adding this to the JAVA_OPTS in the startup script: -Djava.rmi.server.hostname=myhostname.net Not sure exactly why I needed that as it wasnt needed before, but hey! thanks for your help! cheers Andy. PS Can't claim to be a Mancunian but will confess to working with them ;) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpd cant talk to tomcat workers
1. You probably want to clean out your workers.properties file. The log below indicates it has a lot of old depricated stuff in it. Mine is just a very bare bones one: worker.list=tcinstance1 worker.tcinstance1.port=8009 worker.tcinstance1.type=ajp13 2. Make sure an ajp13 port is alive at port 8009 on your tomcat instance. The bottom of your log snippet indicates it isn't. Just edit tomcat's server.xml file, look for a Connector / element containing port=8009 and make sure it doesn't have xml comments ( !-- -- ) surrounding it. --David Andy Smith wrote: Hi list, I'm new to tomcat and am trying to get apache to talk via mod_jk. I am using httpd 2.2.8 compiled from source mod_jk 1.2.26 from source and tomcat 5.5.23 from Alfresco 2.9B community. So far I have created a workers.properties based on the example file included with tomcat 5.5 source (just corrected the paths and set for UNIX) and added the following to my apache httpd.conf: # Load mod_jk module LoadModulejk_module modules/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.0.x) #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /opt/alfresco/tomcat/conf/workers.properties # Where to put jk shared memory JkShmFile /var/log/httpd/mod_jk.shm # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the timestamp log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /* ajp13 # Send servlet for context /examples to worker named worker1 #JkMount /alfresco/servlet/* worker1 # Send JSPs for context /examples to worker named worker1 #JkMount /alfresco/*.jsp worker1 #JkOptions +ForwardURICompatUnparsed When I try and connect via a browser to http://hostname/alfresco I get the error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. And in the mod_jk logs I see: [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5617:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement. [Wed Mar 26 14:33:01 2008] [5619:3086026976] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8009) (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Wed Mar 26 14:33:07 2008] [5620:3086026976] [info] ajp_service::jk_ajp_common.c (2186): (ajp13)
Re: Java 1.4.2 to 1.5 upgrade tips
What I'm worried about is the Servlet spec. We have some legacy stuff that only compiles correctly using the servlet.jar which includes JSP 1.1 I think. Anyways, my fear is that this might not be supported with Java 1.5, and that stuff will have to be recoded to make use of servlet-api.jar which would require a lot of work. Any ideas? On Tue, Mar 25, 2008 at 12:39 PM, David kerber [EMAIL PROTECTED] wrote: Jonathan Mast wrote: It looks like we might have to upgrade to Java 1.5 from 1.4.2 and I was wondering if someone could point me to a guide on the pitfalls to watch out for as per Tomcat 5.5. thanks, I don't have a specific reference, but IIRC, there was very little code that would work correctly in 1.4 and not 1.5. The biggest effort was finding stuff that could be much more efficiently rewritten in 1.5 to take advantage of new features. However, even if you don't change a single line, 1.5 will still likely give you better performance than 1.4.2. D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem using DynDNS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Natasha, Natasha Popoola wrote: | I have set up dyndns so it's accessible outside of my network, | http://npopoola.doesntexist.com brings up my router set up page so I | assume that dyndns is working OK. You may want to change that... you certainly don't want anyone outside your network to start messing with your router configuration ;) | But when I try to access the servlet using | http://npopoola.doesntexist.com:8080/Project/servlet/Servlet, I get | The connection to the server was reset while the page was loading.. | If I try it without specifying the port number, | http://npopoola.doesntexist.com/Project/servlet/Servlet, it just says | '404 Not Found'. | | I have implemented port forwarding for 8080 and stopped the firewall | from blocking 8080... does anyone know what I am doing wrong? I get an NPE when I hit that URL. Does that mean you've solved the problem? It is possible that you had a Host that was not the default host which was serving your webapp. If you have Host name=foo and try to access it with http://bar/webappName Tomcat will not allow access. However, if you have Engine defaultHost=foo, then requests to http://bar/webappName /will/ go to foo (unless bar is also defined as a Host). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqfkwACgkQ9CaO5/Lv0PD1OgCfaJaQagzsGIq5n/9xy1gsN8yo zsAAoJ6D5aOi10iYch8sG/kixMJKzBZp =zy4z -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java 1.4.2 to 1.5 upgrade tips
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: | What I'm worried about is the Servlet spec. We have some legacy stuff that | only compiles correctly using the servlet.jar which includes JSP 1.1 I | think. Anyways, my fear is that this might not be supported with Java 1.5, | and that stuff will have to be recoded to make use of servlet-api.jar | which would require a lot of work. Now, the JSP spec is where I've seen people get burned. Later versions of Tomcat are much better about being spec-compliant and not allowing you to go outside the bounds. But, if you are not changing your version of Tomcat, then you should have nothing to worry about: The JVM does not ship with servlet.jar or any such variant. That is entirely dependent on Tomcat. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqfusACgkQ9CaO5/Lv0PAKFQCeMrO3Pq34gKVpxDw/eQVHCj7h oQIAninxM+7h8bVzkRTCma309IXG5P9x =tFBX -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem using DynDNS
Hmm... well a null pointer exception is what I am supposed to get if it is working, I wonder why I get the router setup page then... Thanks for your help anyway. Date: Wed, 26 Mar 2008 12:48:12 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: problem using DynDNS -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Natasha, Natasha Popoola wrote: | I have set up dyndns so it's accessible outside of my network, | http://npopoola.doesntexist.com brings up my router set up page so I | assume that dyndns is working OK. You may want to change that... you certainly don't want anyone outside your network to start messing with your router configuration ;) | But when I try to access the servlet using | http://npopoola.doesntexist.com:8080/Project/servlet/Servlet, I get | The connection to the server was reset while the page was loading.. | If I try it without specifying the port number, | http://npopoola.doesntexist.com/Project/servlet/Servlet, it just says | '404 Not Found'. | | I have implemented port forwarding for 8080 and stopped the firewall | from blocking 8080... does anyone know what I am doing wrong? I get an NPE when I hit that URL. Does that mean you've solved the problem? It is possible that you had a Host that was not the default host which was serving your webapp. If you have Host name=foo and try to access it with http://bar/webappName Tomcat will not allow access. However, if you have Engine defaultHost=foo, then requests to http://bar/webappName /will/ go to foo (unless bar is also defined as a Host). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqfkwACgkQ9CaO5/Lv0PD1OgCfaJaQagzsGIq5n/9xy1gsN8yo zsAAoJ6D5aOi10iYch8sG/kixMJKzBZp =zy4z -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The next generation of Windows Live is here http://www.windowslive.co.uk/get-live
Re: problem using DynDNS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Natasha, Natasha Popoola wrote: | Hmm... well a null pointer exception is what I am supposed to get if it is working, I wonder why I get the router setup page then... | Thanks for your help anyway. It's possible that your router is out-smarting you by handling connections to the external interface (via the public IP address) as if they were connections on the internal interface (via your private 192.168.x.y IP address). Technically, your request should be hitting the external interface and routed properly, even though you are on the inside of the network. You should make sure that your DNS resolver is giving you the expected (external) IP address, just in case. You might want to check to see if your router has a firmware upgrade that could fix this, if it truly is the problem. Another option is to use a client outside your network (which isn't particularly convenient, but it should work). Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqglcACgkQ9CaO5/Lv0PAGZQCgg2P6xdMkcyYtJepET5x0lO8A FEMAnAgwmtx0sQMhgvPUCWi0wCDrAB1l =bVC7 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Java 1.4.2 to 1.5 upgrade tips
You could have both tomcats running in the same server, one for legacy apps and another for new stuff, using mod_jk. It works very well. -Mensagem original- De: Jonathan Mast [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 26 de março de 2008 13:14 Para: Tomcat Users List Assunto: Re: Java 1.4.2 to 1.5 upgrade tips What I'm worried about is the Servlet spec. We have some legacy stuff that only compiles correctly using the servlet.jar which includes JSP 1.1 I think. Anyways, my fear is that this might not be supported with Java 1.5, and that stuff will have to be recoded to make use of servlet-api.jar which would require a lot of work. Any ideas? On Tue, Mar 25, 2008 at 12:39 PM, David kerber [EMAIL PROTECTED] wrote: Jonathan Mast wrote: It looks like we might have to upgrade to Java 1.5 from 1.4.2 and I was wondering if someone could point me to a guide on the pitfalls to watch out for as per Tomcat 5.5. thanks, I don't have a specific reference, but IIRC, there was very little code that would work correctly in 1.4 and not 1.5. The biggest effort was finding stuff that could be much more efficiently rewritten in 1.5 to take advantage of new features. However, even if you don't change a single line, 1.5 will still likely give you better performance than 1.4.2. D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0 clustering
Ch Praveena wrote: Hi Filip, These may be very basic questions. 1. What is heart beat in Tomcat clustering? what do you mean? membership can be done in two ways, dynamic discovery using multicast, for this there is a heartbeat, sends out a signal. For static memberships, well, you define static members. 2. From which version of Tomcat, clustering is implemented? 5.0 3. In how many ways clustering is done in Tomcat 6.x? 1 4. In the article, http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html, It was mentioned like a) If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance, in most cases Tomcat is smart enough to resolve this on it's own by autodetecting available ports in the range 4000-4100. Please tell me where I can find tcpListenPort attribute. it's the port attribute in the Receiver element, TC 6 actually can auto select a port for you, if you use autoBind0 b) Do I need to update my server.xml file with the default setting given for the cluster element. Please tell me if any other documentation available for clustering Tomcat 6.x Messaging layer http://www.covalent.net/services/training/webinars.html (see tribes and cluster) http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html http://people.apache.org/~fhanik/apachecon2006slides.ppt On 25/03/2008, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Ch Praveena wrote: Hi, Are there anyone who have done with clustering Tomcat 6.0? I have lot many doubts about them. what's your question? No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 3/23/2008 6:50 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1344 - Release Date: 3/26/2008 8:52 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem using DynDNS
Well as my servlet will only be communicating with mobile phones, this is not really a problem. I tried to access the servlet from my mobile and I get the null pointer also, so everything *appears* to be OK. Thanks again for your help. Date: Wed, 26 Mar 2008 13:05:27 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: problem using DynDNS -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Natasha, Natasha Popoola wrote: | Hmm... well a null pointer exception is what I am supposed to get if it is working, I wonder why I get the router setup page then... | Thanks for your help anyway. It's possible that your router is out-smarting you by handling connections to the external interface (via the public IP address) as if they were connections on the internal interface (via your private 192.168.x.y IP address). Technically, your request should be hitting the external interface and routed properly, even though you are on the inside of the network. You should make sure that your DNS resolver is giving you the expected (external) IP address, just in case. You might want to check to see if your router has a firmware upgrade that could fix this, if it truly is the problem. Another option is to use a client outside your network (which isn't particularly convenient, but it should work). Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfqglcACgkQ9CaO5/Lv0PAGZQCgg2P6xdMkcyYtJepET5x0lO8A FEMAnAgwmtx0sQMhgvPUCWi0wCDrAB1l =bVC7 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get Hotmail on your mobile. Text MSN to 63463 now! http://mobile.uk.msn.com/pc/mail.aspx
Re: Tomcat 5.5 and Apache 2.2
David, Hi I am using roller and will look there for some help. I also have another application that I wrote using Java/Struts you know the usual and I want to do the same thing. I have read that by changing the war file to ROOT.war would work, is that possible option? Or using mod_rewrite? Lasana - Original Message From: David Fisher [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 9:48:31 AM Subject: Re: Tomcat 5.5 and Apache 2.2 Hi - There can be three cases (at least) (1) Your blog software insists on a folder name - a weblog id. Having played with Roller 4 and Tomcat, I was defeated in trying to get what you want. They are working on it in their next version, and people have reported how to do it. If you are using Roller you should be able to get help there. What is your blog application? (2) You need to adjust how apache rewrites the url. (3) You need to adjust your context or server.xml in tomcat. Regards, Dave On Mar 26, 2008, at 8:20 AM, Lasana Crider wrote: Hello, I am trying to do the following: I want to use www.kriedertech.com instead of www.kriedertech.com/blog. I am using the mod_jk for the connector to Apache. I am having alot of problems doing this. Can anyone help with this? Lasana - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 and Apache 2.2
Lasana, Hi I am using roller and will look there for some help. Glad to help. I think they will fix this. The project lead has in fact done it in his own personal blogs. I also have another application that I wrote using Java/Struts you know the usual and I want to do the same thing. I have read that by changing the war file to ROOT.war would work, is that possible option? It is likely, unless your webapps is like roller and imposes a structure on the url. Or using mod_rewrite? I haven't done this myself, but it should work. I don't think it solves roller, but I haven't tried. I haven't yet gone to Apache in front of Tomcat for load balancing yet. It is on my road map to replace ancient expensive, but elegant Resonate, giving me the scalability I hope to need. Dave Lasana - Original Message From: David Fisher [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 9:48:31 AM Subject: Re: Tomcat 5.5 and Apache 2.2 Hi - There can be three cases (at least) (1) Your blog software insists on a folder name - a weblog id. Having played with Roller 4 and Tomcat, I was defeated in trying to get what you want. They are working on it in their next version, and people have reported how to do it. If you are using Roller you should be able to get help there. What is your blog application? (2) You need to adjust how apache rewrites the url. (3) You need to adjust your context or server.xml in tomcat. Regards, Dave On Mar 26, 2008, at 8:20 AM, Lasana Crider wrote: Hello, I am trying to do the following: I want to use www.kriedertech.com instead of www.kriedertech.com/blog. I am using the mod_jk for the connector to Apache. I am having alot of problems doing this. Can anyone help with this? Lasana - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 and Apache 2.2
David, That is thing, I am new to having external web applications, I have mostly written internal apps and this is killing me. I know what apache can do alot of things but for now I have one apache web server and one tomcat app server and I need it to be root url. I am going to try root and see if that works. But expanding apache to do load balancing is my next project also. Thank you. Lasana - Original Message From: David Fisher [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 3:02:59 PM Subject: Re: Tomcat 5.5 and Apache 2.2 Lasana, Hi I am using roller and will look there for some help. Glad to help. I think they will fix this. The project lead has in fact done it in his own personal blogs. I also have another application that I wrote using Java/Struts you know the usual and I want to do the same thing. I have read that by changing the war file to ROOT.war would work, is that possible option? It is likely, unless your webapps is like roller and imposes a structure on the url. Or using mod_rewrite? I haven't done this myself, but it should work. I don't think it solves roller, but I haven't tried. I haven't yet gone to Apache in front of Tomcat for load balancing yet. It is on my road map to replace ancient expensive, but elegant Resonate, giving me the scalability I hope to need. Dave Lasana - Original Message From: David Fisher [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 9:48:31 AM Subject: Re: Tomcat 5.5 and Apache 2.2 Hi - There can be three cases (at least) (1) Your blog software insists on a folder name - a weblog id. Having played with Roller 4 and Tomcat, I was defeated in trying to get what you want. They are working on it in their next version, and people have reported how to do it. If you are using Roller you should be able to get help there. What is your blog application? (2) You need to adjust how apache rewrites the url. (3) You need to adjust your context or server.xml in tomcat. Regards, Dave On Mar 26, 2008, at 8:20 AM, Lasana Crider wrote: Hello, I am trying to do the following: I want to use www.kriedertech.com instead of www.kriedertech.com/blog. I am using the mod_jk for the connector to Apache. I am having alot of problems doing this. Can anyone help with this? Lasana - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 and placing jars in $CATALINA_HOME/lib
We are using tomcat 6.0.16 with a jdk 1.6. I have a number of web applications which use, for example, spring and hibernate. Is there any reason why these jars (and their dependencies) should not be placed in $CATALINA_HOME/lib? It would save a lot of time uploading new releases of my own applications to my servers. From my reading of the docs there could be a potential problem if there is a conflict between existing classes in the TC distribution and the jars I would put in the 'lib'. What's the recommended practice? Thanks in advance. Regards Alan Chaney - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and placing jars in $CATALINA_HOME/lib
From: Alan Chaney [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and placing jars in $CATALINA_HOME/lib Is there any reason why these jars (and their dependencies) should not be placed in $CATALINA_HOME/lib? The primary reason not to lump everything in one basket is webapp independence, which the servlet spec encourages. If you do put commonly used jars in the lib directory, you're tying all your webapps to one instance of those particular classes. This can create problems with versioning, should some of your apps migrate to newer levels of the common libraries, and with reloading webapps, since those libraries may retain references somewhere to objects of the webapp. Given the price of disk and memory these days, along with automated scripts to build your .war files, the only thing you'd really save on is time to transfer an updated webapp. Is that really a dominant factor, given the drawbacks? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 and placing jars in $CATALINA_HOME/lib
You're right. I debated whether or not there was an argument that I should always use the same jars for each project so it didn't matter, but then I decided that there was bound to be some case where that wouldn't work for some unforeseen reason. Its best to keep each webapp independent. There are other solutions to the time of uploads. Thanks Caldarale, Charles R wrote: From: Alan Chaney [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and placing jars in $CATALINA_HOME/lib Is there any reason why these jars (and their dependencies) should not be placed in $CATALINA_HOME/lib? The primary reason not to lump everything in one basket is webapp independence, which the servlet spec encourages. If you do put commonly used jars in the lib directory, you're tying all your webapps to one instance of those particular classes. This can create problems with versioning, should some of your apps migrate to newer levels of the common libraries, and with reloading webapps, since those libraries may retain references somewhere to objects of the webapp. Given the price of disk and memory these days, along with automated scripts to build your .war files, the only thing you'd really save on is time to transfer an updated webapp. Is that really a dominant factor, given the drawbacks? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:47eab1f3292727785049143! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
64bit windows service executable?
Hi, Where can I get a 64bit Intel and AMD executables for lauching tomcat 6 service on windows 64 and 64bit java 6? thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Checking tomcat metrics in a non-intrusive way
I want to check tomcat response time for requests when I run, say 500 concurrent users, on the server. I use the default setttings for tomcat which means my maxThreads = 40. I have read from some articles suggesting to use JMX Console to monitor tomcat. But, then i read from other articles that JMX adds overhead to the server. Basically, I am looking for a way to monitor tomcat performance under load w/o affecting server performance by running the tools. Now, i read from an article to use Valves to log the metrics into a log file and process that later. My question is: is that the best way to go w/o purchasing any commercial software? -- View this message in context: http://www.nabble.com/Checking-tomcat-metrics-in-a-non-intrusive-way-tp16319903p16319903.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Checking tomcat metrics in a non-intrusive way
From: wicket0123 [mailto:[EMAIL PROTECTED] Subject: Checking tomcat metrics in a non-intrusive way I want to check tomcat response time for requests when I run, say 500 concurrent users, on the server. Any measurements made within Tomcat itself are going to have some effect on performance. If all you want are response times, do that on the client side, running on the same LAN segment as the Tomcat server (or even on the same machine if you have CPU cores to spare). Take a look at JMeter to see if it will do what you want: http://jakarta.apache.org/jmeter/ - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 64bit windows service executable?
From: ahnf [mailto:[EMAIL PROTECTED] Subject: 64bit windows service executable? Where can I get a 64bit Intel and AMD executables for lauching tomcat 6 service on windows 64 and 64bit java 6? A quick archive search turned up this: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/amd64/ - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 64bit windows service executable?
awesome thanks! On Mar 26, 2008, at 7:55 PM, Caldarale, Charles R wrote: From: ahnf [mailto:[EMAIL PROTECTED] Subject: 64bit windows service executable? Where can I get a 64bit Intel and AMD executables for lauching tomcat 6 service on windows 64 and 64bit java 6? A quick archive search turned up this: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/amd64/ - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deployment questions
Hi, I've been devloping a web app on a virtual machine on my computer and I want to move it over to remote server. I understand that I 1) make a war file of my web app directory 2) add a context entry to the server.xml file on the remote server (Q1: where in the server.xml file do I add this entry - it is a fresh install and I do not see one there to start with) 3) copy the war file to the remote server tomcat/webapp directory 4) stop and start tomcat on the remote server Q2: But then what is the process to see it online? everything I've read online stops at this part - do I not have to make more modifications to see it at a URL other than localhost? Thanks
RE: deployment questions
From: Kimberly Begley [mailto:[EMAIL PROTECTED] Subject: deployment questions 1) make a war file of my web app directory Yes. 2) add a context entry to the server.xml file on the remote server Unless you're deploying on an ancient version of Tomcat (you didn't bother to tell us), definitely not. Your Context element belongs in your webapp's META-INF/context.xml file, if you need one at all. Note that path and docBase attributes are not allowed in Context elements in this circumstance. Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html 3) copy the war file to the remote server tomcat/webapp directory That's usually webapps, not webapp. 4) stop and start tomcat on the remote server Usually not necessary, unless autoDeploy is disabled. But then what is the process to see it online? The name of the .war file is the name of the webapp, so you reference it via a URL like: http://hostDNSname[:port]/appName If Tomcat on the remote host is configured to use port 80, you omit that from the URL, of course. If the host has no DNS entry, use its IP address. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deployment questions
Great thanks! and sorry about that its tomcat5. On Thu, Mar 27, 2008 at 1:06 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Kimberly Begley [mailto:[EMAIL PROTECTED] Subject: deployment questions 1) make a war file of my web app directory Yes. 2) add a context entry to the server.xml file on the remote server Unless you're deploying on an ancient version of Tomcat (you didn't bother to tell us), definitely not. Your Context element belongs in your webapp's META-INF/context.xml file, if you need one at all. Note that path and docBase attributes are not allowed in Context elements in this circumstance. Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html 3) copy the war file to the remote server tomcat/webapp directory That's usually webapps, not webapp. 4) stop and start tomcat on the remote server Usually not necessary, unless autoDeploy is disabled. But then what is the process to see it online? The name of the .war file is the name of the webapp, so you reference it via a URL like: http://hostDNSname[:port]/appName If Tomcat on the remote host is configured to use port 80, you omit that from the URL, of course. If the host has no DNS entry, use its IP address. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kimberly Begley
RE: deployment questions
Hi Chuck/All, I am using tomacat5.5,eventhough autoDeploy option is true we have to restart the server. !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=false autoDeploy=true xmlValidation=false xmlNamespaceAware=false above is the snippet of my server.xml which has autoDeploy option. 'tmp' and 'work' folder will not get refreshed however .war file will get replaced successfully. after stop and start of the server my newly deployed .war changes came into effect. Is there any other things I missed out? Thanks and Regards - Shreekanta Prasad -Original Message- From: Kimberly Begley [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 8:44 AM To: Tomcat Users List Subject: Re: deployment questions Great thanks! and sorry about that its tomcat5. On Thu, Mar 27, 2008 at 1:06 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Kimberly Begley [mailto:[EMAIL PROTECTED] Subject: deployment questions 1) make a war file of my web app directory Yes. 2) add a context entry to the server.xml file on the remote server Unless you're deploying on an ancient version of Tomcat (you didn't bother to tell us), definitely not. Your Context element belongs in your webapp's META-INF/context.xml file, if you need one at all. Note that path and docBase attributes are not allowed in Context elements in this circumstance. Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html 3) copy the war file to the remote server tomcat/webapp directory That's usually webapps, not webapp. 4) stop and start tomcat on the remote server Usually not necessary, unless autoDeploy is disabled. But then what is the process to see it online? The name of the .war file is the name of the webapp, so you reference it via a URL like: http://hostDNSname[:port]/appName If Tomcat on the remote host is configured to use port 80, you omit that from the URL, of course. If the host has no DNS entry, use its IP address. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kimberly Begley - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deployment questions
From: Shreekanta Prasad [mailto:[EMAIL PROTECTED] Subject: RE: deployment questions I am using tomacat5.5,eventhough autoDeploy option is true we have to restart the server. I just retested this on my WinXP box with 5.5.25, and dropping an updated .war file into webapps caused immediate redeployment. Initial deployment (drag drop of wan.war): Mar 26, 2008 10:48:11 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive wan.war Redeployment (also drag drop, overwriting the original wan.war file): Mar 26, 2008 10:52:21 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/wan] Mar 26, 2008 10:52:21 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive wan.war This is without any explicit Context element, but with unpackWARs=true and autoDeploy=true in the Host element. A more complex webapp may require a Context element with antiJARLocking and antiResourceLocking set for a Windows environment. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RESIDENTIAL MEMORY 100%
Hi Sorry for the dely, thx for the prompt reply Ther some thing seems to be wrong with the Jconsole or TOMCAT This may be or may not be the form for me to ask ,but still need help I looked at the JMX / Jconsole Tutorials and did the following steps 1) In Remote JVM /opt/java6/jre/lib/management i renamed the jmxremote.password.template as jmxremote.password and set the password for monitorRole as karthik 2) In Remote TOMCAT5523 /infinet/karthik/TOMCAT5523/bin i inserted a new argument in catalina.sh as follows export JAVA_OPTS=-Dcom.sun.management.jmxremote.port=8999 3) STARTED the server as TOMCAT/bin/startup.sh 4)From the Local System d:/java/JDK163/ started to connect to Remote Console for using Jconsole as remote 172.16.17.26:8999 Problem But the Jconosle is refusing to connect Is there any other parameter to be set for on remote TOMCAT for the local Jconosle to moniter Please advise with regards Karthik karthikn wrote: Hi Sorry for the dely, thx for the prompt reply Since the On line apps cannot be down for more then 1 minut, We probably have to a test setup and generate the same Load using Jmeter or some other S/w and exactly check if we are missing some thing this would provide us with some test results. I will back with test results as soon as we simulate the same. with regards Karthik Carl wrote: As I recall from one of your early emails, you have the session timeout set to 24 hours. If this is so, you will never get this app to run. Thanks, Carl - Original Message - From: karthikn [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 25, 2008 8:07 AM Subject: Re: RESIDENTIAL MEMORY 100% Hi Sorry for the dely, thx for the prompt reply I was just looking into using Jconsole as u said,but since the UNIX 11 server,does not have GUI,I probably would have to do some remote Jconsole for the same. Can u please tell me or provide me URL on how do i set up mbeans-descriptor.xml so the jconsole can be usaed for monitering remote JMX. Tomcat documents do not say any thing about how to achieve the same. Spec Os = Unix 11 jsdk = 1.6 Tomcat =5.5.23 version thx in advance with regards karthik Alan Chaney wrote: Firstly, you are only making 350M of your memory available to the application. xmx=350m means 350 megabtyes is reserved for the heap. Secondly, that's probably not the issue! You are correct in that you are running a 32 bit JVM. That's probably not the issue either but it means that most of the 6GB of RAM you said you had is not actually relevant. Next. you keep saying that you are using netstat to look at your system. but the display below is that of 'top'. I'm not familiar with your Unix version so maybe netstat is different on your system. Neither netstat nor top are that much use for delving into linux memory issues, never mind about java issues. It is extremely difficult to correlate the way that linux uses memory to what is actually happening inside the JVM. The next issue is that thousands of people all over the world use tomcat and don't suffer from the problem that you are seeing, so it is most likely that the problem is with your application. I notice that you have 535 process listed - that's an awful lot. You need to investigate what is actually happening inside the application - the best way of doing that is to use either jconsole or a profiling tool. You are using java 6 which means that you can easily set up a jconsole session to display what is happening. If you use jconsole you will be able to check the real JVM memory usage over time and force a GC to see how much of that memory is actually held by a strong reference. And of course what do the log files show? Are you getting out of memory errors? Are you getting RTEs? Another thing to check is that is the system swapping? I notice that in the statistics below you don't show the swap usage. This is often a trap for the unwary. HTH karthikn wrote: Hi is running a 64bit JVM. JDK used is 32 bit probably by running java -version on this Unix 11 server bash-3.2# ./java -version java version 1.6.0.00 Java(TM) SE Runtime Environment (build 1.6.0.00-jinteg_12_nov_2007_21_58-b00) Java HotSpot(TM) Server VM (build 1.6.0.00 jinteg:11.12.07-21:02 PA2.0 (aCC_AP), mixed mode) This version is avaliable from HP Unix site http://h18012.www1.hp.com/java/ As per HP site 64 bit is the version HP is distributing I also have some more netstats report for last 4 hrs before we did the restart of the web container ( TOMCAT 5523) Tue Mar 25 15:52:06 2008 System: voise1 Load averages: 1.45, 2.23, 2.28 535 processes: 509 sleeping, 25 running, 1 zombie Cpu states: CPU LOAD USER NICESYS IDLE BLOCK SWAIT INTR SSYS 01.23 2.0% 0.0% 6.9% 91.2% 0.0% 0.0% 0.0% 0.0% 11.66 6.8% 0.0% 3.9% 89.3%
RE: RESIDENTIAL MEMORY 100%
From: karthikn [mailto:[EMAIL PROTECTED] Subject: Re: RESIDENTIAL MEMORY 100% 2) In Remote TOMCAT5523 /infinet/karthik/TOMCAT5523/bin i inserted a new argument in catalina.sh as follows export JAVA_OPTS=-Dcom.sun.management.jmxremote.port=8999 I think you also need this: -Dcom.sun.management.jmxremote.ssl=false (I haven't done much with headless JMX, so I'm not positive.) You can also completely disable JMX authentication with: -Dcom.sun.management.jmxremote.authenticate=false - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RESIDENTIAL MEMORY 100%
Caldarale, Charles R wrote: From: karthikn [mailto:[EMAIL PROTECTED] Subject: Re: RESIDENTIAL MEMORY 100% 2) In Remote TOMCAT5523 /infinet/karthik/TOMCAT5523/bin i inserted a new argument in catalina.sh as follows export JAVA_OPTS=-Dcom.sun.management.jmxremote.port=8999 I think you also need this: -Dcom.sun.management.jmxremote.ssl=false You do - at least, it works for me! However, there are two other issues which I ran into. 1. A lot of linux installations have the 'localhost' setting something like this in /etc/hosts 127.0.0.1 localhost my.machine.com Sun doesn't like this. You must explicitly set the 'outside' IP address so you end up with something like: 127.0.0.1 localhost 123.456.123.456 my.machine.com That confused me for about a day until a lot of googling came up with the above answer. I could connect from linux to linux but not windows to linux. Also see http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole and http://java.sun.com/j2se/1.5.0/docs/guide/management/faq.html which has a lot of useful stuff for debugging jmx remote problems. And don't forget to check the firewall! Regards Alan Chaney - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]