RE: .asp and tomcat 5.5.9

2005-05-12 Thread Peter Crowther
From: Trung Nguyen [mailto:[EMAIL PROTECTED] Is there a way to configure tomcat 5.5.9 to support .asp extension? If you mean 'serve static content that has a .asp suffix as MIME type x/y', yes. Configure a MIME-type in Tomcat's conf/web.xml (or your webapp's web.xml) and you're done. If you

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Peter Crowther
From: Trung Nguyen [mailto:[EMAIL PROTECTED] What we're trying to do here is one of our client requested to show .asp instead of .jsp I know this is crazy, but I guess they're Microsoft company :) Of course all our files end with .jsp Ah! OK, so what I think you want is to

RE: Two instances configuration

2005-05-12 Thread Peter Crowther
From: Diogo Martinez [mailto:[EMAIL PROTECTED] does anybody know how to set up two instances of Tomcat in a same machine, listening to different ports? As well as configuring the connector, check and change the shutdown port (near the top of conf/server.xml). Each instance needs a

RE: Minimal server

2005-05-24 Thread Peter Crowther
From: Dola Woolfe [mailto:[EMAIL PROTECTED] What I'm primarily thinking about is what the user would need to have/install in order to use the program. And I want the user to simply click on a file and for the program to just run (provided the jre is installed). Tomcat is capable of running

RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread Peter Crowther
From: John MccLain [mailto:[EMAIL PROTECTED] 1) for DNS Request Distribution - I dont understand. The browser sends a URL to the DNS, the DNS responds back with an IP address. But what if at that IP address, you have a web server listening on port 80? The browser talks to that Web

[OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
[Marked off-topic as this now has nothing to do with Tomcat.] From: Steve Kirk [mailto:[EMAIL PROTECTED] Can I ask how sure you felt of what you say here please: Uhhh... how about 'the little pixies told me, and I believe everything they say'? :-) It's from a combination of knowing two

RE: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
From: Steve Kirk [mailto:[EMAIL PROTECTED] Thanks Peter, interesting. Internet issues in the large tend to be - you get emergent behaviour that is often unexpected :-). I think these are referred to as caching servers as opposed to secondary. It's the secondaries that receive the zone

RE: How to read a file on disk from a servlet

2005-05-27 Thread Peter Crowther
From: Kenneth Jensen [mailto:[EMAIL PROTECTED] How do I get my servlet to read the keystore file, say if I put it in $CATAILNA_HOME/webapps/mywebapp/WEB-INF/lib/mykeystore.jks. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletConte xt.html#getResource(java.lang.String)

RE: Realm implemenation, passing additionnal informations to webapplication

2005-06-06 Thread Peter Crowther
that is in the implementation jar, as the webapp won't be able to load those classes. - Peter -- Peter Crowther, Director, Melandra Limited John Dalton House, 121 Deansgate, Manchester M3 2AB t: +44 (0)161 828 8736 f: +44 (0)161 832 5683

RE: How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed?

2005-06-07 Thread Peter Crowther
From: Harland, David [mailto:[EMAIL PROTECTED] How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed? You don't. There is no way in any Web architecture of reliably detecting whether a browser has closed, or whether it has merely

RE: JAVA_OPTS??

2005-06-07 Thread Peter Crowther
From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] I really apologize if this has been answered previously but I cannot find any definative documentation on the JAVA_OPTS option. I would like to bring myself up to date on what might be accomplished using this setting. Using

RE: Servlet Concurrency Issues

2005-06-08 Thread Peter Crowther
From: Michael Pasko [mailto:[EMAIL PROTECTED] To mimic the desired behavior I've fixed the problem by adding this (implements SingleThreadModel)... public class ServletName implements SingleThreadModel Note that SingleThreadModel isn't supported in more recent versions of Tomcat. This may

RE: Servlet Concurrency Issues

2005-06-08 Thread Peter Crowther
From: Remy Maucherat [mailto:[EMAIL PROTECTED] Your statement is completely wrong, STM is fully supported in Tomcat 5.5, with instance pooling for good performance. Sorry, Remy - I should have checked rather than relying on memory. - Peter

RE: Redirecting Tomcat to IIS (UNCLASSIFIED)

2005-06-09 Thread Peter Crowther
From: Young, Ed CONT Anteon [mailto:[EMAIL PROTECTED] I have an issue with redirecting my web application from Tomcat 4.1 to IIS 6.0 on Windows 2003 Server. I have followed the steps in configuring the redirect but once I try to access the page using port 80, I get an Under

RE: Problem with security?

2005-06-10 Thread Peter Crowther
From: Gagnon, Joseph M (US SSA) I have a situation where I want to be able to provide user access to an application by determining the identity of the requesting user, without them having to go through a login procedure. OK. So what identity can the browser present that you wish to

RE: Norton Antivirus is Blocking Tomcat Service access to Port 5001

2005-06-29 Thread Peter Crowther
From: Muriithi O. Kimotho [mailto:[EMAIL PROTECTED] I installed the latest tomcat in my WinXP Pro but my Norton Antivirus 2005 shuts the Tomcat Service anytime i fire it up then a popup saying a trojan is trying to communicate via Port 5001. How can i solve this? I cannot start the

RE: JVM in Tomcat

2005-07-01 Thread Peter Crowther
or deny? - Peter -- Peter Crowther, Director, Melandra Limited John Dalton House, 121 Deansgate, Manchester M3 2AB t: +44 (0)161 828 8736 f: +44 (0)161 832 5683 - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Application Level Classpath Setting

2005-07-01 Thread Peter Crowther
From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED] I forget to mention these are 3 rd party JARS which I cannot put in the LIB. Cannot by licensing terms, because the app will no longer work if you do, or what? - Peter

RE: Application Level Classpath Setting

2005-07-01 Thread Peter Crowther
From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED] It is not that it wont work , It is by design. OK. So, to summarise: - You have a set of jars that is too large to name on the classpath in Windows; - The jars are required for one webapp only, not for the whole of Tomcat (so one could argue

RE: web hosting with tomcat

2005-07-01 Thread Peter Crowther
From: vishwam [mailto:[EMAIL PROTECTED] can tomcat serve as web server alone? Yes. Please can any one tell me the procedure what should be done ? At the simplest, edit conf/server.xml to change port 8080 to port 80 and restart Tomcat so that it reads the new port. However, you may also

RE: Tomcat in production

2005-07-01 Thread Peter Crowther
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 1. Does anyone have an idea of how many concurrent users/requests TC can support in this sort of config? Depends entirely on your app. I've worked on one app (http://bodington.org) where that configuration would be able to support hundreds of

RE: Application Level Classpath Setting

2005-07-01 Thread Peter Crowther
From: Anoop kumar V [mailto:[EMAIL PROTECTED] In TC 5.x (this too FYI does not care abt the system classpath, but) you can modify the following lines in catalina.properties file under the conf dir ... SNIP That's better than my version - thanks, Anoop. - Peter

RE: Problem compiling JSPs with Tomcat as Windows Service

2005-07-04 Thread Peter Crowther
From: Trevor Quinn [mailto:[EMAIL PROTECTED] When I deploy a web application to a Windows 2K server running Tomcat 5.0.28 and JDK 1.5, I see Unable to compile JSP errors on every JSP page, but only when Tomcat is running as a Windows service. When I run Tomcat from the console window,

RE: Silent runtime replace of a class

2005-07-05 Thread Peter Crowther
From: Sriram N [mailto:[EMAIL PROTECTED] --- Gal Robert [EMAIL PROTECTED] wrote: we have a new user requriement: to be able to modifiy the application without affecting user work. That's a very broad requirement, and may not be achievable in its full form. Does this mean that users must

RE: Silent runtime replace of a class

2005-07-06 Thread Peter Crowther
-- Peter Crowther, Director, Melandra Limited John Dalton House, 121 Deansgate, Manchester M3 2AB t: +44 (0)161 828 8736 f: +44 (0)161 832 5683 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: 2 apps

2005-07-07 Thread Peter Crowther
From: Sergey Livanov [mailto:[EMAIL PROTECTED] I have 2 applications. The first is to be allowed from internet, the second is to enter data. Two apps are in the webapps. How can I configure tomcat to make cms unvisible from outside. At least: 1) Use a filter or valve to examine the IP

RE: Make webapp jars downloadable

2005-07-07 Thread Peter Crowther
From: Andrea Aime [mailto:[EMAIL PROTECTED] Now, the client and the web application share a lot of jars, so I would like to make the jars in web-inf/lib downloadable, so that the web start can access them. At the moment I've put the jars both in web-inf/lib and in the root, but this

RE: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Peter Crowther
From: Mark Benussi [mailto:[EMAIL PROTECTED] Subject: Tomcat 4.1.37 and 5.0.2?? differences I am having to change my ISP and was wondering what the main differences were with these two servers. http://jakarta.apache.org/tomcat/index.html 5.0.x is servlet spec 2.4 / JSP 2.0, like 5.5.

RE: Silent runtime replace of a class

2005-07-08 Thread Peter Crowther
From: Gal Robert [mailto:[EMAIL PROTECTED] Thanky you very much, for your long answer. No problem. It seems, your theory is absolutely correct, I even found an article with detailed information about setting up a high availability Tomcat; here it is:

RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Peter Crowther
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] I am running Tomcat 5.5 with SQL Server on a separate machine. I am getting the following error at random times: Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection rest by peer: socket write

RE: What is allowed to do with a HttpServletRequest ?

2005-07-14 Thread Peter Crowther
From: cristi [mailto:[EMAIL PROTECTED] I have a web application where I need to use in a second request the HttpServletRequest object sent to the same servelet in the first request. [...] session.setAttribute( FIRST_REQUEST_OBJECT, request ); Unsafe. Servlet containers may re-use

RE: Copying an HttpServletRequest

2005-07-15 Thread Peter Crowther
From: cristi [mailto:[EMAIL PROTECTED] Is there any way to make a copy of an object implementing the HttpServletRequest interface ? Alter the Tomcat codebase to implement that copy facility, remembering to check through the codebase for pieces that would break. You would then be maintaining

RE: Copying an HttpServletRequest

2005-07-15 Thread Peter Crowther
From: cristi [mailto:[EMAIL PROTECTED] The requirement of making a copy of the HttpServletRequest is generated by the fact that the former programmers have used (in a natural manner): 1) the HttpServletRequest.setAttributes() to send data to the jsp pages creating

RE: Preprocessing JSP pages

2005-07-18 Thread Peter Crowther
From: Edward Hibbert [mailto:[EMAIL PROTECTED] Indeed, we don't want to have them permanently present in the JSP at all (i.e. convert the pre-processing into a run-time check), also for performance reasons. That was the original motivation for making this stuff pre-processed. If you

RE: tomcat not starting properly

2005-07-26 Thread Peter Crowther
From: blackwater dev [mailto:[EMAIL PROTECTED] I am having trouble starting tomcat. It gets to a point then just stops. What am I doing wrong? [EMAIL PROTECTED] bin]# ./catalina.sh jpda run Using CATALINA_BASE: /usr/tomcat Using CATALINA_HOME: /usr/tomcat Using CATALINA_TMPDIR:

RE: Problem Running Tomcat on Russian MS Windows

2005-07-29 Thread Peter Crowther
From: CW Lee [mailto:[EMAIL PROTECTED] 1) Why doesn't Tomcat work on Russian MS Windows? 2) Is there anything i can do for Tomcat to run on Russian MS Windows? 2) Is there any other solution which allows me to run JSP off Russian MS Windows? CW, have you successfully installed and run

RE: HTTP/1.1 GZIP compression and its impact on server

2005-07-29 Thread Peter Crowther
From: Ronald Klop [mailto:[EMAIL PROTECTED] Ethernet uses packets of 1500 bytes, this includes some headers. So if your html is smaller than about 1400 bytes your are sending the same number of packets over your network with or without compression. Not entirely true, as for Internet use

RE: TC5.5.9 Linux - shutdown port 8005 not bound BUG?

2005-08-01 Thread Peter Crowther
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Subject: TC5.5.9 Linux - shutdown port 8005 not bound BUG? I've never had TC bind itself to 127.0.0.1:8005 to allow correct shutdown to occur. [...] $ netstat -tanp | grep 80 tcp0 0 :::127.0.0.1:8009 :::*

RE: TC5.5.9 Linux - shutdown port 8005 not bound BUG?

2005-08-01 Thread Peter Crowther
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sorry yes... 8009 is the apj13 port (was figuring you'd guess). Doh. My bad - I use Tomcat directly, not via a front-end, so missed that one. Sorry Darryl (and anyone reading this thread in the archives). My apache is using it locally I have

RE: 1 jakarta server + multiple ip's

2005-08-02 Thread Peter Crowther
From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host

RE: tomcat base vs. home

2005-08-02 Thread Peter Crowther
From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED] Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Not quite. HOME is where the Tomcat binaries live. BASE allows you to set up an alternative

RE: 1 jakarta server + multiple ip's

2005-08-04 Thread Peter Crowther
From: Justin Jaynes [mailto:[EMAIL PROTECTED] I tried the solution you offered (below) about creating more than one service and using the address=xxx parameter in the Connectors tags. It works great. Glad to hear it. However, what do you mean in your disclaimer that it is from the

RE: anonymising Tomcat

2005-08-05 Thread Peter Crowther
From: Paul Singleton [mailto:[EMAIL PROTECTED] Is it possible to configure Tomcat (5.5.9) so that a moderately able hacker couldn't figure out what is serving up our web apps? It's possible to add the 'server' attribute to the connector definition for the HTTP connector; server=BogoMAX v0.1

RE: 64 Bit Machines and Tomcat

2005-08-16 Thread Peter Crowther
From: J R [mailto:[EMAIL PROTECTED] Are there 64 bit counterparts? If not, would the 32 bit ones definitely work? Assuming you have a Java virtual machine that runs on your system, the Tomcat Java classes will run unchanged. The 'virtual' in 'virtual machine' means that compiled Java

RE: 64 Bit Machines and Tomcat

2005-08-16 Thread Peter Crowther
From: J R [mailto:[EMAIL PROTECTED] Thanks... I didn't realize that Tomcat was pure Java. There's the odd shell script and batch file to assist; other than that, it's pure Java. Certainly there's nothing that needs a platform-specific compiler before it'll run, just the JVM. Being tortured

RE: Calculating required memory

2005-08-17 Thread Peter Crowther
From: Oleg [mailto:[EMAIL PROTECTED] I am trying to approximate the amount of memory my server will need running tomcat. I understand that a lot depends on how the appication handles resources, however at this point I am trying to figure out what will be the mimimum needed. In my case

RE: Calculating required memory

2005-08-18 Thread Peter Crowther
From: Oleg [mailto:[EMAIL PROTECTED] Now regarding shared/lib directory I thought that every application loads its own copy of those libraries, but if its only one time load and since all my applications are identical copies (only data changes) I might as well move all my classes

RE: playing outside the tomcat 4 classloaders sandbox

2005-08-23 Thread Peter Crowther
From: Fabien Benoit [mailto:[EMAIL PROTECTED] I'm using Tomcat (4.1) and Axis 1.2 to provide a web service interface to a classical 2-tier application. My problem is, I need to access the existing API of this application, a single jar located outside the tomcat install. Copying this jar

RE: Redirect to 443

2005-08-23 Thread Peter Crowther
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Is posible to force redirect to 443 when a non-ssl request is received (without having a security-constraint )? You could, for example, write a filter for your webapp that checked whether the protocol was secure on an icoming request and

RE: using disks SATA against SCSI in tomcat 5.5.9 cluster servers

2005-08-26 Thread Peter Crowther
From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED] In the specification of the disks I have doubts because the new disks SATA has great performance and speed and with cost comparative minor to the SCSI Disks. Considering applications WEB, where the WAR files are loaded in memory

RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-01 Thread Peter Crowther
From: Zsolt [mailto:[EMAIL PROTECTED] When I start a long running servlet I want to give the user some feedback about the progress, thus I just print some characters to the browser from the servlet. It works fine when I go directly tomcat but when I go through apache and tomcat

RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] I seem to remember when I was working with IIS some years ago, I could map multiple IP addresses to one instance of IIS, i.e., IIS could service multiple web sites for me, each web site having it's own, unique IP address. Is there a way

RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
From: Fadil [mailto:[EMAIL PROTECTED] I do not understand very well, if we did this configuration, (with a new IP for tomcat and one for IIS web app on the same server) : we don't have to specify port number for IIS or Tomcat ? Each would bind to port 80, each on its own IP address on

RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
From: Fadil [mailto:[EMAIL PROTECTED] But it doesn't work... What error are you getting, from what? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: compile precompile jsps at runtime

2005-09-06 Thread Peter Crowther
From: Zachi Hazan [mailto:[EMAIL PROTECTED] Subject: Re: compile precompile jsps at runtime So, how can I do it with tomcat not out of the box? One approach would be to cheat! Tomcat compiles the page when the page is first invoked. So, you could for example define a special parameter as

RE: Storing a request

2005-09-13 Thread Peter Crowther
From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user to an external authentication engine, handle the response and then proceed

RE: Multiple Remote Debugging of TOMCAT

2005-09-14 Thread Peter Crowther
From: rahul [mailto:[EMAIL PROTECTED] We are three people working on three different application which are deployed on a single remote machine We all want to remotely debug our application. Is it possible with one instance of tomcat? (I think no) At the same time? Not to my knowledge -

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Peter Crowther
From: NoKideen [mailto:[EMAIL PROTECTED] usually I use String to collect output first and out.print() those String example : String a=; a+=Test 1; a+=Test 2; // very long , and almost 1 page out.println(a); can this cause out of memory problem ? It won't help much - you'll

RE: Can the Tomcat authentication module use an ASP.NET security token?

2005-09-21 Thread Peter Crowther
From: Tracy Spratt [mailto:[EMAIL PROTECTED] Subject: Can the Tomcat authentication module use an ASP.NET security token? I have a Tomcat app (MM Flex app) that is called from an asp.net application which is secured by forms (cookie-based) authentication. (NOT NTLM / Windows Integrated)

RE: Registering my own protocol in Tomcat

2005-09-22 Thread Peter Crowther
From: Robert Koberg [mailto:[EMAIL PROTECTED] Is there a possibility to get tomcat working with my own ASCII based protocol (instead of HTTP). [...] Check out: http://java.sun.com/developer/onlineTraining/protocolhandlers/ Different use of 'protocol' - that won't help the original

RE: an advice neede for use of encodeURL method...

2005-09-22 Thread Peter Crowther
From: jonas skrebys [mailto:[EMAIL PROTECTED] a href=% response.encodeURL [...] ^ I think you're missing an '=' here? Should be %=function();% to write the result of function to the output. Without that, the encoded URL will not be written to the output stream. View the source

RE: starting Tomcat service

2005-09-23 Thread Peter Crowther
From: Tuan Quan [mailto:[EMAIL PROTECTED] But I want the script to run at boot time, in Windows. You might wish to look at srvany (http://support.microsoft.com/default.aspx/kb/q137890/). This allows you to start any process as a Windows service. - Peter

RE: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Peter Crowther
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Use the port redirection facilities in Linux (the details vary depending on your kernel, but ipchains or iptables is a good place to start if I

RE: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Peter Crowther
From: Peter Crowther That way, Linux can run as a non-root user but still see requests arriving on port 80. Sorry. Brain fade. Replace 'Linux' with 'Tomcat' in the above. - Peter - To unsubscribe, e-mail

[OT] RE: Installing Tomcat 5.5 on Fedora 4 via Yum

2005-09-30 Thread Peter Crowther
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 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:

RE: Why getting this error?

2005-10-03 Thread Peter Crowther
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] java.lang.OutOfMemoryError: PermGen space Although your Java virtual machine has enough memory allocated to it, something (probably the number of classes being loaded, or the number of times you're reloading the webapp) is causing the permanent

RE: Why getting this error?

2005-10-03 Thread Peter Crowther
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] Thanks Peter! Can you provide an example please? Is this defined somewhere in the server.xml file? You should be able to set JAVA_OPTS, either within $CATALINA_HOME/bin/catalina (from memory - CHECK! - it's too long since I had to configure

RE: manager outofmemory exception

2005-10-11 Thread Peter Crowther
From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] What i don't understand is that I sometimes get OutOfMemoryException when i upload new aplitications to the tomcat using the manager. I Profiled my aplication and i don't have any memory issue. Just to check: Did your profiling include

RE: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Peter Crowther
From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 11:18 To: Tomcat Users List Subject: Tomcat on Windows: advantages of running as a service? I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it

<    1   2