RE: mod_jk2 vs mod_jk
Hi, JK2 is an improvement over JK. It incorporates performance boosts, is more modular (looser coupling), and is less involved in its configuration. Flip side is its comparative 'newness'. I notice many visitors seeking help with connectors are still being directed to sites presenting 'how-to's' on the older JK connector. This may be causing some confusion. Personally, I persevered with JK2 and was successful (despite the sparse documentation). Chris. -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 March 2003 9:29 a.m. To: Tomcat List Subject: mod_jk2 vs mod_jk With apache 2.x do people still use mod_jk or have people moved to mod_jk2? Is there any reason to still use mod_jk? Thanks, --Rick - 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: Worker found, but not doing any work?
Hi, Check your logs for errors. You should find a message stating that a certain page can not be found. What is the path? If it is something like APACHE_HOME/htdocs/examples/*.jsp then the document root in httpd.conf needs looking at. Chris. -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, 21 March 2003 1:59 a.m. To: [EMAIL PROTECTED] Subject: Worker found, but not doing any work? I'm using Tomcat 4.1.18 with Apache 2.0.44. When I browse directly to the Tomcat examples all the servlets and JSPs work fine. I'm having trouble accessing the examples through apache. I've found numerous examples on the web for setup. Each is different and unfortunately, none of them has worked! I've gotten to the point with I can display all the static content and can see from the mod-_jk.log file that I have found a worker. Its just the worker is returning 404 and I don't know why?? Any thoughts would be GREATLY appreciated. Thanks, F [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/jsp/dates/date.jsp' [Thu Mar 20 08:58:15 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Mar 20 08:58:15 2003] [mod_jk.c (1668)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=7932888 worker=ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Mar 20 08:58:15 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Mar 20 08:58:15 2003] [mod_jk.c (485)]: agsp=80 agsn=www.fcgphoto.com hostn=www.fcgphoto.com shostn=www.fcgphoto.com cbsport=0 sport=0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Thu Mar 20 08:58:15 2003] [jk_connect.c (132)]: Into jk_open_socket [Thu Mar 20 08:58:15 2003] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 664 [Thu Mar 20 08:58:15 2003] [jk_connect.c (148)]: jk_open_socket, after connect ret = 0 [Thu Mar 20 08:58:15 2003] [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on [Thu Mar 20 08:58:15 2003] [jk_connect.c (174)]: jk_open_socket, return, sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 664 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (642)]: sending to ajp13 #581 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #726 [Thu Mar 20 08:58:15 2003] [mod_jk.c (386)]: writing 722 (722) out of 722 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (729)]: received from ajp13 #2 [Thu Mar 20 08:58:15 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection [Thu Mar 20 08:58:15 2003] ajp13 www.fcgphoto.com 0.03 = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.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: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException
Hi, Another common (Java) solution is to install PJA Toolkit: PJA (Pure Java AWT) Toolkit is a JavaTM library for drawing graphics developed by eTeks. It is 100% Pure Java and doesn't use any native graphics resource of the system on which the Java Virtual Machine runs. java.awt.Graphics methods such as drawLine (), fillOval (), drawString (),... are implemented in the default JVM with native graphical functions (except in some cases for Java2D) : That means that drawLine () finally calls a GDI system function on Windows or X11 function on a X11/UNIX machine even if the drawing is done in an off-screen image using the class java.awt.Image. This ensures the best performance for drawing graphics with Java. But in a few cases, this default behavior can cause problems that PJA library improves : When no X11 Display is available on a UNIX machine (also called headless environment) or when GDI resources are low on Windows, it is impossible to compute off-screen images with java.awt.Graphics methods under a JDK version 1.4, even if your program doesn't need to display these images. Typically, this situation happens for servlets returning dynamically generated images like pies, charts or web counters. With PJA, you don't need to change your Java programs that you expected to run : setting java.awt system property to com.eteks.awt.PJAToolkit is the only required modification to your program with Java 1.1 (see PJA FAQ and com.eteks.awt.PJAToolkit class documentation for more information). It is also impossible to compute off-screen images when the Java security manager forbids access to any Toolkit or the AWT library. In that case you can although create an instance of com.eteks.awt.PJAImage class which extends java.awt.Image, and draw into it with graphics methods. Drawing with native function doesn't give always the exact same results for each pixel on all platforms. For example, SansSerif font renders differently on MacOS, Windows and other systems : each letter of this font isn't drawn the same, and is different if font anti-aliasing is set or not on the system. On MacOS, circles aren't rendered as specified in Java documentation : fillArc () and drawArc () don't use the same base ellipse... Finally, PJA library available under GNU General Public License is supplied with its Java source files, and is a good exemple for studying : How pixels are drawn by graphics functions on a computer (com.eteks.awt.PJAGraphics uses Bresenham algorithms to draw lines and circles). How to use the Java paradigm for managing images specified by the ImageConsumer/ImageProducer/ImageObserver interfaces. How Java Toolkit works and what it needs to work (which abstract classes and interfaces to implement). Regards, Chris. -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, 21 March 2003 7:18 a.m. To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install on a linux box that emulates an X session, which then kinda solves all the graphical problems in one step. You set the xvfb to the resolution required and just start and forget about it. Worth I shot, I'd say, and might safe you hours of frustration [It did me ;-) ]. On Thu, 2003-03-20 at 18:34, Micael wrote: You using Linux? What is your environment? Anyway, setting the JVM is the way to go if you are using Linux. At 06:09 PM 3/20/03 +0100, you wrote: Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges
RE: User Interface To Tomcat User List
How about an eForum that in addition to emailing the thread initialiser and post authors within that thread whenever a response is made, also emails the 'Tomcat Users List? Then those who resist change still get their mail en masse, and those who don't... don't. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 6:10 a.m. To: Tomcat Users List Subject: Re: User Interface To Tomcat User List On Thu, 20 Mar 2003, NormW wrote: Date: Thu, 20 Mar 2003 04:56:23 +1100 From: NormW [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: User Interface To Tomcat User List Good morning Eric. I wasn't 'pushing' for a change as I will go back to just viewing the Archives until I need to pose another question; that's why I mentioned that I'm only new to TC and not even close to being able to help with 99% of what comes in my Inbox. That's what I liked with the Newsgroup format... I can browse them online, and, in the event I can offer some assistance, it's easy to do so...and don't have to wade through (66 this morning) a lot of messages I cannot do anyhing for. While pulling down particular threads is feasible, my knowledge isn't that 'compartmentalised'; I might know 4 facts on advanced config and 100 on where to find docs; AIX, Linux, Solaris, Windows 2K, etc I can provide a cup of coffee for. I gather the mailing lists have been going for a number of years so something must be working; I was just thinking it might have been easier. Thanks for the feedback though. Norm Any reasonable mail reader that supports sorting by thread, plus a simple filter rule to copy messages for each mailing list into their own folder, can give you exactly the same user experience as newsgroups. (Try Mozilla 1.3, for just one example). Plus, I can select offline mode and download all the messages, so I can browse them on my laptop offline, reply to them with send later, and sync up when I reconnect to the net. And none of this requires disrupting the lives of 2500 other TOMCAT-USER subscribers already using the mailing list. A newsgroup-only solution would disenfranchise all users who are behind corporate firewalls that block NNTP. That's totally unreasonable for a resource like TOMCAT-USER. As others have pointed out, there are unofficial mirrors for TOMCAT-USER that let you access the list's content via NNTP if you want -- but with someone else taking the administrative hassles for managing that. If you want *me* to answer questions, you can also assume that any eforum type interface is also a non-starter :-). I want mail to come to me, so that I can peruse it when *I* have a few minutes; not have to go to it. Craig - 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: jk2 documentation
I managed to get JK2 working last weekend, despite the poor documentation. I kept a diary of what I did, so next time it wouldn't be such an extended exercise of trial and error. I've attached it as a DRAFT procedure. It isn't too detailed at present, but you're welcome to test it. Let me know where you find it lacking. Chris. -Original Message- From: Herbert G. Fischer [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 9:23 a.m. To: Tomcat-Users Subject: jk2 documentation Hi, I'm trying to migrate Tomcat 4.0.x + WebApp to Tomcat 4.1.21 + JK2, but I'm having some difficult. First, I tryed to compile jk2 without sucess. Now I'm using pre-built binaries fo jk2 and it's not working. Jk2's documentation is so confuse and incomplete. I'm trying some things like Jk's documentation, but it not works too. Does anyone have a HOW-TO or documentation more complete for this setup? Thanks, Herbert - 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: jk2 documentation
Better still, I'll export it to HTML and upload it to my home page. Later today. Thanks for the interest. Chris. -Original Message- From: Eulogio Robles [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 12:25 p.m. To: Tomcat Users List Subject: Re: jk2 documentation Better yet, post it here, please. I'm having the same problem. Best regards, E. Robles Herbert G. Fischer wrote: I did not received the attach. I think the list-serv removed it. Please, send to [EMAIL PROTECTED] Thanks! Chris Dodunski wrote: I managed to get JK2 working last weekend, despite the poor documentation. I kept a diary of what I did, so next time it wouldn't be such an extended exercise of trial and error. I've attached it as a DRAFT procedure. It isn't too detailed at present, but you're welcome to test it. Let me know where you find it lacking. Chris. -Original Message- From: Herbert G. Fischer [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 March 2003 9:23 a.m. To: Tomcat-Users Subject: jk2 documentation Hi, I'm trying to migrate Tomcat 4.0.x + WebApp to Tomcat 4.1.21 + JK2, but I'm having some difficult. First, I tryed to compile jk2 without sucess. Now I'm using pre-built binaries fo jk2 and it's not working. Jk2's documentation is so confuse and incomplete. I'm trying some things like Jk's documentation, but it not works too. Does anyone have a HOW-TO or documentation more complete for this setup? Thanks, Herbert - 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: Arbitrary Tomcat mounting in Apache
Hi, What is 'DocumentRoot' and the Directory tag set to in [Apache Home]/conf/httpd.conf? Where is 'cocoon' in relation to this? Chris. -Original Message- From: Aaron Paetznick [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 5:45 a.m. To: [EMAIL PROTECTED] Subject: Arbitrary Tomcat mounting in Apache I apologize because I've sent this email already with the subject JK2 context mounting, but I didn't get a response. I want to be able to mount a Tomcat URI at any arbitrary location in Apache. Apache and Tomcat are currently working with the mod_jk2 connector with existing Tomcat URIs. I'm using Apache v2.0.44, Tomcat v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9. Here is some of my workers2.properties file: [uri:/cocoon/*] context=/cocoon/ [uri:/someapp/*] context=/cocoon/someapp/ ..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works fine. When I add the second (/someapp/) entry, both locations spit out a 404 error. I can't seem to find any other possible configuration method to do this with. This has to be a common problem and question. I've searched Apache.org and Google extensively for the answer, but it's no good. I even considered trying mod_webapp, but I'm using the worker MPM (i.e. threaded) which mod_webapp doesn't like. The uriMap config sounds promising, but there is zero documentation for it, and I couldn't get it to do anything useful while I was experimenting. Can anybody help me out? Thanks! --Aaron - 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: Extending HttpServletRequest / HttpServletResponse ???
Rick, don't be so precious! Incidentally, what is the Servlet text you currently have in your possession? I have two: 'Java Servlet Programming', and 'Java Servlet Programming Bible' (can't recall authors at present - they're at home). Chris. -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 7:06 a.m. To: Tomcat Users List Subject: RE: Extending HttpServletRequest / HttpServletResponse ??? I'd recommend getting a Serlvet programming book and optionally a JSP book. They will come in very handy for these questions. really? I have one of each, neither mention the subject or either classes mentioned. Maybe before you make a vague suggestion like get a book , you may want to qualify about whether or not the desired result is possible and suggest an appropriate resource that may actually contain said information( book title, etc,). Its always nice to try something a little different and be demoted to idiot status with the statment , get a book Does anyone have an useful information -Rick -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 11:02 AM To: Tomcat Users List Subject: Re: Extending HttpServletRequest / HttpServletResponse ??? I'd recommend getting a Serlvet programming book and optionally a JSP book. They will come in very handy for these questions. valve - Tomcat specific filter - Like a valve but portable across other servlet containers because its part of the serlvet specification. requests/response can be wrapped by the Servlet wrapper classes which are part of the Servlet API. A book will really help clear the specifics up of why and when to use them. Never ever use catalina classes directly unless: - You really need to - You really know why you are using them - You really need to -Tim Gavin, Rick wrote: Thanks Bill, Does anyone have some docs about using this feature? I haven't been able to find much on the jakarta site. I'm a bit confused as to what the difference between a valve and a filter is. and which is the corret one to use. When i search for filter, i get info on valves. I haven't found anything on how to use a filter. Also, if i use a wrapper to extend the request/response objects, does that mean in a JSP page i would be able to access any extra methods i wanted to add.. such as.. -- in jsp file -- String value = request.doMyNewAction(param1); is it recommeded to use the catalina wrapper objects when working with tomcat or the javax wrappers? org.apache.catalina.connector.HttpRequestWrapper or javax.servlet.http.HttpServletRequestWrapper Thanks for the help, Rick -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:29 PM To: [EMAIL PROTECTED] Subject: Re: Extending HttpServletRequest / HttpServletResponse ??? It depends on the version. The answer is no for Servlet-2.2 containers (e.g. Tomcat 3.x). The answer is yes for Servlet-2.3 containers (e.g. Tomcat 4.x). In fact, for Servlet-2.3 containers it is one of the most common things that a Filter does. If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and HttpServletResponseWrapper (both in the javax.servlet.http package). Gavin, Rick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All Is it possible to extend request and response objects to add a few custom properties and / or methods relating to a particular system, and have tomcat use those instead of the standard request and resonse objects? Thanks, Rick - 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: Arbitrary Tomcat mounting in Apache
Well, I redefined DocumentRoot and Directory in [Apache Home]/conf/httpd.conf so I could navigate to [Tomcat Home]/webapps (via JK2), but perhaps this isn't the way it's best done - although it works. Previously I could only navigate to [Apache Home]/htdocs. I would like to hear more on this also. Chris. -Original Message- From: Aaron Paetznick [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 9:53 a.m. To: Tomcat Users List Subject: Re: Arbitrary Tomcat mounting in Apache The actual location of the cocoon directory is _outside_ any DocumentRoot or Directory definition. Is that my problem? I would not have suspected that at all because, and please excuse my ignorance, I thought mod_jk2 was more or less a glorified mod_proxy tailored for ajp13. I'll try tweaking my Directory and DocumentRoot definitions and let the list know how it goes. --Aaron Chris Dodunski wrote: Hi, What is 'DocumentRoot' and the Directory tag set to in [Apache Home]/conf/httpd.conf? Where is 'cocoon' in relation to this? Chris. -Original Message- From: Aaron Paetznick [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 5:45 a.m. To: [EMAIL PROTECTED] Subject: Arbitrary Tomcat mounting in Apache I apologize because I've sent this email already with the subject JK2 context mounting, but I didn't get a response. I want to be able to mount a Tomcat URI at any arbitrary location in Apache. Apache and Tomcat are currently working with the mod_jk2 connector with existing Tomcat URIs. I'm using Apache v2.0.44, Tomcat v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9. Here is some of my workers2.properties file: [uri:/cocoon/*] context=/cocoon/ [uri:/someapp/*] context=/cocoon/someapp/ ..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works fine. When I add the second (/someapp/) entry, both locations spit out a 404 error. I can't seem to find any other possible configuration method to do this with. This has to be a common problem and question. I've searched Apache.org and Google extensively for the answer, but it's no good. I even considered trying mod_webapp, but I'm using the worker MPM (i.e. threaded) which mod_webapp doesn't like. The uriMap config sounds promising, but there is zero documentation for it, and I couldn't get it to do anything useful while I was experimenting. Can anybody help me out? Thanks! --Aaron - 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.18
When you installed Tomcat, did you select a normal install (NT checkbox=false), or custom (NT checkbox=true)? Chris. -Original Message- From: Keith [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 10:40 a.m. To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 I have just installed and having running Tomcat 4.1.18 for Windows ... I am presently starting the server by using the {TOMCAT}\bin\startup.bat script is there a way to start the Tomcat server using services ??? Thanks, Keith Crosby -- - Keith S. Crosby Principal Systems Consultant Xyvision Enterprise Solutions Inc. 30 New Crossing Rd Reading, MA 01867 781-756-5669 visit: www.xyenterprise.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: jk2 and passing env vars
Why not a Tomcat eForum, like those at www.codeguru.com? Visitors can then expand only those threads which interest them, and notifyEmail is only dispatched to the thread initialiser and post authors within that thread. Problems are not missed, and solutions persist... Blah blah blah, so it goes on. Mailing lists are fine for eCommunities, but not for eContinents (was that an echo? :-). Chris. -Original Message- From: grenoml [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 1:02 p.m. To: Tomcat Users List Subject: Re: jk2 and passing env vars I took a look at AJP13 Extension Proposal and it looks at though the original JkEnvVar should have been inherited from AJP12 into AJP13 so it should be working unless someone maybe fubar the old code. Well, we'll see if apache group responds to my bug 12186. I know how you feel about all the emails from these lists. I wish they would add an option to just let you flag topics that you want to watch and forget the rest. I took a yahoo account with 4MB limit just to discpline myself to manage the different maillist inboxes. I either manage it or I cannot send or receive mail - great incentive. And good luck on Netware conversion. Gerry --- NormW [EMAIL PROTECTED] wrote: Good morning Gerry. I'm working with Tomcat on Netware and only got involved because of a desire to try JK2;...then find it isn't available for Netware because the way it works internally cannot be easily ported. I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling here, and found that, even with 2.0.43 Apache2 installed (WinNT), the Jk directives were not being recognised in httpd.conf. I had a Ifmodule mod_jk2.c directive that WAS being interpreted correctly [mis-spelling the module name would cause Apache to bypass the directives] so I know it could see the module, but not the Directives. Given that I couldn't put the dll to much use (I was mostly curious to see the 'status' ouput) I left it at that in hope the next release of JK2 provides docs that allow a functional spec of the module to be derived... from which a port to Netware might be created. Wether this was a bug carried over from the source or a corrupted dll I couldn't say, but your experience suggests it might be in the source. On a side note, can't say I'm impressed with the 'everyone gets all the mail' methodology after working with conventional newsgroups... I had one simple question and, on one morning alone, got 91 emails... sheesh!... 99.99% I couldn't even answer and not in regard to my question... which is why I'll probably opt out and just read the archives. As far as passing environment vars to Tomcat, I assume that is used when Tomcat is run in a JVM within the Apache web space because there doesn't appear to be any mention of passing vars in the ajp13 protocol description, although it is listed as an enhancement in the proposed ajp13 upgrade (ajp14?). For now Norm - Original Message - From: grenoml [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 7:36 AM Subject: Re: jk2 and passing env vars Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally. BTW, do you know if there is bug open on this in bugzilla? Do you think this is just a lack of configuration documentation or should this be posted as a bug? Regards, Gerry --- NormW [EMAIL PROTECTED] wrote: Good morning. If you are using the 2.0.43.dll version of JK2 you are not alone. N - Original Message - From: grenoml [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 6:14 AM Subject: jk2 and passing env vars Is the method for passing environment vars between Apache2 and Tomcat the same for mod_jk and mod_jk2? I am using jk2 now and when I tried adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in this error when starting Apache2: Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a module not included in the server configuration. I have the LoadModule directive declared for jk2_module and the connector is working fine otherwise. Does jk2 not recognize the Jk* directives? It doesn't seem to recognize any of them. Thanks :-) __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.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] __ Do you
JK2 for Linux
Hi, Apache.org download page for JK2 2.0.1 reports that it is initial release quality code, and the JK2 2.0.2 page has no download for Linux. Is there a 2.0.2 version for Linux, and if so what is its status regarding testing/release? Thanks, Chris. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2 .0.1/ This is the 2.0.1 release of JK2 The JK2 should be considered initial-release quality code. It has not been subjected to the same stresses on its stability and security that the mod_jk releases have enjoyed, so there is a greater possibility of undiscovered vulnerabilities to stability or security. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User Interface To Tomcat User List
Hi, I suspect knowledgeable and helpful people are also very busy people, and unlikely to stick around when receiving 200+ emails come Monday morning! The community is great, the correspondence valuable. I frequent the www.codeguru.com Java Programmers forum, and it works astonishingly well. These forums are made available to eCommunities by independent parties - perhaps at a cost, I'm not sure. Actually, I'm developing an eForum in Java at present (private project), and I have the site to run it if required. If nothing has changed by the time it's complete, I'll offer it for free. Chris. -Original Message- From: NormW [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 March 2003 4:37 p.m. To: Tomcat Users List Subject: User Interface To Tomcat User List Good afternoon All. Only new to the Tomcat User Mail List and may likely opt out soon to conserve my Inbox, but wanted to say that getting 91 emails in one session (2 were relevant to the question I asked) isn't helping me or likely of much use to anyone else for that matter either. (Perhaps my ISP who charges by the amount downloaded?) I have limited exposure to Tomcat and the docs and config files to some extent, so I probably could help a few, but not if I have to keep clearing my my Inbox every hour or so. Newsgroups are what I got used to for Netware, with the various products broken up into different categories like install, utils and so on, that ANYONE can browse, and if you see a message that you can offer some help to, just click on 'reply to group', say your piece and send; no cluttered Inboxes and, I suspect, a lot less traffic for the server. A moderator (unknown) vets/removes anything of a stupid/antisocial nature, and in five plus years that I've experienced it, it seems to have worked well. I've received emails recently that are proposing eForum(s), and, while the format is unknown to me, believe there is a sound basis for looking at changing the way the users list works, regardless of the method used. $0.02 Norm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 (cont.)
Hello Kent and hello Dave, The good news is that I too finally got JK2 working! It took an entire weekend, but I got there in the end. I would next like to acquire a complete understanding of how workers2.properties and jk2.properties work. At the time of implementing the JK2 connector I was directed to several web sites offering how-to's on the matter. However, I found many of them related to the older JK connector, and apache.org site stated quite clearly that although JK and JK2 were similar in operation, their configurations were very different. Moreover, amongst those JK sites, there were significant variations in configuration. In the end, I decided to tackle it alone. Well, that's not exactly true. Without Dave Short's assistance I would still be struggling, I'm sure. Thank you Dave! I have drafted a procedure for setting up an Apache-Tomcat web server environment, utilising the JK2 connector. I've checked its integrity by doing the same on a second computer - both running WinXP. I am about to try the same on a Linux box. If either of you (or anyone else for that matter) are interested in testing this procedure for correctness, please email me direct. Once it is proven sufficiently true and robust, if the demand is there, I'll post it on my home page. Regards, Chris. -Original Message- From: Kent Kruckeberg [mailto:[EMAIL PROTECTED] Sent: Monday, 17 March 2003 4:43 p.m. To: Tomcat Users List Subject: RE: JK2 (cont.) I think that is exactly it. I had the same problem and had emailed you both when I discovered this was the problem. I had just signed up for this list, though, so I emailed you personally and you probably didn't recognize my addy so deleted the msg. Just wanted to thank you Dave for the help. It was funny that I stumbled upon this user list this weekend and am doing the EXACT same setup as Chris and having the EXACT same problems and getting the EXACT same help you are giving to result in getting it all working! I expect Chris will now too, thanks again. Kent --- Short, Dave [EMAIL PROTECTED] wrote: It looks as though when you commented out the 8080 in the server.xml file you might have messed up the comments, hence the -- error message on line 92. It should look like this: !-- Out of the box 8080 port Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -- Notice the !-- and matching --. Also, if that doesn't help try enclosing your paths in double quotes like so: [config:] #file=${serverRoot}/conf/workers2.properties file=c:/Program Files/Apache Group/Apache2/conf/workers2.properties debug=0 debugEnv=0 -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Sunday, March 16, 2003 3:27 AM To: Tomcat Users List Subject: Re: JK2 (cont.) Hi again, - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 16, 2003 2:30 PM Subject: RE: JK2 (cont.) Paths must match up. Check the paths in the config files I sent against your paths. If they don't match up, adjust the paths in the config files I sent. This configuration works on W2K with Apache 2.0.44 and Tomcat 4.1.18. Comment out 8080 in the server.xml file because Apache will serve up everything except .jsp and servlet files. See the [uri:/examples/*.jsp] and [uri:/examples/servlet/*] in the workers2.properties file? Yes, paths now match up (workers2.properties appears at the end of this post). Now, when Apache starts, I get a fatal error (log extracts below). Windows attempts to shut Apache down - 'send report' dialog etc. - but Apache apparently restarts. Any ideas? At least I am making progress. Well, I hope ;-). error.log [Sun Mar 16 22:51:44 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:44 2003] [notice] Parent: Created child process 1888 [Sun Mar 16 22:51:44 2003] [notice] Child 1888: Child process is running [Sun Mar 16 22:51:45 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:45 2003] [error] mod_jk child workerEnv in error state 1 [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Acquired the start mutex. [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Starting 250 worker threads. [Sun Mar 16 22:51:54 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:54 2003] [notice] Parent: Created child process 1748 [Sun Mar 16 22:51:54 2003] [notice] Child 1748: Child process is running [Sun Mar 16 22:51:55 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:55 2003] [error] mod_jk child workerEnv in error state 2 [Sun Mar 16 22:51:55
RE: RE : Apache - Tomcat connectors
I found the apache.org documentation as pertaining to JK2 quite simply inadequate, and that's putting it mildly. I've drafted my own procedure as a consequence. If you are interested, email me direct. Good luck! Chris. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 March 2003 2:07 a.m. To: Tomcat Users List Subject: RE: RE : Apache - Tomcat connectors Hmmm, I thought I would illustrate my point about the JK2 docs being contradictory and incomplete by giving some examples of options from the online docs that do not work or are not supported in the current version of JK2 ... but now the whole section seems to have been removed from the page? Perhaps this is being updated to match the current code as we speak. If it is being updated, can you please show some virtual host examples for JK2. This is what had me baffled for a bit. I eventually did get JK2 running for my configuration, but the heaps of scary looking messages filling the logs and the slower than JK performance prompted me to remove it and go back to JK. Building it was a non event. If you can build JK, JK2 is no harder. Dennis -Original Message- From: apachep2 [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:01 PM To: 'Tomcat Users List' Subject: RE: RE : Apache - Tomcat connectors Build: Search archive you will find a link to a site that teaches you step by step how to build mod_jk2. Since it's Friday, why don't I just give you the link http://www.pubbitch.org/jboss/mod_jk2.html. Configure: Follow tomcat-connector's document. -Original Message- From: LAGALISSE Eric [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 12:12 PM To: Tomcat Users List Subject: RE : Apache - Tomcat connectors I'm not sure that configuring jk2 will be easier if we build it because someone can easily build something without knowing how to configure it. But i'm ready to believe you so provide us YOUR method to build this module and i'll write back onto this forum my point of view. I'm sure a lot of people are waiting for this build method. Eric LAGALISSE -Message d'origine- De : apachep2 [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2003 17:43 À : 'Tomcat Users List' Objet : RE: Apache - Tomcat connectors Disagree. I think the simplicity of jk2 configuration (not building of jk2) confuses people. Because, we as developer, get used to think complicated. I did feel frustrated building jk2. Once I built it, I was surprised that the configuration is so simple. -Original Message- From: Dennis Cartier [mailto:[EMAIL PROTECTED] Sent: March 14, 2003 11:32 AM To: Tomcat Users List Subject: RE: Apache - Tomcat connectors I agree. I struggled with JK2 for awhile but finally gave up and went back to JK. The docs were very confusing and contradictory. I suppose I could have appealed for help, but I got the impression that JK2 was still under constant change and without being able to be self sufficient, I felt the risk was unwarranted. Dennis -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 7:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Server.xml
Or, like what I did, comment out a block of code not noticing that that block contained comments - in effect producing a nested comment. Chris. -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 March 2003 10:46 a.m. To: 'Tomcat Users List' Subject: RE: Server.xml Hi Sandra: Sorry for the push on XML syntax: I have just noticed a few incidences where people try to comment out pieces of an xml file and mistakenly embed some -- in a comment, or forget to close a tag. Now: In general the logs looks fine, the only potential problem I can see is that the web descriptor can not be found for your web application. You should have a web.xml file under the WEB-INF directory of your web application. Without this, only the defaults would be used, and this is usually not enough. You need to have a web.xml file under $CATALINA_HOME/webapps/star/WEB-INF/web.xml (or windows) $CATALINA_HOME\webapps\star\WEB-INF\web.xml This file should describe your web application to tomcat: Mapping the Servlet and URL's, any additional parameters and such. The server.xml configures Tomcat: For options have a look at the DTD: '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' *** snip *** 2003-03-17 13:37:25 ContextConfig[/star]: Missing application web.xml, using defaults only 2003-03-17 13:37:25 ContextConfig[/star]: Scanning web.xml tag libraries 2003-03-17 13:37:25 ContextConfig[/star]: Scanning TLD files in /WEB-INF 2003-03-17 13:37:25 ContextConfig[/star]: Scanning library JAR files 2003-03-17 13:37:25 ContextConfig[/star]: Added certificates - request attribute Valve 2003-03-17 13:37:25 ContextConfig[/star]: Pipline Configuration: 2003-03-17 13:37:25 ContextConfig[/star]: org.apache.catalina.valves.CertificatesValve/1.0 2003-03-17 13:37:25 ContextConfig[/star]: org.apache.catalina.core.StandardContextValve/1.0 2003-03-17 13:37:25 ContextConfig[/star]: == 2003-03-17 13:37:25 StandardContext[/star]: Configuring application event listeners 2003-03-17 13:37:25 StandardContext[/star]: Sending application start events 2003-03-17 13:37:25 StandardContext[/star]: Starting filters 2003-03-17 13:37:25 StandardContext[/star]: Posting standard context attributes 2003-03-17 13:37:25 StandardWrapper[/star:default]: Loading container servlet default 2003-03-17 13:37:25 StandardWrapper[/star:invoker]: Loading container *** snip *** servlet invoker 2003-03-17 13:37:25 Internal Error: File /WEB-INF/web.xml not found 2003-03-17 13:37:26 ContextConfig[/IDCard]: Missing application web.xml, using defaults only 2003-03-17 13:37:26 ContextConfig[/IDCard]: Scanning web.xml tag libraries 2003-03-17 13:37:26 ContextConfig[/IDCard]: Scanning TLD files in /WEB-INF 2003-03-17 13:37:26 ContextConfig[/IDCard]: Scanning library JAR files 2003-03-17 13:37:26 ContextConfig[/IDCard]: Added certificates - request attribute Valve 2003-03-17 13:37:26 ContextConfig[/IDCard]: Pipline Configuration: 2003-03-17 13:37:26 ContextConfig[/IDCard]: org.apache.catalina.valves.CertificatesValve/1.0 2003-03-17 13:37:26 ContextConfig[/IDCard]: org.apache.catalina.core.StandardContextValve/1.0 2003-03-17 13:37:26 ContextConfig[/IDCard]: == 2003-03-17 13:37:26 StandardContext[/IDCard]: Configuring application event listeners 2003-03-17 13:37:26 StandardContext[/IDCard]: Sending application start events 2003-03-17 13:37:26 StandardContext[/IDCard]: Starting filters 2003-03-17 13:37:26 StandardContext[/IDCard]: Posting standard context attributes 2003-03-17 13:37:26 StandardWrapper[/IDCard:default]: Loading container servlet default 2003-03-17 13:37:26 StandardWrapper[/IDCard:invoker]: Loading container servlet invoker 2003-03-17 13:37:26 Internal Error: File /WEB-INF/web.xml not found - 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: JK2 (cont.)
Hi again, - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 16, 2003 2:30 PM Subject: RE: JK2 (cont.) Paths must match up. Check the paths in the config files I sent against your paths. If they don't match up, adjust the paths in the config files I sent. This configuration works on W2K with Apache 2.0.44 and Tomcat 4.1.18. Comment out 8080 in the server.xml file because Apache will serve up everything except .jsp and servlet files. See the [uri:/examples/*.jsp] and [uri:/examples/servlet/*] in the workers2.properties file? Yes, paths now match up (workers2.properties appears at the end of this post). Now, when Apache starts, I get a fatal error (log extracts below). Windows attempts to shut Apache down - 'send report' dialog etc. - but Apache apparently restarts. Any ideas? At least I am making progress. Well, I hope ;-). error.log [Sun Mar 16 22:51:44 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:44 2003] [notice] Parent: Created child process 1888 [Sun Mar 16 22:51:44 2003] [notice] Child 1888: Child process is running [Sun Mar 16 22:51:45 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:45 2003] [error] mod_jk child workerEnv in error state 1 [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Acquired the start mutex. [Sun Mar 16 22:51:45 2003] [notice] Child 1888: Starting 250 worker threads. [Sun Mar 16 22:51:54 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:51:54 2003] [notice] Parent: Created child process 1748 [Sun Mar 16 22:51:54 2003] [notice] Child 1748: Child process is running [Sun Mar 16 22:51:55 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:51:55 2003] [error] mod_jk child workerEnv in error state 2 [Sun Mar 16 22:51:55 2003] [notice] Child 1748: Acquired the start mutex. [Sun Mar 16 22:51:55 2003] [notice] Child 1748: Starting 250 worker threads. [Sun Mar 16 22:52:09 2003] [notice] Parent: child process exited with status 3221225622 -- Restarting. [Sun Mar 16 22:52:10 2003] [notice] Parent: Created child process 940 [Sun Mar 16 22:52:10 2003] [notice] Child 940: Child process is running [Sun Mar 16 22:52:11 2003] [error] mod_jk child init 1 0 [Sun Mar 16 22:52:11 2003] [error] mod_jk child workerEnv in error state 3 [Sun Mar 16 22:52:11 2003] [notice] Child 940: Acquired the start mutex. [Sun Mar 16 22:52:11 2003] [notice] Child 940: Starting 250 worker threads. stdout.log Bootstrap: Create Catalina server Catalina.start: org.xml.sax.SAXParseException: The string -- is not permitted within comments. org.xml.sax.SAXParseException: The string -- is not permitted within comments. at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:118 9) at org.apache.commons.digester.Digester.parse(Digester.java:1479) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:187) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) 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.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) 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.jk.apr.TomcatStarter.run(TomcatStarter.java:127) at java.lang.Thread.run(Thread.java:536) stderr.log TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService Created catalinaLoader in: c:/Program Files/Apache Group/Tomcat 4.1\server\lib Mar 16, 2003 10:55:20 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 16, 2003 10:55:20 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 16, 2003 10:55:21 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 16, 2003 10:55:22 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 92 column 9: The string -- is not permitted within comments. org.xml.sax.SAXParseException: The string -- is not permitted within comments. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.ja va:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 5)
RE: Problems With Tomcat
I had the same error after having installed Tomcat without the JAVA_HOME environment variable set correctly. Even after correcting this, I had to re-install Tomcat before it worked. Check your JAVA_HOME variable by typing echo %JAVA_HOME% at the command prompt. Does it match your Tomcat path? Chris. -Original Message- From: rorios [mailto:[EMAIL PROTECTED] Sent: Monday, 17 March 2003 6:54 a.m. To: [EMAIL PROTECTED] Subject: Problems With Tomcat Hi, am try to run the jsk2 in tomcat 4.1, but when am try tu run this in IE 6 tomcat send me this error: Please help me to resolv this problems. thanks!! PD. my tomcat run in Win 2000 and win XP Thanks! HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems With Tomcat
Hi Robert, As JSP's have to be compiled (your error message = org.apache.jasper.JasperException: Unable to compile class for JSP), J2RE is probably not up to the task. You need to download and install J2SDK. Define necessary environment variables as system variables. Here are my (Linux) environment variable definitions: JAVA_HOME=/usr/local/j2sdk1.4.1_01 J2EE_HOME=/usr/local/j2sdkee1.3.1 TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.12 CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 Yours would begin with C:\. JAVA_HOME needs to be defined prior to Tomcat installation (I found). Chris. -Original Message- From: rorios [mailto:[EMAIL PROTECTED] Sent: Monday, 17 March 2003 9:50 a.m. To: [EMAIL PROTECTED] Subject: Re: Problems With Tomcat hi chris, well am set my JAVA_HOME in c:/j2re1.4.1_02 (this is the path for el jdk) ok one question in system advanced environment variable ??? the config. is in user variables for username or system variables this is in XP what is the correctly configuration for JAVA_HOME, CLASSPATCH, CATALINA_HOME and path? Thanks! Robert - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 16, 2003 5:10 PM Subject: RE: Problems With Tomcat I had the same error after having installed Tomcat without the JAVA_HOME environment variable set correctly. Even after correcting this, I had to re-install Tomcat before it worked. Check your JAVA_HOME variable by typing echo %JAVA_HOME% at the command prompt. Does it match your Tomcat path? Chris. -Original Message- From: rorios [mailto:[EMAIL PROTECTED] Sent: Monday, 17 March 2003 6:54 a.m. To: [EMAIL PROTECTED] Subject: Problems With Tomcat Hi, am try to run the jsk2 in tomcat 4.1, but when am try tu run this in IE 6 tomcat send me this error: Please help me to resolv this problems. thanks!! PD. my tomcat run in Win 2000 and win XP Thanks! HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174
JK2
Hi all, This is my first attempt at installing JK2 to make Apache - Tomcat communication possible. Wasn't successful. Here is an account of events. If I can get JK2 working, I promise to post a blow by blow diary of how I went about it. Documentation on JK2 is lacking, following apache.org documentation hasn't been successful, and I am apparently not alone. 1) Apache 2.0.44 and Tomcat 4.1.18 each working fine as stand-alone, using http://localhost and http://localhost:8080 respectively. 2) Copied mod_jk2-2.0.43.dll to [Apache Home]/modules. 3) Added LoadModule jk2_module modules/mod_jk2-2.0.43.dll to [Apache Home]/conf/httpd.conf. 4) Confirmed existance of [Tomcat Home]/conf/jk2.properties. This reads... ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess NOTE: I realise all lines are commented out, but I wasn't concerned as the apache.org minimum configuration example was also. This read... Minimum configuration is the simplest one to make the JK2 working. The used channel will be socket, and lot of options are used by default. Both the Tomcat and web server are on the same computer. jk2.properties: # The default port is 8009 but you can use another one # channelSocket.port=8019 5) Created [Apache Home]/conf/workers2.properties (copied form apache.org minimum configuration example). This reads... # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp NOTE: At no time did I edit [Tomcat Home]/conf/server.xml. 6) Started Tomcat, waited. 7) Started Apache. 8) Attempted to browse JSP/Servlet examples without the :8080, but got the following error message... Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.44 (Win32) mod_jk2/2.0.2 Server at localhost Port 80 9) Checked Apache error log. This reads... [Sat Mar 15 22:49:59 2003] [error] shm.init(): No file [Sat Mar 15 22:49:59 2003] [notice] Parent: Created child process 2956 [Sat Mar 15 22:49:59 2003] [error] shm.init(): No file [Sat Mar 15 22:49:59 2003] [notice] Child 2956: Child process is running [Sat Mar 15 22:49:59 2003] [error] shm.init(): No file [Sat Mar 15 22:49:59 2003] [error] mod_jk child init 1 0 [Sat Mar 15 22:49:59 2003] [notice] Child 2956: Acquired the start mutex. [Sat Mar 15 22:49:59 2003] [notice] Child 2956: Starting 250 worker threads. [Sat Mar 15 22:51:15 2003] [error] workerEnv.init() create slot epStat.0 failed [Sat Mar 15 22:51:15 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Sat Mar 15 22:51:15 2003] [error] lb.service() unrecoverable error... [Sat Mar 15 22:51:15 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Sat Mar 15 22:52:24 2003] [error] lb.getWorker() reenable ajp13:localhost:8009 [Sat Mar 15 22:52:24 2003] [error] workerEnv.init() create slot epStat.0 failed [Sat Mar 15 22:52:24 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Sat Mar 15 22:52:24 2003] [error] lb.service() unrecoverable error... [Sat Mar 15 22:52:24 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Sat Mar 15 22:52:43 2003] [error] workerEnv.init() create slot epStat.0 failed [Sat Mar 15 22:52:43 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Sat Mar 15 22:52:43 2003] [error] lb.service() unrecoverable error... [Sat Mar 15 22:52:43 2003] [error] mod_jk.handler() Error connecting to tomcat 12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repost Tomcat Apache integration how to's
Hi Dave, Thank you for your help. I am yet to try your attached configuration files. I attempted to download ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip;, but get a 'login attempt failed' error. Just one further question regarding your earlier advice. What is the reasoning behind commenting out the listener on port 8080? Is this solely to prevent direct access to Tomcat, all access forced to go via Apache (a security matter)? Thanks again. Chris. - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 16, 2003 6:38 AM Subject: FW: Repost Tomcat Apache integration how to's -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 6:47 PM To: Tomcat Users List Subject: Repost Tomcat Apache integration how to's Short list of Apache Tomcat integration How To's for multiple operating systems. I'm reposting this list for those that need it. It is getting buried to far in the list archives to turn up in a search now. First try the search at http://www.mail-archive.com/[EMAIL PROTECTED]/ or Google. Here is mine for windows using all the latest of each. ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip Here's another for windows using the production quality versions. http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html Here's another for windows using older production quality versions. http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml Here's another for windows and Linux using older versions, and mod_webapp. http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/index.html Here's one for an unspecified unix using production quality versions. http://www.pubbitch.org/jboss/mod_jk2.html Here is one using older versions on Linux. http://www.ubeans.com/tomcat/index.html Here's a nice one for RH Linux using solid production versions. http://www.johnturner.com/howto/apache-tomcat-howto.html rls -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 (cont.)
Hi, Used your two configuration files, and commented out listener on port 8080 as you suggested (server.xml). Still unable to browse Tomcat webapps. Also, now unable to start Tomcat as stand-alone either (started Apache alone for the test). Apache is logging the following error messages... [Sun Mar 16 10:05:30 2003] [error] shm.init(): No file [Sun Mar 16 10:05:31 2003] [notice] Parent: Created child process 1432 [Sun Mar 16 10:05:31 2003] [error] shm.init(): No file [Sun Mar 16 10:05:31 2003] [notice] Child 1432: Child process is running [Sun Mar 16 10:05:31 2003] [error] shm.init(): No file [Sun Mar 16 10:05:31 2003] [error] mod_jk child init 1 0 [Sun Mar 16 10:05:31 2003] [notice] Child 1432: Acquired the start mutex. [Sun Mar 16 10:05:31 2003] [notice] Child 1432: Starting 250 worker threads. [Sun Mar 16 10:37:34 2003] [notice] Parent: Received shutdown signal -- Shutting down the server. [Sun Mar 16 10:37:34 2003] [notice] Child 1432: Exit event signaled. Child process is ending. [Sun Mar 16 10:37:36 2003] [notice] Child 1432: Released the start mutex [Sun Mar 16 10:37:37 2003] [notice] Child 1432: Waiting for 250 worker threads to exit. [Sun Mar 16 10:37:37 2003] [notice] Child 1432: All worker threads have exited. [Sun Mar 16 10:37:37 2003] [notice] Child 1432: Child process is exiting [Sun Mar 16 10:37:37 2003] [notice] Parent: Child process exited successfully. [Sun Mar 16 10:40:41 2003] [notice] Parent: Created child process 1108 [Sun Mar 16 10:40:42 2003] [notice] Child 1108: Child process is running [Sun Mar 16 10:40:47 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Sun Mar 16 10:40:47 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Sun Mar 16 10:40:47 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Sun Mar 16 10:40:47 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Sun Mar 16 10:40:47 2003] [error] mod_jk child init 1 0 [Sun Mar 16 10:40:47 2003] [notice] Child 1108: Acquired the start mutex. [Sun Mar 16 10:40:47 2003] [notice] Child 1108: Starting 250 worker threads. [Sun Mar 16 10:43:54 2003] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/examples [Sun Mar 16 10:44:35 2003] [notice] Parent: Received shutdown signal -- Shutting down the server. [Sun Mar 16 10:44:35 2003] [notice] Child 1108: Exit event signaled. Child process is ending. [Sun Mar 16 10:44:37 2003] [notice] Child 1108: Released the start mutex [Sun Mar 16 10:44:38 2003] [notice] Child 1108: Waiting for 250 worker threads to exit. [Sun Mar 16 10:44:38 2003] [notice] Child 1108: All worker threads have exited. [Sun Mar 16 10:44:38 2003] [notice] Child 1108: Child process is exiting [Sun Mar 16 10:44:38 2003] [notice] Parent: Child process exited successfully. [Sun Mar 16 10:52:07 2003] [notice] Parent: Created child process 3836 [Sun Mar 16 10:52:07 2003] [notice] Child 3836: Child process is running [Sun Mar 16 10:52:08 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Sun Mar 16 10:52:08 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Sun Mar 16 10:52:08 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Sun Mar 16 10:52:08 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Sun Mar 16 10:52:08 2003] [error] mod_jk child init 1 0 [Sun Mar 16 10:52:08 2003] [notice] Child 3836: Acquired the start mutex. [Sun Mar 16 10:52:08 2003] [notice] Child 3836: Starting 250 worker threads. [Sun Mar 16 10:52:46 2003] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/examples [Sun Mar 16 10:53:08 2003] [error] channelSocket.open() connect failed localhost:8009 61 Unknown error [Sun Mar 16 10:53:08 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Sun Mar 16 10:53:08 2003] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error [Sun Mar 16 10:53:08 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [Sun Mar 16 10:53:08 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Sun Mar 16 10:53:08 2003] [error] lb.service() worker failed 12 for ajp13:jni [Sun Mar 16 10:53:08 2003] [error] lb.service() unrecoverable error... [Sun Mar 16 10:53:08 2003] [error] mod_jk.handler() Error connecting to tomcat 12 Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 16, 2003 10:25 AM Subject: Re: Repost Tomcat Apache integration how to's Hi Dave, Thank you for your help. I am yet to try your attached configuration files. I attempted to download ftp://pokey.wr.usgs.gov/pub
Running Tomcat on Win XP
Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.18
Re: Running Tomcat on Win XP
An observation that may be of relevance here is that the example Servlets are working fine. Problem only apparent when attempting to view a JSP - like the default Tomcat page. Any clues anyone? Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:53 PM Subject: Running Tomcat on Win XP Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat on Win XP
Thank you Jon for being THE one to reply. Actually, my problem was due to a silly mistake on my part. Instead of defining JAVA_HOME=C:\j2sdk1.4.1_02, I set JAVA_HOME=C:\j2sdk1.4.1_02\bin. Resetting it correctly, even followed by a PC reboot, didn't correct the situation. I had to uninstall and reinstall Tomcat before http://localhost:8080 successfully displayed Tomcat's index.jsp. Thanks again. Chris. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:25 AM Subject: Re: Running Tomcat on Win XP This is a wild stab in the dark but here goes. How much RAM have you got in your XP box? Is the compilation of the jsp/jsps by ant running out of memory? (I think the compilation is out-of-process, but i may be wrong.) If you think you have enough memory then play around with the -Xms and -Xmx settings for the jvm tomcat is running in. You can do this by setting either JAVA_OPTS or CATALINA_OPTS environment variables. BTW, our production system is linux but our developments machines are a mixture of linux, windows 2000 and XP. HTH, Jon Chris Dodunski wrote: An observation that may be of relevance here is that the example Servlets are working fine. Problem only apparent when attempting to view a JSP - like the default Tomcat page. Any clues anyone? Thanks, Chris. - Original Message - From: Chris Dodunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 10:53 PM Subject: Running Tomcat on Win XP Hi all, I was successful in installing and running Tomcat on our Linux web server. Today I downloaded the Windows version of Tomcat for my PC. Having installed j2sdk1.4.1_02 and j3sdkee1.3.1, set environment variables JAVA_HOME and J2EE_HOME, I then installed Tomcat 4.1.18. However, upon starting Tomcat, I get the following error when directing my browser to http://localhost:8080... (Please, what else needs doing?) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl e r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve . java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
Apache - Tomcat connectors
I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache - Tomcat connectors
Thanks Victor, You weren't exaggerating either! This author does three things typically lacking in software documentation. 1) Gives a methodical blow by blow instruction on performing all that is required (unambiguous, how good code is written :-) 2) Explains the reason 'why' at each step 3) Clearly describes how to perform a self check (test) every so often, eliminating mistakes Points 2 and 3 (frequently overlooked) are critical for acquiring the ability to effectively solve unanticipated problems when they arise. Even failing a successful result, at least problems then posted to this mailing list are more specific and detailed. Almost miraculously, the one with the problem is now more informed! This is a good thing, yes? Chris. - Original Message - From: Victor Gonzalez [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 3:55 AM Subject: RE: Apache - Tomcat connectors Hi Chris, I had the same problems, but I received to help from here, and now I can help you, the best page for it was www.johnturner.com/howto/winxp-howto.html It is excellent! Regards, Victor Gonzalez -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 6:07 AM To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: Apache - Tomcat connectors
You've hit the nail on the head Donie. - Original Message - From: Donie Kelly [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 1:09 AM Subject: RE: Apache - Tomcat connectors Hi Why do so many other sites need to do this. Should the definitive source not be the Tomcat site? If people have time they should submit a working example. It would be nice if there was an official source for this type of information. It sure is a waste of time roaming the web for basic documentation when it should be readily available. I haven't much experience of all areas of Tomcat but I'd defiantly submit a HOW-TO for parts I do know. All it need is for a webmaster to look after the submissions. They could be easily then added to the existing tomcat site. Donie -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 12:07 To: Tomcat Users List Subject: Apache - Tomcat connectors I'm honestly astounded at the number of people struggling with successfully installing and configuring Apache - Tomcat connectors. An extensive search of apache.org (and other sites) reveals why. Documentation is vague, fragmented, and quite frankly confusing. It's frustrating and it's time wasting. Time I say for some clear, concise, blow by blow documentation on performing what should be a relatively simple procedure. Do you agree? - 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: javabean loading problem
I'm only a newbie myself. But I'm quite sure you don't need to restart Tomcat, and certain you don't need to reboot your computer. I recall reading about a RELOAD parameter in a configuration file (set to TRUE) - think it is in $CATALINA_HOME/webapps/YourApp/WEB-INF/web.xml. -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 10:16 a.m. To: [EMAIL PROTECTED] Subject: Re: javabean loading problem i put them in a package called login a folder called login under classes...what do you guys do after you edit a javabean? do you stop and start under catalina? or do you restart the apache service under administrative tools? or do you simply restart yoru comp? mike ni From: Larry Meadors [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: javabean loading problem Date: Thu, 13 Mar 2003 14:04:51 -0700 What package did you put the class in? If the answer is none, that is why it does not work. Put it in a package and try again. As far as reloading, read this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html Larry [EMAIL PROTECTED] 03/13/03 13:49 PM Hi i put my java bean class files in my web-inf/classes folder but my tomcat is not detecting it. what do i have to do, ive tried going to my administrative tools services and restarting apacheive tried restarting catalina from my command prompt...ive tried restartingwhat is the routine you guys do when you edit your java beans? do you guys restart every time you guys make a little change to your beans? mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - 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: Unable to start Tomcat.
This worked successfully for me - on our Linux web server... JAVA_HOME=/usr/local/j2sdk1.4.1_01 export JAVA_HOME J2EE_HOME=/usr/local/j2sdkee1.3.1 export J2EE_HOME TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.12 export TOMCAT_HOME CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 export CATALINA_HOME Then $CATALINA_HOME/bin/startup.sh Chris. -Original Message- From: Larry [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 10:39 a.m. To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Unable to start Tomcat. What do you get if you do echo $JAVA_ENDORSED_DIRS to show what is in the environment variable? Maybe you need to set up that environment variable and export it. Larry --- On Thu 03/13, Lenin Lakshminarayanan [EMAIL PROTECTED] wrote: From: Lenin Lakshminarayanan [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 14 Mar 2003 02:55:13 +0530 Subject: Unable to start Tomcat. Hi, I have installed Tomcat 4.1.18 and when i was trying to start Tomcat, i am getting an error saying, Cannot find the file -Djava.endorsed.dirs=. It complains that the JAVA_HOME environment is not set properly. But i am sure it's right. Any idea, what am i missing here ? Thanks, Lenin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.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: Java_Home
MessageHi Sandra, Your JAVA_HOME variable is pointing to J2EE rather than J2SDK. Here's mine (not slight version differences)... JAVA_HOME=/usr/local/j2sdk1.4.1_01 export JAVA_HOME J2EE_HOME=/usr/local/j2sdkee1.3.1 export J2EE_HOME TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.12 export TOMCAT_HOME CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 export CATALINA_HOME Chris. -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 11:01 a.m. To: '[EMAIL PROTECTED]' Subject: Java_Home I am relatively new to Tomcat, having used it but not installed it, before. I have set my JAVA_HOME path to the folder named j2sdkee1.3.1 However this is the result I get: C:\%CATALINA_HOME%\bin\startup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: C:\jakarta-tomcat-4.0.6 Using CATALINA_HOME: C:\jakarta-tomcat-4.0.6 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.0.6\temp Using JAVA_HOME: C:\j2sdkee1.3.1 The system cannot find the file -Djava.endorsed.dirs=. Any ideas are gratefully received. Sandra Patricia Hunter Systems Development and Web Design
RE: Java_Home
Filip, this is not correct. JAVA_HOME should contain path to J2SDK, not J2EE. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 11:16 a.m. To: Tomcat Users List Subject: RE: Java_Home try to go into the directory and launch it from there set JAVA_HOME=C:\j2sdkee1.3.1 set PATH=%JAVA_HOME%\bin;%PATH% cd %CATALINA_HOME%\bin startup.bat Filip -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:01 PM To: '[EMAIL PROTECTED]' Subject: Java_Home I am relatively new to Tomcat, having used it but not installed it, before. I have set my JAVA_HOME path to the folder named j2sdkee1.3.1 However this is the result I get: C:\%CATALINA_HOME%\bin\startup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: C:\jakarta-tomcat-4.0.6 Using CATALINA_HOME: C:\jakarta-tomcat-4.0.6 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.0.6\temp Using JAVA_HOME: C:\j2sdkee1.3.1 The system cannot find the file -Djava.endorsed.dirs=. Any ideas are gratefully received. Sandra Patricia Hunter Systems Development and Web Design - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Mailing List
Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Mailing List
Ha-ha, yes it was rather bold of me to be quite so forthright within hours of joining this list. ;-) Just that I am a frequent visitor to codeguru.com, and can't praise highly enough the effectiveness of their Java eForum. Problems aren't swamped by other traffic, and solutions persist, providing a graphical and searchable library of helpful advice. I'm impressed with the quality of correspondence here, just offering my humble opinion concerning quantity. No offence intended. Chris. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 March 2003 9:27 a.m. To: Tomcat Users List Subject: RE: Tomcat Mailing List Howdy, I love how on your first day here you determine the mailing list is not suitable for this community ;) Yes, the list has much traffic. Yes, some of the traffic is off-topic. This is why we have: - Filters and grouping options in our mail readers - Searchable archives (e.g. at AIMS) - The ability to unsubscribe if we don't want to be here Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Dodunski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:01 PM To: Tomcat Users List Subject: Tomcat Mailing List Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting Tomcat results in multiple Java processes
Hi all,Just a brief question, for a Tomcat newbie. I have successfully installed Tomcat on our companies Linux web server. Problem is the huge number of java processes running as a consequent (see below). Our network administrator doesn't like it. Tomcat won't be doing too much work in this instance, so is there any way to reduce the number of these (a configuration setting perhaps)?Thanks,Chris. code: 19150 ? S 0:16 /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.dirs=/usr 19151 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.dirs= 19152 ? S 1:46 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19153 ? S 0:28 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19154 ? S 1:13 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19155 ? S 0:08 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19156 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19157 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19158 ? S 0:05 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19160 ? S 0:35 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19161 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19164 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19165 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19167 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19168 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19169 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19170 ? S 0:47 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19171 ? S 0:01 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19172 ? S 0:01 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19173 ? S 0:04 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19174 ? S 0:02 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19175 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19176 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19177 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19178 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19179 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19180 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19181 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19670 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19671 ? S 0:40 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19672 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19673 ? S 0:03 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19674 ? S 0:02 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19675 ? S 0:16 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19676 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19677 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19725 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19873 ? S 98:22 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 19874 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d 20013 ? S 0:00 \_ /usr/local/j2sdk1.4.1_01/bin/java -Djava.awt.headless=true -Djava.endorsed.d Chris Dodunski,BTW Navigation Systems Ltd.,14-22 Connett Road West, Bell Block,PO Box 39, New Plymouth, New Zealand.T: +64 6 759 5089 C: +64 21 353 722F: +64 6 759 5049 W: www.btw.co.nzE: [EMAIL PROTECTED]
RE: Starting Tomcat results in multiple Java processes
Thank you very much for the reply! Should I, say, reduce minProcessors=1 and maxProcessors=2 to each of the following then? Would this low value have undesirable consequences should more than two Servlets get called (or same Servlet 3+ times)? Lastly, why the need for all the following connectors (7 x 5 = 35 minProcessors in total!)? Thanks, Chris. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8082 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 proxyPort=80 useURIValidationHack=false / -- !-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8083 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 / -- !-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -- !-- Connector className=org.apache.catalina.connector.http10.HttpConnector port=8084 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 / -- -Original Message- From: Jens Skripczynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 11:22 a.m. To: Tomcat Users List Subject: Re: Starting Tomcat results in multiple Java processes Chris Dodunski: Just a brief question, for a Tomcat newbie. I have successfully installed Tomcat on our companies Linux web server. Problem is the huge number of java processes running as a consequent (see below). Our network administrator doesn't like it. Tomcat won't be doing too much work in this instance, so is there any way to reduce the number of these (a configuration setting perhaps)? The option you are looking for is located in server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=8 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / With min/max you can control the number of threads. But still i have a lot of threads on my computer. I _believe_ tomcat starts a thread for each found webapp it deployes. So 10 webapps and 5 listeners = 15 processes ?! Ciao Jens Skripczynski -- E-Mail: skripczynski(at)mail2003(dot)skripczynski(dot)de In this world there are only two tragedies; one is not getting what one wants, the other is getting it. -- Oscar Wild - 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: Starting Tomcat results in multiple Java processes
Hi, Sorry, only just noticed that myself. Of the two that aren't, I reduced minProcessors to 1, and maxProcessors to 2 (server.xml). But alas, upon restarting Tomcat, I still have 26 Java processes running! Please, what must I do to reduce these? Chris. -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 12:02 p.m. To: Tomcat Users List Subject: Re: Starting Tomcat results in multiple Java processes All but two of those are commented out, you know. -Jake Chris Dodunski wrote: Thank you very much for the reply! Should I, say, reduce minProcessors=1 and maxProcessors=2 to each of the following then? Would this low value have undesirable consequences should more than two Servlets get called (or same Servlet 3+ times)? Lastly, why the need for all the following connectors (7 x 5 = 35 minProcessors in total!)? Thanks, Chris. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8082 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 proxyPort=80 useURIValidationHack=false / -- !-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8083 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 / -- !-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -- !-- Connector className=org.apache.catalina.connector.http10.HttpConnector port=8084 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 / -- -Original Message- From: Jens Skripczynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 11:22 a.m. To: Tomcat Users List Subject: Re: Starting Tomcat results in multiple Java processes Chris Dodunski: Just a brief question, for a Tomcat newbie. I have successfully installed Tomcat on our companies Linux web server. Problem is the huge number of java processes running as a consequent (see below). Our network administrator doesn't like it. Tomcat won't be doing too much work in this instance, so is there any way to reduce the number of these (a configuration setting perhaps)? The option you are looking for is located in server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=8 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / With min/max you can control the number of threads. But still i have a lot of threads on my computer. I _believe_ tomcat starts a thread for each found webapp it deployes. So 10 webapps and 5 listeners = 15 processes ?! Ciao Jens Skripczynski -- E-Mail: skripczynski(at)mail2003(dot)skripczynski(dot)de In this world there are only two tragedies; one is not getting what one wants, the other is getting it. -- Oscar Wild - To unsubscribe, e-mail: [EMAIL PROTECTED
RE: Starting Tomcat results in multiple Java processes
Hi Simon, Sorry, I mistook 'minProcessors' as meaning 'minProcesses'. The concern was from our network administrator, and your response has settled the matter - no significant drain on server resources due to (the large number of) these threads. Thanks again. Chris. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 1:56 p.m. To: Tomcat Users List Subject: RE: Starting Tomcat results in multiple Java processes On Wed, 2003-03-12 at 13:43, Chris Dodunski wrote: Hi, Sorry, only just noticed that myself. Of the two that aren't, I reduced minProcessors to 1, and maxProcessors to 2 (server.xml). But alas, upon restarting Tomcat, I still have 26 Java processes running! Please, what must I do to reduce these? I suggest you chill out, and don't worry about them. They are *threads* not processes, and a few *hundred* threads really won't bother any decent operating system. Yes, the ps list looks a bit messy [that will go away with linux kernel 2.6 :- I presume you are using Linux] but no harm is being done. One note: have you got hot deploy enabled? At a guess, there will be a thread monitoring the .war deploy directory (or one per webapp) which could be disabled if you can live without hot-deploy. I guess some-one more familiar with recent tomcat versions than I could confirm/deny this. However even if it is possible to disable this, you are really losing functionality for no real gain. And setting maxProcessors to 2 means that if *three* people hit a url at your website concurrently, one will have to wait until one of the earlier users has finished receiving their page [or pages for http/1.1 persistent connections]. Regards, Simon - 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]