Will Tomcat 3.3 conf\apps*.xml style work in Tomcat 4?
I see in the Tomcat 3.3b1 that to make deployment configs easier to maintain Tomcat 3.3 supports Context xml tags in apps-.xml where is the name of a war file. This is really nice. One doesn't have to put info about a bunch of different war files into server.xml. So can Tomcat 4.0 do this as well?
Per War settings not in the War for per site config customization?
I want to have settings/properties that are for a particular WAR file but that are for a particular install (ie a particular server at a particular site). As I see it per site customization properties file should not go in the WAR itself as then the user would have to unpack the war and edit the file and then every new WAR version update would require messing around with saving and restoring that file before and after each update of a war is installed. So where can one put settings that code in a single a war will be able to get access to? I see in Tomcat 3.3b1 that in the TOMCAT_HOME\conf dir one can use apps-.xml files where is for .war. Is this only for doing the Context tag for path and docBase? Or can one put one's own tags or attributes in there inside the Context? If so, then how would one access those settings from a servlet? Also, is the answer any different for 3.3 vs 4.0?
Re: Using Tomcat with MSAccess
You ought to fire up a debugger and debug this. Also, you could add some code in your catch to your insert statement that would write output to a log file. As for MS Access and JDBC: I've had some problems with this where resource leakage would eventually cause the JDBC calls to slow to a crawl. I've tried closing every resource when done with it. That just delayed the ultimate slowdown. I haven't tried recently though so maybe JDK 1.3.1 has a fix for it. Still, I would advise using a different RDBMS. There are high quality free ones but if you don't mind paying I think Sybase ASA (not ASE which is the big one) for small to medium size projects is excellent. On Fri, 3 Aug 2001 22:09:12 -0400, Jeffrey Worst wrote: >I'm writing an applet using Tomcat to register new members for a library. >Everything works fine until I get to the part where the new information is >being inserted into the MSAccess DB. I have commented below where the error >occurs. Any help would be appreciated.
How to map non-jsp URL to a JSP?
Looking at web.xml its easy to see how all .jsp files can be mapped to the JSP servlet: jsp *.jsp This relies on two things: 1) The *.JSP suffix to specify that its a JSP. 2) I presume that the prefix after the last forward slash of the path must be the particular JSP name to pass to the jsp servlet as a sort of argument. Okay, but is it possible to map a particular arbitrary existing .html path to a JSP and have that JSP name not be directly from that path? I'd like to do something like: jsp /dataview/latest/*.html I would expect that to take: /dataview/latest/forecast.html and translate it to tell the jsp servlet to invoke: forecast.jsp But I'd really like to hide the real JSP names. For instance, make /dataview/latest/forecast.html map to a jsp that is LatestForecast.jsp Does anyone have an example of how this is done? I've read thru the Sun servlet specs 2.2 and 2.3 and they don't really say that much about the nuances of doing things in web.xml. Even 2.3 spec's chapter 11 doesn't say much.
Re: Performance Comparison
See the tomcat-dev thread from late Feb 2001 that starts here: http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00549.html http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00661.html http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00771.html You can find the whole thread here: http://w6.metronet.com/~wjm/tomcat/2001/Feb/index.html I haven't been able to find anything detailed that is later than Feb/Mar 2001. However, my guess is that the latest 3.3 milestone and the latest 4.0 beta might be faster than these earlier results. On Fri, 13 Jul 2001 06:35:52 -0700 (PDT), Bora Paksoy wrote: >Hello; > >I am in the processing of choosing an appropriate >servlet engine for my web server (which will be >serving bunch of customers), and have been considering >TOMCAT, Resin, Orion, ServletExec and JRUN. I have >tried to find a reliable source for performance >comparisons, but couldn't find one (especially one >that compares with Tomcat 3.3 or 4, since I would like >to use Tomcat unless it is significantly slower). All >of the existing comparisons are made with Tomcat 3.1 >and from those, it looks like tomcat is in serious >trouble! There are also some other messages that has >no conclusion! > >Anyways, I would appreciate it if you can point me to >any resource regarding relatively recent (comparing >latest releases) performance comparison or share your >experiences which in turn would help me to pick the >appropriate engine! > >Thanks, >Baho. > > >__ >Do You Yahoo!? >Get personalized email addresses from Yahoo! Mail >http://personal.mail.yahoo.com/
Re: Performance Comparison
Bora, Costin Manolache has posted about performance comparisons of successive versions of Tomcat in the tomcat-dev list. If you go to google.com and search on various combinations of Tomcat benchmarks and other related words you will find some hits. http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg07287.html http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00032.html http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00042.html http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00101.html http://w6.metronet.com/~wjm/tomcat/2001/Mar/index.html http://w6.metronet.com/~wjm/tomcat/2001/Mar/maillist.html On Fri, 13 Jul 2001 06:35:52 -0700 (PDT), Bora Paksoy wrote: >Hello; > >I am in the processing of choosing an appropriate >servlet engine for my web server (which will be >serving bunch of customers), and have been considering >TOMCAT, Resin, Orion, ServletExec and JRUN. I have >tried to find a reliable source for performance >comparisons, but couldn't find one (especially one >that compares with Tomcat 3.3 or 4, since I would like >to use Tomcat unless it is significantly slower). All >of the existing comparisons are made with Tomcat 3.1 >and from those, it looks like tomcat is in serious >trouble! There are also some other messages that has >no conclusion! > >Anyways, I would appreciate it if you can point me to >any resource regarding relatively recent (comparing >latest releases) performance comparison or share your >experiences which in turn would help me to pick the >appropriate engine! > >Thanks, >Baho. > > >__ >Do You Yahoo!? >Get personalized email addresses from Yahoo! Mail >http://personal.mail.yahoo.com/