RE: Java +GC question
From: André Warnier [mailto:a...@ice-sa.com] Subject: Java +GC question java version 1.6.0_26 Do we need to tell you to upgrade? to a Java expert eye, does the following GC trace look normal , or pathological, or in-between ? It's a little odd in that there are very few minor GCs occurring. This would imply that whatever objects the application creates are either quite large (and do not fit in the Eden space) or do not escape the methods that use them and are thus allocated on the stack rather than the heap. Since the full GCs are 15 minutes apart, take little time, and the heap usage isn't growing, I don't think there's anything to be concerned about. how does one interpret the leading timestamp ? seconds.milliseconds since JVM start ? Yes. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Java +GC question
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Java +GC question Whatever happened to the Never change a running system ? What? And not give people something to do? It's a little odd in that there are very few minor GCs occurring. This would imply that whatever objects the application creates are either quite large (and do not fit in the Eden space) or do not escape the methods that use them and are thus allocated on the stack rather than the heap. (I'll not even pretend to understand that) Large objects: Objects are normally allocated in a portion of the heap called Eden space, and are harvested from there to survivor space during a minor GC. However, if an object is deemed to be too large to fit in Eden space, it will be allocated directly out of survivor space and never be handled in a minor GC. Reference escape: If the JIT compiler can determine that the reference to a newly created object is not used outside of the scope of a method (does not escape), it generates code to allocate the object space on the stack of the method, not the heap. Without the heap allocation, no GC is needed to reclaim such allocations. Basically, my question was aimed at finding out if the way it was doing GC's implied that we could gain some performance by increasing the Heap, or re-allocating/distributing some parts of it. I think it's highly unlikely you could achieve any measurable improvement, and you run the real risk of making it much worse. Using a larger heap would reduce the frequency of the GCs, but since you're measuring 0.02 seconds every 15 minutes, you're well into the flattened tail of the curve already. Any known (built-in) way of changing this to be real date/time timestamps, or add such ? -XX:+PrintGCDateStamps - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Java +GC question
From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] Subject: Re: Java +GC question Whatever happened to the Never change a running system ? I usually hear it said like this, if it ain't broke, then don't fix it. :) There's always the Red Green version: If it ain't broke, you're not trying. (Readers not in North America will need to resort to You Tube.) We might be off-topic now. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: parallel deployment question
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: parallel deployment question When I parallel deploy demo##001.war, in my servlet, when I use: servletContext.getContextPath(); it prints: /demo Why doesn't it print /demo##001 ? Because the context path is the same for all versions - that's the whole point. If the context path were different, the *client* would have to know that to reach the new version. If I do: servletContext.getRealPath(getServletName()); it prints: C:\ApacheTomcat\apache-tomcat-7.0.42\webapps\demo##001\servlet-mapping-name The getRealPath() API is an abomination and should never be used. Some servlet deployments are on platforms without file systems, which is why it's allowed to return null. I wanted to grab the demo##001 name and stick in the corner of my web apps running in development, so users can see which version is deployed. Your webapp should have a build or version number included as part of your build mechanism. That number should not be associated with the deployment mechanism. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: parallel deployment question
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: parallel deployment question I guess I thought it would get the path name from the name of the .war file. Read the doc: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming deploying demo##001.war on Tomcat 6.0.x doesn't even deploy it. A single hash mark in a .war file name is replaced by a slash for the context path. The action of a double hash is undefined in Tomcat 6, as far as I can tell. I did find this article that talks about web module names being all lowercase ASCII characters. That's a guideline, not part of the spec. Lots of people use mixed-case context paths, which usually annoys end users, since the case in the request must match context path. So where in the Tomcat source code can I look at how this ## is being implemented? Start at org/apache/catalina/util/ContextName.java. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: parallel deployment question
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: parallel deployment question http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming If a version is specified then the context path remains unchanged (the path being demo) and both the **context name** and the base name have the string '##' appended to them followed by the version identifier I thought the context name would be demo##001 after reading this. Somewhat confusing choice of words in the doc. The phrase context name here does not refer to the getServletContextName() API. If you read the JavaDoc for that, you'll see that it refers only to an element in web.xml: Returns the name of this web application corresponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to Deploy an Update to War File
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: How to Deploy an Update to War File In conf/Catalina/localhost I can have xml files that don't match the names of any web app in the webapps directory, and these xml files are treated as web apps. Yes, you can do that, but only when the webapp file(s) are located outside of the Host appBase. I read it as xml files in conf/Catalina/localhost and not the context path of webapp1 in my webapps directory, because I don't specify the path param in my context.xml in /META-INF Remember that the path of a webapp is normally derived from the name of the webapp file/directory under appBase, or from the name of the .xml file under conf/Catalina/[host]. The only time a path attribute is meaningful is when there's a Context element in server.xml (a capability that has likely outlived its usefulness). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to Deploy an Update to War File
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: How to Deploy an Update to War File Can you describe this process a little more? http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment So, in other words, if I want to use parallel deployment, I create context.xml files in conf/Catalina/localhost with distinct names, but use the same value for the path? No - read the doc. I hear in the back of my head Chuck saying that we should not use the path element in the Context. You've got that right. The path attribute is usable _only_ when the Context element is in server.xml, where it shouldn't be. In all other cases, the path attribute is at best ignored, at worst causes multiple deployments. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat connection pool bleeding under heavy load
From: David Bullock [mailto:david.bull...@machaira.com.au] Subject: Re: Tomcat connection pool bleeding under heavy load In PooledConnection#borrow(int,String,String) when handling InterruptedException, the code there does: Thread.interrupted();//clear the flag, and bail out but if the comment is correct, then the code is wrong (should be Thread.isInterrupted()). No, Thread.interrupted() is a static method that checks if the _current_ thread has been interrupted. Calling Thread.isInterrupted() would be illegal, since that is an instance method, and is used primarily to determine if some other thread has been interrupted. Also, the isInterrupted() method does not clear the interrupted flag for the target thread, whereas Thread.interrupted() does clear it for the current thread. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: $CATALINA_HOME/conf/tomcat-users.xml - access deneid
From: ישראל מלאכי [mailto:alayc...@gmail.com] Subject: Fwd: $CATALINA_HOME/conf/tomcat-users.xml - access deneid My employer wants my to put a war file on tomcat server installed in by http://198.57.249.59:8080/ hostgator.com problem is that I can't get to the app manger since I don't have usernameand password. I know that I should edit the above file, I tried through putty but access to file is denied. what should I do? You'll need to contact HostGator support to find out how to get appropriate access to their servers. This has nothing to do with Tomcat itself. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] [Fwd: TomEE Professional Support]
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] [Fwd: TomEE Professional Support] I got one, but it went to spam. CRM114 FTW! Guess I'll have to plug mine back in... http://www.indelibleinc.com/kubrick/crm114/CRM114.jpg - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Fix your web application so it can cleanly un-deploy and re-deploy - how?
From: Dale Ogilvie [mailto:dale_ogil...@trimble.com] Subject: Fix your web application so it can cleanly un-deploy and re-deploy - how? As I recall undisposed thread locals were a common theme. Have you enabled this Listener? http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#ThreadLocal_Leak_Prevention_Listener_-_org.apache.catalina.core.ThreadLocalLeakPreventionListener I would so love it if Tomcat could just throw away the entire webapp memory footprint on undeploy... Last time I looked, Java didn't have a free() API... - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restrict the use of JDK classes Tomcat 7 or 6
From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Subject: Re: Restrict the use of JDK classes Tomcat 7 or 6 Do the mailing list rules state home work questions are in or out of scope? To quote from How To Ask Questions The Smart Way (http://www.catb.org/~esr/faqs/smart-questions.html), which is linked to from the Tomcat mailing lists page: Don't post homework questions - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restrict the use of JDK classes Tomcat 7 or 6
From: ANALIA DE PEDRO SANTAMARIA [mailto:100074...@alumnos.uc3m.es] Subject: Re: Restrict the use of JDK classes Tomcat 7 or 6 I understand it if you can't answer my questions. Your question was already answered by Aurélien: use a SecurityManager. http://tomcat.apache.org/tomcat-7.0-doc/security-manager-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: can't connect to manager application
From: Edoardo Panfili [mailto:edoa...@aspix.it] Subject: Re: can't connect to manager application seem that the solution is to add privileged=true at $tomcat/conf/context.xml... and the reoload command now works. You really, really, really must not do that. Adding privileged=true to conf/context.xml makes _all_ deployed webapps privileged. The Context element for the manager webapp already has privileged=true in it - unless you took it out. Note that if you're using a 3rd-party repackaged version of Tomcat, all bets are off. The repackagers frequently make a mess of things, such as the above. Best to use a Tomcat downloaded from tomcat.apache.org. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: can't connect to manager application
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: can't connect to manager application As Martin Gainty noted, it seems that there is quite a number of errors in how OP's web applications are deployed. All allowed attributes are documented in [1]. Martin G is not likely to ever be capable of such an analysis; it was Mark Eggers who did the extensive legwork. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: can't connect to manager application
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: can't connect to manager application And about Martin's remarks being right : I don't know why, but my fingers have this automatic reflex of hitting the delete button whenever my eyes see one of these posts. I guess that this time, it was really unjustified. Apologies thus. No, your initial reaction was correct: Martin G's response was mostly noise, as usual. It was Mark E's response that contained the line-by-line analysis of the log. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Getting error 403 forbidden while using HTTP PUT method
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Getting error 403 forbidden while using HTTP PUT method !-- security-constraint web-resource-collection web-resource-nameABC/web-resource-name url-pattern/api/mode/url-pattern http-methodDELETE/http-method http-methodPUT/http-method http-methodHEAD/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodGET/http-method http-methodPOST/http-method /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint -- !-- security-constraint web-resource-collection web-resource-nameABC/web-resource-name url-pattern/*/url-pattern http-methodPUT/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint Looks like the above is the problem: you have a constraint on the PUT method, but no other methods. What were you expecting? There's no such constraint indicated; all of the above is commented out. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Different handling of -Dfoo=bar between versions
From: Steve Arch (sarch) [mailto:sa...@cisco.com] Subject: Different handling of -Dfoo=bar between versions I've noticed the following disparity between using two different versions of Tomcat when setting system properties using -D. On the face of it, this is not related to Tomcat. If I pass in -Dfoo=bar into Tomcat Exactly how are you passing this to Tomcat? System.getProperty(foo) The System class is part of the JRE, not Tomcat - Tomcat itself has absolutely nothing to do with retrieval of system properties. Whatever mechanism you're using to create the system property may have changed (e.g., different versions of the JRE or the JSVC/procrun wrapper). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Different handling of -Dfoo=bar between versions
From: Steve Arch (sarch) [mailto:sa...@cisco.com] Subject: RE: Different handling of -Dfoo=bar between versions AWS's tools pass the values to tomcat. This is not an adequate description. Tomcat must be launched by some mechanism, such as the java executable, JSVC service wrapper, class loading from some already running Java application, etc. What's being used here? I supply a set of key:value pairs and AWS (ElasticBeanstalk) passes them to tomcat via the command line. Exactly what command line? Tomcat itself is just a set of class files, not an executable. Something has changed between version 24 and 37 in Tomcat when it parses the JVM options (-D). Again, Tomcat does not parse command line options and has absolutely nothing to do with the JRE-supplied System class. The launcher used to start Tomcat does parse the command line; Tomcat has no built-in launcher. Mikolaj's response says that the input was illegal anyway (quotes have to surround the whole string: -Dfoo=bar or -Dfoo=bar bar rather than -Dfoo=bar bar). As long as I know that -Dfoo=bar is illegal syntax It's not illegal (and Mikolaj never said it was), but it may not be what you want. When quotes come after the equals sign, they are part of the value; quotes surrounding the entire expression are stripped off by the shell when creating the argument list for the executable. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: SSL Configuration with in Tomcat
From: Shyam Kumar [mailto:shyamkuma...@ymail.com] Subject: Re: SSL Configuration with in Tomcat I moved it to my production server(Linux).But I configured it to use SSL port 8443, But when I try calling url from browser (https://www.cogbooks.com) You need to include the port you configured in the SSL Connector: https://www.cogbooks.com:8443 Connector port=18443 You stated 8443 above, but the config you supplied has something rather obviously different; which is it really? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: SSL Configuration with in Tomcat
From: Shyam Kumar [mailto:shyamkuma...@ymail.com] Subject: SSL Configuration with in Tomcat I am a beginner and I am using tomcat version 5.5.7 in windows 7 Os. Stop right there. That version is over eight years old, and Tomcat 5.5 hasn't been supported for quite some time. Move to Tomcat 7 before you do anything else. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Session does not get invalidated when sessionCookiePath is set to /
From: Stefan Haberl [mailto:birnbu...@gmail.com] Subject: Session does not get invalidated when sessionCookiePath is set to / I've a context.xml like so: Context sessionCookieDomain=acme.org sessionCookieName=acme useHttpOnly=true disableURLRewriting=true / The / terminates the Context element, so the rest of your .xml file is probably ignored... !-- disable persistent sessions -- Manager pathname= / Not sure what the Manager applies to, since it's not nested inside the Context. /Context Not semantically valid, since the Context element was already closed. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Keeping user roles in different realm than users
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Keeping user roles in different realm than users Any other solutions than writing an error-prone homegrown one that will allow to keep users in one realm, user roles in the other realm and still be able to use container-managed authentication with authorization. Tomcat does not ship with anything like this out of the box. There is the CombinedRealm, which might make the implementation somewhat easier. The OP would still need a second Realm implementation for the roles, but that could be another LDAP one. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems with Clustering / Session Replication
From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: Problems with Clustering / Session Replication Are you sure you don't have a firewall? Remember that a firewall could be on the server, the client, or anywhere in between. The OP should first see if a connection can be made from the same system Tomcat is running on. If that doesn't work, the server firewall is blocking it. If it does work, keep looking farther up the network. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems with Clustering / Session Replication
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Problems with Clustering / Session Replication While the above is true, OP originally said that everything was on localhost. Note the IP address reported by the OP's netstat: 192.168.1.243. That's decidedly not localhost and may be subject to firewall restrictions. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems with Clustering / Session Replication
From: Nicholas Violi [mailto:nvi...@globalgiving.org] Subject: Re: Problems with Clustering / Session Replication telnet connects fine... ??? Previously, you stated: telnet reports Connection refused. Which is it? Are you sure you don't have a firewall? Double checked that my mac's firewall is switched off and sudo ipfw list returns 65535 allow ip from any to any Good to get that out of the way. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Multi-URL Access 1 Webapp
From: Chris Arnold [mailto:carn...@electrichendrix.com] Subject: Multi-URL Access 1 Webapp Tomcat 7.0.3 i believe Not bloody likely - 7.0.3 was never released. If you really are running on 7.0.3, you need to upgrade ASAP. We have a web app that you access from http://domain.tld/share. What we want to do is have clients access the same web app only from http://share.domain.tld. The domain part of that URL will change per client. So, some will get to it like http://share.domain1.tld and some will get to it from http://share.domain2.tld. Can tomcat do this or should i take a different approach? Assuming you get the various names registered in the appropriate DNS boxes, yes. Read the Tomcat doc and wiki, especially these bits: http://tomcat.apache.org/tomcat-7.0-doc/config/host.html http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts You can also use a filter to forward requests to the desired URL: http://tuckey.org/urlrewrite/ - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Question about non-default keystore passwords
From: James H. H. Lampert [mailto:jam...@touchtonecorp.com] Subject: Question about non-default keystore passwords Is there a way to use a non-default password *without* having to put the password in server.xml, for anybody with command-line access to the system to see it? If you're allowing unprivileged users to have access to the Tomcat configuration files, you have much, much bigger problems than them stumbling across the keystore password. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 7.0.42 - tomcat-juli.jar not found on classpath
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: 7.0.42 - tomcat-juli.jar not found on classpath - From a freshly-downloaded apache-tomcat-7.0.42.zip file: I don't see service.bat in there. This appears to be a regression specific to 7.0.42; all previous 7.0.x.zip files included bin/service.bat. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 7.0.42 - tomcat-juli.jar not found on classpath
From: Mike Abernethy [mailto:maberne...@yahoo.com] Subject: Re: 7.0.42 - tomcat-juli.jar not found on classpath I downloaded this file again and it's in the bin directory. 64-bit Windows zip It's not present in the plain .zip file since the service wrapper programs aren't included in the plain one. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to start apache tomcat server
From: Sushil Prusty [mailto:sushil.pru...@gmail.com] Subject: Re: Unable to start apache tomcat server I am using https://localhost:8080. Use http, not https. If you want to use https, you will need to configure an additional Connector (usually on port 8443), including establishing a server certificate. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: High CPU usage - tomcat 7 and need solutions
From: Karuppu Samy [mailto:cskaru...@gmail.com] Subject: Re: High CPU usage - tomcat 7 and need solutions I need suggestion to limit the memory /CPU limit for tomcat. Is there any variable to setup to limit this? 1. Don't top post. 2. Your question pertains more to your operating system, not Tomcat. 3. You really need to profile your applications and fix whatever is in there that's eating up your CPU. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: context path ignored in conf/Catalina/localhost/*
From: D C [mailto:dc12...@gmail.com] Subject: context path ignored in conf/Catalina/localhost/* Tomcat 7.0.40 I am trying to define all of my contexts in conf/Catalina/localhost/*.xml. This seems to work fine, however I'm having an issue setting the path. myApp.xml Context path=/tracking This simply does not work. Nor should it. The only way this works is if i rename my war file to tracking.war. Which is exactly what you should do. Why is the path ignored? It's been illegal to put the path attribute in a Context element since at least 5.5. Read the doc: http://tomcat.apache.org/tomcat-7.0-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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Having trouble with common.loader
From: Michael-O [mailto:1983-01...@gmx.net] Subject: Re: Having trouble with common.loader IF you want to decouple libraries from your war, add them to your webapp's classpath, by configuring a VirtualWebappLoader , http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#VirtualWebappLoader_Implementation Very decent tip for this loader. Does the Javadoc warning This is not meant to be used for production. Its meant to ease development with IDE's without the need for fully republishing jars in WEB-INF/lib still count? No. That statement was removed from the doc: http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html and the Javadoc some time ago. Use the current information. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Upgrade to Tomcat 7 Issues
From: Seema Patel [mailto:seema...@hotmail.com] Subject: RE: Upgrade to Tomcat 7 Issues In my WEB-INF/lib I have the following (sorry the list is quite long): activation.jar In Tomcat7.0/lib directory I have (I have grouped them alphabetically so it doesn't make the list too long downwards, like the above list) activation.jar j2ee.jar You must never, never, never have the same class files in multiple locations in the class loader hierarchy (e.g., activation.jar and several others). Also, j2ee.jar must never be present anywhere in any Tomcat installation. You need to start over, not adding anything to Tomcat's lib directory, and try running your webapp. If it fails, determine why, and decide where the necessary .jar file should go (the answer is almost always WEB-INF/lib, except for JDBC drivers when Tomcat is handling the connection pooling). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Upgrade to Tomcat 7 Issues
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Upgrade to Tomcat 7 Issues I don't think activation is something provided by servlet containers. I don't see it in a stock Tomcat, for example. It's not provided by Tomcat, but that's not the relevant point. The problem was that it was placed in _both_ Tomcat's lib directory and the webapp's WEB-INF/lib directory - an absolute no-no. It can be in each webapp's WEB-INF/lib directory (since the relevant class loaders can't see each other), or possibly in Tomcat's lib directory (although it might cause other problems there, depending on how it's coded). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache tomcat 8.0.0-rc1; /manager connection ciphers; NPE
From: jieryn [mailto:jie...@gmail.com] Subject: Re: apache tomcat 8.0.0-rc1; /manager connection ciphers; NPE I'll answer more completely in the other no-web.xml NPE thread, but quickly: there's no actual requirement for web.xml Sorry, that's just wrong. There is no requirement for an individual webapp to have a WEB-INF/web.xml, but if you want to run Tomcat with the required servlet spec capabilities, you must leave Tomcat's conf/web.xml in place. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache tomcat 8.0.0-rc1; /manager 404; NPE
From: jieryn [mailto:jie...@gmail.com] Subject: Re: apache tomcat 8.0.0-rc1; /manager 404; NPE so what is the point of keeping the global conf/web.xml.. To allow Tomcat to work. If we changed the name to conf/do_not_delete.xml, would that satisfy you? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 8.0.0-RC1 release vote started
From: Michael-O [mailto:1983-01...@gmx.net] Subject: Re: Apache Tomcat 8.0.0-RC1 release vote started According to Apache's JIRA DBCP2 is still in the works whereas Tomcat JDBC Pool already works quite well. If so, I would favor the first option and make Tomcat JDBC Pool the default. Your original message implied that the Tomcat JDBC pool was the relic you wanted to get rid of: Why if we do have the wonderful Tomcat JDBC Pool? Can't we get rid of that relic? Since the most recent noun in the wording before that relic was Tomcat JDBC Pool, I certainly interpreted relic as a reference to Filip's creation, not the original DBCP - and I suspect Mark T did as well. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Help about my problem
From: Mehdi Yousefi [mailto:mmeh...@gmail.com] Subject: Help about my problem i have use Tom-Cat ver 6.0.10 It's Tomcat, not Tom-Cat. Version 6.0.10 is over six years old and should not be used by anyone these days. Doing so is irresponsible, given the number of bug fixes and security issues corrected since then. my problem is when i try to connect to web server on localhost or network computers browser status is changing to connecting to ... but nothing hppens after long time Since you've provided no real information about your configuration, JVM version, platform you're running on, or log data, one can only speculate what the problem might be. The symptoms are typical of either using the wrong port number on the URL or a firewall blocking the port, but the actual cause might be something completely different. i attached the log file after start in PDF The list does not allow most attachments, especially ones that are easily infected by viruses. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for xxx
From: Seema Patel [mailto:seema...@hotmail.com] Subject: java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for xxx I am not sure if this is the right List to post this on This is the correct list, but... jcifs.http.NtlmHttpFilter Not supported: http://jcifs.samba.org/src/docs/ntlmhttpauth.html We are running Tomcat 5.5.29. Not supported. java version 1.5.0_22 Not supported. You really, really need to upgrade your environment. Using unsupported versions of the JVM and Tomcat leaves you open to numerous attacks and other bugs that will never be addressed in those versions. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for xxx
From: Seema Patel [mailto:seema...@hotmail.com] Subject: RE: java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for xxx When upgrading Tomcat from version 5.5 to 7, would I need to upgrade to version 6 first and then to 7 or can I go straight from 5.5 to 7? Do it in one step - there's no point in doing it twice. The migration guide is here: http://tomcat.apache.org/migration.html It doesn't specifically cover going from 5.5 to 7.0, so read all the sections before proceeding. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Authentication from a REST service
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Authentication from a REST service Sorry Chris, I'm not sure what I'm looking for here. Can you elaborate? Don't top-post; it makes the conversation impossible to follow. Step 1: read the security section of the Servlet spec. Step 2: read the Tomcat doc Chris pointed out to you. Step 3: look at the WEB-INF/web.xml settings in the relevant examples that come with Tomcat, including the manager and host-manager webapps. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: context problem
From: Edward W. Rouse [mailto:ero...@comsquared.com] Subject: context problem IDWMClassLoader extends WebappClassLoader. I have been reading to docs to try and figure out how to get both the normal webapp base directories and the outside the base directories to be found. I suspect you could do away with your IDWMClassLoader and simply use the VirtualWebappLoader that's packaged with Tomcat. http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#VirtualWebappLoader_Implementation - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: IP based access
From: Prakash, Shreyas [mailto:shreyas_prak...@gallup.com] Subject: Reg: IP based access Is it possible to restrict access/filter based on the IP address of the end user on a Servlet's mapping URL? If so, how? Please explain. I am aware of the fact that this can be achieved in Tomcat 7. However, I am interested to know how this could be achieved in Tomcat 6. Do you mean this? http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_Address_Filter If you want more flexibility, including automatic selection by URL pattern, look at this: http://tuckey.org/urlrewrite/ - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Cannot cleanly undeploy a web application
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Cannot cleanly undeploy a web application What probably happens here, is that one level below the InputStream which holds the filehandle in Java, is some native file object which has the file open. The InputStream object is discarded at tbe Java level, but is only really destroyed at the next GC. That sounds quite feasible. The real error is that whoever owned the InputStream failed to close it, and simply removed all references to it, making it unreachable. The next GC did the close() as part of its cleanup work. The fix would be to find the InputStream and explicitly close it. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Query Response time for tomcat requests
From: Harsimranjit singh Kler [mailto:simran...@gmail.com] Subject: Query Response time for tomcat requests I am using Apache tomcat 6.0.35 version Is http://version.is/ there any log which specify Query response time for each request on tomcat.I mean total time taken by tomcat to process request? Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve Note the pattern code options. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7.0.27 graceful shutdown fails
From: Prakash P [mailto:prakash@gmail.com] Subject: Tomcat 7.0.27 graceful shutdown fails When I stop the tomcat by calling the shutdown.sh script or sending SIGTERM signal to the java process it's throwing the following exception and the shutdown get hung. And a thread dump shows? http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F You might also want to provide more information about your environment, such as JVM version, platform, configuration, etc. Trying a bit newer version of Tomcat wouldn't hurt, either. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Moving Tomcat to work externally.
From: john Matlock [mailto:johndmatl...@gmail.com] Subject: Re: Moving Tomcat to work externally. Remove the ROOT directory from Tomcat's webapps directory, replacing it with your webapp renamed to ROOT.war (or, if it's already an expanded .war file, put it in the ROOT directory under webapps). Do I understand that you are telling me to put the whole web application into the webapps/ROOT directory? That's what the ROOT webapp is for - it's the default webapp. If the application is packaged as a .war file, just copy it to webapps/ROOT.war, and delete the existing ROOT directory. That's a couple of hundred pages and several sub-directories just for the main application. Why is that relevant? And I have to move another half dozen applications to Tomcat as well. If your applications are organized properly, that is each in their own subdirectory under a common directory, with nothing but the webapps under the common directory, then just change the appBase attribute in the Host element to point there. Your default webapp must still be named ROOT (case sensitive). Further these are almost all dynamic pages, and I may be incorrect, but I've read that .war files can only contain static web pages. You're definitely reading garbage somewhere. If that were the case, there would be no reason to have anything other than a standard web server, such as httpd. A .war file will normally contain a collection of servlets, JSPs, static pages, configuration files, and any other resources needed by the webapp. These are all in ColdFusion. How a .war file or webapp was created is also not relevant, once it exists. Is my understanding incorrect, and somehow this can connect to Railo to handle the database interaction? I have no idea about Railo, but Mark E did a pretty good job of explaining how to make it work. What URL did you try to use? www.books-on-line.com That's not a complete URL, since you're missing the scheme (usually http). Assuming you are using http (not https), you'll be sending a request for the default webapp's welcome page to port 80 at whatever IP address the client machine evaluates www.books-on-line.com as. Verify that the client can resolve www.books-on-line.com into the IP address you expect. Since you have nothing after the domain name, you must have a ROOT webapp deployed in order to get a response. What port is specified in server.xml? 80 -- localhost:80 works, localhost:8080 doesn't. Ok, that's good. Is there a firewall blocking that port? There's a hole in the firewall to let page requests through to the on-line server. Register the DNS name for your server with your DNS providers. This site is about 17 years old with several million home page hits. I think it is registered. But it sounds like you're expecting requests to magically appear at the new server when the old one is still running. If that's not the case, you need to tell us how they're differentiated. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Application won't start
From: Thomas Edison [mailto:justdoit.thomas.edi...@gmail.com] Subject: Application won't start *Is there a way I can check the log to see what went wrong?* I checked the log file in CATALINA_BASE, but it didn't tell much. There should be several log files in Tomcat's logs directory; you'll need to look at all of them. Jul 11, 2013 9:58:00 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Jul 11, 2013 9:58:00 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/lipstick] startup failed due to previous errors Are you sure there isn't something earlier in the logs? The Grails doc mentions that by default it writes to the Tomcat directory it's installed in (which is extremely bad behavior), so make sure the userid you're running Tomcat with has permissions to write to that directory. (However, do not ever, ever run Tomcat as root.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Collision on port 8005 -- what to do about it?
From: James H. H. Lampert [mailto:jam...@touchtonecorp.com] Subject: Re: Collision on port 8005 -- what to do about it? We ended up changing the port number. But do we have to change it anywhere else, for shutdown to work properly? No, the startup and shutdown scripts both use the server.xml file to figure out what to do. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Moving Tomcat to work externally.
From: john Matlock [mailto:johndmatl...@gmail.com] Subject: Moving Tomcat to work externally. Following instructions found in various places I added the following to the server.xml file and restarted Tomcat: If you followed something that said to put a Context element in server.xml, you need to stop going to those places and read the real Tomcat doc. users@tomcat.apache.org The above has no business being anywhere in a config file. Host name=books-on-line.com appBase=webapps Context path' docBase=C:\inetpub\wwwroot\ / Aliaswww.books-on-line.org/Alias Aliaswww.books-on-line.net/Alias /Host Take out all of the above; none of it is needed or desirable. Remove the ROOT directory from Tomcat's webapps directory, replacing it with your webapp renamed to ROOT.war (or, if it's already an expanded .war file, put it in the ROOT directory under webapps). Chrome, Firefox and even tried IE from another machine -- all say they can't connect. What URL did you try to use? Where is the other machine located relative to the one Tomcat is running on? What port is specified in server.xml? Is there a firewall blocking that port? Be specific when reporting problems. Tomcat version: Whatever comes with Railo 4 If you don't know what it is, remove it, and install a real one from tomcat.apache.org; otherwise, you're just shooting in the dark. Is there something else I'm supposed to do? Register the DNS name for your server with your DNS providers. Did I do something stupid? Not terribly, other than not reading the real Tomcat doc before making changes. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to handle CONNECT ... HTTP 1.1 400 in localhost_access_log
From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] Subject: Re: How to handle CONNECT ... HTTP 1.1 400 in localhost_access_log why would the same IP address be hitting my server when 400 is the response? and they will continue attempting these CONNECT... requests until they get a 404 or what? Because they're trying to break in. Any response indicates there's something to poke around in. The 'HTTP Forbidden error' returned by RemoteAddrValve would seem to fuel future/continual attempts as well as error 400. right? True, which is why it's best just to have a firewall or the TCP/IP stack completely ignore the traffic, and not send anything back. By the time the request gets to Tomcat, the TCP connection is established, so the antagonist knows there's something there. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java.lang.NoClassDefFoundError
From: Thomas Edison [mailto:justdoit.thomas.edi...@gmail.com] Subject: java.lang.NoClassDefFoundError *This is what I see when I start the webhdfs service:* Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar Whatever script you're using to start Tomcat has a serious error in it: the Using CLASSPATH message should include tomcat-juli.jar in the same directory as bootstrap.jar. Without that, Tomcat cannot start. *What I believe:* Tomcat didn't load the jar file correctly. No; the startup script didn't set the command line parameters properly, so the JVM could not find the logging classes. I also copied the tomcat-juli.jar file to the following location and restart the service, but it still doesn't work. A very, very wrong thing to do. The tomcat-juli.jar must only be in Tomcat's bin directory; do not attempt to move it or copy it. Fix the startup script to build the command line properly. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to handle CONNECT ... HTTP 1.1 400 in localhost_access_log
From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] Subject: How to handle CONNECT ... HTTP 1.1 400 in localhost_access_log 183.60.48.25 - - [08/Jul/2013:15:15:26 -0400] CONNECT tcpconn2.tencent.com:443 HTTP/1.1 400 - Any advise on how to handle these requests (if necessary) and/or information about these type of 'CONNECT ...' requests would be appreciated. Thanks. It's from somewhere in China (who'da thunk it?); you can always black list it with the RemoteAddrValve, but it will likely pop up from somewhere else. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7.0.27 on Mac OSX Lion -- Is it Possible to use Tomcat Parallel Deployment when the Context Name is Different than the WAR Name
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Tomcat 7.0.27 on Mac OSX Lion -- Is it Possible to use Tomcat Parallel Deployment when the Context Name is Different than the WAR Name Assuming the file above is called website1##001.xml then you should be able to add website1##002.xml with the following content: Context reloadable=true crossContext=true sessionCookiePath=/ docBase=/Users/jeremy/tomcat/manualDeploy/myapp-v2 path=/website1/Context Except the path attribute is not allowed here, since it is derived from the name of the .xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7.0.27 on Mac OSX Lion -- Is it Possible to use Tomcat Parallel Deployment when the Context Name is Different than the WAR Name
From: Majors, Jeremy [mailto:jmaj...@tribune.com] Subject: Re: Tomcat 7.0.27 on Mac OSX Lion -- Is it Possible to use Tomcat Parallel Deployment when the Context Name is Different than the WAR Name It appears to be working after I added the information provided by Mark (even with the path attribute specified). Maybe it is just ignoring that value. It is currently being ignored. At least some of us would argue that it is cause for rejection of the Context element, but it's not implemented that way yet. Its presence is, at best, confusing, since someone could easily think it might be having some effect. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to start running Tomcat startup script
From: Sunil Dath [mailto:sunild...@gmail.com] Subject: Unable to start running Tomcat startup script set JAVA_HOME=%ProgramFiles%\Java\jdk1.7.0_25 set JRE_HOME=%ProgramFiles%\Java\jre7 In general, you should set just one or the other of the above, not both. exit /b 0 The exit command isn't necessary, but shouldn't hurt. C:\apache-tomcat-7.0.41\binstartup Using CATALINA_BASE: C:\apache-tomcat-7.0.41 Using CATALINA_HOME: C:\apache-tomcat-7.0.41 Using CATALINA_TMPDIR: C:\apache-tomcat-7.0.41\temp Using JRE_HOME:C:\Program Files\Java\jre7 Using CLASSPATH: C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar So the startup runs without error? C:\apache-tomcat-7.0.41\binshutdown Using CATALINA_BASE: C:\apache-tomcat-7.0.41 Using CATALINA_HOME: C:\apache-tomcat-7.0.41 Using CATALINA_TMPDIR: C:\apache-tomcat-7.0.41\temp Using JRE_HOME:C:\Program Files\Java\jre7 Using CLASSPATH: C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar Exception in thread main java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory I just downloaded 7.0.41 from the same site you used, and it starts up and shuts down without problem, using the same JDK you have. I can't think of any reason why startup.bat would run, but shutdown.bat wouldn't. If both are failing, make sure the JVM installed in your jre7 directory is what you expect; try: %ProgramFiles%\Java\jre7\java -version Try removing the excess lines from setenv.bat and see what happens. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7 - Getting tld scan error when i compile jsp using Ant task.
From: Manikandan [mailto:manikanda...@gmail.com] Subject: Tomcat 7 - Getting tld scan error when i compile jsp using Ant task. Got the below error It's not an error; note the use of INFO in the message. Can some one throw lights to resolve this issue. It's simply providing information on how you can make the compilation process more efficient. Add the jars that aren't pertinent to the exclude list in the Ant task. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Local VisualVM connection to Tomcat
From: honyk [mailto:j.tosov...@email.cz] Subject: Local VisualVM connection to Tomcat It is not needed if you are going to monitor it locally, using the same user that Tomcat runs with. The key part of the above is same user. But there is no further description for that simpler (local) method. If it is obvious, sorry, but I am lost here ;-) Usually, all you have to do is start jvisualvm.exe, and it will automatically find the all the Java processes currently running and show them in the left pane. Unfortunately, on Windows, this doesn't always work when the one you're interested in is a service, even when that service is running under the same account as jvisualvm. Whether or not it works seems to depend on the Windows version, applied patches, how much it's locked down, and who knows what else - another Microsoft mystery. If you can run Tomcat from the startup.bat script, using VisualVM should be fine, and it may work with Tomcat as a service. You do need to install the JConsole add-ins for VisualVM, or just use JConsole instead (all of the above comments relating to Windows service issues still apply). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Local VisualVM connection to Tomcat
From: honyk [mailto:j.tosov...@email.cz] Subject: RE: Local VisualVM connection to Tomcat Now I've found this interesting article: https://blogs.oracle.com/nbprofiler/entry/monitoring_java_processes_running_as Note that the article is over four years old. One of its key steps doesn't work with current versions of Windows: Make sure the service is configured to run under Local System account with 'Allow service to interact with desktop' option enabled. The possibility of services interacting with the desktop disappeared some time ago. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat deployment webapps and the whole stew
From: Narahari 'n' Savitha [mailto:savith...@gmail.com] Subject: Re: Tomcat deployment webapps and the whole stew 22:18:34,427 ERROR [ConfigServlet] com.adp.rev.config.ConfigServlet.init(): Error trying to read file [null]. Exception = [java.lang.NullPointerException] java.lang.NullPointerException at java.io.FileInputStream.init(FileInputStream.java:116) at java.io.FileInputStream.init(FileInputStream.java:79) at com.alp.rev.config.ConfigServlet.init(ConfigServlet.java:59) It is trying to find the faces-config.xml file which does not seem to be found. (yes it is a part of the war file and exists under WEB-INF) Your servlet is making the invalid assumption that its data is accessible through the file system, which is explicitly not allowed by the servlet spec. It should be using ServletContext.getResourceAsStream() rather than java.io. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Strange tomcat error and running out of file handles
From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: Strange tomcat error and running out of file handles SEVERE: Unable to process request in NioReceiver java.lang.ThreadDeath at java.lang.Thread.stop(Thread.java:758) at net.bull.javamelody.Action.stopThread(Action.java:388) Looks like your application is calling Thread.stop(). In case the OP is unaware, _any_ use of Thread.stop() is a serious mistake. The Javadoc description warns against its usage, but the warning is nowhere near strong enough: stop() Deprecated. This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Http.noHttpResponseException
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Http.noHttpResponseException Manuel LeNormand wrote: On load testinf for my Solr cloud servers on tomcat 7 i get after a while an exception caused by org.apache.http.noHttpResponseException: the target server failed to respond. Is this a tomcqt timeout error? Shiuld i raise the connector timeout in the server.xml or the session timeout in the web.xml session config. Maybe provide full Tomcat and JVM versions, and a full error trace, to help people answer your question faster ? Note that the class the OP is complaining about is not part of nor referenced by Tomcat, so it is highly unlikely any Tomcat configuration will affect this behavior. Of course, given the OP's less-than-lucid description, it's impossible to really know what the issue is. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: RE: Class cast exception when starting tomcat 7.0.1 Who says I was using a 3 year old unreleased level? Your subject line. I tried an easier migration - Tomcat 6.0.18 to 7.0.10. The logic of that completely escapes me. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: RE: Class cast exception when starting tomcat 7.0.1 Just saying, I wasn't using a 3 year unreleased version. Maybe a 3 year version, yes. Here's my original email: I'm getting a class cast exception when starting up tomcat 7.0.1. I've migrated from 6.0.18 to 7.0.1. I got the same error when migrating directly to 7.0.4. The error is: Exactly. You referenced only 7.0.1 (never released) and 7.0.4, which never made it out of beta. You never told us that you meant 7.0.10 and 7.0.41 until today. We can't read your mind, only what you actually write. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: RE: Class cast exception when starting tomcat 7.0.1 In the archives I thought the only unreleased versions would be specified beta. Please let me know if this is not the case. No, the description of alpha, beta, and stable as the terms apply to Tomcat releases is given here: http://tomcat.apache.org/whichversion.html 7.0.1 never even made it to the alpha stage, and therefore didn't get into the archives. That's often true for early versions of a particular branch, and occasionally happens with later ones when an oops is discovered during testing. (You'll notice that there is no 7.0.36 in the archives.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Class cast exception when starting tomcat 7.0.1 I'll admit it's not clear from the version number which versions are beta, released, etc. You have to look at the ChangeLog: It's easier to look in the archives if all you want to know is the status of each released version: http://archive.apache.org/dist/tomcat/tomcat-7/ - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: forward request by changing the port in request url
From: Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) [mailto:anigo...@cisco.com] Subject: forward request by changing the port in request url i have application abc.war deployed in webapps_new service which is running on port 8081. This application is not there in webapps. You should install at least a ROOT application for that service/host. i want if any request coming on port 8080 for application abc, it is forwarded to port 8081.(same for ssl port 8443-8444) Is there any way to do the same. Once you have a ROOT webapp, you can deploy the standard URL rewrite filter therein to send the request anywhere you want: http://tuckey.org/urlrewrite/ - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: forward request by changing the port in request url
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: forward request by changing the port in request url Once you have a ROOT webapp, you can deploy the standard URL rewrite filter therein to send the request anywhere you want: http://tuckey.org/urlrewrite/ I don't think that can be used for proxying, can it? No, not proxying, but I didn't read anything into the OP's requirements that it had to be. I read the OP as saying there were two separate services, so it's not a simple forward or redirect. Redirect works as long as the filter changes the port number to the desired one. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: RE: Class cast exception when starting tomcat 7.0.1 I had catalina.jar in WEB-INF/lib. Very, very bad move. It's needed because we have an implementation of Realm to store an encrypted tomcat password users enter in the webapp. Your custom implementation of Realm should be in Tomcat's lib directory, not the webapp's. See: http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#What_is_a_Realm? Such a Realm should not be tied into the operation of any webapp, other than configuring the webapp to use it. If I remove it and add the catalina.jar from tomcat_home/lib to the classpath Not sure what you mean by adding it to the classpath; please explain. I have to change the signature from org.apache.catalina.realm.RealmBase.Digest(String, String) to org.apache.catalina.realm.RealmBase.Digest(String, String, String). That's because internal Tomcat APIs often change between levels. You certainly cannot count on using an older version of Realm with a newer Tomcat (or vice versa). Should I not be writing code that needs classes from catalina.jar? It would certainly be desirable not to be dependent on internal Tomcat classes. Why do you think a Realm should be storing a password (encrypted or not) anywhere? A Realm would normally be reading a password from some controlled storage, not writing to it. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: RE: Class cast exception when starting tomcat 7.0.1 Problem was solved by removing an old catalina.jar for WEB-INF/lib. The fact that you had a Tomcat-supplied jar in WEB-INF/lib is even scarier than using a three-year-old unreleased level. Tomcat-supplied jars must *NEVER* be placed anywhere other than in Tomcat's lib directory. Sounds like you need to do a comprehensive audit of your webapp development and deployment process. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Illegal access: this web application instance has been stopped already and NoClassDefFoundError
From: ruxing bao [mailto:brxonl...@hotmail.com] Subject: RE: Illegal access: this web application instance has been stopped already and NoClassDefFoundError Zookeeper jar had been under CLASSPATH. Do not ever use the CLASSPATH environment variable. In a Tomcat environment, it is properly ignored; in other environments, it can only create confusion. Read the Tomcat doc on classloading and decide in which of the standard locations you should put the Zookeper jar. It would normally be placed in the webapp's WEB-INF/lib directory. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: SSL Issue- Support required.
From: B S, Veena [mailto:veena@hp.com] Subject: SSL Issue- Support required. Tomcat version: 6.0 The SSL configuration is done as per the standard SSL set up link http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html . If you're using Tomcat 6, you have no reason to look at Tomcat 5.5 documentation. Use the proper doc for the level you're running on, and make sure you follow either the APR or JSSE versions, depending on whether or not you're using APR. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: undefined reference to `TLSv1_1_client_method
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undefined reference to `TLSv1_1_client_method by launching this command: ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=all --with-included-apr --with-ssl=/opt/apache-tomcat-7.0.40/bin/tomcat-native-1.1.27-src/jni/native/srclib/openssl-1.0.1e --enable-ssl --enable-v4-mapped I think you've got the wrong mailing list: this list is for Apache Tomcat, a Java web application server. You appear to be building the Apache web server (a different product). The list you want can be found here: https://httpd.apache.org/lists.html#http-users I think the confusion is that the OP is trying to build httpd using the version of OpenSSL that comes with Tomcat - which seems a bit backwards, at the very least. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Class cast exception when starting tomcat 7.0.1
From: Jane Muse [mailto:jm...@rocketsoftware.com] Subject: Class cast exception when starting tomcat 7.0.1 I'm getting a class cast exception when starting up tomcat 7.0.1 You can't be serious. That version was never released, and would be almost three years old if it had been. Use the current version: 7.0.41. Do a fresh download and clean install, verify that Tomcat is working, then add your webapps one by one, insuring that each one operates properly before trying the next. Do not directly copy any configuration from previous versions of Tomcat to the new one; modify the conf/*.xml files with whatever you need for your installation. Also make sure you do not have the same classes in tomcat's lib directory and the webapp's WEB-INF/lib or WEB-INF/classes directories. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: OOME issue in Tomcat 6.0.18(with SSL)
From: Chirag Dewan [mailto:chirag.dewa...@yahoo.in] Subject: OOME issue in Tomcat 6.0.18(with SSL) I am using Embedded Tomcat 6.0.18. Which is nearly five years old. Many, many fixes (including serious security-related ones) have gone in since that version was released; you should see if the problem still exists on the current version of Tomcat 6 or 7. What JVM version are you using, and what platform are you running on? (Be precise.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat: one user per application
From: Outlou, Youness [mailto:youness.out...@cgi.com] Subject: RE: Tomcat: one user per application Can you give me the estimated date of end of support for TomCat 6 and 7. Can you please not hijack threads and learn how to spell Tomcat? Don't simply reply to any random message with a completely unrelated topic. Start a brand new message thread when you have something different to discuss. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat and PostgreeSQL
From: Hector Del Mestre [mailto:hectordelmes...@gmail.com] Subject: Tomcat and PostgreeSQL The application was done with AppFuse architecture originally utlizando MySQL, but issues like licensing and client wants to use PostgreSQL. And that is where I'm stuck, because Tomcat (or rather the Java VM) began comsumir large amount of memory (I get 1.5 GB of RAM) when using the application and there comes a time when it is hung and not answers, and this is the only application deployed on the server. You'll need to examine the heap and try to determine what the objects are that are consuming so much space. The jhat tool that comes with a Sun/Oracle JDK is useful for this: http://docs.oracle.com/javase/6/docs/technotes/tools/share/jhat.html There are also numerous profilers that will help with heap analysis; YourKit is a favorite, but it's not free. Google will help you find the free ones besides jhat. Tomcat need any special configuration to use PostgreSQL? It shouldn't. Team Summary (Virtualized with VMWare): S.O.: OpenSUSE 12.3 PostgreSQL 9.2 Apache Tomcat: 7.0.39 RAM: 4 GB Processor: 1 with two (2) cores. Thanks for all that, but what you didn't tell us was the JVM version. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to get SSL connection information from Apache HTTPD over AJP?
From: Omari Stephens [mailto:x...@google.com] Subject: Re: How to get SSL connection information from Apache HTTPD over AJP? [re-adding mailing list] Martin: There's a reason everyone ignores Martin Gainty's postings: they are nearly always irrelevant, or worse. Consequently, he's taken to responding to postings off-list, which is counterproductive and against the rules of the mailing list. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 and Windows Service
From: Urkens Jean-Pierre [mailto:jean-pierre.urk...@devoteam.com] Subject: RE: Tomcat 6 and Windows Service Try creating a file $TOMCAT_HOME/bin/setenv.bat and include following line in it: The .bat files are not used when running Tomcat as a service, so the above is pointless. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 and Windows Service
From: walter.heesterm...@toyota-europe.com [mailto:walter.heesterm...@toyota-europe.com] Subject: RE: Tomcat 6 and Windows Service I can set the following Java options -Dcom.sun.management.jmxremote.port=10150 The stop using shudown class is org.apache.catalina.startup.Bootstrap with argument stop, stays hanging because the java process to stop the service tries to connect port 10150; Initiating a stop creates another process which uses all of the options specified, thus creating the port conflict you're seeing. If you configure the ports using the JMX listener, only the server process will use them. http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener You can also stop Tomcat by sending the process an appropriate signal, or running the shutdown.bat script (even when Tomcat is running as a service). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 and Windows Service
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Tomcat 6 and Windows Service You are missing one line from your configuration. At the top you need: -Dcom.sun.management.jmxremote That hasn't been needed for many years (if ever). Setting any of the com.sun.management.jmxremote.* properties enables JMX, at least on Sun/Oracle/OpenJDK JVMs. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: WebappClassLoaders pinned in memory by java.security.ProtectionDomain objects
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: WebappClassLoaders pinned in memory by java.security.ProtectionDomain objects Using MySQL Connector/J 5.1.24 (important later) Where is the JDBC jar located? Is the observed behavior different if it's in tomcat/lib versus the webapp's WEB-INF/lib? I'm not sure what that Thread's current context class loader is (any idea how to find out? Browsing the object's members isn't leading me anywhere) Thread.getContextClassLoader() will tell you, if you can get into a debugger that will evaluate it for you. Can't seem to find an MBean attribute for it, unfortunately. still others have the JVM's application ClassLoader (the one once-removed from boot, Chuck ;). That would more properly be termed the system class loader. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Is there a way to make manager applications be first ones loaded?
From: Nick Williams [mailto:nicho...@nicholaswilliams.net] Subject: Is there a way to make manager applications be first ones loaded? The FileNotFoundExceptions in our Ant build happen when the Ant task successfully contacts Tomcat but Tomcat returns a 404 for the manager because that application hasn't started yet. That's unpleasant. Why not have your Ant task contact the manager app, and only proceed when a positive response is received? So, is there a way to make the manager application or applications always be the first ones loaded? By spec requirement, no. You can play games with autoDeploy and deployOnStartup to force the manager to be the only one loaded automatically, and then have your startup script load the others, but that can get messy. You might want to experiment with the startStopThreads attribute of the Host element to allow applications to be deployed in parallel rather than sequentially. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: NPE in coyote InternalNioOutputBuffer
From: Peter Cipov [mailto:pci...@kerio.com] Subject: NPE in coyote InternalNioOutputBuffer Did I miss some curtial lesson about flushing async responses ? By the way that NPE should never occur - Is it a BUG ? I am using Tomcat 7.0.28 (current in debian 7.0 Wheezy) That level is almost one year old, and numerous fixes have gone in since then related to handling async requests and responses (check the changelog for details). You need to install the current Tomcat (7.0.40) and see if the issue has been addressed. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Doubt about Qmail
From: Gabriel Huerta Araujo [mailto:huert...@hildebrando.com] Subject: Doubt about Qmail I received a message indicating that We've noticed that it's been a week since you read your Qmail messages. Your colleagues might be confused and wait for your answers How can I answer to tell those messages have already been solved? Ignore the obnoxiousness. Some idiot appears to have registered his Tomcat users' list e-mail address with Qmail, and now we all get these periodically. Mark has been trying to find the account and unsubscribe it but at last check was still hunting. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Exeptions after upgrading to tomcat 7
From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] Subject: Re: Exeptions after upgrading to tomcat 7 Remove following lines from server.xml: !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener / This is akin to burying one's head in the sand. It would be much better to fix the actual problem by shutting down the auxiliary thread with an appropriate listener. Sloppy programming should not be encouraged. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Exeptions after upgrading to tomcat 7
From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] Subject: Re: Exeptions after upgrading to tomcat 7 First we are talking about a ThreadLocal, not Thread. Read the logs again; besides the ThreadLocal abuse, there are two threads left lying around: SEVERE: The web application [/solr] appears to have started a thread named [localhost-startStop-1-SendThread(zookeeper2:2181)] but has failed to stop it. This is very likely to create a memory leak. SEVERE: The web application [/solr] appears to have started a thread named [localhost-startStop-1-EventThread] but has failed to stop it. This is very likely to create a memory leak. Maybe I'm missing something here, but I never seen how ThreadLocal does real harm, neither I can imagine it, please enlighten me ;-) Abusing ThreadLocal (which is what's going on here) can have very serious side effects, depending on what's stored via the reference. For example, if something specific to the request or session is kept in the ThreadLocal and not refreshed on the next unrelated request, inadvertent data sharing and potential corruption can occur. During one of the Tomcat get-togethers, we had discussed associating ThreadLocal instances with sessions rather than Threads, but that would have been a good bit of work. We settled on just purging such threads from the pool. Libraries written for non-thread-pool environments should be documented as such, and used only with great caution in server environments. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread Thanks for the pedantry: I was in fact ignoring the difference between the system and boot ClassLoaders. However, the primordial ClassLoader does in fact exist, and does in fact load classes, and is not called the boot ClassLoader. What you're calling the primordial class loader _is_ the boot class loader, identified by a null reference. (The use of primordial in the page you referred to is unusual; it's known as the boot or bootstrap class loader in almost all other documentation.) It's responsible for more than just the java.* packages, since it also loads all the com.sun.*, sun.*, and other JVM-vendor supplied classes. I ignored the extensions class loader, since it's rarely used and was not pertinent to the topic. the system class loader is represented by an ExtClassLoader. On top of that is an AppClassLoader. What you're looking at is JVM-internal classes (hence the $ in the names), that just happen to be the ones chosen in current versions of the JVM. The name is an implementation detail; the internal class mechanism is used to handle privilege issues. The internal names should not be construed as descriptive of the class loader hierarchy. On top of that is an AppClassLoader. Only for programs that supply their own, such as Tomcat. My comments concerned the JVM itself, not Tomcat. DriverManager's ClassLoader is in fact null, the primordial class loader. Unless one configures a replacement DriverManager (I think there's a system property for that, but I'm not sure). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread While I haven't exactly implemented my own JVM or anything like that, I have... I have often heard the boot class loader referred to as the primordial class loader. Both the JVM and Java Language specs refer to it as the bootstrap class loader: http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-5.html#jvms-5.3.1 The word primordial does not appear anywhere in the JVM spec, and only as a descriptive term for the Object class in the language spec. So, at least in Oracle's JVM: Also in any JVM serious about running Java programs. java.endorsed.dirs - boot class loader (null) The boot[strap] class loader, as noted. java.ext.dirs - another class loader (ExtClassLoader) The extensions class loader, rarely used. java.class.path- a third class loader (AppClassLoader) The system class loader, officially (java.lang.ClassLoader.getSystemClassLoader()). Interestingly enough, the above hierarchy does not appear in any spec I can find, although you'd be hard pressed to find a JVM that doesn't implement it that way. Using AppClassLoader as the internal name for the system class loader is unfortunate, since it creates confusion with common usage and an actual Application Class Loader, as described in this link: http://docs.oracle.com/cd/E19501-01/819-3659/beadf/index.html That one does seem like a bit of overkill... - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Follow-up: Possible false-postive with JreMemoryLeakPreventionListener and Tomcat's JDBC Pool and OracleTimeoutPollingThread I suspect that the DriverManager will always be loaded by the boot ClassLoader, since the default-dispatch for ClassLoaders is to chekc the parent first, then check yourself. The DriverManager is at the top-level (well, there is primordial, but that doesn't really count) ClassLoader so you'll always get that. Terminology alert: you're confusing the boot class loader with the system class loader, and have erroneously labeled the actual boot class loader as primordial. Generally speaking, the boot class loader is responsible for extracting JRE classes from rt.jar (and others that come with the JRE), while the system class loader deals with those specified by the java.class.path setting (CLASSPATH for those still stuck on environment variables). - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Where is a good SSL/TLS
From: Smith, Burton [mailto:burton.sm...@williams.com] Subject: Where is a good SSL/TLS I've been trying to figure out how to compile Apache 2.2 So wouldn't it be more effective to ask on the httpd mailing list rather than the Tomcat one? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7
From: Chirag Dewan [mailto:chirag.dewa...@yahoo.in] Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 Well I tested a sample html page with Tomcat 6.0.18 and 7.0.30 on Solaris x86 server. The req/sec were almost the same for both, but CPU utilization for Tomcat 6 was 23-27% and for Tomcat 7 it was 80-90% consistently. With the exact same JVM for both Tomcat 6 and 7? (32- versus 64-bit, client versus server mode?) On the other hand on a Linux system,the req/sec were a little higher in Tomcat 7 say 65k to 55k on tomcat 6 and the CPU utilization was the same for both 6 and 7. With same JVM as on the Solaris box? (Again, 32- versus 64-bit, client versus server mode?) On the face of it, it sounds like a problem in the Solaris JVM. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat service has been shutting down/stopping randomly.
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Apache Tomcat service has been shutting down/stopping randomly. Third, let's get some more information about the tcnative thing, as it probably truly represents a bug in tcnative. And start a new thread for that discussion, since this one is pretty much unrecoverably polluted. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: LOG4J2-223: IllegalStateException thrown during Tomcat shutdown (memory leak, it looks like)
From: Nick Williams [mailto:nicho...@nicholaswilliams.net] Subject: Re: LOG4J2-223: IllegalStateException thrown during Tomcat shutdown (memory leak, it looks like) Log4j 1 never required a listener to be configured to be shut down properly when an application is undeployed. What bearing does that have on a different logging mechanism? It should be possible to do this without a listener. Not easily. Could a `finalize` method be used instead of a shutdown hook/listener? Finalizers should be avoided like the plague. The gyrations the JVM has to go through to handle them result in continual run time impacts, and require at least two GC passes to actually get rid of the objects. What I don't know is if it is guaranteed to be called in non-web applications when the JVM just shuts down. Finalizers are not called at JVM termination, since the process exit is expected to release resources automatically. You cannot actually count on a finalizer ever being invoked; it's one of those seemed like a good idea at the time things that is now widely regretted by JVM implementers. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat service has been shutting down/stopping randomly.
From: James Snider [mailto:james.sni...@hbcs.org] Subject: RE: Apache Tomcat service has been shutting down/stopping randomly. We then moved back the Commons directory and Shared directory. Here is a list of the .jar files contained in the common directory we copied back: That's a fatal error - don't ever, ever copy jar files from an older version of Tomcat into a newer one. I doubt that you will be able to straighten out the mess you created with this. You should really uninstall all versions of Tomcat, manually remove any remnants of the old one (including log files), and install the current version from scratch, not playing the renaming games. If you have to update your webapps first to remove the hard-coded silliness, do that before trying to move up. Once Tomcat is properly installed, then update the conf/*.xml files as needed (do not copy over old versions), and install your webapps. You've created a maintenance nightmare with your current situation. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat Native library was not found on the java.library.path
From: msyber [mailto:msy...@gmail.com] Subject: Re: Apache Tomcat Native library was not found on the java.library.path Don't top post - it's obnoxious and makes the conversation much harder to follow. Tomcat: 6.0.13 Sadly out of date - over six years old. JDK: 1.5.0_22 Not supported. The issue is the library was not found! Are you trying to use a 64-bit JVM with a 32-bit .so, or vice versa? The mode of the JVM must match the mode of the APR library you installed. You really, really, really should move up to a recent version of Tomcat and APR and try it again. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: TomCat Request Processing
From: yogesh hingmire [mailto:yogesh.hingm...@gmail.com] Subject: Re: TomCat Request Processing Sure, i tried looking at the sequence diagram on the apache tomcat site, was not able to understand from there. Basically what i want to understand is, how does the connector handle multiple requests, it spawns a separate thread to handle each of them. On that point i wanted to know how the interaction happens between the connector and its request processor. Sorry if its too basic of a question, if you could or other team members point me in the direction it will be of great help. As you may have noticed, Tomcat (not TomCat) is open source. Download the code and read it. All of the responders on this mailing list are volunteers - including the Tomcat committers. Don't expect anyone to do your research for you. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org