tomcat-users.xml user and role elements
Hi, I looked at several tomcat configurations, and found that there are a couple of things that do not agree with Tomcat's documentation (this is taken from http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html tomcat-5.5 realm how-to documentation ): The users file (by default, conf/tomcat-users.xml must be an XML document, with a root element tomcat-users. Nested inside the root element will be a user element for each valid user, consisting of the following attributes: * name - Username this user must log on with. * password - Password this user must log on with (in clear text if the digest attribute was not set on the Realm element, or digested appropriately as described here otherwise). * roles - Comma-delimited list of the role names associated with this user. However, on several real-world tomcat-users.xml files, things don't go according to plan: 1. user element sometimes has a 'username' attribute - is this identical to 'name' attribute, or are there differences between these two? 2. Sometimes, not only user elements are nested inside the tomcat-users element, but also a role element. Is there documentation of these elements' structure (possible attributes, etc.) ? Thanks, Ophir -- View this message in context: http://www.nabble.com/tomcat-users.xml-user-and-role-elements-tp18749937p18749937.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files updates not recognized by Tomcat
Sorry: I'm using Tomcat version 5.5. Regards, Torsten --- Alessandro Ferrucci [EMAIL PROTECTED] schrieb am Mi, 30.7.2008: Von: Alessandro Ferrucci [EMAIL PROTECTED] Betreff: Re: WAR files updates not recognized by Tomcat An: Tomcat Users List users@tomcat.apache.org, [EMAIL PROTECTED] Datum: Mittwoch, 30. Juli 2008, 18:10 What version of tomcat are you running? Signed, Alessandro Ferrucci :) On Wed, Jul 30, 2008 at 10:46 AM, Torsten [EMAIL PROTECTED] wrote: Hi, when deploying a web application as a WAR archive the archive is automatically unpacked to a directory by tomcat but the WAR file stays as is on the disk. When this WAR file is later updated while the tomcat is NOT running tomcat will not notice the update when it is started afterwards. That is, it will continue to use the files from the old directory that it created on its own and ignore the new WAR. A possible workaround is of course to delete the directory (tomcat will automatically unpack the new WAR and restart the servlet then if it's running, otherwise after it is started). Is this a known bug? Or is it possible to make tomcat check its WARs instead? Thanks a lot in advance! __ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible more than 1 tomcat in single system?
consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? please advise. Vinay Chilakamarri wrote: I guess you are trying to host different resources on different ports. Running multiple Tomcat instances will just occupy unnecessary resources. You could configure Virtual Hosts( http://wiki.apache.org/tomcat/CreateVirtualHosts) and accomplish the same thing that you are doing right now. When you do this, you just have start a single instance of Tomcat and access the resources hosted on the ports that you configure On Mon, Jul 14, 2008 at 6:06 AM, Edi [EMAIL PROTECTED] wrote: i have installed two tomcats 1. 1st tomcat have installed in c:\program files\Tomcat5.0 with port 8080 2. 2nd tomcat have installed in f:\program files\Tomcat5.0 with port 8081 how can i start and work both tomcat at the same time. thanks and regards, edi Edoardo Panfili wrote: Edi ha scritto: Hello Experts, Is it possible to install more than 1 tomcat in a single system with different ports? Yes, take a look at http://azeditech.com/tomcat/multiple-tomcat-instances.html You can find more informations using Google. Edoardo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/is-it-possible-more-than-1-tomcat-in-single-system--tp18416418p18443522.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/is-it-possible-more-than-1-tomcat-in-single-system--tp18416418p18751326.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is it possible more than 1 tomcat in single system?
From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Correct. But it's not always that simple :-). It's your choice how you want to split up your applications between different containers (Tomcats in this case) to trade off memory use vs reliability. You might get a *less* reliable system by splitting up the applications into separate Tomcat instances, though. Each Tomcat runs in its own JVM, and each is allocated a maximum memory size. If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible more than 1 tomcat in single system?
Peter Crowther skrev: From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Correct. But it's not always that simple :-). It's your choice how you want to split up your applications between different containers (Tomcats in this case) to trade off memory use vs reliability. You might get a *less* reliable system by splitting up the applications into separate Tomcat instances, though. Each Tomcat runs in its own JVM, and each is allocated a maximum memory size. If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. And what happens if you get one rough application stealing all the memory? probably all your applications will stop functioning.. For me it is always better to have 1 application crash, then 1 it is also easier to see which application is the guilty one if only that application crashes.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is it possible more than 1 tomcat in single system?
From: Christian Andersson [mailto:[EMAIL PROTECTED] Peter Crowther skrev: If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. And what happens if you get one rough application stealing all the memory? probably all your applications will stop functioning.. Yes. Certainly memory leaks are much more troublesome in a single JVM. For me it is always better to have 1 application crash, then 1 Given a high enough hardware budget that I can spend on RAM, I agree entirely :-). Not all of us have that luxury. I'm sure there are still finance directors out there with Gates' 640k is enough for anyone quote framed on their wall, right by the stone that you have to get blood out of before you get any budget! it is also easier to see which application is the guilty one if only that application crashes.. Much easier! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible more than 1 tomcat in single system?
If this happens on the front end this sounds like a misconfiguration try setting min and max heap params for your JVM e.g. -Xms256m -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled On the back end use stack variables as they fall out of scope they are freed be careful on allocations for anything which uses Collector finally if you dont need the memory (and you can spare 1-2 sec delay) dont be afraid to call Runtime.gc() to recycle the discarded memory http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#gc() Martin - Original Message - From: Christian Andersson [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, July 31, 2008 8:02 AM Subject: Re: is it possible more than 1 tomcat in single system? Peter Crowther skrev: From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Correct. But it's not always that simple :-). It's your choice how you want to split up your applications between different containers (Tomcats in this case) to trade off memory use vs reliability. You might get a *less* reliable system by splitting up the applications into separate Tomcat instances, though. Each Tomcat runs in its own JVM, and each is allocated a maximum memory size. If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. And what happens if you get one rough application stealing all the memory? probably all your applications will stop functioning.. For me it is always better to have 1 application crash, then 1 it is also easier to see which application is the guilty one if only that application crashes.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting up Comet on Tomcat 6
package testing.comet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.catalina.CometEvent; import org.apache.catalina.CometProcessor; public class CometConnection extends HttpServlet implements CometProcessor { public CometConnection() { System.err.println(Comet test servlet initialized.); } public void init() { System.err.println(Comet test initialized.); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { System.err.println(doGet called.); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { System.err.println(doPost called.); } public void event(CometEvent cometEvent) throws IOException, ServletException { System.err.println(Received event + cometEvent.getEventType().toString()); } protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, You must be using the APR or NIO connector to get the event method called.); } } -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 1:28 PM To: Tomcat Users List Subject: Re: Setting up Comet on Tomcat 6 send us your test class - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding a virtual host with jmx
oh sorry I've forgot, i'm using tomcat 6.0. Thx for your help... but like i didn't know the english expression on the fly, i wasn't able to find docs. now, yes... and i've found. so org.apache.catalina.Mbeans is full of useful functions (like createStandardHost...) (I've spent a lot of time to find something under my nose ...) thx again, i keep your code in case (and better understand all of that). Regards, O.V. 2008/7/31 Bill Barker [EMAIL PROTECTED] It's a lot of lines of code, but not that hard. You haven't mentioned your Tomcat version, so I'll give a sort of generic setup. ObjectName loader = getServerLoader(); // depends on the settings and version ObjectName registry = getRegistry(); // depends on the settings and version MBeanServer server = getTCMBeansServer(); // generally the first one, unless you (or your J2EE) are playing games String hname = Catalina:type=Host,host=+hostName; // Assuming the default Engine name of Catalina ObjectName ohost = new ObjectName(hname); Object host = server.instantiate(HOST_CLASS, loader); server.invoke(registry, registerComponent, new Object[] {host, hname, null}, new String[] {java.lang.Object,java.lang.String,java.lang.String}); server.setAttribute(ohost, new Attribute(appBase, appBase)); // Set more attributes, and aliases etc here // Things like Realms and Contexts work much the same way if you follow Tomcat's naming conventions server.invoke(ohost, start, null, null); // Start your contexts here, if you don't have automatic deployment set. As long as you follow Tomcat's naming conventions for ObjectNames, invoking start will automagically add the new elements to where they should live. You can get the values for the loader and registry by hooking up a JMX console to your existing Tomcat. Olivier Vergès [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi all, I'm creating a web application for auto deploying virtual host through apache and tomcat on a production server. Everything is ok except for the Tomcat part: As tomcat can't be reloaded and as i can't restart anytime I want, I 've heard jmx was great cause it was possible to modify a running tomcat (is the english expression is on the fly?). So, Connection to Mbean server is ok... My problem is : when i invoke the addChild (org.apache.catalina.core.Container) method of Engine I get this error: java.io.NotSerializableException: org.apache.catalina.util.LifecycleSupport at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)... So i try to create my own addChildByString(String;String,String,String) which takes the appabase and the name of th virtual host, and path and docBase of the first needed context. But i've got a problem with the context now, GRAVE: Error getConfigured (and nothing else) i'm a little lost with all the classes and functions and I haven't found any docs about adding vh by jmx. has anyone tried to add and directly make worked a virtual host and a context on a running tomcat ? thx, Olivier - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Find out Who-I-Am for Realm User
Well actually, the proposed solution I suggested requires you to use a third party project called SecurityFilter, which emulates container managed security: http://securityfilter.sourceforge.net/. When using securityFilter you are in control of setting SecurityFilter as a custom servlet filter in your webapp, so you can layer another filter on top of SecurityFilter to intercept the request and get all the information you want (you need to do this because SecurityFilter clears the Session object before re-directing to the original page). What you are trying to do is essentially intercept j_security_check which cannot be done very easily. One other possible solution is subclassing the security realm (such as JDBCRealm if you're using that) that you have configured in your tomcat instance, and then configuring that new class in the Realm element in server.xml. I'm sure the implication of this are loss of portability but I'm not sure you really care about that at this point. The best documentation on learning these technologies is http://tomcat.apache.org/tomcat-5.5-doc/index.html and google. On Thu, Jul 31, 2008 at 12:57 AM, Guojun Zhu [EMAIL PROTECTED] wrote: Thank you. I am using the basic authentication as the manager package of Tomcat. Something like this in the web.xml. login-config auth-methodBASIC/auth-method realm-nameTomcat INFORM Application/realm-name /login-config I only know how to use the realm in the web.xml and servel.xml. But I am really like to learn about this j_security. Honestly, I am not fully understand what you say in the second part. I know basic java stuff and know basic things about writing JSP web application and a little servlet. Where should I start to learn these? Thanks. Sincerely Zhu, Guojun On Wed, Jul 30, 2008 at 5:08 PM, Alessandro Ferrucci [EMAIL PROTECTED] wrote: What authentication method are you using? I'll take a wild guess at form. This thread provides a few workaround solutions for this: http://www.theserverside.com/discussions/thread.tss?thread_id=32033 I suggest looking into writing your own filter and placing it above SecurityFilter in the stack and intercepting the redirect made by the security filter by subclassing HttpServletResponseWrapper. On Wed, Jul 30, 2008 at 3:58 PM, Guojun Zhu [EMAIL PROTECTED] wrote: Hi, I am using realm for the authorization of my web application. I would like to include a administration section for things like modifying the user profile or password. I have several different user names associated with two different roles. Both roles give the pass to the web pages. I am wondering whether I can find out who is the login user in realm? So I do not need the user to provide it again to entering the admin part. I am using Tomcat 5.5 on a linux box. Thanks. Sincerely Zhu, Guojun -- Signed, Alessandro Ferrucci :) -- Signed, Alessandro Ferrucci :)
RealmBase's 'Container' requirement
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Securityfilter includes a feature that allows users to wrap Tomcat Realm classes (Such as DataSourceRealm, JAASRealm, etc.) so they don't have to implement their own. The adapter that provides the plumbing between the sf code and the tc code is short and sweet, but it has been flawed for some time due to tc's RealmBase requirement that setContainer() be called before the Realm is brought into service. Since we are instantiating these objects outside of Tomcat (that is, where we don't have any references to Tomcat internal objects), I'm wondering about a few things. First, does anyone know if the Container used by the Realm actually needs to be the currently-running Tomcat Container object? Can we just create a dummy one and let it go? Regardless of whether a dummy Container is useful, is there a way to get a reference to the currently-running Tomcat Container object? We may be able to get to objects such as the ServletContext in order to complete setup of these objects in memory before they are actually used. Any help would be very much appreciated. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiRxr8ACgkQ9CaO5/Lv0PBehwCgliZu934iFl7UgtNub9JbSnIF l0sAn1RSV0ZmT5uG46A2be24qhG66HJO =LBPD -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request parameters mishandle utf-8 encoding
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: | The HTTP spec specifies that header information is encoded in iso-latin-1 Could you provide a reference for this? Whenever I dig into the HTTP specification, I end up having to read all over it to find things like this. I seem to recall that: 1. I've located this information in the past 2. The real answer was that HTTP headers format inherits from SMTP 3. SMTP requires pure ASCII headers 4. The request line (GET /whatever HTTP/[version]) does not count ~ as a header Unfortunately, I can't find my references and so my assertions are pretty much worthless. :( | so this is what Tomcat uses by default when parsing the query-string. If | you want the non-default behavior, then simply set | useBodyEncodingForURI=true in the Connector ... / element of server.xml. I find it more useful to set URIEncoding=UTF-8 in the Connector, since the page encoding and URI encoding are not guaranteed to be the same. The OP should look to see what works best and feels more natural in his environment. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiRydQACgkQ9CaO5/Lv0PBDmwCdFOiGgB33MNXvkyk2rJD4/Qru CvwAn1h8Ex8bpoMo9CyOYKG1JqjzCE1y =UeRV -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Down the rabbit hole with JDBC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, Just a note: as you seem to be just getting started with everything, might I make the bold recommendation that you avoid doing any database work from JSPs? Databases are notoriously finicky when it comes to resource management (cleaning up after aborted results, closing various resources, etc.), and JSPs totally suck when trying to provide clean try/catches and stuff like that. My (unsolicited) advice to you would be to avoid any data transfer or business logic inside any of the JSPs that you write. Granted, you are following a tutorial just as a proof-of-concept to get everything working, but often folks find that the path or least resistance is to just modify examples to fit their needs. Good luck, - -chris Matt Burkhardt wrote: | %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % | %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % | | sql:query var=rs dataSource=jdbc/TestDB | select id, foo, bar from testdata | /sql:query | | html | head | titleDB Test/title | /head | body | | h2Results/h2 | | c:forEach var=row items=${rs.rows} | Foo ${row.foo}br/ | Bar ${row.bar}br/ | /c:forEach | | /body | /html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiRy6kACgkQ9CaO5/Lv0PCFvQCfQ+/eYn9WVMm54dG1iETQq7O1 tisAoLUs5vrykKb0w6PfcYffEV4oKqkS =lpYH -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment Using Tomcat
Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the previous .war file and the exploded war (which is exploded by tomcat) from webapps directory I cannot delete them unless until I stop the server. I want to do this on the fly. This is where I am failing. Alessandro Ferrucci-3 wrote: autoDeploy is set to true by default in tomcat 6, make sure that this attribute is set to true in the conf/server.xml. If it is set to true, then no matter if you're re-deploying a packed or un-packed war, it will re-deploy should the timestamps on the web deployment descriptor change. On Wed, Jul 30, 2008 at 5:30 PM, hisameer [EMAIL PROTECTED]wrote: Hello Everyone I am using the following versions : Eclipse Version : Ganemede Tomcat Sysdeo Plugin(version 3.2.1) Tomcat Server(version 6.0.16) I have a build.xml file created which basically puts all the contents of a webproject.war into the location /workspace/dist/webproject or I can say I have an exploded war. I don't know what should I do inorder to deploy that exploded war to the tomcat server. Also I want to get rid of starting and stoping the server over and over again. I should be able to delete the previous exploded war file and place the new one without stopping the server. Previously I was creating a war file and I was stopping the server manually and then I was deleting the war file under /webapps folder of Tomcat and then I was placing the new war file there and then I had to start the server again. But now as the project is growing big and we want to have the flexibility in our project. We need the help regarding HOT Deployment. I read some online tutorials and tried to use them but no progress so for. Can you please tell me step by step process to achieve that goal. Right now, I have the functionality of deleting the previous exploded war file and making a new exploded war file using my build.xml and placing it into the /workspace/dist/ folder if there is some additional functionality needed please do let me know related to build. Thanks for YOUR help in advance . Please help me! -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18743255.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Signed, Alessandro Ferrucci :) -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18755883.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically detecting login or logout events
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, MartinOShea wrote: | I'm trying to find a way to detect the events caused when a user logs into | or logs out of an application I'm working on. There is no good way to do this in Tomcat. In order to do something similar (we want to load user preferences from the database after login), we created a Filter that checks every request for a session containing a user object. If the user object is not present, we perform the login (which is actually /after/ the authentication and authorization), load whatever we want from the database, etc., and then put the user object into the session. After that, the Filter basically does nothing. As for logout, you really only have one option: use a SessionListener to observe sessionDestroyed events. If your users never explicitly log out of your application, then you will only be notified when their sessions time-out. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiRzeMACgkQ9CaO5/Lv0PAKqwCgsEDoZVioBnq1yy2MsOqtH9Pc DcMAn3lqm0G11gA+JGGdlfRkStkI/M8x =tIGF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible more than 1 tomcat in single system?
From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Edi It's also worth remembering that when your java webapp 'crashes', tomcat will catch the exception and display the stack trace - the other apps will be unaffected (well /almost/ always be unaffected) and continue to run. Even if jsp/java raises an exception, the other jsp/ java pages will continue to run; and jsp pages will continue to be instantiated, even after a crash. That is of course, assuming you mean exception when you say crash, as opposed to the whole JVM crashing, or tomcat itself having an unrecoverable exception.
Re: tomcat security and window open js
binjUCQUyxUig.bin Description: PGP/MIME version identification
Re: address bar shows ip instead of domain name
Yes I have a domain, ex, mydomain.com, I have as A-record going to that IP. The issue is that I want when someone types in mydomain.com in the address bar to forward to http://00.00.00.00:8080/mywebapp/welcome.action and still display mydomain.com. I need the urlrewrite to forward mydomain.com to http://00.00.00.00:8080/mywebapp/welcome.action but it wont accept the mydomain.com to be forward, it only accepts anything that comes after mydomain.com, for example, mydomain.com/mydomain.ca, the mydomain.ca gets rewritten only, not the mydomain.com part, which is what i want rewritten. Ken Bowen wrote: If you mean: type http://mydomain.com and get to 00.00.00.00:/, you must register mydomain.com in the DNS with some ISP. If you want to get rid of the :8080, you must configure Tomcat to listen on port 80 instead of 8080 (check the howTo's, or search the archives). On Jul 30, 2008, at 1:13 PM, nilanthan wrote: how do i map to the domain name itself.. When I do /mydomain.com to /mywebapp/welcome.action, it only works if I type this in the browser: http://00.00.00.00:8080/mydomain.com. then it goes to http://00.00.00.00:8080/mywebapp/welcome.action but I have created a record for mydomain.com to go to the ip of 00.00.00.00, same as above ip. My question is how can I map to the mydomain.com to go to http://00.00.00.00 and based on that go to http://00.00.00.00:8080/mywebapp/welcome.action? ? nilanthan wrote: Thanks Ken for all your help! Ken Bowen wrote: In rule, map /mydomain.com to /mywebapp/welcome.action in outbound-rule, map /mywebapp/welcome.action to /mydomain.com Do that for welcome, register, and every other page. Depending on the rules you need, you can make some use of regular expressions. On Jul 29, 2008, at 10:25 AM, nilanthan wrote: Thanks. I have placed the files/codes in the right spots and when I do localhost:8080/mywebapp/rewrite-status I get the urlrewrite page. But what i need is when a user types in the browser www.mydomain.com, it should go to http://00.00.00.00:8080/mywebapp/welcome.action but still display http://www.mydomain.com and when I click on a link, it should take my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the address bar show http://www.mydomain.com/register.action. Can you use this example for the urlrewrite and where to place the codes? Thanks. Ken Bowen wrote: I don't know of any tutorial -- I found the documentation gave me enough guidance. It's really pretty straight-forward. Drop a filter definition like this in your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping Then add a file urlrewrite.xml in your WEB-INF containing mappings in the following spirit: rule from^/PrivacyPolicy$/from to type=forward/PrivacyPolicy.do/to /rule outbound-rule from^/PrivacyPolicy.do$/from to/PrivacyPolicy/to /outbound-rule The outbound-rule describes how to map something going from the server to the browser, and the (inbound) rule describes how to map what you mapped on output (now coming back from the browser) back into what you need to see on input. If you removed the comment symbols in the filter element, you get detailed debugging ouptut. Hope this helps. Ken On Jul 28, 2008, at 6:16 PM, nilanthan wrote: Thanks. I have looked at that before but am a bit confused about the instructions. Is there a good tutorial for this urlrewrite? Ken Bowen wrote: Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/ folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will have multiple sites running in the future so I cannot place the site folder in the ROOT directory. Thanks. -- View this message in context:
[ANN] Apache Tomcat 6.0.18 released
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.18 stable. This release includes many bugfixes over Apache Tomcat 6.0.16. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a refactored clustering implementation, advanced IO features, and improvements in memory usage. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-6.0-doc/changelog.html Downloads: http://tomcat.apache.org/download-60.cgi Migration guide from Apache Tomcat 5.5.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Find out Who-I-Am for Realm User
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guojun, Guojun Zhu wrote: | I am | wondering whether I can find out who is the login user in realm? I think you're looking for HttpServletRequest.getPrincipal(). Calling Principal.getName() will give you the username of the currently-logged-in user. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiR0UcACgkQ9CaO5/Lv0PCXeACgmZCu3Cd4rOnXOCAm3J8em14o 9ooAniPh71CXBYMKdbUmvIuUdZN6cvWl =HhB7 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Threads are busy...but my application is moderately used!!
Hi, Hi, I am facing a problen with Tomcat 4.1.27. Operating System:Microsoft Windows2000. Web-Server is IIS. I am getting the error All Threads are busy,Please increase the max Threads. also i can find hundreds of Connection timed out error in it.why does this occur?? Connector is JK2 ajp13 connector I have set MaxThreads=300. Maxprocessors=150;acceptcount=150; What could be the solution for it...my application is moderately used... Regards, Thangavel - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
I think what you are looking for is to make your application the default application for your Tomcat instance. Search the archives about this, since it is a common question. Basically you need to delete the existing ROOT, and rename your app to be ROOT. On Jul 31, 2008, at 10:50 AM, nilanthan wrote: Yes I have a domain, ex, mydomain.com, I have as A-record going to that IP. The issue is that I want when someone types in mydomain.com in the address bar to forward to http://00.00.00.00:8080/mywebapp/welcome.action and still display mydomain.com. I need the urlrewrite to forward mydomain.com to http://00.00.00.00:8080/mywebapp/welcome.action but it wont accept the mydomain.com to be forward, it only accepts anything that comes after mydomain.com, for example, mydomain.com/mydomain.ca, the mydomain.ca gets rewritten only, not the mydomain.com part, which is what i want rewritten. Ken Bowen wrote: If you mean: type http://mydomain.com and get to 00.00.00.00:/, you must register mydomain.com in the DNS with some ISP. If you want to get rid of the :8080, you must configure Tomcat to listen on port 80 instead of 8080 (check the howTo's, or search the archives). On Jul 30, 2008, at 1:13 PM, nilanthan wrote: how do i map to the domain name itself.. When I do /mydomain.com to /mywebapp/welcome.action, it only works if I type this in the browser: http://00.00.00.00:8080/mydomain.com. then it goes to http://00.00.00.00:8080/mywebapp/welcome.action but I have created a record for mydomain.com to go to the ip of 00.00.00.00, same as above ip. My question is how can I map to the mydomain.com to go to http://00.00.00.00 and based on that go to http://00.00.00.00:8080/mywebapp/welcome.action? ? nilanthan wrote: Thanks Ken for all your help! Ken Bowen wrote: In rule, map /mydomain.com to /mywebapp/welcome.action in outbound-rule, map /mywebapp/welcome.action to /mydomain.com Do that for welcome, register, and every other page. Depending on the rules you need, you can make some use of regular expressions. On Jul 29, 2008, at 10:25 AM, nilanthan wrote: Thanks. I have placed the files/codes in the right spots and when I do localhost:8080/mywebapp/rewrite-status I get the urlrewrite page. But what i need is when a user types in the browser www.mydomain.com, it should go to http://00.00.00.00:8080/mywebapp/welcome.action but still display http://www.mydomain.com and when I click on a link, it should take my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the address bar show http://www.mydomain.com/register.action. Can you use this example for the urlrewrite and where to place the codes? Thanks. Ken Bowen wrote: I don't know of any tutorial -- I found the documentation gave me enough guidance. It's really pretty straight-forward. Drop a filter definition like this in your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping Then add a file urlrewrite.xml in your WEB-INF containing mappings in the following spirit: rule from^/PrivacyPolicy$/from to type=forward/PrivacyPolicy.do/to /rule outbound-rule from^/PrivacyPolicy.do$/from to/PrivacyPolicy/to /outbound-rule The outbound-rule describes how to map something going from the server to the browser, and the (inbound) rule describes how to map what you mapped on output (now coming back from the browser) back into what you need to see on input. If you removed the comment symbols in the filter element, you get detailed debugging ouptut. Hope this helps. Ken On Jul 28, 2008, at 6:16 PM, nilanthan wrote: Thanks. I have looked at that before but am a bit confused about the instructions. Is there a good tutorial for this urlrewrite? Ken Bowen wrote: Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it forwards to an address http:/xx.xx.xxx.xx:8080/ folder1/ welcome.action where xx is the ip of the server. Im runningTomcat 5.5 alone without apache. The problem is that when a users goes to www.mydomain.com, it takes them to the site but in the address bar it shows http:/xx.xx.xxx.xx:8080/folder1/welcome.action instead of mydomain.com. Is this an issue with DNS or something in Tomcat? I will
Re: address bar shows ip instead of domain name
no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. Ken Bowen wrote: I think what you are looking for is to make your application the default application for your Tomcat instance. Search the archives about this, since it is a common question. Basically you need to delete the existing ROOT, and rename your app to be ROOT. On Jul 31, 2008, at 10:50 AM, nilanthan wrote: Yes I have a domain, ex, mydomain.com, I have as A-record going to that IP. The issue is that I want when someone types in mydomain.com in the address bar to forward to http://00.00.00.00:8080/mywebapp/welcome.action and still display mydomain.com. I need the urlrewrite to forward mydomain.com to http://00.00.00.00:8080/mywebapp/welcome.action but it wont accept the mydomain.com to be forward, it only accepts anything that comes after mydomain.com, for example, mydomain.com/mydomain.ca, the mydomain.ca gets rewritten only, not the mydomain.com part, which is what i want rewritten. Ken Bowen wrote: If you mean: type http://mydomain.com and get to 00.00.00.00:/, you must register mydomain.com in the DNS with some ISP. If you want to get rid of the :8080, you must configure Tomcat to listen on port 80 instead of 8080 (check the howTo's, or search the archives). On Jul 30, 2008, at 1:13 PM, nilanthan wrote: how do i map to the domain name itself.. When I do /mydomain.com to /mywebapp/welcome.action, it only works if I type this in the browser: http://00.00.00.00:8080/mydomain.com. then it goes to http://00.00.00.00:8080/mywebapp/welcome.action but I have created a record for mydomain.com to go to the ip of 00.00.00.00, same as above ip. My question is how can I map to the mydomain.com to go to http://00.00.00.00 and based on that go to http://00.00.00.00:8080/mywebapp/welcome.action? ? nilanthan wrote: Thanks Ken for all your help! Ken Bowen wrote: In rule, map /mydomain.com to /mywebapp/welcome.action in outbound-rule, map /mywebapp/welcome.action to /mydomain.com Do that for welcome, register, and every other page. Depending on the rules you need, you can make some use of regular expressions. On Jul 29, 2008, at 10:25 AM, nilanthan wrote: Thanks. I have placed the files/codes in the right spots and when I do localhost:8080/mywebapp/rewrite-status I get the urlrewrite page. But what i need is when a user types in the browser www.mydomain.com, it should go to http://00.00.00.00:8080/mywebapp/welcome.action but still display http://www.mydomain.com and when I click on a link, it should take my to ex. http://00.00.00.00:8080/mywebapp/register.action but in the address bar show http://www.mydomain.com/register.action. Can you use this example for the urlrewrite and where to place the codes? Thanks. Ken Bowen wrote: I don't know of any tutorial -- I found the documentation gave me enough guidance. It's really pretty straight-forward. Drop a filter definition like this in your web.xml: filter filter-nameUrlRewriteFilter/filter-name filter- classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/ filter-class !-- init-param param-namelogLevel/param-name param-valuesysout:DEBUG/param-value /init-param -- /filter filter-mapping filter-nameUrlRewriteFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping Then add a file urlrewrite.xml in your WEB-INF containing mappings in the following spirit: rule from^/PrivacyPolicy$/from to type=forward/PrivacyPolicy.do/to /rule outbound-rule from^/PrivacyPolicy.do$/from to/PrivacyPolicy/to /outbound-rule The outbound-rule describes how to map something going from the server to the browser, and the (inbound) rule describes how to map what you mapped on output (now coming back from the browser) back into what you need to see on input. If you removed the comment symbols in the filter element, you get detailed debugging ouptut. Hope this helps. Ken On Jul 28, 2008, at 6:16 PM, nilanthan wrote: Thanks. I have looked at that before but am a bit confused about the instructions. Is there a good tutorial for this urlrewrite? Ken Bowen wrote: Apply a rewrite filter (http://tuckey.org/urlrewrite/) to map the ip expression to what you want. ken On Jul 28, 2008, at 5:36 PM, nilanthan wrote: So what Can I do so that that domain goes to that address but shows the domain in the address bar? Yuval Perlov wrote: Where ever you forward, that's what the address bar shows On Jul 28, 2008, at 7:45 PM, nilanthan wrote: Hi, I have a website hosted on netfirms. I have a domain,exmaple, mydomain.com and it
Re: Threads are busy...but my application is moderately used!!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Thangavel Sankaranarayanan wrote: | I am facing a problem with Tomcat 4.1.27. Note that everything you are using is very out of date. Tomcat just released 6.0.18, mod_jk is at version 1.2.26 (and JK2 is dead, dead, dead), and win2k, well... sometimes that can't be helped. | I am getting the error All Threads are busy,Please increase the max | Threads. Have you obtained a thread dump of the running Tomcat? That would be the first thing you should do. A thread dump will tell you what all those threads are doing. Perhaps they are blocked reading or writing to some stream. Perhaps they are waiting on your database to return some data or something like that. | also i can find hundreds of Connection timed out error in it.why does this | occur?? Can you post a stack trace of the ConnectionTimeouts? | Connector is JK2 ajp13 connector | I have set MaxThreads=300. Maxprocessors=150;acceptcount=150; | | What could be the solution for it...my application is moderately used... If your application is moderately used, then you probably don't need all those threads and processors. Any idea of the amount of peak traffic you actually expect? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiR0z8ACgkQ9CaO5/Lv0PB3cwCfbavCw7lU+hkBZUakxtPlRkCu hkMAoLDT4p1tIllh8xoTwBysh8qSQ4uH =7GLi -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to restrict access to tomcat manager to specific hosts?
Hi, I need to allow access to tomcat manager (http://servername:port/manager/html) only to the localhost using Tomcat's means. Inspecting the request for the IP, and blocking a non-localhost ip is not accepted as per the requirement I have. How can I do that? I have tried to add the following to the catalina.policy file, but it didn't work: grant codeBase http://server ip:8080/manager/html { permission java.net.SocketPermission 127.0.0.1, connect; }; Thank you, Regards, Nareg Garabedian
Re: Threads are busy...but my application is moderately used!!
Thanks Chris, I tried to obtain a thread dump.. I read how to create a thread dump... i went to my command prompt pressed ctrl+break...and i could'nt get any information .. how to create one.. this is wat fully found in std.err INFO: connection timeout reached 31/07/2008 15:31:15 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 31/07/2008 15:31:28 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached 31/07/2008 15:32:43 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Regards, Thangavel Sankaranarayanan Christopher Schultz [EMAIL PROTECTED] To rschultz.net Tomcat Users List users@tomcat.apache.org 07/31/2008 08:29 cc PM Subject Re: Threads are busy...but my Please respond to application is moderately used!! Tomcat Users List [EMAIL PROTECTED] che.org -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Thangavel Sankaranarayanan wrote: | I am facing a problem with Tomcat 4.1.27. Note that everything you are using is very out of date. Tomcat just released 6.0.18, mod_jk is at version 1.2.26 (and JK2 is dead, dead, dead), and win2k, well... sometimes that can't be helped. | I am getting the error All Threads are busy,Please increase the max | Threads. Have you obtained a thread dump of the running Tomcat? That would be the first thing you should do. A thread dump will tell you what all those threads are doing. Perhaps they are blocked reading or writing to some stream. Perhaps they are waiting on your database to return some data or something like that. | also i can find hundreds of Connection timed out error in it.why does this | occur?? Can you post a stack trace of the ConnectionTimeouts? | Connector is JK2 ajp13 connector | I have set MaxThreads=300. Maxprocessors=150;acceptcount=150; | | What could be the solution for it...my application is moderately used... If your application is moderately used, then you probably don't need all those threads and processors. Any idea of the amount of peak traffic you actually expect? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiR0z8ACgkQ9CaO5/Lv0PB3cwCfbavCw7lU+hkBZUakxtPlRkCu hkMAoLDT4p1tIllh8xoTwBysh8qSQ4uH =7GLi -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
finding thread status when using tomcat as a window service??
Hi, I am using tomcat as a window service..in tat case how can i do a threaddump on it? Thanks, Thangavel.S - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.16 serving 40K jpg files
Hi, I just start learning Java programming a while back and doing some tutorials/learning trails at netbeans.org. One of the tutorial using Visual JSF, http://www.netbeans.org/kb/60/web/fileupload.html, I'm doing is not working as I think it should and I'm not getting any http error or Java exception. I can upload the image fine and it will display any jpg ~40k or less. If the image size is larger, it doesn't show. I tried to browse the 40k+ image directly instead of the image tag, it doesn't show also. Does anyone know why is this? I tried google for problem but unable to find any. The development platform is WinXP x64 JDK6 1.6.0_06, Tomcat 6.0.16. The default installation configurations have not been modified. TIA, Tommy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HttpSessionListener session listener in tomcat cluster
not at all, it just mean your HttpSessionListeners and HttpSessionAttributeListeners wont be invoked on the other servers also, you could work around the problems in another way, track logins differently Filip Pavan Singaraju wrote: If we set the notifyListenersOnReplication to false, will it not cause problem if there is a load balancer at work? -- Pavan Kumar Singaraju On Wed, Jul 30, 2008 at 6:59 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Madonesa sanjaya wrote: Hi, I have deployed my application on a clustered environment and used session created event to monitor the number of users login to each machine (Using SNMP MIB counters). But once a user is login to one machine counter gets updated in every machine. I believe this is due to session replication. Is there any way to gets a count of logins to each machine using HTTPSessionListener when the session replication is enabled. Thnx, Sanjaya. there is a setting called |notifyListenersOnReplication you can set to true of false http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-manager.html Filip | - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session replication problem in tomcat 6.0.14 (loadbalancing with Apache)
the error should be fixed in 6.0.18 Filip Pavan Singaraju wrote: My question here was if the other node is not available anymore, will this exception come? If so how to avoid it. The fact is the session replication is happenning and everything is working inspite of the exception. But just in case if we want to avoid this exception, is there a way or should the exception be ignored?? -- Pavan Kumar Singaraju On Wed, Jul 30, 2008 at 7:00 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: this Jul 30, 2008 1:49:24 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://d5-4232.xius.ltd:4002,d5-4232.xius.ltd,4002, alive=46858,id={-38 -119 -88 -15 -57 -62 77 116 -98 -70 -92 -50 45 -83 -71 -74 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)}, domain={}, ] indicates that the other node is not part of the cluster anymore. what does your config look like? Filip Pavan Singaraju wrote: Hello all, I am trying to do session replication in two tomcats (using Apache to do the loadbalancing). Ran the examples application and put a value in to the session. Now stopped the tomcat where the session is set. Submitted the URL again. Web page showed no value in the session. I think the session value is not tranfered. In the log file, i could see the following happenning. Help me with this to identiry why the error and how to do the session replication. I am using Tomcat 6.0.14 on JDK 1.6 Jul 30, 2008 1:49:24 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://d5-4232.xius.ltd:4002,d5-4232.xius.ltd,4002, alive=46858,id={-38 -119 -88 -15 -57 -62 77 116 -98 -70 -92 -50 45 -83 -71 -74 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)}, domain={}, ] Jul 30, 2008 1:49:40 PM org.apache.catalina.ha.tcp.SimpleTcpCluster send SEVERE: Unable to send message through cluster sender. org.apache.catalina.tribes.ChannelException: No destination given; No faulty members identified. at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:194) at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:175) at org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:835) at org.apache.catalina.ha.tcp.SimpleTcpCluster.sendClusterDomain(SimpleTcpCluster.java:814) at org.apache.catalina.ha.session.JvmRouteBinderValve.sendSessionIDClusterBackup(JvmRouteBinderValve.java:391) at org.apache.catalina.ha.session.JvmRouteBinderValve.changeSessionID(JvmRouteBinderValve.java:362) at org.apache.catalina.ha.session.JvmRouteBinderValve.handleJvmRoute(JvmRouteBinderValve.java:319) at org.apache.catalina.ha.session.JvmRouteBinderValve.handlePossibleTurnover(JvmRouteBinderValve.java:229) at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:206) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: finding thread status when using tomcat as a window service??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Please do not hijack threads by replying to an unrelated message. Instead, create a new message to the list to start a new thread. (See below for answer). Thangavel Sankaranarayanan wrote: | I am using tomcat as a window service..in tat case how can i do a | threaddump on it? I'm no expert on Java on win32, but have some ideas. #1 Use jstack which comes with the JDK (and JRE?). It might not be available on windows. #2 You can create a JSP that will do a thread dump by using (IIRC) Thread.getThreadGroup and then ThreadGroup.getParent() recursively until you've found the top-level ThreadGroup. From there, you can enumerate all threads and do a thread dump on each one. Oh course, that requires that you have an available request processing thread in order to actually run the JSP. You can use the same technique from a regular Java class that runs at intervals. You'll probably have to restart the service in order to install that class (maybe not -- a hot webapp re-deploy might work, and leave your app in its locked state). #3 Another option is to use Cygwin to send a STOP signal to the JVM process. I don't know if this actually works, and I don't know where stdout goes on a win32 TC install (catalina.out?). Also, Google is your friend: http://wiki.caucho.com/Thread_dump - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiR9agACgkQ9CaO5/Lv0PCVPQCgxDEvFRoNFydxQm3r6HubxMfn K4wAoKwfkKDZu17fEi0649NlrXhsBtLc =l0To -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.16 serving 40K jpg files
Tommy Pham wrote: http error or Java exception. I can upload the image fine and it will display any jpg ~40k or less. If the image size is larger, it doesn't show. I tried to browse the 40k+ image directly instead of the image tag, it doesn't show also. Does anyone know why is this? I tried google for problem but unable to find any. The development platform is WinXP x64 JDK6 1.6.0_06, Tomcat 6.0.16. The default installation configurations have not been modified. Although the limit being ~40k hints against this you might have run into https://issues.apache.org/bugzilla/show_bug.cgi?id=44494 Try to run the webapp on Tomcat 6.0.18, which was released today and where the above bug should be fixed. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment Using Tomcat
- Original Message - From: hisameer [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, July 31, 2008 4:29 PM Subject: Re: Hot deployment Using Tomcat Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the previous .war file and the exploded war (which is exploded by tomcat) from webapps directory I cannot delete them unless until I stop the server. I want to do this on the fly. This is where I am failing. Try this... maybe it does what you want http://localhost:8080/manager/deploy?localWar=file://PathToYourUnpackedWarpath=/ContextNameYouWant and thats it... TC should do the rest ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- Alessandro Ferrucci-3 wrote: autoDeploy is set to true by default in tomcat 6, make sure that this attribute is set to true in the conf/server.xml. If it is set to true, then no matter if you're re-deploying a packed or un-packed war, it will re-deploy should the timestamps on the web deployment descriptor change. On Wed, Jul 30, 2008 at 5:30 PM, hisameer [EMAIL PROTECTED]wrote: Hello Everyone I am using the following versions : Eclipse Version : Ganemede Tomcat Sysdeo Plugin(version 3.2.1) Tomcat Server(version 6.0.16) I have a build.xml file created which basically puts all the contents of a webproject.war into the location /workspace/dist/webproject or I can say I have an exploded war. I don't know what should I do inorder to deploy that exploded war to the tomcat server. Also I want to get rid of starting and stoping the server over and over again. I should be able to delete the previous exploded war file and place the new one without stopping the server. Previously I was creating a war file and I was stopping the server manually and then I was deleting the war file under /webapps folder of Tomcat and then I was placing the new war file there and then I had to start the server again. But now as the project is growing big and we want to have the flexibility in our project. We need the help regarding HOT Deployment. I read some online tutorials and tried to use them but no progress so for. Can you please tell me step by step process to achieve that goal. Right now, I have the functionality of deleting the previous exploded war file and making a new exploded war file using my build.xml and placing it into the /workspace/dist/ folder if there is some additional functionality needed please do let me know related to build. Thanks for YOUR help in advance . Please help me! -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18743255.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Signed, Alessandro Ferrucci :) -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18755883.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.16 serving 40K jpg files
Hi Markus, --- On Thu, 7/31/08, Markus Schönhaber [EMAIL PROTECTED] wrote: From: Markus Schönhaber [EMAIL PROTECTED] Subject: Re: Tomcat 6.0.16 serving 40K jpg files To: users@tomcat.apache.org Date: Thursday, July 31, 2008, 1:28 PM Tommy Pham wrote: http error or Java exception. I can upload the image fine and it will display any jpg ~40k or less. If the image size is larger, it doesn't show. I tried to browse the 40k+ image directly instead of the image tag, it doesn't show also. Does anyone know why is this? I tried google for problem but unable to find any. The development platform is WinXP x64 JDK6 1.6.0_06, Tomcat 6.0.16. The default installation configurations have not been modified. Although the limit being ~40k hints against this you might have run into https://issues.apache.org/bugzilla/show_bug.cgi?id=44494 Try to run the webapp on Tomcat 6.0.18, which was released today and where the above bug should be fixed. Regards mks Thanks for the reply. Yup, 6.0.18 works!! :) Thanks again, Tommy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Windows Server 2008 fails to stop completely
I figured it out, it was a problem with our SSL setup. Thanks for the help. - Original Message From: Steve Ochani [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, July 30, 2008 7:53:29 PM Subject: Re: Tomcat on Windows Server 2008 fails to stop completely On 30 Jul 2008 at 14:49, Matt Cosentino wrote: I'm setting up a new server with Tomcat 6.0.16 running on Windows Server 2008 with version 1.1.14 of the native DLL. When I stop the service it seems to stop, but the process does not end. I have to then end the process manually before I can start the service again. I've narrowed it down to the native DLL, since removing it seems to fix the problem. I've used the native DLL under previous versions of Windows, so is there some incompatibility between the native DLL and Windows Server 2008? I haven't used Tomcat on server 2008 but I don't see why there would be a problem. Have you looked in the event logs to see if there is a logged error? -Steve O. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up Comet on Tomcat 6
I took your servlet, compiled it, put it in WEB-INF/classes/testing/comet then in web.xml I put servlet servlet-nametestcomet/servlet-name servlet-classtesting.comet.CometConnection/servlet-class /servlet servlet-mapping servlet-nametestcomet/servlet-name url-pattern/comet/url-pattern /servlet-mapping server.xml has Connector port=8080 protocol=org.apache.coyote.http11.Http11NioProtocol connectionTimeout=1 tomcatAuthentication=false keepaliveTimeout=5000 backlog=50 maxThreads=300 / hit http://localhost:8080/comet with my browser, output is Comet test servlet initialized. Comet test initialized. Received event BEGIN Filip Talal Rabaa wrote: package testing.comet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.catalina.CometEvent; import org.apache.catalina.CometProcessor; public class CometConnection extends HttpServlet implements CometProcessor { public CometConnection() { System.err.println(Comet test servlet initialized.); } public void init() { System.err.println(Comet test initialized.); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { System.err.println(doGet called.); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { System.err.println(doPost called.); } public void event(CometEvent cometEvent) throws IOException, ServletException { System.err.println(Received event + cometEvent.getEventType().toString()); } protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, You must be using the APR or NIO connector to get the event method called.); } } -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 1:28 PM To: Tomcat Users List Subject: Re: Setting up Comet on Tomcat 6 send us your test class - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
Do I need to have Apache mod_jk connector for this to work? Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761228.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Newbie
Hey all, i'm sort of new to Tomcat. I am trying to add a sub-folder to my website. Basically, I already have HTTP://website/arsys. I want to add a HTTP://website/dev. I found, in the conf/catalina that there was an arsys.xml that stated the path as /arsys, and told the installation path to the application. I can copy this, rename the path to /dev, and keep the website link the same, but then I don't have any control of the content of hte page. Going to http://website/dev will just do the same thing that going to http://website/arsys will do. I need to be able to drop in a different index.htm file in the /dev directory of my website so that I can control what content the users see. In IIS, I can create a folder to store this. I'm trying to figure out how to do this in Tomcat, but am not having very much luck. Any help is greatly appreciated! Thanks. -- View this message in context: http://www.nabble.com/Tomcat-Newbie-tp18761326p18761326.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
nilanthan wrote: Do I need to have Apache mod_jk connector for this to work? No. You can do it all just with Tomcat. Mark Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment Using Tomcat
This assumes that the manager application has been correctly configured for authentication, rarely the case. What did you mean by I cannot delete them unless until I stop the server. Is it some permissions issue? Why can't you delete those files? -- Signed, Alessandro Ferrucci On Thu, Jul 31, 2008 at 1:44 PM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: hisameer [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, July 31, 2008 4:29 PM Subject: Re: Hot deployment Using Tomcat Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the previous .war file and the exploded war (which is exploded by tomcat) from webapps directory I cannot delete them unless until I stop the server. I want to do this on the fly. This is where I am failing. Try this... maybe it does what you want http://localhost:8080/manager/deploy?localWar=file://PathToYourUnpackedWarpath=/ContextNameYouWant and thats it... TC should do the rest ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- Alessandro Ferrucci-3 wrote: autoDeploy is set to true by default in tomcat 6, make sure that this attribute is set to true in the conf/server.xml. If it is set to true, then no matter if you're re-deploying a packed or un-packed war, it will re-deploy should the timestamps on the web deployment descriptor change. On Wed, Jul 30, 2008 at 5:30 PM, hisameer [EMAIL PROTECTED]wrote: Hello Everyone I am using the following versions : Eclipse Version : Ganemede Tomcat Sysdeo Plugin(version 3.2.1) Tomcat Server(version 6.0.16) I have a build.xml file created which basically puts all the contents of a webproject.war into the location /workspace/dist/webproject or I can say I have an exploded war. I don't know what should I do inorder to deploy that exploded war to the tomcat server. Also I want to get rid of starting and stoping the server over and over again. I should be able to delete the previous exploded war file and place the new one without stopping the server. Previously I was creating a war file and I was stopping the server manually and then I was deleting the war file under /webapps folder of Tomcat and then I was placing the new war file there and then I had to start the server again. But now as the project is growing big and we want to have the flexibility in our project. We need the help regarding HOT Deployment. I read some online tutorials and tried to use them but no progress so for. Can you please tell me step by step process to achieve that goal. Right now, I have the functionality of deleting the previous exploded war file and making a new exploded war file using my build.xml and placing it into the /workspace/dist/ folder if there is some additional functionality needed please do let me know related to build. Thanks for YOUR help in advance . Please help me! -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18743255.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Signed, Alessandro Ferrucci :) -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18755883.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
Thanks alot Ken. Just got it working. ww.. so easy now..lol..but thansk again for all your time and help. Mark Thomas-18 wrote: nilanthan wrote: Do I need to have Apache mod_jk connector for this to work? No. You can do it all just with Tomcat. Mark Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761748.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address bar shows ip instead of domain name
Thanks to Mark for the last bit. On Jul 31, 2008, at 3:27 PM, nilanthan wrote: Thanks alot Ken. Just got it working. ww.. so easy now..lol..but thansk again for all your time and help. Mark Thomas-18 wrote: nilanthan wrote: Do I need to have Apache mod_jk connector for this to work? No. You can do it all just with Tomcat. Mark Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/address-bar-shows-ip-instead-of-domain-name-tp18694567p18761748.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Newbie
This sounds like you're simply trying to deploy another webapp with the context root of /dev. Am I mistaken? or do you want to put a folder inside the arsys webapp called dev, but want dev to have its own context root? Please explain in more detail. -- Signed, Alessandro Ferrucci Does your webapps directory look like the following: On Thu, Jul 31, 2008 at 3:06 PM, Mr Junior [EMAIL PROTECTED] wrote: Hey all, i'm sort of new to Tomcat. I am trying to add a sub-folder to my website. Basically, I already have HTTP://website/arsys. I want to add a HTTP://website/dev. I found, in the conf/catalina that there was an arsys.xml that stated the path as /arsys, and told the installation path to the application. I can copy this, rename the path to /dev, and keep the website link the same, but then I don't have any control of the content of hte page. Going to http://website/dev will just do the same thing that going to http://website/arsys will do. I need to be able to drop in a different index.htm file in the /dev directory of my website so that I can control what content the users see. In IIS, I can create a folder to store this. I'm trying to figure out how to do this in Tomcat, but am not having very much luck. Any help is greatly appreciated! Thanks. -- View this message in context: http://www.nabble.com/Tomcat-Newbie-tp18761326p18761326.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/mod_jk serves random files from tomcat
As I mentioned upgrading to mod_jk 1.2.26 was very easy. Unfortunately, Tomcat is now crashing with An unexpected error has been detected by HotSpot Virtual Machine. # SIGSEGV (0xb) at pc=0xb7aeaf7b, pid=19887, tid=2991246224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing) # Problematic frame: # V [libjvm.so+0x2ccf7b] # There's a lot more. Also, here are the jvm args: jvm_args: -Djava.library.path=/usr/local/apr/lib -Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager -Djava.util.logging.config.file=/usr/share/tomcat5/conf/logging.properties -Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -Dcatalina. base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5 -Djava.io.tmpdir=/usr/share/tomcat5/temp java_command: org.apache.catalina.startup.Bootstrap start Do you believe these are related to the mod_jk upgrade? It's happened twice (once on each server) since the upgrade that was made 2 weeks ago. Please, let me know if you need anymore information. Thanks, Dave Rainer Jung-3 wrote: dave.smith schrieb: Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't have been easier. It will probably take me a couple of days before I can get this done in production, though. I terminate all HTTPS requests before they get to the web server, so from what you have described, it is probably safe to disable the APR connector. How do I disable it, though? I will look into disabling this after I have updated mod_jk in production. Locate the tcnative shared object file (tcnative.so or tcnative-1.so) and renme it, so that the linker loader does not find it (e.g. add an underscore at the end of the file name). Then during the next startup, Tomcat should emit an info level log message telling you, that it couldn't find the lib. Here's the full stack trace for that exception, displayed in my Tomcat logs: Jul 10, 2008 10:06:50 PM org.apache.catalina.connector.Request parseParameters WARNING: Exception thrown whilst processing POSTed parameters java.io.IOException: Socket read failed at org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037) at org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1158) at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1090) at org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1228) at org.apache.coyote.Request.doRead(Request.java:419) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:280) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193) at org.apache.catalina.connector.Request.readPostBody(Request.java:2400) at org.apache.catalina.connector.Request.parseParameters(Request.java:2379) at org.apache.catalina.connector.Request.getParameterNames(Request.java:1047) at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:369) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1225) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:444) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:472) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286) at java.lang.Thread.run(Thread.java:595) OK,
Re: Tomcat Newbie
I need dev to have its own context root. The only file I will have in /dev will be a redirect to the arsys webapp, so i don't need a totally new webapp. I just need to be able to have an http://server/dev instead of http://server/arsys/dev. Thanks Alessandro Ferrucci-3 wrote: This sounds like you're simply trying to deploy another webapp with the context root of /dev. Am I mistaken? or do you want to put a folder inside the arsys webapp called dev, but want dev to have its own context root? Please explain in more detail. -- Signed, Alessandro Ferrucci Does your webapps directory look like the following: On Thu, Jul 31, 2008 at 3:06 PM, Mr Junior [EMAIL PROTECTED] wrote: Hey all, i'm sort of new to Tomcat. I am trying to add a sub-folder to my website. Basically, I already have HTTP://website/arsys. I want to add a HTTP://website/dev. I found, in the conf/catalina that there was an arsys.xml that stated the path as /arsys, and told the installation path to the application. I can copy this, rename the path to /dev, and keep the website link the same, but then I don't have any control of the content of hte page. Going to http://website/dev will just do the same thing that going to http://website/arsys will do. I need to be able to drop in a different index.htm file in the /dev directory of my website so that I can control what content the users see. In IIS, I can create a folder to store this. I'm trying to figure out how to do this in Tomcat, but am not having very much luck. Any help is greatly appreciated! Thanks. -- View this message in context: http://www.nabble.com/Tomcat-Newbie-tp18761326p18761326.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-Newbie-tp18761326p18762060.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installation Problems
I have been having some trouble with my tomcat installation. I am using tomcat 6 which I downloaded with the TeamCity package, running on OpenSuSE 10.3. I am fairly certain that TeamCity is not my problem, as the problem persists even when TeamCity is not running. The problem itself is that when I start the tomcat server and try to access it, via http://localhost:8111/ (8111 is the port that is set in the catalina.properties file, and the one that I have opened up in my firewall), I get the 404 message saying that the resource (/) was not found. I have tried removing the whole thing and starting over, and that didn't seem to help. I've rebooted, checked for hung tomcat instances, and done just about everything else I could think of. If anyone has advice for me I'd really appreciate it. Thanks! -- View this message in context: http://www.nabble.com/Installation-Problems-tp18762261p18762261.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP 404 with a %22 at the end of the URL, what does it mean ?
I get this error message when I try to go from one jsp to another. For example, I have a welcome.jsp opening page. I have a simple Trail Reviews button that when I click it simply goes to another jsp, trailReview.jsp. At this point, the url is http://localhost:8080/project-1c/trailReview.jsp?. Everything's fine so far. Then, I have a button to enter a new review, which would go to another jsp page titled trailReviewNew.jsp . But when I click on that button to go to the page to enter a new review, instead I get HTTP Status 404 /project-1c/trailReview.jsp%22 The requested resource is not available. The %22 is probably what's causing that, but I'm not sure what the %22 means in the first place. Can anybody please explain this to me ? Thanks, Adam Posner
How to make tomcat to use javaw.exe instead of java.exe?
I am using Apache Tomcat 5.5.26. Is there a way we can force catalina.bat to use javaw.exe instead of java.exe without changing that file? I mean using some startup parameter or environment varibale. TIA. - Bharat
Re: Hot deployment Using Tomcat
There is no permission issue as for as I know. I am using the following error : C:\workspace\scripts\build.abstract.xml:23: The following error occurred while executing this line: C:\workspace\scripts\build.xml:27: The following error occurred while executing this line: C:\workspace\scripts\build.xml:20: The following error occurred while executing this line: C:\workspace\scripts\build.xml:9: The following error occurred while executing this line: C:\workspace\tomcat\build.xml:23: Unable to delete file C:\workspace\tomcat\webapps\websupport\WEB-INF\lib\antlr-2.7.6.jar where tomcat is my server directory. I am using sysdeo plugin to start and stop the server. This happens whenever I try to delete all the files when the tomcat is running. Some forums say change the context file under conf/ folder or some say change server.xml file. But still there is no proper solution neither there is not any example shown how would you do it. So this thing amazes me. I am sure there would almost 99% people who are using hotdeploment but I couldn't get a single article which explains how you would do that. Alessandro Ferrucci-3 wrote: This assumes that the manager application has been correctly configured for authentication, rarely the case. What did you mean by I cannot delete them unless until I stop the server. Is it some permissions issue? Why can't you delete those files? -- Signed, Alessandro Ferrucci On Thu, Jul 31, 2008 at 1:44 PM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: hisameer [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, July 31, 2008 4:29 PM Subject: Re: Hot deployment Using Tomcat Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the previous .war file and the exploded war (which is exploded by tomcat) from webapps directory I cannot delete them unless until I stop the server. I want to do this on the fly. This is where I am failing. Try this... maybe it does what you want http://localhost:8080/manager/deploy?localWar=file://PathToYourUnpackedWarpath=/ContextNameYouWant and thats it... TC should do the rest ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- Alessandro Ferrucci-3 wrote: autoDeploy is set to true by default in tomcat 6, make sure that this attribute is set to true in the conf/server.xml. If it is set to true, then no matter if you're re-deploying a packed or un-packed war, it will re-deploy should the timestamps on the web deployment descriptor change. On Wed, Jul 30, 2008 at 5:30 PM, hisameer [EMAIL PROTECTED]wrote: Hello Everyone I am using the following versions : Eclipse Version : Ganemede Tomcat Sysdeo Plugin(version 3.2.1) Tomcat Server(version 6.0.16) I have a build.xml file created which basically puts all the contents of a webproject.war into the location /workspace/dist/webproject or I can say I have an exploded war. I don't know what should I do inorder to deploy that exploded war to the tomcat server. Also I want to get rid of starting and stoping the server over and over again. I should be able to delete the previous exploded war file and place the new one without stopping the server. Previously I was creating a war file and I was stopping the server manually and then I was deleting the war file under /webapps folder of Tomcat and then I was placing the new war file there and then I had to start the server again. But now as the project is growing big and we want to have the flexibility in our project. We need the help regarding HOT Deployment. I read some online tutorials and tried to use them but no progress so for. Can you please tell me step by step process to achieve that goal. Right now, I have the functionality of deleting the previous exploded war file and making a new exploded war file using my build.xml and placing it into the /workspace/dist/ folder if there is some additional functionality needed please do let me know related to build. Thanks for YOUR help in advance . Please help me! -- View this message in context: http://www.nabble.com/Hot-deployment-Using-Tomcat-tp18743255p18743255.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Signed, Alessandro Ferrucci :) -- View this message in context:
Re: HTTP 404 with a %22 at the end of the URL, what does it mean ?
On Thu, Jul 31, 2008 at 3:43 PM, Adam Posner [EMAIL PROTECTED] wrote: /project-1c/trailReview.jsp%22 The requested resource is not available. The %22 is probably what's causing that, but I'm not sure what the %22 means in the first place. It's an escaped quote () mark. Look at where you're generating this URL. HTH! -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deployment Using Tomcat
On Thu, Jul 31, 2008 at 4:17 PM, hisameer [EMAIL PROTECTED] wrote: C:\workspace\tomcat\build.xml:23: Unable to delete file Ah, Windoze --- see the Context attributes antiJARLocking and antiResourceLocking. HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with tomcat-native 1.1.10 and tomcat 6.0.14
I have the same problem, but with tomcat 6.0.16 and tomcat-native 1.1.14. I installed the libapr1, libapr1-dev, libssl, libssl-dev packages from ubuntu hardy heron, and there were no problems when building the native library. I added export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path to library to bin/startup.sh. And that's it. When I start tomcat, using startup.sh, I get the same logs - Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.14. Aug 1, 2008 11:44:49 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. And that's all she wrote. The process is running, but is not listening on a port. Mihai, did you solve this problem? Or does anyone else have a clue as to what's wrong? Thanks, Stefan Mihai COSTACHE wrote: i have a working tomcat 6.0.14 and now i want to use tomcat-native beacause it use openssl and not java-ssl so .. 1) i installed tomcat-native 1.1.10 2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile, SSLPassword and SSLProtocol=TLSv1 to HTTPS Connector ... for HTTP Connector nothing has changed) 3) started tomcat again ... no error .. but not tcp sockets (for 8080 and 8443 ports) only this i have in catalina.out -- Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.10. Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. --- the tomcat is running but it doesn't listen on any port !!! --- bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start tomcat2736 58.8 3.3 675280 34696 pts/0Sl 19:50 0:02 \_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start -- -- View this message in context: http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p18767329.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RealmBase's 'Container' requirement
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Securityfilter includes a feature that allows users to wrap Tomcat Realm classes (Such as DataSourceRealm, JAASRealm, etc.) so they don't have to implement their own. The adapter that provides the plumbing between the sf code and the tc code is short and sweet, but it has been flawed for some time due to tc's RealmBase requirement that setContainer() be called before the Realm is brought into service. Since we are instantiating these objects outside of Tomcat (that is, where we don't have any references to Tomcat internal objects), I'm wondering about a few things. First, does anyone know if the Container used by the Realm actually needs to be the currently-running Tomcat Container object? Can we just create a dummy one and let it go? Unless you pre-registester the Realm with JMX, the dummy needs to extend ContainerBase. But otherwise, it just needs to implement getLogger() and getContainerSuffix() (not needed if you JMX register yourself) to have a dummy container. Note: I haven't tried this myself, just looked for references to the Container in the Tomcat 6 code. As such, there is no promise that this is 100% accurate ;). Regardless of whether a dummy Container is useful, is there a way to get a reference to the currently-running Tomcat Container object? We may be able to get to objects such as the ServletContext in order to complete setup of these objects in memory before they are actually used. You can get this from the managedResource attribute on the MBean corresponding to the Container via JMX. Tomcat stand-alone has standard naming conventions for the ObjectName, so this should be too hard to work out (but J2EE Containers may have their own naming conventions for Tomcat MBeans). Depending on the Tomcat version and/or configuration, the Container class may not be visible to your ClassLoader. So there is no guarantee that you could call setContainer for a Realm that was created by your webapp. You will also likely have problems if you are running Tomcat with a SecurityManager. Any help would be very much appreciated. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiRxr8ACgkQ9CaO5/Lv0PBehwCgliZu934iFl7UgtNub9JbSnIF l0sAn1RSV0ZmT5uG46A2be24qhG66HJO =LBPD -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: is it possible more than 1 tomcat in single system?
I have installed JDK1.5 in my local system, And 1 tomcat5.0 installed in c drive. during the installation, i have given port 8080 And 1 tomcat5.0 installed in e drive. during the installation, i have given port 8081 during both tomcat installation, i have specified c:\program files\java\jdk1.5 path. First i have started c: tomcat startup.bat, it is started. after i tried d: tomcat start.bat, it is not started. But I got exception like StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind For Both tomcat's installation, i have given the same JDK1.0 path only. Is there any need to install one more JDK1.5 (each tomcat needs, separate jdk1.5 or not ?) Please advise Peter Crowther wrote: From: Christian Andersson [mailto:[EMAIL PROTECTED] Peter Crowther skrev: If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. And what happens if you get one rough application stealing all the memory? probably all your applications will stop functioning.. Yes. Certainly memory leaks are much more troublesome in a single JVM. For me it is always better to have 1 application crash, then 1 Given a high enough hardware budget that I can spend on RAM, I agree entirely :-). Not all of us have that luxury. I'm sure there are still finance directors out there with Gates' 640k is enough for anyone quote framed on their wall, right by the stone that you have to get blood out of before you get any budget! it is also easier to see which application is the guilty one if only that application crashes.. Much easier! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/is-it-possible-more-than-1-tomcat-in-single-system--tp18416418p18768316.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is it possible more than 1 tomcat in single system?
search your tomcats server.xml file for 8005 and you will se that this port has been declared at the very top Server port=8005 shutdown=SHUTDOWN this is the so called shutdown port, you just have to change this in your second tomcat to for example 8006. Edi skrev: I have installed JDK1.5 in my local system, And 1 tomcat5.0 installed in c drive. during the installation, i have given port 8080 And 1 tomcat5.0 installed in e drive. during the installation, i have given port 8081 during both tomcat installation, i have specified c:\program files\java\jdk1.5 path. First i have started c: tomcat startup.bat, it is started. after i tried d: tomcat start.bat, it is not started. But I got exception like StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind For Both tomcat's installation, i have given the same JDK1.0 path only. Is there any need to install one more JDK1.5 (each tomcat needs, separate jdk1.5 or not ?) Please advise Peter Crowther wrote: From: Christian Andersson [mailto:[EMAIL PROTECTED] Peter Crowther skrev: If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one Tomcat/JVM, the applications all use the same (larger) memory pool. And what happens if you get one rough application stealing all the memory? probably all your applications will stop functioning.. Yes. Certainly memory leaks are much more troublesome in a single JVM. For me it is always better to have 1 application crash, then 1 Given a high enough hardware budget that I can spend on RAM, I agree entirely :-). Not all of us have that luxury. I'm sure there are still finance directors out there with Gates' 640k is enough for anyone quote framed on their wall, right by the stone that you have to get blood out of before you get any budget! it is also easier to see which application is the guilty one if only that application crashes.. Much easier! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to enable SSI servlet
Hello, I enabled SSI servlet in CATALINA_HOME/conf/web.xml by uncommenting it. I restarted the tomcat server. Still I see the SSI directives in a x.shtml are not executed.I see no error in catalina.log. Any idea how to check if at all the servelet is loaded in the tomcat container? Any idea what else i need to do to get SSI working? Please do not ask why i need this, this is a part of an assignment so I need to complete it. Thank you. -suman