Re: Tomcat on Windows: advantages of running as a service?
The net start service name and net stop service name commands will allow you to stop and start Windows services from the command line (and thus from a batch script). You can get the service name from the Services property window. On Wed, 2005-10-12 at 06:18, Tom Burke wrote: I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt. My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? The server is dedicated to tomcat, by the way. Tom Burke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Easy Servlet Question
I have some demo apps on http://simple.souther.us that you can run. They're all war files so all you have to do is download to your webapps directory. SimpleServlet.war is your basic Hello, World app in a servlet. On Mon, 2005-10-03 at 21:49, Andrew Pierce wrote: Hello. I realize this is about the stupidest question I could ask but, I've scoured the web, etc. and cannot get an easy example of making servlets actually work with Tomcat. I have written a few Hello World servlets and gotten them to work with Resin but I cannot get even the most simple servlet to work with Tomcat. I create the servlet code such as the one found here: http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp I compile the servlet and place the .class file in the $CATALINA_HOME/webapps/app/WEB-INF/classes directory. Then I modify the $CATALINA_HOME/webapps/app/WEB-INF/web.xml to include the declarations for the servlet. I stop and restart Tomcat and alas, all I get is 404 when I try to access the servlet with a url like http://localhost:8080/app/HelloServlet. I know this has got to VERY simple. Thanks in advance. Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to limit the size of TOMCATs stdout file
I tried asking this to the tomcat team via bugzilla and they were not helpful. Nobody pointed you to this link?: See http://jakarta.apache.org/tomcat/faq/logging.html for logging help first - it answers this question. :) On Fri, 2005-09-23 at 14:45, [EMAIL PROTECTED] wrote: How do you limit the size of Tomcats stdout file. If you look at version 5.5, the dialog for the service lets you put in default or some path for the stdout file. But there is no option to set the limiting size or other parameters as you would with log4j. This is the stdout log file which tomcat logs to if it gets something like a network connection reset error. This is not really the applications log file per se. I tried asking this to the tomcat team via bugzilla and they were not helpful. thanks -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TROUBLE UNCOMPRESSING jakarta-tomcat-5.5.9.tar.gz
I just downloaded and tried with: tar -zxvf jakarta-tomcat-5.5.9.tar.gz on FC2 Try downloading it again On Thu, 2005-09-08 at 14:14, Ratti Michele wrote: Good morning everybody! I'd like to use Tomcat so I download this file jakarta-tomcat-5.5.9.tar.gz But I'm not able to uncompress it. On Linux I have this error: tar: A lone zero block at 25257 On Solaris I have this error: tar: Directory checksum error Can someone help me? I need this file. It's quiet urgent. Thank you very much. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying war in another directory
If you use the manager app, you can specify the location of the war file. On Wed, 2005-08-24 at 11:05, XYZ wrote: Please excuse the previous message. What I'm trying to accomplish is documented as 'running multiple instances'. On 20050824, at 105129, XYZ wrote: Hello. I would like to know how it is possible to have catalina deploy a war outside of $CATALINA_HOME/webapps. What I'd like to do is have catalina find the war in another path, $APPS. How can I do this? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting application variables
Look up context init-params and servlet init-params. I have some demo apps that demonstrate the use of these: http://simple.souther.us On Fri, 2005-07-29 at 16:14, Josh Howe wrote: Hi, I'm very new to Tomcat and JSP. Can anybody tell me how I can initialize some application variables from a file so that they are available to all of the asp pages in my application as soon as it starts? Thanks! -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking/forwarding GET requests using Default servlet or other Tomcat feature
On Wed, 2005-07-27 at 12:19, Rob Hunt wrote: I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP box. I have a webapp that has a /teams directory that contains gameScores.htm, teamStandings.htm and scoreForm.htm. I also have a /playoffs directory (can you tell this is a sports-related site?) directory that has the **exact same files**. Now, I'd like to keep a single copy of the 3 files in one directory and have some servlet-mappings in web.xml that would forward the request from /playoffs to /teams **WITHOUT** the HTTP client being aware of a 'redirect.' That is, I don't want to issue an HTTP redirect, and WinXP doesn't have file linking like Unix. Is there some hook in the Default servlet (or other TC-supplied class) that would allow one to do something like the following: servlet servlet-nameplayoffs/servlet-name servlet-class...DefaultServlet (or whatever)/servlet-class init-param param-nameFORWARD/param-name param-value/teams/param-value /init-param /servlet servlet-mapping servlet-nameplayoffs/servlet-name url-pattern/playoffs/*/url-pattern /servlet-mapping The idea is I'm being very lazy and hoping that there is a feature in the default servlet (or other TC-supplied filter/class) that will allow this without me having to write same. (Of, if someone has some code they'd like to share...) The servlet-entry in web.xml can take a jsp-page parameter instead of a servlet-class If you define your JSP as a servlet, you can create as many mappings to it as you like. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking/forwarding GET requests using Default servlet or other Tomcat feature
jsp-file that is. On Wed, 2005-07-27 at 12:36, Ben Souther wrote: On Wed, 2005-07-27 at 12:19, Rob Hunt wrote: I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP box. I have a webapp that has a /teams directory that contains gameScores.htm, teamStandings.htm and scoreForm.htm. I also have a /playoffs directory (can you tell this is a sports-related site?) directory that has the **exact same files**. Now, I'd like to keep a single copy of the 3 files in one directory and have some servlet-mappings in web.xml that would forward the request from /playoffs to /teams **WITHOUT** the HTTP client being aware of a 'redirect.' That is, I don't want to issue an HTTP redirect, and WinXP doesn't have file linking like Unix. Is there some hook in the Default servlet (or other TC-supplied class) that would allow one to do something like the following: servlet servlet-nameplayoffs/servlet-name servlet-class...DefaultServlet (or whatever)/servlet-class init-param param-nameFORWARD/param-name param-value/teams/param-value /init-param /servlet servlet-mapping servlet-nameplayoffs/servlet-name url-pattern/playoffs/*/url-pattern /servlet-mapping The idea is I'm being very lazy and hoping that there is a feature in the default servlet (or other TC-supplied filter/class) that will allow this without me having to write same. (Of, if someone has some code they'd like to share...) The servlet-entry in web.xml can take a jsp-page parameter instead of a servlet-class If you define your JSP as a servlet, you can create as many mappings to it as you like. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking/forwarding GET requests using Default servlet or other Tomcat feature
Look up the RequestDispatcher: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html Server side forwards don't use a redirect On Wed, 2005-07-27 at 16:18, Luis Torres wrote: Sounds like something that can be done with frames or iframes Regards, Luis Rob Hunt wrote: Yes, I know you can make many mappings to a given servlet/jsp, but that's not what I'm asking for. When an HTTP client requests /playoffs/gameScores.htm, I'm hoping there's some slight-of-hand trick/feature that will cause Tomcat to serve /teams/gameScores.htm WITHOUT a redirect so that it appears to the client that they're getting /playoffs/gameScores.htm. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file access via HttpSession
You could put the restricted directories under WEB-INF and then use a Front Controller Servlet to forward to or stream the files to the browser. On Tue, 2005-07-12 at 09:27, Clark Slater wrote: Hello- I am running 5.0.19 Is there a way to restrict access to files in a directory based on a value in an HttpSession? For example: Customer c = (Customer) httpSession.getValue(Customer); if (c.getCountryCode().equals(CAN)) their browser could display any HTML file in /webapps/ecat/profiles/canada but not files in /webapps/ecat/profiles/usa Of course, files in either of these directories would not be viewable by the outside world. Thanks! Clark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat causes servlet malfunction???
Where is the servlet's class file? On Wed, 2005-06-08 at 11:35, Michael Echavez wrote: i didnt use the invoker here. ive explicitly mapped my servlet with that url. below is a part of my web.xml servlet servlet-nameParameterServlet/servlet-name description This servlet retrieves the parameters sent to it and returns the parameters and their values back to the client. /description servlet-classchapter2.ParameterServlet/servlet-class !-- Load this servlet at server startup time -- load-on-startup5/load-on-startup /servlet servlet-mapping servlet-nameParameterServlet/servlet-name url-pattern/servlet/chapter2.ParameterServlet/url-pattern /servlet-mapping I actually thought that there was some kind of an agreement to use /servlet for servlet urls. Thank you for the links. I actually learned a lot from them. Yes, the browser does download the file. it says that it has found a PARAMETERSERVLET file since the url is ...\servlet\chapter2.ParameterServlet It actually thinks that ParameterServlet is an extension. I'm really lost now cause i have a couple of other servlets that is in the same directory and they work properly. this is the only one that doesnt. On 6/8/05, Ben Souther [EMAIL PROTECTED] wrote: If the browser can see the .class file and download it, then it's not in the right place. Also: action=servlet/chapter2.ParameterServlet The servlet/ section in the URL is an outdated way of invoking a servlet. It uses the deprecated (and disabled in current versions of Tocmat) Invoker servlet. You will need to map your servlets in web.xml or disable the invoker in order to run them. On the InvokerServlet: http://jakarta.apache.org/tomcat/faq/misc.html#evil http://faq.javaranch.com/view?InvokerServlet On Wed, 2005-06-08 at 11:10, Michael Echavez wrote: Hi Ben, It is so nice of you to respond so quickly. Actually, I've already deployed a few simple servlets already and I am sure that the .class file for the servlet is in the right directory. I was just wasnt sure why tomcat couldnt load the class file correctly. Also, I already read the tomcat documentation you pointed me to before i posted my question. I really appreciate the link with the example applications. I think it will help me a lot with practicing on servlets, jsps and beans. Again, Thank you so much! Regards, Michael On 6/8/05, Ben Souther [EMAIL PROTECTED] wrote: Michael, Have a look at the documentation for classloading in TC to find out where your class files need to go. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html You'll also need to map your servlet in your web.xml file. I have some example applications that are packaged as war files that you can use as a reference if you like: http://simple.souther.us. -Ben On Wed, 2005-06-08 at 10:58, Michael Echavez wrote: Hi Everyone! There is a servlet i found from a book that utilizes the parameters from servlets but whenever i run it the browser doesnt seem to open the class properly and instead it only downloads the .class file. I think the problem here has something to do with the new Tomcat version. Can someone try deploying the application so that I'll be able to find out whether what the problem really is. Below are the codes i used: the code below is for Form.html where i have to enter the information that will be passed onto the servlet: HTML HEAD TITLE Parameter Servlet Form /TITLE /HEAD BODY form action=servlet/chapter2.ParameterServlet method=POST table width=400 border=0 cellspacing=0 tr tdName: /td td
RE: Buggy .war in 5.5.9 binary distribution
I just deployed the one that shipped with 5.5.9 as well. At one point that war file was corrupted but I know the issue was fixed before 5.5.9. http://issues.apache.org/bugzilla/show_bug.cgi?id=32382 On Tue, 2005-06-07 at 10:57, Caldarale, Charles R wrote: From: Alexander Fairley [mailto:[EMAIL PROTECTED] Subject: Buggy .war in 5.5.9 binary distribution I've been playing around with the samples in the 5.5.9 distribution, and the .war available from the internal link: http://localhost/tomcat-docs/appdev/sample/sample.war doesn't autodeploy when placed in webapps. Furthermore, attempting to extract it with jar (fastjar) 0.92-gcc throws the following java.zip exception: created: META-INF/ extracted: META-INF/MANIFEST.MF java.util.zip.ZipException: invalid entry size (expected 975 but got 470 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368) I just downloaded a fresh copy of the 5.5.9 zip distribution, installed it, examined sample.war, and extracted everything from it - with no problems. Did you verify the checksums of your download? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Tomcat make log statistics like Apache?
Yes, Just un-comment the AccessLogValve in your server.xml file Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ On Fri, 2005-05-06 at 20:19, Lorenzo Jimnez wrote: Does Tomcat can generate a log file just like Apache or IIS? Thanks, Lorenzo - Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para ms referencia sobre trminos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click here for important additional terms relating to this e-mail. http://www.nacion.com/disclaimer/index_en2.htm - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying HttpServletRequest
The normal approach is to wrap the request as opposed to copying it: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequestWrapper.html On Fri, 2005-04-29 at 14:16, Tuan, Frank wrote: Hi all, I need some help copying a HttpServletRequest in a Filter. I'm running 5.0.28. So far, this is what I have, HttpServletRequest oldRequest = (HttpServletRequest)request; CoyoteRequest newRequest = new CoyoteRequest(); // handle HTTP headers log.trace (Setting HTTP headers); Enumeration headerNames = oldRequest.getHeaderNames(); while (headerNames.hasMoreElements()) { String headerName = (String)headerNames.nextElement(); String header = oldRequest.getHeader (headerName); log.trace (Adding +headerName+=+header+ into HTTP header); newRequest.addHeader (headerName, header); } // handle request attributes log.trace (Setting request attributes); Enumeration attributeNames = oldRequest.getAttributeNames(); while (attributeNames.hasMoreElements()) { String attributeName = (String)attributeNames.nextElement(); Object attribute = oldRequest.getAttribute (attributeName); log.trace (Adding +attributeName+ as a request attribute); newRequest.setAttribute (attributeName, attribute); } log.trace (Setting request fields); newRequest.setContextPath (oldRequest.getContextPath()); newRequest.setContentLength (oldRequest.getContentLength()); newRequest.setContentType (oldRequest.getContentType()); newRequest.setMethod (oldRequest.getMethod()); newRequest.setRequestURI (oldRequest.getRequestURI()); newRequest.setServletPath (oldRequest.getServletPath()); newRequest.setStream (new ByteArrayInputStream (requestBody)); RequestDispatcher dispatcher = oldRequest.getRequestDispatcher (/soap/some-service); CoyoteRequestFacade facade = new CoyoteRequestFacade (newRequest); dispatcher.forward (facade, response); I'm getting the following exception, 2005-04-29 10:49:23 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.lang.NullPointerException at org.apache.coyote.tomcat5.CoyoteRequest.getAttribute(CoyoteRequest.java:943) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getAttribute(CoyoteRequestFacade.java:261) at org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispatcher.java:979) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:383) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at com.amazon.fiji.soap.RequestDumpFilter.doFilter(RequestDumpFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at
Re: running a thread in Tomcat
set isDaemon(true) for all your threads. On Tue, 2005-03-15 at 10:31, Mark wrote: Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time, that it's not the best idea, but anyway) and everyhing is fine untill I need to restart tomcat. When I shutdown (shutdown.sh) Tomcat the java process remain active. The question is it expected? or I need to take care about this thread in destroy() method of my init servlet? I have tomcat 5.0.24 on RH9. Thanks a lot, Mark. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing tomcat (help)
the exe On Tue, 2005-03-15 at 11:56, brian wrote: Below is the tomcat installation files for download and have pasted the contents of README packaging information. One binary is an exe, one is tar.gz, one is a zip, another is Deployer. Which one is the installation file for windows ? The .exe is the Tomcat Setup wizard. Is this the windows version ? -- 5.0.28 Binary README (contains packaging information) 5.0.28 exe [md5] [pgp] 5.0.28 tar.gz [md5] [pgp] 5.0.28 zip [md5] [pgp] 5.0.28 Deployer tar.gz [md5] [pgp] 5.0.28 Deployer zip [md5] [pgp] 5.0.28 Embed tar.gz [md5] [pgp] 5.0.28 Embed zip [md5] [pgp] -- Apache Tomcat 5.0.28 Useful references: Release notes, with important information about known issues Changelog Status NOTE: The tar files in this distribution use GNU tar extensions, and must be untarred with a GNU compatible version of tar. The version of tar on Solaris and Mac OS X will not work with these files. Thank you for using Tomcat!. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session listener
How could weblogic know that you closed your browser? On Mon, 2005-03-14 at 17:57, Christian Rebollar wrote: I used weblogic and HttpSessionListener interface, and when I closed browser weblogic invalidated the session and the listener class catch it, but with tomcat didn't happen the same, the session died until timeout. There is a way to do it or it can't be done?? thx _ Do You Yahoo!? La mejor conexin a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.7 startup
Are you running with a full JDK or just a JRE? On Sun, 2005-02-13 at 08:17, P.M wrote: Hi, Based on information from people of this list, i tried to use the startup.bat file to start tomcat server... but it doesn't work...in fact it's worse than windows installation with services. at least service works and i can use tomcat server. The startup.bat file seems to not work correctly under windows XP SP2. Does anyone have the same problem than me or am i the only one ? i tried to uncompress the zip file of tomcat 5.5.7 under C:\ or to place file under C:\tomcat5, but nothing changed... so what's wrong on my PC ? thx, Maileen __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.7 startup
Which is your JAVA_HOME environment variable pointing to? On Sun, 2005-02-13 at 08:42, P.M wrote: i run with both, JDK and JRE (are running on my PC) --- Ben Souther [EMAIL PROTECTED] wrote: Are you running with a full JDK or just a JRE? On Sun, 2005-02-13 at 08:17, P.M wrote: Hi, Based on information from people of this list, i tried to use the startup.bat file to start tomcat server... but it doesn't work...in fact it's worse than windows installation with services. at least service works and i can use tomcat server. The startup.bat file seems to not work correctly under windows XP SP2. Does anyone have the same problem than me or am i the only one ? i tried to uncompress the zip file of tomcat 5.5.7 under C:\ or to place file under C:\tomcat5, but nothing changed... so what's wrong on my PC ? thx, Maileen __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP: 500 Internal Server Error (Urjent)
Anad, you've just hijacked someone else's thread. When posting to the list, please start a new message. Don't just reply to an existing one. It limits the number of people reading your question. On Sun, 2005-02-13 at 08:45, Anand Pandey wrote: Hi, Can any one help me out in this serious case that I'm facing while uploading the files. Getting HTTP: 500 Internal server Error, while uploading the XML file (5.44 KB approx). I'm using Tomcat3.3.1 and JRE ver 1.2. To upload the XML file request is sent to IIS thru which it is directed to Tomcat using Re-Director. What I'd observed is that file uploading is fine till Java memory utilization goes upto 80MB, after that HTTP: 500 Internal Server Error is thrown from the servlet (This is just my observation). Thanks Regards, Anand * Disclaimer: The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT. This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.7 startup
The admin app no longer ships with Tomcat by default. You have to download it separately. On Sun, 2005-02-13 at 09:37, P.M wrote: I discover from where came the trouble... JAVA_HOME pointed on J2SDK 1.4.2 and not JDK 5.0. i changed it and not the scripts are working... thanks a lot for help. but admin application doesn't work :( Maileen --- Ben Souther [EMAIL PROTECTED] wrote: Are you running with a full JDK or just a JRE? On Sun, 2005-02-13 at 08:17, P.M wrote: Hi, Based on information from people of this list, i tried to use the startup.bat file to start tomcat server... but it doesn't work...in fact it's worse than windows installation with services. at least service works and i can use tomcat server. The startup.bat file seems to not work correctly under windows XP SP2. Does anyone have the same problem than me or am i the only one ? i tried to uncompress the zip file of tomcat 5.5.7 under C:\ or to place file under C:\tomcat5, but nothing changed... so what's wrong on my PC ? thx, Maileen __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: folder for my jsp files
You can put them where ever you like. Look at the docBase attribute of Context http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html On Sat, 2005-02-12 at 11:14, P.M wrote: Hi, i would like to know if my web application (using jsp files) must be in folder /tomcat 5.5/webapps absolutely, or if i can place it in some other disk or other folder ? thanks a lot, Maileen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: please give me index.jsp
Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index.jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.Garca wrote: Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please give me index.jsp
I just got you to the CVS tree, browse to whatever version you want... http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/ROOT/index.jsp?rev=1.9view=log On Wed, 2005-02-02 at 15:31, Carlos A.Garca wrote: Thank you so much. My version is 4.1 Anybody has the file? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 12:17 PM To: Tomcat Users List Subject: RE: please give me index.jsp You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index .jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.Garca wrote: Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Shutdown not working under SLES8 and FC2
Linux bsouther 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686 athlon i386 GNU/Linux On Wed, 2005-02-02 at 15:56, Al Sutton wrote: Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:48 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_05 Created MBeanServer with ID: e94e92:101d4d0a879:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 11277 0 0 15:44 pts/100:00:00 grep java [EMAIL PROTECTED] bin]$ On Wed, 2005-02-02 at 15:30, Ben Souther wrote: Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after extracting the main archive and the compat packages, no changes, no modifications, no web apps installed, nothing else, nada, zip, not a sausage, not a config file, not a bird, nor a plane was changed. Seesh... is there anywhere else I need to post the fact that I didn't change a thing from the download before people read it? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working under SLES8 and FC2 Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! No, you had the bug closed when no one could reproduce it under anything. Anyway, try posting some additional information for more help: What version of tomcat you're using, and the contents of your server.xml file would both be useful pieces of information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: compiling and deployment in tomcat
On Wed, 2005-02-02 at 17:34, Julio Macedo wrote: Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? Yes 2. Do I really have to register my servlets in web.xml file or this process can be done automatically by Tomcat? Yes. This is why: http://jakarta.apache.org/tomcat/faq/misc.html#evil When I did the test with jsp pages, it was not necessary compile or register the file (Tomcat did everything to me) so I expect the same with servlets. Nope, sorry. Thanks, Julio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. Al. Yes, but not today. The latest JDK 1.4 is j2sdk1.4.2_07. If I'm going to upgrade, it will be to that one. I run up2date daily but don't always reboot so I might already have that kernel. If so, I don't mind rebooting in the morning before I get started. Out of curiosity, is this happening to you with a fresh install of Tomcat, without any of your own apps running, and without any connectors? Are you using any java options when you start it? Also, is there any reason why you can't upgrade to JDK1.5.0? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 17:16, Al Sutton wrote: Ben, Thanks for doing this. Not a problem. I'm going to put _07 on tomorrow and give that a spin as well, but it'd be useful to know if _06 has problems for the future. If the problem doesn't exits on _07, you've narrowed it down quite a bit and will, at least, know what combinations you can support for your product. I've just downloaded the main and compat packages, no modifications have been made to any files contained within, and no webapps have been installed. I beleive the JK connector is on by default, and I don't supply any options to the server. I can't upgrade to 1.5 at the moment because the application I'm developing is deployed to a 1.4 environment. Recommending an upgrade in JDK isn't possible due to the standards of the customer :(. That's usually the case but I thought I'd ask anyway. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown not working under SLES8 and FC2
On Wed, 2005-02-02 at 17:11, Ben Souther wrote: On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a critical environment. OK, here you go. It turns out that I did have _06 on this machine. I also have 2.6.10-1.9_FC2 (which is no longer the latest BTW ;)). Once again, I started and stopped without a problem. Here is the screen dump: [EMAIL PROTECTED] bin]$ uname -a Linux bsouther 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux [EMAIL PROTECTED] bin]$ export JAVA_HOME=/usr/local/j2sdk1.4.2_06 [EMAIL PROTECTED] bin]$ ./startup.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_06 [EMAIL PROTECTED] bin]$ ./shutdown.sh Using CATALINA_BASE: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_HOME: /home/bsouther/tc_test/jakarta-tomcat-5.5.7 Using CATALINA_TMPDIR: /home/bsouther/tc_test/jakarta-tomcat-5.5.7/temp Using JRE_HOME: /usr/local/j2sdk1.4.2_06 Created MBeanServer with ID: e94e92:101d55eb6c4:-8000:bsouther:1 [EMAIL PROTECTED] bin]$ ps -ef | grep java bsouther 4714 4595 0 18:19 pts/000:00:00 grep java [EMAIL PROTECTED] bin]$ This matches your configuration exactly. I also tried with _07 and the latest kernel (as of this afternoon ***.12 I believe). And you definitely aren't running with any JAVA_OPT settings? Maybe you have a hardware issue. Have you tried on another machine? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using native and ld_library_path
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat startup time? On Wed, 2005-01-26 at 10:00, Andreas Andersson wrote: Hi! My application needs to use a native share library. When running normal java program from the commandline it works if I just set LD_LIBRARY_PATH to point to the .so-file. But since tomcat runs as suid (I guess thats why) LD_LIBRARY_PATH is ignored. What can I do instead? Is there any way I can set this parameter in tomcat? I've turned of security to see if that could be the error but it wasn't. Any help is welcome :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploying a Servlet to Tomcat 5.0
The invoker servlet is no longer active by default in Tomcat. See: http://jakarta.apache.org/tomcat/faq/misc.html#evil Core Servlets (1st Edition) is a bit out of date in this respect. You'll need to map your servlet in your web.xml file. If you want an example, I've published some war files that you can just drop into your webapps directory and run. http://simple.souther.us SimpleServlet has a web.xml file with a servlet mapping in it. On Wed, 2005-01-26 at 13:44, Anil Philip wrote: See http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Download-Tomcat -Original Message- From: Harsha perera [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 12:04 AM To: tomcat-user@jakarta.apache.org Subject: Deploying a Servlet to Tomcat 5.0 Hi, I have been trying to deploy a simple servlet to Tomcat 5.0. Tomcat is installed on WIndows XP. This is what I did: 1. Created a directory structure under $TOMCAT_HOME\webapps as follows: ROOT\WEB-INF\classes 2. Moved the class(HelloServlet.class) to the above created directory. 3. Bounced Tomcat. 4. Attempting to access the class as http://localhost:8080/servlet/HelloServlet gives me the error: HTTP Status 404 - /servlet/HelloServlet type Status report message /servlet/HelloServlet description The requested resource (/servlet/HelloServlet) is not available. Please advise on how I should be deploying this simple servlet. The servlet is code is given below: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; /** Simple servlet used to test server. * P * Taken from Core Servlets and JavaServer Pages 2nd Edition * from Prentice Hall and Sun Microsystems Press, * http://www.coreservlets.com/. * copy; 2003 Marty Hall; may be freely used or adapted. */ public class HelloServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String docType = !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0 + Transitional//EN\\n; out.println(docType + HTML\n + HEADTITLEHello/TITLE/HEAD\n + BODY BGCOLOR=\#FDF5E6\\n + H1Hello/H1\n + /BODY/HTML); } } Regards Harsha __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hi help regarding running first servlet,jsp in Tomcat 5.x
Das, Two things: First, whenever writing to the list, please start a new thread instead of just clicking 'reply' from another message. To those of us using treaded mail clients, you've just hijacked someone else's thread. Second, it looks like the sample war file on the jakarta site is corrupted. For now, can download a working version here: http://issues.apache.org/bugzilla/attachment.cgi?id=13534 The url to run it will be: http://localhost:8080/myapp If you've reconfigured your port, etc.. change the url accordingly. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a simple problem w/5.5.7
The url needs to be: http://localhost:8080/CONTEXT_NAME/URL_PATTERN On Fri, 2005-01-21 at 10:11, Robert Tillson wrote: I have a very dumb servlet that I am having problems with. I can get it to work through the invoker, but not through the url I have setup... I use the ant installer to get it into tomcat. It appears properly in the manager app. When I acess the url, I get the following: Directory Listing For / Filename Size Last Modified Apache Tomcat/5.5.7 as output... Can anybody help me with what is wrong? Here is my web.xml file: web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameCrap TestInWServlet/display-name description Welcome to Tomcat /description servlet servlet-nameTestInWServlet/servlet-name servlet-classcom.bae.ait.isd.inw.TestInWServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameTestInWServlet/servlet-name url-pattern/myapp/url-pattern /servlet-mapping /web-app I am going to the address http://localhost:8080/myapp/ Any help would be much appreciated... This should be simple, but hasn't turned out to be... Tomcat 5.5.7 ant 1.6.2 java 5.0 IE 6 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting Xmx and Xms on Tomcat 5
Did you install the start menu options? If so click: Start - Programs - Apache Tomcat - Configure Tomcat -Java (tab). You'll see fields for initial and maximum jvm memory. On Fri, 2005-01-21 at 11:46, Leonardo Larraquy wrote: Hi gurus, I're really searched the web, but I really need you help. I've migrated my app, from Tomcat 4.0.6 to Tomcat 5.0. everything went fine. As I had the service installed on Tomcat 4.0.6, I did the same on Tomcat, but using the installer that Jakarta provides. The problem of that, was that when I installed Tomcat 5.0 service I had't set Xmx and Xms options. My app consumes enough memory to need this fix. Now I saw 2 possibilities to solve this problem. 1) Uninstall Tomcat 5, and reinstall it using tomcat.exe from Tomcat 4.0.6, which gives me the chance to set Xmx and Xms options. (I really dislike this one) 2) As a saw at http://forum.java.sun.com/thread.jspa?threadID=250644messageID=2177633, you can touch registry values, and restart Tomcat using: 'JVM Option Number 3,4,5' (I don't like this one eather) Do you know another chance to reinstall Tomcat 5 service and setting Xmx and Xms parameters? Any ideas? Thanks in advace Leonardo Lopez Larraquy Jakarta SRL Ingenieria de Software 4953-0961 www.jakartasrl.com.ar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running lots of virtual hosts on tomcat
There are a few ways you could handle it. This should get you started: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html On Wed, 2005-01-19 at 09:37, Robbert-Jan Roos wrote: Hi, Our web department is thinking about moving from coldfusion to tomcat. Currently we have about 400 websites using apache's mod_vhost module. This works great. The only thing one needs to do is create a new directory www.bla.nl and the website is up and running. How would one do this in tomcat? I figured putting all the domainnames in server.xml is not an option since it would require restarting tomcat all the time. Using one Engine with a Context for each website seems more usable. Does anybody here have this kind of setup? Any pitfalls we might run into? Suggestions? Regards, Robbert-Jan Roos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT + HttpURLConnection
This might be of interest to you: http://jakarta.apache.org/commons/httpclient/ On Mon, 2005-01-17 at 06:41, Karthik N S wrote: Hi Apologies I would like to use the 'HttpURLConnection' API to POST 'start/stop/reload' to Tomcat Manager URL 'http://192.168.10.64:8080/manager/html/start?path=/XYZ' , So can I Code this and Do I need the Proxy Authorization to do the same. Please send Some Code Snippets regarding the same. Thx in Advance WITH WARM REGARDS HAVE A NICE DAY [ N.S.KARTHIK] __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getParameter(), works on get, not on post
request.getParameter doesn't work with mutipart forms. You will need to check the documentation for the upload library you are using. If you don't have one yet, see: http://jakarta.apache.org/commons/fileupload On Mon, 2005-01-17 at 09:08, Pawson, David wrote: With an input form form method=get action=/repository/ckDoc name=form enctype=multipart/form-data label for=reposoArchive number:/label input name=reposno id=reposno type=text size=9 maxlength=8 value=123456 in ckDoc.java I have public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { HttpSession session = request.getSession(); // //String s = request.getQueryString(); String t = request.getParameter(reposno); System.err.println(Ano is + t); which nicely prints out the Archive number value. When I change the get to a post, getParameter returns null, intimating that there is no such form item. I can access the data (though very messily) using the fileUpload object, but it seems so simple using getParameter(); Can anyone suggest why it won't work with the post please? regards DaveP ** snip here ** Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Website downloading old file
Also, in the interest of not overlooking the obvious... Did you verify that the FTP write actually worked and that you didn't accidentally ADD another file with a slightly different name? On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote: File permissions may be part of your problem. What OS is Tomcat running on? As for the showing the file after deleting it from the server, did you do a restart of Tomcat after deleting the file? I remember something on the list awhile back similar to this. Doug - Original Message - From: Paul Taylor [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, January 17, 2005 7:42 AM Subject: Website downloading old file Puzzled. I have a Tomcat 5 application, associated with it a file that can be downloaded from the website, which is in the root directory of the context. (So if the context is called myapp the file is in myapp). Everything was fine but then I realised that there was a problem with the file so I ftped a new file to replace it. But when I try to download the file from the website it still refers to the earlier (larger) file. This still happens even though I have: shutdown tomcat, restarted tomcat, deleted tomcat work directory, clerared out my browser cache used a different browser. It even still allows the file downloads if I delete the file from the server, how can this be ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Website downloading old file
Now, for kicks, try with a file with an '.asp' extension. Your ISP's proxy server may have a list of extensions that don't get cached. This would explain why your dynamic JSPs are working but the static files are being cached. On Mon, 2005-01-17 at 13:47, Paul Taylor wrote: OK I think you are onto something here, the original file was called file.bin, new file replacing it also called file.bin and renamed to file2.bin When I use the ?var=bogus the correct file is returned, but when I don't specify a parameter for file.bin it still returns the older file. http://domain/context/file.bin INCORRECT OLD VERSION http://domain/context/file.bin?var=bogusOKNEW VERSION http://domain/context/file2.bin?var=bogus OK NEW VERSION Ben Souther wrote: Try requesting the file with a bogus querystring variable http://domain/context/file.txt?bogus=var See if the unique URL gets you the right file. On Mon, 2005-01-17 at 12:43, Paul Taylor wrote: Can you expand on this please, btw if I change any part of the web application itself such as a jsp the results are imediate. Two ther bits of info which maybe relevent. 1. The host is based in Canada and hence has time set to Candian time which is earlier than UK time where Im downloading to. 2. The file Im trying to download is a .bin (Linux) file. The problem is also happening on Internet Explorer. Parsons Technical Services wrote: Sounds like your ISP may have a proxy setup. Usually two different browsers don't know about each other. Doug - Original Message - From: Paul Taylor [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, January 17, 2005 12:26 PM Subject: Re: Website downloading old file I think it is a browser problem because I got a friend to download from his computer and he received the correct file. Im using Firefox and still get the same problem. Ben Souther wrote: Also, in the interest of not overlooking the obvious... Did you verify that the FTP write actually worked and that you didn't accidentally ADD another file with a slightly different name? On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote: File permissions may be part of your problem. What OS is Tomcat running on? As for the showing the file after deleting it from the server, did you do a restart of Tomcat after deleting the file? I remember something on the list awhile back similar to this. Doug - Original Message - From: Paul Taylor [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, January 17, 2005 7:42 AM Subject: Website downloading old file Puzzled. I have a Tomcat 5 application, associated with it a file that can be downloaded from the website, which is in the root directory of the context. (So if the context is called myapp the file is in myapp). Everything was fine but then I realised that there was a problem with the file so I ftped a new file to replace it. But when I try to download the file from the website it still refers to the earlier (larger) file. This still happens even though I have: shutdown tomcat, restarted tomcat, deleted tomcat work directory, clerared out my browser cache used a different browser. It even still allows the file downloads if I delete the file from the server, how can this be ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Long running requests and timeouts?
These requests are not going to be called by users through a browser, since they are Web Services/REST types of requests. The only time they might get called through a browser is for testing purposes, in which case the tester knows that they will be very long running and that's not at issue. I got into this conversation late so forgive me if this has already been covered but have you considered putting a webservice engine on both ends and sending some kind of call-back from the called process when it's done? On Mon, 2005-01-17 at 14:21, Jiang, Peiyun wrote: I have the same problem. If you find a solution, please post and email me. What I found out with my application is that when tomcat runs low on memory, it will start to behave erratically. For example: scheduled job won't run; running processes seem to terminate/timeout... I don't know exactly what's happening, but enough memory usually keeps these problems away... Peiyun -Original Message- From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED] Sent: January 17, 2005 1:22 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Long running requests and timeouts? Frank: I don't know your usage pattern, but especially if there could be a number of such requests coming in at once, you are tieing up server resources this way. You also start running into situations like you mention with timeouts (I'm actually surprised the browser itself didn't time out after a few minutes). It also doesn't give a very good appearance to the user... it seems like the system has just frozen, which it actually hasn't. These requests are not going to be called by users through a browser, since they are Web Services/REST types of requests. The only time they might get called through a browser is for testing purposes, in which case the tester knows that they will be very long running and that's not at issue. The timeout seems to be affecting scripted invocations of the request as well (using the commons-http library), so it doesn't seem to be a browser timeout issue as far as I can tell. If it's feasible, I think you may save yourself some trouble by rearchitecting this rather than trying to solve this problem. You can do something as simple as this... Does that all make sense? I don't know if your in a position to rearchitect what your doing, but if you are, I very much suggest doing so. Hope this helps! This does make sense, except for the user part, since users will never access the URL's involved directly. Furthermore, these long running tasks will be called by a scheduler, off hours, and typically there will be very few such requests a day (maybe 2 or 3 max). The requests are really single overnight batch processing runs. However, deadlines preclude rearchitecting the solution to make it asynchronous as you suggest (it's currently synchronous) in the short term. Hence my looking for a way to easily fix the timeout issue that causes the response to be truncated when Tomcat services a long running request. Thanks for the inputmost appreciated. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: Installing and running tomcat as a user other than root
Any tips on how to grant priviledges to port 80 or 8080 on linux to a user. Two ways: 1.) Install Apache (HTTPD) and a connector and have it pass the requests to Tomcat. 2.) Use http://jakarta.apache.org/commons/daemon which can bind to port 80 as root and then downgrade itself to a regular user for everything else (as Apache HTTPD does). I've heard that the latest CVS release of commons/daemon has some important bug fixes that affect stability. I just use port forwarding at the router level and leave Tomcat on port 8080. On Fri, 2005-01-14 at 03:19, Mumanyi Bravismore wrote: Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat] dir, No problem with the user starting tomcat. ps -e|grep java shows the tomcat process is running but when I try to access the pages from the browser, connection is failing. Any tips on how to grant priviledges to port 80 or 8080 on linux to a user. Thanks Roland Carlsson wrote: Hi Mumanyi! This will require some knowleage about you operatingsystem since not all operation is allowed being a non-root user. But it basically comes down to this: Grant the user you would like to run tomcat read and write rights on the whole tomcat install-dir. This because tomcat write down a few things to disk. Make sure that you operating system allow the user to open up the port you which tomcat to run on. Usually ports under 1024 are dissallowed without special privilegies. If you still are having problem you have to read the logs to see why tomcat fails to start correctly. Regards Roland Carlsson Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]: How can one achieve to install and run tomcat as a user other than root. I have tried to extract tomcat from the *.gz as a user but once I try to access it from the browser I get the Connection Failed error when in actually fact tomcat is running. When I su -l to root and restart tomcat, I am able to see the page. Thanks in advance. Regards /Bravo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server
(Content-Disposition, attachment;filename=\ + nombreBorrador+\); I think the end result is supposed to be: attachment;filename=filename.ext without the quotes around the filename. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wich Tomcat for specific JVM
Version 5.5 requires either jdk1.5 or j2sdk1.4 with the compatibility package. Version 5.0 requires j2sdk.1.3.1 or higher On Fri, 2005-01-14 at 09:39, BOEMARE, Xavier wrote: Hi, I'd like to know if there's a more appropriate JVM version to use with JVM 1.3.1.05 ? If not, then I guest I should take the latest stable version of TomCat ? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Consulting Position in Costa Mesa, CA,
I exchanged several emails with her before forwarding it to this list. On Fri, 2005-01-14 at 10:51, Mladen Turk wrote: Ben Souther wrote: I'm forwarding this message from a recruiter looking for a Tomcat/VMS consultant in CA if anyone's interested. Just another spam. I have no idea why the people are still sucking that. Just try to send a message, and you will receive: ** ** THIS IS A WARNING MESSAGE ONLY ** ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** ** The original message was received at Fri, 14 Jan 2005 08:29:32 +0100 from xx.xx.xx.xx[xx.xx.xx.xx] - Transcript of session follows - [EMAIL PROTECTED]... Deferred: Connection timed out with barracuda.cttsweb.com. Warning: message still undelivered after 4 hours Will keep trying until message is 1 day old - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Consulting Position in Costa Mesa, CA,
I don't know. I apologize for any inconvenience. I know I was talking to a real person. We exchanged 3 or 4 emails over a 10 minute period. I figured, maybe there was someone in here from CA in need of work who would benefit from it so I forwarded it to the list. If I had detected even the faintest hint of spam, I would have just thrown it in the trash with the other 500 I get every day. Sorry about the traffic it generated. -Ben On Fri, 2005-01-14 at 11:45, Mladen Turk wrote: David Smith wrote: Call me an optimist, but that error looks like standard, old, ordinary, everyday mail server trouble -- nothing to get excited about. Besides, I sent a message declining and didn't get that error. He he :) Call me an pessimist, but when did you receive that kind of message sending an email to a 'regular' person. Also, seems that everybody has received those emails, so if that's not the spam then what is it? Also, the email contains file://www.issg.com/ as URL (typical spyware). and the http://www.issg.com does not exits. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28 exiting randomly
Hi Greg, Until you can track down the culprit, you may want to look into the security manager to disallow System.exit calls. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/security-manager-howto.html Are you using any 3rd party jar files? If it's in your code, grep should find it in seconds. On Wed, 2005-01-12 at 19:30, Greg Lappen wrote: Hello- I have been tracking down this problem for a while now and finally have some more information. I am using Tomcat 5.0.28 on RedHat EL 3.0 with JDK 1.4.2_06 and we occasionally find that Tomcat is no longer running in our production server. It runs fine for days, then suddenly the java process disappears. I initially thought the JVM was crashing, but could not find any core files or log messages. Then someone suggested to me that I install a shutdown hook with Runtime.addShutdownHook to see if somewhere System.exit() is being called. Well, it turns out that it is. Unfortunately, I don't think I can tell in my shutdown hook where the System.exit() call occurred. I have reviewed our application code numerous times looking for System.exit() calls and have not found any. Is it possible that it is coming from Tomcat itself, or someone is able to issue a shutdown command externally somehow? Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Consulting Position in Costa Mesa, CA,
I'm forwarding this message from a recruiter looking for a Tomcat/VMS consultant in CA if anyone's interested. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote: I got your e-mail address from the Tomcat Solutions website... Your help would be appreciated...I am trying to get creative here...help me out~ I am working with one of my clients and we need a Tomcat consultant w/VMS background can you refer me to someone? PLEASE?! The position is in Costa Mesa, CA, e-mail or call me...thank you... I don't have that many details to give right now...we have a client who called us this morning requesting a consultant. They are working on a project and are in need of someone with Tomcat experience with VMS. All we know that this is a contract consulting position for a Pharmaceutical firm they are an AS400 shop as far as the pay is concerned it would depend on the consultant's experience. If you are interested send me a Word format resume for consideration w/ contract hourly rate. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com www.issg.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Consulting Position in Costa Mesa, CA,
Yea, that's the one 'off topic' type of message I don't mind seeing in here. On Thu, 2005-01-13 at 20:14, Parsons Technical Services wrote: Looks like she hit several of us on the list. But of course. Where else is a more logical place to go fishing? - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, January 13, 2005 8:03 PM Subject: [OT] Consulting Position in Costa Mesa, CA, I'm forwarding this message from a recruiter looking for a Tomcat/VMS consultant in CA if anyone's interested. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote: I got your e-mail address from the Tomcat Solutions website... Your help would be appreciated...I am trying to get creative here...help me out~ I am working with one of my clients and we need a Tomcat consultant w/VMS background can you refer me to someone? PLEASE?! The position is in Costa Mesa, CA, e-mail or call me...thank you... I don't have that many details to give right now...we have a client who called us this morning requesting a consultant. They are working on a project and are in need of someone with Tomcat experience with VMS. All we know that this is a contract consulting position for a Pharmaceutical firm they are an AS400 shop as far as the pay is concerned it would depend on the consultant's experience. If you are interested send me a Word format resume for consideration w/ contract hourly rate. Suzie Jimenez Sr. IT Recruiter mailto:[EMAIL PROTECTED] ISSG- Information Systems Support Group, LLC 300 E Magnolia Blvd. Ste 403 4th Fl. Burbank, CA 91502 818-846-4774 x116 818-846-9971 Fax 818-554-6825 Cell www.issgjobs.com www.issg.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in JSPs returning XML
(Not sure how to look at header - I do not see any headers in the response in telnet) http://livehttpheaders.mozdev.org/ Will show you the headers.. http://www.circlemud.org/~jelson/software/tcpflow/ Will show you everything, as will Ethereal. On Thu, 2005-01-13 at 22:03, Rajeev Singh wrote: I am going nuts trying to figure out why: An application created using Jdeveloper 3.2.3 (on Windows 2000). Some pages send XML as response. When using Jdev, JSP/Web-to-go server everything is fine. Now trying to migrate to TomCat 5.5. For pages that return XML, I am noticing a rather 'hang' like behaviour. As if client is waiting for something: Moreover when using telnet no such problem exists - the response comes boom. (Not sure how to look at header - I do not see any headers in the response in telnet) I put a time stamp at beginning and end of my processing. Elapsed time is 20ms. Page size 500 b. All done locally. Browser (Internet Explorer) takes about 9s to display the XML. Page is buffered (32K, though doesn't help, autoflush on). I even tried with response.SetHeader (Connection, close) no luck. Similarly my (C++) client makes a bunch of call to such JSP pages returning XML. Each time the processing supposed to happen, happens in 20-100ms. But the client seems to be 'waiting': gaps between timestamp for next request spans more than 10-30s. The client uses Microsoft's IXMLHttpRequest (MSXML v3). Any ideas what could be happening? Also any reason for cookies not be written by Tomcat (the Jdev does write that) mucho gracias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable directory listing
You don't need to install another servlet. servlet-api.jar is in the common/lib directory (available to all webapps.) I do it with an entry in my web.xml file that overrides the entry in the global web.xml: servlet servlet-namehrpdefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet The downside to this is that it makes your app less portable. On Tue, 2005-01-11 at 21:28, Garret Wilson wrote: You can't do it in your app's web.xml---unless you install another servlet (which can be the Tomcat default servlet) mapped to root in your own web.xml. But then you have to cart around all the Tomcat servlet jars in your webapp, because the one that is really the default was loaded by another classloader. Garret Phillip Qin wrote: Do it in your app's web.xml -Original Message- From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] Sent: November 24, 2004 1:29 AM To: 'Tomcat Users List' Subject: RE: How to disable directory listing Is there any better way to configure Tomcat 5 to no Directory listing just like IIS ? -Original Message- From: Quinton Delpeche [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 2:19 PM To: tomcat-user@jakarta.apache.org Subject: Re: How to disable directory listing On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote: How to disable directory listing under Tomcat 5 ? I use a blank index.html file and put it in all the directories that I don't want to have listed. :) Q - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: two versions of tomcat on the same machine
Yep, Change the port in TOMCAT_HOME/conf/server.xml. You'll also need to change the shutdown port (same file). -Ben On Mon, 2005-01-10 at 05:45, swetha Ranganathan wrote: Hi all Is it possible to run two different versions of tomcat in two different ports on the same machine Thanks Swetha Yahoo! India Matrimony: Find your life partneronline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preventing directory listings in WebApplication
Just before the error page listings in your application's web.xml file. 4305 4306 welcome-file-list id=WelcomeFileList_1 4307 welcome-fileindex.html/welcome-file 4308 welcome-fileindex.jsp/welcome-file 4308 welcome-filestart.jsp/welcome-file - 4309/welcome-file-list 4310 !-- On Mon, 2005-01-10 at 11:03, Paul Taylor wrote: Hi Are these exclusive options. I can disable the listings but cant get the default pages to work Should the default pages go in the applications web.xml or Tomcats main web.xml Ben Souther wrote: You can add start.jsp to your welcome file list or you can set listings to false in the the default servlet entry of TOMCAT_HOME/conf/web.xml On Mon, 2005-01-10 at 09:21, Paul Taylor wrote: Hi How exactly do I stop the user going into directory containing jsps and listing all the jsps within it as a directory listing. I dont mind them specifying a particular jsp and going straight to that but I would / to map to the default page for the particular some section. i.e myapp/section1 i want go to myapp/section1/start.jsp myapp/section2 i want go to myapp/section2/start.jsp I guess its something to do with mappings the applications in web.xml but I cant get it working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xml file correspondence
server.xml and TOMCAT_HOME/conf/web.xml combined would be closer. On Mon, 2005-01-10 at 13:56, Tim Funk wrote: Yup. -Tim Daniel Watrous wrote: Hello All, As I am getting familiar with Tomcat it helps to find a correspondence between tomcat and something that I am already familiar with. It would appear that the server.xml in tomcat file corresponds to the httpd.conf in apache. Can someone verify this? Thanks in advance! Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy using war file on tomcat 5
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Gives very detailed instructions, including an ANT script that wars up and installs the sample app built in the tutorial. On Fri, 2005-01-07 at 03:50, Sandeep Kang wrote: Hi all, I have been trying hard to deploy my webapp on Tomcat-5.0.27 using a WAR file. I have searched through the mail archives but havent been able to find a well defined proceudre for deploying webapps using WAR files. Plz can someone guide me on how to do that using Ant build.xml. Kindly give detailed step by step procedure. Thanks in advance. Bye. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Epyonne, Thank you for marking this thread [OT]. By replying to an existing thread instead of starting a new message, you've hijacked someone else's thread. A lot of people will not read your message because of this. Ask again with a new message. -Ben On Wed, 2005-01-05 at 07:51, epyonne wrote: Sorry if this is a little off topic. I have been developing Java web application for my employer for a while, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I plan to use a commercial hosting company to host the site. Any help will be very much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Is there anything else I need to watch out for? If you're not a web-designer, avoid taking charge of the look and feel of the site. I've always done best when I've told the client to use a design house for the look and feel and then give the static files the me so I can build the app around them. If you do it the other way around (the design house works with your JSP), make sure the customer signs off on your working but undressed pages before they go to the design house so you can charge them to fix anything the designers break. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat run as a daemon: Is jsvc reliable?
Hi, does anybody know if jsvc included in tomcat 5.0.28 is reliable for production environment? Look for jsvc.tar.gz in Tomcat's bin directory. You might want to see: http://issues.apache.org/bugzilla/show_bug.cgi?id=30052 Also search the archives for this and the tomcat-dev list. There was some discussion in the last week or two about the quality of the version shipped with Tomcat vs the latest CVS head in the jsvc project. http://jakarta.apache.org/commons/daemon/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS and Xmx Xms
Are you running Tomcat as a Windows Service? On Tue, 2005-01-04 at 16:36, joon yoo wrote: it looks like it's still stuck on the 64MB default value: JVM Free memory: 4.58 MB Total memory: 14.01 MB Max memory: 63.56 MB `set` shows the system env. variables as: JAVA_HOME=D:\Sun\AppServer\jdk JAVA_OPTS=-Xmx768m -Xms768m -server Were quotes needed around the value for JAVA_OPTS? If configuring it as a system env. variable was incorrect then can this registry edit for tomcat4 work: http://www.pauaware.co.nz/tomcatntservice.htm Do all those values there need to be added or can the only desired values be added? Many thanks for any help, Joon On Tue, 04 Jan 2005 16:25:52 -0500, Ben Souther [EMAIL PROTECTED] wrote: Click on Server Status from the Tomcat Manger App. On Tue, 2005-01-04 at 16:19, joon yoo wrote: On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM JAVA_OPTS was set to -Xmx768m -Xms768m -server as an environment variable in Windows, (not set in a batch file to start tomcat). How can it be confirmed that the new JVM settings is configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: heap size params on linux
I do it from catalina.sh From the header comments. 22 # JAVA_OPTS (Optional) Java runtime options used when the start, 23 # stop, or run command is executed. 24 # On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote: Our script for installing Tomcat as a service on Windows is down below. We're moving to Linux, so I'm wondering where we specify the heap size parameters (-Xmx and -Xms) for the Tomcat on Linux. Would the correct place be in the startup.sh file? Thanks! D:\tomcat\bin\tomcat.exe -install Apache_Tomcat C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll -server -Xmx1536m -Xms1536m -Djava.class.path=D:\Tomcat\bin\bootstrap.jar -Dcatalina.home=D:\Tomcat -Djava.endorsed.dirs=D:\Tomcat\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out D:\Tomcat\logs\stdout.log -err D:\Tomcat\logs\stderr.log pause - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: heap size params on linux
You don't want to use the 'set' statement in catalina.sh. Here's an exerpt from mine: # # $Id: catalina.sh,v 1.13.2.2 2004/11/17 20:06:34 yoavs Exp $ #- JAVA_OPTS=-Xms128m -Xmx128m Then just go to the HTML Manger and click Server Status to verify that it took. -Ben On Mon, 2005-01-03 at 15:03, Rodrigo Schmidt wrote: I think that any option you want to pass to the jvm can be placed in JAVA_OPTS, like this: set JAVA_OPTS = -Xmx1536m -Xms1536m -server I do that and it works fine. Rodrigo Stephen Charles Huey wrote: I see that JAVA_OPTS is mentioned in there quite a few times, so where exactly can I put set JAVA_OPTS=-Xmx1536m? Also, do I need to do both the initial and max in one line? E.g. set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the line?) Does the -server option go with JAVA_OPTS as well? Thanks... - Original message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Mon, 03 Jan 2005 14:41:07 -0500 Subject: Re: heap size params on linux I do it from catalina.sh From the header comments. 22 # JAVA_OPTS (Optional) Java runtime options used when the start, 23 # stop, or run command is executed. 24 # On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote: Our script for installing Tomcat as a service on Windows is down below. We're moving to Linux, so I'm wondering where we specify the heap size parameters (-Xmx and -Xms) for the Tomcat on Linux. Would the correct place be in the startup.sh file? Thanks! D:\tomcat\bin\tomcat.exe -install Apache_Tomcat C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll -server -Xmx1536m -Xms1536m -Djava.class.path=D:\Tomcat\bin\bootstrap.jar -Dcatalina.home=D:\Tomcat -Djava.endorsed.dirs=D:\Tomcat\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out D:\Tomcat\logs\stdout.log -err D:\Tomcat\logs\stderr.log pause - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Frank, Forgive me if this has already been suggested, I just came into this thread, midpoint (left my machine on at work ;)). Just for kicks, have you tried a fresh install of Tomcat on that machine? Ryan, I agree with you 100% about people not posting the same question twice and about netiquette in general. However, in this case, the rant is misdirected. After watching this list for the last several years (as well as the dev list), I can say that Mr, Zammetti has never been anything but helpful, knowledgeable, and respectful. I've also been seeing issues with this list in the last few weeks. There were days when it's taken 45 minutes or more for my posts to show up. -Ben On Sat, 2005-01-01 at 10:22, Frank W. Zammetti wrote: I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
You will also need a context entry for the manager app. I just did it by putting a copy of manager.xml in the TOMCAT_HOME/conf/Catalina/NEW_HOST_NAME. I could get see the manager app from both hosts but they both had the app listing from localhost. So, you need to fiddle with it a bit. I'm not a guru with this stuff. I've never needed a second host. If you search the archives, I'm sure you'll find plenty of examples. I've seen this issue discussed on several occasions. Another option, of course, is to give each client a separate instance of Tomcat. Then each client will be running in their own JVM which makes it a lot easier to protect one client from the stupidity of another ;) You can instanciate them all from the same code base by setting up different CATALINA_HOME and CATALINA_BASE environment variables. On Fri, 2004-12-31 at 05:45, Lukas Pataki wrote: hi thanx for the _really_ Quick answers :) On Thu, 30 Dec 2004 14:33:30 -0500 Ben Souther [EMAIL PROTECTED] wrote: Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. but what do you mean? is enough to define a virt. Host in the Server.xml like this ? Host name=www.customer1.it debug=0 appBase=/opt/jakarta-tomcat-4.1.12-LE-jdk14/webapps/struts-blank unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=cust1_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host thanx a lot luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for a few good books
For organizing a development environment, the best one I've seen is the First Web App Tutorial on the tomcat site: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html For actually coding JSPs and Servlets I still like: Core Servlets And Java Server Pages and it's followup: More Servlets and Java Server Pages. http://www.coreservlets.com Most of the books out there are somewhat outdated on deployment practices. Be sure to read: http://jakarta.apache.org/tomcat/faq/misc.html#evil because most of the books out there still use the invoker servlet in their examples. Also search this list. The question which books are best? comes up about once a month. There are some good replies in there. On Thu, 2004-12-30 at 13:01, Charles P. Killmer wrote: I am in need of some good books for developing solid JSP code. There are a ton of books out there but I am hoping that this group has a few favorites. What I need is a book that describes how to organize a JSP Tomcat site. Describes how to compile code into servlets. As well as include those classes into JSP script. Ideally these classes should be stored in a location that can be used by all sites. Any help is greatly appreciated. Thank You Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Windows needs special settings?
Have you verified that these are right? Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ On Thu, 2004-12-30 at 13:30, Nic Werner wrote: Hi, I'm using CVS to bring in my whole project which includes Tomcat. I can grab this just fine on any linux implementation and Tomcat will start, but on Windows I get this message: E:\-\bincatalina run (Using to get error output) Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ Using CATALINA_TMPDIR: e:\\temp Using JAVA_HOME: c:\progra~1\java\jdk1.5.0 Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap -- But if I run the Tomcat installer, and actually install Tomcat using the 'Start Tomcat' icon, it starts with no problem. Does the installer do something different with Windows that I can't just copy the files and run them? I'd like to keep Tomcat bundled with the rest of the code and not have to do a special install for Windows. - Nic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
I believe, and someone will correct me if I'm wrong, you can have one manager for each host entry in your server.xml. On Thu, 2004-12-30 at 13:51, Lukas Pataki wrote: hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
Each webapps would need to be under it's own virtual Host. On Thu, 2004-12-30 at 14:05, Lukas Pataki wrote: hi On Thu, 30 Dec 2004 13:53:42 -0500 Ben Souther [EMAIL PROTECTED] wrote: I believe, and someone will correct me if I'm wrong, you can have one manager for each host entry in your server.xml. so maybe i missunderstood the manager-howto: cite: If you have Tomcat configured to support multiple virtual hosts (websites) you would need to configure a Manager for each. .luke On Thu, 2004-12-30 at 13:51, Lukas Pataki wrote: hi List is there a way to set up the manager for each webs, so that the user can start or stop their Webapplication easily thru the web ? thanx.luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /manager for the webs
Each webapps would need to be under it's own virtual Host. Sorry, each context would need to be under it's own virtual host. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 startup crash, please help
There is actually a listing in Bugzilla this. Would you mind adding your findings to it? http://issues.apache.org/bugzilla/show_bug.cgi?id=30052 If this is a jsvc bug, your data might help to find it. That's a pretty old Linux distribution. I remember having trouble with Sun's jdk on either RH7.0 or RH7.1 There was a fairly buggy release of the gclib libraries in one of them. Are you able to try your app on a more recent Linux distribution for comparison? On Wed, 2004-12-29 at 01:30, Michael Kastner wrote: Hello Jacob, thanks for your reply, Jacob Kjome schrieb: A stack trace or some other error report would help. It's a bit vague when you simply describe it. Show the evidence and you will be more likely to get assistance. that's what I did yesterday, but got no response at all. Then I figured I might have given too much information on the problem. So, here's the information on the problem: configuration: tomcat 5.0.28 redhat linux 7.1 vm: 1.4.2_03 I'm trying to install tomcat 5.0. Everything works fine as far as using the startup and shutdown scripts provided. However, when I try to start the server as a linux daemon with jsvc, the server crashes. The catalina.out-log says: quote Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x400b0646 SIGNAL= 11 FUNCTION NAME = (N/A) OFFSET= 0x LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. pure virtual method called jsvc.exec error: Service exit with a return value of 255 /quote But then again, if I remove the ajp connector entry in server.xml, jsvc and the tomcat just work fine. If I try to start the server again after it has crashed once, the catalina.out-log says: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x400B0646 Function=(null)+0x400B0646 Library=/lib/i686/libc.so.6 NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source) at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source) at org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:132) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120) at org.apache.commons.modeler.Registry.load(Registry.java:819) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909) at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992) at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696) at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047) at org.apache.commons.modeler.Registry.registerComponent(Registry.java:859) at org.apache.commons.modeler.Registry.registerComponent(Registry.java:346) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1514) at org.apache.catalina.core.StandardService.start(StandardService.java:489) - locked 0x44cc7428 (a [Lorg.apache.catalina.Connector;) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) - locked 0x44ce5510 (a [Lorg.apache.catalina.Service;) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218) Does anyone have a clue? To me, this looks like a problem with jsvc and ajp. I do have another instance of
Re: Where do I specify location of stdout and stderr?
I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: Both stdout and stderr go to TOMCAT_HOME/logs/catalina.out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: j2sdk problems
Also, what happens when the user tries to access the app? A 404 Error? Can not connect error? A frozen browser? Dies can mean a lot of things. On Wed, 2004-12-29 at 15:52, Wade Chandler wrote: Warron French wrote: That's the problem, the j2sdk/jboss services fail after about a week and there is no log entries in the /var/log/mod_jk.log file. Or anywhere else I mentioned in my original email. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 Do you have any information about your memory usage on your computer? Do you know which version of Tomcat it is in the JBoss distro? Which version of mod_jk/2? Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat error page
On Wed, 2004-12-29 at 21:33, alis asma alias wrote: When there is an error in our web application, Tomcat will produce and error page that list down all the Exception stack trace and also THe version of the Apache Tomcat. To avoid displaying the default error page and to customize the error page, where should we configure it? In your app's web.xml file, just after the welcome-file list. Example: error-page error-code404/error-code location/404-error.jsp/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User name and password for the Admin area.
Yep, TOMCAT_HOME/conf/tomcat-users.xml Just add admin to the list of roles for a user. On Tue, 2004-12-28 at 21:06, Marco Mastrocinque wrote: Hi All, I'm a newbie to Tomcat. What is the user name and password for the Status and Tomcat Manager links, in the administration area? How do I change the passwords as well, I assume it is a XML file? Thanks Marco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: jsp+bean (tomcat) Sample Code
Hi, I am developing a new application using jsp+bean with tomcat 5. I don't have problems whit forms, but I don't know if bean is a good architecture for reports...(using the bean to access the database)...or maybe is better use only jsp for report purposes? If you have any code sample, I appreciate it This is not really Tomcat specific so I'm marking it [OT]. There are different schools of thought regarding the architecture of J2EE apps. Keeping everything in the JSPs (Model 1) is fine for small projects, prototypes, or projects where you are the only developer. For larger projects, especially ones where you may want a web designer, to change the look and feel of your JSPs, there are clear benefits to moving all non-view code into servlets and beans (Model 2). A Google search on MVC (Model View Controller) will yield all kinds of information on the subject. The Struts site http://struts.apache.org has a lot of good text on the subject. There are some sample apps on http://simple.souther.us. SimpleBean and SimpleMVC both have code that demonstrates the use of beans from within JSPs. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scripts
try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scripts
Is 'testClass' a valid class? Is it accessible to your JSPs? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html Have you imported it to the JSP? %@ page import=package.class % If you're new to Java/JSP, you'll probably save yourself a lot of headaches by finding either a JSP/Servlet book or an online tutorial. There are hundreds out there (GIYF). Also, your naming/capitalization convention hints that you are new to Java as well. Like with JSP/Servlets, there are lots of books and tutorials on Java available. On the surface, JSPs look a lot like PHP or ASP pages but there are some critical concepts (threading being on the top of the list) that you should understand before writing any production code with them. Best of Luck, -Ben On Wed, 2004-12-22 at 15:14, Charles P. Killmer wrote: Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within this test function? Thank you Charles Killmer -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:10 PM To: Tomcat Users List Subject: Re: Scripts try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, Charles P. Killmer wrote: I am trying to write a function in a script file and having a lot of trouble. % function String test() { return test; } out.print(test()); % Is there a way to do this without using a class? Also along these lines would something like this be possible. % function void test() { % This should just be echoed to the screen. % } test(); % Thanks for any help Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to run servlet for every 30 minutes in Tomcat 4.1.30
On Tue, 2004-12-21 at 11:28, Allistair Crossley wrote: no, and I believe doing so it bad practice. use some OS controlled timer like cron to issue a HTTP call to your servlet. I once wrote a shell script that calls a http address on the local machine but cannot remember how ;) if you are using oracle then you can setup this timer thread inside the database itself. don't add a thread into your web application. I concur. It's certainly possible to write a treaded java object that fires a command every so often but there would be no point in making that object a servlet (servlets exist to answer client requests). It's also, IMHO, more aggravation than it's worth to manage your own daemon threads in a webapp. It would take all of 2 minutes to write a timer with crontab and wget that could call your servlet whenever you want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CSR in Tomcat 5.0
I've used the -keyalg with -certreq. On Fri, 2004-12-17 at 10:23, Richard Panek wrote: Anyone have any idea how to properly create a CSR in Tomcat 5.0 to submit to Verisign? The command line is: Keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr \ -keystore your_keystore_filename The problem is that the -keyalg switch does not exist with the syntax for the -certreq switch. I can create the CSR file without the -keyalg switch. What affect will this have when submitting this to the CA? What encryption level? Richard Panek [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
form method=POST action=com.client.BizDispatcher Take the package name out of the action attribute. form method=POST action=BizDispatcher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1.31: NullPointerException
Where did you get this, the logs, or off the web screen? On Thu, 2004-12-16 at 09:06, T K wrote: This is the entire stack trace --- Ben Souther [EMAIL PROTECTED] wrote: Post the whole stackTrace On Wed, 2004-12-15 at 15:10, T K wrote: Any ideas about the following? 2004-12-06 11:29:26 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display of Static Resources
* servlet name tag in the servlet tag and servlet-mapping tag should be the same. Yes the servlet tag in web.xml is where you define the servlet's name. * The value of the url-pattern, welcome-file and the action value in the form tag should be all the same Yes, the url-pattern in the mapping tag of your web.xml file defines the string that a browser would need to send in order to invoke your servlet. * I should have one set of servlet, servlet-mapping and welcome file for every servlet I use NO. The welcome file is the default file. (ex: index.html, or index.jsp) If you want your servlet to be the default servlet for your app, this is where to set it up. * I should never use / as a pattern because that is what Tomcat uses for static resources. Yes. (unless you want to handle all the default behavior..) * Can I have a url-pattern /foobar/foo2bar? Yes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
Yes, something like that. Did you mean AccessLogValue? I did a search on that and didn't find much, but that looks like an Apache thing? I'm running Tomcat standalone (not being front-ended with Apache). In 5.0.28 the accessLogValve is already configured for you. You just need to uncommment it in your server.xml file. !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [newbie] Container Managed Security - preventing direct accessto .jsp
Thanks for the help and discussion Ben. /robert Yep, they look the same. Glad to help, even if I've done nothing more than validate your assumptions ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
I don't have a copy handy but did you look at the server.xml? On Wed, 2004-12-15 at 09:45, [EMAIL PROTECTED] wrote: In 5.0.28 the accessLogValve is already configured for you. You just need to uncommment it in your server.xml file. !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] HTTP Sniffers
On Wed, 2004-12-15 at 15:17, Didier McGillis wrote: Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. If you just need the headers, check out the LiveHeaders plugin to Mozilla/Firefox: http://livehttpheaders.mozdev.org/ If you want to see more than that, check out tcpflow. I think there is a windows version. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 4.1.31: NullPointerException
Post the whole stackTrace On Wed, 2004-12-15 at 15:10, T K wrote: Any ideas about the following? 2004-12-06 11:29:26 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] HTTP Sniffers
On Wed, 2004-12-15 at 15:17, Didier McGillis wrote: Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. If you just need the headers, check out the LiveHeaders plugin to Mozilla/Firefox: http://livehttpheaders.mozdev.org/ If you want to see more than that, check out tcpflow. I think there is a windows version. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim This is from the server.xml file in 4.1.24: !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help me off this list!
Did you try to unsubscribe using a different address than the one you signed up with? You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] On Wed, 2004-12-15 at 17:47, Leland Chen wrote: Actually, I have been in same situation for 2 years. I was not able to unsubscribe myself. htmlDIVnbsp;/DIV/html Original Message Follows From: TK Banks lt;[EMAIL PROTECTED]gt; Reply-To: quot;Tomcat Users Listquot; lt;[EMAIL PROTECTED]gt; To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Help me off this list! Date: Tue, 14 Dec 2004 23:55:40 -0800 (PST) No matter how many times I send mail to [EMAIL PROTECTED] I continue to be flooded with tomcat-user mail. Months ago I wanted to post a question to this list and found I couldn't do so unless I joined the list. So, grudgingly, I joined, posted my question and immediately unsubscribed. I checked my mail again days later to find I had gazillions of emails queued up. Since that time I've been periodically sending requests to unsubscribe and have had no success. Was there some fine print I missed that said I had to join for at least a year? __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ignore] test
sorry 16:49:45 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Tomcat 5 and Realm problem
On Wed, 2004-12-15 at 10:44, VAN DER MARLIERE FREDERIC wrote: Not far. I do use IE and htpts. And I turned off cookies but in server.xml file. I meet to many problems when I use session cookies and none with encoded URL. Any idea of the way to use realm authentication (FORM method) with cookies turned off? If there is, it probably won't be very portable. Here's a quote from the serlet specs: SRV.12.5.3.1 Login Form Notes Form based login and URL based session tracking can be problematic to implement. Form based login should be used only when sessions are being maintained by cookies or by SSL session information. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set an environement variable under fedora core3
It's usually done in the user's .bash_profile script. IE: /home/tomcat/.bash_profile The text usually looks like this: JAVA_HOME=/usr/local/jdk1.5.0 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5 export JAVA_HOME CATALINA_HOME You will either need to log in and back out or source your .bash_profile script for this to take place. . .bash_profile On Tue, 2004-12-14 at 13:16, FRANCOIS Dufour wrote: hi to all im used to work on windows im actualy tring to find were to set these variable under linux sombody could give mee an hint ? thanks in advance [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [newbie] Container Managed Security - preventing direct access to .jsp
Filters are portable. On Tue, 2004-12-14 at 12:32, Robert Taylor wrote: Ping... Please let me know if this questions is just too obvious and I'll gladly RTFM...even more. And yes, I know this list is not here just to serve _my_ interests. It just seems like a common idiom to provide a portable mechanism for protecting direct access to .jsp so as to enforce access through some controller. I have in the past placed .jsp files behind WEB-INF, but I don't believe that is portable and would like to use CMS to achieve this. Thanks again. /robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 8:59 PM To: [EMAIL PROTECTED] Subject: [newbie] Container Managed Security - preventing direct access to .jsp Greetings, I'm new to Tomcat and this mailing list, and have a question regarding configuring Tomcat to simply disallow access to .jsp pages which I have been protected via the security-constraint/ in my web app web.xml file. From what I understand, the following should do the trick and cause a 403 error to be sent to the browser by the container. I would like to trap that error code and display a user friendly page (I chose any page so I would know it's working). I've simply modified the Tomcat jsp-examples web app. Here's a snippet of the necessary artifacts in the web.xml file. error-page error-code403/error-code location/dates/date.jsp/location /error-page security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/security/protected/*/url-pattern /web-resource-collection /security-constraint I believe the constraint is working, but I don't think the error-page/ is catching the 403 status code. This is probably because a 403 status code is not returned, but rather a 200 (I verified this by looking at the response headers). Anyhow, the content of the returned page is below within the content/: content You are logged in as remote user null in session D97EE937BEC953A7E82E42B3956AED86 No user principal could be identified. To check whether your username has been granted a particular role, enter it here: If you have configured this app for form-based authentication, you can log off by clicking here. This should cause you to be returned to the logon page after the redirect that is performed. /content I'm sure this has happened to someone else, I just cannot find where. I googled and didn't come up with much. I searched the archives using You are logged in as remote user null in session and no matches were found. Any help would be greatly appreciated. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat upgrade to 4.1.7
Other than the release notes that ship with TC, I don't think you'll find much. Out of curiosity, why are you upgrading to 4.1.7? The current 4x is 4.1.31. On Tue, 2004-12-14 at 14:26, john corcoran wrote: Hello, I 've searched the tomcat website and could not find any instructions for upgrading Tomcat 4.0.5 to Tomcat 4.1.7 Can anybody help me out ? Looking for some tpye of cook book or detail instructions . Thanks -John Corcoran _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set an environement variable under fedora core3
I think the norm is to: Create a user that will be used to run tomcat (like tomcat). Use chown on the tomcat direcctory (often /usr/local/jakarta-tomcat-xxx). Create the needed environment variables in the tomcat user's .bash_profile script (as mentioned in the other posts). On Tue, 2004-12-14 at 14:39, FRANCOIS Dufour wrote: thanks for the hint still im french so im having a hard time understanding those terms so i have to log in as root copy catalina content under / %home folder % and edit that variable so wen i run startup.sh the executable find itself would it work if i edit startup.sh and include in there the corect path to catalina and jdk ? wondering can i do that [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Alain Gaeremynck [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: set an environement variable under fedora core3 Date: Tue, 14 Dec 2004 13:52:52 -0500 In Linux / bash you can set any environement variable using export VAR_NAME=var value you can do that in the script itself, in the user's .bash_profile file or in the shell directly FRANCOIS Dufour wrote: hi to all im used to work on windows im actualy tring to find were to set these variable under linux sombody could give mee an hint ? thanks in advance [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [newbie] Container Managed Security - preventing direct access to .jsp
It appears that there is no standard way to do this even though it's implied in the spec. I don't know how standard this is but it works. The trick is in the auth-constraint node (note the commented out role-name). Since it is exclusive. Not declaring a role-name for the protected resource denies access to everyone. You then catch the 403 error with an error page mapping and you're good to go. The JSPs can still be accessed from the request dispatcher so you can reach them through the MVC pattern. I suppose a simpler solution would be simply to create a servelet-mapping with a url pattern of *.jsp and map it to an error servlet. If you want to test this out quickly grab the SimpleMVC.war from http://simple.souther.us and replace the web.xml file with this one. You'd have to create your own no-jsp-4-u.html page. Hope it helps -Ben ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 servlet servlet-name ControllerServlet /servlet-name servlet-class us.souther.simple.mvc.ControllerServlet/servlet-class /servlet servlet-mapping servlet-nameControllerServlet/servlet-name url-pattern/simple-mvc/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-name off-limits /web-resource-name url-pattern *.jsp /url-pattern /web-resource-collection auth-constraint !--role-name manager /role-name-- /auth-constraint /security-constraint error-page error-code403/error-code location/no-jsp-4-u.html/location /error-page /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]