Re: Rép. : SSL question
If you want use javax.net.ssl you must have tomcat in a version upper or egal to 5. [EMAIL PROTECTED] 04/10/2005 18:28:59 Hi, thanks! I've got my own TrustManager/HostnameVerifier and it works when I use Apache's SecureWebServer and SecureXmlRpcClient. I'm not using javax.net.ssl, but instead com.sun.net.ssl - couldn't make it work with javax.net.ssl. Is the code below necessary for the servlet as well? Thought Tomcat has got all the information about trusted certificates in its keystore. --- Antony GUILLOTEAU [EMAIL PROTECTED] wrote: Many articles talk about how access https using java client throws HttpsURLConnection. You must use : - your own TrustManager (implements javax.net.ssl.X509TrustManager) - your own KeyManager (implements javax.net.ssl.X509KeyManager) - your own HostnameVerifer(implements javax.net.ssl.HostnameVerifer) and use this following code : TrustManager[] objTrustManager = new TrustManager[] {new MyX509TrustManager()}; KeyManager[] objKeyManager = new KeyManager[] {new MyX509KeyManager()}; SSLContext sc = SSLContext.getInstance(SSL); sc.init(objKeyManager, objTrustManager, new SecureRandom()); SSLSocketFactory objSocketFactory = sc.getSocketFactory(); HttpsURLConnection.setDefaultSSLSocketFactory(objSocketFactory); HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifer()); ... URL objUrl = new URL(...) HttpsURLConnection objHttpsURLConnection = (javax.net.ssl.HttpsURLConnection) objUrl.openConnection(); I hope it's help you. [EMAIL PROTECTED] 04/10/2005 17:54:30 Hi I've got a servlet which works fine when using http. But when I want to access it through https I get a certificate unknown exception. Why does https://localhost:8443 work in a browser but accessing my servlet (with java client) not? Do I need to make my servlet SSL aware? Using another secure webserver works with my client. Hope someone can help. Thanks! ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No stack trace?
Hello, I am currently trying to implement a system which sends me an email if the site ever has an exception (not that it ever will of course!). To this end I have inserted a simple exception into my code and when I run the code in Tomcat there is no stack trace! Either in the HTML of the JSP or in the console! I simply did: String nullStr = null; nullStr.trim(); both in a servlet and in a JSP and neither seem to have any effect. Going to other applications that I am working on at the moment I can cause a stack trace in them no problem. Under what conditions (if any) will Tomcat swallow the output of an exception (a stack trace)? Thanks in advance, Andoni.
java.lang.ClassCircularityError
Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Re: java.lang.ClassCircularityError
Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so it may be best to draw out the class tree. Specially if it is complicated. Hope that helps. Andoni. - Original Message - From: Jagadeesha T To: tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 9:01 AM Subject: java.lang.ClassCircularityError Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Re: java.lang.ClassCircularityError
HI Andoni, Thanks for the reply, It uses association that too unidirectional, I have seen the option in sun forum as have you explained to me. I tried to compile classes like this for just to get that error. This scenario won't compile, It gave me a error saying cycling inheritence. Do you know any other scenarios which could cause this problem. Thanks, Jagadish Andoni [EMAIL PROTECTED] wrote: Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so it may be best to draw out the class tree. Specially if it is complicated. Hope that helps. Andoni. - Original Message - From: Jagadeesha T To: tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 9:01 AM Subject: java.lang.ClassCircularityError Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
limit tomcat threads lifetime
Hello, when I look in the manager/status page I sometimes see threads in status keep-alive that are very old, have atm some which are 70700177ms old, which is over 19 hours. These threads have no longer any connection to the apache server, which invoked them, as I restarted the responsible apache processes yesterday. Is there a timout configuration I can put in my server.xml to do so? I found some directives for mod_jk and workers.properties, but after restarting the apache service the connection is lost and the tomcat should timeout those threads himself. I checked the session timeout from manager/sessions?path=/ and it tells me that it is set to 30 minutes, but 19 hours for those threads is multiple times of 30 minutes. And these threads aren't reused for new connections, they stay and idle till I restart the tomcat service. Any hints or suggestions? Thanks in advance Marcus -- Punishment becomes ineffective after a certain point. Men become insensitive. -- Eneg, Patterns of Force, stardate 2534.7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.ClassCircularityError
Just thinking aloud here... is there anywhere in your program that you are using Java Reflection? Beyond this I am afraid I have no more ideas for now :-( Later, Andoni. - Original Message - From: Jagadeesha T To: Tomcat Users List Sent: Wednesday, October 05, 2005 9:48 AM Subject: Re: java.lang.ClassCircularityError HI Andoni, Thanks for the reply, It uses association that too unidirectional, I have seen the option in sun forum as have you explained to me. I tried to compile classes like this for just to get that error. This scenario won't compile, It gave me a error saying cycling inheritence. Do you know any other scenarios which could cause this problem. Thanks, Jagadish Andoni [EMAIL PROTECTED] wrote: Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so it may be best to draw out the class tree. Specially if it is complicated. Hope that helps. Andoni. - Original Message - From: Jagadeesha T To: tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 9:01 AM Subject: java.lang.ClassCircularityError Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Re: java.lang.ClassCircularityError
Just some thoughts... if you write two classes A and B B extends A then compile then put B into deployment change B to not extend A and A to extend B, compile A put A into deployment Then you'll probably have your runtime circularity. Try to delete all your class files and recompile your application from scratch. regards Leon On 10/5/05, Jagadeesha T [EMAIL PROTECTED] wrote: HI Andoni, Thanks for the reply, It uses association that too unidirectional, I have seen the option in sun forum as have you explained to me. I tried to compile classes like this for just to get that error. This scenario won't compile, It gave me a error saying cycling inheritence. Do you know any other scenarios which could cause this problem. Thanks, Jagadish Andoni [EMAIL PROTECTED] wrote: Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so it may be best to draw out the class tree. Specially if it is complicated. Hope that helps. Andoni. - Original Message - From: Jagadeesha T To: tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 9:01 AM Subject: java.lang.ClassCircularityError Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.ClassCircularityError
HI, Thanks for the reply, It is being working correctly all these days. Only once I got this error.After restarting the server worked fine. Only one time I got this error. But I have not done as you mentioned. I am very curious to know why is this suddenly came which was working all these days and gone after restarted the server. Thanks, Jagadish Leon Rosenberg [EMAIL PROTECTED] wrote: Just some thoughts... if you write two classes A and B B extends A then compile then put B into deployment change B to not extend A and A to extend B, compile A put A into deployment Then you'll probably have your runtime circularity. Try to delete all your class files and recompile your application from scratch. regards Leon On 10/5/05, Jagadeesha T wrote: HI Andoni, Thanks for the reply, It uses association that too unidirectional, I have seen the option in sun forum as have you explained to me. I tried to compile classes like this for just to get that error. This scenario won't compile, It gave me a error saying cycling inheritence. Do you know any other scenarios which could cause this problem. Thanks, Jagadish Andoni wrote: Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so it may be best to draw out the class tree. Specially if it is complicated. Hope that helps. Andoni. - Original Message - From: Jagadeesha T To: tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 9:01 AM Subject: java.lang.ClassCircularityError Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Setting up an HTTPS connection with tomcat 5.5.9
Hi, I am using tomcat 5.5.9 I hav o setup an https connection and i followed the configuration documentation in the apache tomcat site. But when I am using startup.sh,(yes! i am using an RHEL 4.0 host) the normal http is running but no https. How i can make it work] thanks in advance vineesh
RE: Problems mixin getReader and getParameter
According to the servlet's spec, the behavior of getParameter() is undefined if you consumed the payload first through getInputStream or getReader: If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via .getInputStream or .getReader can interfere with the execution of .getParameter method. Jean-Marc -Original Message- From: Mauricio Nuñez [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 19:23 To: Tomcat Users List Subject: Problems mixin getReader and getParameter Hi all, I'm trying the following , with Tomcat 5.5.12 ( Also with 5.0.30 ) , and after reading the request.getReader(), the request.getParameter(param) is unusable, returning null. I'm trying setting a mark in the BufferedReader, but the result it's the same. Any hint? public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String line=null; BufferedReader br = request.getReader(); br.mark(4096); while((line=br.readLine())!=null) { System.out.println(TBK:+line); } br.reset(); request.getRequestDispatcher(close).forward(request,response); } TIA Mauricio Nuñez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS - Tomcat - And Trailing /
While IIS and Tomcat are working fine together, to access the webapp by utalizing a welcome file, a trailing / is required on the end of the URL. Is there a way to change that requirement? http://www.site.com/app/ - works http://www.site.com/app - desired to work Thanks Gregg
Re: Tomcat Alone or tomcat+IIS/Apache
We required IIS for a CGI ecommerce solution that was required. Plug and Pay I think is the company we bought it from. I came in late on the project and haven't had a lot of time to mess with it. Does Tomcat support CGI bins utalizing non-java technology? Gregg On 9/30/05, Peddireddy Srikanth [EMAIL PROTECTED] wrote: thanks for all the replies On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache Does Tomcat support CGI bins utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - 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]
Add context to URI (Tomcat5/Apache2)
Hi all, I'm looking through docs and FAQs, but I cannot find how to do the following. I use Tomcat5 and Apache2. My apache server can accede the tomcat server, and things like: [uri:/manager/*] info=A scriptable management web application for the Tomcat Web Server. debug=0 in the workers2.properties works perfectly (meaning manager is accessible from http://localhost/manager/). Now, I'd like to be able to deploy new application on the tomcat server without having to add a line in the workers2.properties file. I do *not* want to add a line like: [uri:/*] debug=0 What I want is to have a line like: [uri:/tomcat/*] debug=0 and that that all the URI in /tomcat/foo be converted in /foo for the tomcat server. For that to work it should be a parameter to give to the tomcat server, but I did not find the right one. Context seems to be the right one, but when I add Context path=/tomcat docBase=./ privileged=1/ to my host parameter in server.xml, it does allow me to use .jsp, but not servlets. Do someone know how I could achieve something like that? Thanks. Benjamin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Announce] Stylus Studio Offers Unprecedented Free Upgrade for Altova XMLSpy and Mapforce Users
[Announce] Customers who have purchased qualifying Altova XML Products, including Altova XMLSPY 2005 or Altova XMLSPY(r) 2004 (Enterprise or Professional Edition) or Mapforce(r) 2005 or Mapforce 2004 (Enterprise or Professional Edition), on or before October 1, 2005 can now obtain a free upgrade license to Stylus Studio(r) 6 XML Enterprise Edition, the World's Best XML IDE. Limit one free single-user license of Stylus Studio 6 XML Enterprise Edition per order, per company. Altova XMLSPY customers pay absolutely NOTHING for this upgrade to Stylus Studio. But wait, there's more! Altova XMLSPY users who take advantage of this offer will also receive a coupon good for 30% off an unlimited number of single-user licenses of Stylus Studio 6 XML Enterprise Edition and Stylus Studio 6 XML Professional Edition from the Stylus Studio Online Shop, good for 14 days. This offer cannot be combined with any other offers, cannot be applied to past purchases, and expires October 14, 2005. Qualifying customers can see complete offer details and upgrade online today! Read the announcement here: http://www.stylusstudio.com/press/2005_10_04_special_upgrade.html Qualified customers can get their free upgrade to Stylus Studio 6 XML Enterprise Edition here: https://www.stylusstudio.com/buy/getoutofjailfree.html Sincerely, The Stylus Studio Team http://www.stylusstudio.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
manager for address-based virtual hosts?
Is there a version of the Manager app which handles all address-based virtual hosts in a Tomcat system? I've tried ManagerX which embraces name-based hosts but not the address-based ones which our SSL-enabled apps require... Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.10/119 - Release Date: 4/Oct/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question - Tomcat 5.0 and external Javascript files
Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
You have to specify the full path, this should not work under any of the webservers. DarekC On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - 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: SSL question
Hi Not exactly sure what you mean. Could you send me a snippet of your web.xml? That would be very nice. Thanks! Greetings from Vienna --- Yassine ELassad [EMAIL PROTECTED] wrote: hi i'm not sure if this will help you but i have hade a quite similar issue : i have passed a full URL a param Vlaue in my web.xml something like http://localhost:8080/MyServlet both http and :8080 are specifying a differnt port number than the ssl port so if you are performing such a call you better change it into /MyServlet/ and the servlet conatainer handels everythings else for you i hope this helps Greeting from Cologne YEL directBOX Reply --- From: RaueberHotzenplotz ([EMAIL PROTECTED]) To: tomcat-user@jakarta.apache.org Date: 04.10.2005 17:55:03 Hi I've got a servlet which works fine when using http. But when I want to access it through https I get a certificate unknown exception. Why does https://localhost:8443 work in a browser but accessing my servlet (with java client) not? Do I need to make my servlet SSL aware? Using another secure webserver works with my client. Hope someone can help. Thanks! ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Verpassen Sie keine eBay-Auktion und bieten Sie bequem und schnell über das Telefon mit http://www.telefonbieten.de Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag eMail, FAX, SMS, VoiceMail mit http://www.directbox.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with setting path for config files
Hi all, I am having a problem with setting the path for config files. I am building a webservices in java using a 3rd party java API. this third party API requires few config files(xml files) to be present in the class path, so that they can read from those config files. i am developing these on a windows 2000 machine but the server environment is linux. on windows machine, i added the path of these config files in the setclasspath.bat as shown below. set CLASSPATH=%JAVA_HOME%\lib\tools.jar;C:\ConfigFiles\conf this worked perfectly fine, but when i do the same in the setclasspath.shon the linux machine. it does not compile the jws files as it would not find tools.jar file, apparently its not seperating the paths after the semi colon. can anyone help me in this regard and suggest me on how to go about it. thanks Ravi
Re: Newbie question - Tomcat 5.0 and external Javascript files
You may be able to use this instead: src=js/EdiHost.js IDEA will get pissed about it, but it should work (I know it does for images). It is nice, because you can rename your context, and not break your webapp. :) Larry On 10/5/05, Pigott, Paul [EMAIL PROTECTED] wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - 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 behind IIS - Session timeout is ignored
Hello list, I have a problem with a tomcat 5.0.28 installation connected to IIS 6.0 (Windows 2003 server) with isapi_redirect.dll Everything is working well, except for the session timeout. The timeout is set to 60 minutes in the context's web.xml file (session-timeout60/session-timeout) which works great in many other installations (without IIS, though) As far as I could tell, the sessions are purely managed by tomcat, so IIS should not pose a problem, but still... Can anyone shed some light on this? Thanks, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src=c:url value=/js/EditHost.js/ which has the added advantage of *not* being a relative path that'll only work if referenced from the base directory of the webapp, but *will* work regardless of changes to the webapp name... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
Yeah, i just hate the tag inatag / / stuff. Messy. ;-) Larry On 10/5/05, Hassan Schroeder [EMAIL PROTECTED] wrote: Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src=c:url value=/js/EditHost.js/ which has the added advantage of *not* being a relative path that'll only work if referenced from the base directory of the webapp, but *will* work regardless of changes to the webapp name... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems mixin getReader and getParameter
El mié, 05-10-2005 a las 08:46 -0400, Jean-Marc Marchand escribió: According to the servlet's spec, the behavior of getParameter() is undefined if you consumed the payload first through getInputStream or getReader: If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via .getInputStream or .getReader can interfere with the execution of .getParameter method. Jean-Marc Thanks I will need a print copy of the Spec ,Saint Google not illuminate me yesterday :-) As workaround, I'm using the CGIParser class ( from Ostermiller utils ) to get the parameters from the InputStream. Bye Mauricio Nuñez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with setting path for config files
You can declare a variable in Catalina.sh with your path and append it to the classpath. -Original Message- From: Raviteja Veerla [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 11:26 AM To: tomcat-user@jakarta.apache.org Subject: problem with setting path for config files Hi all, I am having a problem with setting the path for config files. I am building a webservices in java using a 3rd party java API. this third party API requires few config files(xml files) to be present in the class path, so that they can read from those config files. i am developing these on a windows 2000 machine but the server environment is linux. on windows machine, i added the path of these config files in the setclasspath.bat as shown below. set CLASSPATH=%JAVA_HOME%\lib\tools.jar;C:\ConfigFiles\conf this worked perfectly fine, but when i do the same in the setclasspath.shon the linux machine. it does not compile the jws files as it would not find tools.jar file, apparently its not seperating the paths after the semi colon. can anyone help me in this regard and suggest me on how to go about it. thanks Ravi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Manager, Session Statistics
Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? According to the documentation of Tomcat Manager, this number is the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. 2) The same documentation has an example: For example, after restarting Tomcat and then executing one of the JSP samples in the /examples web app, you might get something like this OK - Session information for application at context path /examples Default maximum session inactive interval 30 minutes 30 - 40 minutes:1 sessions If this count the sessions that will expired within 10 minutes, Why would the newly created session be counted? 3) Why is the display 30 - 40 minutes Shouldn't it be 20 - 30 minutes meaning sessions that have 20 and 30 minutes of inactivity? I have the same results on Tomcat 5.5.9 on Windows 2000 Service Pack 4 and on Windows XP service Pack 2. Thanks Jean-Pierre Pelletier e-djuster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat Virtual Host question
Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context path changes in context.xml not working
Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false/ According to the docs, putting this into the server.xml is not the preferred way, but when I put it into my webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, even when I stop and restart Tomcat. Is there something I'm missing here? Or is it a bug which will be fixed in a later release. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: an advice neede for use of encodeURL method...
jonas skrebys wrote: Hi everyone, could anyone help me understand what I am doing wrong... I want to put a session tracking into my jsp page. I use response.encodeURL method to rewrite all url in my page : a href=% response.encodeURL(/appName/myJSP.jsp?parameter = + value); % also I think u should not have the space in /appName/myJSP.jsp?parameter = Paul S. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.10/119 - Release Date: 4/Oct/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context path changes in context.xml not working
As mentioned several times on the mailing list, path is no longer read from webapp/META-INF/context.xml. Try placing the context information in: engine-name\hostname\appname.xml under %CATALINA_HOME%\conf or %CATALINA_BASE%\conf if you're using multiple Tomcats served from one binary. If you're using the defaults, then engine-name is Catalina and hostname is localhost. HTH /mde/ --- David Kerber [EMAIL PROTECTED] wrote: Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false/ According to the docs, putting this into the server.xml is not the preferred way, but when I put it into my webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, even when I stop and restart Tomcat. Is there something I'm missing here? Or is it a bug which will be fixed in a later release. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context path changes in context.xml not working
Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context xml file located in config/Catalina/localhost. Restart tomcat and you're done. --David David Kerber wrote: Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false/ According to the docs, putting this into the server.xml is not the preferred way, but when I put it into my webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, even when I stop and restart Tomcat. Is there something I'm missing here? Or is it a bug which will be fixed in a later release. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Balancer for redirect to other host
Hi, I want use balancer for redirect all requests from mydomain.org to www.mydomain.org. I try following configuration: -- server.xml -- ... Host name=www.mydomain.org appBase=webapps Context path= docBase=el-dimm reloadable=true/ /Host Host name=mydomain.org appBase=webapps Context path= docBase=balancer reloadable=true/ /Host ... - Balancer application have default configuration. I receive error message after typing http://mydomain.org in the address line: The requested resource (/) is not available._ _But if type http://mydomain.org/balancer - balancer working correct. What I did not correct? Please correct me. Thanks, Jury_ _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error: Connection was refused when attempting to contact
Hi people! I'm facing this error with my Tomcat (version 4.0.6) on Debian. It seems that is everything ok: I can access the JSP and servlets examples, the tomcat docs and others without any errors. The problem occurs when I attempt to run an application called maca_ad_web.war, that is available at http://maca.sourceforge.net. I put the war file on the webapps folder; then I start tomcat (startup.sh); so, the folder maca_ad_web is created. So, when I put the URL http://127.0.0.1:8080/maca_ad_web I received the error listed. Someone can help me? André Thiago. __ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/
Re: Context path changes in context.xml not working
I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This is an app I'm migrating from SilverStream to Tomcat, and I don't want to change the url my users use to connect to it. David Smith wrote: Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context xml file located in config/Catalina/localhost. Restart tomcat and you're done. --David David Kerber wrote: Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false/ According to the docs, putting this into the server.xml is not the preferred way, but when I put it into my webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, even when I stop and restart Tomcat. Is there something I'm missing here? Or is it a bug which will be fixed in a later release. Dave - 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: Deploying a webapp under two different URIs
Carsten Guenther wrote: I want to deploy the same webapp under two different URIs. I created two context descriptors like this: Context path=/a docBase=/home/user/myapp debug=0 privileged=false Logger className=org.apache.catalina.logger.FileLogger prefix=a. suffix=.txt timestamp=true/ /Context Context path=/b docBase=/home/user/myapp debug=0 privileged=false Logger className=org.apache.catalina.logger.FileLogger prefix=b. suffix=.txt timestamp=true/ /Context Everything seems to work fine, I just want to make sure that this is the right thing to do. Are there any unwanted consequences bu doing this? Or is there even a better way for achieving this (without using Apache) ? I think what you are doing is safe: the files at docBase=/home/user/myapp are never written to (you could make them read-only) and safely shareable. But do you really want or need two web app instances (with their own sessions, logging etc.) or do you just want two aliases for one application? With name-based virtual hosting you can deploy one web app instance at many domain names, e.g. Host name=carshare2work.co.uk Aliascarshare2work.com/Alias Aliascarshare2work.net/Alias Aliaswww.carshare2work.co.uk/Alias Aliaswww.carshare2work.com/Alias Aliaswww.carshare2work.net/Alias but I don't know of any way to alias a Context. Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.10/119 - Release Date: 4/Oct/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Manager, Session Statistics
Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.ClassCircularityError
Jagadeesha T wrote: I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4699981 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sharing session information across tomcats on different machines
Is there any possibility for tomcats on separate machines to share session information. I am looking into load balancing a few tomcats with an apache in front of them. In other words, the setup will be internet - Apache(s) - Tomcats Is it possible for this type of scenario to exist, and sesion information be shared? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: java.lang.ClassCircularityError
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Subject: Re: java.lang.ClassCircularityError There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4699981 According to the bug report, this is only fixed in Mustang (6.0), not 5.0 (aka 1.5). - 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: Tomcat Manager, Session Statistics
I suggest that the display of 30 - 40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 3:22 PM Subject: Re: Tomcat Manager, Session Statistics Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - 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]
Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does
Hi, everybody I have the next problem: A servlet calls a non-servlet class, and this non-servlet class imports classes from a jar file, but the classloader does not find the class from the jar file (so when I call the servlet from an internet browser, I get a NoClassDefFoundException) But if a servlet class imports the same classes from the jar, the class loader does find them... I've tried some ways to solve this problem, like: a) unpacking the classes from the jar (this works, but I had the problem that 2 different jars contained a file with the same name stored in the same directory, so one would replace the other, and the class fails) b) I thought it would be a security problem so I ran tomcat with a SecurityManager, but it didn't solve the problem.. does somebody has any idea why this is happening??? can somebody help me to solve this... thanks in advance Jose Maria ___ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom session manager
This is about 90% of what I want. One of the features I want to put into my session manager is the ability to only have one open session per user. What I would like is to have a createSession method that takes in user and host. This way I could be relatively sure that the user could only have one session at a time. The way the API looks is I have no way of passing this information into the createSession method. Is this true? Or do I have to extend some of the low-level tomcat code in order to make this work? TIA for any help you can provide. On 9/29/05, Leon Rosenberg [EMAIL PROTECTED] wrote: check this out: http://www.niallp.pwp.blueyonder.co.uk/TomcatBug36541.html The link itself handles a bug, but one of the solutions is to replace the std. manager with custom manager with all info you need to actually do this. I thin kthis fits your question. regards leon On 9/29/05, Mark [EMAIL PROTECTED] wrote: After using tomcat since the 3.x days, I have been very impressed with the amount of flexibility and configuration options that I have available to me. One part of the tomcat design that I do not believe is very flexible is the ability to set up a custom session manager. So maybe I am missing something, but how would I go about writing this for tomcat? I know I am being very vague, but how much work am I potentially signing myself up for here if I wanted to create a custom session manager? 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: custom session manager
I have never seen that the getRemoteUser method you are referring to returned something userful, or just something other then null. Taken in account different browsers, proxies, internet-cafes... I don't think it's possible. On the other hand, why do you need that? As a matter of security this will not work, because an intruder will simply use a patched browser and a proxy. Maybe if you tell us what you trying to achieve, we can provide you a better solution. regards leon On 10/5/05, Mark [EMAIL PROTECTED] wrote: This is about 90% of what I want. One of the features I want to put into my session manager is the ability to only have one open session per user. What I would like is to have a createSession method that takes in user and host. This way I could be relatively sure that the user could only have one session at a time. The way the API looks is I have no way of passing this information into the createSession method. Is this true? Or do I have to extend some of the low-level tomcat code in order to make this work? TIA for any help you can provide. On 9/29/05, Leon Rosenberg [EMAIL PROTECTED] wrote: check this out: http://www.niallp.pwp.blueyonder.co.uk/TomcatBug36541.html The link itself handles a bug, but one of the solutions is to replace the std. manager with custom manager with all info you need to actually do this. I thin kthis fits your question. regards leon On 9/29/05, Mark [EMAIL PROTECTED] wrote: After using tomcat since the 3.x days, I have been very impressed with the amount of flexibility and configuration options that I have available to me. One part of the tomcat design that I do not believe is very flexible is the ability to set up a custom session manager. So maybe I am missing something, but how would I go about writing this for tomcat? I know I am being very vague, but how much work am I potentially signing myself up for here if I wanted to create a custom session manager? 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]
[5.5.9] Excessive jk INFO log msgs connection timeout reached
Anyone know the proper way to handle these messages? I get piles of them in catalina.out Oct 5, 2005 3:00:23 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Tried adding the following line to the default catalina_home/common/classes/logging.properties org.apache.jk.common.ChannelSocket.level=WARN Has no effect. The only thing I have been able to find is people using Log4j instead of the default java.util.logging that came setup with Tomcat 5.5. Was wondering, is that the only way? If so, why does it work w/ Log4j and not the default java.util.logging? Looking at the source for 'org.apache.jk.common.ChannelSocket', the line reads... log.info( connection timeout reached); Should it not instead read... if(log.isInfoEnabled()) log.info( connection timeout reached); Anyway, thanks for any help to this. -Rick Gavin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Manager, Session Statistics
Hi, documentation says: Display ... the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. Actual timeout times does not mean from now, but instead in general. It does not relate to when the session has been used last time. Since all sessions of your webapp will usually use the same timeout value, they will all appear with the same interval, and the interval will be the 10 minute interval located around your timeout value (in your example the timeout is 30 minutes, so the interval is [30,40[). Of course it would be interesting to see, how many sessions are close to being expired, if they will not be used in the next n minutes. Feel free to provide a patch to org.apache.catalina.manager.ManagerServlet.java (you would need to replace getMaxInactiveInterval by getLastAccessedTime and change the computation a bit). I suggest that the display of 30 - 40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 3:22 PM Subject: Re: Tomcat Manager, Session Statistics Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - 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]
Modjk and Tomcat 5.5.4 problem
Has anyone had any problems with ModJK crashing the server? I haven't been able to fully debug yet, primarily because it doesn't update any logs to state there is a problem, and I can't reliably replicate the problem. I am using Apache 2.0.47, modjk 1.2.5 and tomcat 5.5.4 I think that it has something to do with modjk because when I go directly to the appserver the problem doesn't seem to exist. Any help would be greatly appreciated. Thank you, -John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
end-of-lifecycle control for naming resources
i'm setting up an instance of javax.jcr.Repository as a naming resource like so: Resource name=jcr/cosmo type=org.apache.jackrabbit.core.jndi.BindableRepository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=etc/repository.xml repHomeDir=data/repository/ this implementation of Repository requires a shutdown() method to be executed when the webapp or container is being shut down, in order to clean up resources, release the lock on the repository's filesystem, etc. is there any sort of end-of-lifecycle hook for naming resources, or am i forced to write a servlet context listener to take care of this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modjk and Tomcat 5.5.4 problem
We had an issue where it seemed like it would crash using mod_jk, the trouble was the connections were not letting go. By default, I think the timeout is infinite, so after setting the property: connectionTimeout, in the server.xml's connector descriptor as follows, Connector port= protocol=AJP/1.3 connectionTimeout=6 .../ The old connections would get cleaned up and we stopped having problems, however, I'm not sure this was the correct way to do this, seems to work. Not sure if this is related to your problem. -Rick -Original Message- From: John Martyniak [mailto:[EMAIL PROTECTED] Posted At: Wednesday, October 05, 2005 3:53 PM Posted To: Tomcat Dev Conversation: Modjk and Tomcat 5.5.4 problem Subject: Modjk and Tomcat 5.5.4 problem Has anyone had any problems with ModJK crashing the server? I haven't been able to fully debug yet, primarily because it doesn't update any logs to state there is a problem, and I can't reliably replicate the problem. I am using Apache 2.0.47, modjk 1.2.5 and tomcat 5.5.4 I think that it has something to do with modjk because when I go directly to the appserver the problem doesn't seem to exist. Any help would be greatly appreciated. Thank you, -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]
isapi_redirector2.dll question
I have installed the IIS to Tomcat redirector on my windows XP pro machine and it works great. I took the same steps to install in on a win2k machine running IIS5.0, and it fails. Both machines have the same tomcat version (5.5.11) and both are configured identically. Here is the workers2.properties file - #Look at #http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html #for parameter description [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=c:/tomcat/temp/jk2.shm size=1048576 #[channel.socket:localhost:8009] #info=Ajp13 forwarding over socket #tomcatId=localhost:8009 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 tomcatId=localhost:8009 # Map webapps to the Web server uri space [uri:/Acuity/*] - I ahve also put the required registry entries in and added the dll as a filter into IIS - both done on both machines. All is fine on my machine, but on the win2k machine (with 256 mb memory), the log file gives the error: Error [jk_isapi_plugin.c(496)]HttpExtensionPOroc: worker is NULL I have rebooted both machines, and the filter DOES have an up arrow listed for its status in both machines. My question is - What are the ways a worker is NULL can occur, and how do I fix this error??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database connections aren't being released...
I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time, the number of connections to the database continues to increase far beyond the possible number of users. The only way to close the connections is to restart the database server. Again, we are not sure if we should be looking at Tomcat, the JDBC driver, or Sybase to solve this problem. Any input would be helpful. Thanks
Re: custom session manager
basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not logout 4. Start browser up again 5. try and log in 6. Do not allow login, have user 'reconnect' to the old session created in step 1. I have written quite a few web based apps, and I know of no way to kill the session at step 3. Hope this clears things up. Thanks again! On 10/5/05, Leon Rosenberg [EMAIL PROTECTED] wrote: I have never seen that the getRemoteUser method you are referring to returned something userful, or just something other then null. Taken in account different browsers, proxies, internet-cafes... I don't think it's possible. On the other hand, why do you need that? As a matter of security this will not work, because an intruder will simply use a patched browser and a proxy. Maybe if you tell us what you trying to achieve, we can provide you a better solution. regards leon On 10/5/05, Mark [EMAIL PROTECTED] wrote: This is about 90% of what I want. One of the features I want to put into my session manager is the ability to only have one open session per user. What I would like is to have a createSession method that takes in user and host. This way I could be relatively sure that the user could only have one session at a time. The way the API looks is I have no way of passing this information into the createSession method. Is this true? Or do I have to extend some of the low-level tomcat code in order to make this work? TIA for any help you can provide. On 9/29/05, Leon Rosenberg [EMAIL PROTECTED] wrote: check this out: http://www.niallp.pwp.blueyonder.co.uk/TomcatBug36541.html The link itself handles a bug, but one of the solutions is to replace the std. manager with custom manager with all info you need to actually do this. I thin kthis fits your question. regards leon On 9/29/05, Mark [EMAIL PROTECTED] wrote: After using tomcat since the 3.x days, I have been very impressed with the amount of flexibility and configuration options that I have available to me. One part of the tomcat design that I do not believe is very flexible is the ability to set up a custom session manager. So maybe I am missing something, but how would I go about writing this for tomcat? I know I am being very vague, but how much work am I potentially signing myself up for here if I wanted to create a custom session manager? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Tomcat sources moved to Subversion
Hi, FYI, the Tomcat source code has been moved to Apache's Subversion (SVN) repository. The old CVS repositories are now locked down: they can still be used for checking out code, but no further work will be done in them. For details on how to work with SVN, please see http://www.apache.org/dev/version-control.html. Please note that we are still verifying some of the build scripts to make sure they work in the new structure. Thanks, Yoav --- Henri Yandell [EMAIL PROTECTED] wrote: Date: Wed, 5 Oct 2005 21:17:10 -0400 From: Henri Yandell [EMAIL PROTECTED] To: Tomcat Developers List tomcat-dev@jakarta.apache.org Subject: Re: CVS-SVN Schedule On 10/2/05, Mark Thomas [EMAIL PROTECTED] wrote: Mark Thomas wrote: Mladen Turk wrote: Can somebody make a firm statement on the timings? 1. Until when (Date:Hour:Minute) commits could be done 2. Wen the CVS will be locked for commit (same format) This is now set for Wednesday 5th October 2005 at 8pm US Eastern time. It should be completed by 11pm US Eastern time. All done :) http://svn.apache.org/repos/asf/tomcat/connectors/ http://svn.apache.org/repos/asf/tomcat/jasper/ http://svn.apache.org/repos/asf/tomcat/container/catalina/ http://svn.apache.org/repos/asf/tomcat/container/tc5/ svn co https://svn.apache.org/repos/asf/tomcat/connectors/ jakarta-tomcat-connectors svn co https://svn.apache.org/repos/asf/tomcat/jasper/ jakarta-tomcat-jasper svn co https://svn.apache.org/repos/asf/tomcat/container/catalina/ jakarta-tomcat-catalina svn co https://svn.apache.org/repos/asf/tomcat/container/tc5/ jakarta-tomcat-5 I'll keep checking email and the jira entry on and off tonight in case there are problems. CVS is locked down, all commits should goto tomcat-dev, Mark's modification scripts are all successfully run and read/write is set to anyone in tomcat (in the asf-authorization file that Remy can edit). Hen - 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: Context path changes in context.xml not working
Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave David Kerber wrote: I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This is an app I'm migrating from SilverStream to Tomcat, and I don't want to change the url my users use to connect to it. David Smith wrote: Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context xml file located in config/Catalina/localhost. Restart tomcat and you're done. --David David Kerber wrote: Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true unpackWARs=true crossContext=false/ According to the docs, putting this into the server.xml is not the preferred way, but when I put it into my webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, even when I stop and restart Tomcat. Is there something I'm missing here? Or is it a bug which will be fixed in a later release. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context path changes in context.xml not working
Did you try it in: $CATALINA_HOME/conf/engine-name/hostname/appname.xml? /mde/ --- David Kerber [EMAIL PROTECTED] wrote: Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: custom session manager
From: Mark [mailto:[EMAIL PROTECTED] Subject: Re: custom session manager basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. Why? Some strange security issue? Resource consumption? An anti-DoS measure? - 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: Database connections aren't being released...
From: Richard Road Runner [mailto:[EMAIL PROTECTED] Subject: Database connections aren't being released... Over a period of time, the number of connections to the database continues to increase far beyond the possible number of users. This is usually a problem in the webapp, in that some code path is failing to close a result set, statement, or connection. After a while, these accumulate and you run out. If you're using connection pooling, you can try setting removeAbandoned=true, but that's a kludge, not a true fix. For more details, see: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html - 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]
precompiling JSPs -- how to resolve references normally resolved by apache?
Hi, I am trying to get our JSPs to be precompiled as part of our ant build process to catch all syntax errors at compile time. The problem I have run into is that we are using apache + tomcat and we have set the following rules in apache httpd. conf: JkMount /servlets/* ajp13 JkMount /jsp/* ajp13 JkMount /controller/* cont JkMount /cgi-bin/java-rmi.cgi ajp13 Inside some of our servlets and JSPs, they refer to other jsps using the absolute URL /jsp/ which works in deployed environment because apache redirects it. For example, in one JSP we have %@ include file=/jsp/Header.jsp % I setup the tomcat-4.1.30 ant jspc task and it was giving a NPE. Then I tried the Ant Jspc optional task, and it gave me an error message: the file '\Status.jsp' generated the following general exceptionn: org.apache.jasper.JasperExeption: /Status.jsp(3,0) File /jsp/Header.jsp not found Is there any quick and dirty way to get the JspC to resolve the /jsp/*.jsp urls to *.jsp or is there no way? My alternative is to try to change all the /jsp/*.jsp references to *.jsp everywhere we do an %@ include % or jsp:include/ or jsp:forward/. I think that would be ok since those directices are handled on the tomcat side. Changing it would be kind of messy since we have a ton of JSPs in a large directory hierarchy, so some of those /jsp/Header.jsp references would have to be changed to ../../Header.jsp, etc. I know I can't get away from the /jsp mapping completely because we have URLs and HTTP redirects which depend on it. Here is the quick and dirty jspc ant target I created: jspc srcdir=${TOP}/web/html/jsp uribase=${TOP}/web/html/jsp uriroot=${TOP}/web/html/jsp destdir=${TMP_DIR}/WEB-INF/src compiler=jasper41 verbose=9 include name=*.jsp/ classpath !--todo: including all the tomcat jars, overkill i know...-- fileset dir=C:\Program Files\Apache Group\Tomcat 4.1\bin include name=*.jar/ /fileset fileset dir=C:\Program Files\Apache Group\Tomcat 4.1\common\endorsed include name=*.jar/ /fileset fileset dir=C:\Program Files\Apache Group\Tomcat 4.1\common\lib include name=*.jar/ /fileset fileset dir=C:\Program Files\Apache Group\Tomcat 4.1\shared\lib include name=*.jar/ /fileset fileset dir=C:\Program Files\Apache Group\Tomcat 4.1\server\lib include name=*.jar/ /fileset !-- project classes and external 3rd party jar files -- pathelement path=${CLASS_DIR}/ filelist refid=active.external.jar.filelist/ /classpath /jspc Thanks for any advice, -Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not honor acceptCount configuration variable
Any tips on this issue? -Original Message- From: Wei Zhao [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 11:22 AM To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable Hi: I am resending this question since I did not get any answer last time. We've just migrated Tomcat from version 4.06 to 5.5.9 and found that the configuration variable 'acceptCount' under 'Connector' element takes no effect. For example, if I set acceptCount to 1000 but leave maxThreads to 75, Tomcat cannot handle 500 concurrent requests. I have to increase the maxThreads to around 1000, otherwise, most of the request will be rejected by Tomcat. But you know, increase the maxThread is not an efficient way and web server should be able to keep a queue much bigger than the maximum work thread. I remember we have similar problem in Tomcat 4.0.6 and we did some code change and recompile catalina.jar ourselves to solve the probelm. I am wondering whether this issue has been resolved in Tomcat 5.5 Connector port=8900 protocol=HTTP/1.1 maxThreads=75 acceptCount=500 redirectPort=8901 enableLookups=true maxSpareThreads=75 minSpareThreads=5 connectionTimeout=5000 maxHttpHeaderSize=8192 disableUploadTimeout=true/ Thanks Wei __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? ÑÅ»¢Ãâ·ÑGÓÊÏä£ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä http://cn.mail.yahoo.com/?id=77071 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
useBeans problem
I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: UserData (Unsupported major.minor version 49.0) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* java.lang.UnsupportedClassVersionError: UserData (Unsupported major.minor version 49.0) java.lang.ClassLoader.defineClass0(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:537) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181) org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1210) org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) org.apache.jasper.compiler.Node$Root.accept(Node.java:456) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) org.apache.jasper.compiler.Generator.generate(Generator.java:3270) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *note* _The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs._ Here are my files: !--First File-- htmlbody form method=post action=SaveName.jsp What's your name? input type=text name=username size=20br What's your email address? input type=text name=email size=20br What's your age? input type=text name=age size=3br input type=submit /form /body/html !--Second File-- jsp:useBean id=user class=UserData scope =session / jsp:setProperty name=user property=* / HTMLBODY A HREF=NextPage.jspContinue/A /BODY/HTML //UserData.java import java.io.Serializable; public class UserData implements Serializable { String username; String email; int age; public void setUsername( String value ){ username = value; } public void setEmail( String value ){ email = value; } public void setAge( int value ) { age = value; } public String getUsername() { return username; } public String getEmail() { return email; } public int getAge() { return age; } } !--Last file-- jsp:useBean id=user class=UserData scope=session / htmlbody You enteredbr Name: %= user.getUsername() % br Email: %= user.getEmail() %br Age: %= user.getAge() %br /body/html My environment variables are: JAVA_HOME=/usr/local/jdk1.5.0; export JAVA_HOME CATALINE_HOME=/usr/local/jakarta-tomcat5.5; export CATALINE_HOME CATALINE_BASE=/usr/local/jakarta-tomcat5.5; export CATALINE_BASE CATALINE_TMPDIR=/usr/local/jakarta-tomcat5.5/temp; export CATALINE_TMPDIR CLASSPATH=/usr/local/jakarta-tomcat5.5/webapps/ROOT/jsptut/WEB-INF/classes:/usr/local/jakarta-tomcat5.5/webapps/ROOT/WEB-INF/classes:/usr/local/jakarta-tomcat5.5/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat5.5/common/lib/jsp-api.jar:.;export CLASSPATH I've compiled UserData.java with the following command: $ javac UserData.java and stored the class in the directory: /usr/local/jakarta-tomcat5.5/webapps/ROOT/WEB-INF/classes Why am I getting this error? How do I get a simple javabean example working with JSP under tomcat? -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: useBeans problem
From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: javax.servlet.ServletException: UserData (Unsupported major.minor version 49.0) This would seem to indicate that you're not really using JDK 1.5, since version 49 class files are those generated and loaded by 1.5. Looks like you have a 1.4 installed somewhere. Either that, or you're using a very picky and outdated classloader somehow... - 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: useBeans problem
Ok i found two other installations of JDK on the machine. I'm going to make sure that the only JDK i have installed on here is JDK1.5.0_p2 Michael Caldarale, Charles R wrote: From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: javax.servlet.ServletException: UserData (Unsupported major.minor version 49.0) This would seem to indicate that you're not really using JDK 1.5, since version 49 class files are those generated and loaded by 1.5. Looks like you have a 1.4 installed somewhere. Either that, or you're using a very picky and outdated classloader somehow... - 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]
Configuring https on apache tomcat 5.5.9
Hi all, I am trying to configure tomcat 5.5.9 with SSL support.I followed the instructions from apache site. But the problem is I can use the server ay 8080 but at 8443 it's not workin with https. I am not getting any exception.Everything is showing fine.but the port is not open.I think some one can help me. thanks in advance vineesh
Re: Context path changes in context.xml not working
From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? I thought I remembered something about this, and went googling for the issue. Take a look at: http://marc.theaimsgroup.com/?l=tomcat-userm=110989168604231w=2 If you put your Context fragment in conf/[enginename]/[hostname]/dir1#dir2#appname.xml you can access the webapp via http://[hostname]/dir1/dir2/appname, which I think is what you want. Haven't been able to find this in the Tomcat doc yet, but I did test it successfully on 5.5.9. Have no idea if this trick with the # would work on the name of a .war file. - 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: custom session manager
On 10/6/05, Mark [EMAIL PROTECTED] wrote: basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not logout 4. Start browser up again 5. try and log in 6. Do not allow login, have user 'reconnect' to the old session created in step 1. I have written quite a few web based apps, and I know of no way to kill the session at step 3. pretty easy, set session timeout to 1 minute and integrate a hidden frame or javascript-loaded-image in your application that reloads all 30 seconds. 60-99 seconds after the user closed his browser the session would be killed. Hope this clears things up. Thanks again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]