Tomcat performance issue?
Hi all, I've tried searching the archives but have come up empty-handed. A few days ago I received a few complaints that my users hit a certain point in the application and could go no further. This point was when Apache gives control to Tomcat. I checked the log and found this. Apr 4, 2004 2:19:43 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (75) are currently busy, waiting. Increase maxThreads (75) or check the servlet status The only thing that did the trick was restarting Tomcat and Apache. Any ideas on what these errors mean? Thanks in advance. Denise Mangano Complus Data Innovations, Inc. 914-747-1200
Re: Virtual Host - combo with Apache Virtual host
Followup I commented out the original Apache settting and that finally allowed my Tomcat setting two work.. That still leaves me trying to get the static pages to load from the Apache "contexts"...??? John B. Moore wrote: Greetings, Can't seem to get the dots connect between an Apache defined Virtual host and one defined in server.xml. The desired effect is that I want static html pages loaded from Apache and jsp/servlet loaded by Tomcat from the same "virtual host" definition. Read a lot of instructions/books..etc and have in the past had no problems with using the default "localhost" (out of the box) setup now I need this more complex arrangement and I'm missing a piece.. can't figure out what it is... Following are the pieces I thought were necessary... On Apache (2.0.48) I have name based virtual hosting.. Example (snipped version) ServerName dev1.adomain.com ...other stuff. On Tomcat (4.1.29) (abreviated) the Server.xml I have ... other stuff This generates the correct mod_jk.conf which is included in the httpd.conf file at the end.. I see my web application defined there and all looks "correct" with the entry... ServerName dev1.adomain.com ...etc... I have a JkMount as follows (example) JkMount /MyWebAp/servletname ajp13 JkMount /MyWebAp/*.jsp ajp13 (started and restarted everything several times..) Unfortunately the following Url does not work http://dev1.adomain.com/MyWebAp/servletname nor http://dev1.adomain.com/MyWebAp/index.jsp ... I get an Apache "Not Found"..etc... Obviously I've missed a dot so it is not connecting.. Basically I suspect that the Virtualhost def in httpd.conf is conflicting with the one supplied in mod_jk.conf.. But so far I have not been able to resolve this.. (Notes.. assume the example domain "dev1.adomain.com" points to 207.137.13.166 is registered with a DNS service. I have no problems seeing static pages at that domain in the htdocs/dev1 directory) Clues and suggestions.. 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]
Clustering Application Scope Objects
I've read documentation for The Tomcat 5 Servlet/JSP Container: Clustering/Session Replication HOW-TO http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html I understand clustering for individual user sessions. Are there any correlated methods for clustering application scope objects? The J2EE API for the Interface ServletContext states, "In the case of a web application marked "distributed" in its deployment descriptor, there will be one context instance for each virtual machine. In this situation, the context cannot be used as a location to share global information (because the information won't be truly global). Use an external resource like a database instead." Rather than use a database, what I would like to be able to do is make a call to servlet.getServletContext().setAttribute(key, object); and have the object stored in the application scope of all servers in the cluster. I know that EJBs were designed to serve this purpose; however, I would like to bypass the overhead and complexities of EJBs. If there isn't a switch that can be flipped in Tomcat, there might be a way to create a lightweight JMS administration class to serve this purpose. Has anyone tried this? If the answer to this question is RTFM, please send a link; I've looked through the documentation and I can't seem to find a clear reference. Thanks for your time and consideration. Mike __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts with Tomcat and Apache
Thanks! -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 3:15 PM To: Tomcat Users List Subject: Re: Struts with Tomcat and Apache On Fri, Apr 09, 2004 at 03:01:30PM -0700, David Short wrote: : Hey John, : : When you get home, would you mind posting the names of the books? I'm not John, but I'll play him on TV. ;) Seriously: "Struts in Action" (Husted et al, Manning Press) has been my guide. It's a little heavy on the theory at times, but I find that much more useful than the quick-hit books that leave you stranded the minute you want to do something advanced. This text covers Tiles, I18N, declarative exception handling, and several other topics that other books (at the time, at least) either glossed over or omitted entirely. Don't be fooled by its age: it's technically written for Struts 1.0 (with a chapter or two on 1.1), but much of the book is Overall Struts Concepts which makes it largely version-independent. Just be careful of which printing you get: the first printing was rife with typos. For a while I had two bookmarks: one, for the page I was reading; the other, for the page I'd made corrections based on the publisher's errata site... ;) If you're interested, there was also a recent thread on the struts-user list of this same topic. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
On Fri, Apr 09, 2004 at 03:01:30PM -0700, David Short wrote: : Hey John, : : When you get home, would you mind posting the names of the books? I'm not John, but I'll play him on TV. ;) Seriously: "Struts in Action" (Husted et al, Manning Press) has been my guide. It's a little heavy on the theory at times, but I find that much more useful than the quick-hit books that leave you stranded the minute you want to do something advanced. This text covers Tiles, I18N, declarative exception handling, and several other topics that other books (at the time, at least) either glossed over or omitted entirely. Don't be fooled by its age: it's technically written for Struts 1.0 (with a chapter or two on 1.1), but much of the book is Overall Struts Concepts which makes it largely version-independent. Just be careful of which printing you get: the first printing was rife with typos. For a while I had two bookmarks: one, for the page I was reading; the other, for the page I'd made corrections based on the publisher's errata site... ;) If you're interested, there was also a recent thread on the struts-user list of this same topic. -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]
Virtual Host - combo with Apache Virtual host
Greetings, Can't seem to get the dots connect between an Apache defined Virtual host and one defined in server.xml. The desired effect is that I want static html pages loaded from Apache and jsp/servlet loaded by Tomcat from the same "virtual host" definition. Read a lot of instructions/books..etc and have in the past had no problems with using the default "localhost" (out of the box) setup now I need this more complex arrangement and I'm missing a piece.. can't figure out what it is... Following are the pieces I thought were necessary... On Apache (2.0.48) I have name based virtual hosting.. Example (snipped version) ServerName dev1.adomain.com ...other stuff. On Tomcat (4.1.29) (abreviated) the Server.xml I have ... other stuff This generates the correct mod_jk.conf which is included in the httpd.conf file at the end.. I see my web application defined there and all looks "correct" with the entry... ServerName dev1.adomain.com ...etc... I have a JkMount as follows (example) JkMount /MyWebAp/servletname ajp13 JkMount /MyWebAp/*.jsp ajp13 (started and restarted everything several times..) Unfortunately the following Url does not work http://dev1.adomain.com/MyWebAp/servletname nor http://dev1.adomain.com/MyWebAp/index.jsp ... I get an Apache "Not Found"..etc... Obviously I've missed a dot so it is not connecting.. Basically I suspect that the Virtualhost def in httpd.conf is conflicting with the one supplied in mod_jk.conf.. But so far I have not been able to resolve this.. (Notes.. assume the example domain "dev1.adomain.com" points to 207.137.13.166 is registered with a DNS service. I have no problems seeing static pages at that domain in the htdocs/dev1 directory) Clues and suggestions.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can someone help me to fix the soft link problem in Tomcat 4.1.27
Kam, The existence of a context in the server.xml will not prevent Tomcat from unpacking a war. I have a development box that has the context defined and the manager can undeploy and deploy the war just fine. Also restart is not required. What Tomcat will not do is unpack any war for which a matching directory already exist under webapps. Part of the undeploy action of the manager is to delete the directory. Doug - Original Message - From: "Kam Lung Leung" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 5:44 PM Subject: RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27 > Thank Subir, > > The link does help me to fix the problem. After creating a context for my web > component DistributedInputOutput in the server.xml file. Tomcat is no longer > unpack my web componemt DistributeInputOutput.war at startup. Tomcat complains > the directory is not accessible. In fact Tomcat will not unpack any web > components said myWebComp.war when there is a Context defined in the server.xml. > However, Tomcat does unpack other web components when the server.xml does not > contains a Context defined for this web component. I come to a conclusion is > that the Context is used for web component that need not to be unpacked when > Tomcat startup. Another the way to say this is that if I need the web component > to be unpack when Tomcat startup, then I should not defined a Context for that > web component in the server.xml. Please let me know if this is not the case. > > Thank, > Kam > > > On Thu, 8 Apr 2004 16:12:50 -0700, "Subir Sengupta" wrote: > > > > > http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2 > > > > > > -Original Message- > > From: Kam Lung Leung [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 08, 2004 2:54 PM > > To: [EMAIL PROTECTED] > > Subject: Can someone help me to fix the soft link problem in Tomcat > > 4.1.27 > > > > > > Hi, > > > > I installed Tomcat 4.1.27 on our server and drop a myApp.war into the > > webapps directory. We restart Tomcat and wait for it to finish to unpack > > all web components, then we stop Tomcat. We create a soft link within > > our web component to point to directory outside the root context of our > > web component. But Tomcat says the requested resource is not available > > when we try to access the soft linked directory from the browser. In > > fact a "null" shows up in the last modified column. Can someone please > > tell me what to do to fix this problem. > > Your help is greatly appreciated. > > > > Kam > > > > - > > 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] > > Kam Lung Leung > Vice President of Engineering > Wireless Web Access Inc. > (303) 627-9684 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27
Kam, Your war file should still get unpacked. Having a context defined will not affect that. You probably have a misconfiguration in your server.xml. If you post your server.xml here then someone may spot the problem. Subir -Original Message- From: Kam Lung Leung [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:44 PM To: [EMAIL PROTECTED] Subject: RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27 Thank Subir, The link does help me to fix the problem. After creating a context for my web component DistributedInputOutput in the server.xml file. Tomcat is no longer unpack my web componemt DistributeInputOutput.war at startup. Tomcat complains the directory is not accessible. In fact Tomcat will not unpack any web components said myWebComp.war when there is a Context defined in the server.xml. However, Tomcat does unpack other web components when the server.xml does not contains a Context defined for this web component. I come to a conclusion is that the Context is used for web component that need not to be unpacked when Tomcat startup. Another the way to say this is that if I need the web component to be unpack when Tomcat startup, then I should not defined a Context for that web component in the server.xml. Please let me know if this is not the case. Thank, Kam On Thu, 8 Apr 2004 16:12:50 -0700, "Subir Sengupta" wrote: > > http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2 > > > -Original Message- > From: Kam Lung Leung [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 2:54 PM > To: [EMAIL PROTECTED] > Subject: Can someone help me to fix the soft link problem in Tomcat > 4.1.27 > > > Hi, > > I installed Tomcat 4.1.27 on our server and drop a myApp.war into the > webapps directory. We restart Tomcat and wait for it to finish to > unpack all web components, then we stop Tomcat. We create a soft link > within our web component to point to directory outside the root > context of our web component. But Tomcat says the requested resource > is not available when we try to access the soft linked directory from > the browser. In fact a "null" shows up in the last modified column. > Can someone please tell me what to do to fix this problem. Your help > is greatly appreciated. > > Kam > > - > 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] Kam Lung Leung Vice President of Engineering Wireless Web Access Inc. (303) 627-9684 - 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: Struts with Tomcat and Apache
Would also mind stating which one you recommend the most? -Original Message- From: John Thompson [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 3:03 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Struts with Tomcat and Apache You bet. One is at home and the other at the office. I'll post as soon as I can. -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 5:02 PM To: 'Tomcat Users List' Subject: RE: Struts with Tomcat and Apache Hey John, When you get home, would you mind posting the names of the books? Thanks, Dave -Original Message- From: John Thompson [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:55 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Struts with Tomcat and Apache Ralf, I'm not familiar with the document you refer to but Struts is essentially a library of functions and JSP tags that are part of your servlet. Neither the Tomcat nor Apache configurations are really affected by Struts. The documents at http://jakarta.apache.org/struts/ talk about how to put the libraries in the right places. If you haven't used Struts before, I'd suggest the bookstore. There are a couple of decent books on it. Sorry, but I don't have either of mine with me right now. It definitely was not straight forward but made easier with lots of examples. John -Original Message- From: Ralf Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 4:39 PM To: 'Tomcat Users List' Subject: Struts with Tomcat and Apache -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts documentation only talks about Tomcat 3.x. My first try was to follow the instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w ZkhLHZdDKMiqy3HoijINtCQ= =hJ/+ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
On Fri, Apr 09, 2004 at 11:38:38PM +0200, Ralf Schneider wrote: : I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts : documentation only talks about Tomcat 3.x. Setting up Apache+Tomcat and Tomcat+Struts are two separate processes that don't necessarily have to be done at the same time: * If you're new to Tomcat, you'd do well to start with a basic Tomcat+Struts approach first, then add Apache later on. * If you want only to experiment with Struts from a development point of view, leave Apache out of the picture altogether. As someone else mentioned, the struts-blank app is just a standard webapp. The Tomcat docs describe the process of deploying a webapp. http://jakarta.apache.org/tomcat -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: Struts with Tomcat and Apache
You bet. One is at home and the other at the office. I'll post as soon as I can. -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 5:02 PM To: 'Tomcat Users List' Subject: RE: Struts with Tomcat and Apache Hey John, When you get home, would you mind posting the names of the books? Thanks, Dave -Original Message- From: John Thompson [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:55 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Struts with Tomcat and Apache Ralf, I'm not familiar with the document you refer to but Struts is essentially a library of functions and JSP tags that are part of your servlet. Neither the Tomcat nor Apache configurations are really affected by Struts. The documents at http://jakarta.apache.org/struts/ talk about how to put the libraries in the right places. If you haven't used Struts before, I'd suggest the bookstore. There are a couple of decent books on it. Sorry, but I don't have either of mine with me right now. It definitely was not straight forward but made easier with lots of examples. John -Original Message- From: Ralf Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 4:39 PM To: 'Tomcat Users List' Subject: Struts with Tomcat and Apache -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts documentation only talks about Tomcat 3.x. My first try was to follow the instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w ZkhLHZdDKMiqy3HoijINtCQ= =hJ/+ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unexpected tomcat 4.1.27-30 shutdown problem
Hi, I am running tomcat 4.1.27/29/30 on a Solaris 5.7 or 5.8 and it shutsdown for no apparent reason. Sometimes it can go for hours without a problem, othetimes it stops much sooner. There is no obvious error, just a shutdown. The same code built on another Solaris box and/or HPUX runs without a problem. Any ideas how I can debug this? Thanks, Andy Starting service Tomcat-Standalone Apache Tomcat/4.1.29 [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util. LocalStrings', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.actio n.ActionResources', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin .ApplicationResources', returnNull=true [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=1/51 config=/export/home/wscmeadm/jakarta -tomcat-4.1.29/conf/jk2.properties Stopping service Tomcat-Standalone [INFO] Http11Protocol - -Stoping http11 protocol on 8080 Catalina:type=ThreadPoo l,name=http8080 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts with Tomcat and Apache
Hey John, When you get home, would you mind posting the names of the books? Thanks, Dave -Original Message- From: John Thompson [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:55 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Struts with Tomcat and Apache Ralf, I'm not familiar with the document you refer to but Struts is essentially a library of functions and JSP tags that are part of your servlet. Neither the Tomcat nor Apache configurations are really affected by Struts. The documents at http://jakarta.apache.org/struts/ talk about how to put the libraries in the right places. If you haven't used Struts before, I'd suggest the bookstore. There are a couple of decent books on it. Sorry, but I don't have either of mine with me right now. It definitely was not straight forward but made easier with lots of examples. John -Original Message- From: Ralf Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 4:39 PM To: 'Tomcat Users List' Subject: Struts with Tomcat and Apache -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts documentation only talks about Tomcat 3.x. My first try was to follow the instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w ZkhLHZdDKMiqy3HoijINtCQ= =hJ/+ -END PGP SIGNATURE- - 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: Struts with Tomcat and Apache
Ralf, I'm not familiar with the document you refer to but Struts is essentially a library of functions and JSP tags that are part of your servlet. Neither the Tomcat nor Apache configurations are really affected by Struts. The documents at http://jakarta.apache.org/struts/ talk about how to put the libraries in the right places. If you haven't used Struts before, I'd suggest the bookstore. There are a couple of decent books on it. Sorry, but I don't have either of mine with me right now. It definitely was not straight forward but made easier with lots of examples. John -Original Message- From: Ralf Schneider [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 4:39 PM To: 'Tomcat Users List' Subject: Struts with Tomcat and Apache -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts documentation only talks about Tomcat 3.x. My first try was to follow the instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w ZkhLHZdDKMiqy3HoijINtCQ= =hJ/+ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can someone help me to fix the soft link problem in Tomcat 4.1.27
Thank Subir, The link does help me to fix the problem. After creating a context for my web component DistributedInputOutput in the server.xml file. Tomcat is no longer unpack my web componemt DistributeInputOutput.war at startup. Tomcat complains the directory is not accessible. In fact Tomcat will not unpack any web components said myWebComp.war when there is a Context defined in the server.xml. However, Tomcat does unpack other web components when the server.xml does not contains a Context defined for this web component. I come to a conclusion is that the Context is used for web component that need not to be unpacked when Tomcat startup. Another the way to say this is that if I need the web component to be unpack when Tomcat startup, then I should not defined a Context for that web component in the server.xml. Please let me know if this is not the case. Thank, Kam On Thu, 8 Apr 2004 16:12:50 -0700, "Subir Sengupta" wrote: > > http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2 > > > -Original Message- > From: Kam Lung Leung [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 2:54 PM > To: [EMAIL PROTECTED] > Subject: Can someone help me to fix the soft link problem in Tomcat > 4.1.27 > > > Hi, > > I installed Tomcat 4.1.27 on our server and drop a myApp.war into the > webapps directory. We restart Tomcat and wait for it to finish to unpack > all web components, then we stop Tomcat. We create a soft link within > our web component to point to directory outside the root context of our > web component. But Tomcat says the requested resource is not available > when we try to access the soft linked directory from the browser. In > fact a "null" shows up in the last modified column. Can someone please > tell me what to do to fix this problem. > Your help is greatly appreciated. > > Kam > > - > 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] Kam Lung Leung Vice President of Engineering Wireless Web Access Inc. (303) 627-9684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts with Tomcat and Apache
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts documentation only talks about Tomcat 3.x. My first try was to follow the instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w ZkhLHZdDKMiqy3HoijINtCQ= =hJ/+ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jdk1.4 & tomcat5 & log4j finds java.util.logging Logger not log4j
What are your imports? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Fri Apr 09 16:58:08 2004 To: [EMAIL PROTECTED] Subject:jdk1.4 & tomcat5 & log4j finds java.util.logging Logger not log4j hi all I am running tomcat 5, with jdk 1.4 and have not changed any of the jar directories (server/lib or common/lib) by adding my log4j.jar and the problem is when I got log, it is finding the jdk1.4 logging and not log4j. I have do log4j.jar in my WEB-INF/lib below is my init log4j init servlet and snippet of web.xml, all seems fine in the 1st servlet I hit, i do a private Log log = LogFactory.getLog(this.getClass().getName()); and then a print which Logger i am using and it shows java.util.logging.Logger System.out.println("* log=" +log); which yields >>> [EMAIL PROTECTED] and then System.out.println("* log.getLogger() =" +((org.apache.commons.logging.impl.Jdk14Logger)log).getLogger()); which yields >>> log.getLogger() [EMAIL PROTECTED] How can I get it to use log4j, i dropped log4j.jar in myapp/WEB-INF/lib/ and thought that would be enough any suggestions, and thanks for the help, Happy Easter this is an example from Struts Framework book (Switchback Software LLC), almost exact so I thought it should work === public class Log4jInitServlet extends HttpServlet { public void init() { String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); log("prefix+file=" +prefix+file); if (file != null) { PropertyConfigurator.configure(prefix+file); } else { BasicConfigurator.configure(); } } public void doGet(HttpServletRequest req, HttpServletResponse res) { } } and web.xml --- log4j-init cdmanager.Log4jInitServlet log4j-init-file WEB-INF\log4j.properties 1 and my log4j.properties --- # Set root category priority to DEBUG and its only appender to A1. log4j.rootCategory=DEBUG,A1,F1 log4j.category.cdmanager=DEBUG,A1,F1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout # log4j.appender.A1.layout.ConversionPattern=%d %-4r [%t](%F:%L) %-5p %c %x - %m%n log4j.appender.A1.layout.ConversionPattern=%d [%t](%F:%L) %-5p %x - %m%n # F1 is set to be a RollingFileAppender that uses PatternLayout, add F1 # to the desired categories to enable file trace log4j.appender.F1=org.apache.log4j.RollingFileAppender log4j.appender.F1.layout=org.apache.log4j.PatternLayout log4j.appender.F1.layout.ConversionPattern=%p %t %c - %m%n log4j.appender.F1.File=D:\\Tomcat5.0\\logs\\mylog.log log4j.appender.F1.MaxFileSize=100KB log4j.appender.F1.MaxBackupIndex=1 log4j.category.org=WARN,A1,F1 - 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: Multi Threads
On Fri, Apr 09, 2004 at 03:29:47PM -0400, shyam wrote: : I have a question. When tomcat starts , I have a loadonstartup servlet : which creates new thread and this thread will not die. Now the question : is when I shut down tomcat , I want this thread to die . I want to know : how tomcat notifies its sub processes about the shut down. Sounds like a job for a ContextListener. Not only were they designed specifically for this purpose, but they're part of the servlet spec (2.3 and above, I believe) and thus portable outside of Tomcat. -not that anyone would migrate away from Tomcat, of course... ;) -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]
jdk1.4 & tomcat5 & log4j finds java.util.logging Logger not log4j
hi all I am running tomcat 5, with jdk 1.4 and have not changed any of the jar directories (server/lib or common/lib) by adding my log4j.jar and the problem is when I got log, it is finding the jdk1.4 logging and not log4j. I have do log4j.jar in my WEB-INF/lib below is my init log4j init servlet and snippet of web.xml, all seems fine in the 1st servlet I hit, i do a private Log log = LogFactory.getLog(this.getClass().getName()); and then a print which Logger i am using and it shows java.util.logging.Logger System.out.println("* log=" +log); which yields >>> [EMAIL PROTECTED] and then System.out.println("* log.getLogger() =" +((org.apache.commons.logging.impl.Jdk14Logger)log).getLogger()); which yields >>> log.getLogger() [EMAIL PROTECTED] How can I get it to use log4j, i dropped log4j.jar in myapp/WEB-INF/lib/ and thought that would be enough any suggestions, and thanks for the help, Happy Easter this is an example from Struts Framework book (Switchback Software LLC), almost exact so I thought it should work === public class Log4jInitServlet extends HttpServlet { public void init() { String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); log("prefix+file=" +prefix+file); if (file != null) { PropertyConfigurator.configure(prefix+file); } else { BasicConfigurator.configure(); } } public void doGet(HttpServletRequest req, HttpServletResponse res) { } } and web.xml --- log4j-init cdmanager.Log4jInitServlet log4j-init-file WEB-INF\log4j.properties 1 and my log4j.properties --- # Set root category priority to DEBUG and its only appender to A1. log4j.rootCategory=DEBUG,A1,F1 log4j.category.cdmanager=DEBUG,A1,F1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout # log4j.appender.A1.layout.ConversionPattern=%d %-4r [%t](%F:%L) %-5p %c %x - %m%n log4j.appender.A1.layout.ConversionPattern=%d [%t](%F:%L) %-5p %x - %m%n # F1 is set to be a RollingFileAppender that uses PatternLayout, add F1 # to the desired categories to enable file trace log4j.appender.F1=org.apache.log4j.RollingFileAppender log4j.appender.F1.layout=org.apache.log4j.PatternLayout log4j.appender.F1.layout.ConversionPattern=%p %t %c - %m%n log4j.appender.F1.File=D:\\Tomcat5.0\\logs\\mylog.log log4j.appender.F1.MaxFileSize=100KB log4j.appender.F1.MaxBackupIndex=1 log4j.category.org=WARN,A1,F1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi Threads
Hi all, I have a question. When tomcat starts , I have a loadonstartup servlet which creates new thread and this thread will not die. Now the question is when I shut down tomcat , I want this thread to die . I want to know how tomcat notifies its sub processes about the shut down. Currently because of the thread which active the shut down process takes a longer time . And sometimes I gget Thread death exception in my logs. I want to prevent it . Any help in this issue would be grateful Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_rewrite replacement within tomcat
On Fri, 9 Apr 2004, Daniel Gibby wrote: > If only tomcat had the mod_rewrite capabilities that apache does, and > strong perl and php performance, I would be glad to trash mod_jk (thus > getting rid of apache as well). http://tuckey.org Look for his urlrewriter. It is a java implementation of Apache's mod_rewrite for use on Tomcat. The latest version is 1.0 - as long as you get version 0.8 or better, you're safe (there were some bugs in earlier versions) - Duane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to start a Realm from a servlet or a filter
Yoav, I have written this code, but "srv" is always an empty array. I use tomcat-5.0.19 Server server = ServerFactory.getServer(); Service service = server.findService("Catalina"); Service[] srv = server.findServices(); for (int i = 0; i < srv.length; i++) { Service s = srv[i]; log.debug("SERVICE: " + s.getName()); } Zsolt > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 7:00 PM > To: Tomcat Users List > Subject: RE: How to start a Realm from a servlet or a filter > > > > Hi, > > >And how can I access or start a Realm? > > What is up with this list? Do people don't know how to read JavaDocs, > or do they simply not care? Sigh... > > Server server = ServerFactory.getServer(); > Service service = server.findService("Catalina"); > Container serviceContainer = service.getContainer(); > Realm serviceRealm = serviceContainer.getRealm(); // May be null > > You would/can continue to drill down from the service using findChildren > to locate Engine/Host/Context elements and their associated Realms, if > any. > > As to how to start one: look at the tomcat startup code, that's why it's > open-source. > > Yoav Shapira > > > > 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]
[OFF-TOPIC] Chiba
Hi, Does anyone use Chiba (http://chiba.sourceforge.net/) in production? If so, please share your experience, opinions, thoughts, etc. Yoav Shapira Millennium Research Informatics 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: Yoav -->RE: TC 5 production use
Also keep in mind that Apache isn't the *only* thing you can put in front of Tomcat. While we do have Apache in the mix (for some legacy apps), we also run Squid [1] in reverse-proxy mode in front of *that* to (a) reduce response time on cachable content and (b) remove some of the load on Tomcat. It did mean we had to be pretty careful about our HTTP cache-control headers, but it's been a nice solution. dwh [1] http://www.squid-cache.org/ Shapira, Yoav wrote: This is a good example of something that hits on Apache's strong points: perl, mod_php, rewriting. So it's probably good for you to use Apache. But many people on this list come here because they work with servlets and JSPs, and maybe some static content. In many of those cases, Apache is not needed. And in no case should it be added without careful thought and consideration, as it's a significant architecture piece. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
> -Original Message- > From: Josh Rehman > > (perl & php support in any servlet container seems...unlikely :) > But don't put your money on it. Perhaps we'll surprise few peoples :-) MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yoav -->RE: TC 5 production use
Norris Shelton wrote: What are you thoughts on a JBoss 4 setup? Do you still recommend staying away from Apache? JBoss 4 is alpha for now. I recommend trying JBoss 3.2.4 RC 1 if you want something more stable. -- 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: tomcat 3.3 and jstl
I believe JSTL expects JSP 1.2 support. Tomcat 3.3.x provides JSP 1.1. I think the simplest choice to use JSTL is to upgrade your Tomcat. Cheers, Larry > -Original Message- > From: Peter Bosmans [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 10:39 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.3 and jstl > > > Hi all, > > Short question. > I'm using JSTL within tomcat3.3, but i've got the next error message : > > org.apache.jasper.compiler.CompileException: > D:\jakarta-tomcat-3.3.2\webapps\standard-examples\elsupport\Ou > t.jsp(10,2) > Unable to load class null > > Is it possible to use JSTL with tomcat3.3 ? > If so, what can i do, to resolv this problem ? > > Thanks, > > -- > Peter Bosmans > Katholieke Hogeschool Limburg > Universitaire Campus Gebouw B Bus 1 > 3590 Diepenbeek > Tel. +32 11 230 770 > Fax. +32 11 230 789 > 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: Yoav -->RE: TC 5 production use
Having something implies that you could lose that something and not change what it is. Thus Tomcat would *be* a web server. For without it , it would not be fundamentally the same. As said this is a "Purely a philosophical question" . And as I said in other post, this is my opinion. Feel free to press delete. Doug - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 2:47 PM Subject: RE: Yoav -->RE: TC 5 production use > > > > > > Is Tomcat considered to *be* a web server vs *having* a web server? I > thought the HTTP connector was the way to connect HTTP clients (browsers) > to the JSP/Servlet container. > > Peace... > > Tom > > > > > "Shapira, Yoav" > <[EMAIL PROTECTED] > .com> To >"Tomcat Users List" > 04/09/2004 11:31 <[EMAIL PROTECTED]> > AM cc > >Subject > Please respond to RE: Yoav -->RE: TC 5 production use >"Tomcat Users >List" > <[EMAIL PROTECTED] > rta.apache.org> > > > > > > > > Hi, > > >Apache is web server, but Tomcat is not, while > > Tomcat is a web server: all that a piece of software needs to do in > order to be a web server is implement the HTTP protocol, which tomcat > does. > > >It is not a problem with JK connector, I don't use > >JK2. > > It's not a problem for you, and not for me, but it is for many people. > > >Yoav, you provide a great contribution to this list, > >thank you very much! > > No problem, glad to help. > > Yoav Shapira > > > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yoav -->RE: TC 5 production use
Shapira, Yoav wrote: Hi, (perl & php support in any servlet container seems...unlikely :) PHP, not so unlikely ;) http://wiki.apache.org/jakarta-tomcat/UsingPhp Fascinating - I'd love to know what the web.xml looks like and what the server looks like. I'd guess the php servlet is a very simple JNI bridge to the PHP native libraries. Maybe I'll try it out! http://marc.theaimsgroup.com/?l=tomcat-dev&m=108099227127507&w=2 http://www.jcp.org/en/jsr/detail?id=223 Didn't know about this. Also fascinating. As for perl, you can do it through CGI. Yoav Shapira 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] -- Josh Rehman citysearch.com 213.739.3559 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yoav -->RE: TC 5 production use
Since the fire is burning I'll add my load (of what you can decide). Equate it to buying a vehicle. Car SUV Truck Van Motorcycle Tractor-Trailer 2wd 4wd Awd Each has features the other don't. Each can serve multiple purposes. NONE can serve ALL purposes. Look at your needs. Pick the best one. Ten years ago the choices were the same but the capabilities and features were not. Each time you need to look at what is on the market NOW. Then make a decision. If nothing fits your needs then you have two choices compromise or buy two or more that will or build your own. I am a new comer to the world of Tomcat, but I have read of it's past and respect it for what it is. If you have a different opinion, welcome to the human race. And as Yoav asked please start another thread. Not only to keep continuity but also to improve your chances of getting an answer. I don't always read every message if the topic is not something I either know about or am interested in so someone with the knowledge you seek may be skipping this thread and miss the chance to assist you. Wow what a good rant does for a little stress relief. Doug - Original Message - From: "Daniel Gibby" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 2:40 PM Subject: Re: Yoav -->RE: TC 5 production use > Also, I definitely don't want to be changing the configuration whenever > I have a new partner that needs another cobranded version of the webapp > (meaning I would need to give them their own hostname or subdomain... > Can tomcat be setup to allow a VirtualHost to accept multiple domain names? > > Daniel Gibby wrote: > > > I guess part of my problem is that I don't have knowledge as to > > whether tomcat's virtual hosts can be wildcarded to accept multiple > > *.domainname.com hosts all within one app. Is that possible with > > tomcat? Is it part of the spec? I wouldn't know where to look to find > > out. > > > > > - > 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: Yoav -->RE: TC 5 production use
Hi, >Is Tomcat considered to *be* a web server vs *having* a web server? I >thought the HTTP connector was the way to connect HTTP clients (browsers) >to the JSP/Servlet container. Purely a philosophical question IMHO ;) Technically, a piece of software that can respond to HTTP requests per the HTTP protocol specification is a web server. You can take a black-, white-, or gray-box view of it. Yoav Shapira 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]
Tomcat5/IIS6/ Virtual host to subdir problem
I am running IIS6 with Tomcat 5 and jspISAPI to connect the two. I been trying to setup virtual hosting with no luck for the past 2 days. I know how to do so that a domain name user.com goes to a standalone java application in Tomcat/webapps/userApp but what I actually need to do is to have all the virtual users use the same application and point to a subdirectory within that application so user1.com goes to /Tomcat/webapps/Application/users/user1 and user2.com goes to /Tomcat/webapps/Application/users/user2 Any ideas? Thank you Fedor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
Hi, >(perl & php support in any servlet container seems...unlikely :) PHP, not so unlikely ;) http://wiki.apache.org/jakarta-tomcat/UsingPhp http://marc.theaimsgroup.com/?l=tomcat-dev&m=108099227127507&w=2 http://www.jcp.org/en/jsr/detail?id=223 As for perl, you can do it through CGI. Yoav Shapira 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: Yoav -->RE: TC 5 production use
Is Tomcat considered to *be* a web server vs *having* a web server? I thought the HTTP connector was the way to connect HTTP clients (browsers) to the JSP/Servlet container. Peace... Tom "Shapira, Yoav" <[EMAIL PROTECTED] .com> To "Tomcat Users List" 04/09/2004 11:31 <[EMAIL PROTECTED]> AM cc Subject Please respond to RE: Yoav -->RE: TC 5 production use "Tomcat Users List" <[EMAIL PROTECTED] rta.apache.org> Hi, >Apache is web server, but Tomcat is not, while Tomcat is a web server: all that a piece of software needs to do in order to be a web server is implement the HTTP protocol, which tomcat does. >It is not a problem with JK connector, I don't use >JK2. It's not a problem for you, and not for me, but it is for many people. >Yoav, you provide a great contribution to this list, >thank you very much! No problem, glad to help. Yoav Shapira 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]
mod_rewrite replacement within tomcat
If only tomcat had the mod_rewrite capabilities that apache does, and strong perl and php performance, I would be glad to trash mod_jk (thus getting rid of apache as well). Are there any good rewrite-like capabilities available for URL matching / rewriting that someone could share? I'm sure a filter could be made to do the work that I need... but I also would need to be able to have multiple virtual hosts use the same code base, without having actually separate apps. I have cobrands / private labels of my site with just one tomcat app running. So I have like 50 apache virtual hosts that really just write additional data to the query string using mod_rewrite. It works pretty spiffy, but it isn't elegant. My java application code partially relies on either the hostname (in the case that I didn't use mod_rewrite) or the query string that was passed in from mod_rewrite for a key to what the code should do within just one code base from just one running tomcat app. Also, I definitely don't want to be changing the configuration whenever I have a new partner that needs another cobranded version of the webapp (meaning I would need to give them their own hostname or subdomain... Can tomcat be setup to allow a VirtualHost to accept multiple domain names? Ideas on how to get rid of the mod_rewrite portion using a tomcat filter or something? Daniel Gibby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
One issue I've had with using an Apache front-end to Tomcat 4 and 5 is having to restart Apache if I need to restart Tomcat. So, if I have Apache 2 w/ mod_jk2 connected to Tomcat 5 and I deploy a new webapp using the Tomcat Manager web interface I have to restart Tomcat after using the Tomcat Administration web interface to configure the data source for the newly deployed web app. Once I restart Tomcat, I can't connect via the Apache front-end until I bounce Apache. Then all is well. Using Apache or IIS as a front end is attractive since I can "hide" the backend Tomcat container(s) I connect to from the user using the web app. I can control which container gets used through the mod_jk properties file. I was really bummed when I learned I had to bounce the web server after bouncnig Tomcat since the mod_jk (or mod_jk2) connector ceased to properly connect without boucing the web server. Peace... Tom Evgeny Gesin <[EMAIL PROTECTED] o.com> To Tomcat Users List 04/09/2004 11:26 <[EMAIL PROTECTED]> AM cc Subject Please respond to RE: Yoav -->RE: TC 5 production use "Tomcat Users List" <[EMAIL PROTECTED] rta.apache.org> Hi, --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > Again, that's not what I said. You just have to > evaluate your > requirements carefully. Various factors like the > content mix (%static > vs. %dynamic), scalability requirements, SSL load, > and others all figure > into this decision. Apache is web server, but Tomcat is not, while technically Tomcat can serve html and other docs. Apache also provides more configuration options for scalability, security, etc. > For better or worse, the connectors between Apache > and Tomcat not always easy to set up. It's by far > the most common question/problem reported > on this list. It is not a problem with JK connector, I don't use JK2. > But part of the reason it's such a common topic is > because more people are using it than should be. > Not coincidentally, many of these people are ones > who read somewhere once that tomcat is not > a production-quality HTTP server, or that you have > to put Apache in front for production installations, > and didn't bother to verify/confirm/benchmark this > assertion before following it blindly. Those arguments sound as rumour, and of course should not be used for serious decisions. At least Tomcat 4.1.29 is a good production version. Yoav, you provide a great contribution to this list, thank you very much! -- Evgeny Javadesk __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - 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: Yoav -->RE: TC 5 production use
Also, I definitely don't want to be changing the configuration whenever I have a new partner that needs another cobranded version of the webapp (meaning I would need to give them their own hostname or subdomain... Can tomcat be setup to allow a VirtualHost to accept multiple domain names? Daniel Gibby wrote: I guess part of my problem is that I don't have knowledge as to whether tomcat's virtual hosts can be wildcarded to accept multiple *.domainname.com hosts all within one app. Is that possible with tomcat? Is it part of the spec? I wouldn't know where to look to find out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
Hi, >If only tomcat had the mod_rewrite capabilities that apache does, and >strong perl and php performance, I would be glad to trash mod_jk (thus >getting rid of apache as well). This is a good example of something that hits on Apache's strong points: perl, mod_php, rewriting. So it's probably good for you to use Apache. But many people on this list come here because they work with servlets and JSPs, and maybe some static content. In many of those cases, Apache is not needed. And in no case should it be added without careful thought and consideration, as it's a significant architecture piece. >Are there any good rewrite-like capabilities available for URL matching >/ rewriting that someone could share? Consider tomcat5's balancer webapp. >I have cobrands / private labels of my site with just one tomcat app That's great, but please keep this thread on-topic. If you want some sort of help with your specific scenario, start another thread ;) Yoav Shapira 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: Yoav -->RE: TC 5 production use
Hi, >Apache is web server, but Tomcat is not, while Tomcat is a web server: all that a piece of software needs to do in order to be a web server is implement the HTTP protocol, which tomcat does. >It is not a problem with JK connector, I don't use >JK2. It's not a problem for you, and not for me, but it is for many people. >Yoav, you provide a great contribution to this list, >thank you very much! No problem, glad to help. Yoav Shapira 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: Yoav -->RE: TC 5 production use
Daniel Gibby wrote: If only tomcat had the mod_rewrite capabilities that apache does, and strong perl and php performance, I would be glad to trash mod_jk (thus getting rid of apache as well). Would this work for you as a mod_rewrite replacement? http://noodle.tigris.org/ (perl & php support in any servlet container seems...unlikely :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting basic Logging up and running
Thank you very much Yoav! I actually ended up just adding the following lines to startup.sh instead of creating the configuration file commons-logging.properties : export -s CATALINA_OPTS="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.defaultlog=debug" That produced an extensive log and gave me the Socket information I needed. That was easy. Thanks again! Jason --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Hi, > > >I tried the debug="99" and got the same results as > > OK. That was worth a try, but the result is not too > surprising, since > much of tomcat's logging is done via commons-logging > now, and the debug > level setting has little or no effect. > > >Global Logger all I should need for all my logging > or > >do I need to define a logger at each level > (connector, > >valve, etc.)? I wouldn't think I would according > to > >the documentation, > > The global Logger is inherited, so you don't need to > define additional > ones. > > > >take any chances. I also noticed that I don't have > >any of the commons-logging jars in my server/lib > >directory but most posts seemed to say I won't need > it > >if I'm content with log4j. Is this true, or do I > need > >both? Any help would be greatly appreciated and > save > >my last remaining hairs. > > You have commons-logging in $CATALINA_HOME/bin as > it's part of the > launch classpath, even before the server/lib > classes. > > When people say you don't need commons-logging if > you're content with > log4j, they are talking about your own webapp's > logging. And they're > right. If you want to adjust tomcat's internal > logging however, as in > this case, then you do need to modify the > commons-logging settings. > > What you need to do is create a commons-logging > configuration file. In > it specify DEBUG-level logging for the > org.apache.catalina packages. > Put this file in $CATALINA_HOME/common/classes and > tomcat will load it > automatically. You will then get additional debug > information. The > file must be called commons-logging.properties I > think. > > Yoav Shapira > > > > 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!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yoav -->RE: TC 5 production use
If only tomcat had the mod_rewrite capabilities that apache does, and strong perl and php performance, I would be glad to trash mod_jk (thus getting rid of apache as well). Are there any good rewrite-like capabilities available for URL matching / rewriting that someone could share? I'm sure a filter could be made to do the work that I need... but I also would need to be able to have multiple virtual hosts use the same code base, without having actually separate apps. I have cobrands / private labels of my site with just one tomcat app running. So I have like 50 apache virtual hosts that really just write additional data to the query string using mod_rewrite. It works pretty spiffy, but it isn't elegant. My java application code partially relies on either the hostname (in the case that I didn't use mod_rewrite) or the query string that was passed in from mod_rewrite for a key to what the code should do within just one code base from just one running tomcat app. I guess part of my problem is that I don't have knowledge as to whether tomcat's virtual hosts can be wildcarded to accept multiple *.domainname.com hosts all within one app. Is that possible with tomcat? Is it part of the spec? I wouldn't know where to look to find out. Ideas on how to get rid of the mod_rewrite portion using a tomcat filter or something? Daniel Gibby Shapira, Yoav wrote: Hi, I use Apache in front of Tomcat a long ago and see no problems? BTW, Apache executes all static content, such as image files. Why you don't recommend Apache? Again, that's not what I said. You just have to evaluate your requirements carefully. Various factors like the content mix (%static vs. %dynamic), scalability requirements, SSL load, and others all figure into this decision. For better or worse, the connectors between Apache and Tomcat not always easy to set up. It's by far the most common question/problem reported on this list. But part of the reason it's such a common topic is because more people are using it than should be. Not coincidentally, many of these people are ones who read somewhere once that tomcat is not a production-quality HTTP server, or that you have to put Apache in front for production installations, and didn't bother to verify/confirm/benchmark this assertion before following it blindly. Yoav Shapira 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: Yoav -->RE: TC 5 production use
Hi, --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > Again, that's not what I said. You just have to > evaluate your > requirements carefully. Various factors like the > content mix (%static > vs. %dynamic), scalability requirements, SSL load, > and others all figure > into this decision. Apache is web server, but Tomcat is not, while technically Tomcat can serve html and other docs. Apache also provides more configuration options for scalability, security, etc. > For better or worse, the connectors between Apache > and Tomcat not always easy to set up. It's by far > the most common question/problem reported > on this list. It is not a problem with JK connector, I don't use JK2. > But part of the reason it's such a common topic is > because more people are using it than should be. > Not coincidentally, many of these people are ones > who read somewhere once that tomcat is not > a production-quality HTTP server, or that you have > to put Apache in front for production installations, > and didn't bother to verify/confirm/benchmark this > assertion before following it blindly. Those arguments sound as rumour, and of course should not be used for serious decisions. At least Tomcat 4.1.29 is a good production version. Yoav, you provide a great contribution to this list, thank you very much! -- Evgeny Javadesk __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
Hi, >I use Apache in front of Tomcat a long ago and see no >problems? BTW, Apache executes all static content, >such as image files. Why you don't recommend Apache? Again, that's not what I said. You just have to evaluate your requirements carefully. Various factors like the content mix (%static vs. %dynamic), scalability requirements, SSL load, and others all figure into this decision. For better or worse, the connectors between Apache and Tomcat not always easy to set up. It's by far the most common question/problem reported on this list. But part of the reason it's such a common topic is because more people are using it than should be. Not coincidentally, many of these people are ones who read somewhere once that tomcat is not a production-quality HTTP server, or that you have to put Apache in front for production installations, and didn't bother to verify/confirm/benchmark this assertion before following it blindly. Yoav Shapira 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/Web application conf: status code 404 versus status code 302 + 200
Good evening I want that it serve the /index.jsp file when a page is not found but as I described (see below) I need a 404 status code in the http response header. thank you for any advise F --- Daniel Huang <[EMAIL PROTECTED]> a écrit : > If you don't want tomcat to serve your /index.jsp > when 404 is encountered, > just remove the config from your > web.xml. > > Is this what you are asking? Not sure I got your > question right. > > Regards, > Daniel > > -Original Message- > From: Farid C [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 6:25 AM > To: [EMAIL PROTECTED] > Subject: Tomcat/Web application conf: status code > 404 versus status code 302 > + 200 > > Good Morning > > We use Tomcat 5.0.18 with 2 instances: > > A) > For the both instances, we catch the 404 status code > returned in the http response to display an index > page. > > file web.xml: > > 404 > /index.jsp > > > B) > If a web browser asks a non existing url, as > expected > the 2 tomcat instances return the index.jsp page > but according to the tomcat log the behaviour > is not the same: > there is one http request for one tomcat instance > (with a status code 404) against 2 http requests > for > the other instance (status code 302 then status code > 200). > > First tomcat instance log: > > 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET > /appli/notExistingPage HTTP/1.1" 404 - 6008 > > Second tomcat instance log: > > 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET > /appli/notExistingPage HTTP/1.1" 302 - > > 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET > /appli/index.jsp HTTP/1.1" 200 5900 > > I failed to find in the configuration why the 2 > tomcat instances behave differently for our web > application. > > It is critical for us to have only one http request > with the error code 404: > any idea how can I control this behaviour in the > tomcat or web application configuration ? > > Any help will be appreciated > > thank you > F Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yoav -->RE: TC 5 production use
Yoav, I use Apache in front of Tomcat a long ago and see no problems? BTW, Apache executes all static content, such as image files. Why you don't recommend Apache? -- Evgeny Javadesk --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Hi, > > >What are you thoughts on a JBoss 4 setup? Do you > still > >recommend staying away from Apache? > > I don't have thoughts on JBoss 4 setup. > > I recommend what I always have: evaluate your needs > carefully and don't > make design or deployment decisions, such as placing > Apache in front of > tomcat, because of something you once heard/read > somewhere three years > ago. There are cases where Apache in front of > tomcat is invaluable, and > there are just as many cases where it's a hindrance. > > Yoav shapira > > > > >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > >> > >> Howdy, > >> I'm using it in production, no issues. But then > again I steer > >> clear of > >> the practices that tend to cause issues > frequently: I don't > >> redeploy my > >> apps in production (when I ship a new version I > do so during > >> our > >> maintenance window and restart the server), I > profile and test > >> carefully > >> for memory leaks, I don't use apache in front of > tomcat, I do > >> use a > >> security manager, I do deploy and run only packed > WARs, > >> nothing > >> reloadable or auto-deployed... > >> > >> Yoav Shapira > >> Millennium ChemInformatics > >> > >> > >> >-Original Message- > >> >From: Johannes [mailto:[EMAIL PROTECTED] > >> >Sent: Friday, February 06, 2004 4:43 PM > >> >To: Tomcat Users List > >> >Subject: TC 5 production use > >> > > >> >hi there, > >> > > >> >I saw TC5.0.18 is marked stable on the > Tomcat-Website > >> (production > >> >quality). Is anybody using TC 5.0.x in > production already ? > >> Did any > >> >remarkable issues arise? > >> > > >> >thx > >> >Johannes > >> > >> > >> > >> 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] > >> > > > > > >= > > > >Norris Shelton > >Software Engineer > >Sun Certified Java 1.1 Programmer > >Appriss, Inc. > >ICQ# 26487421 > >AIM NorrisEShelton > >YIM norrisshelton > > > > > >__ > >Do you Yahoo!? > >Yahoo! Small Business $15K Web Design Giveaway > >http://promotions.yahoo.com/design_giveaway/ > > > >- > >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] > __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT How many subscribers to the list?
Howdy, I don't know, and the ezmlm command to find out is disabled by default even for moderators. I do know (from http://nagoya.apache.org/eyebrowse) that this is the biggest Apache list in terms of total messages (143K) and total distinct posters (19K). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Parsons Technical Services [mailto:[EMAIL PROTECTED] >Sent: Friday, April 09, 2004 1:26 PM >To: Tomcat Users List >Subject: OT How many subscribers to the list? > >How many subscribers are there to the list? Just a ballpark idea. I have a >idea but before I get athletes mouth I thought might see if it's feasible. > >Doug > > > >- >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: Yoav -->RE: TC 5 production use
Hi, >What are you thoughts on a JBoss 4 setup? Do you still >recommend staying away from Apache? I don't have thoughts on JBoss 4 setup. I recommend what I always have: evaluate your needs carefully and don't make design or deployment decisions, such as placing Apache in front of tomcat, because of something you once heard/read somewhere three years ago. There are cases where Apache in front of tomcat is invaluable, and there are just as many cases where it's a hindrance. Yoav shapira > >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: >> >> Howdy, >> I'm using it in production, no issues. But then again I steer >> clear of >> the practices that tend to cause issues frequently: I don't >> redeploy my >> apps in production (when I ship a new version I do so during >> our >> maintenance window and restart the server), I profile and test >> carefully >> for memory leaks, I don't use apache in front of tomcat, I do >> use a >> security manager, I do deploy and run only packed WARs, >> nothing >> reloadable or auto-deployed... >> >> Yoav Shapira >> Millennium ChemInformatics >> >> >> >-Original Message- >> >From: Johannes [mailto:[EMAIL PROTECTED] >> >Sent: Friday, February 06, 2004 4:43 PM >> >To: Tomcat Users List >> >Subject: TC 5 production use >> > >> >hi there, >> > >> >I saw TC5.0.18 is marked stable on the Tomcat-Website >> (production >> >quality). Is anybody using TC 5.0.x in production already ? >> Did any >> >remarkable issues arise? >> > >> >thx >> >Johannes >> >> >> >> 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] >> > > >= > >Norris Shelton >Software Engineer >Sun Certified Java 1.1 Programmer >Appriss, Inc. >ICQ# 26487421 >AIM NorrisEShelton >YIM norrisshelton > > >__ >Do you Yahoo!? >Yahoo! Small Business $15K Web Design Giveaway >http://promotions.yahoo.com/design_giveaway/ > >- >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]
OT How many subscribers to the list?
How many subscribers are there to the list? Just a ballpark idea. I have a idea but before I get athletes mouth I thought might see if it's feasible. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yoav -->RE: TC 5 production use
What are you thoughts on a JBoss 4 setup? Do you still recommend staying away from Apache? --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > I'm using it in production, no issues. But then again I steer > clear of > the practices that tend to cause issues frequently: I don't > redeploy my > apps in production (when I ship a new version I do so during > our > maintenance window and restart the server), I profile and test > carefully > for memory leaks, I don't use apache in front of tomcat, I do > use a > security manager, I do deploy and run only packed WARs, > nothing > reloadable or auto-deployed... > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Johannes [mailto:[EMAIL PROTECTED] > >Sent: Friday, February 06, 2004 4:43 PM > >To: Tomcat Users List > >Subject: TC 5 production use > > > >hi there, > > > >I saw TC5.0.18 is marked stable on the Tomcat-Website > (production > >quality). Is anybody using TC 5.0.x in production already ? > Did any > >remarkable issues arise? > > > >thx > >Johannes > > > > 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] > = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: RE: can iframe include files in web-inf folder?
haha,May be i have to persuade my boss the point you've illustrated enoughly >Hi, > >>"streaming the content yourself using your own code, or in this case >your >>Struts code." >>Couled more detials please? > >Click Here! would lead to a 404 if >the user clicks on it as I previously explained. > >Now imagine a servlet: > >public class BadServlet extends HttpServlet { > protected void doGet(HttpServletRequest req, HttpServletResponse res) >throws IOException, ServletException { >String requestedFile = req.getParameter("requestedFile"); >InputStream is = >getServletContext().getResourceAsStream(requestedFile); >BufferedInputStream bis = new BufferedInputStream(is); >String line = null; > >res.setContentType("text/html"); >PrintWriter out = res.getWriter(); > >while((line = bis.readLine()) != null) { > out.println(line); >} > >bis.close(); > } >} > >Map this servlet in web.xml to /BadServlet, and go to >http://localhost:8080/BadServlet?requestedFile=/WEB-INF/someFile.txt to >see how it's served. I typed the above from memory without testing, but >it should be close enough to illustrate this point, which is: what >you're doing is bad design. > >Yoav Shapira > > > >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: Re: RE: can iframe include files in web-inf folder?
Thanks,Doug! Let me try,since it looks a bit trouble to write a servlet to do that. I do get the file in web-inf folder with ,but failed to make it flush in the iframe. Thans again. >bjyang, > >The jvm running under Tomcat can read any file with the standard file >read/write operations provided in the Java api as long as the user that the >jvm is running as has rights to that file. So write a servlet that receives >the request reads the file from the directory and the streams it back to the >client. > >As for code I have none at this point, but a little googling should turn up >something. > >Doug > > >- Original Message - >From: "bjyang" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Saturday, April 10, 2004 12:00 AM >Subject: Re: RE: can iframe include files in web-inf folder? > > >"streaming the content yourself using your own code, or in this case your >Struts code." >Couled more detials please? > > > bjyang > [EMAIL PROTECTED] > 2004-04-10 > > > > > >>Hi, >>Per the servlet spec, a servlet container is not allowed to serve content >under /WEB-INF to the browser. That's why your normal HTML links and >references like src="/WEB-INF/xxx" fail. You can get around this (but you >shouldn't) by streaming the content yourself using your own code, or in this >case your Struts code. >> >>Yoav Shapira >>Millennium Research Informatics >> >> >>>-Original Message- >>>From: bjyang_dream [mailto:[EMAIL PROTECTED] >>>Sent: Friday, April 09, 2004 10:21 AM >>>To: tomcat-user >>>Subject: can iframe include files in web-inf folder? >>> >>>1.in my jsp page information.jsp I do this: >>> >>src="/web-inf/test.jsp"> >>> but when the Tomcat 5.0 just tell me that such page is not available. >>>2.Then i try another way. >>> i created another page called import page,in this page: >>> >>> >>> Here HTMLUrl comes from my Struts Action,and refer the URL in want to >>>import in >>> the iframe. >>> This time,I do get it worked and have HTMLUrl page in the iframe,The >>>problem >>> is when the HTMLUrl has changed,The page in the iframe didn't changed at >>>the >>> same time. >>> I use ,i can see this also changed. >>> >>> Hoping someone to help me,Thank you very much! >>> >>> >>>$B(Jdream_and_yang >>>$B([EMAIL PROTECTED] >>>$B(J2004-04-09 >>> >>> >>>$B(Jbjyang_dream >>>$B([EMAIL PROTECTED] >>>$B(J2004-04-09 >> >> >> >>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] > > > > >- >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: How to start a Realm from a servlet or a filter
Hi, >And how can I access or start a Realm? What is up with this list? Do people don't know how to read JavaDocs, or do they simply not care? Sigh... Server server = ServerFactory.getServer(); Service service = server.findService("Catalina"); Container serviceContainer = service.getContainer(); Realm serviceRealm = serviceContainer.getRealm(); // May be null You would/can continue to drill down from the service using findChildren to locate Engine/Host/Context elements and their associated Realms, if any. As to how to start one: look at the tomcat startup code, that's why it's open-source. Yoav Shapira 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: RE: can iframe include files in web-inf folder?
Hi, >"streaming the content yourself using your own code, or in this case your >Struts code." >Couled more detials please? Click Here! would lead to a 404 if the user clicks on it as I previously explained. Now imagine a servlet: public class BadServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String requestedFile = req.getParameter("requestedFile"); InputStream is = getServletContext().getResourceAsStream(requestedFile); BufferedInputStream bis = new BufferedInputStream(is); String line = null; res.setContentType("text/html"); PrintWriter out = res.getWriter(); while((line = bis.readLine()) != null) { out.println(line); } bis.close(); } } Map this servlet in web.xml to /BadServlet, and go to http://localhost:8080/BadServlet?requestedFile=/WEB-INF/someFile.txt to see how it's served. I typed the above from memory without testing, but it should be close enough to illustrate this point, which is: what you're doing is bad design. Yoav Shapira 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: How to start a Realm from a servlet or a filter
Hi Yoav, > > How authoritative and conclusive. And wrong. Realms and all other > tomcat internals are accessible to any code you write. You just have to > mark your webapp as privileged and in some instances (depending on your > code) place portions of your code in the common rather than your > webapp's classloader. And how can I access or start a Realm? Zsolt > > > > > 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: How to start a Realm from a servlet or a filter
Hi, >Realm is not accessible to servlet or filter. In anther word, you can't do >what you are trying to do. How authoritative and conclusive. And wrong. Realms and all other tomcat internals are accessible to any code you write. You just have to mark your webapp as privileged and in some instances (depending on your code) place portions of your code in the common rather than your webapp's classloader. 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: RE: can iframe include files in web-inf folder?
bjyang, The jvm running under Tomcat can read any file with the standard file read/write operations provided in the Java api as long as the user that the jvm is running as has rights to that file. So write a servlet that receives the request reads the file from the directory and the streams it back to the client. As for code I have none at this point, but a little googling should turn up something. Doug - Original Message - From: "bjyang" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 12:00 AM Subject: Re: RE: can iframe include files in web-inf folder? "streaming the content yourself using your own code, or in this case your Struts code." Couled more detials please? bjyang [EMAIL PROTECTED] 2004-04-10 >Hi, >Per the servlet spec, a servlet container is not allowed to serve content under /WEB-INF to the browser. That's why your normal HTML links and references like src="/WEB-INF/xxx" fail. You can get around this (but you shouldn't) by streaming the content yourself using your own code, or in this case your Struts code. > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: bjyang_dream [mailto:[EMAIL PROTECTED] >>Sent: Friday, April 09, 2004 10:21 AM >>To: tomcat-user >>Subject: can iframe include files in web-inf folder? >> >>1.in my jsp page information.jsp I do this: >> >src="/web-inf/test.jsp"> >> but when the Tomcat 5.0 just tell me that such page is not available. >>2.Then i try another way. >> i created another page called import page,in this page: >> >> >> Here HTMLUrl comes from my Struts Action,and refer the URL in want to >>import in >> the iframe. >> This time,I do get it worked and have HTMLUrl page in the iframe,The >>problem >> is when the HTMLUrl has changed,The page in the iframe didn't changed at >>the >> same time. >> I use ,i can see this also changed. >> >> Hoping someone to help me,Thank you very much! >> >> >>$B(Jdream_and_yang >>$B([EMAIL PROTECTED] >>$B(J2004-04-09 >> >> >>$B(Jbjyang_dream >>$B([EMAIL PROTECTED] >>$B(J2004-04-09 > > > >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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/Web application conf: status code 404 versus status code 302 + 200
If you don't want tomcat to serve your /index.jsp when 404 is encountered, just remove the config from your web.xml. Is this what you are asking? Not sure I got your question right. Regards, Daniel -Original Message- From: Farid C [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 6:25 AM To: [EMAIL PROTECTED] Subject: Tomcat/Web application conf: status code 404 versus status code 302 + 200 Good Morning We use Tomcat 5.0.18 with 2 instances: A) For the both instances, we catch the 404 status code returned in the http response to display an index page. file web.xml: 404 /index.jsp B) If a web browser asks a non existing url, as expected the 2 tomcat instances return the index.jsp page but according to the tomcat log the behaviour is not the same: there is one http request for one tomcat instance (with a status code 404) against 2 http requests for the other instance (status code 302 then status code 200). First tomcat instance log: 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/notExistingPage HTTP/1.1" 404 - 6008 Second tomcat instance log: 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/notExistingPage HTTP/1.1" 302 - 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/index.jsp HTTP/1.1" 200 5900 I failed to find in the configuration why the 2 tomcat instances behave differently for our web application. It is critical for us to have only one http request with the error code 404: any idea how can I control this behaviour in the tomcat or web application configuration ? Any help will be appreciated thank you F Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: can iframe include files in web-inf folder?
Thanks,Matt! I work with Tomcat 5.0 and I do need to access files in the Web-inf folder. Would you tell me,how can i manage to do that? Thank you again. >Do you run this through apache or other http server? > >The reason that I ask is that the jsp file could have restricted access from >the outside world because it is in the WEB-INF folder. > >As a pointer, I wouldn't put you want to be seen by the outside world under >the WEB-INF folder. You need to keep this for config files, java files/jars >etc etc, because in the future you would want to block any http traffic from >seeing this. > >Matt > >- Original Message - >From: "bjyang_dream" <[EMAIL PROTECTED]> >To: "tomcat-user" <[EMAIL PROTECTED]> >Sent: Friday, April 09, 2004 9:20 AM >Subject: can iframe include files in web-inf folder? > > >> 1.in my jsp page information.jsp I do this: >> src="/web-inf/test.jsp"> >> but when the Tomcat 5.0 just tell me that such page is not available. >> 2.Then i try another way. >> i created another page called import page,in this page: >> >> >> Here HTMLUrl comes from my Struts Action,and refer the URL in want to >import in >> the iframe. >> This time,I do get it worked and have HTMLUrl page in the iframe,The >problem >> is when the HTMLUrl has changed,The page in the iframe didn't changed at >the >> same time. >>I use ,i can see this also changed. >> >> Hoping someone to help me,Thank you very much! >> >> >> dream_and_yang >> [EMAIL PROTECTED] >> 2004-04-09 >> >> >> bjyang_dream >> [EMAIL PROTECTED] >> 2004-04-09 >> > > > >- >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: DefaultServlet character encoding
Mark Thomas wrote: > Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page > pagEncoding="..." %>. ...which doesn't work for static HTML pages, where I'm having the problem... Allistair Crossley wrote: or specify -Dfile.encoding=UTF or whatever in your tomcat startup ..which I have, and which has made no difference, as I stated in the original mail... Matt Woodings wrote: > if your tomcat is a NT Service, this needs to go in the registry ..which, as the *first line* of the original post says, it's not ("RedHat" != "NT")... Three up, three down -- anyone else care to try next inning? C'mon, swing for the fence... :-) -Original Message- Subject: DefaultServlet character encoding Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES Problem: static HTML pages meta-tagged to use Shift_JIS are sent as ISO-8859-1. All the googling I've done turns up the suggestion to start Tomcat with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to make UTF-8 the default. I've tried both, neither made a difference. To baffle me more, my two (unfortunately) divergent dev environments Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06 -- W2k Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8 serve a sample Shift_JIS page just fine "out of the box"... -- 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: RE: can iframe include files in web-inf folder?
"streaming the content yourself using your own code, or in this case your Struts code." Couled more detials please? bjyang [EMAIL PROTECTED] 2004-04-10 >Hi, >Per the servlet spec, a servlet container is not allowed to serve content under >/WEB-INF to the browser. That's why your normal HTML links and references like >src="/WEB-INF/xxx" fail. You can get around this (but you shouldn't) by streaming >the content yourself using your own code, or in this case your Struts code. > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: bjyang_dream [mailto:[EMAIL PROTECTED] >>Sent: Friday, April 09, 2004 10:21 AM >>To: tomcat-user >>Subject: can iframe include files in web-inf folder? >> >>1.in my jsp page information.jsp I do this: >> >src="/web-inf/test.jsp"> >> but when the Tomcat 5.0 just tell me that such page is not available. >>2.Then i try another way. >> i created another page called import page,in this page: >> >> >> Here HTMLUrl comes from my Struts Action,and refer the URL in want to >>import in >> the iframe. >> This time,I do get it worked and have HTMLUrl page in the iframe,The >>problem >> is when the HTMLUrl has changed,The page in the iframe didn't changed at >>the >> same time. >> I use ,i can see this also changed. >> >> Hoping someone to help me,Thank you very much! >> >> >>$B(Jdream_and_yang >>$B([EMAIL PROTECTED] >>$B(J2004-04-09 >> >> >>$B(Jbjyang_dream >>$B([EMAIL PROTECTED] >>$B(J2004-04-09 > > > >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: No Suitable Driver Problem
Sohil, At what line in your code is it blowing up? As a follow up, once you have it all fixed would try the username back at the bottom to see if it breaks it again? I'm running MySQL so I didn't spot the error, sorry. Doug - Original Message - From: "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 12:25 PM Subject: RE: No Suitable Driver Problem Hi Daniel, I managed to solve this one, my database url was missing the schema name, that was causing the problem. I changed it from jdbc:oracle:[EMAIL PROTECTED] To jdbc:oracle:thin:[EMAIL PROTECTED] But it is still throwing an exception though a different one. Any pointers? java.lang.NullPointerException at org.apache.commons.dbcp.DelegatingConnection.close(DelegatingConnecti on.java:195) at org.apache.commons.dbcp.PoolableConnection.reallyClose(PoolableConnec tion.java:129) at org.apache.commons.dbcp.PoolableConnectionFactory.destroyObject(Poola bleConnectionFactory.java:311) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas icDataSource.java:842) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl ugin.java:41) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle t.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 7) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 283) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 5) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Excpetion in InitializerPlugin -Original Message- From: Daniel Huang [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 11:22 AM To: Tomcat Users List Subject: RE: No Suitable Driver Problem Please double check and make sure your ojdbc.jar is in $CATALINA_HOME/common/lib. -Original Message- From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: No Suitable Driver Problem Hey Doug, I tried moving the username up, still does not work, any other clues, am still stumped. Thanks, Sohil Server.xml . . . . password databasepassword url jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] driverClassName oracle.jdbc.driver.OracleDriver username user However when I try to load my plugin in the struts application, I get the following exception. I looked at everything on archives and on there people were complaining about NULL for driverClassName, in my case, it reads the drivername and url properly and still blows up. Please help. I am using Tomca
RE: How to start a Realm from a servlet or a filter
Realm is not accessible to servlet or filter. In anther word, you can't do what you are trying to do. Let's suppose for a second that your code could work, then I can write a servlet to replace your realm or any realm tomcat is using. And image what could happen if the tomcat manager interface is using that realm? Thanks Daniel -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 1:49 AM To: Tomcat Users List Subject: How to start a Realm from a servlet or a filter Hi, because of technical reasons I want to start a Realm class during run-time, thus I cannot just configure Realm via " factory org.apache.naming.factory.BeanFactory debug 99 pathname conf/tomcat-users.xml Zsolt Koppany Phone: +49-711-722 1874 -- Intland Software GmbH, Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart, Germany Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED] Fax: +49-711-722 1835 - 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: No Suitable Driver Problem
Never mind, even though I am using jdk1.4 and tomcat5.0, I had to replace ojdbc14.jar with classes version to get it to work. -Original Message- From: MARU, SOHIL (SBCSI) Sent: Friday, April 09, 2004 11:26 AM To: 'Tomcat Users List' Subject: RE: No Suitable Driver Problem Hi Daniel, I managed to solve this one, my database url was missing the schema name, that was causing the problem. I changed it from jdbc:oracle:[EMAIL PROTECTED] To jdbc:oracle:thin:[EMAIL PROTECTED] But it is still throwing an exception though a different one. Any pointers? java.lang.NullPointerException at org.apache.commons.dbcp.DelegatingConnection.close(DelegatingConnecti on.java:195) at org.apache.commons.dbcp.PoolableConnection.reallyClose(PoolableConnec tion.java:129) at org.apache.commons.dbcp.PoolableConnectionFactory.destroyObject(Poola bleConnectionFactory.java:311) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas icDataSource.java:842) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl ugin.java:41) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle t.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 7) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 283) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 5) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Excpetion in InitializerPlugin -Original Message- From: Daniel Huang [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 11:22 AM To: Tomcat Users List Subject: RE: No Suitable Driver Problem Please double check and make sure your ojdbc.jar is in $CATALINA_HOME/common/lib. -Original Message- From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: No Suitable Driver Problem Hey Doug, I tried moving the username up, still does not work, any other clues, am still stumped. Thanks, Sohil Server.xml . . . . password databasepassword url jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] driverClassName oracle.jdbc.driver.OracleDriver username user However when I try to load my plugin in the struts application, I get the following exception. I looked at everything on archives and on there people were complaining about NULL for driverClassName, in my case, it reads the drivername and url properly and still blows up. Please help. I am using Tomcat 5.0 with the latest ojdbc14.jar/commons-dbcp-1.1.jar in common/lib and am trying to connect to oracle 8.1.7. org.apache.commons.dbcp.SQLNest
RE: No Suitable Driver Problem
Hi Daniel, I managed to solve this one, my database url was missing the schema name, that was causing the problem. I changed it from jdbc:oracle:[EMAIL PROTECTED] To jdbc:oracle:thin:[EMAIL PROTECTED] But it is still throwing an exception though a different one. Any pointers? java.lang.NullPointerException at org.apache.commons.dbcp.DelegatingConnection.close(DelegatingConnecti on.java:195) at org.apache.commons.dbcp.PoolableConnection.reallyClose(PoolableConnec tion.java:129) at org.apache.commons.dbcp.PoolableConnectionFactory.destroyObject(Poola bleConnectionFactory.java:311) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas icDataSource.java:842) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl ugin.java:41) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle t.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 7) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 283) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 5) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Excpetion in InitializerPlugin -Original Message- From: Daniel Huang [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 11:22 AM To: Tomcat Users List Subject: RE: No Suitable Driver Problem Please double check and make sure your ojdbc.jar is in $CATALINA_HOME/common/lib. -Original Message- From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: No Suitable Driver Problem Hey Doug, I tried moving the username up, still does not work, any other clues, am still stumped. Thanks, Sohil Server.xml . . . . password databasepassword url jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] driverClassName oracle.jdbc.driver.OracleDriver username user However when I try to load my plugin in the struts application, I get the following exception. I looked at everything on archives and on there people were complaining about NULL for driverClassName, in my case, it reads the drivername and url properly and still blows up. Please help. I am using Tomcat 5.0 with the latest ojdbc14.jar/commons-dbcp-1.1.jar in common/lib and am trying to connect to oracle 8.1.7. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED] :1521:[sid]', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.co
RE: No Suitable Driver Problem
Please double check and make sure your ojdbc.jar is in $CATALINA_HOME/common/lib. -Original Message- From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: No Suitable Driver Problem Hey Doug, I tried moving the username up, still does not work, any other clues, am still stumped. Thanks, Sohil Server.xml . . . . password databasepassword url jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] driverClassName oracle.jdbc.driver.OracleDriver username user However when I try to load my plugin in the struts application, I get the following exception. I looked at everything on archives and on there people were complaining about NULL for driverClassName, in my case, it reads the drivername and url properly and still blows up. Please help. I am using Tomcat 5.0 with the latest ojdbc14.jar/commons-dbcp-1.1.jar in common/lib and am trying to connect to oracle 8.1.7. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED] :1521:[sid]', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl ugin.java:41) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle t.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 7) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 283) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 5) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Excpetion in InitializerPlugin The java code in the plugin is as follows Context init = new InitialContext(); Context ctx = (Context) init.lookup("java:comp/env"); DataSource dataSource = (DataSource) ctx.lookup("jdbc/loacenet"); c = dataSource.getConnection(); -- line which blows up st = c.createStatement(); - 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: DefaultServlet character encoding
I just alter the service.bat file to include this option and then reinstall the service :) -Original Message- From: Matt Woodings [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 17:08 To: Tomcat Users List Subject: Re: DefaultServlet character encoding if your tomcat is a NT Service, this needs to go in the registry HKLM/System/ControlSet001/Services/Apache Tomcat xxx/Parameters/JVM Option Number n also updating the JVM Option Count you should see the other parameters there, just follow these as an example when adding your new one Matt - Original Message - From: "Allistair Crossley" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 10:56 AM Subject: RE: DefaultServlet character encoding or specify -Dfile.encoding=UTF or whatever in your tomcat startup -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 16:55 To: 'Tomcat Users List' Subject: RE: DefaultServlet character encoding Hi, Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page pagEncoding="..." %>. Mark > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 7:11 PM > To: [EMAIL PROTECTED] > Subject: DefaultServlet character encoding > > Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES > > Problem: static HTML pages meta-tagged to use Shift_JIS are sent as > ISO-8859-1. > > All the googling I've done turns up the suggestion to start Tomcat > with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to > make UTF-8 the default. I've tried both, neither made a difference. > > To baffle me more, my two (unfortunately) divergent dev environments > Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06 -- W2k > Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8 > serve a sample Shift_JIS page just fine "out of the box"... > > All suggestions gratefully accepted :-) > > -- > 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] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - 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: DefaultServlet character encoding
if your tomcat is a NT Service, this needs to go in the registry HKLM/System/ControlSet001/Services/Apache Tomcat xxx/Parameters/JVM Option Number n also updating the JVM Option Count you should see the other parameters there, just follow these as an example when adding your new one Matt - Original Message - From: "Allistair Crossley" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 10:56 AM Subject: RE: DefaultServlet character encoding or specify -Dfile.encoding=UTF or whatever in your tomcat startup -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 16:55 To: 'Tomcat Users List' Subject: RE: DefaultServlet character encoding Hi, Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page pagEncoding="..." %>. Mark > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 7:11 PM > To: [EMAIL PROTECTED] > Subject: DefaultServlet character encoding > > Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES > > Problem: static HTML pages meta-tagged to use Shift_JIS are sent as > ISO-8859-1. > > All the googling I've done turns up the suggestion to start Tomcat > with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to > make UTF-8 the default. I've tried both, neither made a difference. > > To baffle me more, my two (unfortunately) divergent dev environments > Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06 -- W2k > Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8 > serve a sample Shift_JIS page just fine "out of the box"... > > All suggestions gratefully accepted :-) > > -- > 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] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - 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]
Link to the archive
Hey Prasad, here is the Link to the archive http://www.mail-archive.com/[EMAIL PROTECTED]/msg04803.htm l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session behaviour across http/https boundary
This is implemented within tomcat. Mark > -Original Message- > From: Martin Alley [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 8:28 AM > To: 'Tomcat Users List' > Subject: RE: Session behaviour across http/https boundary > > Hi Bill, > > Thanks for clarifying. > > BTW Do you know if this policy in the browser, or if tomcat uses the > refer header to implement it on the server? > > Thanks > Martin > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Sent: 09 April 2004 06:22 > To: [EMAIL PROTECTED] > Subject: Re: Session behaviour across http/https boundary > > > "Martin Alley" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > I have a small web app that appears to illustrate the following > > behaviour. > > Session started in http is carried over to https, but > session started > in > > https is *not* carried over to http! > > > > Why? > > This is for security reasons (so that it isn't possible to steal > sensitive > information that was entered in via SSL). > > > > > - > 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: DefaultServlet character encoding
or specify -Dfile.encoding=UTF or whatever in your tomcat startup -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 16:55 To: 'Tomcat Users List' Subject: RE: DefaultServlet character encoding Hi, Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page pagEncoding="..." %>. Mark > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 7:11 PM > To: [EMAIL PROTECTED] > Subject: DefaultServlet character encoding > > Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES > > Problem: static HTML pages meta-tagged to use Shift_JIS are sent as > ISO-8859-1. > > All the googling I've done turns up the suggestion to start Tomcat > with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to > make UTF-8 the default. I've tried both, neither made a difference. > > To baffle me more, my two (unfortunately) divergent dev environments > Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06 -- W2k > Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8 > serve a sample Shift_JIS page just fine "out of the box"... > > All suggestions gratefully accepted :-) > > -- > 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] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DefaultServlet character encoding
Hi, Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page pagEncoding="..." %>. Mark > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 7:11 PM > To: [EMAIL PROTECTED] > Subject: DefaultServlet character encoding > > Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES > > Problem: static HTML pages meta-tagged to use Shift_JIS are sent as > ISO-8859-1. > > All the googling I've done turns up the suggestion to start Tomcat > with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to > make UTF-8 the default. I've tried both, neither made a difference. > > To baffle me more, my two (unfortunately) divergent dev environments > Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06 -- W2k > Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8 > serve a sample Shift_JIS page just fine "out of the box"... > > All suggestions gratefully accepted :-) > > -- > 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]
Need help
sir, i installed tomcat5 & the path also specified correctly. but when executing the examples the following exception is thrown. please do help. message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.handlePageException(Ljava/lang/Throwable;)V org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:72) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Tomcat logs. Expecting quick reply chandrasekhar IIT mumbai. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to hack up a custom session tracking method.
For the curios I was able to hack a custom session tracking method with Valve and overriding two methods in StandardManager. There are a few ways to do this but this was easiest for me. Hopefully it will help someone who has weird requirements on sessions. First create a Valve and in the invoke(...) method and do whatever you do to figure out how you are tracking sessions. I personally checked to see if a query parameter is set. I also tried checking if the requested RemoteUser on authenticated connections but that doesn't work because Tomcat does that in org.apache.catalina.authenticator.AuthenticatorBase which is after any Valves you can setup via server.xml. Then once you've figured out what token your tracking sessions by, put that in a ThreadLocal that can be later accessed by a custom Manager. Now subclass StandardManager overriding createSession() and generateSessionId(). My generateSessionId() method first checks the ThreadLocal mentioned above for a token. If it's null, then just pass things off to super.generateSessionId() else return that token. My createSession() method checks the same ThreadLocal for a token, if it's null, just pass things off to super.createSession() else try to findSession(token). If findSession(token) returns null, pass things off to super.createSession() else return the found session. You have to findSession(token) when you are using your custom token else the super.createSession() will get stuck in an infinite loop trying to generate a unique session id which won't happen because of your custom generateSessionId method always returning the same value. Thinking more on it, you could probably stuff the request.getRequest() from your Valve in the ThreadLocal and then later getRemoteUser() in your custom Manager. I haven't tried that yet, but I do like the idea of tracking sessions based on authenticated user's as opposed to a query parameter. Hope someone finds this useful. Sandy McArthur PGP.sig Description: This is a digitally signed message part
RE: Known problem with tomcat, jndi datasourc - PLEASE HELP
Prasad, My internet access is down right now, as soon as I get that up and running I will send you a link to the archives where I saw a thread regarding your problem. Thanks, Sohil -Original Message- From: prasad chaturvedula [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 1:50 AM To: Tomcat Users List Subject: Re: Known problem with tomcat, jndi datasourc - PLEASE HELP Hi Can pleae you give me pointers to solutions to the problem of a null for teh driverclass name, there seems to be no solution in the archives till date. Thanks. Prasad --- "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]> wrote: > Hello All, > I have been scouring the mailing list archives > and lot of other > places. I am seeing a problem configuring a > datasource with Tomcat. I > have put the following entry in my server.xml > > docBase="C:\software\eclipse\workspace\HRTechnology\TOMCAT_ROOT" > reloadable="true"> >auth="Container" type="javax.sql.DataSource"/> >name="jdbc/loacenet"> > . > . > . > . > > > password > > databasepassword > > > url > > jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] > > > > driverClassName > > oracle.jdbc.driver.OracleDriver > > > > username > > user > > > > However when I try to load my plugin in the struts > application, I get > the following exception. I looked at everything on > archives and on there > people were complaining about NULL for > driverClassName, in my case, it > reads the drivername and url properly and still > blows up. Please help. I > am using Tomcat 5.0 with the latest > ojdbc14.jar/commons-dbcp-1.1.jar in > common/lib and am trying to connect to oracle 8.1.7. > > > org.apache.commons.dbcp.SQLNestedException: Cannot > create JDBC driver of > class ' > oracle.jdbc.driver.OracleDriver' for connect URL > 'jdbc:oracle:[EMAIL PROTECTED] > :1521:[sid]', cause: > java.sql.SQLException: No suitable driver > at > java.sql.DriverManager.getDriver(DriverManager.java:243) > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou > rce.java:743) > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource > .java:518) > at > com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl > ugin.java:41) > at > org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle > t.java:1158) > at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) > at > javax.servlet.GenericServlet.init(GenericServlet.java:256) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. > java:1044) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 > 7) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex > t.java:3960) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4 > 283) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:832) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 > ) > at > org.apache.catalina.core.StandardService.start(StandardService.java:5 > 19) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:234 > 5) > at > org.apache.catalina.startup.Catalina.start(Catalina.java:598) > 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:324) > at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > Excpetion in InitializerPlugin > > > The java code in the plugin is as follows > Cont
No Suitable Driver Problem
Hey Doug, I tried moving the username up, still does not work, any other clues, am still stumped. Thanks, Sohil Server.xml . . . . password databasepassword url jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] driverClassName oracle.jdbc.driver.OracleDriver username user However when I try to load my plugin in the struts application, I get the following exception. I looked at everything on archives and on there people were complaining about NULL for driverClassName, in my case, it reads the drivername and url properly and still blows up. Please help. I am using Tomcat 5.0 with the latest ojdbc14.jar/commons-dbcp-1.1.jar in common/lib and am trying to connect to oracle 8.1.7. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED] :1521:[sid]', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl ugin.java:41) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle t.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 7) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 283) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:234 5) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) 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:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Excpetion in InitializerPlugin The java code in the plugin is as follows Context init = new InitialContext(); Context ctx = (Context) init.lookup("java:comp/env"); DataSource dataSource = (DataSource) ctx.lookup("jdbc/loacenet"); c = dataSource.getConnection(); -- line which blows up st = c.createStatement(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 3.3 and jstl
Hi all, Short question. I'm using JSTL within tomcat3.3, but i've got the next error message : org.apache.jasper.compiler.CompileException: D:\jakarta-tomcat-3.3.2\webapps\standard-examples\elsupport\Out.jsp(10,2) Unable to load class null Is it possible to use JSTL with tomcat3.3 ? If so, what can i do, to resolv this problem ? Thanks, -- Peter Bosmans Katholieke Hogeschool Limburg Universitaire Campus Gebouw B Bus 1 3590 Diepenbeek Tel. +32 11 230 770 Fax. +32 11 230 789 Mail. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can iframe include files in web-inf folder?
(BHi, (BPer the servlet spec, a servlet container is not allowed to serve content under (B/WEB-INF to the browser. That's why your normal HTML links and references like (Bsrc="/WEB-INF/xxx" fail. You can get around this (but you shouldn't) by streaming the (Bcontent yourself using your own code, or in this case your Struts code. (B (BYoav Shapira (BMillennium Research Informatics (B (B (B>-Original Message- (B>From: bjyang_dream [mailto:[EMAIL PROTECTED] (B>Sent: Friday, April 09, 2004 10:21 AM (B>To: tomcat-user (B>Subject: can iframe include files in web-inf folder? (B> (B>1.in my jsp page information.jsp I do this: (B> src="/web-inf/test.jsp"> (B> but when the Tomcat 5.0 just tell me that such page is not available. (B>2.Then i try another way. (B> i created another page called import page,in this page: (B> (B> <%jsp:include page="information.jsp" %> (B> Here HTMLUrl comes from my Struts Action,and refer the URL in want to (B>import in (B> the iframe. (B> This time,I do get it worked and have HTMLUrl page in the iframe,The (B>problem (B> is when the HTMLUrl has changed,The page in the iframe didn't changed at (B>the (B> same time. (B> I use ,i can see this also changed. (B> (B> Hoping someone to help me,Thank you very much! (B> (B> (B>$B(Jdream_and_yang (B>$B([EMAIL PROTECTED] (B>$B(J2004-04-09 (B> (B> (B>$B(Jbjyang_dream (B>$B([EMAIL PROTECTED] (B>$B(J2004-04-09 (B (B (B (BThis e-mail, including any attachments, is a confidential business communication, and (Bmay contain information that is confidential, proprietary and/or privileged. This (Be-mail is intended only for the individual(s) to whom it is addressed, and may not be (Bsaved, copied, printed, disclosed or used by anyone else. If you are not the(an) (Bintended recipient, please immediately delete this e-mail from your computer system (Band notify the sender. Thank you. (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: can iframe include files in web-inf folder?
Do you run this through apache or other http server? The reason that I ask is that the jsp file could have restricted access from the outside world because it is in the WEB-INF folder. As a pointer, I wouldn't put you want to be seen by the outside world under the WEB-INF folder. You need to keep this for config files, java files/jars etc etc, because in the future you would want to block any http traffic from seeing this. Matt - Original Message - From: "bjyang_dream" <[EMAIL PROTECTED]> To: "tomcat-user" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 9:20 AM Subject: can iframe include files in web-inf folder? > 1.in my jsp page information.jsp I do this: > > but when the Tomcat 5.0 just tell me that such page is not available. > 2.Then i try another way. > i created another page called import page,in this page: > > <%jsp:include page="information.jsp" %> > Here HTMLUrl comes from my Struts Action,and refer the URL in want to import in > the iframe. > This time,I do get it worked and have HTMLUrl page in the iframe,The problem > is when the HTMLUrl has changed,The page in the iframe didn't changed at the > same time. >I use ,i can see this also changed. > > Hoping someone to help me,Thank you very much! > > > dream_and_yang > [EMAIL PROTECTED] > 2004-04-09 > > > bjyang_dream > [EMAIL PROTECTED] > 2004-04-09 > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can iframe include files in web-inf folder?
1.in my jsp page information.jsp I do this: but when the Tomcat 5.0 just tell me that such page is not available. 2.Then i try another way. i created another page called import page,in this page: <%jsp:include page="information.jsp" %> Here HTMLUrl comes from my Struts Action,and refer the URL in want to import in the iframe. This time,I do get it worked and have HTMLUrl page in the iframe,The problem is when the HTMLUrl has changed,The page in the iframe didn't changed at the same time. I use ,i can see this also changed. Hoping someone to help me,Thank you very much! dream_and_yang [EMAIL PROTECTED] 2004-04-09 bjyang_dream [EMAIL PROTECTED] 2004-04-09
Tomcat/Web application conf: status code 404 versus status code 302 + 200
Good Morning We use Tomcat 5.0.18 with 2 instances: A) For the both instances, we catch the 404 status code returned in the http response to display an index page. file web.xml: 404 /index.jsp B) If a web browser asks a non existing url, as expected the 2 tomcat instances return the index.jsp page but according to the tomcat log the behaviour is not the same: there is one http request for one tomcat instance (with a status code 404) against 2 http requests for the other instance (status code 302 then status code 200). First tomcat instance log: 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/notExistingPage HTTP/1.1" 404 - 6008 Second tomcat instance log: 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/notExistingPage HTTP/1.1" 302 - 199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET /appli/index.jsp HTTP/1.1" 200 5900 I failed to find in the configuration why the 2 tomcat instances behave differently for our web application. It is critical for us to have only one http request with the error code 404: any idea how can I control this behaviour in the tomcat or web application configuration ? Any help will be appreciated thank you F Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (Query)Running Program on Tomcat
Hi, What is your servlet's mapping and what is the URL you're using to access the servlet? Do you have any errors in your logs? You don't need to map JSPs pages, the JSP servlet automagically handles that for you. Yoav Shapira Millennium Research Informatics >-Original Message- >From: mohit agarwal [mailto:[EMAIL PROTECTED] >Sent: Friday, April 09, 2004 9:12 AM >To: [EMAIL PROTECTED] >Subject: (Query)Running Program on Tomcat > >Hello, > Please help me come out of this problem. > The environment i m having is: > Operating System - Windows XP > J2sdk1.4.2_04 > Tomcat 5.0.19 > > I am able to compile my servlet program, but when it comes to running it > i got the HTTP Status Error 404 which points to file not found. > > I came to that i need to do some configuration settings. > Asper the info i had uncommented both the Servlet and the Servlet -Mapping >for the invoker servlet which are commented out in this version. > > I was hope ful that the program would run biut it still shown the same >error. > > The entire program consisting of index.html , the .class file and the >web.xml is contained in the greeting folder which is placed inside > the webapps folder.. > > Try to point the solution to my problem.Moreover tell me if for JSP also i >need to do some configuration settings. > > Regards, > mohit > > >Yahoo! India Matrimony: Find your partner online. 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]
(Query)Running Program on Tomcat
Hello, Please help me come out of this problem. The environment i m having is: Operating System - Windows XP J2sdk1.4.2_04 Tomcat 5.0.19 I am able to compile my servlet program, but when it comes to running it i got the HTTP Status Error 404 which points to file not found. I came to that i need to do some configuration settings. Asper the info i had uncommented both the Servlet and the Servlet -Mapping for the invoker servlet which are commented out in this version. I was hope ful that the program would run biut it still shown the same error. The entire program consisting of index.html , the .class file and the web.xml is contained in the greeting folder which is placed inside the webapps folder.. Try to point the solution to my problem.Moreover tell me if for JSP also i need to do some configuration settings. Regards, mohit Yahoo! India Matrimony: Find your partner online.
Hi, it's me
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session behaviour across http/https boundary
On Apr 9, 2004, at 3:28 AM, Martin Alley wrote: BTW Do you know if this policy in the browser, or if tomcat uses the refer header to implement it on the server? This is probably a side effect of the way cookies work. A cookie can have a 'secure' flag set, which means it won't get sent over a normal http connection. There is nothing which prevents a non-secure cookie from being sent on a https connection. So if you establish a session via http, that same session will get used when you switch to https but possibly not vice versa. Sandy McArthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upload file with non-ascii characters in name
Hello, When I run Tomcat on Windows and upload (with IE) a file with non-ascii characters in the filename it goes well.But when I run Tomcat on Linux and do the same upload it doesn't recognize the non-ascii characters and prints them as squares or question mark. Does anybody have experience with this? Greeting, Ronald.? java-src/jspc ? web/test.html ? web/WEB-INF/jsp/forms/maintenance Index: java-src/nl/base/rela/entities/Hour.java === RCS file: /var/cvs/crm/java-src/nl/base/rela/entities/Hour.java,v retrieving revision 1.7 diff -b -u -r1.7 Hour.java --- java-src/nl/base/rela/entities/Hour.java27 Nov 2003 11:39:37 - 1.7 +++ java-src/nl/base/rela/entities/Hour.java2 Dec 2003 09:12:28 - @@ -62,7 +62,8 @@ String field = s.getString("field"); String value = s.getString("value"); list.addFieldValue(field, value); -System.err.println("queryId"+ queryId); +System.err.println("queryId "+ queryId); + String employee = s.getString("employeesearch"); if (queryId.equals("longhours")) { Index: web/WEB-INF/database.xml === RCS file: /var/cvs/crm/web/WEB-INF/database.xml,v retrieving revision 1.44 diff -b -u -r1.44 database.xml --- web/WEB-INF/database.xml25 Nov 2003 15:38:55 - 1.44 +++ web/WEB-INF/database.xml2 Dec 2003 09:12:29 - @@ -116,7 +116,7 @@ - + Index: web/WEB-INF/modules.xml === RCS file: /var/cvs/crm/web/WEB-INF/modules.xml,v retrieving revision 1.11 diff -b -u -r1.11 modules.xml --- web/WEB-INF/modules.xml 28 Nov 2003 12:17:07 - 1.11 +++ web/WEB-INF/modules.xml 2 Dec 2003 09:12:29 - @@ -22,7 +22,6 @@ ]> - - + + + + + + + + + + + + + + @@ -30,90 +43,169 @@ - "/> + "/> - - + + - + + - - - + + " /> + - - " /> - + + + + - - - + + + - - + + + + + + + + + + + + - - - -
Re: JNDI/MYSQL - Too many connections
Josh, Two things come to mind: 1. You are running out of connections. DUH What I mean is that you have more requests for connections than connections. Probably not your case but had to point it out. 2. You have a leak and are not recovering the abandoned connections fast enough. Going on point two look at the following: Turn on log abandoned and see if you do have a leak. Are you closing you resultsets and statements? If not they can/will hold the connection. Increase your pool size. Decrease the removeAbandoned time. If it is a leak. Ensure that all close commands are in a finally block. Doug www.parsonstechnical.com - Original Message - From: "Josh G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 4:19 AM Subject: JNDI/MYSQL - Too many connections > Hi, I'm getting this error after a while from tomcat, even though we're > running removeAbandoned, and every connection opened is explicitly closed: > > Unrecoverable exception. Reason: > org.apache.commons.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory, cause: Server connection failure during > transaction. Due to underlying exception: 'java.sql.SQLException: Data > source rejected establishment of connection, message from server: "Too > many connections"'. > Attempted reconnect 3 times. Giving up. > com.pirionsystems.he.sql.MySQLIndex.getSiteIdByAlias(MySQLIndex.java:46) > com.pirionsystems.he.businessobjects.HeDBDocumentManager.getSiteIdByAlias(He DBDocumentManager.java:310) > com.pirionsystems.he.servlet.HeServletBase.setSite(HeServletBase.java:101) > com.pirionsystems.he.servlet.HeServletBase.startupRequest(HeServletBase.java :85) > com.pirionsystems.he.servlet.HeServlet.doGet(HeServlet.java:22) > com.pirionsystems.he.servlet.HeServlet.doPost(HeServlet.java:37) > javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > Anybody know what I should be looking for? > > Cheers, > -Josh > > > "Your headgear seems to be emitting a buzzing noise, sir. > Perhaps you have a bee in your bonnet?" > > [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] > > [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Known problem with tomcat, jndi datasourc - PLEASE HELP
Prasad, I DID. Did you miss it? Here it is again. First check you logs and see if any error messages are showing up. As a just for kicks try thing, move the username up in the configuration to before the password. Crazy thing but it caused mine to not see the password. I don't think you will get back any indications in the java trace that the password is bad but the logs will show trying to connect with the proper user but no reference to password. Note: It will not list the password in the log but will say password yes or something like that. Let us know what you find. Also give use you system info: Tomcat=5 OS=? JDK=? Doug www.parsonstechnical.com - Original Message - From: "prasad chaturvedula" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 2:49 AM Subject: Re: Known problem with tomcat, jndi datasourc - PLEASE HELP > Hi > > Can pleae you give me pointers to solutions to the > problem of a null for teh driverclass name, there > seems to be no solution in the archives till date. > Thanks. > > Prasad > > --- "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]> wrote: > > Hello All, > > I have been scouring the mailing list archives > > and lot of other > > places. I am seeing a problem configuring a > > datasource with Tomcat. I > > have put the following entry in my server.xml > > > > > > docBase="C:\software\eclipse\workspace\HRTechnology\TOMCAT_ROOT" > > reloadable="true"> > > > auth="Container" type="javax.sql.DataSource"/> > > > name="jdbc/loacenet"> > > . > > . > > . > > . > > > > > > password > > > > databasepassword > > > > > > url > > > > > jdbc:oracle:[EMAIL PROTECTED]:1521:[sid] > > > > > > > > driverClassName > > > > oracle.jdbc.driver.OracleDriver > > > > > > > > username > > > > user > > > > > > > > However when I try to load my plugin in the struts > > application, I get > > the following exception. I looked at everything on > > archives and on there > > people were complaining about NULL for > > driverClassName, in my case, it > > reads the drivername and url properly and still > > blows up. Please help. I > > am using Tomcat 5.0 with the latest > > ojdbc14.jar/commons-dbcp-1.1.jar in > > common/lib and am trying to connect to oracle 8.1.7. > > > > > > org.apache.commons.dbcp.SQLNestedException: Cannot > > create JDBC driver of > > class ' > > oracle.jdbc.driver.OracleDriver' for connect URL > > 'jdbc:oracle:[EMAIL PROTECTED] > > :1521:[sid]', cause: > > java.sql.SQLException: No suitable driver > > at > > > java.sql.DriverManager.getDriver(DriverManager.java:243) > > at > > > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou > > rce.java:743) > > at > > > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource > > .java:518) > > at > > > com.sbc.hrtech.framework.utility.InitializerPlugin.init(InitializerPl > > ugin.java:41) > > at > > > org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle > > t.java:1158) > > at > > > org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) > > at > > > javax.servlet.GenericServlet.init(GenericServlet.java:256) > > at > > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. > > java:1044) > > at > > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88 > > 7) > > at > > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex > > t.java:3960) > > at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4 > > 283) > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > > > at > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:832) > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > > > > at > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518 > > ) > > at > > > org.apache.catalina.core.StandardService.start(StandardService.java:5 > > 19) > > at > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:234 > > 5) > > at > > > org.apache.catalina.startup.Catalina.start(Catalina.java:598) > > 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:324) > > at > > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > > at > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > > Excpetion in InitializerPlugin > > > > > > The java code in the plugin is as follows > > Context init = new InitialContext(); > > Context ctx = (Context
Returned Mail: Error During Delivery
-- Here is your List of Failed Recipients -- <[EMAIL PROTECTED]> Requested action not taken: mailbox unavailable. [SMTP Error Code 550] Here Is Your Returned Mail Received: FROM mailgate3.nec.co.jp BY oms.isop.yh.nec.co.jp ; Fri Apr 09 19:10:43 2004 +0900 Received: (from [EMAIL PROTECTED]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id i39AAcg20127 for [EMAIL PROTECTED]; Fri, 9 Apr 2004 19:10:38 +0900 (JST) Received: from oms.isop.yh.nec.co.jp ([202.38.53.115]) by TYO203.gate.nec.co.jp (8.11.7/3.7W02122014) with ESMTP id i39AABO18326 for <[EMAIL PROTECTED]>; Fri, 9 Apr 2004 19:10:13 +0900 (JST) Message-Id: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Information Date: Fri, 9 Apr 2004 03:10:14 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_NextPart_000_0016=_NextPart_000_0016" X-Priority: 3 X-MSMail-Priority: Normal This is a multi-part message in MIME format. --=_NextPart_000_0016=_NextPart_000_0016 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit -- Virus Warning Message --- Found virus WORM_NETSKY.P in file details.txt .pif (in news01.zip) The uncleanable file is deleted. Have detected viruses in mails sent to you. MAILGATE deleted viruses or files contained viruses. If you have questions about this message, please consult with [EMAIL PROTECTED]| $B$"$J$?08$KAwIU$5$l$?%a!<%k$+$i%&%$%k%9$,8!=P$5$l$?$?$a!"3:EvE:IU%U%!%$%k$N$_%a!<%k$+$i6n=|(B/$B:o=|$7$^$7$?!#2<5-(BURL$B$r;2>H$N>e!"[EMAIL PROTECTED]@$,$"$k>l9g!"([EMAIL PROTECTED]<$5$$!#(B -About Virus Scan Gate(Only jp): http://www.ipc.nec.co.jp/virus/mgate/ - --=_NextPart_000_0016=_NextPart_000_0016 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Monthly news report. --=_NextPart_000_0016=_NextPart_000_0016 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit -- Virus Warning Message --- news01.zip is removed from here because it contains a virus. -About Virus Scan Gate(Only jp): http://www.ipc.nec.co.jp/virus/mgate/ - --=_NextPart_000_0016=_NextPart_000_0016-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 4 vs 5 form based container auth & filters
Hi, Initial observation indicates that filters get executed when a form for form based container auth is served - under tomcat 4, but not under tomcat 5. I'm using sitemesh. The decorations go on the form based login page under tomcat 4, but not under tomcat 5. I need to do more research, but can any one add to this? Thanks Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to start a Realm from a servlet or a filter
Hi, because of technical reasons I want to start a Realm class during run-time, thus I cannot just configure Realm via " factory org.apache.naming.factory.BeanFactory debug 99 pathname conf/tomcat-users.xml Zsolt Koppany Phone: +49-711-722 1874 -- Intland Software GmbH, Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart, Germany Phone: +49-711-722 1873, e-mail:[EMAIL PROTECTED] Fax: +49-711-722 1835 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI/MYSQL - Too many connections
Hi, I'm getting this error after a while from tomcat, even though we're running removeAbandoned, and every connection opened is explicitly closed: Unrecoverable exception. Reason: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Data source rejected establishment of connection, message from server: "Too many connections"'. Attempted reconnect 3 times. Giving up. com.pirionsystems.he.sql.MySQLIndex.getSiteIdByAlias(MySQLIndex.java:46) com.pirionsystems.he.businessobjects.HeDBDocumentManager.getSiteIdByAlias(HeDBDocumentManager.java:310) com.pirionsystems.he.servlet.HeServletBase.setSite(HeServletBase.java:101) com.pirionsystems.he.servlet.HeServletBase.startupRequest(HeServletBase.java:85) com.pirionsystems.he.servlet.HeServlet.doGet(HeServlet.java:22) com.pirionsystems.he.servlet.HeServlet.doPost(HeServlet.java:37) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Anybody know what I should be looking for? Cheers, -Josh "Your headgear seems to be emitting a buzzing noise, sir. Perhaps you have a bee in your bonnet?" [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ]
problem with authentication with sapdb 7.4
Hi we have the following problem. When performing login we get at times Authentication error. It happens when the database connection timeout expires. sapdbc performs the reconnect, but the jdbc driver of sapdb 7.4 seems to throw a Timeout exception anyway. Tomact redirects to the error page. We are almost sure that sapdbc reconnects - in fact when you retry logging in a few seconds later everything works Also, other tools such as DbVisualizer seem not to have the problem. We also wrote a simple program which catches the TimeOut exception and ignores it, and it works (the connection is available). Does anybody experienced a similar behavior ? What is the easiest way to remove the problem if any ? Thanks -giovanni 2004-03-05 12:53:29 JDBCRealm[Standalone]: Exception performing authentication com.sap.dbtech.jdbc.exceptions.TimeoutException: [700]: Timeout at com.sap.dbtech.jdbc.ConnectionSapDB.tryReconnect(ConnectionSapDB.java:782) at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:423) at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:325) at com.sap.dbtech.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:382) at com.sap.dbtech.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:292) at com.sap.dbtech.jdbc.CallableStatementSapDB.executeQuery(CallableStatementSapDB.java:666) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:445) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
RE: Session behaviour across http/https boundary
Hi Bill, Thanks for clarifying. BTW Do you know if this policy in the browser, or if tomcat uses the refer header to implement it on the server? Thanks Martin -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: 09 April 2004 06:22 To: [EMAIL PROTECTED] Subject: Re: Session behaviour across http/https boundary "Martin Alley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a small web app that appears to illustrate the following > behaviour. > Session started in http is carried over to https, but session started in > https is *not* carried over to http! > > Why? This is for security reasons (so that it isn't possible to steal sensitive information that was entered in via SSL). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Can someone help me to fix the soft link problem in Tomcat 4.1.27
Hi Have you add allowLinking="true" in your Context path ? Philippe -Message d'origine- De : Kam Lung Leung [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 avril 2004 23:54 À : [EMAIL PROTECTED] Objet : Can someone help me to fix the soft link problem in Tomcat 4.1.27 Hi, I installed Tomcat 4.1.27 on our server and drop a myApp.war into the webapps directory. We restart Tomcat and wait for it to finish to unpack all web components, then we stop Tomcat. We create a soft link within our web component to point to directory outside the root context of our web component. But Tomcat says the requested resource is not available when we try to access the soft linked directory from the browser. In fact a "null" shows up in the last modified column. Can someone please tell me what to do to fix this problem. Your help is greatly appreciated. Kam - 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]