Re: Abandoned Connections not removed
Hi Matt, read the fine manual, man: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES.txt ;) Adam On 10/17/2003 05:53 PM Matt Raible wrote: So I guess the question is - which version of DBCP ships with Tomcat 5.0.12? Thanks, Matt On 10/17/03 2:47 AM, Adam Hardy [EMAIL PROTECTED] wrote: On 10/17/2003 01:45 AM Matt Raible wrote: Is there a new release of DBCP that fixes this problem b/c currently these settings have no effect. I'm running JDK 1.4.2 on RedHat 9, Tomcat 5.0.12. My application is the open source Roller Weblogger. Hi Matt, I heard before, here I think, that someone had this issue with DBCP. However I see from bugzilla that the issue is resolved. There is a target date of 20 October for release 1.1 which contains the fix - although you can get rc1 now. I think the other one was a problem that crops up under heavy loads. Have you stress-tested it? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Meaning of entries in mod_jk.log
Hi, can anyone please explain me the meaning of following entries in my mod_jk.log? Attempting to map ... Why does mod_jk try to map something here? Are those outputs normal (For example /fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif does exist on my web server!) ? [Sat Oct 18 08:19:58 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif' [Sat Oct 18 08:19:58 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Oct 18 08:19:58 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Oct 18 08:19:58 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_flirter1.gif' [Sat Oct 18 08:19:58 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_luzy.gif' [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_flirtheart1.gif' [Sat Oct 18 08:19:59 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Thx and best regards Volker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaMail Session JNDI Resource and Authentication
Hi Andreas, I'm planning on implementing this at some point soon too so I thought I'd have a look to see what's up. I googled on javamail.providers and your message here was one of the results that came up first! Anyway, I couldn't find anything descriptive of your problem, but a couple of ideas spring to mind: are you accessing the server via a proxy server / firewall? Also are you using send() or sendMessage()? Check this one: http://java.sun.com/products/javamail/FAQ.html#connectsend Another question to ask: are you using SSL to authenticate when you shouldn't? Or vice-versa? Adam On 10/16/2003 12:26 PM Andreas Schildbach wrote: Hello everyone, I am trying to set up a JavaMail Session JNDI Resource to an SMTP server that requires authentication. In the JavaMail documentation I could not find how to supply a password in the Session Properties. However, I found a few Google references to mail.smtp.password and mail.password. I tried both, but each time I get an javax.mail.AuthenticationFailedException. I am using Tomcat 4.1.27 and JavaMail 1.3.1 (JAF 1.02). OS: Windows XP Can anyone help me find my error, please? Here is the debug output from JavaMail: DEBUG: JavaMail version 1.3.1 DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.2\jre\lib\javamail.providers (The system cannot fi nd the file specified) DEBUG: !anyLoaded DEBUG: not loading resource: /META-INF/javamail.providers DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPOR T,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mai l.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Stor e=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]} DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStor e,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Micros ystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsyste ms, Inc]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: !anyLoaded DEBUG: not loading resource: /META-INF/javamail.address.map DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.2\jre\lib\javamail.address.map (The system cannot find the file specified) DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Su n Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth true And here is the resource definition in my server.xml: Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameternamemail.debug/namevaluetrue/value/parameter parameternamemail.transport.protocol/namevaluesmtp/value/parameter parameternamemail.smtp.host/namevaluemyserver/value/parameter parameternamemail.smtp.port/namevalue25/value/parameter parameternamemail.smtp.auth/namevaluetrue/value/parameter parameternamemail.smtp.user/namevaluemyusername/value/parameter parameternamemail.smtp.password/namevaluemypassword/value/parameter /ResourceParams -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page directive ignored
Hello I have tomcat 4.1.27 RedHat 9 Sun jdk 1.4.2_01 Mozilla Firebird 0.7 here is the snippet from my web.xml servlet servlet-nameGeneralErrorServlet/servlet-name servlet-classcom.silkroad.srm.GeneralErrorServlet/servlet-class /servlet servlet-mapping servlet-nameGeneralErrorServlet/servlet-name url-pattern/generalerror/url-pattern /servlet-mapping error-page exception-typejava.lang.Throwable/exception-type location/generalerror/location /error-page . here is the snippet from a servlet that is located in this web application . TreeMap attrs=null; Stack steps=null; attrs.get(something); .. this code obviusly throws NPE, but tomcat ignores it and instead of dispatching to GeneralErrorServlet StackTrace is displayed in the browser. The resource did not process correctly java.lang.NullPointerException at com.silkroad.srm.CreateMessageServlet.processRequest(CreateMessageServlet.java:63) at com.silkroad.srm.CreateMessageServlet.doGet(CreateMessageServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.silkroad.commons.filters.ActionFilter.doFilter(ActionFilter.java:170) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.silkroad.srm.filters.IPFilter.doFilter(IPFilter.java:159) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.silkroad.commons.filters.EncodingFilter.doFilter(EncodingFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:534) I have a question: is this because of a filter that is applied to this servlet?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: error-page directive ignored
The location of the error page must be a real page and not a servlet. (But a jsp will work too) With tomcat5 (actually servlet api 2.4), your error page can be a servlet. -Tim Vano Beridze wrote: Hello I have tomcat 4.1.27 RedHat 9 Sun jdk 1.4.2_01 Mozilla Firebird 0.7 here is the snippet from my web.xml servlet servlet-nameGeneralErrorServlet/servlet-name servlet-classcom.silkroad.srm.GeneralErrorServlet/servlet-class /servlet servlet-mapping servlet-nameGeneralErrorServlet/servlet-name url-pattern/generalerror/url-pattern /servlet-mapping error-page exception-typejava.lang.Throwable/exception-type location/generalerror/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo
Hi all, I am running tomcat-5.0.12 on a win2k machine with j2sdk1.4.2, I just recently downloaded the jakarta-taglibs-standard-1.1.0-B1 and I copied the jar files (jstl.jar, standard.jar) into tomcats common/lib directory, plus I copied the following tlds into my WEB-INF: core.tld,x.tld,fmt.tld. I also updated my web.xml to reflect these new tags, but I keep getting the error message below when try to access the page. Any help??? in my jsp page: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % in my web.xml: taglib taglib-urihttp://java.sun.com/jsp/jstl/fmt/taglib-uri taglib-location/WEB-INF/fmt.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jsp/jstl/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jsp/jstl/x/taglib-uri taglib-location/WEB-INF/x.tld/taglib-location /taglib exception message exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:577) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:437) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:295) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:460) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625) org.apache.jasper.compiler.Parser.parse(Parser.java:173) org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
RE: Tomcat + IIS 6.0
Yes it does work, however you will need to register jakarta_redirector2.dll with IIS 6.0 to prevent the lock down. Cheers, Matt -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Saturday, 18 October 2003 7:17 a.m. To: Tomcat Users List (E-mail) Subject: Tomcat + IIS 6.0 Hey, What's the story on Tomcat + IIS 6.0 and AJP connectors? Does this scenario work or not? I've seen scattered throughout the net where noone can get this to work. Can somebody just tell me yes or no, this does or does not work? Justin W. Hart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server caching servlet response problem.
Well, I set the debug to 99 and didn't get any error messages. I don't see how a bad mapping could cause this. There's nothing in the servlet that's caching. The only cache I have is the database connection. I am using Velocity, but I wouldn't think that would cause this. Here's my mappings: servlet servlet-namePageCalendar/servlet-name servlet-classPageCalendar/servlet-class load-on-startup6/load-on-startup /servlet servlet-mapping servlet-namePageMaker/servlet-name url-pattern/servlet/PageMaker/url-pattern /servlet-mapping servlet-mapping servlet-namePageMill/servlet-name url-pattern/servlet/PageMill/url-pattern /servlet-mapping servlet-mapping servlet-namePageMill/servlet-name url-pattern/site/*/url-pattern /servlet-mapping servlet-mapping servlet-nameMediaMill/servlet-name url-pattern/servlet/MediaMill/url-pattern /servlet-mapping servlet-mapping servlet-namePageSpider/servlet-name url-pattern/servlet/PageSpider/url-pattern /servlet-mapping servlet-mapping servlet-namePageEmail/servlet-name url-pattern/servlet/PageEmail/url-pattern /servlet-mapping servlet-mapping servlet-namePageCalendar/servlet-name url-pattern/servlet/PageCalendar/url-pattern /servlet-mapping The one in question is the /site/* mapping. But like I said before it also happens when I use jsp:forward in my index.jsp. I'm really at a loss on why this is happening. Anymore suggestions? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 - Forwarded by Justin A Stanczak/VUMAIL on 10/18/2003 10:34 PM - Justin A Stanczak 10/17/2003 02:23 PM To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Server caching servlet response problem. Ok, I'll do that. It's definitely possible that I've messed that up. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Shapira, Yoav [EMAIL PROTECTED] 10/17/2003 02:12 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Server caching servlet response problem. Howdy, This behavior or something similar will happen if you have an illegal url-pattern mapping. The servlet specification defines four legal types of url-pattern mapping: you can read the details in the spec. I would also set debug=99 for your Host/Engine so you can see what mappings the container is trying for your requests. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:55 PM To: Tomcat Users List Subject: RE: Server caching servlet response problem. That's what I thought. You say that, but I don't see any errors. For example, I have a servlet that's accessed by using /Myapp/servlet/MyServlet. This works and shows the updated version every time. As soon as the change is made you can refresh the browser and the changes show up. But I also added a mapping to that same servlet using /Myapp/map/*. When you access the servlet this way you get the first response and from that time on you only get that response. If you change the information it just keeps showing the last responses information. If you then access the servlet using /Myapp/servlet/MyServlet it show the changes. But the other mapping will never change it just keeps showing the same response. I also get the same type of problem using jsp forwarding. Can you tell me what I should start looking for? The logs don't show any problems that I can see. Any suggestions? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Shapira, Yoav [EMAIL PROTECTED] 10/17/2003 08:05 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Server caching servlet response problem. Howdy, Tomcat doesn't cache servlet responses. It's that simple. The behavior you're seeing is most likely explained by an error in the your servlet: check the server logs. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 7:54 PM To: [EMAIL PROTECTED] Subject: Server caching servlet response problem. I'm running a Tomcat 5 on Solaris 9. For some reason the server keeps caching my responses. What happens is the first time I access my servlet using a certain mapping the server caches that response and never updates again. I have two instances of this. One is with a mapping to a servlet using this pattern /SoftwareName/servlet/site/* the other is when I forward from a jsp page to a servlet using the jsp:forward tag. Both of these methods cache the first response and that's what's send for every response. Even if I go to a