Re: Locked jar during Ant undeploy on Tomcat 5.5.3
On Wed, 13 Oct 2004 21:38:00 + (UTC), Derek Mahar [EMAIL PROTECTED] wrote: Shapira, Yoav Yoav.Shapira at mpi.com writes: I should mention that originally, I did not have antiJARLocking enabled, but enabling both antiJARLocking and antiResourceLocking does not appear to have made any difference. This works for me. I don't find you convincing at all, overall. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IndexOutOfBound Exception?
I'm not sure it this is the right place but I'm trying I have a problem. I am trying to use Crystal Report to show reports in my webapp using Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the project to a standalone Tomcat server, I get the following error: 13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR com.crystaldecisions.reports.reportengineinterface - Exception occured while processing getTotaller request java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source) at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source) at com.crystaldecisions.reports.totaller.c.n.do(Unknown Source) at com.crystaldecisions.reports.totaller.c.y.init(Unknown Source) at com.crystaldecisions.reports.totaller.c.ak.a(Unknown Source) at com.crystaldecisions.reports.totaller.c.c.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source) at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.if(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.d.j.do(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.Engine.getGroupTree(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getTotaller(Unknown Source) at com.crystaldecisions.report.web.viewer.ReportAgent.else(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at org.apache.jsp.showReport_jsp._jspx_meth_crviewer_viewer_0(showReport_jsp.java:128) at org.apache.jsp.showReport_jsp._jspService(showReport_jsp.java:78) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at
Re: IndexOutOfBound Exception?
On Thu, 14 Oct 2004 08:37:35 +0200, Bjørn T Johansen [EMAIL PROTECTED] wrote: I'm not sure it this is the right place but I'm trying I have a problem. I am trying to use Crystal Report to show reports in my webapp using Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the project to a standalone Tomcat server, I get the following error: 13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR com.crystaldecisions.reports.reportengineinterface - Exception occured while processing getTotaller request java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source) at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source) The issue seems to be occurring deep in the application code. It will be tough to debug, since this is all obsfucated stuff :/ -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IndexOutOfBound Exception?
hello, I am sorry but I can't help you with your problem. However, I would like to know if you succeed to make tomcat 5 work with JBuilder. I am trying to do it but JBuilder still try to use a tomcat 4 class which create error. So if you could help me I will appriciate. Thank you Regards Doud On Thu, 14 Oct 2004 08:37:35 +0200, Bjørn T Johansen [EMAIL PROTECTED] wrote: I'm not sure it this is the right place but I'm trying I have a problem. I am trying to use Crystal Report to show reports in my webapp using Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the project to a standalone Tomcat server, I get the following error: 13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR com.crystaldecisions.reports.reportengineinterface - Exception occured while processing getTotaller request java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source) at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source) at com.crystaldecisions.reports.totaller.c.n.do(Unknown Source) at com.crystaldecisions.reports.totaller.c.y.init(Unknown Source) at com.crystaldecisions.reports.totaller.c.ak.a(Unknown Source) at com.crystaldecisions.reports.totaller.c.c.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source) at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.if(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.d.j.do(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.Engine.getGroupTree(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getTotaller(Unknown Source) at com.crystaldecisions.report.web.viewer.ReportAgent.else(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at org.apache.jsp.showReport_jsp._jspx_meth_crviewer_viewer_0(showReport_jsp.java:128) at org.apache.jsp.showReport_jsp._jspService(showReport_jsp.java:78) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
Re: IndexOutOfBound Exception?
Well, I am using JBuilder 2005, so Tomcat 5 is included... :) BTJ Edouard Dalla-Costa wrote: hello, I am sorry but I can't help you with your problem. However, I would like to know if you succeed to make tomcat 5 work with JBuilder. I am trying to do it but JBuilder still try to use a tomcat 4 class which create error. So if you could help me I will appriciate. Thank you Regards Doud On Thu, 14 Oct 2004 08:37:35 +0200, Bjørn T Johansen [EMAIL PROTECTED] wrote: I'm not sure it this is the right place but I'm trying I have a problem. I am trying to use Crystal Report to show reports in my webapp using Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the project to a standalone Tomcat server, I get the following error: 13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR com.crystaldecisions.reports.reportengineinterface - Exception occured while processing getTotaller request java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source) at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source) at com.crystaldecisions.reports.totaller.c.n.do(Unknown Source) at com.crystaldecisions.reports.totaller.c.y.init(Unknown Source) at com.crystaldecisions.reports.totaller.c.ak.a(Unknown Source) at com.crystaldecisions.reports.totaller.c.c.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source) at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.if(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.d.j.do(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.Engine.getGroupTree(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getTotaller(Unknown Source) at com.crystaldecisions.report.web.viewer.ReportAgent.else(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at org.apache.jsp.showReport_jsp._jspx_meth_crviewer_viewer_0(showReport_jsp.java:128) at org.apache.jsp.showReport_jsp._jspService(showReport_jsp.java:78) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at
Resin slower than Tomcat, fails the AppFuse Test
So now you know! http://raibledesigns.com/page/rd/20041007#resin_slower_than_tomcat_fails - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActiveDirectory realm
Hi! I have tried to read the arcives about how to create an realm that uses Active Directory as source but all questions that seems to fit me has no answers. I need to be able to authenticate my users and authroize them in my jsp-code (eg: request.isUserInRole ). So, what libraries do I need to add? What should I write in my server.xml-file. The structure of the AD is com.mydomain/Users/JoeDoe (when looking in the gui-console). Can I use form-based authentication? Please do not refer to the LDAP mumbo-jumbo but rather use gui-elements from the AD-console if there are anything you want me to find out about our settings. Thank you in advance Roland Carlsson Sent using the Microsoft Entourage 2004 for Mac Test Drive. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
It is still in development so not dead by any means. It's only a couple of months since 2.04. I'm using it without problems and shall keep doing so until a better alternative becomes available. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 00:27 To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? Boy am I confused now. If mod_jk2 is dead, so what is everyone using? Still using just the first mod_jk? I had just gotten everythign working with mod_jk2 - more or less- but configurationwise mod_jk2 is a pain since the syntax was completely changed and requires you to map every nook and cranny. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where is Catalina.out
Are you running tomcat as a service? -Original Message- From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 03:00 To: [EMAIL PROTECTED] Subject: where is Catalina.out Does anyone know why I can not find Catalina.out file under logs directory? I followed steps to install Tomcat 5.0.28 and there is no changes made to tomcat. Please advise Thanks Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About Japanese Mobile container(AU)
Hi to all, I am developing a mobile app. for AU mobile . I am using Tomcat server.In web.xml I set the mime type mime-mapping extension3g2/extension mime-typeaudio/3gpp2/mime-type /mime-mapping for xxx.3g2 audio files.When I am accessing from real device it is getting error and saying not valid. I am accessing from a .jsp page below object data=http:///%=music_file_name% type=audio/3gpp2 standby=#12480;#12454;#12531;#12525;#12540;#12489;(%= kbSize%kb) param name=size value=%=music_file_size% valuetype=data / param name=title value=%=music_name% valuetype=data / param name=disposition value=devmpzz valuetype=data / param name=checkout value=1 valuetype=data / /object Can anybody suggest me where I am doing a mistake? Any help is fine for me. Thanks in advance -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where is Catalina.out
No, I run tomcat by executing startup.bat. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:52 PM To: Tomcat Users List Subject: RE: where is Catalina.out Are you running tomcat as a service? -Original Message- From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 03:00 To: [EMAIL PROTECTED] Subject: where is Catalina.out Does anyone know why I can not find Catalina.out file under logs directory? I followed steps to install Tomcat 5.0.28 and there is no changes made to tomcat. Please advise Thanks Fred - 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 Ready/Recommended For Production?
From a security point of view, leaving tomcat hanging out there is one tier less a malicious person would be faced with hacking...three tiers is a nice simple security solution. $0.02. On Wed, 13 Oct 2004, Peng Tuck Kwok wrote: Date: Wed, 13 Oct 2004 11:59:28 +0800 From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: mod_jk2 Ready/Recommended For Production? Do you really need to put apache in front of tomcat ? Standalone tomcat (since ver 4.x) has always been pretty good in terms of performance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
live disable realm
Hello ! I'd like to solve this problem : My webapp is defined with a realm X. When the webapp starts, the realm is not available (break down somewhere ...). How can I dynamicly say to my webapp to use the realm Y without change the Context declaration ? Thank., regards, Arnaud
Re: ActiveDirectory realm
Roland Carlsson wrote: Hi! I have tried to read the arcives about how to create an realm that uses Active Directory as source but all questions that seems to fit me has no answers. I need to be able to authenticate my users and authroize them in my jsp-code (eg: request.isUserInRole ). So, what libraries do I need to add? What should I write in my server.xml-file. The structure of the AD is com.mydomain/Users/JoeDoe (when looking in the gui-console). Can I use form-based authentication? Please do not refer to the LDAP mumbo-jumbo but rather use gui-elements from the AD-console if there are anything you want me to find out about our settings. ADS serves two major services: LDAP and Kerberos5 GSSAPI. It would be nice to be able to use GSSAPI, but currently, Tomcat cannot do it. Apache can, so maybe that's the way - using Apache as a frontend via mod_jk2. The basic structure would require web server, Apache or Tomcat, to be introduced as a web server into the ADS, giving it a Kerberos service key. Clients, IE or Mozilla, can use GSSAPI, if the user has been authenticated to the ADS (ADS Domain Controller is also a Kerberos KDC). For Apache, you can use mod_kerbauth or something like that (there is mod_gssapi, also). Tomcat doesn't have a server-side GSSAPI authentication module. It should be possible to write a filter for that purpose, but noone has done it, yet. Java does have all that is needed to use Kerberos in JAAS. It's just that someone has to write it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where is Catalina.out
I've got no ideas then, i've never had this problem. -Original Message- From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 10:03 To: Tomcat Users List Subject: RE: where is Catalina.out No, I run tomcat by executing startup.bat. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:52 PM To: Tomcat Users List Subject: RE: where is Catalina.out Are you running tomcat as a service? -Original Message- From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 03:00 To: [EMAIL PROTECTED] Subject: where is Catalina.out Does anyone know why I can not find Catalina.out file under logs directory? I followed steps to install Tomcat 5.0.28 and there is no changes made to tomcat. Please advise Thanks Fred - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sv: ActiveDirectory realm
Hi Nikola! Thank you for your answer. Am I reading you correctly? Can't I use Active Directory today to Authenticate and Authorize people in my Tomcat-server without write a server-side GSSAPI? Isn't it possible through LDAP to do this? I have no need for SingleSignOn etc. If we didn't already have had a AD directory I should have used a database-realm. Thank you in advance Roland Carlsson Den 04-10-14 11.24, skrev Nikola Milutinovic [EMAIL PROTECTED]: Hi! I have tried to read the arcives about how to create an realm that uses Active Directory as source but all questions that seems to fit me has no answers. I need to be able to authenticate my users and authroize them in my jsp-code (eg: request.isUserInRole ). So, what libraries do I need to add? What should I write in my server.xml-file. The structure of the AD is com.mydomain/Users/JoeDoe (when looking in the gui-console). Can I use form-based authentication? Please do not refer to the LDAP mumbo-jumbo but rather use gui-elements from the AD-console if there are anything you want me to find out about our settings. Sent using the Microsoft Entourage 2004 for Mac Test Drive. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About Japanese Mobile container(AU)
Quite possibly because you have % % in your audio file. I think % % only works in jsp files so your variables never get substituted. If you want to do this, get a servlet to generate it instead, see if it works. On Thu, 14 Oct 2004 17:02:42 +0800, Maneesh sharma [EMAIL PROTECTED] wrote: Hi to all, I am developing a mobile app. for AU mobile . I am using Tomcat server.In web.xml I set the mime type mime-mapping extension3g2/extension mime-typeaudio/3gpp2/mime-type /mime-mapping for xxx.3g2 audio files.When I am accessing from real device it is getting error and saying not valid. I am accessing from a .jsp page below object data=http:///%=music_file_name% type=audio/3gpp2 standby=#12480;#12454;#12531;#12525;#12540;#12489;(%= kbSize%kb) param name=size value=%=music_file_size% valuetype=data / param name=title value=%=music_name% valuetype=data / param name=disposition value=devmpzz valuetype=data / param name=checkout value=1 valuetype=data / /object Can anybody suggest me where I am doing a mistake? Any help is fine for me. Thanks in advance -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze - 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 Ready/Recommended For Production?
Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. rgds Antony Paul On Thu, 14 Oct 2004 04:41:53 -0400 (EDT), Alex [EMAIL PROTECTED] wrote: From a security point of view, leaving tomcat hanging out there is one tier less a malicious person would be faced with hacking...three tiers is a nice simple security solution. $0.02. On Wed, 13 Oct 2004, Peng Tuck Kwok wrote: Date: Wed, 13 Oct 2004 11:59:28 +0800 From: Peng Tuck Kwok [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], Peng Tuck Kwok [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: mod_jk2 Ready/Recommended For Production? Do you really need to put apache in front of tomcat ? Standalone tomcat (since ver 4.x) has always been pretty good in terms of performance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat email system or analogs for it
Hi! I am wondering, how to send emails from Tomcat? As I understand, Tomcat has'nt native J2EE JavaMail API support. Then what kind of libraries I should use to get email support? I saw some emailing projects in sendbox, but its not in production quality. Then JAMES maybe? I have no access to the server where Tomcat is installed, so I need to give exact information to server admin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sv: ActiveDirectory realm
Roland Carlsson wrote: Hi Nikola! Thank you for your answer. Am I reading you correctly? Can't I use Active Directory today to Authenticate and Authorize people in my Tomcat-server without write a server-side GSSAPI? Isn't it possible through LDAP to do this? I have no need for SingleSignOn etc. If we didn't already have had a AD directory I should have used a database-realm. The answer is not so simple. It depends on what you actually want to do. And, yes, you can use LDAP. I believe there is a LDAP realm sample in Tomcat's docs. Authentication is done via an authentication mechanism. The web knows several mechanisms - protocols between web server and web client: - Basic: user/pass is sent in HTTP headers, Base64 encoded - Digest: digest algorithm (MD5?) is used, with pass as shared secret - Certificate: SSL is used and client-side certificate identifies user - Negotiate: a.k.a. SPNEGO, Kerberos tickets are used to authenticate - Custom: some systems offered Krb tickets in cookies Now, Basic is simple and can be relayed, in other words, the web server can stand in between a client and authentication service, like SQL database, LDAP directory, locally stored user/pass, etc. Digest is, AFAIK, not relayable, since the server MUST have a copy of the shared secret (password) in order to check the digest of the returned token. Token is created by the server, sent to the client, who makes a digest, using password as salt and returns it to the server. For that reason Digest authentication requires server to have it's own plaintext storage of user credentials. Certificate is fine, if you have them and can make an effort to maintain the certificate infrastructure (which is no simple task). Negotiate has come into the picture with the advance of MS ADS, since it uses Kerberos as a primary authentication mechanism. In this setup all servers offering some service (SMTP, IMAP4, HTTP) must be registered with the Kerberos KDC (Key Distribution Center), where a Kerberos service key will be issued to that service. In case of HTTP, the key principal is for instance HTTP/[EMAIL PROTECTED]. If a user logs onto ADS, that user will get a TGT token from KDC and will be issued a ticket for the HTTP service on *that* server. Server will check the token and client will check server's return token, so, in a tripple handshake, both server and client will be sure whom they are talking about. What this amounts to is that with Kerberos setup, you have a secure authentication mechanism (Kerberos encrypts auth traffic) and the actual authentication is performed in one place - the KDC. This is known as SingleSignOn - you log onto the network, not particular service. With LDAP you can get close to this. Yes, user credentials are in one place, the ADS. Users will have to type their user/pass, unlike in Kerberos setup. Yes, it is the same user/pass as the one used to log onto ADS. So far, so good. But, no, Basic authentication mech (the only one left, since Digest and others are non-applicable) does not offer any encryption. And users have to type user/pass for every realm. Of course, you can run BASIC(via LDAP) over SSL, but that has a CPU power price to it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat email system or analogs for it
http://www.google.com/search?hl=enq=java+mailbtnG=Google+Search On Thu, 2004-10-14 at 07:09, aleksej wrote: Hi! I am wondering, how to send emails from Tomcat? As I understand, Tomcat has'nt native J2EE JavaMail API support. Then what kind of libraries I should use to get email support? I saw some emailing projects in sendbox, but its not in production quality. Then JAMES maybe? I have no access to the server where Tomcat is installed, so I need to give exact information to server admin. - 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 email system or analogs for it
Do you want an e-mail server or just send an e-mail. To send e-mail use JavaMail. As far as Tomcat is concerned, you can bind a mail session to Tomcat JNDI tree and retrieve it to send mail. I JavaMail API jar is bundled with Tomcat at common\lib\mail.jar. Look at the server.xml and JNDI Resources How to in tomcat-docs for an example. rgds Antony Paul On Thu, 14 Oct 2004 14:09:09 +0300, aleksej [EMAIL PROTECTED] wrote: Hi! I am wondering, how to send emails from Tomcat? As I understand, Tomcat has'nt native J2EE JavaMail API support. Then what kind of libraries I should use to get email support? I saw some emailing projects in sendbox, but its not in production quality. Then JAMES maybe? I have no access to the server where Tomcat is installed, so I need to give exact information to server admin. - 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 email system or analogs for it
Very strange, I have 5.0.27 installed and there is no mail.jar in its standart instaliation. :/ Do you want an e-mail server or just send an e-mail. To send e-mail use JavaMail. As far as Tomcat is concerned, you can bind a mail session to Tomcat JNDI tree and retrieve it to send mail. I JavaMail API jar is bundled with Tomcat at common\lib\mail.jar. Look at the server.xml and JNDI Resources How to in tomcat-docs for an example. rgds Antony Paul On Thu, 14 Oct 2004 14:09:09 +0300, aleksej [EMAIL PROTECTED] wrote: Hi! I am wondering, how to send emails from Tomcat? As I understand, Tomcat has'nt native J2EE JavaMail API support. Then what kind of libraries I should use to get email support? I saw some emailing projects in sendbox, but its not in production quality. Then JAMES maybe? I have no access to the server where Tomcat is installed, so I need to give exact information to server admin. - 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: [OT] conflicting jars
(I've marked the subject off-topic, as your question has little to do with Tomcat itself.) On Wed, Oct 13, 2004 at 08:20:43PM -0700, Prajakta Nivargi wrote: : So there is a conflich between these two jars. Compiling Rei with the new version of Jena is not possible as Rei is a third party package which is precompiled with its version of Jena. Downgrading Jena is not desired as I need features that this version supports. This is a classic case third-party version skew. You have to decide which is more important to you: using Rei, or using the new features of Jena. If the two products' classes conflict in any way, you're out of luck. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sv: Sv: ActiveDirectory realm
Ok, so I can use LDAP to Authenticate and Authorize my users via AD. There are no problem with them having to write there credentials again, there are other solutions for that. About security we have to use SSL anyway so I'll guess that it will solve the problem. I'm trying with the following but get no information from the logs if there actually are any activity going on... Or if there are anything wrong. But I can't login. :-/ Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://[server ip] userBase=CN=Users,dc=yage,dc=com userSearch=(userPrincipalName={0}) userRoleName=member roleBase=CN=Users,dc=yage,dc=com roleName=cn roleSearch=(member={0}) connectionName=CN=[username],CN=Users,DC=yage,DC=com connectionPassword=[password] roleSubtree=true userSubtree=true / (Adapted to our situation here (ipnumber, password, domain etc ) Thank you in advance Roland Carlsson Den 04-10-14 13.24, skrev Nikola Milutinovic [EMAIL PROTECTED]: Roland Carlsson wrote: Hi Nikola! Thank you for your answer. Am I reading you correctly? Can't I use Active Directory today to Authenticate and Authorize people in my Tomcat-server without write a server-side GSSAPI? Isn't it possible through LDAP to do this? I have no need for SingleSignOn etc. If we didn't already have had a AD directory I should have used a database-realm. The answer is not so simple. It depends on what you actually want to do. And, yes, you can use LDAP. I believe there is a LDAP realm sample in Tomcat's docs. Authentication is done via an authentication mechanism. The web knows several mechanisms - protocols between web server and web client: - Basic: user/pass is sent in HTTP headers, Base64 encoded - Digest: digest algorithm (MD5?) is used, with pass as shared secret - Certificate: SSL is used and client-side certificate identifies user - Negotiate: a.k.a. SPNEGO, Kerberos tickets are used to authenticate - Custom: some systems offered Krb tickets in cookies Now, Basic is simple and can be relayed, in other words, the web server can stand in between a client and authentication service, like SQL database, LDAP directory, locally stored user/pass, etc. Digest is, AFAIK, not relayable, since the server MUST have a copy of the shared secret (password) in order to check the digest of the returned token. Token is created by the server, sent to the client, who makes a digest, using password as salt and returns it to the server. For that reason Digest authentication requires server to have it's own plaintext storage of user credentials. Certificate is fine, if you have them and can make an effort to maintain the certificate infrastructure (which is no simple task). Negotiate has come into the picture with the advance of MS ADS, since it uses Kerberos as a primary authentication mechanism. In this setup all servers offering some service (SMTP, IMAP4, HTTP) must be registered with the Kerberos KDC (Key Distribution Center), where a Kerberos service key will be issued to that service. In case of HTTP, the key principal is for instance HTTP/[EMAIL PROTECTED]. If a user logs onto ADS, that user will get a TGT token from KDC and will be issued a ticket for the HTTP service on *that* server. Server will check the token and client will check server's return token, so, in a tripple handshake, both server and client will be sure whom they are talking about. What this amounts to is that with Kerberos setup, you have a secure authentication mechanism (Kerberos encrypts auth traffic) and the actual authentication is performed in one place - the KDC. This is known as SingleSignOn - you log onto the network, not particular service. With LDAP you can get close to this. Yes, user credentials are in one place, the ADS. Users will have to type their user/pass, unlike in Kerberos setup. Yes, it is the same user/pass as the one used to log onto ADS. So far, so good. But, no, Basic authentication mech (the only one left, since Digest and others are non-applicable) does not offer any encryption. And users have to type user/pass for every realm. Of course, you can run BASIC(via LDAP) over SSL, but that has a CPU power price to it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent using the Microsoft Entourage 2004 for Mac Test Drive. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loading in tomcat 5.0
On Thu, Oct 14, 2004 at 06:13:59AM +0200, Narayan, Satya wrote: : I have a doubt regarding class loading in tomcat 5.0 . Is it different from tomcat 4.0 ? Compare the classloader docs for the two versions and see. It's been a while since I've used Tomcat 4, but my guess is that if you stick with the standard locations (WEB-INF/lib, common/lib, etc.) then you should be fine. : Can I hav an order of class loading within a folder ? I'm not sure what this means. Are you trying to control which jar is loaded first in the classpath? What are you trying to do? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: live disable realm
On Thu, Oct 14, 2004 at 11:14:52AM +0200, Boulay Arnaud wrote: : My webapp is defined with a realm X. : When the webapp starts, the realm is not available (break down somewhere ...). : How can I dynamicly say to my webapp to use the realm Y without change the Context declaration ? I don't think this is possible. Let's look at the root cause: why is Realm X not available on app startup? You may have to make your Realm source more robust, e.g. look into failover/clustering/etc. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat email system or analogs for it
On Thu, Oct 14, 2004 at 02:44:20PM +0300, aleksej wrote: : Very strange, I have 5.0.27 installed and there is no mail.jar in its : standart instaliation. :/ I believe that's SOP for Tomcat. You can download the JavaMail JARs from java.sun.com. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
administration webapp
Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sv: Sv: ActiveDirectory realm
Roland Carlsson wrote: Ok, so I can use LDAP to Authenticate and Authorize my users via AD. There are no problem with them having to write there credentials again, there are other solutions for that. About security we have to use SSL anyway so I'll guess that it will solve the problem. I'm trying with the following but get no information from the logs if there actually are any activity going on... Or if there are anything wrong. But I can't login. :-/ I've never done it myself. Try to break things up into smaller pieces - test LDAP from a standalone client, see if that connection URL and DN work at all. There are plenty of LDAP clients, OpenLDAP on UNIX, they have tons of links to other tools. There is a Java client as well on their site. Also, search the mailing list archive. There wre problems like yours reported before. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP doesn't see .jar in context ???
Hi, I am trying to use the DriverAdapterCPDS in DBCP. When I run my eclipse app standalone to test my class, the cpds.setDriver(strDriver); function works Running your app in an IDE is not the same as running it standalone, and means you're subject to whatever classpath the IDE assigns. However, When I kick off tomcat, my classpath is set to Bootstrap.jar (and As the Classloader how-to explains, there are numerous different classpaths within Tomcat. The Bootstrap classpath is not related to your app classpath, and should not contain DBCP or any DB driver jars. I know this can be solved by putting my driver .jar file in the tomcat/common/lib directory, but I would prefer not to do that. I would prefer to have all my project related .jar files in WEB-INF/lib. Then you must put DBCP there as well, and configure it yourself. The DBCP jar and the DB driver jar should be in the same classloader repository. Is there a way to change the classpath dynamically? Only if you write your own custom classloader and plug it into Tomcat. But that's more trouble than it's worth usually. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat email system or analogs for it
Hi, We're not legally allowed to distribute the JavaMail (and its dependency Java Activation Framework) APIs. So we don't ;) But we provide support for them as explained in the Mail Sessions section at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.htm l. Yoav Shapira http://www.yoavshapira.com -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 8:03 AM To: Tomcat Users List Subject: Re: Tomcat email system or analogs for it On Thu, Oct 14, 2004 at 02:44:20PM +0300, aleksej wrote: : Very strange, I have 5.0.27 installed and there is no mail.jar in its : standart instaliation. :/ I believe that's SOP for Tomcat. You can download the JavaMail JARs from java.sun.com. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: live disable realm
Hi, On Thu, Oct 14, 2004 at 11:14:52AM +0200, Boulay Arnaud wrote: : My webapp is defined with a realm X. : When the webapp starts, the realm is not available (break down somewhere ...). : How can I dynamicly say to my webapp to use the realm Y without change the Context declaration ? I don't think this is possible. It's possible. You'd have to write a bit of Tomcat-specific code, namely: - Walk down the container hierarchy to your Context, - Create and initialize your new Realm (Realm Y in the above text) - Call YourContext.setRealm(Realm Y) - Et voila... But as I said, the code is Tomcat-specific. It also has to reside in common/lib or common/classes, not WEB-INF/lib or WEB-INF/classes. And it might be that you need to set privileged=true in your Context declaration for this to work. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with web.xml error-page not invoking servlet filter
Hi, I think this is according to the spec. It took us a while to sort this out, and several consultations with the JSP Spec leads. It's related to those new filter mapping types defined in Spec version 2.4. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Rick Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:14 PM To: Tomcat Users List Subject: Problem with web.xml error-page not invoking servlet filter Hi, I am using Tomcat 5. In my application, my web.xml declares a filter, and a global error page error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page By examining the call stack in my error page JSP, I notice that when this error page is invoked, my filter is not called. However, if I define %@ page errorPage=/error.jsp % in my JSP file, my filter is invoked (and as a part of the call stack). Is this a Tomcat bug? Or does this behavior conform with the Servlet 2.4 spec? Thanks, -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing subdomains to different web applications??
Hi, One way to do to this is declare a separate host Host for containers.mydomain.com than the one for www.mydomain.com in server.xml. The two Hosts would each have their own appBase directory, and you can put whatever (different) webapps you want in those directories. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:06 PM To: [EMAIL PROTECTED] Subject: pointing subdomains to different web applications?? Hi there, still looking through various news groups for the answer, but figured this was the best place. I have a number fo domains and subdomains on my system. They are set up properly on the server to be house in different information bays. What I want to know is, how do I configured tomcat to recognise say.. containers.mydomain.com and point it to a different web application to the one that www.mydomain.com points to? Is this even possible in tomcat? If it is, I would imagine it's a pretty simple answer, so hopefully someone there can help me out. Thanks in advance Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Resin slower than Tomcat, fails the AppFuse Test
Hi, Cool. Thanks for posting the link. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andy Hutchinson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:19 AM To: [EMAIL PROTECTED] Subject: Resin slower than Tomcat, fails the AppFuse Test So now you know! http://raibledesigns.com/page/rd/20041007#resin_slower_than_tomcat_fail s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: live disable realm
Ok merci beaucoup Yoav !!! QM, I agree with you that code MUST be clear,efficient and stable but a Realm can use and external resource (that's the aim ;-) and if that resource is out of order, the webapp could automaticly switch to an another one and garantees a continued service. Regards, Arnaud Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: jeu. 14/10/2004 14:56 : Tomcat Users List Cc: Objet: RE: live disable realm Hi, On Thu, Oct 14, 2004 at 11:14:52AM +0200, Boulay Arnaud wrote: : My webapp is defined with a realm X. : When the webapp starts, the realm is not available (break down somewhere ...). : How can I dynamicly say to my webapp to use the realm Y without change the Context declaration ? I don't think this is possible. It's possible. You'd have to write a bit of Tomcat-specific code, namely: - Walk down the container hierarchy to your Context, - Create and initialize your new Realm (Realm Y in the above text) - Call YourContext.setRealm(Realm Y) - Et voila... But as I said, the code is Tomcat-specific. It also has to reside in common/lib or common/classes, not WEB-INF/lib or WEB-INF/classes. And it might be that you need to set privileged=true in your Context declaration for this to work. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context file
Hi, We have an installation program that installs our application on a tomcat server. I haven't build this installation program but I it's on my shoulders now to fix it. When the program runs a context file is generated for each application and is placed under the folder [TOMCAT_HOME]/conf/Catalina/localhost. After this, the application is deployed via the manager (http://localhost/manager?deploy...). When the application is initialized it reads some parameters from the context file with getInitParameter() but it always returns null and we get a null pointer exception and the deployment terminates. If we then restart the server all the parameters are read and everything works ok. So my question is: It seems that we can't put the context file in the folder and then deploy the application, is that correct? Is there any other way to fix this without having the parameters in web.xml or deploy the application with the context file bundled with the war? Thanks in advance /Kax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi, I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. For me, it's pretty trivial. Download Tomcat .zip, expand. Edit conf/tomcat-users.xml with Notepad, add roles for manager/admin, and a user with those roles. Start Tomcat. And it works. I just did it again from scratch before typing this message. I'd be careful not to use international characters in your user name and role names. Don't modify the Realm definition initially either. But other than that, I don't know what else to check, this is a trivial thing usually ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loading in tomcat 5.0
I'd hazard a guess that your answer is no. The way in which the JVM loads classes is documented here: http://java.sun.com/docs/books/vmspec/2nd-edition/html/ConstantPool.doc.html good luck reading this! How about writing 2 (one's a copy) classes CalledClass.java, CalledClass.java and CallingClass.java to find out? Andoni. - Original Message - From: QM [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Thursday, October 14, 2004 12:56 PM Subject: Re: Class loading in tomcat 5.0 On Thu, Oct 14, 2004 at 06:13:59AM +0200, Narayan, Satya wrote: : I have a doubt regarding class loading in tomcat 5.0 . Is it different from tomcat 4.0 ? Compare the classloader docs for the two versions and see. It's been a while since I've used Tomcat 4, but my guess is that if you stick with the standard locations (WEB-INF/lib, common/lib, etc.) then you should be fine. : Can I hav an order of class loading within a folder ? I'm not sure what this means. Are you trying to control which jar is loaded first in the classpath? What are you trying to do? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE??: live disable realm
On Thu, Oct 14, 2004 at 03:26:04PM +0200, Boulay Arnaud wrote: : QM, I agree with you that code MUST be clear,efficient and stable but a Realm can use and external resource (that's the aim ;-) and if that resource is out of order, the webapp could automaticly switch to an another one and garantees a continued service. I see your point; but I prefer to solve problems at their source. =) If a realm's resource is out of order then I see the code-level fix as more of a bandage than a solution. At least there's a choice in how to fix it. Once again, Perl's motto of TIMTOWDI holds true. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.0.29 service start problem (JNI)
Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet caching?
Do servlets in Tomcat (1.4) catch results of programs that they run? I have a java servlet that lists the print services of printers installed in the server (Linux Red Hat). I run the servlet before and after I install a couple of printers in the server; however, the list of printer services does not change until I restart Tomcat. At the same time, I run a test program in the server from the command line to list the print services and this program lists the newly installed printers right away. This has led me to believe that the servlet is caching the list of printer services when it is run the first time and does not re-run the code until Tomcat has been re-started. Thanks in advance for your response.
Re: administration webapp
Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=express/ role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users Andoni. - Original Message - From: Michael Simpson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - 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: Servlet caching?
It sounds like one of the classes the Servlet is depending on is caching the result. -Tim Carlos wrote: Do servlets in Tomcat (1.4) catch results of programs that they run? I have a java servlet that lists the print services of printers installed in the server (Linux Red Hat). I run the servlet before and after I install a couple of printers in the server; however, the list of printer services does not change until I restart Tomcat. At the same time, I run a test program in the server from the command line to list the print services and this program lists the newly installed printers right away. This has led me to believe that the servlet is caching the list of printer services when it is run the first time and does not re-run the code until Tomcat has been re-started. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 Ready/Recommended For Production?
On Thu, 2004-10-14 at 05:56, Antony Paul wrote: Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. But if you run tomcat standalone, you have to run tomcat as root. Apache does not run as root, so if you run Apache in front of tomcat, you can avoid exposing the root account. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet caching?
Hi, The servlets by themselves do what you tell them to: you wrote them, after all ;) Tomcat doesn't provide any caching of response content by itself without special effort or configuration on your behalf. As Tim said, my guess is a utility class used by your servlet is doing the caching for the printer services list. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Carlos [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:43 AM To: Tomcat-User ([EMAIL PROTECTED]) Subject: Servlet caching? Do servlets in Tomcat (1.4) catch results of programs that they run? I have a java servlet that lists the print services of printers installed in the server (Linux Red Hat). I run the servlet before and after I install a couple of printers in the server; however, the list of printer services does not change until I restart Tomcat. At the same time, I run a test program in the server from the command line to list the print services and this program lists the newly installed printers right away. This has led me to believe that the servlet is caching the list of printer services when it is run the first time and does not re-run the code until Tomcat has been re-started. Thanks in advance for your response. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:41 AM To: 'Tomcat Users List' Subject: tomcat 5.0.29 service start problem (JNI) Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: mod_jk2 Ready/Recommended For Production?
Hi But if you run tomcat standalone, you have to run tomcat as root. NO. There are ways to run tomcat using jsvc and others. Search the archive - I haven't done so myself yet. Apache does not run as root, so if you run Apache in front of tomcat, you can avoid exposing the root account. And opening a lot of other possible security issues. Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Tomcat 5.0.28 Shutdown problem
Hi! My system: Tomcat 5.0.28 on Fedora Core 2. Server Startup is normal. However, during shutdown looks like there is a problem in shutting Coyote down...It takes a bit more than 3 minutes till it throws exception and dies. Here is the log: - Oct 11, 2004 12:00:16 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Oct 11, 2004 12:03:25 AM org.apache.coyote.tomcat5.CoyoteConnector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.init(Socket.java:365) at java.net.Socket.init(Socket.java:207) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:46 0) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272) at org.apache.jk.server.JkMain.pause(JkMain.java:657) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202) at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java: 1444) at org.apache.catalina.core.StandardService.stop(StandardService.java:52 1) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347 ) at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) at org.apache.catalina.startup.Catalina.start(Catalina.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /struts-examples Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /struts-mailreader Oct 11, 2004 12:03:26 AM org.apache.struts.webapp.example.memory.MemoryDatabaseP lugIn destroy INFO: Finalizing memory database plug in Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /webdav Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /jsp-examples Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /struts-documentation Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /tiles-documentation Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /manager Oct 11, 2004 12:03:26 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /admin Oct 11, 2004 12:03:27 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost Oct 11, 2004 12:03:27 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /servlets-examples Oct 11, 2004 12:03:27 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /balancer Oct 11, 2004 12:03:27 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /struts-blank Oct 11, 2004 12:03:27 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /tomcat-docs Oct 11, 2004 12:03:27 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Oct 11, 2004 12:03:27 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost Oct 11, 2004 12:03:27 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger Oct 11, 2004 12:03:27 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080
Help with mod_jk2
Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Hi, I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. I have checked the windows site with their latest security updates. My guess is something to do with that coz I have been running with this configuration for almost an year now and never had any problem Thanks shyam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:41 AM To: 'Tomcat Users List' Subject: tomcat 5.0.29 service start problem (JNI) Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat command line arguments
Hey I give the following command to start Tomcat version 5 with a CATALINA_BASE different to the default one: ./startup.sh -Dcatalina.base=/some/dir/that/exists But it fails to pass the argument, what am I doing wrong? Cheers Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
Dangerous. You should run tomcat as a non-root user, no login, no shell. The reason Apache is involved is because we want Apache to serve static pages. -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 9:58 AM To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? On Thu, 2004-10-14 at 05:56, Antony Paul wrote: Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. But if you run tomcat standalone, you have to run tomcat as root. Apache does not run as root, so if you run Apache in front of tomcat, you can avoid exposing the root account. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e85e7242988496385758!
RE: Sun J2SE JVM + tomcat + Debian??
Sorry, but what is jsvc? -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 1:47 AM To: Tomcat Users List Subject: Re: Sun J2SE JVM + tomcat + Debian?? Hi! Just to add some info: I've found some problem with Debian Woody + Sun 1.4.2 JDK... at least Tomcat 5 started up from jsvc fail at File.mkdirs (more info on http://www.mail-archive.com/[EMAIL PROTECTED]/msg131293.html and http://issues.apache.org/bugzilla/show_bug.cgi?id=30177)... These problems doesn't exist on Debian versions others than Woody (to solve that, you should compile jsvc with -lpthread, so, I think it is a Debian Woody libc + Sun JVM only issue)... Horacio Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) -- El éxito debe medirse, no por la posición a la que ha llegado una persona, sino por su esfuerzo por triunfar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e12e9194121820423095!
RE: mod_jk2 Ready/Recommended For Production?
Yes for static, but what about port 80? John Dangerous. You should run tomcat as a non-root user, no login, no shell. The reason Apache is involved is because we want Apache to serve static pages. -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 9:58 AM To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? On Thu, 2004-10-14 at 05:56, Antony Paul wrote: Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. But if you run tomcat standalone, you have to run tomcat as root. Apache does not run as root, so if you run Apache in front of tomcat, you can avoid exposing the root account. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e85e7242988496385758! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
Just a simple questions, then an answer. If you are front-ending Tomcat with a web server, why are you passing things like .html, .gif, .jpg, etc. to Tomcat to process? The web server itself is a bit more efficient in handling this content. Secondly, what web server front end are you using? On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my workers, I set URI matching in my Apache Virtual Hosts Config; Add something similar to the following for each vhost (copy pasts is a wonderful thing). VirtualHost myhost.com:80 ... Location /*.jsp JkUriSet worker ajp13:localhost:8201 /Location Location /*.do JkUriSet worker ajp13:localhost:8201 /Location Location /servlet/* JkUriSet worker ajp13:localhost:8201 /Location Location /servlets/* JkUriSet worker ajp13:localhost:8201 /Location Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:08 AM To: Tomcat Users List Subject: Help with mod_jk2 Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! John - 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 Ready/Recommended For Production?
I have been using mod_jk2 for a long time now. I have no idea why so many people dislike it (well, after they get it compiled that is). I might just be blessed in that I run on win2k servers and can just get the binary for mod_jk2. I have never had to deal with the pain of compiling this thing. It is working great for me on a rather busy little cluster of servers. --Angus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 7:27 PM To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? Boy am I confused now. If mod_jk2 is dead, so what is everyone using? Still using just the first mod_jk? I had just gotten everythign working with mod_jk2 - more or less- but configurationwise mod_jk2 is a pain since the syntax was completely changed and requires you to map every nook and cranny. John - 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 Ready/Recommended For Production?
If you want access to some of apaches more advanced features, yup, you need apache infront of tomcat. --Angus -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 11:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: mod_jk2 Ready/Recommended For Production? Do you really need to put apache in front of tomcat ? Standalone tomcat (since ver 4.x) has always been pretty good in terms of performance On Tue, 12 Oct 2004 22:07:34 -0400, Mike Millson [EMAIL PROTECTED] wrote: The Tomcat FAQ page still says that mod_jk is great and should be used for production and mod_jk2 may not be production worthy for everyone. http://jakarta.apache.org/tomcat/faq/connectors.html#vs Is this still accurate, or is mod_jk2 now ready/recommended for production? Thank you, Mike - 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: administration webapp
Hi Andoni Yoav. Tried what Andoni recommended - no joy. From the documentation, inorder to access admin and manager webapp the user must have those respective roles. I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. Tried Yoav's suggestion of defining rolenames for admin and manager - no joy. I agree with you Yoav - it is a trivial thing, but it's not working. A couple of questions: a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? b) which file can I look in to check $CATALINA_HOME? Thanks. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 14:43 To: Tomcat Users List Subject: Re: administration webapp Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=express/ role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users Andoni. - Original Message - From: Michael Simpson [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp Hi Yoav. I actually tried that bit of code before - tried again just now and still does not work. Error generated is Invalid username or password. Anything else I can check? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 13:50 To: Tomcat Users List Subject: RE: administration webapp Hi, This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users So the express user has the admin and manager roles, but those roles are not defined. Add two lines to the file, role rolename=manager / role rolename=admin / Restart Tomcat, and try again. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###EXN2004### _ Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Email communications may be monitored ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat command line arguments
At 15:15 14/10/2004, you wrote: Hey I give the following command to start Tomcat version 5 with a CATALINA_BASE different to the default one: ./startup.sh -Dcatalina.base=/some/dir/that/exists But it fails to pass the argument, what am I doing wrong? Set the environment variable CATALINA_OPTS instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - 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: administration webapp
Hi, I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. What I said is not to comment out the Realm or modify it at all. The Realm and encryption are not one and the same. You must have a Realm to authenticate for the manager and admin webapps. a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? Generally no. But also generally, at the beginning you should turn off Apache and just work with Tomcat standalone, especially for basic issues like this. b) which file can I look in to check $CATALINA_HOME? It's a variable setting, it's not in a file. Check your environment variables to see if it's set specifically. If it's not set, Tomcat will deduce it as the parent directory above the bin directory. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sun J2SE JVM + tomcat + Debian??
Find out jsvc. It's new, not in 4.1. Why don't you use startup.sh instead? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 10:16 AM To: 'Tomcat Users List' Subject: RE: Sun J2SE JVM + tomcat + Debian?? Sorry, but what is jsvc? -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 1:47 AM To: Tomcat Users List Subject: Re: Sun J2SE JVM + tomcat + Debian?? Hi! Just to add some info: I've found some problem with Debian Woody + Sun 1.4.2 JDK... at least Tomcat 5 started up from jsvc fail at File.mkdirs (more info on http://www.mail-archive.com/[EMAIL PROTECTED]/msg131293.html and http://issues.apache.org/bugzilla/show_bug.cgi?id=30177)... These problems doesn't exist on Debian versions others than Woody (to solve that, you should compile jsvc with -lpthread, so, I think it is a Debian Woody libc + Sun JVM only issue)... Horacio Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) -- El éxito debe medirse, no por la posición a la que ha llegado una persona, sino por su esfuerzo por triunfar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e8abf247361853017648!
Re: Resin slower than Tomcat, fails the AppFuse Test
+1 Shapira, Yoav wrote: Hi, Cool. Thanks for posting the link. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andy Hutchinson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:19 AM To: [EMAIL PROTECTED] Subject: Resin slower than Tomcat, fails the AppFuse Test So now you know! http://raibledesigns.com/page/rd/20041007#resin_slower_than_tomcat_fail s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class loading in tomcat 5.0
Hi , Thanks a lot for your help. What I want to achieve is control the way jars are loaded. I want to load a particular jar(say X.jar) before another jar(say Y.jar) . Can this be achieved ? Thanks and Regards, Satya -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 05:27 PM To: Tomcat Users List Subject: Re: Class loading in tomcat 5.0 On Thu, Oct 14, 2004 at 06:13:59AM +0200, Narayan, Satya wrote: : I have a doubt regarding class loading in tomcat 5.0 . Is it different from tomcat 4.0 ? Compare the classloader docs for the two versions and see. It's been a while since I've used Tomcat 4, but my guess is that if you stick with the standard locations (WEB-INF/lib, common/lib, etc.) then you should be fine. : Can I hav an order of class loading within a folder ? I'm not sure what this means. Are you trying to control which jar is loaded first in the classpath? What are you trying to do? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Remy Maucherat remy.maucherat at gmail.com writes: On Wed, 13 Oct 2004 21:38:00 + (UTC), Derek Mahar dmahar at penson.ca wrote: Shapira, Yoav Yoav.Shapira at mpi.com writes: I should mention that originally, I did not have antiJARLocking enabled, but enabling both antiJARLocking and antiResourceLocking does not appear to have made any difference. This works for me. I don't find you convincing at all, overall. Then I'll just have to be more convincing. Note that in the following scenario, I deployed and then undeployed in two distinct operations. The first deploy was successful. I then ran my application, terminated the session by invoking tag session:invalidate/ in taglibs-session.jar, invoked an undeploy, which Ant/Tomcat reports as successful, and then attempted a deploy, which Ant/Tomcat reports as failed. I found that Tomcat removed context file billing.xml and billing.war, but left behind taglibs-session.jar and the billing work folder. See details and additional commentary below. Contents of context file billing.xml and billing:logout tag are at the very end. - Initial deploy is successful: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest ant deploy Buildfile: build.xml prepare: compile: distribute: deploy: [echo] Deploy URL: file:/C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest/output/distribution/billing.war [deploy] OK - Deployed application at context path /billing BUILD SUCCESSFUL Total time: 4 seconds -- Undeploy is OK: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest ant undeploy Buildfile: build.xml undeploy: [undeploy] OK - Undeployed application at context path /billing BUILD SUCCESSFUL Total time: 2 seconds -- Second deploy fails: C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest ant deploy Buildfile: build.xml prepare: compile: distribute: deploy: [echo] Deploy URL: file:/C:\Documents and Settings\dmahar\My Projects\Billing\Develop\Latest/output/distribution/billing.war [deploy] OK - Undeployed application at context path /billing [deploy] FAIL - Application already exists at path /billing BUILD SUCCESSFUL Total time: 3 seconds -- File billing.war is gone: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webappsdir Volume in drive C is IBM_PRELOAD Volume Serial Number is 18AD-A9AE Directory of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps 10/14/2004 10:31 AMDIR . 10/14/2004 10:31 AMDIR .. 10/06/2004 10:53 AMDIR balancer 10/14/2004 10:31 AMDIR billing 10/06/2004 10:53 AMDIR jsp-examples 10/08/2004 04:34 PMDIR penson 10/08/2004 04:34 PM 618,204 penson.war 10/06/2004 10:53 AMDIR ROOT 10/06/2004 10:53 AMDIR servlets-examples 10/06/2004 10:53 AMDIR tomcat-docs 10/06/2004 10:53 AMDIR webdav 1 File(s)618,204 bytes 10 Dir(s) 28,620,529,664 bytes free -- Context file billing.xml is gone: C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina dir /s /b localhost C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\admin.xml C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\manager.xml C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\penson.xml -- JAR taglibs-session.jar remains: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing dir /s /b C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF\lib C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\billing\WEB-INF\lib\taglibs-session.jar -- Work folder billing also remains along with all the JSP files and classes. Notice that I accessed only the Login page, the MainMenu page, some tags, and the logout page, including the logout tag which invokes session:invalidate/ to invalidate the session. C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhostdir /s /b billing C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\billing\org C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\billing\SESSIONS.ser C:\Program Files\Apache Software Foundation\Tomcat
RE: Class loading in tomcat 5.0
Hi, What I want to achieve is control the way jars are loaded. I want to load a particular jar(say X.jar) before another jar(say Y.jar) . Can this be achieved ? Only be putting X.jar in a repository that has higher priority than Y.jar. Within the same repository, you can't control loading order. For what repositories are available to you and their priority from the webapp's perspective, RTFM on the Classloader How-To. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
Hi James. This is from the Digest documentation: The value for this attribute must be one of the digest algorithms supported by the java.security.MessageDigest class (SHA, MD2, or MD5). Tried it with MD5 and the digest param commented out - no joy. Yoav: bear with me, but how would I check the environment variable? Thanks. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 15:35 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: administration webapp In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.x with Oracle OCI connection-Error
Any Idea..below is my prev post.may be i'm missing reply if any one did so Hi., I'm using OCI to connect the oracle8.x from my Tomcat. After some period of time tomcat get lost the DataBase Connection. I'm getting this two errors. ORA-03113: end-of-file on communication channel , ORA-03114: not connected to ORACLE If I restart the tomcat its working fine.Is there a way to setup autoRecconect or such parameter to eastablish the connection. Please help me out to resolve this problem. Thanks., MALAI - ALL-NEW Yahoo! Messenger - all new features - even more fun!
RE: tomcat 5.0.29 service start problem (JNI)
From: shyam [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 5.0.29 service start problem (JNI) I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
On Thu, 14 Oct 2004 14:54:52 + (UTC), Derek Mahar [EMAIL PROTECTED] wrote: Remy Maucherat remy.maucherat at gmail.com writes: On Wed, 13 Oct 2004 21:38:00 + (UTC), Derek Mahar dmahar at penson.ca wrote: Shapira, Yoav Yoav.Shapira at mpi.com writes: I should mention that originally, I did not have antiJARLocking enabled, but enabling both antiJARLocking and antiResourceLocking does not appear to have made any difference. This works for me. I don't find you convincing at all, overall. Then I'll just have to be more convincing. Note that in the following scenario, I deployed and then undeployed in two distinct operations. The first deploy was successful. I then ran my application, terminated the session by invoking tag session:invalidate/ in taglibs-session.jar, invoked an undeploy, which Ant/Tomcat reports as successful, and then attempted a deploy, which Ant/Tomcat reports as failed. I found that Tomcat removed context file billing.xml and billing.war, but left behind taglibs-session.jar and the billing work folder. See details and additional commentary below. Contents of context file billing.xml and billing:logout tag are at the very end. The only thing I am willing to look at is a ready to run WAR. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
Run it as a daemon then you can run it as a non root user with permissions on port 80 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 15:20 To: Tomcat Users List Subject: RE: mod_jk2 Ready/Recommended For Production? Yes for static, but what about port 80? John Dangerous. You should run tomcat as a non-root user, no login, no shell. The reason Apache is involved is because we want Apache to serve static pages. -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: October 14, 2004 9:58 AM To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? On Thu, 2004-10-14 at 05:56, Antony Paul wrote: Do you mean Apache dont have any security holes. I dont know about hacking a system. But in terms of security Tomcat is far better than Apache since it dont have any security vulnerabilities. But if you run tomcat standalone, you have to run tomcat as root. Apache does not run as root, so if you run Apache in front of tomcat, you can avoid exposing the root account. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:416e85e7242988496385758! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to redirect http to https automatically?
This is part of the servlet specs. In your WEB-INF/web.xml file, you need a security constraint that says the site should be secure, something like: security-constraint web-resource-collection web-resource-nameEntire site/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint The confidential keyword ensures that the webapp will require https, so if you try to get it via http, then the redirect stuff specifed in your server.xml will be applied. David - Original Message - From: Won Sim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:13 AM Subject: How to redirect http to https automatically? I set redirectPort attribute to 443, which is my SSL connector port number, from port 80 connector in the server.xml. This doesn't redirect http to https automatically. In other words, I still can access the application via http://server/myapp. I want to know how to redirect http to https automatically so when I enter http://server/myapp, Tomcat redirects to htts://server/myapp. I am using Tomcat 4.1.30. Thanks in advance. Won. _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
Some random stuff: Only use either antiJARLocking or antiResourceLocking. Never both. Also, on your Context element, remove debug, path, and docBase, which are either gone, or are rundundant data. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySQL driver randomly not found?
Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL driver randomly not found?
Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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: MySQL driver randomly not found?
Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve. java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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 e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locked jar during Ant undeploy on Tomcat 5.5.3
The only thing I am willing to look at is a ready to run WAR. I'd be happy to send it to you if it was mine to send, but it belongs to my employer. Plus, the database connections would all fail. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context file
I solved the problem. I was ok to put the context file in tomcat before the war file as long as you deployed the context file and war file together like this: http://localhost:8080/manager/deploy?config=file:/path/context.xmlwar=jar:file:/path/bar.war!/ /Kax From: kax [EMAIL PROTECTED] Date: 2004/10/14 to PM 01:29:55 GMT To: [EMAIL PROTECTED] Ämne: context file Hi, We have an installation program that installs our application on a tomcat server. I haven't build this installation program but I it's on my shoulders now to fix it. When the program runs a context file is generated for each application and is placed under the folder [TOMCAT_HOME]/conf/Catalina/localhost. After this, the application is deployed via the manager (http://localhost/manager?deploy...). When the application is initialized it reads some parameters from the context file with getInitParameter() but it always returns null and we get a null pointer exception and the deployment terminates. If we then restart the server all the parameters are read and everything works ok. So my question is: It seems that we can't put the context file in the folder and then deploy the application, is that correct? Is there any other way to fix this without having the parameters in web.xml or deploy the application with the context file bundled with the war? Thanks in advance /Kax - 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]
server can't compile some jsp.
! I have no problems with application working on my computer. But, on the customers computer I am facing the problems with the same application. Some pages are compiled, and some not. Configuration ... Wintel, Tomcat5.12, j2sdk1.4.1_02. Tomcat log below. Would you mind looking throw it. 2004-10-14 17:43:05 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms] 2004-10-14 17:43:05 preRegister with Catalina:type=Logger,path=/cms,host=localhost 2004-10-14 17:43:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.io.FileNotFoundException: C:\Apache\jakarta-tomcat-5.0.12\work\Catalina\localhost\cms\org\apache\jsp\menu_jsp.java (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:176) at java.io.FileOutputStream.init(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) Thank you in advance. Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
Yes apache. Well, I thought it strange too that it wasnt passing the html, gif etc unless i added it to the workers2. So I can put this jkUriSet in the apache file. -nice Ill try this. This is what I did for mod_jk, but those jkmounts no longer worked in apache2. Thanks! John Just a simple questions, then an answer. If you are front-ending Tomcat with a web server, why are you passing things like .html, .gif, .jpg, etc. to Tomcat to process? The web server itself is a bit more efficient in handling this content. Secondly, what web server front end are you using? On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my workers, I set URI matching in my Apache Virtual Hosts Config; Add something similar to the following for each vhost (copy pasts is a wonderful thing). VirtualHost myhost.com:80 ... Location /*.jsp JkUriSet worker ajp13:localhost:8201 /Location Location /*.do JkUriSet worker ajp13:localhost:8201 /Location Location /servlet/* JkUriSet worker ajp13:localhost:8201 /Location Location /servlets/* JkUriSet worker ajp13:localhost:8201 /Location Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:08 AM To: Tomcat Users List Subject: Help with mod_jk2 Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! John - 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: Locked jar during Ant undeploy on Tomcat 5.5.3
Remy Maucherat remy.maucherat at gmail.com writes: Some random stuff: Only use either antiJARLocking or antiResourceLocking. Never both. Also, on your Context element, remove debug, path, and docBase, which are either gone, or are rundundant data. Thank you for pointing out these redundant attributes. I applied these changes to the context, but got the same results. If I have time, I'll put together a small application that demonstrates the problem and send that to you. Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disable Restart Persistence using the standard Manager implementation
Hi all, I use TC 5.27. I have a server.xml cofigured without Manager element configured - thus according to documentation, tomcat run, using it's standard manager implementation. Also, according to documentation whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions. I wish to disable that. or to be more precise, i wish to disable deserialize of serialized object, on server restart. this is because i have un serialized objects on session, which i do not wish to serialize. currently i get SEVERE: IOException while loading persisted sessions when ever i restart the server, and i wish to get rid of it. is there a way to do that? thanks in advance Sun House - Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now.
RE: MySQL driver randomly not found?
Interesting question...how does that impact classloading? [EMAIL PROTECTED] 10/14/04 10:15 AM Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve. java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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 e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MySQL driver randomly not found?
Hi, It might not, but it's always a question, because it's part of the KISS principle. The simpler the environment, the easier it is for the OP to test and for others to reproduce the OP's test results. The less moving pieces, the less chance for error. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:38 PM To: [EMAIL PROTECTED] Subject: RE: MySQL driver randomly not found? Interesting question...how does that impact classloading? [EMAIL PROTECTED] 10/14/04 10:15 AM Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760 ) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte r Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j a va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve . java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:14 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683 ) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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 e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended
Porting a servlet app to ASP.NET?
A customer is interested in licensing and developing the source code for a servlet-based webapp that I am writing, but for maintenance and support reasons they want it written in MS technologies (asp, asp.net, c#, etc) rather than Java servlets. I have some experience of webapps written in ASP from about 2-3 years ago, but don't know much about the newer MS stuff such as asp.net or C#, so am not sure how big a task this might be. Can anyone comment on how similar the MS code might be compared to my servlet code, and how easy it would be to re-write a servlet 2.4 app using the MS technologies? Are there any tools that can translate servlet/JSP code to asp.net equivalent? I have seen this, which appears to do the opposite: http://www.netcoole.com/j-asp.htm I have read a MS article here http://www.microsoft.com/resources/casestudies/CaseStudy.asp?CaseStudyID=158 64 which appears to suggest that servlet code can be used with relatively few changes and recompiled under J# then run under ASP.net - I'm more than a little sceptical about this - can anyone with experience of j# comment on that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: disable Restart Persistence using the standard Manager implementation
Hi, Try setting pathname= in the Manager declaration in server.xml. You could also try setting an invalid pathname. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sun House [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:32 PM To: [EMAIL PROTECTED] Subject: disable Restart Persistence using the standard Manager implementation Hi all, I use TC 5.27. I have a server.xml cofigured without Manager element configured - thus according to documentation, tomcat run, using it's standard manager implementation. Also, according to documentation whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions. I wish to disable that. or to be more precise, i wish to disable deserialize of serialized object, on server restart. this is because i have un serialized objects on session, which i do not wish to serialize. currently i get SEVERE: IOException while loading persisted sessions when ever i restart the server, and i wish to get rid of it. is there a way to do that? thanks in advance Sun House - Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MySQL driver randomly not found?
Hahah, similar reasoning wth my symlink question...shouldn't matter, but... [EMAIL PROTECTED] 10/14/04 10:47 AM Hi, It might not, but it's always a question, because it's part of the KISS principle. The simpler the environment, the easier it is for the OP to test and for others to reproduce the OP's test results. The less moving pieces, the less chance for error. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:38 PM To: [EMAIL PROTECTED] Subject: RE: MySQL driver randomly not found? Interesting question...how does that impact classloading? [EMAIL PROTECTED] 10/14/04 10:15 AM Hi, Does it happen without the connectors/Apache in front? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java : 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760 ) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte r Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j a va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:21 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve . java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:14 4 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.jav a :104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683 ) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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 e-mail, including any attachments, is a confidential business
[OT] Re: Porting a servlet app to ASP.NET?
On Thu, 2004-10-14 at 12:47, Steve Kirk wrote: A customer is interested in licensing and developing the source code for a servlet-based webapp that I am writing, but for maintenance and support reasons they want it written in MS technologies (asp, asp.net, c#, etc) rather than Java servlets. I have some experience of webapps written in ASP from about 2-3 years ago, but don't know much about the newer MS stuff such as asp.net or C#, so am not sure how big a task this might be. Can anyone comment on how similar the MS code might be compared to my servlet code, and how easy it would be to re-write a servlet 2.4 app using the MS technologies? Are there any tools that can translate servlet/JSP code to asp.net equivalent? I have seen this, which appears to do the opposite: http://www.netcoole.com/j-asp.htm I have read a MS article here http://www.microsoft.com/resources/casestudies/CaseStudy.asp?CaseStudyID=158 64 which appears to suggest that servlet code can be used with relatively few changes and recompiled under J# then run under ASP.net - I'm more than a little sceptical about this - can anyone with experience of j# comment on that? - 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: disable Restart Persistence using the standard Manager implementation
Hi, I do not have a manager element in my server.xml. Thus, i use the default manager setting. Is this mean that i HAVE to set this element? And if so, how do i achieve the default behavior? I.e. will this configuration do the work? context manager pathname= className= org.apache.catalina.session.StandardManager distributable=false / /context Regards Sun House Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Try setting pathname= in the Manager declaration in server.xml. You could also try setting an invalid pathname. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sun House [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:32 PM To: [EMAIL PROTECTED] Subject: disable Restart Persistence using the standard Manager implementation Hi all, I use TC 5.27. I have a server.xml cofigured without Manager element configured - thus according to documentation, tomcat run, using it's standard manager implementation. Also, according to documentation whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions. I wish to disable that. or to be more precise, i wish to disable deserialize of serialized object, on server restart. this is because i have un serialized objects on session, which i do not wish to serialize. currently i get SEVERE: IOException while loading persisted sessions when ever i restart the server, and i wish to get rid of it. is there a way to do that? thanks in advance Sun House - Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: disable Restart Persistence using the standard Manager implementation
Hi, I do not have a manager element in my server.xml. When Tomcat ships, a Manager is in server.xml by default. Did you remove it? Is this mean that i HAVE to set this element? Yes, as with all other elements, if you want non-default behavior you must specify it. That's the meaning of default ;) And if so, how do i achieve the default behavior? Either grab a fresh server.xml from a Tomcat distro, or look at the Manager docs page and declare one with the default attribute values. will this configuration do the work? context manager pathname= className= org.apache.catalina.session.StandardManager distributable=false / /context Maybe if you're more careful about your quoting ;) But yes, that's pretty close. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: server can't compile some jsp.
Hi, Make sure the user running the Tomcat server has write permissions on the $CATALINA_HOME/work directory. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Andrey Rogov [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:19 PM To: Tomcat users Subject: server can't compile some jsp. ! I have no problems with application working on my computer. But, on the customers computer I am facing the problems with the same application. Some pages are compiled, and some not. Configuration ... Wintel, Tomcat5.12, j2sdk1.4.1_02. Tomcat log below. Would you mind looking throw it. 2004-10-14 17:43:05 createObjectName with StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms] 2004-10-14 17:43:05 preRegister with Catalina:type=Logger,path=/cms,host=localhost 2004-10-14 17:43:20 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.io.FileNotFoundException: C:\Apache\jakarta-tomcat- 5.0.12\work\Catalina\localhost\cms\org\apache\jsp\menu_jsp.java (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:176) at java.io.FileOutputStream.init(FileOutputStream.java:70) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 291) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava:256) Thank you in advance. Best regards, Andrey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sun J2SE JVM + tomcat + Debian??
Yeah, I'm using -server. I tried kernel 2.4.27 on the debian box and that actually works. If I get a chance I'll try it w/o -server on 2.6.7 but for now I'm happy that I don't have to switch distros just to run Java. Eric Weidner wrote: My config single-cpu Debian Sid Kernel 2.6.7 Sun jdk 1.4.2_04 Tomcat 5.0.26 Apache 2.0.49 + mod_jk2 2.0.4 James Mail Server 2.2.0 (Java based) My servers run fine. Are you trying to run with the -server VM? I've always had trouble with that on Linux. Eric On Wednesday 13 October 2004 02:33 pm, Jeff Bowden wrote: Is anyone using tomcat on debian with a Sun JVM? We've just experimented with running it on bleeding edge Gentoo and Debian boxes as well as a trailing edge Redhat 7.3 box. Of the three, Debian is the only one where things don't go quite right. It sort of works but it never spawns any threads and consquently doesn't perform very well on our 4 cpu box. We've gone over the configurations in these pretty carefully and it doesn't seem to be a config issue. We've tried all four combinations of j2se 1.4.2, j2se 1.5, tomcat4 and tomcat5 always with the same result. I also tried switching between 2.6.7 and 2.6.8 kernel. I'm guessing it's a library issue, probably libc, but I don't know how to tell. I realize that this is the tomcat user list and not the Sun Java/Debian support list so if you just want to tell me where to go I would be happy with that :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Thanks you for all the replies. I havent fixed it but I am sure that's the problem with windows update. Will play with the -Xmx parameter later Thanks shyam -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:05 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) From: shyam [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 5.0.29 service start problem (JNI) I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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: Locked jar during Ant undeploy on Tomcat 5.5.3
On Thu, 14 Oct 2004 16:29:00 + (UTC), Derek Mahar [EMAIL PROTECTED] wrote: Remy Maucherat remy.maucherat at gmail.com writes: Some random stuff: Only use either antiJARLocking or antiResourceLocking. Never both. Also, on your Context element, remove debug, path, and docBase, which are either gone, or are rundundant data. Thank you for pointing out these redundant attributes. I applied these changes to the context, but got the same results. If I have time, I'll put together a small application that demonstrates the problem and send that to you. If the issue is real, then I think there will be someone to provide a webapp. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL driver randomly not found?
On Thursday 14 October 2004 9:13 am, Larry Meadors wrote: Just curious...Why are you using a symlink? I'm setting it up so that I can have multiple instances of tomcat running and I don't want many different copies of the files floating around if at all possible. It also makes it easy for me to perform upgrades on tomcat etc. when I use symlinks to some of the files (app specific) that don't change. --Kaleb [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104 ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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: MySQL driver randomly not found?
On Thursday 14 October 2004 9:15 am, Shapira, Yoav wrote: Does it happen without the connectors/Apache in front? I'll see if I can reproduce it on my test server without the AJP connector and Apache. Thanks. --Kaleb Yoav Shapira http://www.yoavshapira.com -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 12:13 PM To: [EMAIL PROTECTED] Subject: Re: MySQL driver randomly not found? Just curious...Why are you using a symlink? [EMAIL PROTECTED] 10/14/04 9:59 AM Hello! I'm having an interesting problem wherein about 5-10% of the time, for no apparent reason whatsover, the MySQL driver just can not be found. I have a symlink to it in TOMCAT_DIR/common/lib. I just replaced the symlink with a copy of the actual library to see if that would make a difference, but it doesn't make sense that it would work 90-95% of the time and then fail the rest of the time if that were the problem. The traceback I get is as follows: // NOTE: replaced org.apache. with ''. Cannot load JDBC driver class 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource' java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 854) at catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java: 721) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760) at commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at RequestFilterServlet.getUrlMapping(RequestFilterServlet.java:187) at RequestFilterServlet.doFilter(RequestFilterServlet.java:277) at catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter Chai n.java:186) at catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja va:1 57) at catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 : ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardContextValve.invokeInternal(StandardContextValve. java :198) at catalina.core.StandardContextValve.invoke(StandardContextValve.java:144 ) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 : ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 : ) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102 : ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104 : ) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at jk.common.SocketConnection.runIt(ChannelSocket.java:866) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Any suggestions welcome. Thanks. --Kaleb PS: I'm using tomcat 5.0.28 and version 3.0.15 of the MySQL connector. - 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 e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.