RE: Tomcat 4.1x with IIS 6 on Windows server 2003
Hi, I think IIS 6 is not supported yet, it may at somepoint, but it doesn't work right now. Bye -reynir -Original Message- From: Bala Kiran [mailto:[EMAIL PROTECTED] Sent: 10. ágúst 2003 20:47 To: Tomcat Users List Subject: Tomcat 4.1x with IIS 6 on Windows server 2003 Has anybody configured Tomcat 4.1x with IIS 6.0 on Windows server 2003? Please advise me. I'm trying to configure the same, but I'm getting 404 - Page Can not be displayed error. I checked the log. It does not seem like raising any red flags. But, here is the log info. Any help is highly appreciated: === [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1018)]: Using registry. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1020)]: Using log file D:\Apache Group\Tomcat 4.1\logs\jk_iis.log. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1021)]: Using log level 0. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirect.dll. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1023)]: Using worker file D:\Apache Group\Tomcat 4.1\conf\workers.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file D:\Apache Group\Tomcat 4.1\conf\uriworkermap.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (88)]: Into wc_open [Sun Aug 10 10:59:43 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Sun Aug 10 10:59:43 2003] [jk_worker.c (228)]: build_worker_map, creating worker testWorker [Sun Aug 10 10:59:43 2003] [jk_worker.c (148)]: Into wc_create_worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance testWorker of ajp13 [Sun Aug 10 10:59:43 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Sun Aug 10 10:59:43 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init testWorker [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker testWorker contact is localhost:8009 [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 [Sun Aug 10 10:59:43 2003] [jk_worker.c (187)]: wc_create_worker, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (238)]: build_worker_map, removing old testWorker worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (250)]: build_worker_map, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (111)]: wc_open, done 1 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/index.html' [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match testWorker - /examples/ [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc
RE: Connecting Two PC using internet connection ??
You might want to take a look at webdav... That might solve some of your problems. -reynir -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: 1. ágúst 2003 08:32 To: Tomcat Users List Subject: Connecting Two PC using internet connection ?? Hi, I want to develop one software so that I can connect two PC using internet connection means one is host and another is remote.So that I can access remote PC's Hard drive using internet connection.Can any one plz give me some guideline how I can start.Eagerly waiting for someone reply. Thanks Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.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: Address Resolving
If You have one tomcat server, serving for multiple dns names, but only one IP for this computer, you can set up several virtual hosts, one for each dns name, or if you want all to go into the same application you can set up one virtual host with many Aliasdnsname/Alias properties. So you would setup something like this in your tomcathome/conf/server.xml Host name=www..com debug=0 appBase=/somewhere/on/your/harddrive/ Aliaswww..com/Alias Context path= docBase=/somewhere/on/your/harddrive/ debug=0 reloadable=true autoDeploy=true/ /Host Hope it helps -reynir -Original Message- From: Sekhmet [mailto:[EMAIL PROTECTED] Sent: 31. júlí 2003 22:09 To: [EMAIL PROTECTED] Subject: Address Resolving Hi there... I recently installed Tomcat 4.0 and I'm still new to this server, but I already read all the documentation that came with the server and still have a question: How can I make tomcat resolve different addresses to the same IP? I mean, if I enter www..com http://www..com/ and this points to my static IP, and I also have www..com http://www..com/ pointing to the same IP, how can Tomcat redirect the request to the appropriate page? Anyone? Please forgive me if this is a dumb question... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ot] RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool
Scarab. Check out www.tigris.org It's excellent. hope it helps -reynir -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 29. júlí 2003 12:55 To: 'Tomcat Users List' Subject: [ot] RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool We're looking for open source products if possible Donie -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 29 July 2003 12:59 To: Tomcat Users List Subject: Re: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool Depends on if you are using a commercial SCM tool. Bitkeeper has a nice tracking tool called BK/BugManager. PVCS Professional has one too. Can't remember what it is called. We are looking at SCM software right now but have not yet decided on anything. I'm sure most other commercial SCM software will offer some sort of bug tracking. http://www.bitkeeper.com http://www.merant.com -Mark - Original Message - From: Donie Kelly To: Tomcat Users List (E-mail) Sent: Tuesday, July 29, 2003 6:42 AM Subject: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool Hi all We've been working on a project for a while and tracking details like in the subject above are proving to be cumbersome. Is there any single tool that's easy to install and use on a webserver (hopefully) that will manage all this stuff for us. Ideally, we would like to log a bug or issue and have it fixed in the source. We might then go to this tool and check the files in so that the tool tracks the source code changes that are made for the issue (or task or bug etc..) Any such tool? Regards Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - 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 not working properly
Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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]
Memory problems
Hi, I have a server that I am trying to deploy 36 webapplications to. The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs. On start up it runs about 30 applications and at that time tomcat failes, with java.lang.OutOfMemoryException. The top function shows many (192) java processes taking about 500 mb of memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory. I don't know what is happening, as I have several servers running similar amount of webapps on windows, with out problems. Other things that run in this server are postgresql and apache (and really nothing else), so nothing is taking up the rest of the memory. We even tried to write a small java program that takes up memory in a loop, that worked fine, and could take up to 1500mb and then run out of memory. Am I looking at some kind of a limitation on tomcat (no more than specific amount of applications) or java (no more threads than some specific amount) ? Please reply, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory problems
Hi John, Thanx for replying. Yes I was looking for such a limit somewhere, but I could not find it. I thought max number of processes in linux redhat (7.2) was 1024, (I am only taking up about 250 processes in all). You say you have 20 instances of tomcat, I have 36 hosts in one tomcat, so that's pretty different setup. Should I try setting up and run separate tomcat instances ? I used the rpm setup, and I have tomcat config files in one directory and startup scripts in another... Does anyone know of good directions (websites) on how to do this on linux (I would know how to do it in windows). Thanx -reynir -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 25. júlí 2003 13:47 To: Tomcat Users List Subject: Re: Memory problems More likely you are hitting an OS limit, such as number of processes, number of open files, number of connections, etc. I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB stays free. John Reynir Hübner wrote: Hi, I have a server that I am trying to deploy 36 webapplications to. The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs. On start up it runs about 30 applications and at that time tomcat failes, with java.lang.OutOfMemoryException. The top function shows many (192) java processes taking about 500 mb of memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory. I don't know what is happening, as I have several servers running similar amount of webapps on windows, with out problems. Other things that run in this server are postgresql and apache (and really nothing else), so nothing is taking up the rest of the memory. We even tried to write a small java program that takes up memory in a loop, that worked fine, and could take up to 1500mb and then run out of memory. Am I looking at some kind of a limitation on tomcat (no more than specific amount of applications) or java (no more threads than some specific amount) ? Please reply, -reynir - 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: Memory problems
Hi, Well we made a workaround for this by setting up multiple instances of tomcat. Thanx for the info, it was helpful. -reynir -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 25. júlí 2003 14:15 To: Tomcat Users List Subject: Re: Memory problems Our setups are different, my point was that my setup is capable of addressing more RAM than you have (fewer Tomcat but more RAM), which leads me to believe your problems are OS limit related. I wouldn't setup separate Tomcat instances unless you determined there was a need for it. For my Tomcat user, here are the limits: sh-2.05$ ulimit -a core file size (blocks) 0 data seg size (kbytes) unlimited file size (blocks) unlimited max locked memory (kbytes) unlimited max memory size (kbytes)unlimited open files 1024 pipe size (512 bytes) 8 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 16384 virtual memory (kbytes) unlimited That's RH 7.2, dual processor, 4 GB RAM. John Reynir Hübner wrote: Hi John, Thanx for replying. Yes I was looking for such a limit somewhere, but I could not find it. I thought max number of processes in linux redhat (7.2) was 1024, (I am only taking up about 250 processes in all). You say you have 20 instances of tomcat, I have 36 hosts in one tomcat, so that's pretty different setup. Should I try setting up and run separate tomcat instances ? I used the rpm setup, and I have tomcat config files in one directory and startup scripts in another... Does anyone know of good directions (websites) on how to do this on linux (I would know how to do it in windows). Thanx -reynir -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 25. júlí 2003 13:47 To: Tomcat Users List Subject: Re: Memory problems More likely you are hitting an OS limit, such as number of processes, number of open files, number of connections, etc. I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB stays free. John Reynir Hübner wrote: Hi, I have a server that I am trying to deploy 36 webapplications to. The server is running redhat linux, with 2.5 gig ram and 4 XEON CPUs. On start up it runs about 30 applications and at that time tomcat failes, with java.lang.OutOfMemoryException. The top function shows many (192) java processes taking about 500 mb of memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory. I don't know what is happening, as I have several servers running similar amount of webapps on windows, with out problems. Other things that run in this server are postgresql and apache (and really nothing else), so nothing is taking up the rest of the memory. We even tried to write a small java program that takes up memory in a loop, that worked fine, and could take up to 1500mb and then run out of memory. Am I looking at some kind of a limitation on tomcat (no more than specific amount of applications) or java (no more threads than some specific amount) ? Please reply, -reynir - 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: IIS 6.0 and Tomcat
JK2 does not work with IIS6 -Original Message- From: webmaster [mailto:[EMAIL PROTECTED] Sent: 10. júlí 2003 13:23 To: [EMAIL PROTECTED] Subject: IIS 6.0 and Tomcat Hi all, Does anyone know if the mod_jk.dll is compatible with Windows 2003 ? I'm planning to buy a new system, so this will definitely influence in my decision. Thanks. - 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: performance
Hi, I suggest a good reading of the webpage : http://www.javaperformancetuning.com/tips/j2ee_srvlt.shtml -reynir. -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 8. júlí 2003 18:35 To: Tomcat Users List Subject: performance Running Tomcat 4.0.6 on Solaris 8 Interested in improving performance, any tips or information would be appreciated. Also any tips or information on exactly how to use JSPC to improve performance would be great. I've found a lot by searching but I don't exactly know how to use what I've found. -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: performance
Works fine for me... :/ -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: 8. júlí 2003 19:31 To: Tomcat Users List Subject: RE: performance I think the link may be broken.I couldn't connect Russ -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 3:23 PM To: Tomcat Users List Subject: RE: performance Hi, I suggest a good reading of the webpage : http://www.javaperformancetuning.com/tips/j2ee_srvlt.shtml -reynir. -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 8. júlí 2003 18:35 To: Tomcat Users List Subject: performance Running Tomcat 4.0.6 on Solaris 8 Interested in improving performance, any tips or information would be appreciated. Also any tips or information on exactly how to use JSPC to improve performance would be great. I've found a lot by searching but I don't exactly know how to use what I've found. -Mark - 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]
ISAPI redirect JK2 error/bug/failure or something of the kind
Hi, I am getting the following : The HTTP server encountered an unhandled exception while processing the ISAPI Application ' MSVCRT!strncmp + 0x14 isapi_redirector2 + 0xC71B + 0xCAD0C8 '. The redirector stopped running suddently (after few weeks of ok running), and it now gives me this error, it seems along with these: Error: [jk_handler_response.c (200)]: Error ajp_process_callback - write failed Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_handler_response.c (178)]: handler.response() Error sending response Error: [jk_service_iis.c (247)]: jk_ws_service_t::write, WriteClient failed This is a server that was running very much ok untill to day, and noone has done anything to disturb the setup I've installed the old JK and it runs fine, and it seems to be a lot better connector than the new JK2. I recommend that people do not use JK2 for production, as it's not stable yet. Has anyone seen that error before ??? Thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jsp problem
Hi folks, I have a server, that disbehaves when ever I change any jsp page, it stops rendering it. The context has reloadable=true set. The error messages I get start like this : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file 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:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at ... The setup is tomcat 4.1.24 / j2sdk 1.4.1_02 / win2k server / IIS 5. I've tried to delete the /work folders, and reload/ restart the application with out much luck. What's going down here ??? thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jsp problem: solved ... kindof
Strange, I resolved this problem by running the tomcat instance on console (with the command catalina run), (not as service). I got no error messages, but now the page displayes alright, and I can close the console and start it again as service. Weird behaviour !!! -r -Original Message- From: Reynir Hübner Sent: 1. júlí 2003 10:13 To: Tomcat Users List Subject: Jsp problem Hi folks, I have a server, that disbehaves when ever I change any jsp page, it stops rendering it. The context has reloadable=true set. The error messages I get start like this : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa ultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis patcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilation Context.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:190) 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.ApplicationDispatcher.invoke(Applicat ionDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(Appli cationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(Applica tionDispatcher.java:356) at ... The setup is tomcat 4.1.24 / j2sdk 1.4.1_02 / win2k server / IIS 5. I've tried to delete the /work folders, and reload/ restart the application with out much luck. What's going down here ??? thanx -reynir - 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: Win2003 IIS6 ISAPI filter problem
On win2003 ? -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: 27. júní 2003 13:23 To: Tomcat Users List Subject: Re: Win2003 IIS6 ISAPI filter problem I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat is OK?
Hi, Performance of such application is more or less based on how it's implemented, and the hardware it runs on. Tomcats performance is quite good in comparison with other servlet/jsp containers. It's also reliable, so I cant see a reason for you not to use it. If you will have 150 users all banging on the application at the same second you might have to increase maxProcessors attribute in server.xml to handle at least 150 concurrent requests with 150 threads, but usually 150 users is not much. Hope it helps -reynir -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: 19. júní 2003 08:28 To: [EMAIL PROTECTED] Subject: Does Tomcat is OK? Hello All, We need to develop a data lookup application. The maximum concurrent users number could reach 150. That means there will be 150 users access the application and fetch data from backgroud database at the same time. The data that each user get only has 5k. We donot use session to keep this data, but directly display to user. Now the solution that we use is Window 2000 Server + Tomcat 4.2.24+JDK1.4.1. Could you please give us some suggestion about if the Tomcat solution can be used to develop the application. Thanks a lot. Regards, Xiaojing - 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 Blog
Hi, You mean like freeroller.com or blojsome ?? Look for it in google or sourceforge... Hope it helps -reynir -Original Message- From: Stephen Ting [mailto:[EMAIL PROTECTED] Sent: 16. júní 2003 09:53 To: [EMAIL PROTECTED] Subject: Java Blog Dear Tomcat users, Where can i get an open source Java blog that i can deploy in my intranet? Thanks Regards, Stephen Ting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Restart program
Hi, Write a ServletContextListener, that invokes a thread that runs the program on the specified interval. That way you can interrupt the thread when the context dies, etc. Hope it helps -reynir -Original Message- From: Petter Bengtsson [mailto:[EMAIL PROTECTED] Sent: 16. júní 2003 12:57 To: [EMAIL PROTECTED] Subject: Restart program Hello experts, I'm working with an application in Tomcat and SOAP and I have trouble solving one part. The thing that I need to to is to be able to run a program on certain time intervall for example once every 15 seconds. How do I solve this the best way? Best regards /Petter - 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 and IIS 6.0??
I've been trying this, with out luck. The connector does not work between the two, maybe it's enough to build it on win2003... I'm hoping someone will take a look at this soon. Bye -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16. júní 2003 16:11 To: [EMAIL PROTECTED] Subject: Tomcat and IIS 6.0?? Hi! Is it possible to combine Tomcat with IIS 6.0 (Win 2003)? I've tried without luck. Do I do something wrong or is it impossible. Can I use the same isapi_redirect.dll as for IIS 5.0 (everything works fine on IIS 5) /cn - 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]
OFFTopic: Jsp vs velocity templates
Hi, I am wondering about the performance difference between Velocity templates and JSP. A test made by Rickard Öberg in Aug. 2001, was showing the difference being : JSP - 240-480ms Velocity - 50-70ms Since a lot has changed in tomcat and jsp. Has anyone any figures on what the difference is right now ? Is velocity still a lot faster ? Thanx, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request.getParameter( x ) returns null - OFFTOPIC
Well as you can see, most of the parameters being sent are null : Attendance=Attend+SAP+Event+1Name=test+new+formFirstname=Phone=Email=Company=Functio=sButton=Tell+Us+Now If you would do request.getParameter(Name) you should receive the value test+new+form, but the rest is empty. Don't know why, but it's submitting some parameters allright, but others it's not submitting. -reynir -Original Message- From: Frankie Bollaert [mailto:[EMAIL PROTECTED] Sent: 12. júní 2003 12:15 To: Tomcat Users List Subject: Re: request.getParameter( x ) returns null Reynir Hübner wrote: Hi, I don't think I've ever seen this problem with IE5.5 (but I use it a lot), so my guess is that the problem has something to do with a broken javascript or the actual form submition. Do you use Get or Post ? Try cleaning out all the cache of the browser (etc.).. -reynir I have also never seen a problem like this. It's not javascript or caching. The form uses POST, and it works fine on mozilla, but when I use IE5.5, all the parameters in the servlet are NULL. I have used a spy to see what goes over the wire.And the only difference is the HTTP protocol and the locales that are send over. Thank you for any help, frankie this is what IE posts: POST http://www.somesite.be/registration.servlet HTTP/1.0 Accept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Referer: http://www.somesite.be/DCSAPEvents/Event1.htm Accept-Language: fr-be Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) Host: www.somesite.be Content-Length: 111 Pragma: no-cache Cookie: SITESERVER=ID=711ae4038dc6b7cf939fc6b172442230 Proxy-Authorization: Basic WjI5OnN1cGVydXNlcg== Attendance=Attend+SAP+Event+1Name=test+new+formFirstname=Ph one=Email=Company=Functio=sButton=Tell+Us+Now And this is what mozilla posts (and works ) POST http://www.somesite.be/registration.servlet HTTP/1.1 Host: www.somesite.be User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q =0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate,compress;q=0.9 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://localhost:8080/Event1.htm Cookie: SITESERVER=ID=4e12f7d04a7c97411aed867e5325251c Proxy-Authorization: Basic WjI5OnN1cGVydXNlcg== Content-Type: application/x-www-form-urlencoded Content-Length: 84 Attendance=Attend+SAP+Event+1Name=dFirstname=dPhone=dEmail =dCompany=dFunctio=d - 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: Mimetype settings for Tomcat???
Hi, Try adding a mapping for .pdf (if it's not there) into tomcat_home/conf/web.xml It's possible if you are using a servlet to deliver the file, that the response ContentType is not the correct one. If you use RequestDispatcher.include at some point while processing the request the default mime-type will be used (text/plain), unless you change the response type in the servlet that does the has the include. Hope it helps -reynir -Original Message- From: Carlos [mailto:[EMAIL PROTECTED] Sent: 11. júní 2003 16:06 To: 'Tomcat-User ([EMAIL PROTECTED])' Subject: Mimetype settings for Tomcat??? Hi Forum, Is there a setting for tomcat that I must activate in order to use pdf files? The application/pdf mime type appears in the configuration for the web server (Apache, pot 80). I am trying to upload a pdf file with a servlet running in Tomcat (port 8080) but the file is uploaded as a text file rather than pdf. When I try to open the uploaded file, Acrobat is not launched and I just see the text of the file. On the other hand, if I upload the same file via FTP (binary), Acrobat is launched and can view the file very well. Thanks in advance for your response - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error in Tomcat
Hi, Well, I don't know how many threads you are using, if your website is under a lot of load you might want to increase the maxProcessors settings in tomcat_home/conf/server.xml in the config for the connector you are using. This could also be result of requests locking up threads, which in the end comes down to the fact that no threads are available... Hope it helps -reynir -Original Message- From: Sarkar, Sudipta [mailto:[EMAIL PROTECTED] Sent: 11. júní 2003 15:11 To: [EMAIL PROTECTED] Subject: Error in Tomcat Hi, I am getting the following error with Tomcat 4.1.24 threads.ThreadPool - All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 and the tomcat server stopped responding. Can any one help me solve this problem. Thanks Sudipta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request.getParameter( x ) returns null
Hi, I don't think I've ever seen this problem with IE5.5 (but I use it a lot), so my guess is that the problem has something to do with a broken javascript or the actual form submition. Do you use Get or Post ? Try cleaning out all the cache of the browser (etc.).. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11. júní 2003 14:57 To: [EMAIL PROTECTED] Subject: request.getParameter( x ) returns null Dear, I have a webpage that posts to a Servlet. But for one browser; Internet Explorer 5.5 on Windows NT 4 (ancient stuff, but it should work) I just get null values in the servlet. What could be the cause for this ? I 'm thinking in the direction of encodings. Thank you, Frankie __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.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]
Has anyone got IIS 6 and jk2 to work ?
I'm trying but I'm not able. I get the green arrow but always when I request a url that should go through tomcat I get 404 (not found) status. Has anyone got this to work ?? Thanx Reynir Þór Hübner [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: All threads are busy, waiting
Hi, I think I would have heard about it before if it was, I used 4.1.12 for production for many months on a loaded server, with out ever seeing that problem. My guess is that you do Thread.sleep() or something in that way in your application, or every request takes a very long time to execute. You can increase the amount of threads in tomcat by editing server.xml (where you specify the connector you use). Hope it helps -reynir -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: 7. júní 2003 00:05 To: Tomcat Users List Subject: All threads are busy, waiting Hi folks, I am using tomcat 4.1.12. I get All threads are busy, waiting. so often. Is it a bug in the tomcat? Billy Ng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sun JVM vs. JRockit
Hi, You know, there is a flag in tomcat/conf/web.xml on the jasper config : init-param param-nameenablePooling/param-name param-valuefalse/param-value /init-param So you shouldn't need to disable tagpooling in tomcat source before compiling it. I've always had a problem with tagpooling and using the osCache (www.opensymphony.com) library. For some reason it does not work correctly with tomcat, so I have to disable tagpooling too. -reynir -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: 7. júní 2003 04:24 To: [EMAIL PROTECTED] Subject: Re: Sun JVM vs. JRockit joe user [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Bill Barker [EMAIL PROTECTED] wrote: From what I've seen, for small number of requests like this, the overhead of managing the tagpool swamps what it saves in GC. You might want to try disabling tag-pooling (and clear the work dir), and re-run the test on 4.1. Object pooling is just bad design and it should be removed from the spec. We don't pool StringBuffers or HashSets or whatever because that results in crappy performance. Object pooling used to be a good idea way back in the Java 1.1 days but now, with the exception of very expensive objects like database connections, object pooling makes performance worse. The GC is very very effecient and it does a better job than an object pool can do. Also, pooling Tag objects can result in various kinds of bugs that are essentially memory management type of bugs. One of the main reasons we are using Java instead of C++ is _because_ of the GC. We should use it, not fight it. I hope that Tag pooling is removed entirely from the spec soon. I agree. That's why one of the first things I do when setting up a new production Tomcat is to go into Jasper and disable tag-pooling before compiling it ;-). __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.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: Problem executing Servlets with Tomcat 4.1.24
I am guessing that you do not have a mapping on the invoker servlet in web.xml Open the /tomcat_home/conf/web.xml and Unremark the block that mapps the invoker to /servlet/* Hope it helps -reynir -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 7. júní 2003 05:42 To: [EMAIL PROTECTED] Subject: Problem executing Servlets with Tomcat 4.1.24 Hi I'm new to the whole java scene but I'm trying to get some example and test servlets running and having all kinds of problems. I have a working tiny servlet thats compiled as ExampleServlet.class. However the only place I can get tomcat to execute it is when i put it in the (tomcat home dir)\webapps\examples\WEB-INF\classes dir with the rest of the examples. When I create my own directory under (tomcat home dir)\webapps\begjsp\WEB-INF\classes and put it there it will not execute it i get the error 404 type Status report message /begjsp/servlet/ExampleServlet description The requested resource (/begjsp/servlet/ExampleServlet) is not available Which is highly annoying. When I run the manager and list the running webapps it lists the begjsp as being deployed and running. Makes no sense! This is basically a default install.. and I read there is a web.xml file that generally goes into the WEB-INF\ folder but I am missing one, it should run even without one correct? Here's my class code just incase I screwed it up somehow.. but it works in the examples folder..: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ExampleServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out; String title = Servlet Example; response.setContentType(text/html); out = response.getWriter(); out.println(htmlheadtitle); out.println(title); out.println(/title/headbody); out.println(h1This is an example servlet./h1); out.println(/body/html); out.close(); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } } Any and ALL help appreciated =) -Halcyon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 apache2 log errors
I think it's enough to add the following : - start here --- [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: - end here --- To your workers2.properties. Hope it helps -reynir -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: 31. maí 2003 15:55 To: Tomcat Users List Subject: RE: JK2 apache2 log errors Hello: How do I enable the jkstatus page? I have not seen any docs on it. Thanks, Neil -- Neil Aggarwal JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com Custom Internet DevelopmentWebsites, Ecommerce, Java, databases -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: Saturday, May 31, 2003 10:01 AM To: Tomcat Users List Subject: RE: JK2 apache2 log errors In the process of digging through the mod_jk2 source code to solve my own problem (which still hasn't happened), I came across extensive references to the scoreboard. It is a place in a workerEnv data structure that holds the process ID of a child process. I'm not sure about who spawns what where, but at least it appears Apache spawns off the jk2 stuff, which then goes off and spawns worker threads. It appears the scoreboard is a place in the worker environment to keep track of some of the housekeeping that goes on with these threads. I've only looked at it for about an hour, so this could be all wrong, but that's what it looks like. TIA, -- Allen -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Saturday, May 31, 2003 1:09 AM To: Tomcat Users List Subject: Re: JK2 apache2 log errors Geralyn M Hollerman wrote: Michael Cardon wrote: What does it mean when it says, Can't find child 2954 in scoreboard? Is the 'scoreboard' have something to do with the shm.file? As far as I know, no, the two aren't related. My sysadmin had commented the stuff about a Scoreboard directive in httpd.conf out, and I'm not sure if I understand what it's intended to be used for. Perhaps there is someone out there more familiar with it? Sorry! Scoreboard refers to the jkstatus context which, if you are using the default worker2.properties that came with the rpm package for mod_jk2, you will see a section on. If you have jkstatus enabled, you will be able to see the status of your mod_jk2 connector by going to the URL : http://domain.com/jkstatus Regards, pascal chong - 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: open source code and IDE
For IDE I would suggest netbeans or eclipse... There is always a debait going on, on which one is better than the other, but obviously as with any such product both have cons and pros. Sourcecode examples are in the examples directory under /tomcat/webapps/examples/ Start there for generic examples, then check out some opensource projects for more specific sample code. Hope it helps -reynir -Original Message- From: electroteque [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 13:54 To: [EMAIL PROTECTED] Subject: open source code and IDE hi this is probably the wrong place to ask , but now i got the standalone server running , i'd like to know where to find open source code example scripts to play with and maybe an IDE that everyone uses , any suggestions ?, its funny i remember when i was a php newbie years ago it feels like that all over again - 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: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module
Hi, I haven't seen this error before, do you have a connector set to receive the request in tomcat/conf/server.xml ? It must be open on port 8009, what hapenes if you do : C:\ telnet localhost 8009 It's seems to me that the workers, and IIS filter is working correctly at least according to the log file, but there may be nothing configured to receive the request in tomcat. Or maybe even tomcat Is not running at all ? hope it helps -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 11:48 To: TOMCAT USER (E-mail) Subject: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Hi, I have been charged with getting IIS 5 talking to Tomcat 4.1.24 I have completed all the instructions and have the isapi filter running and spitting out its log information to a log file in tomcat and so on, so I know that JSP requests are getting into the isapi filter OK. However, when I request my test jsp http://intranet/taglibs/index.jsp I get the error... The specified module could not be found. Looking in the IIS log I see an error 500 code for this response 2003-05-29 11:27:35 150.150.100.247 - 150.150.100.247 80 GET /tomcat/isapi_redirector.dll - 500 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) And in the isapi log the request gives [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /intranet/taglibs/index.jsp [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/intranet/taglibs/index.jsp' [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /taglibs/index.jsp [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/taglibs/index.jsp' [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match testWorker - /taglibs/ [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match testWorker - *.jsp [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc [/taglibs/index.jsp] is a servlet url - should redirect to testWorker [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (838)]: HttpFilterProc check if [/taglibs/index.jsp] is points to the web-inf directory My workers.properties file is worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13 My uriworkermap.properties is /taglibs/*=testWorker /taglibs/*.jsp=testWorker /taglibs/servlet/*=testWorker FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module
Ok, according to this you've got 2 connectors on port 8009 ? That's one to many ... -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 13:38 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module My server.xml contains !-- 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/ when I request http://localhost:8080/taglibs/index.jsp it works, so Tomcat is running. Telnet to 8009 gives me a blank screen. -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 14:29 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Hi, I haven't seen this error before, do you have a connector set to receive the request in tomcat/conf/server.xml ? It must be open on port 8009, what hapenes if you do : C:\ telnet localhost 8009 It's seems to me that the workers, and IIS filter is working correctly at least according to the log file, but there may be nothing configured to receive the request in tomcat. Or maybe even tomcat Is not running at all ? hope it helps -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 11:48 To: TOMCAT USER (E-mail) Subject: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Hi, I have been charged with getting IIS 5 talking to Tomcat 4.1.24 I have completed all the instructions and have the isapi filter running and spitting out its log information to a log file in tomcat and so on, so I know that JSP requests are getting into the isapi filter OK. However, when I request my test jsp http://intranet/taglibs/index.jsp I get the error... The specified module could not be found. Looking in the IIS log I see an error 500 code for this response 2003-05-29 11:27:35 150.150.100.247 - 150.150.100.247 80 GET /tomcat/isapi_redirector.dll - 500 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) And in the isapi log the request gives [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /intranet/taglibs/index.jsp [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/intranet/taglibs/index.jsp' [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /taglibs/index.jsp [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/taglibs/index.jsp' [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match testWorker - /taglibs/ [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match testWorker - *.jsp [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc [/taglibs/index.jsp] is a servlet url - should redirect to testWorker [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (838)]: HttpFilterProc check if [/taglibs/index.jsp] is points to the web-inf directory My workers.properties file is worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13 My uriworkermap.properties is /taglibs/*=testWorker /taglibs/*.jsp=testWorker /taglibs/servlet/*=testWorker FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module
Hi, I am not sure if that's what's happening here... I've had problems with IIS it self, sometimes it's enough to restart IIS, and sometimes I need to restart the hardware. One thing that comes to mind... Did you create the /jakarta virtual directory under IIS and have it pointing to the dll ?? F.Y.I. I've made 2 how-too-pages on the IIS jk and jk2 installation most simple installation possible. You might want to try out the other (jk2). Check out http://www.reynir.net/tomcat/tomcat_IIS_service.html for JK or http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html for JK2 installation instructions, that work. Hope it helps -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 14:13 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module I commented out each in turn and it does not matter which I use the error still happens :( It's ridiculous because I have followed every single set of instructions to the very letter and it does not work. Someone out there must know what The specified module could not be found. which is what I get in Internet Explorer when I request my JSP through IIS. The IIS logs still show Error 500 for the ISAPI dll. -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:02 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Ok, according to this you've got 2 connectors on port 8009 ? That's one to many ... -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 13:38 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module My server.xml contains !-- 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/ when I request http://localhost:8080/taglibs/index.jsp it works, so Tomcat is running. Telnet to 8009 gives me a blank screen. -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 14:29 To: Tomcat Users List Subject: RE: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Hi, I haven't seen this error before, do you have a connector set to receive the request in tomcat/conf/server.xml ? It must be open on port 8009, what hapenes if you do : C:\ telnet localhost 8009 It's seems to me that the workers, and IIS filter is working correctly at least according to the log file, but there may be nothing configured to receive the request in tomcat. Or maybe even tomcat Is not running at all ? hope it helps -reynir -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 11:48 To: TOMCAT USER (E-mail) Subject: IIS 5 + isapi_redirect.dll Error 500 And Cannot Find Module Hi, I have been charged with getting IIS 5 talking to Tomcat 4.1.24 I have completed all the instructions and have the isapi filter running and spitting out its log information to a log file in tomcat and so on, so I know that JSP requests are getting into the isapi filter OK. However, when I request my test jsp http://intranet/taglibs/index.jsp I get the error... The specified module could not be found. Looking in the IIS log I see an error 500 code for this response 2003-05-29 11:27:35 150.150.100.247 - 150.150.100.247 80 GET /tomcat/isapi_redirector.dll - 500 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) And in the isapi log the request gives [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /intranet/taglibs/index.jsp [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/intranet/taglibs/index.jsp' [Thu May 29 12:27:35 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu May 29 12:27:35 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default
Content type problem
Hi, I have a content-type problem... I have a website where most urls are not with an file ending such as .jsp that is most urls are something like this : http://website.com/news http://website.com/staff http://website.com/news/12/05/2003 This is done by urlrewriting with a filter. The problem I am trying to solve is the fact that the default mime type seems to be text-plain, and there for all those pages get rendered as text but not HTML. I've tried setting response.setContentType(text/html); in my JSP but that does not change anything, I also have all the content type tags in the HTML code, but that does not change anything either. What can I do (I am about to patch the http connector) Reynir Þór Hübner [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Format body message of email
Hi, You could set the content type of the bodypart of the email to text/html. Then you could just do it with html you know font color= redred letters/font It's really simple... Hope it helps, -reynir -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 11:20 To: 'Tomcat Users List' Subject: Format body message of email Hello All, I am using JAF and JavaMail to send email. For the email body message, I need to set some characters' font color as blue, some characters' font color as red. Could please give me some idea about how to realize it? Thanks. Regards, Xiaojing - 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: Content type problem: solved..
Hi Bill, Thanx for your reply, You where right, I found rd.include(req,res) (that should have been rd.forward) in someones code here that causes it. Thanx -reynir -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: 29. maí 2003 05:47 To: [EMAIL PROTECTED] Subject: Re: Content type problem I'm guessing that you are using an rd.include(request, response), which specifically forbids changing things like content-type. Reynir Hübner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] .. Hi, I have a content-type problem... I have a website where most urls are not with an file ending such as .jsp that is most urls are something like this : http://website.com/news http://website.com/staff http://website.com/news/12/05/2003 This is done by urlrewriting with a filter. The problem I am trying to solve is the fact that the default mime type seems to be text-plain, and there for all those pages get rendered as text but not HTML. I've tried setting response.setContentType(text/html); in my JSP but that does not change anything, I also have all the content type tags in the HTML code, but that does not change anything either. What can I do (I am about to patch the http connector) Reynir Þór Hübner [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: File Upload in JSP
Check out the jakarta-commons libraries, you should be able to find file-upload component there. http://jakarta.apache.org/commons/fileupload/index.html Hope it helps -reynir -Original Message- From: there over [mailto:[EMAIL PROTECTED] Sent: 6. apríl 2003 10:53 To: [EMAIL PROTECTED] Subject: File Upload in JSP Hi All :) I want to have 'File Uploading' feature in my web application.How can i do this in JSP? Thnx All :) - Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Password and session
Yes, Not authorized has the 401 http error code. So you should be able to set in web.xml (either conf/web.xml or /WEB-INF/web.xml) : error-page error-code401/error-code location/welcome.jsp/location /error-page Hope it helps -reynir -Original Message- From: Iago Toral [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:25 To: [EMAIL PROTECTED] Subject: Password and session Hello! I'm using HTTP authentication, the first time I enter in my web application, Tomcat ask me for my login and password, but if the session expires Tomcat do not ask me for it again. Is this normal? can I configure Tomcat to redirect to a specific page (for example the welcome page) if the session expires? Thanks! Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lm tplus - 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: System.out.println()
Hi, I am not sure it's possible to understand the question but... What kind of error are you refering to ?? If you mean exception you could do exception.printStackTrace(System.out); To print out the stacktrace (the most usefull bit of an exception). But you can of course always print out the exception like this : System.out.println(Exception + e.toString()); or System.out.println(Exception + e.getMessage()); On the other hand I recommend that you to check out log4j or some other logging mechanism so you can direct your error logs into a file and control what goes out there. Hope it helps -reynir -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:05 To: 'Tomcat Users List' Subject: System.out.println() How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - 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: GUI for ant ...
Hi guys.. How about http://ant.apache.org/projects/antidote/index.html -reynir -Original Message- From: Kristján Bjarni Guðmundsson [mailto:[EMAIL PROTECTED] Sent: 31. mars 2003 16:41 To: Tomcat Users List Subject: Re: GUI for ant ... Well it depends on what you mean, if you mean a grapchical designer for ant build xml files then I don't think there is any. But if you mean a GUI tool to run ant build files, well I personally use JEdit (http://www.jedit.org) and it has a graphical plugin (AntFarm) for runnint ant targets. [EMAIL PROTECTED] wrote on 31.03.2003 14:47:05: Hi, Being a newbie to ant ( have to use it ) ... can any one give me a link to a s/w with GUI for ant ??? Gurumoorthy Raghupathy Aegon Benefit Solution Email : [EMAIL PROTECTED] Phone : 0044 20 72404801 Mobile : 07745988336 - 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: Admin is incomplete
Hi, There are two things I would like to point out. 1. You don't really need the admin app ..so just read the manual on how to edit server.xml and web.xml. 2. It would be more efficient to post a bug in the bugzilla, than shout at the tomcat-user list. The admin application is really a new thing in tomcat, so I don't think everyone espects it to be fully working. Maybe it's enough for you to have the HTML-Manager application, read all about it at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/html-manager-howto.html There you can deploy, start, stop and reload your applications. Hope it helps -reynir -Original Message- From: Herbert G. Fischer [mailto:[EMAIL PROTECTED] Sent: 26. mars 2003 19:53 To: Tomcat Users List Subject: Re: Admin is incomplete THE PROBLEM IS BAD THAN I THOUGHT!!! Sorry for the caps, but I'm very angry!! Admin only works correctly on MS Internet Explorer... How a multiplatform tecnology can be made this way Damn!!! Herbert G. Fischer wrote: Hi again, I'm getting very angry with Tomcat 4.1.24... It's half made... There's a lot of classes missing!!! Another one... == HTTP Status 400 - Invalid path /logger/AddLogger was requested type Status report message Invalid path /logger/AddLogger was requested description The request sent by the client was syntactically incorrect (Invalid path /logger/AddLogger was requested). Apache Tomcat/4.1.24-LE-jdk14 == = - 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: Good documentation?
Yes, I have very similar experience, hard to find good docs on what to do. Last time I configured IIS with mod_jk2 I wrote few lines on the subject which describe the most simple solution I could find to get that kind of setup running. I don't think it uses all the benefits of JK2 but it gets the thing running, and that's what I needed. You can check it out at http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html [EMAIL PROTECTED] posted more detailed configuration (making use of lb and more) on the list I think around 15. of march, that you might want to check out. Hope it helps -reynir.net -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: 26. mars 2003 20:23 To: [EMAIL PROTECTED] Subject: Good documentation? Is there any good documentation for deploying JK2 out there anywhere? The documents I reviewed weren't that detailed, and I find that things the doc says to put in jk2.properties actually should live in workers2.properties. Any one with similar experiences? - 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: Problems with tomcat 4.0.1 and 4.1.18
Hi, I suggest you try increasing the memory size by using jvm parameters such as -Xmx250m or what ever you think the size has to be. If java is running out of memory, it may (possibly) result in strange error messages. Hope it helps -reynir -Original Message- From: Daniel Regenass [mailto:[EMAIL PROTECTED] Sent: 21. mars 2003 10:31 To: Tomcat Users List Subject: RE: Problems with tomcat 4.0.1 and 4.1.18 Hi, I recently moved one of our servers to RH 8.0. In the same step I also tried to move the affected application to Tomcat 4.1.18, working together with Apache 2.0.40 by using mod_jk 1.2.2. Everything went fine except that after about a day, Tomcat seems to have problems. The effects were: - OutOfMemory Exceptions - No more responds from Tomcat - Error 500's The effects changed as I was trying different versions of Apache JDK and JK versions etc., but it seems to me that these results are caused by always the same problem: The connections between Apache and Tomcat seem to be created once, not used again and not destroyed anymore resulting in a huge amount of hanging threads, filling up memory etc. It usually took about a day until the problem occurred, but of course, this depends on the number of requests, amount of memory and the application itself. Currently, I'm trying JDK 1.3.1_07. Will see if it fixes the problem. Someone mentioned that before in this mailinglist. Typical log outputs of JkCoyoteHandler: . . [INFO] ChannelSocket - -Server has been restarted or reset this connection [INFO] ChannelSocket - -connection timeout reached . . and corresponding to that by mod_jk: . . [Fri Mar 21 01:13:47 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Fri Mar 21 01:13:47 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Mar 21 01:13:50 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. . . Regards, Daniel -Original Message- From: Marion McKelvie [mailto:[EMAIL PROTECTED] Sent: Freitag, 21. März 2003 10:58 To: Tomcat Users List Subject: RE: Problems with tomcat 4.0.1 and 4.1.18 Daniel Are you running in standalone mode or with a web server? I have seen a similar problem when using 4.1.18, but I think I've traced it to Apache 4.0.43 and mod_jk : Apache seems to keep producing child processes each of which uses up a mod_jk thread until I get the same error in catalina.out Marion -Original Message- From: Daniel Rubio [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 08:49 To: [EMAIL PROTECTED] Subject: Problems with tomcat 4.0.1 and 4.1.18 Hi to all Recently, we updated our Tomcat server from 4.0.1 to 4.1.18. All was perfect on the first day, but then the new server crashed and I can't found the cause. Doing a ps -ef i see lots of tomcat processes that are'nt finalizing, and when this number arrives to the value we have in acceptCount variable it stops serving pages. Here is the error on catalina.out Mar 20, 2003 9:34:30 PM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 maxThreads is set to 75 but we haven't more from 2-3 concurrent users so I think this is not th problem. We tried to run again the old server, but now we have a very strange error, we can execute servlets but not jsp pages. Here is the error received by the browser: Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet jsp is currently unavailable this happens too to the examples directory, I think it's not caused by the application... I'm going crazy, somebody could help? Thanks in advance -- Daniel Rubio Rodríguez OASI (Organisme Autònom Per la Societat de la Informació) c/ Assalt, 12 43003 - Tarragona Tef.: 977.244.007 - Fax: 977.224.517 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: questions on instances of java beans
Hi, Put your bean into servlet context when it's instanciated with the first client. Then get it out of ServletContext when you want the other client to use it. Hope it helps -reynir -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: 21. mars 2003 13:44 To: [EMAIL PROTECTED] Subject: questions on instances of java beans if browser A has made an instance of my javabean of session scope, how does browser B from another computer use the same instance of that javabean. in otherwords i want to have different browsers use a session bean like an application scope bean. mike _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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 problems
I have a tomcat 4.1.18 running in a win2k server, behind IIS. I installed isapi_redirector2.dll and it works (usually) allright. Every once in a while it stops returning tomcat executed pages, and returns error code 500 I know tomcat is running fine as it works for me to go into port 8080 on that host, where I have the http connector running, I also tried requesting a static HTML document (soemthing.html) and IIS returns that ok. An error such as this pops up on the desktop of the host : IIS WWW Configuration: The connection to the Web server 'myservername' was lost. The only thing so far that we've been able to do to get the connector running is to restart the machine... Can any one point out what is wrong here, or if I am looking in a wrong hole here (maybe this is IIS problem only) Thanx [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Update Problem / accessing servlet
Hi, That migth be because the /servlet/* mapping to the InvokerServlet is remarked in tomcat/conf/web.xml Remove the remark tags, and try again. Hope it helps -reynir -Original Message- From: Christoph Fischer [mailto:[EMAIL PROTECTED] Sent: 12. mars 2003 11:08 To: Tomcat Users List Subject: Update Problem / accessing servlet Hi, after update from tomcat 4.1.10 to 4.1.18 I have the proplem that I can not access my servlets anymore (Error 404). The path to the servlet is http://www.myhost.com/test/servlet/myservlet.out in the tomcat directory the servlet is located under /tomcat/webapps/test/WEB-INF/classes/myservlet Where do I have to define the test - directory that the url can be found again and why did it work with tomcat 4.1.10 ? Thanks for your help Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS / JK2 Parameter is incorrect
Hi, I'm trying to do multipart requests, and sometimes (occationally) I get an error-response saying : The Parameter is incorrect This error message is not generated from my own application so I must ask where is it coming from ? Where should I look for errors in my setup or code ? Thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat able to set session
Hi all, I have an Internet Explorer 6, and tomcat (4.1.x) win32. I have two hosts, first one has the url: 1. http://website.host.domain.com And the other has : 2. http://admin.website.host.domain.com If I first enter host 1 one a session is created and held for this client. If I then enter host 2 Tomcat cannot persist the session and creates a new session for every request. If I go the other way around (first start a session on host 2 and then host 1) there is no problem with sessions. I also browsed the pattern with Opera and that worked also fine. Why can't tomcat create a session that lives on, for the 2. host if I've have a session with the other host already made ? I'm wondering if this is a bug in Explorer (not the first one) or if there is something else happening. Thanx, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK + client authentication: getRemoteUser() returns null
Hi, I've just installed tomcat4.1.18 with IIS and jk2 and it works fine. I was having problems with the getRemoteUser(), and it works fine when using jk2. I posted the steps to install onto my website http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html There may be some bugs in these docs, but this installation works for me so maybe it could help someone. [EMAIL PROTECTED] -Original Message- From: Robert Biernat [mailto:[EMAIL PROTECTED] Sent: 11. mars 2003 00:26 To: 'Tomcat Users List' Subject: RE: JK + client authentication: getRemoteUser() returns null I sent a message earlier with a similiar problem however I'm using IIS 5.0 and the ISAPI redirector, and not using Apache with SSL certificates. It appears the combination of the CoyoteConnector and the JkCoyoteHandler is where the bugs lies. I switched off the CoyoteConnector, and reverted back to the old Ajp13Connector, added the attribute tomcatAuthentication=false and it worked fine. However I've been having stability problems with the Ajp13Connector (Tomcat runs out of threads) and want to upgrade to the new CoyoteConnector as soon as possible. At this stage this bug is all that is holding me back from deployment of 4.1.18 to production. Rob -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 March 2003 11:12 AM To: Tomcat Users List Subject: RE: JK + client authentication: getRemoteUser() returns null you are correct, there is a bug filed for this, Bugzilla Bug 11563 not sure anyone is dealing with it though, Filip -Original Message- From: Mayne, Peter [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 4:01 PM To: Tomcat Users List Subject: JK + client authentication: getRemoteUser() returns null I'm using Windows XP Apache 2.0.44 OpenSSL 0.9.7a mod_jk-2.0.43.dll Tomcat 4.1.18 I've followed the instructions at http://www.johnturner.com/howto/winxp-howto.html to set up Apache and Tomcat using JK, with authentication using client certificates. Everything seems to be working fine, except request.getRemoteUser() is returning null. (The REMOTE_USER is shown from a CGI script, so authentication is working.) The only reference I can find to this problem is in /tomcat-docs/config/jk.html: setting the tomcatAuthentication attribute when using org.apache.ajp.tomcat4.Ajp13Connector, but since this connector doesn't appear in my server.xml, it doesn't seem to be relevant. (It does seem to be relevant for Tomcat 4.0.6, but I'd rather not have to try dropping back to there.) Before I post voluminous config files, am I missing something obvious? Thanks. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. - 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 able to set session
Thanx -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 11. mars 2003 12:07 To: Tomcat Users List Subject: Re: Tomcat able to set session Yes, bug in IE. http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= -Tim Reynir Hübner wrote: Hi all, I have an Internet Explorer 6, and tomcat (4.1.x) win32. I have two hosts, first one has the url: 1. http://website.host.domain.com And the other has : 2. http://admin.website.host.domain.com If I first enter host 1 one a session is created and held for this client. If I then enter host 2 Tomcat cannot persist the session and creates a new session for every request. If I go the other way around (first start a session on host 2 and then host 1) there is no problem with sessions. I also browsed the pattern with Opera and that worked also fine. Why can't tomcat create a session that lives on, for the 2. host if I've have a session with the other host already made ? I'm wondering if this is a bug in Explorer (not the first one) or if there is something else happening. Thanx, [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: question
You can set up virtual hosts with tomcat. You should set up another HTTP server (such as apache, IIS) if you want to use apaches capabilities and performance. Obviously having tomcat delivering static documents, such as images and .html can be a waste of resource. Performance is the biggest single reason to intergrate with apache. This dependes on the type of application you are using, and how big part of it is static content rather than dynamic content such as servlets/jsp. Then of course know-how of the people that will be running the system long term is very often a reason enough to deploy with either apache or IIS, as they don't neccesarily know how to configure tomcats security, but know how to do it in IIS/apache. Hope it helps, -reynir -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: 9. mars 2003 16:53 To: Tomcat Users List Subject: question Hi, I know tomcat already provide web server capability, under what knid circustance you need to intergrate apache with tomcat. My thinking is when you want to set up virtual host. I don't know this answer is correct? If any one can give me advice, thank you in advance. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question
I'm running CGI (.pl) programs on a tomcat instance here, there are PHP servlets available so I guess you should be able to run that too.. -reynir.net -Original Message- From: J Aaron Farr [mailto:[EMAIL PROTECTED] Sent: 9. mars 2003 17:26 To: Tomcat Users List Subject: RE: question On Sun, 2003-03-09 at 11:59, Reynir Hübner wrote: You can set up virtual hosts with tomcat. You should set up another HTTP server (such as apache, IIS) if you want to use apaches capabilities and performance. Obviously having tomcat delivering static documents, such as images and .html can be a waste of resource. Performance is the biggest single reason to intergrate with apache. This dependes on the type of application you are using, and how big part of it is static content rather than dynamic content such as servlets/jsp. Then of course know-how of the people that will be running the system long term is very often a reason enough to deploy with either apache or IIS, as they don't neccesarily know how to configure tomcats security, but know how to do it in IIS/apache. Hope it helps, -reynir Wouldn't another reason be if you want to run other CGI programs that tomcat does not handle, ie - PHP ? -- jaaron[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: question
Hi, In my experience a machine running an application only with jsps/servlets (with no static content) is under more load with apache than without apache configured. I must though add, that my load testing where done at least 6-8 months ago, both with IIS 5 and apache 1.3, but never with https connector, or mod_jk2 or apache2. Yet there may be other reasons to use apache such as security (as mentioned in another email), or the know how of the one to run the system on daily bases longterm. Hope it helps -reynir -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: 9. mars 2003 17:14 To: Tomcat Users List Subject: Re: question Reynir, Thank you for your advice. So the main reason to intergrate with Apache is using Apache to ease the load from Tomcat. In other word, every static content will be rendered by Apache without Tomcat. If a web application use dynamic content mechanism such as JSP/Servlet, then the integration won't benifit us at all. Am I correct. I know some one use Apache for traffic load balance only. thanks Paul - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 8:59 AM Subject: RE: question You can set up virtual hosts with tomcat. You should set up another HTTP server (such as apache, IIS) if you want to use apaches capabilities and performance. Obviously having tomcat delivering static documents, such as images and .html can be a waste of resource. Performance is the biggest single reason to intergrate with apache. This dependes on the type of application you are using, and how big part of it is static content rather than dynamic content such as servlets/jsp. Then of course know-how of the people that will be running the system long term is very often a reason enough to deploy with either apache or IIS, as they don't neccesarily know how to configure tomcats security, but know how to do it in IIS/apache. Hope it helps, -reynir -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: 9. mars 2003 16:53 To: Tomcat Users List Subject: question Hi, I know tomcat already provide web server capability, under what knid circustance you need to intergrate apache with tomcat. My thinking is when you want to set up virtual host. I don't know this answer is correct? If any one can give me advice, thank you in advance. Paul - 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: Share Java resources between two (or more) servlets
Hi, See intermixed. -Original Message- From: Andreas Byström [mailto:[EMAIL PROTECTED] Sent: 7. mars 2003 10:20 To: Tomcat Users Subject: Share Java resources between two (or more) servlets Hi all! I'm writing an application that uses (for now) 4 different servlets. I would like all these servlets to share some java singelton object. Is this possible? Do all servlets share the same jvm instance and thereby uses the same singelton object? Sure no problem as long as the singleton object is in the same classloader scope it should not be a problem. Each application is loaded with sepperate classloaders, so as long as the servlets are in the same application and the singleton is in it's classpath too it works. I have one servlet that is set to load-on-startup, this servlet will create the java object (db connections and other stuff) that I want all servlets to share later on. This servlet is not used anymore, it hust listens for shutdown and will not receive any requests. Is this how you should solve a initialization problem or is there some other way? Use a ServletContextListener to startup such objects, rather than the load-on-startup method of servlets. It has some benefits doing it that way, like, you can do some cleanup (if needed) when the context is destroyed. When I run my application I start this servlet (servlet1) as above. But when I then invoke another servlet, servlet2, (that is not set to load-on-startup) there is a strange behavior. Using my traces I can read that it first invokes init on servlet1 again and then init on servlet2. If I then sends a first reuquest to servlet3 it just does init on servlet3. If I instead had sent the first request to 3 before the first request to servlet2 it is the same behavior but vice versa. when the request comes to servlet3 it does init on first 1 nd then 3. The request to servlet 2 now just incokes init on servlet2. Have anyone a clue of you it can be like this? Not really... How are you sending the requests ? -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 5.0 Redirector Strangeness
Hi, I can understand why PUT and DELETE might be blocked by some sort of write-constraint, but why is OPTIONS failing? If anyone can cast any light on how I can get the new redirector to send *ALL* requests through to my servlet, I'd appreciate hearing from you. This is really just a guess, you might want to check it out. By default the all contexts are read only. See in tomcat/conf/web.xml where the default servlet is specified the attribute readonly default state is true, so I think you must set that to false to get the PUT and DELETE methods to work : CP instructions from web.xml : ---8--- !-- readonlyIs this context read only, so HTTP -- !-- commands like PUT and DELETE are -- !-- rejected? [true] -- ---8--- Sorry but I have no idea what causes the OPTIONS failure. Hope it helps -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web Page Caching
Hi, Take a look at OSCache from www.opensymphony.com that is a cache framework. Tomcat it self does not provide cache on any dynamic content such as servlet responses or jsp responses. Hope it helps -reynir -Original Message- From: venkat ramana [mailto:[EMAIL PROTECTED] Sent: 3. mars 2003 06:05 To: [EMAIL PROTECTED] Subject: Web Page Caching Hi I am new to Tomcat server. Can you tell me does Tomcat support web page caching if supported tell me techincal detials how this is done. Thanks in advance Thanks and warm regards Venkat Regards Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML problem with Tomcat 4.1.18 (but was ok in 4.0.4)
Hi, This may have something to do with an upgraded version of jaxp or xerces, distributed with some dists of tomcat. According to the error you're getting your url is missing scheme, often 'http' or 'https' in the beginning of the url (before '://') [scheme:]scheme-specific-part[#fragment] Which version of tomcat did you download (the full version or 1.4. LE) ? Hope it helps -reynir -Original Message- From: neal [mailto:[EMAIL PROTECTED] Sent: 1. mars 2003 20:36 To: Tomcat Users List Subject: RE: XML problem with Tomcat 4.1.18 (but was ok in 4.0.4) Hmm ... it appears that for some F***'ed up reason, that the URL created by using his.getClass().getResource() is no longer acceptable for TRAX when using Tomcat 4.1.18, as compared to Tomcat 4.0.4. The problem is that the URI begins with a /. If I remove that leading / suddenly the URLs are acceptable in Tomcat 4.1.18. Why would Tomcat be involving itself in such issues? Only thing I can think of is that maybe the conditions for this Apache Exception were redefined in 4.1.18: org.apache.xml.utils.URI$MalformedURIException: No scheme found in URI Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 11:02 AM To: Tomcat Users List Subject: RE: XML problem with Tomcat 4.1.18 (but was ok in 4.0.4) I ported my app from Tomcat 4.0.4 (Windows) to Tomcat 4.1.18 (Windows) and now it doesn't work! It appears that I have a problem now with parsing my conf.xml file in my initServlet. I noticed that the new Tomcat has an endorsed directory with a different copy of Xerces in it. Is this somehow related? Here's the error: javax.xml.transform.TransformerException: org.apache.xml.utils.URI$MalformedURIException: No scheme found in URI Thanks. Neal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jsp compilation avoiding writing \r\n characters
Hi, There is a simple reason for all the \r\n characters, but they actually are in your jsp document. See example : %= TEST1 % %= TEST2 % %= TEST3 % Will return : TEST1\r\nTEST2\r\nTEST3\r\n But : % out.write(TEST1); out.write(TEST2); out.write(TEST3); % Will return : TEST1TEST2TEST3 For every return-char in a jsp document that is not with in a jsp-code block you will get a \r\n If you think you do not want to change the way you write your jsp pages you should look for Trim-filter in google.com Hope it helps -reynir -Original Message- From: Alban Soupper [mailto:[EMAIL PROTECTED] Sent: 28. febrúar 2003 09:58 To: 'Tomcat Users List' (E-mail) Subject: Jsp compilation avoiding writing \r\n characters Hi all, Is there a way to configure Tomcat 4, so it compiles the jsp pages without writing those boring \n and \r characters? (I am using Catalina embedded in JBoss) Alban. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. ** - 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: cgi-bin
You need to create a new directory named cgi-bin (or something else if you configured web.xml to use something else) under your WEB-INF/ directory of the webapp. Then you can put your cgi scripts in to that directory, and run from command line. Hope it helps -reynir -Original Message- From: Kaps Stefan [mailto:[EMAIL PROTECTED] Sent: 28. febrúar 2003 13:18 To: [EMAIL PROTECTED] Subject: cgi-bin hello! i need a cgi-bin directory and enabled cgi in the web.xml and renamed a file. should this create a new directory when restarting (not on my server...)? need help for this problem! Thanks!! stefan - 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]
Performance .. Jsp compile import wildcards
Hi, I'm wondering what kind of performance decrease (if any) it has to use wildcards in jsp import lines. example : %@ page import=java.util.* % .. but not : %@ page import=java.util.ArrayList % I know in normal java classes using wildcards when importing packages or classes does not matter at runtime, but the compile time may take longer. I also know it's a good rule to import the class but not the package and having the import lines in alphabetical order may help some mainenance programmer to read from the source, later on. So that's what I usually do, but in the case I'm working on right now it has some benefits to go the sloppy way. Please post your info, Thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Performance .. Jsp compile import wildcards
But JSPs are compiled, so this is still only a compile-time issue. (Unless I'm mistaken?) Erik Yup, that's true... I'm really just trying to find out how much this can slow down the compile of a jsp page (jspc). I'm guessing not much but I am no compiler specialist. Maybe this makes the compile take a lot longer and there for slow down the first execution of every jsp page, unless I use a jps precompiler. The question I am asking my self is Is this something I should take into concern when I am optimizing my web-application, or will it be a waste of time to review hundreds of jsps and fix the import lines ? Thanx -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: goodbye
Send an email to : [EMAIL PROTECTED] Goodbye -Original Message- From: David Durst [mailto:[EMAIL PROTECTED] Sent: 26. febrúar 2003 10:13 To: [EMAIL PROTECTED] Subject: goodbye unsubscribe - 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: huge web.xml
Maybe all you need to do is use a good xml editor. Why is it getting so big ? I recommend xml-spy as a good xml editor Hope it helps -reynir -Original Message- From: Liq Wnq [mailto:[EMAIL PROTECTED]] Sent: 15. febrúar 2003 19:18 To: [EMAIL PROTECTED] Subject: huge web.xml My web.xml is getting bigger and bigger. What are convenient ways to maintain it? TIA. __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.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: Configuration of Apache with Tomcat
Post your errors, and then we might be able to help you. Bye -reynir -Original Message- From: Mahbub ul Huq Bin Kabir [mailto:[EMAIL PROTECTED]] Sent: 10. febrúar 2003 11:08 To: [EMAIL PROTECTED] Subject: Configuration of Apache with Tomcat Hello There I'm Mahbub..From Bangladesh. I recently start Java and trying to develop a system in Java. I'd Tomcat 4.1.18 And Apache 2.0.43 Now i'm trying to configure Tomcat with Apache. I was using JK2 but could not configure cause I don't got any result as the manual says. Is there anyone interested to help me to configure Tomcat with Apache I'll be greate full. Thank you. _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll)
Hi, I've used both mod_jk2 with IIS and apache with loads of javascripts with out any problems, so I think you should look at something else. Check if the content type mapping for *.js is correct (in $tomcat_home/conf/web.xml). Hope it helps -reynir -Original Message- From: Andrew Milkowski [mailto:[EMAIL PROTECTED]] Sent: 7. febrúar 2003 17:41 To: Tomcat Users List Subject: FW: MOD_JK2 Connector possibly corrupting javascript files (mod_jk2-2.0.43.dll) Dear participants of this list. My environment is: OS: Windows XP Web Server: Apache 2.0.43 Tomcat: 4.1.18 Connector : mod_jk2 (mod_jk2-2.0.43.dll) I have deployed a sample application, that includes some dhtml javascript (HM_ScriptDOM.js) for simplicity I placed this file in the example context when accessing this javascript by not going thru the connector: http://127.0.0.1:8080/examples/HM_ScriptDOM.js behavior is as expected, no corruption occurs and some simple error is thrown due to undefined variables However hitting the same uri via a connector: http://127.0.0.1/examples/HM_ScriptDOM.js seemes to be corrupting this javascript file Wonder if this is an environmental error, or indeed a serious defect Attaching all relevant files that might help diagnose problem, wonder if any of you came across this problem for space reasons I couldnt attach HM_ScriptDOM.js, but that readily can be obtained from http://helikon.muze.nl/cgi-bin/cvsweb/ariadne/www/widgets/menu /HM_ScriptDOM. js?sortby=author regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
Check your event log (controlpanel - administrator tools - event viewer) Hope it helps -reynir -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: 6. febrúar 2003 12:29 To: Tomcat Users List (E-mail) Subject: Tomcat 4.1.18, JK2 - no iis_redirect.log Hi I've just upgraded from Tomcat 3.2 to Tomcat 4.4.18 with IIS using JK2. It's been a struggle to get it to work, but I've now got everything working except I don't seem to have an iis_redirect.log file (or it's equivalent) despite setting logLevel = debug in the registry entries. Have I missed something or is there no such log file (or equivalent) with Tomcat 4x? Regards Roger - 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]
Mod_jk2 config
Hello, Is it possible to set the configuration of urls to be mapped down to tomcat programmatically, when application startsup or something similar to that ? I am also wondering if it's possible to map urls that should not be directed into tomcat. For example I would like all urls that map onto the pattern /* to be delivered with tomcat, but all that have endings such as *.jpg, *.gif, *.pdf, etc. to be deliverd with apache. Thanx, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query
Have you ever heard about the manual ? :) I don't think I have the time to explain in detail, but Apache is an HTTP server, and tomcat is a Servlet Container. Apache and tomcat are not made to do the same things, even though some of the things they do are very similar. You should be able to find something on that matter on the internet... Try www.google.com Hope it helps -reynir -Original Message- From: priya narayanan [mailto:[EMAIL PROTECTED]] Sent: 27. janúar 2003 10:46 To: [EMAIL PROTECTED] Subject: Query Q: Is there any difference between Apache and Tomcat server?please explain in detail. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help in URLEncoder.encode()
Hi, I suspect this migth be a problem due to charset-type. If you where using jdk 1.4.x you would have a way of setting the charset type of the url-encoding. This means you can tell the URLEncoder to use UTF-8 for example or ISO-8859-1 charset. Sample : String encodedval= URLEncoder.encode(some string with special chars 'þæö' and spaces ,ISO-8859-1); I think your application is encoding with one charset and decoding with another Default charsetis UTF-8 (unicode). Hope it helps -reynir -Original Message- From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 27. janúar 2003 12:45 To: [EMAIL PROTECTED] Subject: Help in URLEncoder.encode() Hi, I'm using URLEncoder.encode(data) to encode data to send to a servlet and things are working fine for english and other languages except for asian/CJK languages. When CJK data is encoded and decoded back, I'm getting only question marks (??). Any solution for this is appreciated. Its urgent. Thanks -Santosh __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null
Hi I'm using : Tomcat 4.1.18 IIS 5.1. (running on XP) JK2 (isapi_redirector2.dll) Jdk 1.4.1_1 I tried to set request.tomcatAuthentication=false In my jk2.properties. For some reason IIS does not authenticate the user, and when I ask for the user (on the first request) in a jsp document, with request.getRemoteUser() it returns null. Can anyone point me in the correct direction here ? I sent an email just before weekend, at that time I was trying to use the isapi_redirect(but not isapi_redirector2). I had similar problems at that time, and I was hoping configuring the new jk2 would solve that... Thanx - [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null
Hi, I've seem to have resolved this problem my self. It seems like it's due to the fact I was locking a subdirectory under IIS but not the whole host. If I lock the host I get the domainname\username from getRemoteUser(). Thanx anyways. -reynir -Original Message- From: Reynir Hübner Sent: 27. janúar 2003 14:06 To: Tomcat Users List Subject: Tomcat 4.1.18 - IIS - JK2 - getRemoteUser() returns Null Hi I'm using : Tomcat 4.1.18 IIS 5.1. (running on XP) JK2 (isapi_redirector2.dll) Jdk 1.4.1_1 I tried to set request.tomcatAuthentication=false In my jk2.properties. For some reason IIS does not authenticate the user, and when I ask for the user (on the first request) in a jsp document, with request.getRemoteUser() it returns null. Can anyone point me in the correct direction here ? I sent an email just before weekend, at that time I was trying to use the isapi_redirect(but not isapi_redirector2). I had similar problems at that time, and I was hoping configuring the new jk2 would solve that... Thanx - [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18/19 - How to activate gzip support?
No I was not telling you to use orion server, just to use the Tutorial, and it's code examples to implement the GZIP filter. I think that should be allright.. you should not have any license problems. -r -Original Message- From: Madhava Reddy [mailto:[EMAIL PROTECTED]] Sent: 25. janúar 2003 17:48 To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support? Reynir, It looks Orion is not open sourse and free.. What about license issues, if we want to use for commertial purpose? Madhav -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 25, 2003 3:28 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support? You could install a filter in your webapplication to do this. Check out the filter tutorials at www.orionserver.com Specifically this one : http://www.orionserver.com/tutorials/filters/5.html Hope it helps -reynir -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: 24. janúar 2003 23:33 To: 'Tomcat Users List' Subject: Tomcat 4.1.18/19 - How to activate gzip support? Hi, I'm currently using Tomcat 4.1.18 for my webapp quite successfully. Unfortunately one db output page is almost 60KB large (1/3 of it is only spaces and tabs) so I was thinking about trying Tomcat 4.1.19's new HTTP 1.1 gzip support. I installed 4.1.19 and my webapp is running again, but how to enable gzip support? My Mozilla supports gzip according to header infos. But how do I find out if my pages really got compressed? Mozilla's page info still says encoding=ISO... (although I'm not sure if this is because of the page content). Sorry, but I didn't see/feel any difference yet ;-) Did I forget something? Anyhow I wonder how to activate gzip for the connector? Shouldn't there be some kind of attribute in server.xml to set for Connector className=org.apache.coyote.tomcat4.CoyoteConnector... ? But I saw nothing in the documentation like enableGZIP=true. I also read that there was (is?) a filter servlet available somewhere to be used for on-the-fly gzip compression. Where can I get some more info how to obtain it and set it up, if I wouldn't use the http connector support? Any ideas about this. Michael -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.18/19 - How to activate gzip support?
You could install a filter in your webapplication to do this. Check out the filter tutorials at www.orionserver.com Specifically this one : http://www.orionserver.com/tutorials/filters/5.html Hope it helps -reynir -Original Message- From: mech [mailto:[EMAIL PROTECTED]] Sent: 24. janúar 2003 23:33 To: 'Tomcat Users List' Subject: Tomcat 4.1.18/19 - How to activate gzip support? Hi, I'm currently using Tomcat 4.1.18 for my webapp quite successfully. Unfortunately one db output page is almost 60KB large (1/3 of it is only spaces and tabs) so I was thinking about trying Tomcat 4.1.19's new HTTP 1.1 gzip support. I installed 4.1.19 and my webapp is running again, but how to enable gzip support? My Mozilla supports gzip according to header infos. But how do I find out if my pages really got compressed? Mozilla's page info still says encoding=ISO... (although I'm not sure if this is because of the page content). Sorry, but I didn't see/feel any difference yet ;-) Did I forget something? Anyhow I wonder how to activate gzip for the connector? Shouldn't there be some kind of attribute in server.xml to set for Connector className=org.apache.coyote.tomcat4.CoyoteConnector... ? But I saw nothing in the documentation like enableGZIP=true. I also read that there was (is?) a filter servlet available somewhere to be used for on-the-fly gzip compression. Where can I get some more info how to obtain it and set it up, if I wouldn't use the http connector support? Any ideas about this. Michael -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HttpServletResponse Caching
Check out OSCache from www.opensymphony.com They have some filters and jsp tags to implement cache, that I think may help yah. Hope it helps [EMAIL PROTECTED] -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: 23. janúar 2003 21:49 To: Tomcat Users List Subject: HttpServletResponse Caching I'm going to cache the response from a resource via a filter (WrappedHttpServletResponse). Currently I'm storing both the header information and the outputstream as a byte array. Should I be making accommodations for storing/rewriting header information, or is this something that automatically gets written into the outputstream at some point that I wouldn't need to do up proxy-type methods for caching when a resource calls setHeader(String, String) on the response? Best Regards, Jacob -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IIS - Tomcat authentication
Hi, I'm having problems with the most recent release of tomcat (4.1.18) and IIS authentication. I've been using the IIS scheme Windows Intergrated Authentication scheme for serveral applications. System description : Windows XP / IIS 5 / Tomcat 4.1.18 Problem description : I set up a host in IIS along with isapi_redirect.dll (not isapi_redirector2.dll) and configure the jakarta isapi filter to work. It works great. Then I create a virtual directory in IIS and a directory with the same name in the tomcat application. Then I configure this virtual directory in IIS to use Windows Intergrated Authentication (only). I open the url with a browser and I get a window querying me for my windows username / password (works fine). To be sure I'm not doing anything wrong I close all browser windows. I put a jsp page into the directory in tomcat, that looks like this : % out.write(\n brRemoteUser : + request.getRemoteUser()); out.write(\n brUserPrincipal : + request.getUserPrincipal()); out.write(\n brAuthType : + request.getAuthType()); % So this page should write on to the response few information about the user who just logged on. I open a new window, with the url pointing to this jsp file (let's say http://myhost/login/test.jsp;) and I log in again (via the Windows authentication), then I get response that looks like this : RemoteUser :null UserPrincipal :null AuthType :null It seems like the authentication is not being received in tomcat. I've been using this method for quite long time in intranet applications with out any problems, authenticating the RemoteUser (that has logged onto the IIS, via his domain account, or login window) against my applications. Can anyone point out what I am doing wrong ? Thanx [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Out of memory
Nate, to increase the memory for your tomcat-running as service in NT / win2k/winXP you must re-install the service. You probably have noticed that the service does not start the catalina.bat file but the tomcat.exe. You can uninstall the current service and install again by using tomcat.exe Go to c:\jakarta-tomcat-4-1-18\bin\ and execute tomcat.exe to do so, you will need some parameters (all in the same line): tomcat.exe -install Apache Tomcat 4.1 C:\java1_4_1\jre\bin\client\jvm.dll -Xmx512m -Djava.class.path=C:\jakarta-tomcat-4-1-18\bin\bootstrap.jar -Dcatalina.home=C:\jakarta-tomcat-4-1-18 -Djava.endorsed.dirs=C:\jakarta-tomcat-4-1-18\common\endorsed -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out C:\jakarta-tomcat-4-1-18\logs\stdout.log -err C:\jakarta-tomcat-4-1-18\logs\stderr.log Then for instructions you can always run tomcat -? Hope that helps. -reynir -Original Message- From: Nate [mailto:[EMAIL PROTECTED]] Sent: 22. janúar 2003 21:09 To: Tomcat Users List Subject: Tomcat Out of memory We are running Tomcat 4.0.6 on Windows 2000 server using JDK 1.4.0_01. Tomcat is set to run as a service. In our catalina.bat file we have set: JAVA_OPTS= -server -Xms512m -Xmx512m If I am not mistaken, this should start the VM in server mode, and allocate 512MB of memory for it to use. Our application gets an out of memory error when the vm has used about 64MB of memory, well short of what we have told it to use. Am I setting the JVM parameters in the right place, or is my syntax perhaps incorrect? When tomcat is run as a service, is the catalina.bat startup script even called? --Nate -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Weblogic MS SQLServer Driver
This is a tomcat mailing list, but I suspect you could talk with Datadirect technologies, that have been developing MSSQL drivers for a long time. They're MSSQL driver was used for the MsSQL2000 server, and is distributed for free (at microsofts website). http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml I've used the MS-SQL and also the datadirect (was Merant) driver and it's ok. [EMAIL PROTECTED] -Original Message- From: Pipho Matt [mailto:[EMAIL PROTECTED]] Sent: 21. janúar 2003 16:38 To: 'Tomcat Users List' Subject: Weblogic MS SQLServer Driver We are running Tomcat on Win2000 and trying to connect to a MS SQL Server. We are using Weblogic's JDBC Driver. We are running into a problem when we try to use it. The log file states the following error: Your WebLogic license file, named either WebLogicLicense.xml or WebLogicLicense.class must be located in a directory that is in your CLASSPATH. By default, your license file is located in the /license directory located in your WebLogic home directory (the root directory of your WebLogic installation). We ended up putting the weblogic/classes and weblogic/licence folders in the %CATALINA_HOME%/shared/classes folder since that is in the one of the folders in the Tomcat Class Loader List. Has anyone got this to work and are we putting this in the right class location. Thanks, Matt Pipho -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke
Well it's an exception thrown from the JDBC driver you are using. The error code is JZ006, I recommend you look it up in google.com. The first match I got was this one : http://webforums.sybase.com/nntp/nd41.nsf/85255e6f0052055e85255d7f005ed8bc/a2f5a11abbcec9a9376a775bd27d2bb2?OpenDocument Hope it helps -reynir -Original Message- From: Iván Escobedo [mailto:[EMAIL PROTECTED]] Sent: 21. janúar 2003 16:41 To: Tomcat Users List Subject: Help java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke Resending this message 'cause I deleted all the previous messages without seeing them Hello, I need to know what is this error, I'm using Tomcat, Sybase java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke n pipe at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java) at com.sybase.tds.Tds.language(Tds.java) at com.sybase.jdbc.SybStatement.sendQuery(SybStatement.java) at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java) at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java) at com.nacion.register.UserAccessFilter.ExecQuery(UserAccessFilter.java: 187) at com.nacion.register.UserAccessFilter.ValidAccess(UserAccessFilter.jav a:81) at com.nacion.register.UserAccessFilter.SaveUserAccess(UserAccessFilter. java:54) at com.nacion.register.UserAccessFilter.doFilter(UserAccessFilter.java:3 7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22 3) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:533) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Logging
Is it possible somehow to set the logger in tomcat (FileLogger) so that it will tell which application the exception happenes. My problem is this : I have a server running serveral virtual hosts, most running the same web-applications. When an exception is caused it gets stack-trace-printed to the standard out, but it's impossible for me to determine which application it happenes in. Is it possible to configure the FileLogger to display where it happenes ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Logging
Yes, thanx Yoav, I am in fact using Log4J for webapplication specific logging, with very good results. But sometimes exceptions occure where they should not occure (where they are not caught), and I get stacktraces printed out on to the tomcat console, but no information in wich application the problem happens, only what kind of error and in which class. Can I configure Log4J to take everything that is printed to stdout and apply a pattern to it and write out to a file ? I think I need a logger that grabbs everything that comes out on the stdout (console) and writes it out with log4j to a file, with a pattern. To clarify once more : I need logger that grabs unhandled exceptions written out to the console and checks which application or classloader they occure in, and gives me more informative information than just the stacktrace. Right now I'm looking at a way of developing such thing with log4j (of course) thanx -reynir -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 20. janúar 2003 16:13 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Logging Howdy, Here's one way: use log4j. Configure a file appender with some pattern that includes your hostname in the MDC. That's exactly the sort of thing MDC (Mapped Diagnostic Context) in log4j was designed for. For more details, see the PatternLayout and MDC class javadocs at http://jakarta.apache.org/log4j/docs/api/index.html If you have questions regarding usage of log4j, we'll be happy to help you on the log4j user mailing list ;) As an aside, I think tomcat already provides more than adequate logging capabilities for a servlet container. Tomcat is not a logging toolkit. That's why we have things like log4j ;) Combine these two best of breed solutions and you can enjoy a lot of benefits... Yoav Shapira Millennium ChemInformatics -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 11:13 AM To: Tomcat Users List Subject: RE: Logging I have been trying to do the same thing, unfortunately I have not found a way to make this happen yet. Brandon -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 9:59 AM To: Tomcat Users List Subject: Logging Is it possible somehow to set the logger in tomcat (FileLogger) so that it will tell which application the exception happenes. My problem is this : I have a server running serveral virtual hosts, most running the same web-applications. When an exception is caused it gets stack-trace-printed to the standard out, but it's impossible for me to determine which application it happenes in. Is it possible to configure the FileLogger to display where it happenes ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Logging
allright, how could I miss that.. Thanx man, -reynir -Original Message- From: Paul Yunusov [mailto:[EMAIL PROTECTED]] Sent: 20. janúar 2003 16:41 To: Tomcat Users List Subject: Re: Logging On Monday 20 January 2003 10:59 am, Reynir Hübner wrote: Is it possible somehow to set the logger in tomcat (FileLogger) so that it will tell which application the exception happenes. My problem is this : I have a server running serveral virtual hosts, most running the same web-applications. When an exception is caused it gets stack-trace-printed to the standard out, but it's impossible for me to determine which application it happenes in. Is it possible to configure the FileLogger to display where it happenes ? Thanx -reynir Reynir, Assuming your Tomcat version is 4.1.x, visit here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html then scroll down to Attributes-Standard Implementation and check swallowOutput out. HTH, Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Stream closed
I'm getting these kind of error messages : java.io.IOException: Stream closed at org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:95) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:182) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195) Does that mean tomcat cannot write to the HttpResponse ? My setup is tomcat 4.1.18 on a winXP system (no apache/IIS). What should I be looking at fixing ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Repost: Stream closed
For somereason the first time I sent this email it did not seem to get into the mailinglist. I'm getting these kind of error messages : java.io.IOException: Stream closed at org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:95) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:182) at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195) Does that mean tomcat cannot write to the HttpResponse ? My setup is tomcat 4.1.18 on a winXP system (no apache/IIS). What should I be looking at fixing ? Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tool for HTTP Request Stress Test
Jmeter is one from jakarta, (jakarta.apache.org/jmeter) Microsoft has a WebApplication stresstool that is quite good too (one of the best apps I've seen from M$). Hope it helps -reynir -Original Message- From: randie ursal [mailto:[EMAIL PROTECTED]] Sent: 17. janúar 2003 02:37 To: A mailing list about TOMCAT; A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. Subject: Tool for HTTP Request Stress Test Hi, can anyone suggest an HTTP Stress Test tool. coz i wanna stress test my web application which is deployed on Tomcat. thanks. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Virtual directories
Is there any way of specifying virtual directories in a host in tomcat with out using contexts ? I'm trying to define a folder with in my webapplication that is shared between web-apps, and I need requests to this folder to go through a request filter in the root-context, the filter authenticates the user making the request and handles it before it's chained on to the actual. I've tried to mark the contexts as cross-context but that did not help. I'm really trying to specify a apache style- virtual directory in the tomcat server, so if anyone knows a good way to do that, please share. Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet channing
Some people would recommend to you that you look into struts, which is an web-application framework. Servlet chaining in it's most simple way is a servlet that forwards the request to another servlet. This can be achived by using the RequestDispatcher, be aware that using the RequestDispatcher may slow your application down a little bit because (I've heard) it's not fully optimized in tomcat. I wrote servlet-chaining mechanism, it was not hard to do, so I recommend that if this is something you really think you need, you should write your own servlet chianing API. -reynir -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 18:29 To: Tomcat Users List Subject: Re: Servlet channing On Thu, 16 Jan 2003, nitin mandolkar wrote: Date: Thu, 16 Jan 2003 05:45:12 + (GMT) From: nitin mandolkar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Servlet channing How to achive servlet channing with tomcat Servlet chaining (in the manner you describe) is not supported by the servlet spec. However, you can accomplish something very similar using filters instead (Tomcat 4.x or later). Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet channing
I can of course only answer this for my self, but the main reason is Struts is an implementation of a specific pattern. When I started writing J2EE applications some time ago, struts was not fully grown. I had a pattern in my mind that I wanted to have an implementation of. The main thing in this pattern is the servlet chaining mechanism (btw, filters had not be introduced (to tomcat or other app servers) when I wrote this chaining mechanism). I have to admitt the fact that I have never used struts, and I have not really spent a lot of time on checking it out. The functionality I wanted in my servlet-chains is the ability to create streamlines, that have can have multiple starting nodes and an multiple stop nodes. This means I need to be able to build in some flow logic into the servlet chain mechanism, I can't see how that would be done with filters, at least not in the way I want. Each servlet in a chain has some specific purpouse such as determine the user who is logged on, determine some data that will be used in the presentation layer below the chain. If anyone has seen Intershops Enfinity Pipelines my application does similar things, in similar ways except less propriatary. So I think servlet chaining, struts and filters all describe sepperate patterns even though there isn't much difference between them. -reynir Ps. - Just saw your reply about barracuda, it's cool, I would say a different implementation of a similar functionality. -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 19:44 To: 'Tomcat Users List' Subject: RE: Servlet channing Instead of chaining servlets, why not look at filters, whose specific purpose is to work on a chain. There is even some talk of switching struts over from a servlet to a filter in a later release. Jacob | -Original Message- | From: Reynir Hübner [mailto:[EMAIL PROTECTED]] | Sent: Thursday, January 16, 2003 1:29 PM | To: Tomcat Users List | Subject: RE: Servlet channing | | Some people would recommend to you that you look into struts, which is an | web-application framework. | | Servlet chaining in it's most simple way is a servlet that forwards the | request to another servlet. This can be achived by using the | RequestDispatcher, be aware that using the RequestDispatcher may slow your | application down a little bit because (I've heard) it's not fully | optimized in tomcat. | | I wrote servlet-chaining mechanism, it was not hard to do, so I recommend | that if this is something you really think you need, you should write your | own servlet chianing API. | | -reynir | | | -Original Message- | From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] | Sent: 16. janúar 2003 18:29 | To: Tomcat Users List | Subject: Re: Servlet channing | | | | | On Thu, 16 Jan 2003, nitin mandolkar wrote: | | Date: Thu, 16 Jan 2003 05:45:12 + (GMT) | From: nitin mandolkar [EMAIL PROTECTED] | Reply-To: Tomcat Users List [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Subject: Servlet channing | | | How to achive servlet channing with tomcat | | Servlet chaining (in the manner you describe) is not supported by | the servlet spec. However, you can accomplish something very | similar using filters instead (Tomcat 4.x or later). | | Craig | | | | -- | To unsubscribe, e-mail: | mailto:tomcat-user- [EMAIL PROTECTED] | For | additional commands, | e-mail: mailto:[EMAIL PROTECTED] | | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Won't start on NT
There are many things that may be wrong. Try opening a command console, browse to the tomcat/bin directory and type in the following to start up tomcat : C:\ tomcat\bin\catalina run It will then try to start it self on the console and you should be able to see the error messages as the error happens. Hope it helps -reynir -Original Message- From: Raj [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 10:51 To: Tomcat Users List Subject: Tomcat Won't start on NT Hi, I installed Tomcat 4.1.17 on Win NT 4. Installation went through fine without any problems. Previously, I have installed JDK 1.3.0. When I started installing, it said Using JDK found in c:\jdk1.3. Then, when I click on StartProgram FilesApache GroupStart Tomcat, nothing happens. The Startconsole window comes up, stays for a second, and then vanishesIt is working on a different Win NT machine. What could be the problem? Thanks and regards, Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Won't start on NT
Catalina run (not catalina start). Read the catalina log (from your tomcat\logs\ directory). Often it's because you have an error in one of the configuration XML files or because there is something else running on the port you are trying to start tomcat on. Hope it helps -reynir -Original Message- From: Raj [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 11:43 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat Won't start on NT In Control PanelServices, Tomcat is Started. In the processes list, I can see Tomcat.exe, but it is not running because I can't view localhost:8080. I even tried reading the startup.bat file and figured out that it calls CATALINA.bat with a start option. So, I typed catalina start, but didn't work. - Original Message - From: Triptpal Singh Lamba [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 13, 2003 5:01 PM Subject: RE: Tomcat Won't start on NT Raj do a ctrl alt delete and tell us if tomcat the process is running or not. It is possible that you chose run as a system process while installing on NT. To do a double check run it as you are and then check http://localhost:portno/ If u see the page - it means tomcat is running as a background process and u need to make it not disappear. If not then tomcat could be throwing some expceptions which is the 2nd thing we will go for. Tript Singh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Won't start on NT
I suspect the same as stefán. No you can use 1.4. bu then you have to download the correct full version of tomcat (not the LE dist). http://apache.rhnet.is/dist/jakarta/tomcat-4/binaries/ Hope it helps -reynir -Original Message- From: Raj [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 12:33 To: Tomcat Users List Subject: Re: Tomcat Won't start on NT But can't I use JDK 1.3? Is it absolutely necessary to use 1.4? - Original Message - From: Stefán Freyr Stefánsson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 13, 2003 5:51 PM Subject: Re: Tomcat Won't start on NT I imagine that you have a problem with an XML parser definition. If you have JDK 1.4.x installed you might try to run tomcat using that JDK since it has a built in XML implementation. Regards, Stefan. On Monday 13 January 2003 12:03, Raj wrote: Hello Reynir, This is what I get. What could be wrong? C:\Program Files\Apache Group\Tomcat 4.1\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.3 Exception during startup processing java.lang.reflect.InvocationTargetException: javax.xml.parsers.FactoryConfigurat ionError: Provider null could not be instantiated: java.lang.NullPointerExceptio n at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at org.apache.commons.digester.Digester.getFactory(Digester.java:511) at org.apache.commons.digester.Digester.getParser(Digester.java:676) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) C:\Program Files\Apache Group\Tomcat 4.1\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Won't start on NT
Yeah... -Original Message- From: Raj [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 12:41 To: Tomcat Users List Subject: Re: Tomcat Won't start on NT You mean I can still use JDK 1.3? - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 13, 2003 6:04 PM Subject: RE: Tomcat Won't start on NT I suspect the same as stefán. No you can use 1.4. bu then you have to download the correct full version of tomcat (not the LE dist). http://apache.rhnet.is/dist/jakarta/tomcat-4/binaries/ Hope it helps -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Precompiling JSP
Hi, In my understanding it really only affects performance. The first request on a jsp always takes longer to execute because at that time it must precompile the jsp. If you run a precompiler (such as jspc) on the jsp pages before you start up the server (or at startup) you will shorten the time of response on the first request of a jsp page. If you are dealing with performance there are many other things that you might want to look at. I recommend the following page as a good material on this matter: http://www.javaperformancetuning.com/ Hope it helps [EMAIL PROTECTED] -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 13:23 To: [EMAIL PROTECTED] Subject: Precompiling JSP Is there any definitive advantage of precompiling JSPs' when tomcat server starts UP. Does this have any effect on performance? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Precompiling JSP
Hi again, Few tips : Use connection pooling, cache data from database if you can, lazyload data from database when that is a good idea etc. Creating connections to DB2 is not the fastest thing around, so I suspect connection pooling may take 2 seconds of that time. Hope it helps -reynir -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 13:48 To: Tomcat Users List Subject: RE: Precompiling JSP Thanks Reynir, This was exactly I was looking for. Our Jsp's are loading very slow. We are using JDBC connection to DB2/400 and our initial database has only about 10 records. It takes about 7 - 10 seconds for our JSP's to load. Hari -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 8:28 AM To: Tomcat Users List Subject: RE: Precompiling JSP Hi, In my understanding it really only affects performance. The first request on a jsp always takes longer to execute because at that time it must precompile the jsp. If you run a precompiler (such as jspc) on the jsp pages before you start up the server (or at startup) you will shorten the time of response on the first request of a jsp page. If you are dealing with performance there are many other things that you might want to look at. I recommend the following page as a good material on this matter: http://www.javaperformancetuning.com/ Hope it helps [EMAIL PROTECTED] -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: 13. janúar 2003 13:23 To: [EMAIL PROTECTED] Subject: Precompiling JSP Is there any definitive advantage of precompiling JSPs' when tomcat server starts UP. Does this have any effect on performance? Hari -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Default Content-Type in tomcat
Hi, Can I set the default Content-Type header for servlet/jsp responses somewhere or do I have to do it in my code ? This is because of a problem with the new SAFARI browser from apple. Thanx -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Debian packages
Ok...Thanx for your comment... -reynir -Original Message- From: Charles Baker [mailto:[EMAIL PROTECTED]] Sent: 12. janúar 2003 15:05 To: Tomcat Users List Subject: Re: Debian packages --- Reynir_Hübner [EMAIL PROTECTED] wrote: Has anyone created debian packages of tomcat 4.1.x ? Please inform me of where to find these if there are any available (I've only found some unstable packages). Thanx [EMAIL PROTECTED] That is one of the reasons I upgraded my machine to unstable. I've had few problems so far, and none related to tomcat and java. Of course the machine in question is not a mission critical server. YMMV. = [EMAIL PROTECTED] http://www.charleshbaker.com/~chb/ If you cannot in the long run tell everyone what you have been doing, your doing was worthless. -- Edwim Schrodinger __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: WEBL Deployment
Try posting to tomcat-user (not tomcat-dev) Try reading the manual at http://jakarta.apache.org/tomcat/ -Original Message- From: kamlesh thakur [mailto:[EMAIL PROTECTED]] Sent: 9. janúar 2003 11:19 To: [EMAIL PROTECTED] Subject: WEBL Deployment Sir, I am using your product Tomcat4.0 for a web application having the files like html's,JSP's,Servlets,webl. I have successfully deployed the files html's,JSP's and Servlets but got stuck with webl files used for extration from the web, as there is no documentation for the same.Please give me guidelines for deploying the webl files along with additional information like setting classpath for webl, files required by tomcat for running webls, modifications in web.xml file etc. Thanking you, sincerely, kamlesh -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
CoyoteAdapter An exception or error occurred ...
I am having some problems, when reading through the logfiles this is one of the exceptions I get : CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164) 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:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Does anyone know why this is cast, what can I do about it ? This is TC 4.1.14 in Windows2000 Thanx -reynir
Tc.4.1.17 filters-requestdispatch
Hi, I am testing the new release of TC no. 4.1.17 I am also testing a Filter, that checks the URL and params of the request and in some occations uses RequestDispatcher to redirect or forward the request to a jsp page, but other occations it just does chain.doFilter(req,resp). It works allright, except if I reload the page few times in a very short interval (f.ex. by holding down the F5 key on the keyboard using internet explorer) it at some point stops serving the response from the jsp, and serves empty pages, or nothing. I'm using tc. Standalone (no iis/apache), windows xp pro. Any ideas ? -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tc.4.1.17 filters-requestdispatch
Well the only linkage I have for tc 4.1.17 is that it works fine in tc 4.1.14. but causes error in 4.1.17. I think it has nothing to do with InternetExplorer (as I tried shutting it down and opening a new browser etc). Tomcat it self stops serving just about anything that goes through the filter, and why only in tc 4.1.17 but not 4.1.14 I don't know. Thanx anyways . -reynir -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: 18. desember 2002 15:05 To: 'Tomcat Users List' Subject: RE: Tc.4.1.17 filters-requestdispatch are you sure that IE is not getting confused? after all it has to close the socket and open a new connection for each reload. try jmeter - you can set the number of threads connecting to your app. Then use IE to request the same page and see if you get results while jmeter is running. Charlie -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 5:41 AM To: Tomcat Users List Subject: Tc.4.1.17 filters-requestdispatch Hi, I am testing the new release of TC no. 4.1.17 I am also testing a Filter, that checks the URL and params of the request and in some occations uses RequestDispatcher to redirect or forward the request to a jsp page, but other occations it just does chain.doFilter(req,resp). It works allright, except if I reload the page few times in a very short interval (f.ex. by holding down the F5 key on the keyboard using internet explorer) it at some point stops serving the response from the jsp, and serves empty pages, or nothing. I'm using tc. Standalone (no iis/apache), windows xp pro. Any ideas ? -reynir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
- mail tests AUBUCHON, KEVIN
Yes it works fine. Hope it helps -reynir -Original Message- From: AUBUCHON, KEVIN (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: 17. desember 2002 19:28 To: Tomcat Users List Subject: RE: File access from a servlet. test message - sorry -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 1:11 PM To: Tomcat Users List Subject: RE: File access from a servlet. -Original Message- From: Patrick Martz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: File access from a servlet. Ok well that's exactly the problem. getResourceAsStream requires you to supply the path of the resource and that is what I'm missing. I did a quick look at ServletContext and iterated through the attributes and found none that seemed to give me what I want. These are the attributes currently defined: org.apache.catalina.jsp_classpath javax.servlet.context.tempdir org.apache.catalina.resources org.apache.catalina.WELCOME_FILES None of which seems to be what I'm looking for...essentially something that will tell me the path of my current context so I can modify that path to access my data file. :) But the path is relative to the root of the context, so you don't need to know the path to the context, just where the file is within it. For example, if your file is actually in /usr/local/tomcat/webapps/myapp/data/blah.dta, you would call ServletContext.getResourceAsStream(/data/blah.dta). If you *really* want the path of the context root, you can use ServletContext.getRealPath(/) (or ServletContext.getRealPath(/data/blah.dta) to get the file's path) but that won't work with WARs, and shouldn't really be necessary. I just reread your message and realized that you said that the data is stored in the directory with the servlet class file. Maybe you can use getClass().getResourceAsStream(blah.dta)? -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 10:46 AM To: Tomcat Users List Subject: RE: File access from a servlet. -Original Message- From: Patrick Martz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 1:42 PM To: '[EMAIL PROTECTED]' Subject: File access from a servlet. Hi all. I'm currently working on a java servlet with tomcat and I want it to be able to load a different data file dependent on certain parameters passed to the servlet. The problem is that if I just try to open the file with the file name (i.e. FileInputStream fin = new FileInputStream(blah.dta);) it fails to find the file. I am guessing this is because the runtime directory is different from the directory the servlet is running in? (the data file and the servlet are in the same directory, but the servlet fails to find the file still). So my question is, is there a way to get the current runtime directory for Tomcat so that I can perhaps supply a relative path to get to the file and have the servlet be able to open it? Thanks! Patrick P.S. For debugging purposes I HAVE tested opening of the file from a stub class and it works just fine that way, but fails from the servlet. Rather than using FileInputStream, try ServletContext.getResourceAsStream. This is the preferred method for accessing files within your webapp. You pass in the path relative to the context root directory. An added bonus is that this will still work if you deploy your webapp as a WAR. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Se rvletConte xt.html#getResourceAsStream(java.lang.String) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]