Re: Apache/Tomcat/mod_jk over WAN
hi I have one question I want to installation procedure for the apache tomcat5.5 version in windows XP -- From: "John Moore" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2007 11:10 AM To: "Tomcat Users List" Subject: RE: Apache/Tomcat/mod_jk over WAN Thanks for the input on the timeouts, having run lb connectors in LAN environment for years now, I never really ran into this issue or stumbled across this document. What I meant by the stop comment is really in reference to fault-tolerance. [For reference, the current environment has a mesh of 4 machines that have redundant hardware load balancers in front of them. To support the dynamic content this is needed, but unnecessary and expensive to replicate in remote locations that only serve static content.] If an apache server can't support serving dynamic content, I need to re-direct users (as transparently as possible) to a server that can. Thinking out loud, I could continue to have dynamic content from www.mysite.com and static from static.mysite.com and simply embed the full static-site url in the page. Alternatively, as you indicated, if I direct them to an error page, I can redirect them to an apache instance that's fully functional. Will take a bit more coordinate between apache server's maybe using something from the Linux LVS or Linux-HA project. Thanks again. John -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 4:32 PM To: Tomcat Users List Subject: Re: Apache/Tomcat/mod_jk over WAN Hi John, John Moore schrieb: I have a cluster of Tomcat 5.5 servers that are running Apache 2.2 to serve static content; mod_jk 1.2.25 connector is used. I am considering adding apache servers in separate corners of the country to serve the static content closer to the user. I can not copy Tomcat to each of these locations. I was thinking of routing the ajp traffic through an OpenVPN SSL tunnel to the existing tomcat servers. We did some tests and were surprised that there seemed to be a decent performance increase. Has anyone had any successes, failures, or gotcha's doing this? No real experience. I heard from a couple of people, who had problems with the stability of the tunnel. So using Cping/Cpong etc. could be important here. Read the Timeouts docs page http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html especially the parts related to firewalls (a dropped VPN tunnel might behave similarly to an idle connection drop by a firewall). Would mod_jk solution use less bandwidth than something like mod_proxy to redirect the tomcat-destined http/s requests? I would not expect, that AJP13 gives a big bandwidth benefit. Since you are talking about dynamic content only, usually we are in the region of about 5-20KB per request, and the savings from the binary encoded HTTP headers should be well below 1KB. On the other hand AJP13 response packets have a little overhead, so I would expect well below 10% reduction in needed bandwidth. Any suggestions on stopping user access to a Apache if AJP link to Tomcat drops? What do you mean by stop? Presenting well-defined error pages? In case mod_jk can not reach Tomcat it should return a 503, sometimes a 504. You can define a customized ErrorDocument in httpd for this case. I would always include an lb worker between Apache and even a single Tomcat, because this enables you to get better state information via a status worker. Thanks, John Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, proprietary, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination, or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender. If you have received this transmission in error, please return the material received to the sender and delete all copies from your system. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hi
hi I want installation procedure for apache tomcat5.5 DISCLAIMER: This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, proprietary, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination, or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender. If you have received this transmission in error, please return the material received to the sender and delete all copies from your system.
hi
hi I want installation procedure for apache tomcat 5.5 DISCLAIMER: This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, proprietary, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination, or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender. If you have received this transmission in error, please return the material received to the sender and delete all copies from your system.
RE: Apache/Tomcat/mod_jk over WAN
Thanks for the input on the timeouts, having run lb connectors in LAN environment for years now, I never really ran into this issue or stumbled across this document. What I meant by the stop comment is really in reference to fault-tolerance. [For reference, the current environment has a mesh of 4 machines that have redundant hardware load balancers in front of them. To support the dynamic content this is needed, but unnecessary and expensive to replicate in remote locations that only serve static content.] If an apache server can't support serving dynamic content, I need to re-direct users (as transparently as possible) to a server that can. Thinking out loud, I could continue to have dynamic content from www.mysite.com and static from static.mysite.com and simply embed the full static-site url in the page. Alternatively, as you indicated, if I direct them to an error page, I can redirect them to an apache instance that's fully functional. Will take a bit more coordinate between apache server's maybe using something from the Linux LVS or Linux-HA project. Thanks again. John -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 4:32 PM To: Tomcat Users List Subject: Re: Apache/Tomcat/mod_jk over WAN Hi John, John Moore schrieb: > > I have a cluster of Tomcat 5.5 servers that are running Apache 2.2 to > serve static content; mod_jk 1.2.25 connector is used. I am considering > adding apache servers in separate corners of the country to serve the > static content closer to the user. I can not copy Tomcat to each of > these locations. I was thinking of routing the ajp traffic through an > OpenVPN SSL tunnel to the existing tomcat servers. We did some tests and > were surprised that there seemed to be a decent performance increase. > > Has anyone had any successes, failures, or gotcha's doing this? No real experience. I heard from a couple of people, who had problems with the stability of the tunnel. So using Cping/Cpong etc. could be important here. Read the Timeouts docs page http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html especially the parts related to firewalls (a dropped VPN tunnel might behave similarly to an idle connection drop by a firewall). > Would mod_jk solution use less bandwidth than something like mod_proxy > to redirect the tomcat-destined http/s requests? I would not expect, that AJP13 gives a big bandwidth benefit. Since you are talking about dynamic content only, usually we are in the region of about 5-20KB per request, and the savings from the binary encoded HTTP headers should be well below 1KB. On the other hand AJP13 response packets have a little overhead, so I would expect well below 10% reduction in needed bandwidth. > > Any suggestions on stopping user access to a Apache if AJP link to > Tomcat drops? What do you mean by stop? Presenting well-defined error pages? In case mod_jk can not reach Tomcat it should return a 503, sometimes a 504. You can define a customized ErrorDocument in httpd for this case. I would always include an lb worker between Apache and even a single Tomcat, because this enables you to get better state information via a status worker. > Thanks, > John Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 to Tomcat migration guide
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5 to Tomcat migration guide > > Is there a list of problems to watch for in migrating a Tomcat5.5 app > to Tomcat6? Look at the migration guide: http://tomcat.apache.org/migration.html > What is the equivalent of Tomcat5.5's common/endorsed in Tomcat6? ${TOMCAT_BASE}/endorsed > I mean how do I load a class using commons classloader in TC6? The common classloader was never used for the endorsed directory; jars and classes in that directory are handled by the JVM's endorsed classloader (functionally equivalent to the bootstrap classloader). See the doc for classloading details: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging classloading
Env: JDK6, Tomcat5.5.x, Linux redhat I have a jarfile in common/endorsed; the classes in it are referred to by the classes loaded by my webapp classloader. Yet, my webapp aborts with classdef not found exception. Is there a way to neatly detail how each classloader is loading? (Other than making java -verbose)? Tx, /U - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 to Tomcat migration guide
Is there a list of problems to watch for in migrating a Tomcat5.5 app to Tomcat6? What is the equivalent of Tomcat5.5's common/endorsed in Tomcat6? I mean how do I load a class using commons classloader in TC6? Thanx, /U - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 listening Ajp12 communication
"Debianito" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there! > > I've to set a Tomcat5 server listening in someway over a Ajp12 > communication. > The problem is that the frontside webserver uses an old Jserv. > I can't make any changes there, so I've to manage seting the Tomcat5 > server accepting Ajp12 requests temporaly during a quick migration. > > I'll use modproxy features at a last chance, but I'd prefer to stay > over Ajp12 communication insted. > > Any Ideas? Tomcat 3.3.x is the highest version that supports AJP12 (and even there it is deprecated). You can either use mod_jk or mod_proxy_ajp with Tomcat 5, but not Jserv :). > > Thanks in Advance. > > > > Greetings, > > > Debianito. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat/mod_jk over WAN
Hi John, John Moore schrieb: > > I have a cluster of Tomcat 5.5 servers that are running Apache 2.2 to > serve static content; mod_jk 1.2.25 connector is used. I am considering > adding apache servers in separate corners of the country to serve the > static content closer to the user. I can not copy Tomcat to each of > these locations. I was thinking of routing the ajp traffic through an > OpenVPN SSL tunnel to the existing tomcat servers. We did some tests and > were surprised that there seemed to be a decent performance increase. > > Has anyone had any successes, failures, or gotcha’s doing this? No real experience. I heard from a couple of people, who had problems with the stability of the tunnel. So using Cping/Cpong etc. could be important here. Read the Timeouts docs page http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html especially the parts related to firewalls (a dropped VPN tunnel might behave similarly to an idle connection drop by a firewall). > Would mod_jk solution use less bandwidth than something like mod_proxy > to redirect the tomcat-destined http/s requests? I would not expect, that AJP13 gives a big bandwidth benefit. Since you are talking about dynamic content only, usually we are in the region of about 5-20KB per request, and the savings from the binary encoded HTTP headers should be well below 1KB. On the other hand AJP13 response packets have a little overhead, so I would expect well below 10% reduction in needed bandwidth. > > Any suggestions on stopping user access to a Apache if AJP link to > Tomcat drops? What do you mean by stop? Presenting well-defined error pages? In case mod_jk can not reach Tomcat it should return a 503, sometimes a 504. You can define a customized ErrorDocument in httpd for this case. I would always include an lb worker between Apache and even a single Tomcat, because this enables you to get better state information via a status worker. > Thanks, > John Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache/Tomcat/mod_jk over WAN
I have a cluster of Tomcat 5.5 servers that are running Apache 2.2 to serve static content; mod_jk 1.2.25 connector is used. I am considering adding apache servers in separate corners of the country to serve the static content closer to the user. I can not copy Tomcat to each of these locations. I was thinking of routing the ajp traffic through an OpenVPN SSL tunnel to the existing tomcat servers. We did some tests and were surprised that there seemed to be a decent performance increase. Has anyone had any successes, failures, or gotcha’s doing this? Would mod_jk solution use less bandwidth than something like mod_proxy to redirect the tomcat-destined http/s requests? Any suggestions on stopping user access to a Apache if AJP link to Tomcat drops? Thanks, John - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web app classloader loading JAAS LoginModule instead of server
If your problem is that a webapp using hibernate loaded it's configuration from webappclassloader and then stored the hibernate loaded configuration in hibernate at common/ level, the problem is probably that you have put hibernate in common classloader (so common configuration, first webapp to configure it wins) instead of server level (that is, not reacheable by webapps). Putting your hibernate realm stuff in server/lib should make it invisible to webapps and then not influenceable by webapps. Andrew R Feller a écrit : While developing a custom JAAS module to use Hibernate for users' authorization profiles on a new application, we found that the Hibernate login module was being initialized not by the server's classloader but the webapp's classloader! As we want to have different Realms declared for each web application, we don't want to set a realm and security constraints at the server level. This issue came up while stepping through Tomcat's log. Whenever the application was being initialized, then its hibernate.cfg.xml was loaded up from /WEB-INF/classes by the webappClassLoader. Later on whenever the protected resource was requested and the JAAS login module was invoked, the login module was ALSO loaded by the webappClassLoader and the hibernate.cfg.xml it requested was loaded from the webappClassLoader's cache instead of searching for the one in server/classes. Questions: 1. Why is the webapp's classloader loading classes for the login module? Is this the intended behavior? 2. How is it possible to make Tomcat initialize the login module without the login module being declared for the entire server? Sincerely, Andrew Andrew R Feller, Analyst Subversion Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PermGen Out of memory exception
> From: Jim [mailto:[EMAIL PROTECTED] > Subject: Re: PermGen Out of memory exception > > The problem with that language is it implies that PermGen space is > generally only an issue if you're using a lot of servlets or JSPs. Agreed, that's not inclusive enough. > there's nothing in the FAQ linking the PermGen error to the > "Your classloaders are not being garbage collected" link. Yes, that should be clearer. (Poking around, I can't find any doc on how to update the FAQ - it doesn't appear to be in the source tree, but I might have missed it.) In any event, if you have suggested wording updates, please submit them via Bugzilla. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PermGen Out of memory exception
Caldarale, Charles R wrote: Perhaps the Tomcat FAQ on memory-issues could be fleshed out/updated? This specific item is already in the Tomcat FAQ: "If you have a lot of servlets or JSP's, you may need to increase your permanent generation. By default, it is 64MB. Doubling [sic] it to be -XX:MaxPermSize=256m might be a good start." The problem with that language is it implies that PermGen space is generally only an issue if you're using a lot of servlets or JSPs. But these days, I assume more people are getting PermGen issues not with servlets/JSPs but with framework stacks -- e.g. Hibernate makes hungry use of PermGen. Further, this entry implies that an application will take a static amount of PermGen, so doubling it will solve the problem, but I read about a lot of people having this issue on reload/redeploy -- i.e. the classloader leak, but there's nothing in the FAQ linking the PermGen error to the "Your classloaders are not being garbage collected" link. I agree with you that that article has pretty much everything, but it's put at the end of the list almost as an afterthought, and I'd also suggest that if someone had already concluded that their classloaders were not being garbage collected, they'd have already found that link. We should put some and tags around it! : ) Mostly I'm just being defensive, but I do truly appreciate the correction. Jim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web app classloader loading JAAS LoginModule instead of server
> From: Andrew R Feller [mailto:[EMAIL PROTECTED] > Subject: Web app classloader loading JAAS LoginModule instead > of server > > we found that the Hibernate login module was being initialized > not by the server's classloader but the webapp's classloader! > As we want to have different Realms declared for each web > application, we don't want to set a realm and security > constraints at the server level. I'm confused; since you want different Realms for each webapp, isn't the above observed behavior also the desired behavior? > Whenever the application was being initialized, then its > hibernate.cfg.xml was loaded up from /WEB-INF/classes by > the webappClassLoader. Later on whenever the protected > resource was requested and the JAAS login module was invoked, > the login module was ALSO loaded by the webappClassLoader So the same login module was loaded by the same classloader twice? Or is there an error in the above statement? > the hibernate.cfg.xml it requested was loaded from the > webappClassLoader's cache instead of searching for the > one in server/classes. Since you want separate Realms for each webapp, isn't the above what you want? > 1.Why is the webapp's classloader loading classes for the login > module? Is this the intended behavior? Depends on where your is declared. Take a look at: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Configuring%20a %20Realm > 2.How is it possible to make Tomcat initialize the login module > without the login module being declared for the entire server? Again, see the above link. From your description, it looks like you've already achieved what you want. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web app classloader loading JAAS LoginModule instead of server
While developing a custom JAAS module to use Hibernate for users' authorization profiles on a new application, we found that the Hibernate login module was being initialized not by the server's classloader but the webapp's classloader! As we want to have different Realms declared for each web application, we don't want to set a realm and security constraints at the server level. This issue came up while stepping through Tomcat's log. Whenever the application was being initialized, then its hibernate.cfg.xml was loaded up from /WEB-INF/classes by the webappClassLoader. Later on whenever the protected resource was requested and the JAAS login module was invoked, the login module was ALSO loaded by the webappClassLoader and the hibernate.cfg.xml it requested was loaded from the webappClassLoader's cache instead of searching for the one in server/classes. Questions: 1. Why is the webapp's classloader loading classes for the login module? Is this the intended behavior? 2. How is it possible to make Tomcat initialize the login module without the login module being declared for the entire server? Sincerely, Andrew Andrew R Feller, Analyst Subversion Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737
in memory persistent session.JDBCStore . . .
~ Would it make any sense to use an in memory session.JDBCStore or simply set a negative maxInactiveInterval? ~ IMHO it is best to put lots of RAM in your box and set a high or negative maxInactiveInterval, but I may be missing some basic issues and I don't know the details of tomcat's inner working ~ I am thinking of running tomcat from a live CD and I would like to only hit the back end data base running in a box with hard drives only when absolutely necessary ... ~ What do you think about this kind of setup? ~ Thanks lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsp and php for teaching? How I will configure?
Hello! > See Virtual Hosting > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html I will check it. > have public_html/jsp directory too. Tomcat will handle that directory. >See User Web Applications >http://tomcat.apache.org/tomcat-5.5-doc/config/host.html I will read this too. > > What is best solutions? >It depends ;) >I like the idea of Apache -> Tomcat its more flexible, but I dont think you >going to let students play too much beyond static sites. >If you are going to teach servlet practicals, I think every student has to >have an IDE with an embedded Tomcat. >Even virtual hosting for each student... I think is too unstable... It not sound good. Student will get many strange situation. ;-) >For teaching... I think WIKI's and BLOGs and all those handy things are >equally important.. > Maybe others could recommend Servlet based tools in this area? >I think the server will become more of a delivery tool than a student play >thing. Yes that's right. We have own lab for playing with servers. Only for small server, but it is something. :-) >Good luck > 20 year old Finish Girls... I think you going to get lots of volunteer help ;) Oh yeah... I haven't think that. ;-) It is good that temperature in Finland is now about 0 celsius. They don't use too small clothes this time of year. :-) Regards: Keijo > > We have about 100 student's per year using this server. So it is very > little > use, but I like to learn more so that we could get better guality of our > student. :-) > > Sorry about my pad English. > > Thanks in advance. > > Best Regards: > Mr Keijo Salakari > Finland > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsp and php for teaching? How I will configure?
Hello! And thanks of answers. --snip-- > What is best solutions? > >Will the server be reachable via port 8080? If so then no need to install mod_jk. Yes it will be... I only need to open port from firewall. > I would use the user directory feature of tomcat to have tomcat be able to serve files from > user's public_html directories. > Read: Thanks I will read it. >http://tomcat.apache.org/tomcat-6.0-doc/config/host.html >Look in the "User Web Applications" section, it's the last one. >Apache httpd can handle php etc and tomcat can handle servlets, jsp and any html pages >needed. >I have simmilar setup for students and faculty. Okay, I think that soon I will have similar too. Regerds: Keijo -Steve O. > We have about 100 student's per year using this server. So it is very > little use, but I like to learn more so that we could get better > guality of our student. :-) > > Sorry about my pad English. > > Thanks in advance. > > Best Regards: > Mr Keijo Salakari > Finland > > > > - > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] For additional commands, > e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp and php for teaching? How I will configure?
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: "Keijo Salakari" <[EMAIL PROTECTED]> To: Sent: Monday, November 12, 2007 6:07 PM Subject: jsp and php for teaching? How I will configure? Hello everybody! I work Pori college. I teach from 16 up to 20 years girls and boys in computer technology. I teach HTML, css, php, mysql, java, jsp(not yet), server(M$, linux and FreeBSD), network, linux, unix and many other computer technology. I'll have one server for training. Student's use this same server to publishing pages and application. I have installed next program. * FreeBSD6.2 * apache-2.2.6_2 * apache-tomcat-6.0.14 * autoconf-2.61_2 * autoconf-wrapper-20070404 * bigreqsproto-1.0.2 * cups-base-1.3.3 * cvsup-without-gui-16.1h_2 * db41-4.1.25_4 * desktop-file-utils-0.12_1 * diablo-jdk-1.5.0.07.01_7 * expat-2.0.0_1 * gettext-0.14.5_2 * glib-2.12.13 * gmake-3.81_2 * gnutls-1.6.3 * help2man-1.36.4_1 * inputproto-1.4.2.1 * javavmwrapper-2.3 * jdk-1.6.0.1p1_5 * jpeg-6b_4 * kbproto-1.0.3 * libICE-1.0.4,1 * libSM-1.0.3,1 * libX11-1.1.3,1 * libXau-1.0.3_2 * libXaw-1.0.4,1 * libXdmcp-1.0.2 * libXext-1.0.3,1 * libXi-1.1.3,1 * libXmu-1.0.3,1 * libXp-1.0.0,1 * libXpm-3.5.7 * libXt-1.0.5 * libXtst-1.0.3 * libgcrypt-1.2.4_1 * libgpg-error-1.5 * libiconv-1.9.2_2 * libtool-1.5.24 * libxml2-2.6.30 * linux_base-fc-4_9 * m4-1.4.9,1 * mod_jk-ap2-1.2.25,1 * mysql-client-5.0.45_1 * mysql-server-5.0.45_1 * nano-1.2.5 * open-motif-2.2.3_5 * p5-gettext-1.05_1 * perl-5.8.8 * php5-5.2.4_1 * php5-mysql-5.2.4_1 * pkg-config-0.22 * png-1.2.22 * popt-1.7_4 * portupgrade-2.3.1,2 * printproto-1.0.3 * python-2.5,2 * python25-2.5.1 * recordproto-1.13.2 * ruby-1.8.6_2,1 * ruby18-bdb-0.6.2 * tiff-3.8.2_1 * unzip-5.52_3 * xbitmaps-1.0.1 * xcmiscproto-1.1.2 * xextproto-7.0.2 * xf86bigfontproto-1.1.2 * xproto-7.0.10_1 * xtrans-1.0.4 * zip-2.32 I have installed Tomcat, but I am not happy with it yet. I'll believe that I have four possibility. 1. Install apache + mod_jk + tomcat + java for jsp and servlet training See Virtual Hosting http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html purpose. Apache handle all internet call's. 2. Install apache for html and php AND install tomcat fot jsp and servlet. Both answer own call's 3. Puy other server and use other for apache and other server for jsp. 4. Forget jsp. (You will lose a lot of students) I need private(jails?) folder for every student. I need folder to work with html and jsp. Example user1 home directory is /usr/user1. There he will have public_html directory. Apache will handle this directory. Student could have public_html/jsp directory too. Tomcat will handle that directory. See User Web Applications http://tomcat.apache.org/tomcat-5.5-doc/config/host.html What is best solutions? It depends ;) I like the idea of Apache -> Tomcat its more flexible, but I dont think you going to let students play too much beyond static sites. If you are going to teach servlet practicals, I think every student has to have an IDE with an embedded Tomcat. Even virtual hosting for each student... I think is too unstable... For teaching... I think WIKI's and BLOGs and all those handy things are equally important.. Maybe others could recommend Servlet based tools in this area? I think the server will become more of a delivery tool than a student play thing. ie once you get into servlet and configuring servers... ie beyond static sites... students have to work off the server. Good luck 20 year old Finish Girls... I think you going to get lots of volunteer help ;) We have about 100 student's per year using this server. So it is very little use, but I like to learn more so that we could get better guality of our student. :-) Sorry about my pad English. Thanks in advance. Best Regards: Mr Keijo Salakari Finland - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PermGen Out of memory exception
> From: Jim [mailto:[EMAIL PROTECTED] > Subject: Re: PermGen Out of memory exception > > To address your rhetorical question :) , this issue is a > mess to research. Which is why it should be done before deployment... > it can be intimidating to be pointed at a 21 page > Sun white paper Try this one first: http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html Unfortunately, it does not address class-heavy situations, such as app servers. > http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang, > which suggests upgrading Tomcat, or switching to JRockit, or > upgrading the JVM. Switching to JRockit only masks the problem temporarily, since it doesn't have a separate space for instances of java.lang.Class; do enough app reloads with JRockit, and you will run into the problem. We've also found other significant issues with JRockit, so I can't recommend it. > http://my.opera.com/karmazilla/blog/2007/03/15/permgen-strikes-back This one article is the source of much misinformation. It's unfortunate that the author has decided his conclusions are the only possible ones that explain the symptoms, regardless of reality. > The fallacy's just not obvious, and there's no simple authority > on this common issue. Well, actually there is - look at the HotSpot JVM code, which is freely available. Of course, there are side effects ("My brain hurts!" "It will have to come out." :-). > Perhaps the Tomcat FAQ on memory-issues could be fleshed > out/updated? This specific item is already in the Tomcat FAQ: "If you have a lot of servlets or JSP's, you may need to increase your permanent generation. By default, it is 64MB. Doubling [sic] it to be -XX:MaxPermSize=256m might be a good start." > an explicit contrary statement in the FAQ would be helpful This article linked to from "Your classloaders are not being garbage collected" seems to cover pretty much everything you've asked for. For reference, it points to the following location: http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action ?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm desparate with an Apache problem and ReverseProxy
On Tomcat side proxyHost and proxyPort in the Connector element on the apache sidfe ProxyPreserveHost On if you do the apache side, you can remove the proxyHost on the tomcat side Filip Christoph P. Kukulies wrote: I know this may not be the correct mailing list but maybe I can find an expert here - I didn't get an answer yet in any apache forum I knew of: I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS running as a content management system) Furthermore I have an application server in my intranet which can be accessed by a firewall rule also from my webserver through the internet. I'm trying to put some statements in my sites Virtual host section to map request going to http://www.mycompany.com/forum to http://forum.mycompany.com/ doing it by ProxyPass /forum/ http://forum.mycompany.com/ ProxyPassReverse /forum/ http://forum.mycompany.com I have barred the server http://forum.mycompany.com to the Internet and only a request coming directly from www.mycompany.com is being let through. What happens is that when I access the site from the outside (INternet) and enter http://www.mycompany.com/forum/ in the browser I'm seeing that the client (browser, lower left corner in Firefox) tries to connect directly to forum.mycompany.com which it shouldn't. From my understanding the site server should do the request and pass the response back to the client. Please help. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5.5 Debian Startup Script
Hi Janning, we've downloaded Tomcat from the Apache website, un-tarred it and ran it using the original scripts - it works quite smooth. Consider this solution as a workaround in case you're not able to solve the problem. I know that there have been some issues with the Debian packages in the German Debian mailinglist, but I can't recall exactly what the problems where. Therefore my suggestion: Get rid of the Debian package, write your own sweet little /etc/init.d - startup-script, use the original Tomcat-installation and have fun. If you need assistance writing your /etc/init.d/tomcat or face problems with the original startup.sh, let me know. If you really want to drill down your problem, try the following: start your script with bash -x [your_startup-script_here] and see if you find some more information: bash -x makes the output of the shell a bit more talkative. HTH Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
JConsole port
Is there a standard (either de facto or formal) port to use for jmx when monitoring a tomcat app with jconsole? If so, what is it? D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat in production
Take a look at the Apache Portable Runtime: It will increase Tomcat's performance regarding static content sigificantly: http://tomcat.apache.org/tomcat-6.0-doc/apr.html Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
Re: I'm desparate with an Apache problem and ReverseProxy
try mod_rewrite.. http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html M-- - Original Message - From: "Christoph P. Kukulies" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 12, 2007 12:29 PM Subject: I'm desparate with an Apache problem and ReverseProxy > I know this may not be the correct mailing list but maybe > I can find an expert here - I didn't get an answer yet > in any apache forum I knew of: > > I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS > running as a content management system) > > Furthermore I have an application server in my intranet which can be accessed > by a firewall rule also from my webserver through the internet. > > I'm trying to put some statements in my sites Virtual host section > to map request going to > > http://www.mycompany.com/forum to http://forum.mycompany.com/ > > doing it by > > ProxyPass /forum/ http://forum.mycompany.com/ > ProxyPassReverse /forum/ http://forum.mycompany.com > > I have barred the server http://forum.mycompany.com to the Internet > and only a request coming directly from www.mycompany.com is being let through. > > What happens is that when I access the site from the outside (INternet) > and enter http://www.mycompany.com/forum/ in the browser > I'm seeing that the client (browser, lower left corner in Firefox) > tries to connect directly to forum.mycompany.com which it shouldn't. > > From my understanding the site server should do the request and pass the > response back to the client. > > Please help. > > > -- > Chris Christoph P. U. Kukulies kuku_at_kukulies.org > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help me please,
-D sets a system-property which then can be used by the Java Runtime. Quick guess: - You're using something but the original startup.bat-file Is the a special reason why ypu are using Tomcat 4 and not Tomcat 6? Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
Re: PermGen Out of memory exception
Caldarale, Charles R wrote: From: Jim [mailto:[EMAIL PROTECTED] Subject: Re: PermGen Out of memory exception PermGen space, on the other hand, doesn't get garbage collected As Peter C indicated, this is utter BS. Why do people keep propagating this fallacy? Easier to blame the JVM than take responsibility for bugs in your own code? Cool, thanks a lot for the clarification, and sorry about that. So there's nothing in the JVM or Tomcat (possible unknown/unfixed bugs notwithstanding) that precludes PermGen space from being recovered via garbage collection when undeploying an application? It's necessarily a leak in the application or one of the libraries/frameworks it uses? To address your rhetorical question :) , this issue is a mess to research. This industry being what it is, it can be intimidating to be pointed at a 21 page Sun white paper when users are screaming because the application is down; it certainly makes it hard for me to defend the learning curve of using Java-based open source approaches when that's the suggested avenue. People are obviously going to look for the quick answers first: Tomcat's FAQ (http://tomcat.apache.org/faq/memory.html) suggests too many servlets/JSPs for the PermGen issue. I use frameworks rather than servlets/JSPs directly, but when I go to the forums/bugs for those frameworks, they're usually blaming each other, or Tomcat, or the JVM. Turning, then, to a couple examples from Google: - Google "tomcat permgen" and get http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang, which suggests upgrading Tomcat, or switching to JRockit, or upgrading the JVM. - Google "permgen error", and get http://my.opera.com/karmazilla/blog/2007/03/15/permgen-strikes-back, which says: "And finally, the permanent generation. This is for objects that the virtual machine has decided to endorse with eternal life - which is precicely the core of the problem. Objects in the permanent generation are never garbage collected; that is, under /normal/ circumstances when the jvm is started with /normal/ command line parameters." It's hard not to take that last snippet at face value, for example, when a blank application with a framework stack leaks on reload, and all said frameworks claim to be leak-free. It's also called /Perm/Gen. The fallacy's just not obvious, and there's no simple authority on this common issue. Perhaps the Tomcat FAQ on memory-issues could be fleshed out/updated? With so many blogs, forum posts, and bug-report-discussion-threads suggesting that it's normal to expect an unbounded PermGen increase when reloading/redeploying applications, an explicit contrary statement in the FAQ would be helpful, if even to clarify for users that yes, they /should/ bother doing their own memory-profiling on this issue, because there /is/ a problem with some code they're using, whether it's theirs or another party's. The PermGen discussion in the FAQ should be expanded to include the now-common case of PermGen running out not because of servlets/JSPs but because of Hibernate's heavy PermGen usage, or because some other third party is precluding classloader garbage collection on reload/redeploy (which would be a great place for the link to Spring's compilation of leak issues with third-party libraries). Jim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm desparate with an Apache problem and ReverseProxy
Hi Christoph, please post your question here: You should get some answers almost instantly: The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
Tomcat5 listening Ajp12 communication
Hi there! I've to set a Tomcat5 server listening in someway over a Ajp12 communication. The problem is that the frontside webserver uses an old Jserv. I can't make any changes there, so I've to manage seting the Tomcat5 server accepting Ajp12 requests temporaly during a quick migration. I'll use modproxy features at a last chance, but I'd prefer to stay over Ajp12 communication insted. Any Ideas? Thanks in Advance. Greetings, Debianito. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp and php for teaching? How I will configure?
Date sent: Mon, 12 Nov 2007 18:07:25 +0200 From: Keijo Salakari <[EMAIL PROTECTED]> Subject:jsp and php for teaching? How I will configure? To: users@tomcat.apache.org Send reply to: Tomcat Users List > Hello everybody! > > I work Pori college. I teach from 16 up to 20 years girls and boys in > computer technology. > > I teach HTML, css, php, mysql, java, jsp(not yet), server(M$, linux > and FreeBSD), network, linux, unix and many other computer technology. > > I'll have one server for training. Student's use this same server to > publishing pages and application. > > I have installed next program. > * FreeBSD6.2 > * apache-2.2.6_2 > * apache-tomcat-6.0.14 --snip-- > I have installed Tomcat, but I am not happy with it yet. > > I'll believe that I have four possibility. > 1. Install apache + mod_jk + tomcat + java for jsp and servlet > training purpose. Apache handle all internet call's. 2. Install apache > for html and php AND install tomcat fot jsp and servlet. Both answer > own call's 3. Puy other server and use other for apache and other > server for jsp. 4. Forget jsp. > > I need private(jails?) folder for every student. I need folder to work > with html and jsp. Example user1 home directory is /usr/user1. There > he will have public_html directory. Apache will handle this > directory. Student could have public_html/jsp directory too. Tomcat > will handle that directory. > > What is best solutions? > Will the server be reachable via port 8080? If so then no need to install mod_jk. I would use the user directory feature of tomcat to have tomcat be able to serve files from user's public_html directories. Read: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html Look in the "User Web Applications" section, it's the last one. Apache httpd can handle php etc and tomcat can handle servlets, jsp and any html pages needed. I have simmilar setup for students and faculty. -Steve O. > We have about 100 student's per year using this server. So it is very > little use, but I like to learn more so that we could get better > guality of our student. :-) > > Sorry about my pad English. > > Thanks in advance. > > Best Regards: > Mr Keijo Salakari > Finland > > > > - > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] For additional commands, > e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm desparate with an Apache problem and ReverseProxy
I know this may not be the correct mailing list but maybe I can find an expert here - I didn't get an answer yet in any apache forum I knew of: I have an apache2 and a Tomcat running (in Tomcat I have OpenCMS running as a content management system) Furthermore I have an application server in my intranet which can be accessed by a firewall rule also from my webserver through the internet. I'm trying to put some statements in my sites Virtual host section to map request going to http://www.mycompany.com/forum to http://forum.mycompany.com/ doing it by ProxyPass /forum/ http://forum.mycompany.com/ ProxyPassReverse /forum/ http://forum.mycompany.com I have barred the server http://forum.mycompany.com to the Internet and only a request coming directly from www.mycompany.com is being let through. What happens is that when I access the site from the outside (INternet) and enter http://www.mycompany.com/forum/ in the browser I'm seeing that the client (browser, lower left corner in Firefox) tries to connect directly to forum.mycompany.com which it shouldn't. From my understanding the site server should do the request and pass the response back to the client. Please help. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp and php for teaching? How I will configure?
Hello everybody! I work Pori college. I teach from 16 up to 20 years girls and boys in computer technology. I teach HTML, css, php, mysql, java, jsp(not yet), server(M$, linux and FreeBSD), network, linux, unix and many other computer technology. I'll have one server for training. Student's use this same server to publishing pages and application. I have installed next program. * FreeBSD6.2 * apache-2.2.6_2 * apache-tomcat-6.0.14 * autoconf-2.61_2 * autoconf-wrapper-20070404 * bigreqsproto-1.0.2 * cups-base-1.3.3 * cvsup-without-gui-16.1h_2 * db41-4.1.25_4 * desktop-file-utils-0.12_1 * diablo-jdk-1.5.0.07.01_7 * expat-2.0.0_1 * gettext-0.14.5_2 * glib-2.12.13 * gmake-3.81_2 * gnutls-1.6.3 * help2man-1.36.4_1 * inputproto-1.4.2.1 * javavmwrapper-2.3 * jdk-1.6.0.1p1_5 * jpeg-6b_4 * kbproto-1.0.3 * libICE-1.0.4,1 * libSM-1.0.3,1 * libX11-1.1.3,1 * libXau-1.0.3_2 * libXaw-1.0.4,1 * libXdmcp-1.0.2 * libXext-1.0.3,1 * libXi-1.1.3,1 * libXmu-1.0.3,1 * libXp-1.0.0,1 * libXpm-3.5.7 * libXt-1.0.5 * libXtst-1.0.3 * libgcrypt-1.2.4_1 * libgpg-error-1.5 * libiconv-1.9.2_2 * libtool-1.5.24 * libxml2-2.6.30 * linux_base-fc-4_9 * m4-1.4.9,1 * mod_jk-ap2-1.2.25,1 * mysql-client-5.0.45_1 * mysql-server-5.0.45_1 * nano-1.2.5 * open-motif-2.2.3_5 * p5-gettext-1.05_1 * perl-5.8.8 * php5-5.2.4_1 * php5-mysql-5.2.4_1 * pkg-config-0.22 * png-1.2.22 * popt-1.7_4 * portupgrade-2.3.1,2 * printproto-1.0.3 * python-2.5,2 * python25-2.5.1 * recordproto-1.13.2 * ruby-1.8.6_2,1 * ruby18-bdb-0.6.2 * tiff-3.8.2_1 * unzip-5.52_3 * xbitmaps-1.0.1 * xcmiscproto-1.1.2 * xextproto-7.0.2 * xf86bigfontproto-1.1.2 * xproto-7.0.10_1 * xtrans-1.0.4 * zip-2.32 I have installed Tomcat, but I am not happy with it yet. I'll believe that I have four possibility. 1. Install apache + mod_jk + tomcat + java for jsp and servlet training purpose. Apache handle all internet call's. 2. Install apache for html and php AND install tomcat fot jsp and servlet. Both answer own call's 3. Puy other server and use other for apache and other server for jsp. 4. Forget jsp. I need private(jails?) folder for every student. I need folder to work with html and jsp. Example user1 home directory is /usr/user1. There he will have public_html directory. Apache will handle this directory. Student could have public_html/jsp directory too. Tomcat will handle that directory. What is best solutions? We have about 100 student's per year using this server. So it is very little use, but I like to learn more so that we could get better guality of our student. :-) Sorry about my pad English. Thanks in advance. Best Regards: Mr Keijo Salakari Finland - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PermGen Out of memory exception
> From: Jim [mailto:[EMAIL PROTECTED] > Subject: Re: PermGen Out of memory exception > > PermGen space, on the other hand, doesn't get garbage collected As Peter C indicated, this is utter BS. Why do people keep propagating this fallacy? Easier to blame the JVM than take responsibility for bugs in your own code? > By default (at least, if you're using Sun Java), a Java process > is given 32Mb of "PermGen" memory. If you have the "-server" > flag set for your Java process, the default is 64Mb. No, the default maximum is 64MB for both client and server modes, at least in the 1.5 and 1.6 JVMs. The initial size is different for client and server, but that's largely immaterial. > To set the upper-bound of PermGen space, then, use the flag: > "-XX:MaxPermSize=#m". This is most likely all that's needed, since there does not appear to be any redeployment involved. There are simply too many classes defined for the default PermGen size. Here's a good starting point for descriptions of GC and heap operations: http://java.sun.com/javase/technologies/hotspot/gc/index.jsp Setting -Dcom.sun.management.jmxremote and running JConsole with Tomcat can provide useful information about what's going on with JVM memory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PermGen Out of memory exception
> From: Jim [mailto:[EMAIL PROTECTED] > PermGen space, on the other hand, doesn't get garbage > collected, so you > need to ensure you're allocating enough to handle all that your > application will need. Unfortunately with the web application > classloader-system, every time you deploy an application without > restarting the application server, more PermGen space is eaten up, and > this is never recovered (not even if you undeploy an application). Not entirely true. Modern Java virtual machines perform garbage collection on PermGen, but it's remarkably easy to leave a reference lying around that will hold a class in memory - which holds the class' ClassLoader in memory, which holds all the other classes loaded by that ClassLoader in memory. Unless you have unusually good hygiene rules as you develop, this makes it look like PermGen never gets garbage collected! There's plenty of past discussion on the list on this topic; I've no doubt Chuck will reply, but I suggest http://tomcat.apache.org/faq/memory.html as a good place to start reading. It may not be your webapp's code that's at fault, by the way. There are plenty of third party libraries that don't clean up after themselves properly (including some I've written, I'm ashamed to admit). - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PermGen Out of memory exception
Hi Kanchana, Java processes use two types of memory: the "heap" (which is garbage collected), and "PermGen" memory (which is not garbage collected). Generally speaking, you won't run out of heap memory unless your application is set up so that the memory for all the objects being used at a single moment (and thus, which can't be garbage collected) is greater than the heap space. In this case, you would only increase the amount of heap memory associated with a process to lower the frequency at which the application needs to run the garbage-collection process (the tradeoff: when the garbage collector /does/ run, it'll take longer). You can change the maximum heap-size for a process by adding the "-Xmx #m" flag to your "java" command. e.g. "java MyApplication -Xmx128m" PermGen space, on the other hand, doesn't get garbage collected, so you need to ensure you're allocating enough to handle all that your application will need. Unfortunately with the web application classloader-system, every time you deploy an application without restarting the application server, more PermGen space is eaten up, and this is never recovered (not even if you undeploy an application). By default (at least, if you're using Sun Java), a Java process is given 32Mb of "PermGen" memory. If you have the "-server" flag set for your Java process, the default is 64Mb. I found that my mid-sized Hibernate/Spring/Tapestry application would eat up ~8Mb of PermGen memory every deploy; so increasing this memory to 128M+ will directly influence the number of deploys you can do before you'll have problems. To set the upper-bound of PermGen space, then, use the flag: "-XX:MaxPermSize=#m". By the way, to add these flags, if you're using startup.bat on Windows you can add 'SET JAVA_OPTS=%JAVA_OPTS% -server -...' lines to the top of it to append flags to your JAVA_OPTS variable before the server is started using those flags. If you're on *nix, you can add 'export JAVA_OPTS="$JAVA_OPTS -server -"' lines to your startup.sh. Note that you can simply restart your application server to clear out all PermGen memory that was used with applications that you've undeployed. So, I'd use a memory profiler (I used YourKit) to see how much PermGen space is used by your application each deploy, and set your PermGen space high enough to cover all of your different apps side-by-side, plus some extra memory to handle the number of hot-deploys you expect yourself having to make at some point -- and then just remember to restart the server when you can after a hot-deploy or two. Jim Kanchana Welagedara wrote: Hi All I have developed 4 war files using Appfuse frame work.These war files are independent.when I deployed any three war files the applications are up and run.But when I deployed the 4th one (any) it throws a PermGen exception.It has been copied in the bellow 1.Is this some thing related not setting the JAVA_OPTS ? or some security issue? Can any body please Help me to revolve this problem. Thanks Kanchana {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs20 INFO: XML validation disabled\par AbandonedObjectPool is used ([EMAIL PROTECTED])\par \par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par AbandonedObjectPool is used ([EMAIL PROTECTED] )\par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par AbandonedObjectPool is used ([EMAIL PROTECTED])\par \par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par Nov 12, 2007 11:42:36 AM org.apache.catalina.core.StandardContext resourcesStart\par \par SEVERE: Error starting static Resources\par java.lang.IllegalArgumentException: Document base C:\\Tomcat-5.5.20\\webapps\\spike\par flow does not exist or is not a readable directory\par at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.\par java:140)\par at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte\par xt.java:3848)\par at org.apache.catalina.core.StandardContext.start(StandardContext.java:4\par 019)\par at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)\par \par at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)\par at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)\par \par at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442\par )\par at org.apache.catalina.core.StandardService.start(StandardService.java:4\par 50)\par at org.apache.catalina.core.StandardServer.start(StandardServer.java:709\par )\par at org.apache.catalina.startup.Catalina.start(Catalina.java:551)\par at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\par at sun.reflect.NativeMethodAcce
AW: Security-Manager problem
Hi, I'd tried to solve the problem by myself and got it a little further... When I looked at the tomcat console more closely, I realized that occasionally the speaker beeped at startup. Looking at the console output, there were several access-denied messages for some of the jar's deployed with my webapp. So I added those into my catalina.policy and gave them for a first try an AllPermission. With these settings my webapp came up with a SecurityManager! But there is a function in my webapp that does an export into a PDF file, which doesn't work. This function tries to write a file inside a directory in my webapp-folder. It does this like this: InputStream reportInStream = this.getClass().getResourceAsStream( "/reports/" + reportFile + ".jasper"); if (reportInStream == null) { throw new Exception("Cannot read report file /reports/" + reportFile + ".jasper as resource stream!"); } ByteArrayOutputStream reportOutStream = new ByteArrayOutputStream(); File tmpFile = new File(targetPath); tmpFile.deleteOnExit(); FileOutputStream pdfOutStream = new FileOutputStream(tmpFile); if (pdfOutStream == null) { throw new Exception("Cannot open pdf file " + targetPath + "!"); } JasperFillManager.fillReportToStream(reportInStream, reportOutStream, reportParameter, reportData); JasperExportManager.exportReportToPdfStream(new ByteArrayInputStream( reportOutStream.toByteArray()), pdfOutStream); But an AccessControlException is thrown: java.security.AccessControlException: access denied (java.io.FilePermission E:\Java\apache-tomcat-5.5.25\webapps\tmap\cache\ToolbarServer.print_0_310DE731BB2FFF78B76102A1A517DD15_JSP_PegaViewPrint.pdf delete) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkDelete(SecurityManager.java:990) at java.io.File.deleteOnExit(File.java:901) at de.tmobile.pegaview.server.print.PrintServerBean.createReport(PrintServerBean.java:250) at de.tmobile.pegaview.server.print.PrintServerBean.print(PrintServerBean.java:130) at de.tmobile.tmap.server.print.TMapPrintServerBean.print(TMapPrintServerBean.java:223) at de.tmobile.pegaview.server.print.PrintValueBean.print(PrintValueBean.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at de.tmobile.pegaview.server.print.PrintAction.execute(PrintAction.java:73) at de.tmobile.pegaview.server.BasicAction.execute(BasicAction.java:111) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.Stan
tomcat5.5 Debian Startup Script
Hi, i have some problems with the debian (4.0) startup script and after googeling a day about named pipes and so on, i hope some guru can help me with it. I know its not directly tomcat related, but as it relates to tomcat5.5 debian package i hope i am allowed to ask on this list. this is part of the standard debian script: su -p -s /bin/sh $TOMCAT5_USER \ -c "$ROTATELOGS \"$CATALINA_BASE/logs/catalina_%F.log\" 86400" \ < "$CATALINA_BASE/logs/catalina.out" & su -p -s /bin/sh $TOMCAT5_USER \ -c "\"$DAEMON\" start $STARTUP_OPTS" >> "$CATALINA_BASE/logs/catalina.out" 2>&1 now i want to start my tomcat5.5 instance via ssh like this: ssh [EMAIL PROTECTED] /etc/init.d/tomcat5.5 start i get this output: Starting Tomcat servlet engine: tomcat5.5. After this output the command does not return and hangs forever. Only if i stop tomcat, this command returns. I can hit Ctrl-C and tomcat keeps on running, but as i want to use it in an ant script its quite annoying. i tried adding nohup in front and adding stdout and stderr redirection to the first command to no avail. nohup su -p -s /bin/sh $TOMCAT5_USER \ -c "$ROTATELOGS \"$CATALINA_BASE/logs/catalina_%F.log\" 86400" \ < "$CATALINA_BASE/logs/catalina.out" 2>&1 >/dev/null & nohup su -p -s /bin/sh $TOMCAT5_USER \ -c "\"$DAEMON\" start $STARTUP_OPTS" >> \ "$CATALINA_BASE/logs/catalina.out" 2>&1 it seems to me that this named pipe catalina.out causes the trouble. But as it seems nobody else on debian got this problem. Can somebody please help me? I hope i gave you enough information for helping me kind regards, janning - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
I'm going to venture a guess you need to declare the jsp taglib at the top of your jsp file. Also you don't need all the html to execute a forward. Only the tag is required w/o all the ... stuff. The client won't see the html anyway. Lastly, you webapp will continue to use servlet spec 2.3/jsp 1.2 as long as your web.xml declares servlet spec 2.3. Upgrade to the web.xml to enable all the servlet spec 2.4/jsp 2.0 features. --David itay sahar wrote: hi all, The tomcat version is 5.5.25 with the default version (binary). contain (jsp-api,jar and servlet-api.jar). Servlet 2.4 support jsp 2.0. My application worked (before) on tomcat 4.1 with jsp 1.2. Now i'm working on tomcat 5.5 as mention. I'm not sure what i need to change!!! my index.jsp contain the code below: (that's it) I get the error: org.apache.jasper.JasperException: Exception in JSP: /index.jsp:5 2: 3: 4: 5: 6: 7: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException( JspServletWrapper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :355) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause javax.servlet.ServletException: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo .(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java :322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java :142) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java :87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java :686) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656) org.apache.jsp.index_jsp._jspService(index_jsp.java:48) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo .(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute( TagLibraryInfoImpl.java:581) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo( TagLibraryInfoImpl.java:402) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD( TagLibraryInfoImpl.java:249) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java :180) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557) org.apache.jasper.compiler.Parser.parse(Parser.java:127) org.apache.jasper.compiler.ParserController.doParse(ParserController.java :212) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156) org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :564) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :302) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java :322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java :142) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java :87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java :686) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656) org.apache.jsp.index_jsp._jspService(index_jsp.java:48) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.se
Re: EL and tomcat version
Aside from comments you already received indicating 5.0.x is no longer supported, make sure your web.xml declares servlet spec 2.4. That enables jsp 2.0 EL expressons. --David Terje utvikling wrote: Hi. In order for me to be able to use the functions in EL, do i need to be running on a tomcat 5.5? And is that because tomcat 5.5 supports jsp 2.0, which again supports EL functions, and tomcat 5.0 doesn't ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Redirects
Hi Chris, This is exactly the answer I was looking for. Thank you for your help. Cheers, Danny On Sun, 2007-11-11 at 10:51 -0500, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bill, > > Bill Barker wrote: > > Tomcat always sends a 302 redirect when response.sendRedirect(newURL); is > > called. However, a lot of user-agents wrongly follow the redirect with a > > GET when the initial request was a POST. > > Actually, this behavior is basically grandfathered-into the HTTP > specification. See section 10.3.3 of the HTTP/1.1 spec: > > "If the 302 status code is received in response to a request other than > GET or HEAD, the user agent MUST NOT automatically redirect the request > unless it can be confirmed by the user, since this might change the > conditions under which the request was issued. > > Note: RFC 1945 and RFC 2068 specify that the client is not allowed > to change the method on the redirected request. However, most > existing user agent implementations treat 302 as if it were a 303 > response, performing a GET on the Location field-value regardless > of the original request method. The status codes 303 and 307 have > been added for servers that wish to make unambiguously clear which > kind of reaction is expected of the client. > " > > Since the servlet specification does not say which redirection code > should be used with response.sendRedirect (though it is pretty much > always implemented as a 302), you will have to use response.setHeader > and response.sendError with the code you prefer. I'm pretty sure you > want to use either 303 or 307 and not 302 due to its inconsistent > implementation. > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHNyTx9CaO5/Lv0PARAgb6AKCI3eiqPBM2IQ8+XfUwxH4yNGT85QCeIGF2 > G1vMEtBhAU+nJVClTOPU9JQ= > =7PAC > -END PGP SIGNATURE- > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comet: response.sendRedirect() Problem
hi, i'm implementing comet support for different servlet containers in an ajax framework. with jetty and glassfish comet support it works very well, but with tomcat something is going wrong with the Servlet API sendRedirect()- function which i cannot figure out. do you have an idea what's going wrong? thank you! regards, jens On Nov 7, 2007 6:13 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > there is a bug in 6.0.14 regarding pipelining HTTP events on a comet > connection, your code is correct, try with our current release candidate > http://people.apache.org/~remm/tomcat-6/v6.0.15/bin/ > > Filip > > > Jens Hagel wrote: > > Hello, > > > > I'm trying to use the sendRedirect() function in the begin event of a > > simple CometServlet, > > but nothing happens. Does anyone has an idea what's going wrong? > > > > kind regards, > > jens hagel > > > > -- > > import org.apache.catalina.CometProcessor; > > import org.apache.catalina.CometEvent; > > > > import javax.servlet.http.*; > > import javax.servlet.ServletException; > > import java.io.IOException; > > > > public class CometServlet extends HttpServlet implements CometProcessor { > > > > public void event(CometEvent cometEvent) throws IOException, > > ServletException { > > > > HttpServletResponse response = cometEvent.getHttpServletResponse(); > > > > // don't want timeout events > > cometEvent.setTimeout(100); > > > > if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) { > > > > log("Begin for session"); > > response.sendRedirect("http://www.heise.de";); > > cometEvent.close(); > > > > } else if (cometEvent.getEventType() == CometEvent.EventType.ERROR) > > { > > log("Error for session: " + cometEvent.getEventSubType()); > > cometEvent.close(); > > } else if (cometEvent.getEventType() == CometEvent.EventType.END) { > > log("End for session"); > > cometEvent.close(); > > } else if (cometEvent.getEventType() == CometEvent.EventType.READ) { > > log("Read for session"); > > } > > } > > } > > - > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat in production
Abdul, There is no specific version of Tomcat for production * as long as * you stick to the last revision of your branch, since it contains all security & bug fixes for that branch. There are no patches in Tomcat, only further releases. Moreover, it is advised that you use the Tomcat 6.0 branch, or at least the 5.5 branch, if you can. For instance, for the 6.0 branch, the last revision is 6.0.14. Which branch you will choose (6.0, 5.5, 4.1, etc) depends upon which version of the servlet and JSP specifications you use. Regarding the tips to apply, someone had once posted a great blog entry on this list, which we have long discussed : http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/ HTH, Pierre 2007/11/12, abdul razack <[EMAIL PROTECTED]>: > > Hi, > > we have web application running in iplanet server. > we want same web application running on Tomcat in production. > > Is there any separate tomcat version for Production. > If so, please give me the link to dowanload. > > Is it ok if I download any version of tomcat from > http://tomcat.apache.org/. > what are basic configuration that I need to do for running tomcat in > production. > > Thanks & Regards > -Abdul Razack > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- "Deux choses ne se peuvent cacher : l'ivresse et l'amour." (Antiphane)
PermGen Out of memory exception
Hi All I have developed 4 war files using Appfuse frame work.These war files are independent.when I deployed any three war files the applications are up and run.But when I deployed the 4th one (any) it throws a PermGen exception.It has been copied in the bellow 1.Is this some thing related not setting the JAVA_OPTS ? or some security issue? Can any body please Help me to revolve this problem. Thanks Kanchana {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs20 INFO: XML validation disabled\par AbandonedObjectPool is used ([EMAIL PROTECTED])\par \par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par AbandonedObjectPool is used ([EMAIL PROTECTED] )\par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par AbandonedObjectPool is used ([EMAIL PROTECTED])\par \par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par Nov 12, 2007 11:42:36 AM org.apache.catalina.core.StandardContext resourcesStart\par \par SEVERE: Error starting static Resources\par java.lang.IllegalArgumentException: Document base C:\\Tomcat-5.5.20\\webapps\\spike\par flow does not exist or is not a readable directory\par at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.\par java:140)\par at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte\par xt.java:3848)\par at org.apache.catalina.core.StandardContext.start(StandardContext.java:4\par 019)\par at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)\par \par at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)\par at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)\par \par at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442\par )\par at org.apache.catalina.core.StandardService.start(StandardService.java:4\par 50)\par at org.apache.catalina.core.StandardServer.start(StandardServer.java:709\par )\par at org.apache.catalina.startup.Catalina.start(Catalina.java:551)\par at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\par at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.\par java:39)\par at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces\par sorImpl.java:25)\par at java.lang.reflect.Method.invoke(Method.java:585)\par at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)\par at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)\par Nov 12, 2007 11:42:37 AM org.apache.catalina.core.StandardContext start\par SEVERE: Error in resourceStart()\par Nov 12, 2007 11:42:37 AM org.apache.catalina.core.StandardContext start\par SEVERE: Error getConfigured\par Nov 12, 2007 11:42:37 AM org.apache.catalina.core.StandardContext start\par SEVERE: Context [/spikeflow] startup failed due to previous errors\par Nov 12, 2007 11:42:37 AM org.apache.catalina.core.StandardContext stop\par INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/\par spikeflow] has not been started\par AbandonedObjectPool is used ([EMAIL PROTECTED])\par \par LogAbandoned: false\par RemoveAbandoned: true\par RemoveAbandonedTimeout: 60\par Nov 12, 2007 11:43:26 AM org.apache.coyote.http11.Http11BaseProtocol start\par INFO: Starting Coyote HTTP/1.1 on http-8282\par Nov 12, 2007 11:43:27 AM org.apache.jk.common.ChannelSocket init\par INFO: JK: ajp13 listening on /0.0.0.0:8009\par Nov 12, 2007 11:43:27 AM org.apache.jk.server.JkMain start\par INFO: Jk running ID=0 time=0/62 config=null\par Nov 12, 2007 11:43:27 AM org.apache.catalina.storeconfig.StoreLoader load\par INFO: Find registry server-registry.xml at classpath resource\par Nov 12, 2007 11:43:27 AM org.apache.catalina.startup.Catalina start\par INFO: Server startup in 176718 ms\par [TiphAdmin] ERROR [http-8282-Processor25] ClickstreamListener.sessionDestroyed(6\par 0) |\par java.lang.NullPointerException\par at com.opensymphony.clickstream.ClickstreamListener.sessionDestroyed(Cli\par ckstreamListener.java:55)\par at org.apache.catalina.session.StandardSession.expire(StandardSession.ja\par va:687)\par at org.apache.catalina.session.StandardSession.isValid(StandardSession.j\par ava:579)\par at org.apache.catalina.connector.Request.doGetSession(Request.java:2200)\par \par at org.apache.catalina.connector.Request.getSession(Request.java:2024)\par at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.\par java:831)\par at org.springframework.web.context.request.ServletRequestAttributes.(ServletRequestAttributes.java:81)\par at org.springframework.web.context.request.RequestContextListener.reques\par tInitialized(RequestContex
Re: tomcat and remote Apache server
Not fundamentally. Of course you'll need to give the host names or IPs in the worker definitions and there would be more reason to read the timeouts documentation page: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html Regards, Rainer Tracy12 schrieb: > Hi, > > So far in all our mod_jk configurations we got tomcat and apache running in > one machine. > > I just wanted to know will there be any issue if I seperate out the above > two that is to have mod_jk with remote Apache server, > > Ideally, Apache to reside in DMZ and tomcat to reside withing firewall. > > Pls let me know if any issue with this setup > > THanks > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]