RE: how to make context path case insensitive
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: how to make context path case insensitive Do you mean that all requests go first through the ROOT app, no matter what ? and that thus a servlet filter placed in the ROOT app would see *all* requests ? No, just requests that do not match known context paths. If a request uses the properly-cased path, it will be delivered directly to that context, and that context's servlet mapping will apply. The filter in ROOT kicks in when no other context matches. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: removal of product name/version
From: Tommy Pham [mailto:[EMAIL PROTECTED] Subject: removal of product name/version I'm looking for a way to remove the product name and/or version from the server header and default http errors (without defining my own custom error-page). You didn't bother to tell us the Tomcat version you're using, so here's the link for the current one: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Look at the server attribute. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AJP Proxying
Stephen Nelson-Smith wrote: My server.xml was not originally written by me, and has been handed down and modified over the ages. It was originally from Tomcat 4.1 This is generally a really bad idea. Due to changes in the syntax and semantics of server.xml over the years, you cannot get reliable behavior by continuing to use older versions of server.xml. You need to take the standard server.xml that comes with the particular Tomcat release you're using and modify it with whatever you need for your environment, such as Resource elements. Blindly adding all the junk from older levels will bite you. Host appBase=/home/sites/home/web liveDeploy=false For example, there is no liveDeploy attribute in current Tomcat versions. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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 monitoring
From: Tokajac [mailto:[EMAIL PROTECTED] Subject: Tomcat monitoring I want to monitor performance of Tomcat server when I'm running an application. Start with these: http://www.lambdaprobe.org http://moskito.anotheria.net You can also use JMX (e.g., JConsole) for much of the information, and there are numerous commercial products available. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rational purify with tomcat 5.5 gives an error
From: Pradeep_ Kumar [mailto:[EMAIL PROTECTED] Subject: RE: Rational purify with tomcat 5.5 gives an error I am using jdk1.5.0_02,tomcat 5.5, and Rational Purify for windows version 2003.06.12.280.000 Build: 5101. The error indicates an internal problem in the JVM. The JVM version you're running is very, very old; I would try it again with the latest 1.5.0_16 and see if the problem has been addressed. Alternatively, try 1.6 if you're willing to upgrade that far. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6.0.12 in windows vista 64 bits does not start
From: Mr Popo Sama [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start sorry it is tomcat version 6.0.18 not .12 - Mensaje original De: Mr Popo Sama [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: miércoles 13 de agosto de 2008, 14:42:27 Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start Hi, i am having trouble starting up the tomcat server in windows vista 64bits with java 64 You are likely using the 32-bit versions of the service wrapper. Get the 64-bit ones here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Change the 5 in the names to 6, and replace the existing ones in Tomcat's bin directory with the renamed downloaded ones. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading environment variable from Tomcat
From: Sureka, Sushil [mailto:[EMAIL PROTECTED] Subject: RE: Reading environment variable from Tomcat Because we are using the app more like a standalone application Then don't run it as a service, just put the startup script call in: C:\Documents and Settings\[userid]\Start Menu\Programs\Startup This will start Tomcat when the user logs on and run it under that user account. There's also a registry key you can use if you don't want to expose the script in the above directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default error page generation logic in tomcat
From: Raghavendra Datt [mailto:[EMAIL PROTECTED] Subject: Re: Default error page generation logic in tomcat I have this tomcat running on linux and I don't find catalina.properties any where in the tomcat folders. A red flag just went up. Are you using a real Tomcat, or a 3rd-party repackaged version? If the latter, it probably has scattered Tomcat files all over the place, and will be prone to numerous errors and stability issues. Suggest removing the Tomcat you have and downloading a real one from http://tomcat.apache.org. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database application
From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Subject: Re: database application Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... (Sorry I'm late, our marvelous corporate e-mail server didn't let the original message through.) Being precise is one of the things they taught us in Engineering at the real school 70 odd miles west of you... (Can't resist getting a dig in when a bulldog speaks :-) Seriously, Eleonora...You should read here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html If she's using 5.5, then the config given is sadly out of date and conflicts with best practice (Logger elements, Context elements in server.xml, etc.). If it's a 5.0 version, then it's not supported, so moving up would be in order. What's even worse is the installation directory looks like one used by 3rd-party repackaged Tomcat versions, so getting it to work may be impossible. Installing a real Tomcat from http://tomcat.apache.org should probably be the first order of business. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat admin webapp configuration with mod_jk
From: Adam Gordon [mailto:[EMAIL PROTECTED] Subject: Tomcat admin webapp configuration with mod_jk I've downloaded and installed (correctly, I think) the admin web app but am having trouble configuring Apache and Tomcat to recognize that the admin webapp is present. Obviously, it's not correctly installed, or you wouldn't be having a problem. Don't suppose you want to give us a hint about what version of Tomcat you're using? Guessing from the contents of server.xml is rather pointless. Exactly what steps did you take to install the admin web app? Where is Tomcat installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JConsole
From: Tokajac [mailto:[EMAIL PROTECTED] Subject: Tomcat JConsole $ CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=test-idc.internet2.edu; $ export CATALINA_OPTS; and i put that in catalina.but What platform are you on? The first part of your settings is for Linux/UNIX, but catalina.bat is for Windows. How are you starting Tomcat? If Tomcat and JConsole are running on the same box, all you need is the -Dcom.sun.management.jmxremote; the other parts are for remote monitoring only. You do not need the java.rmi setting at all. To monitor a Tomcat on Linux, I do the following before running startup.sh: export CATALINA_OPTS=-Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false (All of the above is on one line, of course.) Once Tomcat is running, I start JConsole on my Windows box, and simply enter host:8999 in the Remote Process slot of the New Connection dialog box. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hot redeploying a WAR - HTML is not refreshed
From: Peter Desjardins [mailto:[EMAIL PROTECTED] Subject: Re: Hot redeploying a WAR - HTML is not refreshed I did look more closely at what Tomcat is doing when it hot redeploys my WAR file. Exactly how are you accomplishing this hot redeployment? Does Tomcat really shut down the application and reload it? Since you're on a Windows box, you may want to experiment with the antiResourceLocking attribute of your webapp's Context element - but watch out for the caveats mentioned in the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Standard%20Implementation - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to place context configuration
From: Robert Dietrick [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration I would very much prefer to use only the one in mywebapp/META-INF/contex.xml I hope the above is a typo, because if it's really in contex.xml Tomcat won't look at it. But this doesn't seem to work. It works fine for me; I put the Context element in one location or the other, not both. Note that Tomcat will sometimes copy the one from META-INF/context.xml into conf/Catalina/[host]/[appName].xml during a deployment, and that's likely what you're seeing. Plus, it just seems idiotic to need to declare the context and its resources in two locations. Never had to do that. Suggest that you stop Tomcat, remove the one in conf/Catalina/[host], clean out the work directory for the webapp, clean out the expanded webapp so all you have left is the .war file, and restart Tomcat. You will likely see the one in conf/Catalina/[host] recreated from the META-INF/context.xml, since Tomcat wants to be able to read the file directly. A real undeployment of the webapp should delete the one in conf/Catalina/[host]; if you're updating the .war without doing an undeployment first, you're breaking the rules, and all bets are off. Does either of these files need a 'docBase' or 'path' parameter? It doesn't seem to make a difference either way. You may not use path or docBase in either location; if you're lucky, they'll just be ignored - don't chance it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to place context configuration
From: Angus Mezick [mailto:[EMAIL PROTECTED] Subject: RE: where to place context configuration Am I the only one that is REALLY disturbed about that idea of REQUIRING two identical files to run an app? Probably, because Tomcat does not require that. You may place the Context element in either location, but Tomcat *may* copy the one from META-INF/context.xml to conf/Catalina/[host] so it can access it directly. Proper undeployment will remove the copy. If you're doing a brute force replacement of a .war rather than a real undeployment, you deserve what you get. You have the option of placing the webapp's Context element in conf/Catalina/[host]/[appName].xml so that you can override the one packaged in the .war file - often necessary with prepackaged apps that might require special configuration for a particular site. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to place context configuration
From: Len Popp [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? Depends on how the redeployment is done. If the webapp is specifically undeployed, then all traces of it are removed, including the conf/Catalina/[host]/[appName].xml file; see Mark T's message for details: http://marc.info/?l=tomcat-userm=121873999115208w=2 If you just want to replace the webapp, then dropping in a new .war file will not lose the element in conf/Catalina/[host]/[appName].xml file, but things may not be cleaned up properly, especially on Windows systems where the anti-locking mechanisms are employed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to place context configuration
From: Mark H. Wood [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration Is there a page somewhere which documents this? I don't think so, at least not in sufficient detail. Mark T's recent message covers the steps: http://marc.info/?l=tomcat-userm=121873999115208w=2 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where to place context configuration
From: Len Popp [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration But earlier you said: if you're updating the .war without doing an undeployment first, you're breaking the rules, and all bets are off. Yes, that was probably a bit excessive. Is there someone who knows for sure how it was *designed* to work? Again, I think Mark T's message documents it fairly clearly: http://marc.info/?l=tomcat-userm=121873999115208w=2 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL rewrite!!!
-Original Message- From: Shahar Cohen [mailto:[EMAIL PROTECTED] Subject: URL rewrite!!! Can anyone tell me how can I configure URL rewrite in tomcat 5.5. Try this: http://tuckey.org/urlrewrite/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reloadable problem with filters
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: RE: reloadable problem with filters I'm actually getting an error in catalina.out *during compilation* (see log extract below). Are you compiling into the deployment directory of an active application? I don't know how you could ever make that work reliably, especially if more than one class is compiled at a time. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to tell Tomcat to use an additional classpath other thanweb-inf/classes?
From: swimming_rabbit [mailto:[EMAIL PROTECTED] Subject: How to tell Tomcat to use an additional classpath other thanweb-inf/classes? Does anyone know of a way to tell Tomcat to use an additional classpath (other than WEB-INF/classes) when loading an application? (The discussion below is based on Tomcat 6, since you didn't bother to tell us the version you're using.) You can put the classes in Tomcat's lib directory, and they'll be handled by the common loader rather than the webapp loader. If you don't want to pollute that directory, you can enable the shared loader in conf/catalina.properties and use whatever directory you want. The downside of the above is that the classes do not come and go with the webapp, so that may introduce problems during redeployment if you don't stop and start Tomcat. Alternatively, you can write a simple class loader that extends WebappLoader, specific to the webapp, to handle your additional directory. You can specify this class loader with the loaderClass attribute of the Loader element nested inside the webapp's Context element. Look here for some info: http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html Tomcat already has an extension to WebappLoader that you might be able to use: org.apache.catalina.loader.VirtualWebappLoader You specify the additional paths via the virtualClasspath attribute in your Context element. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reloadable problem with filters
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: RE: reloadable problem with filters On my development machine, I do compile into the same directory that I'm running from. You could try turning off autoDeploy and then manually initiate a redeployment when the compilations are done. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6.0.18 JavaEE 5/EJB3.0
From: Tommy Pham [mailto:[EMAIL PROTECTED] Subject: Tomcat 6.0.18 JavaEE 5/EJB3.0 I think it's because of the javaee.jar causing conflict with tomcat's jar files. Correct; you don't want to have javaee.jar (or its predecessor, j2ee.jar) anywhere near Tomcat. You can try to extract the necessary packages from javaee.jar and place them in Tomcat's lib directory. Haven't tried it myself; we normally use JBoss for EJBs. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to tell Tomcat to use an additional classpath other than web-inf/classes?
From: Dave Bender [mailto:[EMAIL PROTECTED] Subject: RE: How to tell Tomcat to use an additional classpath other than web-inf/classes? Why not add the path to the CLASSPATH variable in the 'TOMCAT_HOME/bin/setclasspath.sh' script (or setclasspath.bat for Windows)? Because that prevents the webapp from being reloaded without starting Tomcat. It also introduces the distinct possibility of duplicating classes in the classloader hierarchy. Putting anything in CLASSPATH other than the bare minimum Tomcat itself (not any webapp) actually needs is a Really Bad Idea. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Native library for Windows
From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Native library for Windows Hmmm...on Windows, what is the difference between java.library.path and the Windows environmental variable PATH? By default, none. I have my Java Classpath set to this, which contains my bootstrap.jar. Hopefully that's what shows in the tomcat6w.exe program, not something you're setting in the system environment variables. (If you do have a CLASSPATH environment variable, get rid of it - it will only break things.) Should I just set, via JAVA_OPTS, my java.library.path to the same directory, since that's where I put my tcnative-1.dll file? -Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin Don't bother, the JVM is already looking there, as shown by the INFO message. I don't want to break anything. Setting the java.library.path won't make Tomcat stop looking at other libraries in other locations (like the built-in /lib directory) will it? No, it won't break anything, but it's also not going to make it work. The java.library.path is used for native library DLLs only, not for classes. Check for ownership and access permissions on the file - insure that the account the Tomcat service is running under can access the DLL. By any chance, is this a 64-bit version of Windows Server? If so, and you're using a 64-bit JVM, you'll need the 64-bit version of the DLL. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with JNDI environment entry resources
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Problem with JNDI environment entry resources Can anyone suggest what I might have missed? What happens if you follow the (strongly) recommended practice of not putting Context elements in server.xml? If you don't want to put the Context inside your .war file (understandable), put it in conf/Catalina/localhost/jndistring.xml, and remove the illegal docBase and path attributes. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and images
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 and images How can I fit the images into this beacuse I don't quite follow. Do what Filip suggested; create a Context element in conf/Catalina/localhost/images.xml with this value: Context docBase=/absolute/path/to/images/ This creates another webapp named images (specified by the name of the .xml file) located outside of Tomcat's directory tree. Point your static content URLs to /images/[filename.type] to have Tomcat's DefaultServlet deliver them. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to build tomcat 6.0.18
From: Jack Woehr [mailto:[EMAIL PROTECTED] Subject: Trying to build tomcat 6.0.18 Trying to build tomcat 6.0.18 ... The first question: why are you trying to build it? It's pure Java, so the binary downloads will run on any platform. does not override abstract method TcreateQueryObject(java.lang.ClassT,javax.sql.DataSource) in javax.sql.DataSource You need to build with a 1.5 JDK, even if you're going to run on 1.6 (setting source and target is not sufficient - it has to be a 1.5 JDK). Sun added a new method to the javax.sql.DataSource interface in 1.6, and Tomcat does not yet implement it. (This is really a JDK versioning issue that Sun needs to resolve, but hasn't yet.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with JNDI environment entry resources
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Re: Problem with JNDI environment entry resources Tomcat 6 docs states that docBase is a valid attribute in this situation. I'll have to check the docs again. However, docBase is only legal when the webapp is stored outside of the Host appBase directory. Otherwise, you risk ending up with double deployment. unless I named the application ROOT, which is less than ideal That is the defined mechanism for specifying the default webapp in current Tomcat levels. Would folks here, then, be inclined to believe that there is a bug in using Context/ within a server.xml file? Placing Context elements in server.xml is really only there for compatibility with older versions of Tomcat. Personally, I'd like to see it made illegal, which would put an end to many potential configuration errors. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with JNDI environment entry resources
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Re: Problem with JNDI environment entry resources Besides, I don't see any other documented way of associating each application with its associated Context/ element within server.xml. Because you're not supposed to put Context elements in server.xml anymore; it works (mostly), but it's strongly discouraged. Don't do it. Then you'd be taking away the only mechanism (that I can see) for pointing to an application as ROOT, without the inelegant renaming of applications as ROOT. Odd viewpoint, since naming the default app ROOT is the most straightforward and elegant mechanism I can think of. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do context.xml Parameter value changes require Tomcat restart?
From: hanan herzog [mailto:[EMAIL PROTECTED] Subject: Do context.xml Parameter value changes require Tomcat restart? I am using context.xml to configure my web application. Where is your context.xml located? It should be under the webapp's META-INF directory. The conf/context.xml file is shared across all webapps and must not be used for individual webapp settings. Changes to that one do require a restart of Tomcat. But when I change values in the context.xml, the application does not see the changes, unless I restart tomcat: You must at least restart the application. Tomcat will normally do this automatically for you when you update the webapp's META-INF/context.xml, and you should see log entries to that effect. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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 (Unable to find servlet or load servlet jar from a clientjar)
From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I have looked at the web.xml in the /usr/apache-tomcat-6.0.18/conf directory. That's not a good example, since it contains settings shared by all webapps. Look at a WEB-INF/web.xml for a specific webapp, such as the one for the manager (ignore the security-related stuff). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do context.xml Parameter value changes require Tomcat restart?
From: hanan herzog [mailto:[EMAIL PROTECTED] Subject: RE: Do context.xml Parameter value changes require Tomcat restart? I tried putting the settings in context directories, e.g., conf/Catalina/localhost/context.xml.default . But changes to this did not get picked up either. Hmmm... I just tried it on a stock 6.0.18 running on WinXP, modifying attributes in conf/Catalina/localhost/[appName].xml, and Tomcat automatically redeployed the webapp. Have you changed anything in conf/server.xml or conf/web.xml? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to build tomcat 6.0.18
From: Jack Woehr [mailto:[EMAIL PROTECTED] Subject: Re: Trying to build tomcat 6.0.18 package org.eclipse.jdt.core.compiler does not exist There has been some recent revision of the Eclipse web site that was making it difficult for a script to retrieve the JDT jar. However, I just tried it on my XP laptop (with cygwin and ant 1.7.0; no access to Linux where I am at the moment) and it worked fine. Look in the tomcat6-deps/jdt directory for jasper-jdt.jar; if it's not there, the download failed, and you may need to pull down the .zip file manually. 1. The download target failed to download an artifact Probably. 2. There's an option -Dwithout.eclipse=true or somesuch I don't think there is for Tomcat builds, since at least some of the JSPs get pre-compiled during the process. 3. I'm losing my mind in some fashion :) Always a possibility in this day and age... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do context.xml Parameter value changes require Tomcat restart?
From: hanan herzog [mailto:[EMAIL PROTECTED] Subject: RE: Do context.xml Parameter value changes require Tomcat restart? Changing Parameter values in appName.xml works: redeployment occurs, Parameter (InitParameter) values are updated as expected. Good, because that's what I found to be true. However, changing values in context.xml.default still does not work, which was what was stumping me. Also changes in conf/context.xml do not get updated in a running Tomcat--as far as I can tell. Is this by design? Highly likely. These files are global, so changing values in them would require redeployment of all webapps - you might as well just restart Tomcat in that case. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do context.xml Parameter value changes require Tomcat restart?
From: hanan herzog [mailto:[EMAIL PROTECTED] Subject: RE: Do context.xml Parameter value changes require Tomcat restart? 1. If the new values are not going to be picked up from context.xml.default why does a change in conf/engine/host/context.xml.default or conf/context.xml cause a redeployment Ah - didn't know that redeployment occurred. In that case, this does sound like a bug. 2. I could have multiple engines configured, and the context.xml.default is a per-engine config file. True, although that is rather unusual. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with running 64-bit Tomcat 6 as a Windows service
From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Problems with running 64-bit Tomcat 6 as a Windows service I didn't use the service.bat install though. I installed the service manually with the sc.exe command. Is there any particular reason you avoided that rather critical step? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: R: R: Problems with tomcat in debian
From: marcos gonzalez [mailto:[EMAIL PROTECTED] Subject: Re: R: R: R: Problems with tomcat in debian Well, this file not exists, each application needs and xml file there? No, each application does not. When a Context element is needed at all, it normally goes into the META-INF/context.xml file of the webapp. If you wish to override that one, or if your webapp is deployed outside of the Host appBase directory, then place the Context element in conf/Catalina/[host]/[appName].xml; note that the path attribute must not be used, and the docBase attribute is only allowed when the webapp is not under the Host appBase. There isn't a default configuration to load all the new applications? What you're doing does work with a real Tomcat, as you have found out. The 3rd-party repackaged junk creates problems for many, many users. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: R: R: Problems with tomcat in debian
From: Leandro Dardini [mailto:[EMAIL PROTECTED] Subject: R: R: R: R: Problems with tomcat in debian I don't know if a file is needed, but I usually create it and all runs well. Please stop giving bad information. The conf/Catalina/[host]/[appName].xml file is only needed when you wish to override an existing META-INF/context.xml file in the webapp, or the webapp is deployed outside of the Host appBase. In other cases, such as the situation posed by the OP, it is not necessary. This is mine for lambda probe, named probebinj.xml ?xml version=1.0 encoding=UTF-8? Context privileged=true allowLinking=true docBase=/usr2/context/probe reloadable=false path=/probebinj /Context The path attribute is illegal here, and must not be used. If you're lucky, Tomcat will just ignore it; if you're not, behavior will be unpredictable. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.
From: Eric Berry [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war. (Just expanding a little on what Mark gave you.) Why recommend the use of the context.xml if it really isn't used? It is used - Tomcat copied the context.xml file from your webapp's META-INF directory to conf/Catalina/[host]/[appName].xml during expansion of the .war file. Your particular Context element has no useful content, however. I always had the impression the name of file was used as a default case when a more specific context.xml wasn't present. No, the path attribute is used only when the Context element is in server.xml, which is strongly discouraged. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User Directories and context.xml?
From: Tim J Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: User Directories and context.xml? Just out of curiosity, does anyone know the motivation for not reading context.xml out of a user's directory? (I apologize for coming in late on this one.) Tomcat does use context.xml out of a webapp's META-INF directory, if the file conf/Catalina/[host]/[appName].xml does not exist. If said file does exist, the context.xml file in META-INF is ignored. What is your Host appBase set to? How do you deploy the webapp? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat loops indefinitely
From: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED] Subject: Tomcat loops indefinitely The problem is that the application has apparently gone into a loop, as this appears to be different threads. Eventually, it runs out of threads, and comes to a halt: What does a thread dump show? (Before taking one, you might want to reduce the number of threads to avoid a lot of clutter in the dump.) You can use the jstack utility from the JDK (among other mechanisms) to get a thread dump of an active JVM. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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 (Unable to find servlet or load servlet jar from a clientjar)
From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Read the servlet spec - a prerequisite for using any servlet container. The Tomcat doc avoids duplicating information contained in the spec. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symlinks in webapps
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: symlinks in webapps The goal is to have the same webapp referenced by two contexts Rather than use symlinks, try using an additional Context element in conf/Catalina/[host]/WebMail2.xml: Context docBase=WebMail / (Include whatever else is needed from the META-INF/context.xml file, if there is one. Do NOT use a path attribute.) Haven't tried this exact situation, but I think it should work... (famous last words). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yet another context logging question
From: Jonathan Mast [mailto:[EMAIL PROTECTED] Subject: Yet another context logging question Foo has a subdirectory bar which I would now like to be it's own Context and AccessLogValue. Such a configuration is not supported - webapps may not be nested. Whatever results you get will be purely accidental and not necessarily repeatable from one Tomcat level to the next. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symlinks in webapps
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: Re: symlinks in webapps it causes my app to start several times, while with a simple symlink I had the same webapp referenced as many times as I wished I don't think that's true - each directory or .war file in the appBase directory will cause a separate application deployment, which is what I thought you wanted. If what you really want is just to have multiple URLs refer to the same (single) webapp, you have a couple of fairly easy choices: 1) Implement a valve or filter that catches references to the alternate URLs and redirects or forwards them to the primary. 2) Create dummy webapps for the alternate URLs that contain nothing but an index.html page that redirects to the primary. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Hosting of Mutliple Domains
From: Alan Hancock [mailto:[EMAIL PROTECTED] Subject: Virtual Hosting of Mutliple Domains I'm running Tomcat 5.5.3 on Red Hat EL 5.1 1) If you're really running that old of a Tomcat version, you need to move up, ASAP. 5.5.3 is almost four years old, and many bugs have been fixed between then and the current 5.5.26. 2) If this is a 3rd-party repackaged version of Tomcat, throw it away and install a real one from tomcat.apache.org. The 3rd-party ones provide no end of grief when doing anything other than the most basic operations. 3) Consult the Tomcat virtual hosting doc: http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html If that doesn't solve your problem, post your server.xml for people to look at. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The requested resource (/manager/) is not available.
From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: The requested resource (/manager/) is not available. Check to see if your webapps directory contains the /manager and /tomcat-docs folders. Also make sure your server.xml file is pointing to the /webapps directory as its starting place. Don't respond to this thread - it dates from over a year ago and was answered within a very short time of the question being asked. Some clown was browsing techienuggets and responded to the initial message without ever reading any of the responses. It's unfortunate that techienuggets works so poorly. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat as a Service on Non-default port
From: Kamal Sheikh [mailto:[EMAIL PROTECTED] Subject: Running Tomcat as a Service on Non-default port Is it possible to install Tomcat as a service and configure it so that it runs on a different port? Ports are configured in the Connector element(s) in conf/server.xml; a restart of Tomcat is required when changing port numbers. If the service doesn't reflect what you're editing, then the service is using a Tomcat installation different from what you think. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: undo undeploying in Tomcat?
From: Cristina Manzano García-Muñoz [mailto:[EMAIL PROTECTED] Subject: undo undeploying in Tomcat? is the application still stored somewhere in the server after undeploying it? Depends on how the webapp was deployed. If it was placed under the Host appBase directory, it will be deleted during undeployment (assuming Tomcat has permission to do so). If it's outside of the appBase, only the conf/Catalina/[host]/[appName].xml file will be removed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JVM per Context
From: Michael Dehmlow [mailto:[EMAIL PROTECTED] Subject: JVM per Context I have multiple contexts that are defined for a given host in my server.xml Placing Context elements in server.xml is strongly discouraged for any current version of Tomcat; however, you didn't bother to tell us what version of Tomcat you're using, so that may or may not be applicable. each context I would like to start up in its own jvm, for dll and enviornment variable reasons. Each Tomcat runs in its own JVM, so you'll need separate installations for each webapp. Look in the RUNNING.txt file for instructions. I've read documentation for tomcat 3.4 that details the use of ajp for communication to achieve this but can't find anything about jvms docs. Since there never has been nor ever will be a Tomcat 3.4, what you were looking at is rather suspect. You will need some sort of front end to route the requests to the different Tomcat instances, which could be httpd or some other forwarding mechanism. Consult the Tomcat connector documentation for whatever level you're using to figure out how to use mod_jk or mod_proxy. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Apache, Tomcat, mod_jk
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars 'Levia' Wesselius Subject: Re: Problem with Apache, Tomcat, mod_jk http://mirroredescape.net/manager/ Tomcat 404 error. You appear to have ignored what you were previously told: that's an invalid URL and it should return a 404. Again, a proper URL is: http://mirroredescape.net/manager/html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JVM per Context
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: JVM per Context If your goal is to run TC with different JVMs have you looked at using each JBM to run embedded TomcatBR This has nothing to do with running an embedded Tomcat. Please don't add confusion to this issue. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat logging properties
From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat logging properties Yep, read through that, but it didn't tell me what those directives actually mean. Anyone have anything else? They specify logging levels for those specific classes, overriding any more generic settings. The FAQ has some good information with links to more detailed docs: http://wiki.apache.org/tomcat/FAQ/Logging - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html entities and urls with spaces
From: Brendan Martens [mailto:[EMAIL PROTECTED] Subject: Re: html entities and urls with spaces Hmmm, not sure this is the issue, both filesystems can read and write files with spaces. It's certainly not the issue - spaces in file names work fine on my Windows box with Tomcat. I really need to figure out a way to not rename all the files... Your original message indicated you might be front-ending Tomcat with httpd; what happens if you send the URL with the %20 encoding direct to Tomcat? I have no trouble doing so on my systems (but I don't have a Linux box available at the moment). Try turning on Tomcat's RequestDumperValve in server.xml; perhaps your front end is decoding the URL, so all Tomcat sees is the part up to the first space. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading Tomcat source code
From: Gorav Chhabra [mailto:[EMAIL PROTECTED] Subject: Re: Reading Tomcat source code Can anyone please guide from where i can download the Source code The link to the downloads for each supported Tomcat version are on the left side of the Tomcat home page: http://tomcat.apache.org This will get you to both binary and source downloads. and in which IDE i can configure to see the code.. Personally, I think IDEs can get in the way of understanding existing code. However, if you want to use one, both NetBeans and Eclipse do a good job of handling Java code. Just set up the project as one with an existing build script, rather than having the IDE create one for you (in NetBeans, that's a Java Free-Form Project; I don't remember what it is in Eclipse). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem http://www.kewlstuff.co.za/test/test.htm What do you see in this test page? Depends on which character encoding I choose to view the page in. For the declared UTF-8, FF3 shows the invalid hex value at that spot in your page. If I override that with say ISO-8859-15, the R in a circle appears. Note that no font is involved here, just the encoding declaration. You need to get over this fixation with fonts - they have absolutely nothing to do with this issue. A font is just a graphical description of how to draw one or more code points on an output device, based on the font designer's take on what each code point should look like. It's the character encoding that tells the message recipient what code point to generate for a given bit pattern; only after the code point is determined does any font get involved to create the visible symbol. This is a great site to get lost in for a few days: http://www.unicode.org/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem I'm willing to bet the symbol for the british pound is not part of the normal web character set like a US dollar symbol is and as a result needs to be expressed by entity notation ( pound; or #163; ). I'm not sure these days what the normal web character set really is. If you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling symbol is not present. However, for any of the ISO-8859-x variants, it is present, using the 163 (0xA3) value you noted (same as the Unicode code point). It's also in UTF-8 of course, but requires two bytes (0xC2 0xA3) to represent the code point. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem - the servlet reads those documents with some InputStream, without specifying a character set or encoding, and by default that means to use Tomcat's idea of its default LC_CTYPE for those InputStreams ? Essentially correct, if you substitute JVM for Tomcat in the above. Input and output are done via byte streams, converted to and from Unicode based on the specified character encoding. When that's not specified (via Connector attribute or HTTP header), the JVM uses a default encoding. To determine the default, JVM initialization looks at various system properties if they exist, and then certain environment variables. (The exact ones are platform dependent.) Consequently, setting LC_CTYPE (or equivalent) prior to starting up Tomcat can have a dramatic effect on the interpretation of both input and output, as you have discovered. Look at the API doc for java.io.InputStreamReader and java.io.OutputStreamWriter for examples of character set encoding usage. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Caldarale, Charles R Subject: RE: Migrating to tomcat 6 gives formatted currency amounts problem Consequently, setting LC_CTYPE (or equivalent) prior to starting up Tomcat can have a dramatic effect on the interpretation of both input and output, as you have discovered. Also, as Johnny K stated, this should not be left up to the sys admin. It really is the app writers' job to explicitly specify the encoding for both input and output, rather than leaving them up to the whims of the platform and browser. Unfortunately, many developers design with blinders on, and never think about where the app might be deployed or accessed from. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem If this locale stuff is in fact defaulting to an ISO char set that can do these symbols... There's the basic problem - anytime you allow defaults to come into play you put yourself at risk. and say you where making a non english page, say Japanese... do you think that its possible to use it? Certainly, and you should use it - but with the desired Locale specified, not using whatever the default happens to be at that instant. they using the getCurrencyInstance to make the currency symbols. But, if you want a specific currency symbol (e.g., Yen, Pound Sterling), the Locale should be explicitly provided on the API call; only if you want to use the platform's default should the getCurrencyInstance() without an argument be used. But I'm thinking its a US/Eng only methodology... Nope, it's universal. Java supports a seemingly infinite number of locales. When you say If I override that with say ISO-8859-15, is that the whole page you talking about Yes, I was setting the browser to use a fixed encoding rather than the one in the HTTP header or the browser default. it possible to have different character encoding sections in a web page I don't know HTML well enough to completely answer that question, but I believe HTTP uses the last character set header specified, and all HTTP headers must precede the HTML. You should be able to achieve the desired effect with frames. However, if you just use UTF-8, you don't need to worry about, since that includes every code point in the known universe. if I do look at that test page in a MS tool... it displays correctly with mixed encodings? MS cheats at every opportunity, seemingly avoiding standards whenever they can. IE likes to guess at the intent of the web page, sometimes getting it right, often getting it horribly wrong. But when you choose a font in a text editor like Swing or Word, you are also picking some character set... Nope - most editors do not let you choose the character encoding, they just use the platform default. Some do let you choose a UTF-x flavor in lieu of the platform default, which is quite desirable. Some fonts (e.g., Wingdings) redefine the glyphs for given code points in order to display oddball symbols within a non-Unicode encoding; these were pretty much all developed before Unicode came into widespread use, but are still around for compatibility. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 回复: about Connector's attribute red irectPort
From: 李征 [mailto:[EMAIL PROTECTED] Subject: 回复: about Connector's attribute redirectPort this is my setting for connector Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=150 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ That's the Connector for port 8009; if you want Tomcat to listen for HTTPS on 8443, you need another Connector for that port. The one for 8443 is commented out in server.xml by default. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem (My understanding is that Unicode (16-bit) is actually not big enough for everything, but hey, they tried). Point of clarification: Unicode is NOT limited to 16 bits (not even in Java, these days). There are defined code points that use 32 bits, and I don't think there's a limit, if you use the defined extension mechanisms. Again, browsing the Unicode web site is extremely enlightening. Unless the browser sucks. ;) Let me guess which browser that is; does it start with an I? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase
From: Carol Cheung [mailto:[EMAIL PROTECTED] Subject: NoClassDefFoundError: org.apache.catalina.realm.RealmBase I have catalina.jar in WEB-INF/lib Can anyone shed some light on what I'm doing wrong? Putting catalina.jar in WEB-INF/lib is certainly one major error. Remove it. You must never, never put the same classes in more than one spot in a given branch of the classloader tree. Not telling us the version of Tomcat you're using is another error. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem Does it mean you cant run linux headless?... Of course you can (think about blade servers). Now you're confusing graphical display with encoding. The term headless is concerned with the ability to display graphical information, not render it. JVMs running in headless mode can render glyphs, graphs, or what have you, but must send the resulting bit maps to some graphics server to have it displayed (it can also be saved in files if needed). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem the 'char' data type is /defined/ to be 16-bits wide (http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.1). Has this changed? When? (And how!?) A char is still 16 bits, but you can now have 21-bit code points: http://java.sun.com/javase/6/docs/api/java/lang/Character.html#unicode These are manipulated via the int type, rather than char. I always thought it was weird for Java to use 16-bit Unicode internally Back when Java was being defined, Unicode still was 16-bit, but not in widespread use. but then use UTF-8 for all serialized strings Mostly for easy interoperation with existing editors, comm handlers, browsers, etc., which were all byte oriented and, at the time, still largely ASCII. The day-one existence of character encoders in Java permitted use in non-ASCII environments. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase
From: Carol Cheung [mailto:[EMAIL PROTECTED] Subject: RE: NoClassDefFoundError: org.apache.catalina.realm.RealmBase Sorry, I'm using Tomcat 5.5. I removed catalina.jar from WEB-INF/lib and I am still getting the same error. Look at the Tomcat 5.5 classloader structure: Bootstrap | System | Common / \ Catalina Shared / \ Webapp1 Webapp2 ... The 5.5 Realm doc says: * Place your compiled realm in $CATALINA_HOME/server/lib (which is Catalina in the above diagram). However, if you do that, your Realm class(es) will not be visible to code in your webapp. You'll need to put your Realm in common/lib (or common/classes, if not jar'd) to let both Tomcat and your webapp have access to your code. BTW, it's easier in 6.0 due to the simplified classloader structure. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem The servlet thus reads the iso-8859-1 data, but with the wrong decoder. I guess then that this decoder replaces anything that does not fit into that default encoding, by a ?. (Would it do that, or would it trigger an exception ?) I believe (but have not verified) that the substitution occurs for any decoding errors. At least, I can't find any exceptions defined for the APIs that perform decoding. I'll post another question under another title, I think this thread is long enough by now. Nah, let's go for the record. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to tomcat 6 gives formatted currency amounts problem
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem so, Java is still 16-bit Unicode in its char primitive, but you can use ints to hold UTF-16 values using 21-bits? The 21-bit values are represented by pairs of Java chars, the first from the UTF-16 high-surrogate range, the second from the low-surrogate range. The 21-bit code point can be accessed as an int by some of the java.lang.Character methods introduced in 1.5. especially since java.lang.Character only takes a char as a constructor parameter :( Yes, I think all the new Character methods related to code points are static; there are corresponding instance methods in java.lang.String though. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI configuration in webapp/META-INF/context.xml
From: walterw [mailto:[EMAIL PROTECTED] Subject: JNDI configuration in webapp/META-INF/context.xml Here is the configuration I am using: context reloadable=true It's Context, not context - case matters. /context Ditto. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: application to windows - linux
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: application to windows - linux Its highly unusual for a war to work on one and not the other... more likely a deployment issue? Look for proper casing of directory, package, and class names. Java on Windows lets some casing errors slide by, Java on Linux won't. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI configuration in webapp/META-INF/context.xml
From: walterw [mailto:[EMAIL PROTECTED] Subject: RE: JNDI configuration in webapp/META-INF/context.xml Context WatchedResourceWEB-INF/web.xml/WatchedResource !--WatchedResourceMETA-INF/context.xml/WatchedResource-- Resource name=${jndi.URL} auth=Container type=javax.sql.DataSource driverClassName=${jdbc.driver} url=${jdbc.url} username=${jdbc.username} password=${jdbc.password} maxActive=100 maxIdle=30 maxWait=1/ /Context Without seeing what's really being inserted for the various attributes, I don't think it's possible to go much further as is. For now, try replacing the variable references with the actual values and see what happens. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI configuration in webapp/META-INF/context.xml
From: walterw [mailto:[EMAIL PROTECTED] Subject: RE: JNDI configuration in webapp/META-INF/context.xml Context WatchedResourceWEB-INF/web.xml/WatchedResource !--WatchedResourceMETA-INF/context.xml/WatchedResource-- Resource name=${jndi.URL} auth=Container type=javax.sql.DataSource driverClassName=${jdbc.driver} url=${jdbc.url} username=${jdbc.username} password=${jdbc.password} maxActive=100 maxIdle=30 maxWait=1/ /Context Also, exactly where is the above Context element located? If you have a Context element in conf/Catalina/[host]/[appName].xml that might have been created from a previous deployment, that will override the one in META-INF/context.xml. Get rid of the [appName].xml one if it exists. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: add memory
From: Alex Mestiashvili [mailto:[EMAIL PROTECTED] Subject: Re: add memory export JAVA_OPTS= -XX:MaxPermSize=256m -Xmx12000m Do you really have enough RAM on your server to make a 12 GB heap viable? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16
From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Re: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16 I think you need to add one more line to your CATALINA_OPTS statement: -Dcom.sun.management.jmxremote=true The above is not necessary. Any declaration of a system property beginning with com.sun.management.jmxremote enables remote JMX access, including specification of a port; the =true is just noise. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16
From: emerson cargnin [mailto:[EMAIL PROTECTED] Subject: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16 Every time I hot-deploy an application, the non-heap memory goes up. Some component in your environment is hanging onto object or class references when it shouldn't. Placing logging libraries in a common location rather than with each webapp is a common - but certainly not only - cause. Read the FAQ again: http://wiki.apache.org/tomcat/FAQ/Memory#Q2 In particular, the FAQ links to this article: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: add memory
From: Alex Mestiashvili [mailto:[EMAIL PROTECTED] Subject: Re: add memory Hi , this server has 16G ,do you think something wrong ? No, just impressed. Must be about a week between garbage collections :-) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16
From: emerson cargnin [mailto:[EMAIL PROTECTED] Subject: Re: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16 Wouldn't it be a problem with the JVM or tomcat and the plataform? No, it's 99.99% likely to be a problem in your app (or 3rd-party libraries your app happens to be using), assuming it's a problem at all. The PermGen doesn't get collected until it really needs to, so unless you're actually running out of non-heap space, it may be that the JVM just hasn't bothered to run a garbage collection on that area yet. You can use a heap profiler to find out what objects are still alive - and therefore what classes - and see if you have some references that should have been cleared but weren't. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Sineoa, my feeling is dont use static, unless you really want it in a multithreaded environment It pumps all the threads thru one pipe... That's completely erroneous. There are only two differences between static and instance methods: 1) Static methods are not associated with any particular object instance of the the class (there is no this reference available to a static method). Static methods do have access to instance fields, if the method can obtain a reference to an instance (passed in as a parameter, static variable, etc.). 2) Static methods are not subject to polymorphism - there's no virtual invocation of them. Consequently, a reference to ClassA.method() will always resolve to ClassA.method(), regardless of any super- or sub-classes that ClassA might have. There's no pipe, narrowing highway, or any other throttling or queueing mechanism, nor should there be. Access to static fields, whether it be from static or instance variables must always be examined carefully for proper synchronization. As far as Tomcat being thread-safe, all that means is that Tomcat internals are guaranteed not to confuse things when multiple threads simultaneously call any of the defined servlet APIs, and that Tomcat will dispatch only one thread to handle a given request/response. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....
From: sinoea kaabi [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static methods. Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense. So is a connection a thread-safe object or not? No, a connection is not thread-safe: it is designed to be be used by only one thread at a time. If you have multiple threads accessing a connection object *simultaneously*, you will have problems. On the other hand, connection managers (e.g., the commons-dbcp code) are thread-safe; multiple threads may call one simultaneously to acquire connection objects, and each thread is guaranteed to be given a separate object. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploying a Java Web Application on / folder
From: krisrks [mailto:[EMAIL PROTECTED] Subject: Deploying a Java Web Application on / folder I am trying to deploy a java Web application on Tomcat Server. Should we guess which version of Tomcat you're using, or would you deign to tell us? Host name=anotherheadsets.com appBase=/home/anotherheadsets/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.anotherheadsets.com/Alias Context path= reloadable=true docBase=/home/anotherheadsets/public_html / Context path=/manager docBase=/usr/local/tomcat/users/anotherheadsets/tomcat/webapp s/manager privileged=true antiResourceLocking=false antiJARLocking=false reloadable=true / /Host You have one basic error: the appBase and docBase settings for a webapp must *never* be the same; erratic behavior is guaranteed. If you're using any reasonably recent version of Tomcat, you should not be putting Context elements in server.xml - really bad practice. As previously stated in this thread, the default webapp should be named ROOT, placed under the appBase directory specified in the Host element (if you're running on Tomcat 5.0 or above). For your situation, no Context element is needed for your webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/apache - JDBC errors w/ jt400.jar?
From: pichels [mailto:[EMAIL PROTECTED] Subject: Tomcat/apache - JDBC errors w/ jt400.jar? We have our jt400.jar in our classpath var within our webapps dir and in common/lib. Never, ever, use a CLASSPATH environment variable with Tomcat. Your jt400.jar must not be in two places at once; put it in either the webapp's WEB-INF/lib directory OR in common/lib, but not both. (WEB-INF/lib is preferred.) Do we need to use jk2 or something else now? The jk2 connector died several years ago, as noted in the Tomcat doc. Get things working with direct Tomcat access first, then worry about hooking Tomcat up to httpd, if that's really necessary at all. (Unless you're using httpd for load balancing or something like PHP, it will only worsen performance with modern versions of Tomcat.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hello world
From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: hello world I'm running Ubuntu: [EMAIL PROTECTED]:~$ I thought mentats weren't supposed to use computers... Do I need to install Tomcat 5.5 from Ubuntu We've had no end of problems with 3rd-party repackaged versions of Tomcat. I'd strongly recommend you throw that one away, then download and install a real Tomcat from tomcat.apache.org (latest version recommended, of course). Otherwise, perhaps Ubuntu support could help. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hello world
From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: Re: hello world If Apache installs then why not tomcat? Apache is a software organization with numerous products; if by Apache you mean httpd, it may be because the 3rd-party developers are more familiar with it so less likely to screw it up. For Tomcat, they seem to take great delight in scattering its files all over, using symlinks to try to link it all back up, along with highly modified startup/shutdown scripts that add minor niceties but break anything but basic operation. Use a real Tomcat, and see what happens. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5.5 and ubuntu hardy heron
From: wwuster [mailto:[EMAIL PROTECTED] Subject: Re: tomcat5.5 and ubuntu hardy heron I also was starting to not like tomcat because of all of the symlinks and lack of valid documentation (for ubuntu). Further evidence to support running away from the 3rd-party repackaged versions and instead installing a real Tomcat from tomcat.apache.org. Besides actually operating the way it was intended, you'll also get a more current version, the documentation will match, and you'll get the manager app. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 / Windows / procrun ?
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 / Windows / procrun ? - the installer for Windows installs a version of Tomcat 5.5 devoid of the usual startup.sh/bat, catalina.sh/bat etc.. and instead just installs a couple of files in Tomcat_home\bin, of which a tomcat5.exe (which seems to be the Tomcat executable), and a tomcat5w.exe which is the Windows GUI allowing to configure the Tomcat service.. I also find it extremely annoying that the scripts are not provided in the .exe version, and that the .exe installs Tomcat in a different location than the .zip download. It also contains a file service.bat which is described nowhere It's described here: http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html which is reachable from the Setup section of the doc. which leads to a page mentioning procrun 1.0, but in the same breath indicating that it is now obsolete. Not sure why it says obsolete (current version is 1.0.1), since I think everything in there is still accurate, although the tomcat5w.exe program provides a much easier mechanism to change the parameters. But I found nowhere a link to download this procrun in binary form. That's an unfortunate issue. You can find binaries for various Windows flavors here: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/ (Change the name of the executables to tomcat5*.exe for the older level.) Other than stumbling across that link in this mailing list, I don't know any way of finding that location. (Or else this tomcat5.exe is not really java packaged as a service, but just a stub pointing to an installed Java jvm dll). That is correct. The tomcat5.exe program is just another Java launcher that uses JNI to access the JVM, which is installed as several DLLs (not just jvm.dll). It's very similar to the plain java.exe launcher, except it handles additional, service-specific parameters. - the documentation of this procrun (or whatever is related to it for Tomcat), on the Tomcat site, is out-of-date and does not match the version of procrun that is being used above. Actually, I think it's pretty close. - the procrun program is a general utility that allows to take any Java program (or any program ?) and turn it into a Windows service. Just Java programs. - and I don't have a clue as to what jsvc may be for. jsvc is just a Linux/UNIX program that starts with superuser privileges so it can bind to low ports, then switches to the desired userid to run the designated Java program. Without it, you'll need to play games with iptables or run Tomcat as root (highly undesirable) in order to use ports 80 and 443. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 / Windows / procrun ?
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5 / Windows / procrun ? Do you want to elaborate on the unfortunate issue of why the binaries are not available in the Commons, but are available on the Tomcat SVN ? Actually, I think most non-Java code from commons is source-only, with the expectation that the user will compile it for the target platform. Due to the wide variety of Windows and Linux C environments available, it seems reasonable that the committers not try to cover all the bases. Does the installer pick the right one for the platform ? No - only the 32-bit x86 version comes with either the .exe or .zip downloads. If you have an IA64 (perish the thought) or AMD64 platform, you need to recompile the source for that environment or go to the location specified in the previous message and download the appropriate .exe files. Maybe someone should just remove that out-of-date comment, it makes the whole thing all the more confusing. Do you know where/how someone should suggest this ? The normal procedure is to submit a bugzilla entry, preferably with a patch. 1) One can download the zip version of Tomcat 5.5 (and 6 ?), and use the startup scripts to start a command-window instance of Tomcat. In that case, the executable shown running will be java.exe. Correct; that's the standard launcher that comes with the JRE and is used by the scripts. 2) But starting Tomcat via these scripts will not allow to run Tomcat as a Windows Service. True, but the service.bat script will install the service, just as if you had used the .exe download. If you're on Vista or Server 2008, you'll need to run the service.bat script as an administrator (not just be logged on as one). 3) To run Tomcat as a Service, you have to use the Tomcat(x).exe. The tomcatn.exe program *is* the service, at least as far as Windows is concerned. The service.bat script installs the service, targeting the tomcatn.exe program. Just running the tomcatn.exe program without the proper options does not create the service nor run as one; use the service.bat script to install and the tomcatnw.exe program to change settings. 4) But you can use the tomcat(x).exe from the zip distribution, it is the same as the one installed by the Windows Installer. Yes, they are identical. Also, the tomcat5.exe and tomcat6.exe programs are identical (other than the names), as are the tomcat5w.exe and tomcat6w.exe programs. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: Share war file / virtual hosts I have 3 different virtual hosts. Is there anyway these can share the same war file and instance? If you are using Alias entries for a single Host, then the webapp will be deployed only once. If you are using multiple Host elements, then no, the webapp will be deployed for each Host, even if the docBase is identical for each. You could deploy dummy webapps on the secondary hosts that do nothing but redirect or forward to the primary, but that might be confusing to your end users. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: RE: Share war file / virtual hosts Can I use Connectors to Aliases? A Connector operates with all Host elements in the same Engine; the Connector only cares about IP address and port number, not DNS names. (Not sure if that answers your question.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: RE: Share war file / virtual hosts Can The Host element support multiple ip addresses? A Host element doesn't care about IP addresses; only a Connector does, and hen only if it's configured for a specific IP address. Each Host is concerned only with the symbolic name on the URL, and the designated default Host handles all requests that don't match specific Host names or Alias elements. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: RE: Share war file / virtual hosts I can't add port 443 to 3 of them because then tomcat casts an error. Each must have a unique IP address. You should also have three non-SSL Connector elements, one for each IP address, using port 80 and redirecting to 443. Post your Connector config if you can't get it to work. I can only have one host otherwise hibernate will start 3 times and that is bad. Some would say even once is bad... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make my application run outside of apache directory.
From: NetbeanUser [mailto:[EMAIL PROTECTED] Subject: How to make my application run outside of apache directory. It's a whole tree of dependencies I have under ~/a/b, does it mean that I've to get all classes from that tree under my apache tree. If by apache tree you mean the webapp's WEB-INF/lib directory, then yes, your classes should go there. Webapps are intended to be self-contained, and packaging all the classes it needs together is the proper way to go. Make another jar with the other classes and put it in the WEB-INF/lib directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: RE: Share war file / virtual hosts Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / I think you need three port 80 Connector elements, one for each IP address. You may also want another Connector pair for IP address 127.0.0.1, if you want to access this Tomcat from a local browser. Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.domain1.se/Alias Aliaswww.domain1.com/Alias Aliasdomain2.com/Alias /Host The Alias elements aren't needed. Try the above changes, and tell us what, if any, errors you get when Tomcat starts up. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: Re: Share war file / virtual hosts The last one about apache as a frontend would work. I wouldn't recommend adding another node and associated complexity and overhead to fix the problem. Please try the suggested server.xml changes and report back. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Share war file / virtual hosts
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Subject: Re: Share war file / virtual hosts Yes thanks for pointing that out Pointing what out? Many comments have been made. Is there anyway of testing this using local servers? You can test it on one box, but you'll still have to configure all the IP addresses on that box's TCP/IP stack. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 Context Configuration
From: mookiegp [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 Context Configuration I can't seem to figure out where in the configuration files I can change Tomcat to change the path to my web apps on the E drive. If you want Tomcat to use just the webapps on your E: drive and not any of the normally included ones, then change the Host appBase attribute to point to the directory under which each of your webapps is installed. If you want to keep the webapps that are bundled with Tomcat and add yours, then create a file named conf/Catalina/[host]/[appName].xml for each webapp; each such file should contain a Context element with a docBase attribute giving the absolute path to the associated webapp. (Do not use the path attribute; that is determined by the name of the XML file.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To 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 Context Configuration
From: mookiegp [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 6 Context Configuration Host name=localhost appBase=E:\Public\Files\My Docs\Web\Sites Inside the the directory on the E: drive is a copy of the default Tomcat index.html file for testing purposes. That's not correct. Each webapp must be in a directory (or .war file) immediately under the appBase directory. So if you have webapps A, B, and C, you need these directories: E:\Public\Files\My Docs\Web\Sites\A E:\Public\Files\My Docs\Web\Sites\B E:\Public\Files\My Docs\Web\Sites\C with appropriate files underneath those. (The structure of a webapp is specified in the Servlet spec - JSR 154; you should use that as a reference.) The default webapp must be named ROOT (case sensitive, even on Windows). You need to put the index.html file in: E:\Public\Files\My Docs\Web\Sites\ROOT - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JVM config for tomcat5.5
From: jaki [mailto:[EMAIL PROTECTED] Subject: Re: JVM config for tomcat5.5 Is it necessary that catalina.home system property is always set for a tomcat install? It's not necessary to have it set during Tomcat installation. It is necessary during Tomcat execution, but this is normally taken care of by the startup scripts or the service wrapper, and need not be done manually. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Chuck
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: [OT] Chuck Can you please inform us of the best path to follow ? The postscript on my messages is, of course, required by our bloody lawyers. (Similar - sometimes more extensive - messages appear on others' e-mails when sent from corporate accounts or equipment.) I would interpret recipient to mean anyone whom I intended to receive the message - which is everyone on the Tomcat users list or readers of the list archives. Despite the presence of the key clause MAY CONTAIN ..., I insure that no Unisys private information is ever included in what I say in this or any other public forum. So you are not receiving it in error, and I don't think there's any concern about hanging onto the information. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm - mapping LDAP group to security role
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Delattre Subject: Re: JNDIRealm - mapping LDAP group to security role If I remember well the security-role-ref just creates an alias on an existing security-role for servlets. It's not related to the mapping between my system groups and the application roles. O.k., I'm confused. Isn't an alias just what you need to do the mapping from any role names used internally in your webapp to the roles (groups) obtained from the LDAP server? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Is not starting
From: Partha Goswami [mailto:[EMAIL PROTECTED] Subject: Tomcat Is not starting I attached, log files, Tomcat is not starting, in Windows xp/2003, Pls help The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin directory. Search the archives for other alternatives. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]