RE: apache virtual hosting + server.xml + context
From: sudip shrestha [mailto:[EMAIL PROTECTED] Subject: Re: apache virtual hosting + server.xml + context We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat initializes those pool twice Which is exactly as it's defined to work. You should only have one instance for each unique Context element, otherwise you will get multiple deployments and corresponding initializations. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: After adding a context xml file, web-app doesn't always start
From: David Farrell [mailto:[EMAIL PROTECTED] Subject: After adding a context xml file, web-app doesn't always start I think I may have missed something. Such as telling us which version of Tomcat you're using. tomcat throw an exeption that my app conspiracy cannot be found under /webapps/conspiracy Your docBase attribute says webapps/conspiracy is the location of the app. I imagine that I need to do something to my context xml file? I'm not really sure but the only change in the app pre and post this error is moving the db stuff to the xml file. Where is your context xml file? What is it's actual name? (The attached file is named context_home.xml, which can't be really be what you're using.) Read up on the attribute fields of the Context element for the version of Tomcat you're using. In particular, if you're using 5.5.x, don't put Context in server.xml, and don't use the path 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: manager outofmemory exception
From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] Subject: manager outofmemory exception What i don't understand is that I sometimes get OutOfMemoryException when i upload new aplitications to the tomcat using the manager. Search the archives - this comes up frequently. Assuming you're using a HotSpot JVM (Sun 1.4 or later), you're probably running out of PermGen space, where all the instances of java.lang.Class (among other things) are stored. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form Based Authentication
From: Peter Bright [mailto:[EMAIL PROTECTED] Subject: Form Based Authentication It's point (c) that's proving problematic; there's no way to reauthenticate that I can see. What happens if you just invalidate the existing session? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form Based Authentication
From: Peter Bright [mailto:[EMAIL PROTECTED] Subject: RE: Form Based Authentication It's point (c) that's proving problematic; there's no way to reauthenticate that I can see. What happens if you just invalidate the existing session? The user gets logged out. Exactly - and they then must reauthenticate with the updated password. Isn't that what you want? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hijacking the coyote connector
From: Dobbins, Michael G [mailto:[EMAIL PROTECTED] Subject: Hijacking the coyote connector My next attempt, I repackaged our connector to replace the org.apache.catalina.connector package and put that in the -Xbootclasspath I don't think that's the right place. -Xbootclasspath should be used only to override or augment the jars in JAVA_HOME/jre/lib (e.g., rt.jar, jsse.jar), not classes that come out of Tomcat's server/lib. I suspect things ended up under the wrong classloader, making life difficult for all concerned. You will probably have to just replace server/lib/catalina.jar with your modified version. I don't see where className was ever a documented attribute for a Connector element in 5.0 (although it apparently was in 4.1); it is a valid attribute for Service 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Add parameters into tomcat service ......
From: Tony Lu [mailto:[EMAIL PROTECTED] Subject: Add parameters into tomcat service .. My question is: how to add statement set JAVA_OPTS=-Xms512m -Xmx512m - Daos.configuration=%CATALINA_HOME%/conf/aos.config into tomcat5 service? Use tomcat5w.exe from the bin directory. Add the options you want under the Java tab. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using a datasource connection pool resource with username and password supplied by user
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: using a datasource connection pool resource with username and password supplied by user But what I really want to do is to get a database user and password from the user and (after validating it) write this to a session cookie. Then when the user interacts with the database (which is all the time) the username and password will be extracted from the cookie and used in the following way: I don't think you can do this with a connection pool. The connections in the pool are opened once only, and persist for the life of the application, not the session. Any user (session) can end up using any of the connections, which is why you have to configure the credentials with the ressource. I think if you want to authenticate on each session, you'll have to dispense with the pool and suffer the overhead of opening a DB connection each time. Perhaps someone else has a better 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continuing Frustration and Misery with Deployer
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: Continuing Frustration and Misery with Deployer deploy: [deploy] OK - Deployed application at context path /ROOT So it's deployed OK. I suspect all that means is that it was successfully copied to webapps, but I'm not certain. My META-INF/context.xml has Context docBase=/ROOT reloadable=true antiJARLocking=true antiResourceLocking=true swallowOutput=true The docBase attribute doesn't look right - it's specifying an absolute path to the directory, and I doubt that's where the war is exploded to. Have you tried removing this? Also, I seem to recall that if you're trying to deploy the default application for the host, it must be named ROOT.war (at least on 5.5.x). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continuing Frustration and Misery with Deployer
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Continuing Frustration and Misery with Deployer The thing is, I do not wish to execute directly from the WAR as that would be inefficient. If you only have classes (as opposed to resource files) I don't think it will make a difference. If you do have other resources in there, then yes, expanding the war would probably be better. However, I think that's controlled solely by the unpackWARs attribute of the Host tag, and has nothing to do with docBase. Therefore to avoid executing from the WAR itself I use a relative path to the web application. Perhaps I should be specifying docBase=ROOT rather than /ROOT. That would probably be better; I wonder if you even need a docBase attribute at all? If the war file is under webapps, it may be redundant (and possibly a contributor to the errors in the log). Is your app deployed from ROOT.war? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Executing custom action on deploy
From: Matteo Miraz [mailto:[EMAIL PROTECTED] Subject: Executing custom action on deploy I have written such behaviour in a method, so what can I do to execute it? Sounds like you need a ContextListener. Read the spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html Look at section 10. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Production Settings
From: Pitre, Russell [mailto:[EMAIL PROTECTED] Subject: Production Settings Does anyone know where I can find documentation on recommended production setting for Windows environment? If you follow the Resources link from the Tomcat home page, you'll see a section named Articles. The one titled Tomcat Performance has some good info. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How much RAM can java use
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: [OT] How much RAM can java use Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? The answer is very platform specific. For example, on a normal 32-bit Windows system, each process has a maximum of 2 GB to play with, but some of that is taken up by various .dlls. (And unfortunately, these are scattered throughout the range, and the Sun JVM insists on having contiguous space for the heap.) There is a boot option for some versions of Windows Server that changes the process virtual space to 3 GB, at the expense of some kernel capacity. I've seen 64-bit Sparc systems with Java heaps sized at hundreds of megabytes... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How much RAM can java use
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: [OT] How much RAM can java use I've seen 64-bit Sparc systems with Java heaps sized at hundreds of megabytes... Oops, I meant hundreds of _gigabytes_ (just a slight miscalculation :-). With the 32-bit Sun JVM, you're not going to get much more than 1.2 GB you're at now, primarily due to the contiguous heap requirement and the use of signed 32-bit integers within the HotSpot heap manager. To take advantage of the 64-bit platforms, you'll need to install a true 64-bit JVM, which is a separate download from the normal JRE/JDK. With that, you should be able to use pretty much all of the RAM, minus the system overhead. The key issue is insuring that the 64-bit Debian provides a decent amount of virtual space for each process. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache Does Tomcat support CGI bins utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: java.lang.ClassCircularityError
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Subject: Re: java.lang.ClassCircularityError There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4699981 According to the bug report, this is only fixed in Mustang (6.0), not 5.0 (aka 1.5). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: custom session manager
From: Mark [mailto:[EMAIL PROTECTED] Subject: Re: custom session manager basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. Why? Some strange security issue? Resource consumption? An anti-DoS measure? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Database connections aren't being released...
From: Richard Road Runner [mailto:[EMAIL PROTECTED] Subject: Database connections aren't being released... Over a period of time, the number of connections to the database continues to increase far beyond the possible number of users. This is usually a problem in the webapp, in that some code path is failing to close a result set, statement, or connection. After a while, these accumulate and you run out. If you're using connection pooling, you can try setting removeAbandoned=true, but that's a kludge, not a true fix. For more details, see: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: useBeans problem
From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: javax.servlet.ServletException: UserData (Unsupported major.minor version 49.0) This would seem to indicate that you're not really using JDK 1.5, since version 49 class files are those generated and loaded by 1.5. Looks like you have a 1.4 installed somewhere. Either that, or you're using a very picky and outdated classloader somehow... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context path changes in context.xml not working
From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? I thought I remembered something about this, and went googling for the issue. Take a look at: http://marc.theaimsgroup.com/?l=tomcat-userm=110989168604231w=2 If you put your Context fragment in conf/[enginename]/[hostname]/dir1#dir2#appname.xml you can access the webapp via http://[hostname]/dir1/dir2/appname, which I think is what you want. Haven't been able to find this in the Tomcat doc yet, but I did test it successfully on 5.5.9. Have no idea if this trick with the # would work on the name of a .war file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassCastException while sharing objects accross applications
From: Andrés Glez. [mailto:[EMAIL PROTECTED] Subject: Re: ClassCastException while sharing objects accross applications What about using JNDI to share objects between webapps? Won't change anything, due to the previously noted classloader-specific casting issue. What should work (haven't tried it) is to put the defining class for the object of interest in shared/classes or shared/lib (if packaged in a jar), and remove it from each webapp. This will create the class under a classloader visible to both webapps. See: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html for more info. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting the context path in tomcat5.5.9?
From: Trung Nguyen [mailto:[EMAIL PROTECTED] Subject: RE: setting the context path in tomcat5.5.9? To add the context path, you need to edit the $TOMCAT_HOME/conf/server.xml file and these lines: This completely ignores the admonition in the Tomcat doc: Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. I'd suggest that a careful reading of: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html is in order. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting the context path in tomcat5.5.9?
From: Stephen Faustino [mailto:[EMAIL PROTECTED] Subject: RE: setting the context path in tomcat5.5.9? my attempts to create a Context in the META-INF/context.xml were not successful, that is, I could create the context.xml file but the attributes did not seem to take affect. I could set them in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory and it would work. (This is really a different topic; a new thread would be more appropriate.) The conf/[enginename]/[hostname]/[appname].xml overrides META-INF/context.xml, so make sure to remove the former before trying the latter. Also, check the tag spelling in your context.xml file carefully; numerous people have been caught out by using context instead of Context, for example. If that checks out try posting your META-INF/context.xml file 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where'd catalina.sh go in 5.5.x ?
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Subject: Where'd catalina.sh go in 5.5.x ? Where would a change like this be made in Tomcat 5.5.x? In the same places. However, the scripts are not included in the .exe download for some reason, but are in the .zip version. (I haven't checked the .gz one lately.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where'd catalina.sh go in 5.5.x ?
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Subject: RE: Where'd catalina.sh go in 5.5.x ? Does it mean all the .sh, .bat, .properties, .xml, etc., files are not needed? Only the .bat and .sh files are missing from the .exe version. The others are all there, in their appropriate directories. The scripts are not needed when Tomcat is run as a service. Currently, I only have five files in ../bin: You'll have about two dozen with the .zip download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Script to create tomcat service on windows?
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to create tomcat service on windows? Does anybody have a script to create a tomcat service on windows 2000? Have you tried the service.bat script that's part of the standard download? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Script to create tomcat service on windows?
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Script to create tomcat service on windows? service.bat doesn't seem to be installed with 5.5.9. Get the .zip download, not the emasculated .exe version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FAQ? shutdown.bat not killing java process on Windows
From: Charles Fineman [mailto:[EMAIL PROTECTED] Subject: Re: FAQ? shutdown.bat not killing java process on Windows Is there another mechanism I ought to be using to initialize (arbitrary) resources for my webapp? A context listener might be what you're looking for. See the Lifecycle Listeners section of: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Script to create tomcat service on windows?
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Script to create tomcat service on windows? Do they still work? Yes, they still work. (It probably would have taken you less time to try it than to e-mail the question.) I've never seen a justifiable explanation of why the scripts were left out of the .exe download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Stopping users from getting a directory listing
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Graham Reeds Subject: Re: Stopping users from getting a directory listing I tried copying the default servlet definitions and when that failed, the proceeding filters, to the application specific web.xml but that causes an exception to be thrown. Don't copy anything - just edit conf/web.xml to set the value of listings for the default servlet to false. Nothing else needs to be changed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stopping users from getting a directory listing
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Graham Reeds Subject: Stopping users from getting a directory listing What is the setting in the web.xml for stopping users from getting a directory listing? I'm pretty sure I've seen it somewhere before but I can't for the life of me find where. A brief look at the comments near the beginning of conf/web.xml would answer that 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 5.5 on Fedora 4 via Yum
From: Rob Hills [mailto:[EMAIL PROTECTED] Subject: Installing Tomcat 5.5 on Fedora 4 via Yum However, I've so far been unsuccessful in finding any way to upgrade Tomcat beyond 5.0 using Yum. Has anyone else achieved this? I've never understood this fascination for fooling around with 3rd-party packaged versions of Tomcat, rather than using the unadulterated originals directly from the Tomcat download site. The process couldn't be much simpler: download, unzip/untar, run. What am I missing? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asking Again: 5.5.12 Broke my 5.5.9 Config
From: Trond Hersløv [mailto:[EMAIL PROTECTED] Subject: RE: Asking Again: 5.5.12 Broke my 5.5.9 Config I find nothing saying this attribute is now ignored. RTFM: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Look at the description of the path attribute. This has also been discussed numerous times on the mailing list, so a brief search through the archives would have gotten you the same information. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Limiting the number of threads Tomcat 4.1 creates
From: Rob Shields [mailto:[EMAIL PROTECTED] Subject: Limiting the number of threads Tomcat 4.1 creates Is there a way to limit the number of threads that Tomcat 4.1 creates in its thread pool? Reading the doc never hurts: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html Look at the maxProcessors 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Limiting the number of threads Tomcat 4.1 creates
From: Rob Shields [mailto:[EMAIL PROTECTED] Subject: RE: Limiting the number of threads Tomcat 4.1 creates I've tried setting that to 10 and restarting Tomcat, but when I do a ps auxm I see 20 threads running under the Sun VM: The JVM itself creates at least seven daemon threads for internal use, and Tomcat has a few others besides the request processors. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Flexible way of defining application variables in text format?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Subject: Re: Flexible way of defining application variables in text format? First: you can load your property files on each request as well. really, using what? Try the java.util.Properties.load() method. You can check the lastModified() time stamp on the underlying file first to bypass the reload, if desired. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Flexible way of defining application variables in text format?
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Re: Flexible way of defining application variables in text format? Try this API Class file Is there some reason you went to all this trouble rather than using java.util.Properties? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Flexible way of defining application variables in text format?
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Re: Flexible way of defining application variables in text format? is there any example, I'd still confuse how to read dot properties file I think may API was to odds :-D, yeah that was trouble but there is one thing I like is comments using # Fullly supported by the java.util.Properties class. Read the API 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: heap size in tomcat 5.0
From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Subject: Re: heap size in tomcat 5.0 i assume that if you run it as a windows service then the JAVA_OPTS are still picked up from there? No, they're in the registry. Use the tomcat5w.exe program in the bin directory to set parameters for the service. well i dont think that if you install tomcat 5.5.x on windows there is no catalina.bat anymore That's correct, the scripts were left out of the .exe installer (saving space hardly seems to be a reasonable justification), but they are in the .zip download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: Paul Singleton [mailto:[EMAIL PROTECTED] Subject: Re: Can't change servlet path From which I infer that the Context element for the default web application of a virtual host should be held in a file named .xml As with every rule, there are exceptions. As I understand it, the Context for the default app should be placed in ROOT.xml (caps required). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Synchronize wrapper for session obj attrib get/set
From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Subject: Synchronize wrapper for session obj attrib get/set For those not wishing to migrate at this time to 5.5.12 (in our case, from 5.0.28 and jdk 1.4) would the following be sufficient for preventing deadlock access of the session objects ? No. As Wade C and others have pointed out, there are numerous unsynchronized get/set invocations within Tomcat itself, and these have the potential for unexpected behavior. (Note that the problem is not deadlock, but infinite loops and erroneous results.) Possibly the easiest thing to do is edit the StandardSession.java file and change the type of the attributes field to HashTable rather than HashMap, then rebuild the associated jar. The places that already synchronize on attributes can be left alone, since redundant synchs are allowed and have minimal performance impact. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP on TOMCAT 5.0
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: SOAP on TOMCAT 5.0 java.lang.UnsupportedClassVersion error: org/w3c/dom/Node (unsupported major.minor version 48.0) This is the version of a class file you're trying to load - 48.0 corresponds to JRE/JDK 1.4, so that would indicate you're trying to run Tomcat on a 1.3 level or older. You need to install a more current version of the JVM, preferably 5.0 or 1.4.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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can iredirect a request from one apache to other apache.
From: Rohit Maheshwari [mailto:[EMAIL PROTECTED] Subject: How can iredirect a request from one apache to other apache. I have the configuration like below User---Apache ( mod_ssl)---Apache (mod_ssl)---Weblogic Server And what does this have to do with 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 3 things to do; Get a profiler to see where you may be losing memory. Ensure no resource/references are held onto, dispose references correctly Hard restart Tomcat when OOME occur. In addition to the above, you might want to increase your -Xmx setting and the size of the permanent generation (-XX:PermSize=??). This won't eliminate the need to restart Tomcat, but it may allow you more time between restarts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat does not find my web application
From: Mbah Tenjoh-Okwen [mailto:[EMAIL PROTECTED] Subject: tomcat does not find my web application when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing http://localhost:8080/mine; in my browser.The container says The requested resource (/kopie/) is not available (ie i get a 404 http error report). Does the Tomcat userid have read and write access permissions to the directory (mine) you created? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does that matter if every single request has to go to Tomcat because the data is dynamic? Think about it: How could adding path length and latency for every request improve performance? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Job security perhaps? Also increased stress levels, if you enjoy that sort of thing. Unless there's something specific for httpd or IIS to do (e.g., poor man's load balancing), simplify your life and leave them out. Check out Peter Lin's performance measurements for just static content, and you may decide you don't need httpd or IIS for that, either. http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: https:// Netscape and Firefox 1.0
From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: https:// Netscape and Firefox 1.0 Has anybody experienced problems of using https://blah.blah.com:8443/ esp. with Netscape 8.0 and FireFox 1.0. I'm using SSL on Firefox 1.0.6 with Tomcat 5.5.9 on Sun's JRE 1.4.2 and 5.0 without any problems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL 8443
From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: SSL 8443 Is there any way I can have to do without enetering 8443 port number. Change the port attribute of the SSL connector in your server.xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wher do I get binary of Tomcat
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Wher do I get binary of Tomcat 2. Where can I get Tomcat that works on MacOS X or Windows (let's say old good win98)? Tomcat is pure Java, so you can use the standard .zip or .tar.gz download on any platform. Once expanded, you'll find a RUNNING.txt file that explains how to get it going. You will need a JRE for 5.5, or a JDK for 5.0 and older levels. If you use the 5.5 version (recommended) and are using a 1.4 JRE, you will also need to download the Compat package and unzip it into the Tomcat installation directory. Finally, if you want to run Tomcat's admin app (not required, but useful and instructive), that has to be downloaded separately and again unzipped into the Tomcat installation directory. All packages can be found on the main download page: http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi The various levels may be marked as alpha, beta, or nothing (indicating stable), using the standard Apache Software Foundation terminology. A particular level's status may be changed as it proves itself in the field. Tomcat will definitely run on OS X, and should run on Win98, but that latter one's a pretty archaic and wimpy environment for anything other than just playing around. - 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. Thanks, M. __ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wher do I get binary of Tomcat
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Subject: Re: Wher do I get binary of Tomcat For your needs the exe package for Win 98 would be a good bet. I don't think that's true. The .exe download installs Tomcat as a service only - the startup and shutdown scripts aren't included, whereas they are in the .zip and .tar.gz packages. Win98 support for services is pretty limited. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to change the SSL port
From: Stephen Caine [mailto:[EMAIL PROTECTED] Subject: How to change the SSL port I tried edits to server xml connector from 8443 to 443 - 443 port unresponsive after tomcat restart. What does netstat say about who's listening on which ports? Tried 8442 also. No joy. Only plays with 8443. There is another setting somewhere Really, there isn't. Sounds like you're not editing the server.xml file that's actually being used by your Tomcat instance. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to change the SSL port
From: CommonGround Softworks/Phil McNamara [mailto:[EMAIL PROTECTED] Subject: RE: How to change the SSL port It would seem to me that this demonstrates that I am editing the correct server.xml instance. Agreed. Sounds like something else has grabbed or disabled 443, especially since the Tomcat log shows a bind failure. Possible that apache or a ssl module has already done a bind internally to 443? Highly likely. Why are you running httpd? Unless the vast majority of your response pages are pure static content, Tomcat by itself will probably be faster (and certainly simpler to set up standalone). Ran Netstat and nothing obvious jumped out at me. What platform are you running on? For Windows, try netstat -a -n -o and see if there's anything listening on 443, and if there is, use Task Manager to relate the pid to a running program (might be a service). I don't have access to a modern *nix system at the moment, so I can't suggest much for that environment, other than checking iptables. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path I'm not understanding something here I think. On (1) you say (I think) that I must put Context in server.xml for the path attribute. But in (2) you tell me (I think) to not put Context in server.xml? What am I not getting here? You should not put Context elements in server.xml, nor should you use the path attribute. Name the application appropriately. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put context.xml?
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Where to put context.xml? Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context To again quote from the Tomcat doc for the path attribute of the Context element: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. Also note that placing Context tags is server.xml 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: The process tomcat {pid 1488. } is leaking handles I have and they put it down to being the Tomcat application - not much use at all! Since this has not been reported by anyone else, it is highly likely to be the application, not Tomcat. In any event, what version of Tomcat, what OS, what JDK, etc., are you using? On task manager it does indicate that tomcat is at fault.. That's only because all applications under Tomcat are part of the Tomcat process. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with tomcat manager's deploy command
From: rahul [mailto:[EMAIL PROTECTED] Subject: RE: problem with tomcat manager's deploy command Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. What happens if you try undeploy from the manager web page, rather than with an Ant script? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: Can't change servlet path I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Please read the very explicit doc: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html (Since you didn't bother to tell us which Tomcat version you're using, you'll need to adjust the above URL appropriately.) In particular, the above says: In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5.5 and startup.bat
From: John MccLain [mailto:[EMAIL PROTECTED] Subject: Tomcat5.5 and startup.bat I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore They're in the .zip and .tar.gz downloads, but not in the .exe one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context path=/abc docBase=store debug=5 reloadable=true crossContext=true /Context What am I missing To repeat (3rd time today): If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 1) Why is this forced in server.xml when otherwise we are supposed to put everything in our META-INF? You should consider the use of Context in server.xml as merely a migration mechanism from older Tomcat versions. The path attribute has to be used in this situation, since there is no other means of determining the application name. For the other two cases, the application name is derivable from either the location or the name of the .xml file. 2) In this case, is the context.xml in my META-INF used also? In other words, should I put the JDBC Resource node in the Context node in server.xml or in my context.xml? You simply shouldn't have a Context tag in server.xml (see above). 3) While /abc now works, /store still does too. Is this by design? I suspect that your app has actually been deployed twice - once for each of the Context instances you have. I believe the normal way of handling a single app that you want to use under multiple path names is to have trivial secondary apps that merely forward requests to the real one. (Others may have better solutions, since I primarily work on the inside of the JVM, not on J2EE apps.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not honor acceptCount configuration variable
From: Wei Zhao [mailto:[EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable I’ve just migrated to Tomcat 5.5 and found that the configuration variable “acceptCount†under “Connector†takes no effect. Can you show us your complete Connector/ tag from server.xml? (Hopefully it won't suffer from the same character mapping problems your e-mails seem to have.) - 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: problem with tomcat manager's deploy command
From: rahul [mailto:[EMAIL PROTECTED] Subject: problem with tomcat manager's deploy command If I remove this context tag from server.xml then the deploy command works fine. But I want to keep this information in server.xml and at the same time use tomcat manager's deploy command from ant script You may want to rethink that one. From the Tomcat 5.5 documentation for Context: Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to force the Tomcat manager app to run in SSL only?
From: Augmentin [mailto:[EMAIL PROTECTED] Subject: Fw: How to force the Tomcat manager app to run in SSL only? Since manager does not actually exist under /webapps I can't put a security-constraint in a web.xml file. You need to look around a little bit more, such as in server/webapps. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
From: Wade Chandler [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get() so it's not just a getAttribute call or even 50 million of them alone going to cause HashMap to lock, but rather the Object being in an intermediate step when get is called. Or the HashMap may have been left in an indeterminate state due to concurrent unsynchronized set requests at some point in the past. A single get can later stumble into the situation and hang in a loop. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
From: Len Popp [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get() Inside Tomcat, references to the hashmap in question are synchronized on the hashmap object itself, StandardSession.attributes (see org.apache.catalina.session.StandardSession). Except it doesn't appear to be done consistently. The existing synchronization in 5.5.9 protects against concurrent updates, but not against a retrieval that happens at the same time as an update. I don't understand the rationale behind this experiment that removed the synchronization, since uncontended object locking has very little performance impact in modern JVM/JIT implementations. Removal of the synchs would allow concurrent retrievals, but would the frequency of that warrant the reduction in robustness? So if I want to *safely* call session.setAttribute or session.getAttribute I have to make sure the calls are synchronized on session.attributes. Actually no - if you can find _all_ the events that can trigger references or udpates to session attributes, you can synchronize on any object you like. The synchronize blocks internal to Tomcat then become redundant, but they cause no harm. Another option (as suggested by the HashMap javadoc) is to modify StandardSession to use a HashMap wrappered by Collections.synchronizedMap(). No idea what kind of performance impact that would have, but at least it would limit the changes needed to just one place in one file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() and replace all req.getSession().setAttribute(beanName, beanValue) in code with the call to this method (same for remove) and I've solved my problem? Unfortunately, you also need to change the places that retrieve attributes from the Session, since the hash map is in a state of flux during the setAttribute() invocations. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() Does this mean that all session.setAttribute() and session.getAttribute() should always be synchronised That's the conclusion I'm reluctantly coming to, if there is the possibility of multiple threads updating the same session simultaneously. Luckily, you would think that most operations would really be request, not session, related. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2.x and Tomcat5.0.x Session' data
From: Yassine ELassad [mailto:[EMAIL PROTECTED] Subject: Apache2.x and Tomcat5.0.x Session' data Inside that directory ther is a link to one of my servlets what i want is to pass the user's data already collected after the log in against AAOM (username, etc ...) to that servlet You might find it simpler just to migrate to Tomcat 5.5 and eliminate httpd - check Peter Lin's report on performance testing at: http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Users Can See root files
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: Users Can See root files Is created a welcome-file-list in the web.xml, but I guess if someone plays with the url and tries to get a look at the files that does not help. Look here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/default-servlet.html Try setting listings to false in the conf/web.xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: errors building tomcat5 from source
From: Michael P. Soulier [mailto:[EMAIL PROTECTED] Subject: errors building tomcat5 from source I didn't see this in the FAQ, so I'm asking. I'm trying to build tomcat 5.5.9 from the source tarball on my Linux box. Just curious, but why do you want to build it from source? Tomcat is pure Java, so the same download works on all platforms. In any event, you used to have to use the GNU tar/zip utility to take apart the tarball, but I can't seem to find that stated anywhere now. Might be worth trying. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Database Pooling
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: Database Pooling If so, how simple is this to implement (I have read here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resource s-howto.html but I an not familiar with JNDI. Try reading the next section of the doc as well: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html That should have most of the info you need. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.28 - CPU spikes after heap memory reaches 700MB
From: Bhaskar Mulpuri [mailto:[EMAIL PROTECTED] Subject: tomcat 5.0.28 - CPU spikes after heap memory reaches 700MB When the heap memory for the tomcat process reaches 700 Mb (as shown by solaris top command), for a few requests, the CPU spikes to 90-95 %. Is it possible that the application is getting an OOME, catching it, and simply retrying the request? This would account for the high CPU utilization, and GC won't do much if nothing's changed since the last attempt. Since OOME covers a variety of resource exhaustions besides the primary Java heap, you might well be running out of file handles, filling up the permanent generation, hitting max threads (unlikely), or ??? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: installing admin webapp
From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: installing admin webapp Is there a link - howto etc on how to install and configure the admin webapp. Installation borders on the trivial: download, unzip. The only configuration necessary is creating the admin role and associated userid/password in the conf/tomcat-users.xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Host matches server name localhost error
From: Brian Moseley [mailto:[EMAIL PROTECTED] Subject: Re: No Host matches server name localhost error thanks for the pointer. after moving my context definition into server.xml Bad move. This is specifically discouraged in 5.5. i wonder what the motivation was for making it such that i can't configure the root context in its own file? As far as I know, you can - just put your default context in webapps/ROOT, and its associated Context element in webapps/ROOT/META-INF/context.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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Host matches server name localhost error
From: Paul Austin [mailto:[EMAIL PROTECTED] Subject: RE: No Host matches server name localhost error But the context path is only supported when you put it in the server.xml so you can't deploy the wars to any other path other than the name of the context file so deploying to /apps/admin. I believe the usual mechanism for handling this is a trivial ROOT webapp that forwards to the true default application. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat run better on Linux or Windows?
From: Brian Cook [mailto:[EMAIL PROTECTED] Subject: Re: Does Tomcat run better on Linux or Windows? The only thing that comes to mind is that you have to reboot windows every time you need to make a change to the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables That's simply not true. Opening up a new instance of the command prompt will pick up any modified or added environment variables. (But don't construe this statement as an endorsement of Windows over Linux, by any means.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat run better on Linux or Windows?
From: Rob Hills [mailto:[EMAIL PROTECTED] Subject: RE: Does Tomcat run better on Linux or Windows? I've not yet been able to find a way of changing environment variables in Windows and have the OS pick up the changes and pass them to a service (no matter how often you stop and start the service) without rebooting. As far as I know, when run as a service, Tomcat itself does not actually use any environment variables (although your app or config files might). You normally change the service settings either by editing the registry or running the service manager (tomcat5w.exe). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: installing admin webapp
From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Re: installing admin webapp Will do - where is the procedure for opening an enhancement ticket outlined? Tomcat development uses Bugzilla for both bug reports and enhancement requests (although the latter isn't obvious - you have to read the pages at the Get Involved, Overview link). Once you register for Bugzilla access, go to the Tomcat 5 Enter bug page: http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205 and use the Severity drop down list to indicate enhancement. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where can I find specs for ALL the xml tags that can be used in server.xml.
From: Alan Chandler [mailto:[EMAIL PROTECTED] Subject: Re: Where can I find specs for ALL the xml tags that can be used in server.xml. I must admin not really searching 5.5 docs, because I am using 4.1, but I can't find the Resource tag described aywhere. Then you certainly should be looking at the 4.1 docs, since 5.5 configuration is noticeably different. The pages of interest for 4.1 include; http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm l http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html The Resource tag is fully described in the first link above. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where can I find specs for ALL the xml tags that can be used in server.xml.
From: Alan Chandler [mailto:[EMAIL PROTECTED] Subject: Re: Where can I find specs for ALL the xml tags that can be used in server.xml. Unfortunately, it still doesn't specify what the auth=Container attribute means. This is pretty clear to me: Specify whether the web Application code signs on to the corresponding resource manager programatically, or whether the Container will sign on to the resource manager on behalf of the application. It's a two-state flag indicating whether the application or Tomcat (the Container) is responsible for establishing a connection to the resource. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: very strange 'documentroot' problems
From: Arjan [mailto:[EMAIL PROTECTED] Subject: very strange 'documentroot' problems BUT when i edit the file, or even completely remove it, i still get to see 'If you're seeing this page via a web browser, it means you've setup Tomcat successfully. The .jsp files of the ROOT app (as well as those of most of the other sample apps) is precompiled. What's actually being executed is org/apache/jsp/index_jsp.class, which can be found in webapps/ROOT/WEB-INF/lib/catalina-root.jar. You should be able to just delete (or change the extension of) that jar, and then the .jsp file will be used. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jndi question
From: Sean Rowe [mailto:[EMAIL PROTECTED] Subject: Re: jndi question tomcat 5, and jdk 1.5 Which Tomcat 5? The configuration for the 5.0 series is not necessarily the same as in 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie with a short question
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: newbie with a short question First I cause an open/save prompt with response.addHeader(Content-Disposition, attachment; filename=somebat.bat); Then I use the response.getOutputStream() and stream the bat file down it. This requires of course that you get an inputstream to your bat file first. Copy it into your webapp somewhere and use the servlet context getRealPath(/bat/mybat.bat) and then i/o API to read it into an input stream before sending outbound again. I found that setting content type of application/msdos-x-batch failed, as did others, just send it without a content type as a open/save. I must be missing something; how does the above cause an existing .bat file on the server to be executed on the server? (That was the original question.) For the OP: the CGI doc for Tomcat can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Making a Database Image Show Up on a Jsp Page
From: Philip Cote [mailto:[EMAIL PROTECTED] Subject: Re: Making a Database Image Show Up on a Jsp Page My only sticking point is how I'm supposed to write that binary data to the jpeg file. I think the point people are trying to make is that you don't need to write any file at all. The bytes of the image should be output as part of the response stream, using the appropriate MIME type. Or maybe I don't really understand the problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Compatibilty Package
From: Qin Ding [mailto:[EMAIL PROTECTED] Subject: Compatibilty Package Where can I download the compatibility package for the tomcat 5.5.9 and jdk1.4.2? This is called hide in plain sight. It's the download named Compat on the main Tomcat download page (http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Calculating required memory
From: Oleg [mailto:[EMAIL PROTECTED] Subject: Calculating required memory Would I be correct to estimate that Tomcat will atleast need n(number of users/applications) * mb(total size of shared/lib) In a word, no - disk space occupied by class files has no correlation with memory consumed by a running application. Class files are primarily composed of the constant pool and byte codes, whereas the vast majority of memory used by most Java applications is taken up by dynamically created objects, which is highly dependent on application logic. You really can't estimate memory use with any degree of confidence without actually running your application, using various loads and forcing garbage collections to occur. Given the low price and ready availability of memory these days, this really shouldn't be much of a concern. Of course, it would be possible for some monstrous app to exhaust the per-process virtual space provided by your OS... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 64 Bit Machines and Tomcat
From: J R [mailto:[EMAIL PROTECTED] Subject: Re: 64 Bit Machines and Tomcat Are there 64 bit counterparts? If not, would the 32 bit ones definitely work? I think you're missing the point. You don't need to build Tomcat, since it's pure Java. Just download the binary distribution, unzip, and run the appropriate startup script for your OS. You do need to have a 64-bit JRE installed, of course, if you want the Java code to run in 64-bit mode. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NumberFormatException After Logging In To Admin Webapp
From: David Litterine-Kaufman [mailto:[EMAIL PROTECTED] Subject: NumberFormatException After Logging In To Admin Webapp I'm running Tomcat 4.1, sablevm 1.11.3, and struts 1.1 on Debian Sarge. Have you tried this with a Sun 1.4 JDK or 5.0 JRE? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?
From: Wylie, Ian [mailto:[EMAIL PROTECTED] Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI? In my opinion the people who develop Tomcat should provide an example of JNDI for ALL major databases. Question: How much have YOU contributed to Tomcat? The people that work on it are all volunteers, donating their time, energy, and skills to the project. It seems a bit presumptious for any of us non-contributors to tell volunteers what they should be doing. Asking would be appropriate, but in this particular instance, the number of database variations extant makes that extremely difficult. Once you do get the configuration working, submitting a doc update with your findings would certainly be appreciated. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: realm in context in war file
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] Subject: realm in context in war file I have the following context definition: context path=/test1 override=true docBase=webapps/test1 realm className=org.apache.catalina.realm.MemoryRealm debug= pathname=webapps/test1/META-INF/context-users.xml / /context What level of Tomcat are you using? If it's 5.5, you should not have a path attribute. If you remove the pathname attribute from the realm tag, does authentication function with the default conf/tomcat-users.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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test as requested by list owner
Checking if the spurious bounce messages have been corrected. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: JSTL Question
From: Tom Spence [mailto:[EMAIL PROTECTED] Subject: Re: R: JSTL Question I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. (I assume you're referring to Apache httpd.) Does he have a reason, or is he just remembering the old days when Tomcat was not as efficient in serving static pages? You might want to show him Peter Lin's performance measurements in an effort to keep your life simpler. http://cvs.apache.org/~woolfel/benchmark_summary.doc http://cvs.apache.org/~woolfel/benchmark_summary.sxw http://cvs.apache.org/~woolfel/tc_results.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE
From: AD Marshall [mailto:[EMAIL PROTECTED] Subject: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE After starting tomcat5, this url gives a blank browser page: http://localhost:8080/admin/ Tomcat 5.0 or 5.5? In 5.5 the addmin app is a separate download and unzip. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: * 2 Tomcat instances on same box
From: Paul Wallace [mailto:[EMAIL PROTECTED] Subject: RE: * 2 Tomcat instances on same box Apart from being an attribute of the parent node, what is this port? It's the one Tomcat listens on for the shutdown command in order to gracefully terminate. Bound to 127.0.0.1 only, so you have to be running on the server machine to issue the command. The shutdown script invokes a Tomcat class to send the shutdown string to the configured port. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generic Types support in Tomcat?
From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support in Tomcat? Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? Some pertinent paragraphs from: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html --- The servlet which implements Jasper is configured using init parameters in your global $CATALINA_BASE/conf/web.xml. # compilerSourceVM - What JDK version are the source files compatible with? (Default JDK 1.4) # compilerTargetVM - What JDK version are the generated files compatible with? (Default JDK 1.4) The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible. --- I don't know when as soon as possible might be. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat application won't start with MySQL Connection Pooling
From: James Adams [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat application won't start with MySQL Connection Pooling I have now created a context.xml according to the example in the Tomcat 5.5 documentation and this time I've placed it my application's META-INF directory in the WAR --- META-INF/context.xml - Context path=/ioifocus Please note the following for the path attribute in the Tomcat 5.5 doc for Context: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. Also, examine the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory (usually conf/Catalina/localhost/), and remove any .xml files that might have been automatically created previously for your application and restart 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat application won't start with MySQL Connection Pooling
From: James Adams [mailto:[EMAIL PROTECTED] Subject: Tomcat application won't start with MySQL Connection Pooling I have tried adding connection pooling for a MySQL database in Tomcat 5.5 by following the steps described [URL=http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-data source-examples-howto.html]here[/URL]. I'm curious: why are you using the documentation for an older level to configure the current version? Things have changed in this area (among others) between 5.0 and 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and JDK version
From: MC Moisei [mailto:[EMAIL PROTECTED] Subject: Tomcat and JDK version On top of that I know that tomcat is suppose to run with the JDK but JRE is suppose to be faster then the JDK because I assume the native code is optimized and all the debugging info in native and in classes are removed. Somebody is feeding you real garbage on that one. The JRE that's part of a JDK is bit-for-bit identical to the separate JRE download for that level. A JDK supplies additional tools for development purposes (such as javac), but that's it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC Apache integration
From: Randy Paries [mailto:[EMAIL PROTECTED] Subject: RE: TC Apache integration But are you saying that they have optimized Tomcat 5.5.9 and it does not make sense to use apache has the front end? Unless your web site consists almost entirely of static content, then adding a front end will probably just slow things down (as well as making your life a lot more complex). Check out Peter Lin's performance testing from back in January: http://cvs.apache.org/~woolfel/benchmark_summary.doc http://cvs.apache.org/~woolfel/benchmark_summary.sxw http://cvs.apache.org/~woolfel/tc_results.html There are other reasons for using httpd (such as a poor-man's load balancer for a Tomcat cluster), but serving static content isn't really one of them anymore. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]