RE: tomcat 5.5.15 jk1.2.15 connector problem apache 2.0.55
Ok, My mistake. I mixed the examples in the source file the wrong way. But now it gives me the same error as when I try to configure it without load balancer: [Fri Jan 27 08:24:52 2006] [1532:3412] [debug] jk_uri_worker_map.c (475): Found a wildchar match wlb -> /*.jsp [Fri Jan 27 08:24:52 2006] [1532:3412] [debug] mod_jk.c (1839): Into handler jakarta-servlet worker=wlb r->proxyreq=0 [Fri Jan 27 08:24:52 2006] [1532:3412] [debug] jk_worker.c (111): found a worker wlb [Fri Jan 27 08:24:52 2006] [1532:3412] [debug] jk_worker.c (301): Maintaining worker wlb [Fri Jan 27 08:24:52 2006] [1532:3412] [debug] mod_jk.c (531): Service protocol=HTTP/1.1 method=POST host=(null) addrr=10.1.227.76 name=ntbrawebdv11.braine.ucb port=9080 auth=(null) user=(null) laddr=10.1.4.244 raddr=10.1.227.76 [Fri Jan 27 08:24:52 2006] [1532:3412] [error] mod_jk.c (1932): Could not init service for worker=wlb [Fri Jan 27 08:26:31 2006] [1532:3828] [debug] mod_jk.c (1761): Shmem cleanup [Fri Jan 27 08:26:31 2006] [1532:3828] [debug] mod_jk.c (1761): Shmem cleanup [Fri Jan 27 08:26:31 2006] [0264:3124] [debug] mod_jk.c (1761): Shmem cleanup I'd really like more details in the logs why it can not initialize the worker. But I guess debug is all I'm going to get. I checked the system event logs as well, but no luck either (syntax errors in the workers.properties are logged over there though). I assume my tomcat config is ok since it works with the older jk2 connector. The AprLifecycleListener is only needed in case of automatic configuration, but maybe this is a specific issue to win 2003? Luc > > Carpentier Luc (Uniway) wrote: > > > > I even found contradictory information. > > In the docs it states that the workers should not be defined in the > > workers.list when you are using load balancing, but in the > examples I found > > on the internet, they were defined in the workers.list (and > yes I tried it > > but it just gives another error message). > > > > Then always trust the official documentation :) > Anyone can write whatever he likes, but that doesn't mean its true. > > > > > Could not find a worker for worker name=tomcat1. > > > > OK :) > > > > workers.tomcat_home=d:/java/apache-tomcat-5.5.15 > > > > workers.java_home=C:/Program Files/Java/jdk1.5.0_06 > > > > ps=/ > > > > You don't need the above directives. > > > > # define special the workers load balancer and jkstatus worker > > worker.list=wlb,jkstatus > > > > This means that you have 2 workers from which you can mount > context. > > > # A list of all the workers that are load balanced. > > worker.wlb.balance_workers=tomcat1 > > > > OK, so you have added at least one member to loadbalancer. > > > > # Send servlet for context .do to worker named worker1 > > JkMount /*.do tomcat1 > > > > Use: > JkMount /*.do wlb > > You map the url to loadbalancer worker, and then the loadbalancer > will decide to which node route the request depending on the > algorithm selected (In you case by request). > > > Regards. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. -
Re: APR Connector Shutdown Problem
Fenlason, Josh wrote: I'm running into a problem with the APR connector not shutting down properly. Tomcat runs fine and there are no errors on shutdown, but if I shut Tomcat down and start it up again I get a socket bind failed error in the catalina log (attached). I have to wait for several minutes between shutdown and startup for Tomcat to be able to startup correctly. If I run Tomcat without the APR connector, I don't have this issue. This does not occur on Windows, but does on Solaris and AIX. Has anyone else seen this? One thing I noticed is that the first thing logged on shutdown is an "AjpAprProtocol pause" entry, but there is no shutdown, stop or destroy. Is there any chance the APR connector is just getting paused and nothing is actually stopping it? Any help would be greatly appreciated. Thanks in advance. I suppose you have: in your server.xml But of course it doesn't guarantee it will be executed in all cases, if the JVM crashes for example. On Solaris it can take up to 4 minutes until the OS recycles the zombie socket. You can use: ndd -set /dev/tcp tcp_time_wait_interval 6 To lower that value. APR does not try to fool the OS like JVM, but rather behaves like Apache httpd. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.15 jk1.2.15 connector problem apache 2.0.55
Carpentier Luc (Uniway) wrote: I even found contradictory information. In the docs it states that the workers should not be defined in the workers.list when you are using load balancing, but in the examples I found on the internet, they were defined in the workers.list (and yes I tried it but it just gives another error message). Then always trust the official documentation :) Anyone can write whatever he likes, but that doesn't mean its true. Could not find a worker for worker name=tomcat1. OK :) workers.tomcat_home=d:/java/apache-tomcat-5.5.15 workers.java_home=C:/Program Files/Java/jdk1.5.0_06 ps=/ You don't need the above directives. # define special the workers load balancer and jkstatus worker worker.list=wlb,jkstatus This means that you have 2 workers from which you can mount context. # A list of all the workers that are load balanced. worker.wlb.balance_workers=tomcat1 OK, so you have added at least one member to loadbalancer. # Send servlet for context .do to worker named worker1 JkMount /*.do tomcat1 Use: JkMount /*.do wlb You map the url to loadbalancer worker, and then the loadbalancer will decide to which node route the request depending on the algorithm selected (In you case by request). Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5.15 jk1.2.15 connector problem apache 2.0.55
Hello, I am using the jk1.2.15 connector to connect the apache 2.0.55 webserver to tomcat 5.5.15 on a windows 2003 server. However, I am not getting any luck with the connector. I googled for hours on the internet, but nothing that matches. I even found contradictory information. In the docs it states that the workers should not be defined in the workers.list when you are using load balancing, but in the examples I found on the internet, they were defined in the workers.list (and yes I tried it but it just gives another error message). I keep on getting the message: Could not find a worker for worker name=tomcat1. -- In my workers.properties, I have defined: -- workers.tomcat_home=d:/java/apache-tomcat-5.5.15 workers.java_home=C:/Program Files/Java/jdk1.5.0_06 ps=/ # define special the workers load balancer and jkstatus worker worker.list=wlb,jkstatus # Defining a worker named tomcat1 and of type ajp13 worker.tomcat1.type=ajp13 worker.tomcat1.host=ntbrawebdv11.braine.ucb worker.tomcat1.port=8009 # The higher lbfactor, the more priority to do work. worker.tomcat1.lbfactor=2 # # Defining a load balancer # worker.wlb.type=lb # A list of all the workers that are load balanced. worker.wlb.balance_workers=tomcat1 # use sticky sessions worker.wlb.sticky_session=True # Give an error if a worker is in error state. The connection will not be switched to the other workers. worker.wlb.sticky_session_force=True # Use the number of requests to perform the load balancing. worker.wlb.method=Request # # Define status worker # worker.jkstatus.type=status - In my tomcat.conf file which I include at the bottom of the httpd.conf file I have: - # Block any access to WEB-INF directories AllowOverride None deny from all # Load mod_jk module LoadModulejk_module modules/mod_jk.so # Declare the module for (remove this line on Apache 2.0.x) #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile d:/java/apache-tomcat-5.5.15/conf/workers.properties # Where to put jk logs JkLogFile d:/apache2.0.55/Apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLeveldebug # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize -ForwardURICompat +ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T" # Send servlet for context .do to worker named worker1 JkMount /*.do tomcat1 # Send servlet for context .dox to worker named worker1 JkMount /*.dox tomcat1 # Send JSP for context .jsp to worker named worker1 JkMount /*.jsp tomcat1 # Send JSPx for context .jsp to worker named worker1 JkMount /*.jspx tomcat1 # Any viewdocument servlet JkMount /*/viewdocument tomcat1 # Any dqlbatch servlet JkMount /*/dqlbatch tomcat1 # Any folderlisting servlet JkMount /*/folderlisting tomcat1 - And in the server.xml file of my tomcat, I have defined the http connector: - and on the engine tag I have defined the jvmRoute attribute: When I put the jk connector in debug mode, I get something like this: [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_shm.c (134): Initialized shared memory size=67584 free=65536 addr=0x5c7760 [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] mod_jk.c (2364): Initialized shm:memory [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (323): rule map size is 7 [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*.do=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*.dox=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*.jsp=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*.jspx=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*/viewdocument=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*/dqlbatch=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (260): wildchar rule /*/folderlisting=tomcat1 was added [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_uri_worker_map.c (340): there are 7 rules [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_worker.c (236): creating worker wlb [Thu Jan 26 09:17:32 2006] [1472:2916] [debug] jk_worker.c (141): about to create instance wlb of lb [Thu Jan 26 09:17:32 20
Features comparisons for Tomcat (was Re: From Java to C#, ASP.NET [Off Topic])
It's kind of nice to see this discussion on this board, because it can serve as a way for Tomcat developers to think about what features really help and what features don't. I'm going to avoid M$ bashing cause it's not productive, but I think it's wise to look at the effect "creature features" have on product popularity and take note. My goal in continuing this thread under a new topic is to foster discussion about valuable Tomcat features. Hopefully it will spark some ideas about how to improve the popularity and appeal of Tomcat. I'll start with a short list of one relevant item. I encourage anyone to add to this, but please use the following format: TOMCAT FEATURE NAME/TYPE SUMMARY: description of the feature/issue RELEVANT INFORMATION: additional information IMPARCTED TOMCAT FEATURES: how Tomcat might be affected. SUGGESTIONS FOR ADDRESSING THE FEATURE: what can be done EASE OF USE SUMMARY: Some believe that the Microsoft web development experience is "truely more pleasant" than that of Java, and the often cite the number of people who have switched from Java to .NET platforms becuase of the percieved differences in ease of use. RELAVENT INFORMATION: On one hand, some people maintain that Tomcat is quite easy to use because starting and stopping the server requires the typing of a single command line. The counter argument to this claim is that a measure of "ease of use" should include all aspects of application development, deployment, and maintenance. For the purposes of discussion, "ease of use" for the Java platform and related Tomcat applications need to be clarified. Since Tomcat is built for the Java platform, we can view Tomcat "ease of use" as an extension of the concept of Java Platform "ease of use." This will allow us to compare the overall Tomcat development experience with that of the "Microsoft development experience." Unlike Microsoft development tools, which require the use of an IDE for efficient developemnt, the Java platform and related products (e.g. Tomcat server) make the use of IDE strictly optional. Consequently, a comparison between "Java development" and ".NET development" experiences cannot effectively be made by focusing on the steps required to build and compile a program. On the Java platform, the use of IDEs are strictly optional. Comparisons made between Microsoft IDEs and othe IDEs would more appropriately be restricted to the IDEs themselves, and not the platform. The fact that Microsoft has required the use of it's Visual Studio application to build and deploy application on the .NET platform complicates comparisons. The Microsoft development platform typically integrates the development tool with the server so that the developer "clicks to deploy". This feature is not unique to Microsoft products, however. For example, Netbeans IDE integrates with Tomcat and provides many similar features to the Microsoft product set. This indicates the percieved differences in "ease of use" for may be an issue of user awareness about the available IDEs. While some prefer interacting with a development tool that requires less technical knowledge, others argue that such tools allow more room for less competent developers which can drastically reduce the overall quality of the end product. Furthermore, with the Java Development platform, the clear dilenation between the Java Runtime Environment, the Java Software Development Kit, and the optional IDEs give developers greater flexibility in building code, and the option to only install the development tools necessary. This capability is especially popular among those who are skilled in the development of applications using simple text editors, such as vi. Such developers argue that requiring the use of an IDE simply means more desktop software maintenance and upgrade issues. IMPACTED TOMCAT FEATURES: Maintainers of the tomcat platform so far appear to be finding a balance betwen developers with higher technical competencies and those who lean toward "creature features." By providing a well published deployment interface and open source implementation, the Tomcat team leaves open the opportunity for integrated IDE development by others. Continuing to pursue this strategy will most likely ensure that a) the Tomcat development team retains flexibility down the road; and, b) gives competitors the opportunity to expend resources on features in their own products that don't ultimately increase sales for their product; and, c) caters to the development community with a higher degree of technical skill, which can produce web based application of higher quality. SUGGESTIONS FOR ADDRESSING THE FEATURE: Percieved differences in "ease of use" may be addressed through traditional advertising and a comprehensive marketing plan. - To unsubsc
Tomcat Manager behaviour difference between 5.0 and 5.5
Hi All, I had setup Tomcat 5.0.x in a school environment for students to write their servlet programs. With and some little scripts that make use of tomcat manager, all students can deploy/undeploy/reload their own application at their will. Recently, I was going to upgrade our Tomcat server from 5.0.x to 5.5.x and found that my little scripts were not alwyas working as they should suppose to. The reason I for this was, in Tomcat 5.0.x, when I call http://tomcatserver.edu/manager/deploy?path=/user&war=/home/user/public_html, it will create an XML file (user.xml) under $CATALINA_HOME/conf/Catalina/localhost, however, in Tomcat5.5x, it will actually COPY all files from user's public_html directory into $CATALINA_HOME/webapps/user directory. This behavior have 2 problems, this first one is my tomcat server's partition may not be big enough to hold few hundred students' servlet files. The second problem is the manager application will have exception if not all files in /home/user/public_html are world readable. The copying process simply stop without copying ALL files but manager application still got the OK and those students' servlet will have 404 error. My question is, are there any parameters for me to set so that Tomcat 5.5.x manager will behave just like Tomcat 5.0.x which only create an XML file when manger's deploy command executed? Grandy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET (Back to Java)
Michael- Did you you want a DOM, JAXP or SAX Parser in which case you should try? http://xerces.apache.org/xerces2-j/ If you want to do XSLT Transformations and XPath traversals try Xalan http://xml.apache.org/xalan-j/ Last time I heard microsofts MSXML parser only supported DOM and didnt support XPath traversals.. Martin- - Original Message - From: "Michael Scano" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, January 26, 2006 9:10 PM Subject: Re: From Java to C#, ASP.NET [Off Topic] Hey Tony, Thanks for sharing your experiences with .NET. I appreciate your candor and taking the time. One thing I didn't see you mention in the core support for XML. Do you know how much of an advantage this is compared to the the way in which Java works with XML. BTW, I visited the dotnet teams result page on their port of the Java Petshop reference application to .NET and my jaw dropped. Unless they're stretching the truth and exagerating wildly, I can't see how Java can compete. Have you seen this? http://www.gotdotnet.com/team/compare/veritest.aspx How close to reality do you think their results are. -Michael D. --- David Delbecq <[EMAIL PROTECTED]> wrote: Hi Tony, am what you could call a junior programmer (less than 3 years expérience un j2ee) I'll just respond to a few java related point, as i don't know .NET - You say primitives are not nullable. If you need a nullable integer, use java.lang.Integer. - Operators overloading is something i consider dangerous, and i thanks sun for not implementing those - We are developping here a webapp which need to be deployed at several 'clients', whose server range from linux to windows to HP-UX, so cross-platform is an important constraint :) This explains the use of java. - The 'only one language' of JAVA compared to .NET make it easier for company to manage the knowledge of developpers, which can compensate the knowledge spreading across the various libraries Those too are only my opinions, and as you express yours, i express mine :) BTW, i don't think there is a conflict .NET <-> J2EE Simply use the right tool for the right purpose. Le Mercredi 25 Janvier 2006 04:27, Tony LaPaso a écrit : > Hi all, > > I should mention that this post is a bit off topic. If you hate > Microsoft then stop reading now and I'm sorry for wasting your time. I > don't own stock in Microsoft, I don't know Bill Gates and nobody paid > me or asked me to say the things I wrote below. These are just my > opinions based on my experiences with many years in Java and two months > of learning .NET/C# 2.0. > > I've been programming in Java/J2EE for the past 8+ years, most of this > time as a contractor for several companies on many J2EE projects. I > even have a small (and now hopelessly out of date) Java web site that > I've maintained for the past 5+ years at www.absolutejava.com, which > will be removed in early May. > > Until about 8 weeks ago, I never even considered looking at anything > Microsoft offered. Recently though, on a whim, I browsed over to the > Microsoft site because I'd heard about their new release of Visual > Studio. I'd been a Windows programmer back in the mid '90s and was > curious to see how Visual Studio (it was Visual C++ back then) had > evolved (or not). > > I didn't download Visual Studio but instead I downloaded a couple free > tutorial videos for Microsoft's "Web Developer Express" product (which > is a free product, BTW). "Web Developer Express" has a subset of the > features in the full "Visual Studio" product and is used for building > server-side (or client side, for that matter) web apps. I couldn't > believe what I saw. "Web Developer Express" blows away anything we have > in the Java world for developing server-side web apps. It was kind of a > jaw-dropping experience to see what the tool can do and what ASP.NET > offers compared to servlets/JSP/Struts/JSTL/JSF. > > I don't want to turn this post into a "feature by feature" comparison > of ASP.NET and equivalent Java technologies. My impression, though, > from watching these tutorial videos is that we in the J2EE world are > living like knuckle-dragging Barbarians, scratching out an existence > clothed in bear skins, using stone knives and sticks as our tools of > choice. Those using .NET are living in fine brick homes with hardwood > floors, fireplaces and regular visits from PeaPod. > > After looking at ASP.NET I became interested in looking at the C# > language, proper. My impressions of C# vs. Java mirrored those of > ASP.NET vs. servlets/JSP/etc. Java has kludgey support for properties > and events (they're just regular methods with parameters) while C# has > the constructs (delegates & events) built directly into the core > language. C# also supports co-routines, something we have to simulate > in Java as well as "out parameters" (which allow a method to change the > caller's parameter's value) and operator overloading. C# also has > "nullable" types. Imagine Java's prim
RE: How can I take a webapp "temporarily out of service" using mod_jk?
Will mod_jk3 implement the AJPv13 Extension Protocol? That's what would best meet my requirements. What's behind my questions is that there's a short outage when I deploy a webapp on JBoss, particularly using "farm" deployment, where JBoss has to copy the war to all the machines in the cluster. I believe that the outage happens because mod_jk doesn't know that a webapp on one of the cluster servers is out of service (redeploying), so it doesn't direct traffic to one of the other servers which may have finished redeploying. If JBoss/tomcat can send status messages for individual webapps to mod_jk, this is possible. Thanks for your help John -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 11:36 PM To: Tomcat Users List Subject: Re: How can I take a webapp "temporarily out of service" using mod_jk? Prout John - jprout wrote: > I think this is the trick: > > If you need only to remove particular mappings then use JkMount > directive and prefix each mapping with '-'. Within 60 seconds, mod_jk > will disable the mappings. > > > Looking at documentation at the link you sent, it describes this > behavior for the JkMountFile directive; do you know there's similar > functionality for the JkMount directive? > Right, it's JkMountFile (type :). > In an ideal world, I'd like to be able to make these changes without > editing a file - similar to stopping a node using the status worked - > but this is a big step in the right direction > In mod_jk3 (mod_jk1.3.x) we'll add the url management to status worker. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
Hey Tony, Thanks for sharing your experiences with .NET. I appreciate your candor and taking the time. One thing I didn't see you mention in the core support for XML. Do you know how much of an advantage this is compared to the the way in which Java works with XML. BTW, I visited the dotnet teams result page on their port of the Java Petshop reference application to .NET and my jaw dropped. Unless they're stretching the truth and exagerating wildly, I can't see how Java can compete. Have you seen this? http://www.gotdotnet.com/team/compare/veritest.aspx How close to reality do you think their results are. -Michael D. --- David Delbecq <[EMAIL PROTECTED]> wrote: > Hi Tony, > > am what you could call a junior programmer (less > than 3 years expérience un j2ee) > I'll just respond to a few java related point, as i > don't know .NET > - You say primitives are not nullable. If you need a > nullable integer, use java.lang.Integer. > - Operators overloading is something i consider > dangerous, and i thanks sun for not implementing > those > - We are developping here a webapp which need to be > deployed at several 'clients', whose server > range from linux to windows to HP-UX, so > cross-platform is an important constraint :) This > explains the use of java. > - The 'only one language' of JAVA compared to .NET > make it easier for company to manage the > knowledge of developpers, which can compensate the > knowledge spreading across the various libraries > > Those too are only my opinions, and as you express > yours, i express mine :) > > BTW, i don't think there is a conflict .NET <-> J2EE > Simply use the right tool for the right purpose. > > Le Mercredi 25 Janvier 2006 04:27, Tony LaPaso a > écrit : > > Hi all, > > > > I should mention that this post is a bit off > topic. If you hate > > Microsoft then stop reading now and I'm sorry for > wasting your time. I > > don't own stock in Microsoft, I don't know Bill > Gates and nobody paid > > me or asked me to say the things I wrote below. > These are just my > > opinions based on my experiences with many years > in Java and two months > > of learning .NET/C# 2.0. > > > > I've been programming in Java/J2EE for the past 8+ > years, most of this > > time as a contractor for several companies on many > J2EE projects. I > > even have a small (and now hopelessly out of date) > Java web site that > > I've maintained for the past 5+ years at > www.absolutejava.com, which > > will be removed in early May. > > > > Until about 8 weeks ago, I never even considered > looking at anything > > Microsoft offered. Recently though, on a whim, I > browsed over to the > > Microsoft site because I'd heard about their new > release of Visual > > Studio. I'd been a Windows programmer back in the > mid '90s and was > > curious to see how Visual Studio (it was Visual > C++ back then) had > > evolved (or not). > > > > I didn't download Visual Studio but instead I > downloaded a couple free > > tutorial videos for Microsoft's "Web Developer > Express" product (which > > is a free product, BTW). "Web Developer Express" > has a subset of the > > features in the full "Visual Studio" product and > is used for building > > server-side (or client side, for that matter) web > apps. I couldn't > > believe what I saw. "Web Developer Express" blows > away anything we have > > in the Java world for developing server-side web > apps. It was kind of a > > jaw-dropping experience to see what the tool can > do and what ASP.NET > > offers compared to servlets/JSP/Struts/JSTL/JSF. > > > > I don't want to turn this post into a "feature by > feature" comparison > > of ASP.NET and equivalent Java technologies. My > impression, though, > > from watching these tutorial videos is that we in > the J2EE world are > > living like knuckle-dragging Barbarians, > scratching out an existence > > clothed in bear skins, using stone knives and > sticks as our tools of > > choice. Those using .NET are living in fine brick > homes with hardwood > > floors, fireplaces and regular visits from PeaPod. > > > > After looking at ASP.NET I became interested in > looking at the C# > > language, proper. My impressions of C# vs. Java > mirrored those of > > ASP.NET vs. servlets/JSP/etc. Java has kludgey > support for properties > > and events (they're just regular methods with > parameters) while C# has > > the constructs (delegates & events) built directly > into the core > > language. C# also supports co-routines, something > we have to simulate > > in Java as well as "out parameters" (which allow a > method to change the > > caller's parameter's value) and operator > overloading. C# also has > > "nullable" types. Imagine Java's primitive types > being able to hold > > null values. This is highly useful when working > with databases. > > > > Finally, .NET provides an integrated and more > comprehensive approach to > > setting security permissions and versioning of > what are c
Weirdness in IIS log file - Tomcat serving up JSF pages
Hi; I have requests that are not getting logged. My setup is IIS 6.0 and tomcat where tomcat is called from IIS via an ISAPI filter. What the below log shows is: 1) /store/pages/demo.faces is requested. This is a JSF page served from Tomcat 2) demo.faces has includes for windward.css and windward.js - it shows them being requested. 3) The site next goes to demo_license.faces - but it never shows that request. 4) It then shows the requests for windward.css from demo_license.faces - so it did go to demo_license.faces. How can this be happening? demo.faces and demo_license.faces are served to IIS from Tomcat in the exact same way. And demo_license.faces does show in the logs sometimes - but not always. log with problem: 2006-01-18 05:17:50 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/demo.faces - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) sourceid=1137561448088_441;+source=industrybrains;+id=261;+referrer=www.dmre view.com http://www.windwardreports.com/root.htm?source=industrybrains&id=261 www.windwardreports.com 200 0 0 2006-01-18 05:17:50 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:17:51 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.js - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:17:51 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.js - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:17:51 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:17:52 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.js - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:18:19 W3SVC1059338337 JASMINE 192.168.200.11 POST /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:18:19 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.js - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo.faces www.windwardreports.com 200 0 0 2006-01-18 05:18:20 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo_license.faces www.windwardreports.com 200 0 0 2006-01-18 05:18:34 W3SVC1059338337 JASMINE 192.168.200.11 POST /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_441;+sou rce=industrybrains;+id=261;+referrer=www.dmreview.com http://www.windwardreports.com/store/pages/demo_license.faces www.windwardreports.com 200 0 0 2006-01-18 05:18:34 W3SVC1059338337 JASMINE 192.168.200.11 GET /store/pages/windward.css - 80 - 58.11.108.34 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322) JSESSIONID=070FE19CD8098782B63E69A8835603E1;+sourceid=1137561448088_4
Re: send a csv file from tomcat?
Thanks - works perfectly. -Chris On Jan 26, 2006, at 6:04 PM, Tim Lucia wrote: Here's how I've done it from a .jsp: <% response.reset();response.setContentType("text/comma-separated- values; charset=UTF-8");response.setHeader("Content- disposition","attachment;filenam e=csvoutput.csv");%> Skip the response.reset() if running from inside a servlet... Tim -Original Message- From: Christopher Molnar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 5:57 PM To: Tomcat Users List Subject: send a csv file from tomcat? Can anyone tell me how to send a stream as a CSV (comma seperated file) rather than as an HTML page? I curently am sending the data as a Response. Thanks, -Chris - 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: Concurrently running tomcat and JBoss
Khawaja Shams wrote: > has anyone had any luck in concurrently running two instance of tomcat > together? Yes. > What about an instance of JBoss and a stand alone tomcat? The > reason why I need to do this is that some of the applications are > conflicting with each other and cannot run together in JBoss. Since JBoss > is still used for other apps, including apps that use the tomcat part of > JBoss, the only solution I have is to concurrently run a tomcat instance. > What ports will I need to change in order to avoid conflict with JBoss > ports? The ports I plan to change are as follows: > 8080 > 8443 > 8005 > 8009 > 8082 > > Would changing these values in the server.xml be enough? Last time I tried > this, the shutdown script stopped working. Are there hard code values in > the scripts? Any suggestions on how I could go about getting this to work? > Thanks in advance. All the ports Tomcat uses are defined in server.xml. So, open your standalone Tomcat's server.xml in a text editor, search for " port=" and for all the hits you get (at least if they're not embedded in comments), change the port's number to an unused value. That should be enough. BTW: if Tomcat complains about a port being in use, it isn't neccessarily another Tomcat instance that's blocking the port. netstat is your friend. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Concurrently running tomcat and JBoss
Hello, has anyone had any luck in concurrently running two instance of tomcat together? What about an instance of JBoss and a stand alone tomcat? The reason why I need to do this is that some of the applications are conflicting with each other and cannot run together in JBoss. Since JBoss is still used for other apps, including apps that use the tomcat part of JBoss, the only solution I have is to concurrently run a tomcat instance. What ports will I need to change in order to avoid conflict with JBoss ports? The ports I plan to change are as follows: 8080 8443 8005 8009 8082 Would changing these values in the server.xml be enough? Last time I tried this, the shutdown script stopped working. Are there hard code values in the scripts? Any suggestions on how I could go about getting this to work? Thanks in advance. Regards, Khawaja Shams
RE: send a csv file from tomcat?
Here's how I've done it from a .jsp: <% response.reset();response.setContentType("text/comma-separated-values; charset=UTF-8");response.setHeader("Content-disposition","attachment;filenam e=csvoutput.csv");%> Skip the response.reset() if running from inside a servlet... Tim -Original Message- From: Christopher Molnar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 5:57 PM To: Tomcat Users List Subject: send a csv file from tomcat? Can anyone tell me how to send a stream as a CSV (comma seperated file) rather than as an HTML page? I curently am sending the data as a Response. Thanks, -Chris - 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]
send a csv file from tomcat?
Can anyone tell me how to send a stream as a CSV (comma seperated file) rather than as an HTML page? I curently am sending the data as a Response. Thanks, -Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat logging from startup.bat
David Durham wrote: Hi- I'm using apache-tomcat-5.5.15 that I downloaded about 15 minutes ago. My installation is just to unzip to a directory, and run startup.bat. Strangely, the logger is set to debug somehow. The end the startup script because of a ton of digester DEBUG log statements going to the console. Does anyone know what causes this? Seem strange that my old install, 5.5.9 does not do this, while 5.5.15 does. Actually, it looks like this is my problem because now the old install is logging insanely as well. Apologies for the noise. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat logging from startup.bat
Hi- I'm using apache-tomcat-5.5.15 that I downloaded about 15 minutes ago. My installation is just to unzip to a directory, and run startup.bat. Strangely, the logger is set to debug somehow. The end the startup script because of a ton of digester DEBUG log statements going to the console. Does anyone know what causes this? Seem strange that my old install, 5.5.9 does not do this, while 5.5.15 does. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: APR Connector Shutdown Problem
I'm specifically trying to get the APR connector to work. Thanks though. I'm blind. There is a log entry for "AjpAprProtocol destroy." Unfortunately, it still isn't shutting down properly. , Josh. > -Original Message- > From: Mike Sabroff [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 26, 2006 5:13 PM > To: Tomcat Users List > Subject: Re: APR Connector Shutdown Problem > > > Try switching to a ajp1.3 connector - "cyote" if you can...AJP are > fairly new and problematic from what I have seen and heard > > Fenlason, Josh wrote: > > I'm running into a problem with the APR connector not shutting down > > properly. Tomcat runs fine and there are no errors on > shutdown, but > > if I shut Tomcat down and start it up again I get a socket > bind failed > > error in the catalina log (attached). I have to wait for several > > minutes between shutdown and startup for Tomcat to be able > to startup > > correctly. If I run Tomcat without the APR connector, I don't have > > this issue. This does not occur on Windows, but does on > Solaris and AIX. > > Has anyone else seen this? > > One thing I noticed is that the first thing logged on > shutdown is an > > "AjpAprProtocol pause" entry, but there is no shutdown, > stop or destroy. > > Is there any chance the APR connector is just getting paused and > > nothing is actually stopping it? > > Any help would be greatly appreciated. Thanks in advance. > > , > > Josh. > > > -- > -- > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > Mike Sabroff > Web Services Developer > [EMAIL PROTECTED] > 920-568-8379 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk configuration directives in VirtualHost sections
Dan - Thanks very much for all this - looks like it should work with mod_jk too! I'll let you know how I get on. Jon -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 19:32 To: users@tomcat.apache.org Subject: RE: mod_jk configuration directives in VirtualHost sections I did mod_jk2 with Virtual Host, and while its not the same I think that doing VH will not be a problem once you get an idea of how it should/can be setup. THIS IS PSEUDO, DO NOT TAKE AS GOSPEL TRUTH !!! NO SUPPORT! :p -- workers.properties file -- # Setting Tomcat & Java Home workers.tomcat_home=/usr/local/tomcat55 workers.java_home=/usr/local/java ps=/ worker.list=host1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 ps=/ worker.list=host2 worker.ajp13.port=9009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 ps=/ worker.list=host3 worker.ajp13.port=10009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 -- workers.properties file -- -- httpd.conf file -- ServerName host1:8009 DocumentRoot /usr/local/tomcat55/webapps/host1 DirectoryIndex index.html index.jsp ... LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so JkWorkersFile "/usr/local/tomcat55/conf/jk/host1-workers.properties" JkLogFile "/usr/local/tomcat55/logs/host1-mod_jk.log" JkLogLevel debug Alias / "/usr/local/tomcat55/webapps/host1" Options Indexes +FollowSymLinks JkMount /* host1 ... ServerName host1:9009 DocumentRoot /usr/local/tomcat55/webapps/host2 DirectoryIndex index.html index.jsp ... LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so JkWorkersFile "/usr/local/tomcat55/conf/jk/host2-workers.properties" JkLogFile "/usr/local/tomcat55/logs/host2-mod_jk.log" JkLogLevel debug Alias / "/usr/local/tomcat55/webapps/host2" Options Indexes +FollowSymLinks JkMount /* host2 ... -- httpd.conf file -- -- server.xml file -- ... -- server.xml file -- Try that and see how it works, again I did something similar with mod_jk2, I havent done this yet in mod_jk that is coming next. If you have different paths and arent putting the code in webapps, I currently have different paths for the different code, then the big change will be in the Server.xml where the appbase will need to be the full path to the code. Let me know if this works or if you did any tweeks. HTH Dan >From: "Jonathan Woods" <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" >To: >Subject: mod_jk configuration directives in VirtualHost sections >Date: Wed, 25 Jan 2006 21:55:55 - > >Hello, list. > >I have Apache 1.3.33 running on Linux and talking successfully to >Tomcat >5.5.15 through mod_jk. I'd now like to host multiple instances of >Tomcat (or maybe just multiple Tomcat connectors within one instance) >to receive requests dispatched at multiple VirtualHosts on the same server. > >Is it possible to have more than one workers.properties file, and >therefore more than one JkWorkersFile directive, per Apache? Ideally, >I'd like one workers.properties file per VirtualHost just to make app-building easier. >The documentation says that certain directives may be repeated in >VirtualHost sections - e.g. JkLogFile - but doesn't mention JkWorkersFile. > >Thanks in advance - > >Jon - 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: APR Connector Shutdown Problem
Try switching to a ajp1.3 connector - "cyote" if you can...AJP are fairly new and problematic from what I have seen and heard Fenlason, Josh wrote: I'm running into a problem with the APR connector not shutting down properly. Tomcat runs fine and there are no errors on shutdown, but if I shut Tomcat down and start it up again I get a socket bind failed error in the catalina log (attached). I have to wait for several minutes between shutdown and startup for Tomcat to be able to startup correctly. If I run Tomcat without the APR connector, I don't have this issue. This does not occur on Windows, but does on Solaris and AIX. Has anyone else seen this? One thing I noticed is that the first thing logged on shutdown is an "AjpAprProtocol pause" entry, but there is no shutdown, stop or destroy. Is there any chance the APR connector is just getting paused and nothing is actually stopping it? Any help would be greatly appreciated. Thanks in advance. , Josh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
APR Connector Shutdown Problem
Title: Message I'm running into a problem with the APR connector not shutting down properly. Tomcat runs fine and there are no errors on shutdown, but if I shut Tomcat down and start it up again I get a socket bind failed error in the catalina log (attached). I have to wait for several minutes between shutdown and startup for Tomcat to be able to startup correctly. If I run Tomcat without the APR connector, I don't have this issue. This does not occur on Windows, but does on Solaris and AIX. Has anyone else seen this? One thing I noticed is that the first thing logged on shutdown is an "AjpAprProtocol pause" entry, but there is no shutdown, stop or destroy. Is there any chance the APR connector is just getting paused and nothing is actually stopping it? Any help would be greatly appreciated. Thanks in advance. , Josh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk / 503 Error
The clue here is you can hit http://www.site.com:8009/examples with a browser. Your connector for port 8009 may not be properly configured to use the AJP 1.3 protocol. It should look similar to this in server.xml: --David Mike Sabroff wrote: > So what makes you think you are not using localhost? > > Neal Whitley wrote: > >> >> I have mod_jk / tomcat and apache somewhat working together but I am >> getting an error when displaying pages via the connector. >> >> Tomcat is set up and works. I can hit: >> http://www.site.com:8080/examples/ >> or >> http://www.site.com:8009/examples/ >> >> However, when I try: http://www.site.com/examples/ >> I get a 503 error. "Service Temporarily Unavailable. The server is >> temporarily unable to service your request due to maintenance >> downtime or capacity problems. Please try again later." >> >> What stands out in my mod_jk.log is this line: " trying to connect >> socket 10 to 127.0.0.1:8009" >> >> The system seems to be trying to connect via the local host. As you >> can see from my config files below I do not reference localhost or >> the 127.0.0.1 IP address. Best I can tell JK should be >> using http://www.site.com:8009 to get/pass data to Tomcat from Apache. >> >> Is there a configuration option I am missing? Or how can I get JK to >> use the correct location? >> >> Thanks, >> >> Neal >> >> >> >> >> System Specs: >> >> Lixux/Debian >> Apache 1.3.X >> Tomcat 4.1.31 >> JK 1.2.14 >> >> >> >> mod_jk.log file: >> >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI >> '/examples/' from 11 maps >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/jsp/security/protected/j_security_check' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/CompressionTest' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/SendMailServlet' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/servletToJsp' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/servlet/*' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/*.jsp' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/snoop' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/*' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match >> ajp13 -> /examples/* >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI >> '/examples/' from 11 maps >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/jsp/security/protected/j_security_check' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/CompressionTest' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/SendMailServlet' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/servletToJsp' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/servlet/*' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/*.jsp' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/snoop' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map >> context URI '/examples/*' >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match >> ajp13 -> /examples/* >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13 >> [Tue Jan 24 13:53:01 2006] [23378:] [debug] >> wc_maintain::jk_worker.c (301): Maintaining worker ajp13
Re: How do I stop tomcat when the port is in use
kill -9 (unix) task manager (windows) Shankar Unni wrote: Koneru, Narendra wrote: When the port that I specify to start tomcat is in use, then I want tomcat to go down after printing a message. What I observed is that tomcat prints the message on the screen that there is a bind exception but tomcat server does not go down. Do you have some servlet marked for whose init() starts threads, or anything like that? And the thread is not created as a "daemon" thread (setDaemon(true))? That can cause this behavior. Or, if any of your servlets throws an exception, that sometimes screws up the shutdown.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I stop tomcat when the port is in use
Koneru, Narendra wrote: When the port that I specify to start tomcat is in use, then I want tomcat to go down after printing a message. What I observed is that tomcat prints the message on the screen that there is a bind exception but tomcat server does not go down. Do you have some servlet marked for whose init() starts threads, or anything like that? And the thread is not created as a "daemon" thread (setDaemon(true))? That can cause this behavior. Or, if any of your servlets throws an exception, that sometimes screws up the shutdown.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.15 - does JULI required a host tag defined realm?
Hi, I will try to fix this. Please post a bugzilla record with here at Apache (please post the id in this thread). Another good place for this special bug is http://developer.berlios.de/bugs/?group_id=5430 of x4juli - http://www.x4juli.org which will suffer from the same problem (I have to check that). Regards Boris Raymond, Craig (US SSA) wrote: > Boris, > I tried your logging.properties with the addition of the .handlers to no > effect. > > On one of the other servers (where we use a custom realm) I moved the > realm into the ROOT.xml file - same affect (e.g. file created, but log > info goes to catalina.date.log). > > Perhaps it's a "feature". :-) > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple HTTP GET from MS Word/Excel hyperlink
--- Andrew Chapman <[EMAIL PROTECTED]> wrote: > Whilst investigating a strange bug some of our > customers were experiencing > using links in Excel to our web application I > discovered that the root of it > was this strange behaviour in Excel. > > After monitoring the http requests I discovered that > clicking a hyperlink in > Excel creates the following multiple HTTP GET > requests: > > -- > > GET /test.jsp HTTP/1.1 > Accept: */* > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1) > Host: localhost:8088 > Connection: Keep-Alive > Cookie: JSESSIONID=04E1A0B6BD7532F746F2BFCAE167422F > > GET /test.jsp HTTP/1.1 > Accept: */* > Accept-Language: en-gb > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1) > Host: localhost:8088 > Connection: Keep-Alive > > -- > > Notice the lack of JSESSIONID on the second request, > this basically results > in a new session being created and the previous > session (and data) being > lost. > > I have searched in vain for any information on this. > Have any of you > knowledgable web veterans seen this before or do you > know of any fix, > workaround or Tomcat related fix? > > Thanks in advance > > Andy Chapman Yep...known IE issue. IE is a COM component and thus is used as the built in browser in most Windows ware which uses HTML display and URL browsing, so any IE issue will be available in any application using it. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in tomcat configuration...
"module not included in the server configuration"this is the key mod_jk is a third party module and is not in the apache distribution. It must be downloaded and compiled. Best way is to compile it into the apache executable. You will have to go to the tomcat docs and maybe google to find info on how to do this..plan on spending some time. Bharat Soni wrote: Hi, I have RH9, apache 2.0.40,tomcat 4.3.11 jdk 1.3.1_11. with mysql 3.23.54. I am installing a server with apache+mod jk + tomcat + mysql. The problem is that after writing Include /usr/local/tomcat/conf/auto/mod_jk.so in my httpd.conf file and trying to start the httpd server i got error as Syntax error on line 28 of /usr/local/tomcat/conf/auto/mod_jk.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration . I have build my apache as ./configure --prefix=/usr/local/apache --enable-openssl --enable-so on net I found this below command. ./configure --prefix=/usr/local/apache --enable-ssl --enable-so But for my setup this command was not working and gives some ssl error . I query for the RPM and find openssl on my system. so i used the command with openssl included. is this correct ot this is the cause for the problem. By the way Tomcat is working fine individually . but due to the error apache is not starting. if i comment the line apache also works fine . Thanks in anticipation Bharat Soni +91-9826098373 -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I stop tomcat when the port is in use
Koneru, Narendra wrote: Hi, When the port that I specify to start tomcat is in use, then I want tomcat to go down after printing a message. What I observed is that tomcat prints the message on the screen that there is a bind exception but tomcat server does not go down. How do make sure that tomcat goes down after realizing that the port number is in use. I can't duplicate your problem. On Windows for me, running startup.bat twice activates TC on the first instance, but returns the error and closes the window for the second instance activation attempt (which would be using the same port). How are you starting Tomcat? What OS are you using? Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Document Base on Network Drive
Dear all, To start, I am using Tomcat 5.5.12 on Windows XP Pro. I've been trying to configure Tomcat to read a document base on a network drive. However, I am seeing in the logs the error: java.lang.IllegalArgumentException: Document base M:\workspace\ir8\web does not exist or is not readable The document base works fine if I copy it to a local drive and alter Tomcat's configuration accordingly. However, I really need to do development on the network drive rather than a local drive. My domain user account has full permissions to this drive, and the path exists so I figured that I needed to get the service to run as myself (with the appropriate user policies). Therefore, I have tried the following: - set the Tomcat service to run as my domain user account - give my domain user account: logon as service, act as part of the operating system and replace a process level token privileges I have seen hints to this on many web sites (and it seems to make sense). Unfortunately, I am having no joy, and the error message persists. Ideas? -- Nige. URL: http://www.matrix-data.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk / 503 Error
So what makes you think you are not using localhost? Neal Whitley wrote: I have mod_jk / tomcat and apache somewhat working together but I am getting an error when displaying pages via the connector. Tomcat is set up and works. I can hit: http://www.site.com:8080/examples/ or http://www.site.com:8009/examples/ However, when I try: http://www.site.com/examples/ I get a 503 error. "Service Temporarily Unavailable. The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." What stands out in my mod_jk.log is this line: " trying to connect socket 10 to 127.0.0.1:8009" The system seems to be trying to connect via the local host. As you can see from my config files below I do not reference localhost or the 127.0.0.1 IP address. Best I can tell JK should be using http://www.site.com:8009 to get/pass data to Tomcat from Apache. Is there a configuration option I am missing? Or how can I get JK to use the correct location? Thanks, Neal System Specs: Lixux/Debian Apache 1.3.X Tomcat 4.1.31 JK 1.2.14 mod_jk.log file: [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/examples/' from 11 maps [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/jsp/security/protected/j_security_check' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/CompressionTest' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/SendMailServlet' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/servletToJsp' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/servlet/*' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/*.jsp' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/snoop' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/*' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13 -> /examples/* [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/examples/' from 11 maps [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/jsp/security/protected/j_security_check' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/CompressionTest' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/SendMailServlet' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/servletToJsp' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/servlet/*' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/*.jsp' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/snoop' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/examples/*' [Tue Jan 24 13:53:01 2006] [23378:] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13 -> /examples/* [Tue Jan 24 13:53:01 2006] [23378:] [debug] wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13 [Tue Jan 24 13:53:01 2006] [23378:] [debug] wc_maintain::jk_worker.c (301): Maintaining worker ajp13 [Tue Jan 24 13:53:01 2006] [23378:] [debug] init_ws_service::mod_jk.c (479): Service protocol=HTTP/1.1 method=GET host=(null) addrr=68.58.4.70 name=www.site.com port=80 auth=(null) user=(null) laddr=66.33.192.77 raddr=68.58.4.70 [Tue Jan 24 13:53:01 2006] [23378:] [debug] ajp_get_endpoint::jk_ajp_common.c (2119): acquired connection cache slot=0 [Tue Jan 24 13:53:01 2006] [23378:] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done [Tue Jan 24 13:53:01 2006] [23378:] [debug] ajp_service::jk_ajp_common.c (1658): proc
RE: tomcat 5.5.15 - does JULI required a host tag defined realm?
Boris, I tried your logging.properties with the addition of the .handlers to no effect. On one of the other servers (where we use a custom realm) I moved the realm into the ROOT.xml file - same affect (e.g. file created, but log info goes to catalina.date.log). Perhaps it's a "feature". :-) > -Original Message- > From: Boris Unckel [mailto:[EMAIL PROTECTED] > SNIP > > I have read your mails and points several times, I am wondering that > this happens. > Again: The only change is the place where the realm config appears, > nothing else? > After the change everything works as expected? > > Please try the following in the webapp logging.properties of the third > host: > > handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler > .handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler > > > # Handler specific properties. > # Describes specific configuration info for Handlers. > > > org.apache.juli.FileHandler.level = FINE > org.apache.juli.FileHandler.directory = ${catalina.base}/logs > org.apache.juli.FileHandler.prefix = YOUR_PREFIX_HERE. > > java.util.logging.ConsoleHandler.level = FINE > java.util.logging.ConsoleHandler.formatter = > java.util.logging.SimpleFormatter > > > > - > 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: help to solve 'OutOfMemoryError'
Hi, I don't have any idea about the Linux environment. But, I got a OutOfMemoryError due to permgen space on windows/Tomcat5.0.30 environment and this is what I have done. set CATALINA_OPTS in catalina.bat if Tomcat is started using startup.bat set CATALINA_OPTS=-Xms128m -Xmx512m -XX:MaxPermSize=256m and if Tomcat is started as a service then JVMOptions is set in service.bat "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;" --JvmMs 128 --JvmMx 512 Hope this helps. Thank you. "Leon Rosenberg" <[EMAIL PROTECTED]> 01/26/2006 09:25 AM Please respond to "Tomcat Users List" To "Tomcat Users List" , [EMAIL PROTECTED] cc Subject Re: help to solve 'OutOfMemoryError' Could you please provide a little more details, on what kind of program you are doing, how you are starting it right now, and how is tomcat involved? generally -Xmx128m -Xmx256m, are parameters to java call, besides you can't have two different values for the same parameter! (I think the first one is ms, right?) java -Xms128m -Xmx256m -cp bla:blub:blib your.package.YourClass For tomcat you need to alter JAVA_OPTS in catalina.sh/bat to even those values: set JAVA_OPTS=-Dms128M -Dmx256M ... under windows and export JAVA_OPTS="-mx256M -ms128M ... under *nix. regards Leon On 1/26/06, Aparna Ramakrishnan <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the link. > When i start my program, the Runtime Maximum Heap Size is 66650112 bytes ~=64MB. I believe I should increase this value to atleast 256 MB. But how do I go about doing this? I understand that I need to add an option -Xmx128m -Xmx256m, but to what and how! > Kindly guide me through.. since I am completely new to this ground. > > Thanks in advance > Aparna > > "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] > > Subject: help to solve 'OutOfMemoryError' > > > > What changes do I need to make to avoid this > > OutOfMemoryError? > > The question is too generic for anyone to provide a concrete answer. > Start here: > http://tomcat.apache.org/faq/memory.html > > Do some reading on how JVM heap management works - Sun's Java web site > has some pretty decent tutorials and tech papers. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Do you Yahoo!? > With a free 1 GB, there's more in store with Yahoo! Mail. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I stop tomcat when the port is in use
Hi, When the port that I specify to start tomcat is in use, then I want tomcat to go down after printing a message. What I observed is that tomcat prints the message on the screen that there is a bind exception but tomcat server does not go down. How do make sure that tomcat goes down after realizing that the port number is in use. Thanks in advance. Naren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
code in webapps vs outside of tomcat
Just a curiosity any performance issues in storing the project outside of the tomcat webapps directory? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk configuration directives in VirtualHost sections
I did mod_jk2 with Virtual Host, and while its not the same I think that doing VH will not be a problem once you get an idea of how it should/can be setup. THIS IS PSEUDO, DO NOT TAKE AS GOSPEL TRUTH !!! NO SUPPORT! :p -- workers.properties file -- # Setting Tomcat & Java Home workers.tomcat_home=/usr/local/tomcat55 workers.java_home=/usr/local/java ps=/ worker.list=host1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 ps=/ worker.list=host2 worker.ajp13.port=9009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 ps=/ worker.list=host3 worker.ajp13.port=10009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 -- workers.properties file -- -- httpd.conf file -- ServerName host1:8009 DocumentRoot /usr/local/tomcat55/webapps/host1 DirectoryIndex index.html index.jsp ... LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so JkWorkersFile "/usr/local/tomcat55/conf/jk/host1-workers.properties" JkLogFile "/usr/local/tomcat55/logs/host1-mod_jk.log" JkLogLevel debug Alias / "/usr/local/tomcat55/webapps/host1" Options Indexes +FollowSymLinks JkMount /* host1 ... ServerName host1:9009 DocumentRoot /usr/local/tomcat55/webapps/host2 DirectoryIndex index.html index.jsp ... LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so JkWorkersFile "/usr/local/tomcat55/conf/jk/host2-workers.properties" JkLogFile "/usr/local/tomcat55/logs/host2-mod_jk.log" JkLogLevel debug Alias / "/usr/local/tomcat55/webapps/host2" Options Indexes +FollowSymLinks JkMount /* host2 ... -- httpd.conf file -- -- server.xml file -- ... -- server.xml file -- Try that and see how it works, again I did something similar with mod_jk2, I havent done this yet in mod_jk that is coming next. If you have different paths and arent putting the code in webapps, I currently have different paths for the different code, then the big change will be in the Server.xml where the appbase will need to be the full path to the code. Let me know if this works or if you did any tweeks. HTH Dan From: "Jonathan Woods" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Subject: mod_jk configuration directives in VirtualHost sections Date: Wed, 25 Jan 2006 21:55:55 - Hello, list. I have Apache 1.3.33 running on Linux and talking successfully to Tomcat 5.5.15 through mod_jk. I'd now like to host multiple instances of Tomcat (or maybe just multiple Tomcat connectors within one instance) to receive requests dispatched at multiple VirtualHosts on the same server. Is it possible to have more than one workers.properties file, and therefore more than one JkWorkersFile directive, per Apache? Ideally, I'd like one workers.properties file per VirtualHost just to make app-building easier. The documentation says that certain directives may be repeated in VirtualHost sections - e.g. JkLogFile - but doesn't mention JkWorkersFile. Thanks in advance - Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.15 - does JULI required a host tag defined realm?
Hello Craig, Raymond, Craig (US SSA) wrote: The logging.properties files are clones of the example at the bottom of the Tomcat 5.5 docs logging.htm page, with the exception of the ..FileHandler.prefix being changed. They reside as below for all three servers (where ServerRootDir is different for each server): F:/InetPub/ServerRootDir/WEB-INF/classes/logging.properties The realm for the server in question is as below: I have read your mails and points several times, I am wondering that this happens. Again: The only change is the place where the realm config appears, nothing else? After the change everything works as expected? Please try the following in the webapp logging.properties of the third host: handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = YOUR_PREFIX_HERE. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and mod_jk question on Red Hat 9
Sorry, Adrian - out of ideas, and Googling around for the error messages doesn't help much. I would certainly try updating mod_jk to the latest version, or recompiling from the version shipped with whichever Tomcat distribution you're using, all the while keeping your fingers crossed! However, it does feel more like a problem at the Tomcat end. If you are completely free to use whichever version of Tomcat you like, and you're already running web apps using 5.5.x, then you could try upgrading to 5.5.15, recently out of beta. Good luck - Jon -Original Message- From: Adrian Nadeau [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 17:01 To: Jonathan Woods Cc: 'Tomcat Users List' Subject: Re: Tomcat and mod_jk question on Red Hat 9 Thanks for the information... In our mod_jk log we have the following showing up: [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1401)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (836)]: ajp_connection_tcp_get_message: Error - Wrong message format 0x4854 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1248)]: Error reading reply from tomcat. Tomcat is down or network problems. [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1401)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1429)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed errno = 11 That's after it actually works a few times, so Tomcat is definitely running and accessible (thru port 8080 also). In error log there a lot of processes that haven't exited, here is some information from it when we actually do a restart: start[Thu Jan 26 10:31:24 2006] [warn] child process 5805 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 5806 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 6668 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 28585 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 13921 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 27065 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 13928 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 27152 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 18708 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 18714 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 5805 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 5806 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 6668 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 28585 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 13921 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 27065 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 13928 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 27152 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 18708 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 18714 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:26 2006] [notice] caught SIGTERM, shutting down [Thu Jan 26 10:31:31 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Jan 26 10:31:31 2006] [notice] Digest: generating secret for digest authentication ... [Thu Jan 26 10:31:31 2006] [notice] Digest: done [Thu Jan 26 10:31:32 2006] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations I don't believe it's our browser, we can actually reopen a new browser and it won't work right also (if we do it around the same time). I'm going to check the mod_jk file again and make 100% sure it's compatable with our versions of Tomcat and Apache. Do you think this could be causing the problem possibly? Any other suggestions would be great, Thanks again. Adrian Nadeau VP, Development Evolving Solutions...Technology for changing [EMAIL PROTECTED] www.evolvingsolutions.ca 506.633.2012 Jonathan Woods wrote: >Adrian - > >I haven't met this problem, but a few things occurred to me after >reading your message: > >1. Don't forgot you could probably (depending on your config) always >use mod_proxy instead of mod_jk, just as a temporary measure. > >2. Sometimes browsers are set to have only 2 or 3 concurrent >connections open to a server. Maybe something about your config - e.g. >the resources being served up, or a mod_jk problem - means that the >connections aren't properly closed, so on the
RE: moving from tomcat 5.0.24 to 5.5.15, haviing problems with root app
> From: Randy Paries [mailto:[EMAIL PROTECTED] > Subject: moving from tomcat 5.0.24 to 5.5.15, haviing > problems with root app > > my server.xml is pretty as left as is (will inlcude if requested) There are differences between 5.0 and 5.5 - make sure you read the docs and look at the comments in the default server.xml very carefully. > then in /usr/java/jakarta-tomcat/conf/Catalina/localhost > i have 3 xml files > host-manager.xml manager.xml unitnet.xml > > path="" > docBase="/home/unitnet" Again, you need to read the 5.5 documentation, in particular the description of the path attribute for the element: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: moving from tomcat 5.0.24 to 5.5.15, haviing problems with root app
Rename unitnet.xml to ROOT.xml George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Randy Paries [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 26, 2006 12:03 PM > To: users@tomcat.apache.org > Subject: moving from tomcat 5.0.24 to 5.5.15, haviing > problems with root app > > Hello, > I have been running 5.0.24 forever and it has been running fine, so i > have not touched it > > I need to upgrade to 5.5.15 > > I got to be missing something simple. > > my server.xml is pretty as left as is (will inlcude if requested) > > then in /usr/java/jakarta-tomcat/conf/Catalina/localhost > i have 3 xml files > host-manager.xml manager.xml unitnet.xml > > cat unitnet.xml > path="" > docBase="/home/unitnet" > crossContext="true" > allowLinking="true" > debug="0" > reloadable="false" > > > > So before when i would go to http://mydomain.com:8080 > i would get the index page located at /home/unitnet > > but now i see the tomcat index page > > I thought all i needed to add was the unitnet.xml, but i am missing > some step in the process > > Thanks for any help > > Randy > > - > 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: moving from tomcat 5.0.24 to 5.5.15, haviing problems with root app
More info:: when i go to Tomcat Web Application Manager my app is listed as Path /unitnet and it used to be listed / Thanks Randy On 1/26/06, Randy Paries <[EMAIL PROTECTED]> wrote: > Hello, > I have been running 5.0.24 forever and it has been running fine, so i > have not touched it > > I need to upgrade to 5.5.15 > > I got to be missing something simple. > > my server.xml is pretty as left as is (will inlcude if requested) > > then in /usr/java/jakarta-tomcat/conf/Catalina/localhost > i have 3 xml files > host-manager.xml manager.xml unitnet.xml > > cat unitnet.xml > path="" > docBase="/home/unitnet" > crossContext="true" > allowLinking="true" > debug="0" > reloadable="false" > > > > So before when i would go to http://mydomain.com:8080 > i would get the index page located at /home/unitnet > > but now i see the tomcat index page > > I thought all i needed to add was the unitnet.xml, but i am missing > some step in the process > > Thanks for any help > > Randy > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
moving from tomcat 5.0.24 to 5.5.15, haviing problems with root app
Hello, I have been running 5.0.24 forever and it has been running fine, so i have not touched it I need to upgrade to 5.5.15 I got to be missing something simple. my server.xml is pretty as left as is (will inlcude if requested) then in /usr/java/jakarta-tomcat/conf/Catalina/localhost i have 3 xml files host-manager.xml manager.xml unitnet.xml cat unitnet.xml So before when i would go to http://mydomain.com:8080 i would get the index page located at /home/unitnet but now i see the tomcat index page I thought all i needed to add was the unitnet.xml, but i am missing some step in the process Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
GetRemoteUser() = null with apache 2.2 (not with 1.3)
Hello, I've just found this message, with no solution, in the archive: http://marc.theaimsgroup.com/?l=tomcat-user&m=105163335014996&w=2 It is exactly my problem: I use apache authentification (basic) and the remote_user variable is passing to tomcat. In a struts action i can get the variable with HttpServletRequest.getRemoteUser(). Everything is ok with apache 1.3.33, mod_jk 1.2.15 and tomcat 5.5.9. I would like to upgrade my http server to apache 2.2 and i can't get the remote_user (HttpServletRequest.getRemoteUser() == null). I use the directive JkEnvVar REMOTE_USER %{REMOTE_USER} => no success In my server.xml: address="127.0.0.1"/> Is there a solution? Will i have more chance with mod_proxy_ajp? Thanx, Manu. -- Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3 Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1 Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE mailto:[EMAIL PROTECTED] http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye Ce mail est signe par un certificat X509 fourni par le CNRS La verification de ce certificat peut etre faite a l'adresse suivante: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html smime.p7s Description: S/MIME Cryptographic Signature
Session timeouts
I am having some problems with session timeouts. I set the session-timeout property to 15 minutes in the Tomcat global web.xml and also in my application web.xml. However, Tomcat is not always timing out when sessions are inactive more than 15 minutes. On some systems, it behaves as I expect. When the session times out (after 15 minutes) and the user requests to display a page, the login page is shown and user needs to log in once again. However, in other situations, and I can't really link this to a specific machine, the session never seems to expire. I can browse any page of the application regardless how much delay there is between accesses. Sometimes, rebooting the machine fixes the problem. Sometimes not. I am wondering if anyone in this list has experienced this problem, if this is a known issue, if there is any plans to fix this (if it is a real issue) and if there is a workaround. Martin - Do you Yahoo!? With a free 1 GB, there's more in store with Yahoo! Mail.
Re: help to solve 'OutOfMemoryError'
Could you please provide a little more details, on what kind of program you are doing, how you are starting it right now, and how is tomcat involved? generally -Xmx128m -Xmx256m, are parameters to java call, besides you can't have two different values for the same parameter! (I think the first one is ms, right?) java -Xms128m -Xmx256m -cp bla:blub:blib your.package.YourClass For tomcat you need to alter JAVA_OPTS in catalina.sh/bat to even those values: set JAVA_OPTS=-Dms128M -Dmx256M ... under windows and export JAVA_OPTS="-mx256M -ms128M ... under *nix. regards Leon On 1/26/06, Aparna Ramakrishnan <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the link. > When i start my program, the Runtime Maximum Heap Size is 66650112 bytes > ~=64MB. I believe I should increase this value to atleast 256 MB. But how do > I go about doing this? I understand that I need to add an option -Xmx128m > -Xmx256m, but to what and how! > Kindly guide me through.. since I am completely new to this ground. > > Thanks in advance > Aparna > > "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] > > Subject: help to solve 'OutOfMemoryError' > > > > What changes do I need to make to avoid this > > OutOfMemoryError? > > The question is too generic for anyone to provide a concrete answer. > Start here: > http://tomcat.apache.org/faq/memory.html > > Do some reading on how JVM heap management works - Sun's Java web site > has some pretty decent tutorials and tech papers. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Do you Yahoo!? > With a free 1 GB, there's more in store with Yahoo! Mail. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple HTTP GET from MS Word/Excel hyperlink
Whilst investigating a strange bug some of our customers were experiencing using links in Excel to our web application I discovered that the root of it was this strange behaviour in Excel. After monitoring the http requests I discovered that clicking a hyperlink in Excel creates the following multiple HTTP GET requests: -- GET /test.jsp HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: localhost:8088 Connection: Keep-Alive Cookie: JSESSIONID=04E1A0B6BD7532F746F2BFCAE167422F GET /test.jsp HTTP/1.1 Accept: */* Accept-Language: en-gb Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: localhost:8088 Connection: Keep-Alive -- Notice the lack of JSESSIONID on the second request, this basically results in a new session being created and the previous session (and data) being lost. I have searched in vain for any information on this. Have any of you knowledgable web veterans seen this before or do you know of any fix, workaround or Tomcat related fix? Thanks in advance Andy Chapman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and mod_jk question on Red Hat 9
Thanks for the information... In our mod_jk log we have the following showing up: [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1401)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (836)]: ajp_connection_tcp_get_message: Error - Wrong message format 0x4854 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1248)]: Error reading reply from tomcat. Tomcat is down or network problems. [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1401)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Wed Jan 25 13:21:33 2006] [jk_ajp_common.c (1429)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed errno = 11 That's after it actually works a few times, so Tomcat is definitely running and accessible (thru port 8080 also). In error log there a lot of processes that haven't exited, here is some information from it when we actually do a restart: start[Thu Jan 26 10:31:24 2006] [warn] child process 5805 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 5806 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 6668 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 28585 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 13921 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 27065 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 13928 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 27152 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 18708 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:24 2006] [warn] child process 18714 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 5805 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 5806 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 6668 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 28585 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 13921 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 27065 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 13928 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 27152 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 18708 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:25 2006] [warn] child process 18714 still did not exit, sending a SIGTERM [Thu Jan 26 10:31:26 2006] [notice] caught SIGTERM, shutting down [Thu Jan 26 10:31:31 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Jan 26 10:31:31 2006] [notice] Digest: generating secret for digest authentication ... [Thu Jan 26 10:31:31 2006] [notice] Digest: done [Thu Jan 26 10:31:32 2006] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations I don't believe it's our browser, we can actually reopen a new browser and it won't work right also (if we do it around the same time). I'm going to check the mod_jk file again and make 100% sure it's compatable with our versions of Tomcat and Apache. Do you think this could be causing the problem possibly? Any other suggestions would be great, Thanks again. Adrian Nadeau VP, Development Evolving Solutions...Technology for changing [EMAIL PROTECTED] www.evolvingsolutions.ca 506.633.2012 Jonathan Woods wrote: Adrian - I haven't met this problem, but a few things occurred to me after reading your message: 1. Don't forgot you could probably (depending on your config) always use mod_proxy instead of mod_jk, just as a temporary measure. 2. Sometimes browsers are set to have only 2 or 3 concurrent connections open to a server. Maybe something about your config - e.g. the resources being served up, or a mod_jk problem - means that the connections aren't properly closed, so on the third click it's actually your browser waiting until the other connections are closed. 3. It also sounds like a threading problem could cause these symptoms. Is there any 2- or 3-ness about the Tomcat config - e.g. the size of the pool of servlet instances maintained? Are the resources you're reaching when you click threadsafe? 4. Try looking in Apache's error log and in mod_jk's log (assuming you write one - JkLogFile directive). Jon -Original Message- From: Adrian Nadeau [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 14:56 To: users@tomcat.apache.org Subject: Tomcat and mod_jk question on Red Hat 9 Hello, We recently setup mod_jk on a server running Red Hat 9. We are having some odd problem
RE: tomcat 5.5.15 - does JULI required a host tag defined realm?
The logging.properties files are clones of the example at the bottom of the Tomcat 5.5 docs logging.htm page, with the exception of the ..FileHandler.prefix being changed. They reside as below for all three servers (where ServerRootDir is different for each server): F:/InetPub/ServerRootDir/WEB-INF/classes/logging.properties The realm for the server in question is as below: Thanks Boris, I appreciate the help. Sincerely, Craig > -Original Message- > From: Boris Unckel [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 26, 2006 10:45 AM > To: Tomcat Users List > Subject: Re: tomcat 5.5.15 - does JULI required a host tag defined realm? > > SNIP > > No, thats more a problem of the classloader. The logging config is per > Context Classloader. So you can place a logging properties at any place in > the classloader hierarchy. > It seems that you have same the logging.properties in your webapp, but > just > changed the entry of the realm. > Does the entry of the realm change the classloader (hierarchy) behaviour? > > Please send all your logging.properties and a short comment where they > placed. > > Regards > Boris > > - > 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: help to solve 'OutOfMemoryError'
Hi, Thanks for the link. When i start my program, the Runtime Maximum Heap Size is 66650112 bytes ~=64MB. I believe I should increase this value to atleast 256 MB. But how do I go about doing this? I understand that I need to add an option -Xmx128m -Xmx256m, but to what and how! Kindly guide me through.. since I am completely new to this ground. Thanks in advance Aparna "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] > Subject: help to solve 'OutOfMemoryError' > > What changes do I need to make to avoid this > OutOfMemoryError? The question is too generic for anyone to provide a concrete answer. Start here: http://tomcat.apache.org/faq/memory.html Do some reading on how JVM heap management works - Sun's Java web site has some pretty decent tutorials and tech papers. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? With a free 1 GB, there's more in store with Yahoo! Mail.
RE: Tomcat and mod_jk question on Red Hat 9
Adrian - I haven't met this problem, but a few things occurred to me after reading your message: 1. Don't forgot you could probably (depending on your config) always use mod_proxy instead of mod_jk, just as a temporary measure. 2. Sometimes browsers are set to have only 2 or 3 concurrent connections open to a server. Maybe something about your config - e.g. the resources being served up, or a mod_jk problem - means that the connections aren't properly closed, so on the third click it's actually your browser waiting until the other connections are closed. 3. It also sounds like a threading problem could cause these symptoms. Is there any 2- or 3-ness about the Tomcat config - e.g. the size of the pool of servlet instances maintained? Are the resources you're reaching when you click threadsafe? 4. Try looking in Apache's error log and in mod_jk's log (assuming you write one - JkLogFile directive). Jon -Original Message- From: Adrian Nadeau [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 14:56 To: users@tomcat.apache.org Subject: Tomcat and mod_jk question on Red Hat 9 Hello, We recently setup mod_jk on a server running Red Hat 9. We are having some odd problems with the new setup. For some reason, everything works fine for the first 2 clicks when testing the process (running the examples webapp thru Apache 2.0.40). However, when we click something (anything, doesn't have to be the same steps) for the third time, it seems as though mod_jk cannot connect through AJP13 (Tomcat version is 4.1.29) . It trys to load for a long time and then nothing loads. If we wait for a bit and then do the same test again, the same thing happens. I can post more information and config settings, but I wanted to see if this is a common problem or not? We've had no problems running mod_jk in a Windows environment or Solaris in the past. If we need to post more information that is not a problem, we can do that. We talked to our hosting provider and they seem to think it's that we are running out of TCP Sockets? Any information would be great as we are trying to get a number of applications running on the server ASAP (of course). Thanks! Regards, Adrian Nadeau VP, Development Evolving Solutions...Technology for changing [EMAIL PROTECTED] www.evolvingsolutions.ca 506.633.2012 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.15 - does JULI required a host tag defined realm?
Hello Craig, > In the server.xml are three s defined, two of which have a realm > defined in the host tag. The third has the realm defined in its > ROOT.xml context tag. Each has a logging.properties file in its > WEB-INF/classes directory. Good, best chance to have individual logging for same loggers. > > > The third host (without the realm defined in server.xml) does not log to > the file defined in its logging.properties file, though the file is > created with a length of zero bytes. The logging information is output > in the cataline.date.log file. So the logging.properties of the third host has been read. > > > If I move the realm definition from the ROOT.xml to server.xml, the > logging occurs as expected (e.g. it is output to the file defined in > logging.properties). It appears as if JULI requires a host defined > realm? > Does anyone have ideas of this? Is a realm in the host tag required for > JULI? No, thats more a problem of the classloader. The logging config is per Context Classloader. So you can place a logging properties at any place in the classloader hierarchy. It seems that you have same the logging.properties in your webapp, but just changed the entry of the realm. Does the entry of the realm change the classloader (hierarchy) behaviour? Please send all your logging.properties and a short comment where they placed. Regards Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: From Java to C#, ASP.NET [Off Topic]
--- Tony LaPaso <[EMAIL PROTECTED]> wrote: > Certainly -- $5,000 and it's yours! > -- > Tony LaPaso > > > > - Original Message - > From: "Leon Rosenberg" > <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Wednesday, January 25, 2006 4:00 AM > Subject: Re: From Java to C#, ASP.NET [Off Topic] > > > > > > I've been programming in Java/J2EE for the past 8+ > years, most of > > this > > time as a contractor for several companies on many > J2EE projects. I > > even have a small (and now hopelessly out of date) > Java web site that > > I've maintained for the past 5+ years at > www.absolutejava.com, which > > will be removed in early May. > > since you don't need it anymore, can i have it? :-) > I mean the domainname > > regards > Leon > Squatter: If he doesn't keep renewing it then it will be up for grabs anyways. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and mod_jk question on Red Hat 9
Hello, We recently setup mod_jk on a server running Red Hat 9. We are having some odd problems with the new setup. For some reason, everything works fine for the first 2 clicks when testing the process (running the examples webapp thru Apache 2.0.40). However, when we click something (anything, doesn't have to be the same steps) for the third time, it seems as though mod_jk cannot connect through AJP13 (Tomcat version is 4.1.29) . It trys to load for a long time and then nothing loads. If we wait for a bit and then do the same test again, the same thing happens. I can post more information and config settings, but I wanted to see if this is a common problem or not? We've had no problems running mod_jk in a Windows environment or Solaris in the past. If we need to post more information that is not a problem, we can do that. We talked to our hosting provider and they seem to think it's that we are running out of TCP Sockets? Any information would be great as we are trying to get a number of applications running on the server ASAP (of course). Thanks! Regards, Adrian Nadeau VP, Development Evolving Solutions...Technology for changing [EMAIL PROTECTED] www.evolvingsolutions.ca 506.633.2012 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help to solve 'OutOfMemoryError'
> From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] > Subject: help to solve 'OutOfMemoryError' > > What changes do I need to make to avoid this > OutOfMemoryError? The question is too generic for anyone to provide a concrete answer. Start here: http://tomcat.apache.org/faq/memory.html Do some reading on how JVM heap management works - Sun's Java web site has some pretty decent tutorials and tech papers. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5.15 - does JULI required a host tag defined realm?
I am in the middle of converting a web server from Tomcat 5.0.25 to 5.5.15, and I am using JULI. In the server.xml are three s defined, two of which have a realm defined in the host tag. The third has the realm defined in its ROOT.xml context tag. Each has a logging.properties file in its WEB-INF/classes directory. The third host (without the realm defined in server.xml) does not log to the file defined in its logging.properties file, though the file is created with a length of zero bytes. The logging information is output in the cataline.date.log file. If I move the realm definition from the ROOT.xml to server.xml, the logging occurs as expected (e.g. it is output to the file defined in logging.properties). It appears as if JULI requires a host defined realm? I hope I've explained the situation adequately. Does anyone have ideas of this? Is a realm in the host tag required for JULI? Thanks in advance, Craig.
RE: Sharing classes between applications
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Danny Lee > Subject: Sharing classes between applications > > Well, what do you think, is this a good idea, to share the > classes and if yes, how can I do it :) Unless the two apps actually need to share data, don't do it. You end up introducing dependencies and app reload problems that will require a shutdown of Tomcat every time you want to change something. Better to have your packaging/deployment mechanism (usually ANT scripts) just include the necessary classes or jars when each app is built. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sharing classes between applications
Hi guys, I have a general question about sharing classes between two WebApps in Tomcat. In my case I have a Shop app and an now a new Admin app, which really can use lot of stuff allready implemented in the Shop. Of course copy-paste do work, but I supose copying-pasting after each update make no much sence... Well, what do you think, is this a good idea, to share the classes and if yes, how can I do it :) Btw, I mostly think of using my Hibernate persistance-managers there... not sure if it's even possible. Cheers! Danny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FarmDeployer - removing webapp on deploy?
Hello, Thanks for the help ... I have got this working now ... the problem was that another web app deployed in the nodes was blocking for session data as part of the server startup. I noticed that the war file was in fact getting copied from the master node to the other nodes but to the war-temp directory. Therefore on server startup if I waited until the following output in the log: INFO: Server startup in 66109 ms then the farm deployment worked. However, it would seem that tomcat should handle this better? given the war file is copied to the node in the temporary war directory? Also, the output in the log file still suggests it is removing the webapp when in fact it doesnt! Regards, Julie. On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: > Please, set the deployDir to your webapps dir. > Peter > > Am 26.01.2006 um 11:55 schrieb Julie McCabe: > > Hello Peter, > > > > My deploy dir is $CATALINA_HOME/war-deploy it is not the webapps > > directory. > > The temp, deploy and watch directories are all read/writeable. > > > > I added the logging in the conf dir but it did not produce any > > extra output - > > I dont think the logging was picked up. I then followed the > > documentation > > for logging on the tomcat web site but it dd not pick it up either > > - i put > > log properties in the common/classes dir > > > > Thanks, > > Julie. > > > > On Wednesday 25 Jan 2006 16:42, Peter Rossbach wrote: > >> Is your deployDir the host appBase (webapps) directory? > >> Check that tempDir,deployDir and watchDir are exists > >> and read/writeable at all nodes. > >> > >> Configure debug logging at FarmWarDeployer package > >> conf/logging.properties > >> org.apache.catalina.cluster.deploy.level=FINE > >> > >> See what happens... > >> > >> Peter > >> > >> Am 25.01.2006 um 16:24 schrieb Julie McCabe: > >>> Hello, > >>> > >>> Environment: tomcat-5.5.7, java 1.5.0_03 > >>> > >>> I have set up a vertical cluster containing 4 nodes. I am > >>> attempting to > >>> create a master farm node, the element in the master node > >>> is: > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > >>> > >>> managerClassName="org.apache.catalina.cluster.session.DeltaManager" > >>> expireSessionsOnShutdown="false" > >>> useDirtyFlag="true"> > >>> > >>> >>> > >>> className="org.apache.catalina.cluster.mcast.McastService" > >>> mcastAddr="228.0.0.4" > >>> mcastPort="45564" > >>> mcastFrequency="500" > >>> mcastDropTime="3000"/> > >>> > >>> >>> > >>> className="org.apache.catalina.cluster.tcp.ReplicationListener" > >>> tcpListenAddress="127.0.0.1" > >>> tcpListenPort="4000" > >>> tcpSelectorTimeout="100" > >>> tcpThreadCount="6"/> > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" > >>> replicationMode="pooled"/> > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.ReplicationValve" > >>>filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.* > >>> \.html;.*\.txt;"/> > >>> > >>> >>> className="org.apache.catalina.cluster.deploy.FarmWarDeployer" > >>> tempDir="${catalina.base}/war-temp" > >>> deployDir="${catalina.base}/war-deploy" > >>> watchDir="${catalina.base}/war-listen" > >>> watchEnabled="true"/> > >>> > >>> > >>> The other nodes have the same element but with the > >>> watchEnabled > >>> attribute set to false on the / element. > >>> > >>> When all the nodes are running, I copy a war file into the master > >>> node > >>> CATALINA_HOME/war_listen, this is the output in the logs: > >>> > >>> 25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher > >>> check > >>> INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen > >>> 25-Jan-2006 12:35:18 > >>> org.apache.catalina.cluster.deploy.FarmWarDeployer > >>> fileModified > >>> INFO: Installing webapp[/testFarm] from > >>> /media/jm/cluster/tomcat1/war-deploy/testFarm.war > >>> 25-Jan-2006 12:35:18 > >>> org.apache.catalina.cluster.deploy.FarmWarDeployer remove > >>> INFO: Cluster wide remove of web app /testFarm > >>> > >>> It seems the war file is getting deployed but then it is removed > >>> from the > >>> whole cluster. The filesystem is left with the war file getting > >>> copied into > >>> CATALINA_HOME/war-deploy on the master node plus the other 3 nodes, > >>> however > >>> the webapp is not accessible. > >>> > >>> The webapp has the element as: > >>> http://java.sun.com/xml/ns/j2ee"; > >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > >>> > >>> Test Farm Webapp > >>> > >>> . > >>> > >>> Is there something im missing - perhaps it something in the webapp > >>> - although > >>> its ju
Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed
Il giorno gio, 26/01/2006 alle 06.23 -0500, Kevan Miller ha scritto: > Davide, > If you're using Axis, you might be interested in two Axis issues that > I uncovered. They both caused ClassLoader memory leaks within > Geronimo. The problems are described here: > http://issues.apache.org/jira/browse/AXIS-2232 > http://issues.apache.org/jira/browse/AXIS-2278 > > The changes are committed in SVN. However, there hasn't been an > official Axis release, since then. The following binary contains the > updates and is the version delivered by Geronimo: > > http://cvs.apache.org/repository/axis/jars/axis-1.4-356167.jar Thanks, I'll take a try. I hope to solve the problem. Bye, Davide Romanini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FarmDeployer - removing webapp on deploy?
Hello Peter, I set the deployDir to the webapps directory in all the nodes - I still get the same log message and the webapp is only deployed to the master node and not to all the other nodes? Thanks, Julie. On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: > Please, set the deployDir to your webapps dir. > Peter > > Am 26.01.2006 um 11:55 schrieb Julie McCabe: > > Hello Peter, > > > > My deploy dir is $CATALINA_HOME/war-deploy it is not the webapps > > directory. > > The temp, deploy and watch directories are all read/writeable. > > > > I added the logging in the conf dir but it did not produce any > > extra output - > > I dont think the logging was picked up. I then followed the > > documentation > > for logging on the tomcat web site but it dd not pick it up either > > - i put > > log properties in the common/classes dir > > > > Thanks, > > Julie. > > > > On Wednesday 25 Jan 2006 16:42, Peter Rossbach wrote: > >> Is your deployDir the host appBase (webapps) directory? > >> Check that tempDir,deployDir and watchDir are exists > >> and read/writeable at all nodes. > >> > >> Configure debug logging at FarmWarDeployer package > >> conf/logging.properties > >> org.apache.catalina.cluster.deploy.level=FINE > >> > >> See what happens... > >> > >> Peter > >> > >> Am 25.01.2006 um 16:24 schrieb Julie McCabe: > >>> Hello, > >>> > >>> Environment: tomcat-5.5.7, java 1.5.0_03 > >>> > >>> I have set up a vertical cluster containing 4 nodes. I am > >>> attempting to > >>> create a master farm node, the element in the master node > >>> is: > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > >>> > >>> managerClassName="org.apache.catalina.cluster.session.DeltaManager" > >>> expireSessionsOnShutdown="false" > >>> useDirtyFlag="true"> > >>> > >>> >>> > >>> className="org.apache.catalina.cluster.mcast.McastService" > >>> mcastAddr="228.0.0.4" > >>> mcastPort="45564" > >>> mcastFrequency="500" > >>> mcastDropTime="3000"/> > >>> > >>> >>> > >>> className="org.apache.catalina.cluster.tcp.ReplicationListener" > >>> tcpListenAddress="127.0.0.1" > >>> tcpListenPort="4000" > >>> tcpSelectorTimeout="100" > >>> tcpThreadCount="6"/> > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" > >>> replicationMode="pooled"/> > >>> > >>> >>> className="org.apache.catalina.cluster.tcp.ReplicationValve" > >>>filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.* > >>> \.html;.*\.txt;"/> > >>> > >>> >>> className="org.apache.catalina.cluster.deploy.FarmWarDeployer" > >>> tempDir="${catalina.base}/war-temp" > >>> deployDir="${catalina.base}/war-deploy" > >>> watchDir="${catalina.base}/war-listen" > >>> watchEnabled="true"/> > >>> > >>> > >>> The other nodes have the same element but with the > >>> watchEnabled > >>> attribute set to false on the / element. > >>> > >>> When all the nodes are running, I copy a war file into the master > >>> node > >>> CATALINA_HOME/war_listen, this is the output in the logs: > >>> > >>> 25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher > >>> check > >>> INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen > >>> 25-Jan-2006 12:35:18 > >>> org.apache.catalina.cluster.deploy.FarmWarDeployer > >>> fileModified > >>> INFO: Installing webapp[/testFarm] from > >>> /media/jm/cluster/tomcat1/war-deploy/testFarm.war > >>> 25-Jan-2006 12:35:18 > >>> org.apache.catalina.cluster.deploy.FarmWarDeployer remove > >>> INFO: Cluster wide remove of web app /testFarm > >>> > >>> It seems the war file is getting deployed but then it is removed > >>> from the > >>> whole cluster. The filesystem is left with the war file getting > >>> copied into > >>> CATALINA_HOME/war-deploy on the master node plus the other 3 nodes, > >>> however > >>> the webapp is not accessible. > >>> > >>> The webapp has the element as: > >>> http://java.sun.com/xml/ns/j2ee"; > >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > >>> > >>> Test Farm Webapp > >>> > >>> . > >>> > >>> Is there something im missing - perhaps it something in the webapp > >>> - although > >>> its just a hello world webapp with a single html file. > >>> > >>> Any ideas appreciated! > >>> > >>> Regards, > >>> Julie. > >>> > >>> > >>> > >>> - > >>> 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: FarmDeployer - removing webapp on deploy?
Please, set the deployDir to your webapps dir. Peter Am 26.01.2006 um 11:55 schrieb Julie McCabe: Hello Peter, My deploy dir is $CATALINA_HOME/war-deploy it is not the webapps directory. The temp, deploy and watch directories are all read/writeable. I added the logging in the conf dir but it did not produce any extra output - I dont think the logging was picked up. I then followed the documentation for logging on the tomcat web site but it dd not pick it up either - i put log properties in the common/classes dir Thanks, Julie. On Wednesday 25 Jan 2006 16:42, Peter Rossbach wrote: Is your deployDir the host appBase (webapps) directory? Check that tempDir,deployDir and watchDir are exists and read/writeable at all nodes. Configure debug logging at FarmWarDeployer package conf/logging.properties org.apache.catalina.cluster.deploy.level=FINE See what happens... Peter Am 25.01.2006 um 16:24 schrieb Julie McCabe: Hello, Environment: tomcat-5.5.7, java 1.5.0_03 I have set up a vertical cluster containing 4 nodes. I am attempting to create a master farm node, the element in the master node is: className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" managerClassName="org.apache.catalina.cluster.session.DeltaManager" expireSessionsOnShutdown="false" useDirtyFlag="true"> The other nodes have the same element but with the watchEnabled attribute set to false on the / element. When all the nodes are running, I copy a war file into the master node CATALINA_HOME/war_listen, this is the output in the logs: 25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher check INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen 25-Jan-2006 12:35:18 org.apache.catalina.cluster.deploy.FarmWarDeployer fileModified INFO: Installing webapp[/testFarm] from /media/jm/cluster/tomcat1/war-deploy/testFarm.war 25-Jan-2006 12:35:18 org.apache.catalina.cluster.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app /testFarm It seems the war file is getting deployed but then it is removed from the whole cluster. The filesystem is left with the war file getting copied into CATALINA_HOME/war-deploy on the master node plus the other 3 nodes, however the webapp is not accessible. The webapp has the element as: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Test Farm Webapp . Is there something im missing - perhaps it something in the webapp - although its just a hello world webapp with a single html file. Any ideas appreciated! Regards, Julie. - 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: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed
On Jan 26, 2006, at 4:28 AM, Davide Romanini wrote: Il giorno mer, 25/01/2006 alle 11.12 -0800, Wade Chandler ha scritto: Don't use shared libraries and you shouldn't have this problem. If all of the statics are in your WEB-INF directory then you won't have an issue with unloading classes and class loaders. It would be great if could be so simple. But it is not, trust me, my shared folder is empty, and the common/lib folder contains only jdbc drivers and javamail implementation (needed by Tomcat if you want to use JNDI mail sessions). All the libraries of the webapp are in WEB-INF/ lib folder. As I said in previous mail, I tried to reload the distribution version of Axis (just as is, without other libs) and it causes the problem. It seems that something occuring during AxisServlet startup (it looks for his configuration using a complex discovery process) causes some class of a parent classloader to hold a reference to WebappClassloader so it cannot be GC'ed when it's reloaded. Davide, If you're using Axis, you might be interested in two Axis issues that I uncovered. They both caused ClassLoader memory leaks within Geronimo. The problems are described here: http://issues.apache.org/jira/browse/AXIS-2232 http://issues.apache.org/jira/browse/AXIS-2278 The changes are committed in SVN. However, there hasn't been an official Axis release, since then. The following binary contains the updates and is the version delivered by Geronimo: http://cvs.apache.org/repository/axis/jars/axis-1.4-356167.jar --kevan Surely it's not a Tomcat problem anyway... Bye, Davide Romanini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed
On Thu, 26 Jan 2006, Davide Romanini wrote: | Il giorno mer, 25/01/2006 alle 11.12 -0800, Wade Chandler ha scritto: | | > Don't use shared libraries and you shouldn't have this | > problem. If all of the statics are in your WEB-INF | > directory then you won't have an issue with unloading | > classes and class loaders. | > | | It would be great if could be so simple. But it is not, trust me, my | shared folder is empty, and the common/lib folder contains only jdbc | drivers and javamail implementation (needed by Tomcat if you want to use | JNDI mail sessions). All the libraries of the webapp are in WEB-INF/lib | folder. As I said in previous mail, I tried to reload the distribution | version of Axis (just as is, without other libs) and it causes the | problem. It seems that something occuring during AxisServlet startup (it | looks for his configuration using a complex discovery process) causes | some class of a parent classloader to hold a reference to | WebappClassloader so it cannot be GC'ed when it's reloaded. But, try to reload the tomcat-docs webapp. That happens without problems. And as I mentioned, if I comment out pretty much the entire "startup" of my webapp, it can be reloaded just fine. In particular, I definately can't start WebMacro (which (tries to) read files through both the classloader and File and URL), nor read the Configuration (which uses JDOM, which uses SAX) and still have reload-functionality. This _really_ bugs me! | | Surely it's not a Tomcat problem anyway... That I really hope, but as of now I can't rule it out. I've tried with several Tomcat versions (4, 5, 5.5), all with the same result. But I'll give Jetty a try too..! However, all the objects that are lingering have some root going through some mbean-server and whatnot, and ends up in static fields of tomcat. Unless these instances also are held by "my" WebappClassLoader (which due to the names of the classes I tend to not believe; they seem so "rooty"), there is _something_ that in certain situations keeps some reference to some object of the webapp. But I'm not at the bottom of those objects yet. Remember that only _one single reference_ to _any_ object of the webapp will hold pretty much the _entire_ webapp from unloading: This is because each object holds a ref to its class, which again holds a ref to its classloader, which again holds refs to all classes loaded in the classloader, which again have static fields, which again probably holds a whole bunch of your actual objects. ThreadLocals as they are implemented in Java 1.4 and still, are apparently very dangerous for Servlet Containers, Tomcat included. ThreadLocals are implemented as follows: The Thread object contains a hashmap whose Entries have weak key and hard value. The key is the ThreadLocal instance, and the value is the actual referent (the object returned by threadLocal.get()). The ThreadLocal instance confers this map for finding its value for the current Thread. This can be done unsyncronized, since it's obviously singlethreaded (its a map within the Thread!). Thus, when a ThreadLocal instance goes out of scope, its key will be GCable, which due to the coding of ThreadLocal at some point later, hopefully, will release the value (it "scavenges" dead keys on subsequent sets (of any other TL instance)). Now, ThreadLocals instances are often declarder as a "static (final)", right? In situations where the ClassLoader is ditched, while the Threads are recycled, this _instantly_ creates an enourmous leak: The ThreadLocalMap instance within the Thread contains an Entry with a weak reference to the ThreadLocal static instance, and a hard reference to the value. The value has a hard reference to its ClassLoader. The ClassLoader have a hard reference to the Class that contains the ThreadLocal static instance - hence the key is still hard reachable, and thus the key won't be nulled and GC'ed - and thus again the Thread.ThreadLocalMap.Entry instance won't ever be scavenged, and the Thread will forever after contain a hard reference to the now-not-used ClassLoader. (- which as explained above holds all the WebApp's classes, which have static fields, which point to structures within your web application, and you're screwed). Check out "Tackline"'s blog entry, which is the source of this information (I've hopefully understood his analysis!) http://www.jroller.com/page/tackline?entry=fixing_threadlocal This fine page also mentions ThreadLocals vs. Tomcat, but fails to point out that this should be viewed as a flaw with ThreadLocals: http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 If you agree to this analysis, then vote for this bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6254531 ;-) Regards, Endre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT
Re: FarmDeployer - removing webapp on deploy?
Hello Peter, My deploy dir is $CATALINA_HOME/war-deploy it is not the webapps directory. The temp, deploy and watch directories are all read/writeable. I added the logging in the conf dir but it did not produce any extra output - I dont think the logging was picked up. I then followed the documentation for logging on the tomcat web site but it dd not pick it up either - i put log properties in the common/classes dir Thanks, Julie. On Wednesday 25 Jan 2006 16:42, Peter Rossbach wrote: > Is your deployDir the host appBase (webapps) directory? > Check that tempDir,deployDir and watchDir are exists > and read/writeable at all nodes. > > Configure debug logging at FarmWarDeployer package > conf/logging.properties > org.apache.catalina.cluster.deploy.level=FINE > > See what happens... > > Peter > > Am 25.01.2006 um 16:24 schrieb Julie McCabe: > > Hello, > > > > Environment: tomcat-5.5.7, java 1.5.0_03 > > > > I have set up a vertical cluster containing 4 nodes. I am > > attempting to > > create a master farm node, the element in the master node > > is: > > > > > > > managerClassName="org.apache.catalina.cluster.session.DeltaManager" > > expireSessionsOnShutdown="false" > > useDirtyFlag="true"> > > > > > > > className="org.apache.catalina.cluster.mcast.McastService" > > mcastAddr="228.0.0.4" > > mcastPort="45564" > > mcastFrequency="500" > > mcastDropTime="3000"/> > > > > > > > className="org.apache.catalina.cluster.tcp.ReplicationListener" > > tcpListenAddress="127.0.0.1" > > tcpListenPort="4000" > > tcpSelectorTimeout="100" > > tcpThreadCount="6"/> > > > > > className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" > > replicationMode="pooled"/> > > > > > className="org.apache.catalina.cluster.tcp.ReplicationValve" > >filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.* > > \.html;.*\.txt;"/> > > > > > className="org.apache.catalina.cluster.deploy.FarmWarDeployer" > > tempDir="${catalina.base}/war-temp" > > deployDir="${catalina.base}/war-deploy" > > watchDir="${catalina.base}/war-listen" > > watchEnabled="true"/> > > > > > > The other nodes have the same element but with the > > watchEnabled > > attribute set to false on the / element. > > > > When all the nodes are running, I copy a war file into the master node > > CATALINA_HOME/war_listen, this is the output in the logs: > > > > 25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher > > check > > INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen > > 25-Jan-2006 12:35:18 > > org.apache.catalina.cluster.deploy.FarmWarDeployer > > fileModified > > INFO: Installing webapp[/testFarm] from > > /media/jm/cluster/tomcat1/war-deploy/testFarm.war > > 25-Jan-2006 12:35:18 > > org.apache.catalina.cluster.deploy.FarmWarDeployer remove > > INFO: Cluster wide remove of web app /testFarm > > > > It seems the war file is getting deployed but then it is removed > > from the > > whole cluster. The filesystem is left with the war file getting > > copied into > > CATALINA_HOME/war-deploy on the master node plus the other 3 nodes, > > however > > the webapp is not accessible. > > > > The webapp has the element as: > > http://java.sun.com/xml/ns/j2ee"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > > > > Test Farm Webapp > > > > . > > > > Is there something im missing - perhaps it something in the webapp > > - although > > its just a hello world webapp with a single html file. > > > > Any ideas appreciated! > > > > Regards, > > Julie. > > > > > > - > > 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]
help to solve 'OutOfMemoryError'
hello I am running a java program which makes a HttpURLConnection randomly, using Tomcat 5. I use Asterisk-JAVA API. After the program runs for an hour, it returns a java.lang.OutOfMemoryError and the HttpURLConnection is not established, but again it returns to normal and the UrlConnection works. This occurs on a random basis. I use Netbeans IDE in Debian Linux. The netbeans.conf contains: -J -Xms32m -J -Xmx256m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none What changes do I need to make to avoid this OutOfMemoryError? How can i try to change the configuration of the servlet container's JVM? I am completely new to both tomcat and java.. and would be very grateful to get some ideas. Many thanks in advance Aparna - Do you Yahoo!? With a free 1 GB, there's more in store with Yahoo! Mail.
Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed
| > It's a known problem caused by a lot of different | > situations. It's sad | > that a lot of important applications suffer of this | > problem. I'm working | > with Axis, and just trying to reload the bundled | > webapp never release | > the old WebappClassloader. | > | > I think this is serious: hot deployment becomes | > totally useless and you | > have to restart tomcat each time you deploy a new | > version :-( | > | > Bye, | > Davide Romanini | | Don't use shared libraries and you shouldn't have this | problem. If all of the statics are in your WEB-INF | directory then you won't have an issue with unloading | classes and class loaders. That was a thought that popped into my head too at some point: it might be XML parsing? That it loads Tomcat's instance of xerces, and that this again ends up holding some reference to some piece of my data structures, which again holds the class, which again holds the WebappClassLoader? Or some stuff like that? - But I use Java 1.5? Btw, vote for this one: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6254531 (Read what the guy _actually_ points out, and then ignore the Sun-engineer's evaluation, and read the reply.) On a side note: It is annoying that JProfiler assumes that a static field is a "GC Root". YourKit is way better on this particular aspect, but I like the rest of JProfiler better! But it is even more annoying that the bleedin' SUN JVM and the JVMTI API even has a concept of "Other GC Root" - the guy that invented that JVMTI fieldname should have stopped for a moment and thought about "What can _possibly_ constitute "other" GC roots? I must be a sloppy coder, I should quit this job: Inventing a special type for my non-understanding of garbage collection is a clear sign of incompetence". And what about the guy that implemented the JVMTI interface in SUN's JVM: "ah lookey here, an "I can't bother to find the source of this root"-type root! I'll use that for pretty much anything that's in here, coz' I'm so fantastically lazy!". The problem is that most of the time, the WebappClassLoader that apparently is holding my entire universe and just won't let go, has "Other GC Root" as its GC Root. Now, THAT'S really helpful, thanks a lot!! Well, rather fed up with leaking java, Endre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed
Il giorno mer, 25/01/2006 alle 11.12 -0800, Wade Chandler ha scritto: > Don't use shared libraries and you shouldn't have this > problem. If all of the statics are in your WEB-INF > directory then you won't have an issue with unloading > classes and class loaders. > It would be great if could be so simple. But it is not, trust me, my shared folder is empty, and the common/lib folder contains only jdbc drivers and javamail implementation (needed by Tomcat if you want to use JNDI mail sessions). All the libraries of the webapp are in WEB-INF/lib folder. As I said in previous mail, I tried to reload the distribution version of Axis (just as is, without other libs) and it causes the problem. It seems that something occuring during AxisServlet startup (it looks for his configuration using a complex discovery process) causes some class of a parent classloader to hold a reference to WebappClassloader so it cannot be GC'ed when it's reloaded. Surely it's not a Tomcat problem anyway... Bye, Davide Romanini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]