RE: want to preporcess javascript files

2000-12-28 Thread Boaz Shaham
I had that problem too. Some notes: - I dont see why a js file won't be handled like a jsp regarding source control and revision history. - It costs you in performance to use js in jsp - you make the Tomcat generate them again and again for each request. I guess that the js code is quite static

workers.properties etc.

2000-12-28 Thread Ralph Jensen
Is there any documentation concerning the settings in workers.properties? The defaults which come with it are apparently for Windows but I'm using Linux. In particular: worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the java wrapper JAVA_HOME/jre/bin/java ? I'd also

Re: Pre-compiled mod_jk for Apache 1.3.11 on Linix?

2000-12-28 Thread Ralph Jensen
Eeeeh - I couldn't find one so I compiled it myself. It worked as straightforward as described in http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html after downloading the source jakarta-tomcat-3.2.1-src.tar.gz from http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src

Re: urgent...

2000-12-28 Thread Narayanan
Put the content under the web apps. Create a new folder which says ur application name . Put ur Jsp under the application and create w web-inf and place all the class files. This will work and we have tested a application sucessfully. Regards Narayanan. - Original Message -

unsubscribe me please

2000-12-28 Thread mark_mead
unsubscribe

PleaseUnsubscribe

2000-12-28 Thread Ravindran Venkatapathy
Please unsubscribe me Ravindran __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/

mm JDBC driver

2000-12-28 Thread Shailaja Someshwar
Hello Where do I need to place the mm.jdbc driver for MySQL in tomcat directory so that its available system wide and all of the Apache virtual hosts. Also can someone direct me to a sample application to test my JDBC connection is working or not, as I do not know much about Java. Thanks in

Re: unsubscribe me please

2000-12-28 Thread James Duncan Davidson
On 12/28/00 3:10 AM, "[EMAIL PROTECTED]" [EMAIL PROTECTED] wrote: unsubscribe Send email to [EMAIL PROTECTED] -- James Duncan Davidson[EMAIL PROTECTED] !try; do()

Re: PleaseUnsubscribe

2000-12-28 Thread James Duncan Davidson
On 12/28/00 3:15 AM, "Ravindran Venkatapathy" [EMAIL PROTECTED] wrote: Please unsubscribe me Please follow the advice I just gave to Mark. -- James Duncan Davidson[EMAIL PROTECTED] !try;

Re: mm JDBC driver

2000-12-28 Thread Ted Husted
I can't vouch for the Apache virtual hosts part, but to make it available for all your Tomcat applications, you can put the jar in the lib folder, along with servlet.jar. You may also need to add it to your classpath. You may get other offerings, but if not, there's a simple plug-and-play JDBC

JSP

2000-12-28 Thread Eylon Steiner
How can I write and test my JSP on NT platform? Thanks, Eylon. TopTier Israel www.toptier.com 4 Hacharoshet St. Ra'anana 43657, Israel Tel: +972.9.7430940 Ext 143. Fax: +972.9.7463089 Eylon Steiner, Software Engineer [EMAIL PROTECTED]

Tomcat Startup

2000-12-28 Thread Shailaja Someshwar
Hello I've read in docs that Tomcat needs to be started before Apache. I am working on RH Linux 6.2 on Intel System. How to go about doing this...I've got a tomcat init script from FAQ which can start and stop tomcat...now how to automate this to start before httpd. Thanks Shailaja

Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Marco
Hi, I have developed a servlet application using Tomcat as servlet engine and Apache as webserver, under linux plattform. In some circumstances the servlet app is located in a reserved area of the web site, this area is defined with basic authentication in the apache httpd.conf. The problem is:

Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Charles Forsythe
Marco wrote: 2 - Apache delegates the servlet to make the authentication. This would be the very best solution, but I suppose it is impossible (could an Apache module implement this feature?) You can do this! Turn off authentication in Apache and implement it in your Servlet. -- Charles

Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Holger Hartwig
1 - read out the request headers, you get the username and password (almost) directly String auth = request.getHeader("authorization"); // as send by apache if (auth == null) return true; try { auth = new String((new

Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Ted Husted
For some background on authentication with Tomcat, see http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html 1 - Apache authenticates the user whith basic (or other) method, and servlet are enabled

RE: want to preporcess javascript files

2000-12-28 Thread Tim Cronin
- I dont see why a js file won't be handled like a jsp regarding source control and revision history. this is not a problem. It is handled by source control, But I don't want to send revision history and code documentation to client machines. - It costs you in performance to use js in jsp - you

Wrote some simple docs for NetWare if anyone is interested...

2000-12-28 Thread wilsonkb
Howdy all, I have spent a bit of time pulling all the stuff together I needed to get Tomcat on NetWare and also how to integrate it with Apache on NetWare. I was looking on how to submit docs into the CVS tree (is that the right place?) and well being a newbe to CVS trees, I decided to post

Tomcat 3.2 HttpSessionFacade

2000-12-28 Thread Billy Turchin
Hi all, I just upgraded to a new version of Tomcat and I've been having problems with the HttpSession. My web application allows me to invalidate any of the currently running sessions from an administration component. So when new sessions are created, I save a reference to them. This was

RE: want to preprocess javascript files

2000-12-28 Thread Jeffry Guttadauro
I'm not sure if I know exactly what you're after here, but I'll throw a couple of thoughts out there. It sounds like you want to use JSP pages to keep all your JavaScript code so that you don't have to send comments to the client. I haven't tried this, but I'm thinking something like this

Need help with isapi_redirect.dll and PWS

2000-12-28 Thread Hawkins, Keith (Keith)
Hello, I have been struggling with getting the isapi_redirect.dll to work with IIS/PWS. I have checked and rechecked the steps specified in the Tomcat IIS HowTo document by Gal Shachor. I keep getting 404-Not Found errors even though the redirector is recognizing the URL as one that matches the

Followup

2000-12-28 Thread Billy Turchin
Hi again, here is a follow up to the problem I was having that I emailed about earlier. When I would get my first hit, I would save the HttpSession at that time in a static class accessible by all servlets. If instead I save the HttpSession when an object is bound to a session, via

Init() being called 3 times

2000-12-28 Thread Shahed Ali
Hi, I am loading a servlet on startup. In the init(), I have a setting some system properties, and doing some logging. When I inspect the logs, its seems that the init method is called exactly 3 times. Any idea whats going on ? I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel

RE: want to preporcess javascript files

2000-12-28 Thread Ted Husted
On 12/28/2000 at 9:27 AM Tim Cronin wrote: This works fine in IE. but causes Netscape to hang. What's the simplest example that causes Netscape to hang? Is this the sort of thing you're doing? HTML HEAD SCRIPT src="helloworld.js"/SCRIPT BODY H1Hello World from HTML/H1

Re: Problem to compile mod_jk.so with apxs.

2000-12-28 Thread Damien Serra
Its that you are looking for? Inside jk_pool.h, at line 92, you need to add this, #elif defined(NETWARE) typedef long longjk_pool_atom_t; #else //ADD THIS LINE typedef long longjk_pool_atom_t; // ADD THIS LINE #endif Simon

R: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Marco
2 - Apache delegates the servlet to make the authentication. This would be the very best solution, but I suppose it is impossible (could an Apache module implement this feature?) You can do this! Turn off authentication in Apache and implement it in your Servlet. It's not what I want to

Host Multiple Contexts

2000-12-28 Thread Shahed Ali
Hi, I have a host entry in my server.xml pointing to a webapp. This webapp is in the webapps directory. When I start tomcat, it loads 2 contexts each refering to the same application. one is webapps/myapp and the other is www.host.com I have now moved my app to a separate directory, and

Re: workers.properties etc.

2000-12-28 Thread Pete Ehli
If the docs are confusing I agree, but the example given in Working with mod_jk for the worker.properties file is for Solaris and I sure the directory structure is very similar in Linux. The examples provided in tomcat is a great way to see where to place your servlets and JSP pages, also how to

Re: urgent...

2000-12-28 Thread Pete Ehli
Use ant or copy web.xml - set server.xml using examples asa reference. That is why the examples are there. - Original Message - From: srikanth To: [EMAIL PROTECTED] Sent: Friday, December 29, 2000 1:56 AM Subject: urgent... how to install a new

Re: PoolTcpConnector Freeze on start

2000-12-28 Thread Kurt Bernhard Pruenner
"Daniel E. Reed" wrote: hehe - ooops! It looked like a foreground process (starting a background process), and when it didn't return me to a prompt, I thought it was freezing. Guess I should have paid more attention. Thanks! Oh, it _did_ return you to a prompt: [root@linrr /root]#

RE: Followup (Session references)

2000-12-28 Thread Billy Turchin
I am using Tomcat 3.2.1. The session is certainly valid, because though I get a null pointer exception when I try to invalidate it, I can still perform actions with that user...ie data is still in the session. I am storing the session in a Map. I don't have a code snippet (its a

Re: msdev mod_jk.dsp /make all

2000-12-28 Thread Pete Ehli
You need to change the http.conf file in Apache and change your workers.propeties file ect and if you want your server.xml file. Read the doc "Working with mod_jk closely. Where it show a directory structure like JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties (partial

Re: Host Multiple Contexts

2000-12-28 Thread Koen Maes \(BE-day.com\)
I think by removing ContextInterceptor className="org.apache.tomcat.context.AutoSetup" /from the server xml - Original Message - From: Shahed Ali To: [EMAIL PROTECTED] Sent: Thursday, December 28, 2000 6:15 PM Subject: Host Multiple Contexts Hi, I

Gzip

2000-12-28 Thread Matt B
I want to use GZip compression on JSP page. I've done this with a servlet using the following code: OutputStream out1 = response.getOutputStream(); out = new PrintWriter(new GZIPOutputStream(out1), false); response.setHeader("Content-Encoding", "gzip"); .. How would I get the

RE: Init() being called 3 times

2000-12-28 Thread Marc Saegesser
1) Set Tomcat's debug level to something big (say 20). 2) Add a System.out.println() call to the begin and end or your init() method. Include a timestamp. 3) Add a call to Thread.currentThread().dumpStack() to the start of your init() method. 4) Post the output here. It is extremely

RE: Init() being called 3 times

2000-12-28 Thread David Fusari
I have seen the same thing, it does not appear that init is called twice but that you get 2 instances of the servlet loaded. Perhaps something to do with aliases. My work around was to not specify a context in server.xml but only specify the servlet mapping in my web.xml. David. -Original

Re: context initialization

2000-12-28 Thread Nicolás Marjovsky
Dear Simon: I've tried what you told me but the servlet doesn´t gets executed, it´s just preloaded. Any ideas? Thanks for your help, Nicolás - Original Message - From: "Kitching Simon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 27, 2000 7:16 AM Subject: RE:

How to be sure that ajpv13 is being used ?

2000-12-28 Thread Amit Pradhan
I have gotten Apache 1.3.14 and Tomcat 3.2.1 to work. I'm not sure if ajpv13 protocol is being used; how can I be sure ? I have added the following lines at the end of my httpd.conf. # Amit Added include D:/Tomcat/conf/mod_jk.conf-auto # Use ajpv13 protocol thru the ajp13 adapter # Root

RE: context initialization

2000-12-28 Thread Kitching Simon
I didn't mention that part :-) Obviously, there's no point in tomcat calling the doGet/doPost methods - they're meant to be passed in data about the calling browser etc., and output an HTML page. That just doesn't make sense in the "load-on-startup" situation. You define (actually, over-ride)

Re: How to be sure that ajpv13 is being used ?

2000-12-28 Thread Jacob Kjome
Keep in mind the mod_jk.conf-auto file is there for your convenience only. ajp13 and ajp12 are only used to communicate with Apache Web Server through the mod_jk connector. Whatever you include will be used. You seem to be duplicating efforts. You are inlcuding the mod_jk.conf-auto and then

RE: Gzip

2000-12-28 Thread Tim Cronin
%@ page import="package.GZIPOutputStream" % %@ page import="java.io.OutputStream" % % OutputStream out1 = response.getOutputStream(); out = new PrintWriter(new GZIPOutputStream(out1), false); /*you should use the response.setContentType() */ response.setHeader("Content-Encoding",

Re: Init() being called 3 times

2000-12-28 Thread Filip Hanik
In addition to Mark's comments. Since the init() method is an instance method (not static) one has to make an assumption that it can be called once for each instance. However I would like to believe that it will be called no more than once for a particular instance. Filip - Original

API directory

2000-12-28 Thread GoldenDawn Fan
Hi, I recently downloaded the Acme API, but I am not sure where to put it. Can anyone help please? Thanks __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/

Re: Gzip

2000-12-28 Thread Matt B
%@ page import="package.GZIPOutputStream" % %@ page import="java.io.OutputStream" % % OutputStream out1 = response.getOutputStream(); out = new PrintWriter(new GZIPOutputStream(out1), false); /*you should use the response.setContentType() */

problem starting Tomcat 3.2: java.util.MissingResourceException

2000-12-28 Thread Jaap van der Molen
Hi all, Would anybody please be so kind to shine some light on the error message below that I keep getting with Tomcat 3.2 and 3.2.1. Surprisingly, 3.1 and 4.0 work fine. Thanks, Jaap -- C:\java\tomcat3.21\bintomcat run Including all jars in ..\lib in your

Re: mm JDBC driver

2000-12-28 Thread Mark Koscak
On my system I added the classpath to my mm.mysql installation directory or /usr/local/mm.mysql.jdbc-1.2c This was enough to give me access to my database. Here is some sample code that you can modify to retrive data from your database. import java.sql.*; import java.io.*; public class

Jakarta NT service...

2000-12-28 Thread Julka, Bobby
Hi, My TOMCAT_HOME has a directory path c:\Program Files\Apache Group\jakarta-tomcat3.2.1 As the directory path has spaces, I specified the path as "c:\Program Files\Apache Group\jakarta-tomcat3.2.1" for wrapper.tomcat_home in wrapper.properties. This seems to be a bug. Not using quotes

netscape timing out

2000-12-28 Thread Parayali, Jayesh 1065
Title: netscape timing out I am using tomcat 3.2.1 release build on winnt4.0 when I use jsp:forward, IE works fine.Netscape gets timed out. % str1 = myPage.jsp; str1 = response.encodeURL(str1); % jsp:forward page='%= str1 %' / Any idea? Thanks, Jayesh

anyone using ajp13 protocol with mod_jk?

2000-12-28 Thread William Au
Is anyone actually using the ajp13 protocol with mod_jk? I tried it but had to switch back to ajp12. It seems faster but less reliable. I am getting the following error messages in mod_jk.log. All these messages occur multiple times. They only occur when I use the ajp13 protocol. In

Tell me how to config Apache with DSO?

2000-12-28 Thread NSB)Hiroshi Kasamatsu
I had an error in command of./apachectl configtest: API module structure 'jk_module' in file /usr/local/apache_1.3.12/libexec/mod_jk.so is garbled- perhaps this is not an Apache module DSO? I want to cooperate Tomcat3.2 beta 8 with apache 1,3.12. I copied mod_jk.so into apache_1.3.12/libexec and

ExceptionInInitializerError on loading Servlet

2000-12-28 Thread Ritwick Dhar
Has anyone seen this one before? I have a servlet that's being loaded from a jar in the classpath. All the other jars needed for the servlet to run (jdbc etc) are also in the classpath. Note, this is not a webapp - the classes are in the system classpath. Tomcat loads fine, and displays the

unsubscribe me please

2000-12-28 Thread Kunal Mehta
unsubscribe __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/

jwma

2000-12-28 Thread Rian Schmidt
Hi all, OK, I admit it, this is peripheral to tomcat, sort of... But I've been trying to load up jwma (the Model 2 webmail thang), and I've been getting this cannot load servlet name: jwma message at startup. And nothing else... makes it a little hard to debug... The context exists under

Re: unsubscribe me please

2000-12-28 Thread James Duncan Davidson
On 12/28/00 7:08 PM, "Kunal Mehta" [EMAIL PROTECTED] wrote: unsubscribe Send email to [EMAIL PROTECTED] -- James Duncan Davidson[EMAIL PROTECTED] !try; do()

Tomcat and IIS

2000-12-28 Thread PinLee_Su
Hi Mr. Tomcat, I am just installing tomcat into my Win2000 machine. and follow the installation guide as provided. However, I can't get it up and running. My question is does Tomcat run under IIS 5.0/Win2000 platform? thanks and best regards,spl

Re: unsubscribe me please

2000-12-28 Thread andyjee
wrong email address sent! - Original Message - From: James Duncan Davidson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 28, 2000 11:47 PM Subject: Re: unsubscribe me please On 12/28/00 7:08 PM, "Kunal Mehta" [EMAIL PROTECTED] wrote: unsubscribe Send email to

Should i register ALL sevlets in my WEB-INF/web.xml

2000-12-28 Thread Maxim Unger
Hello andyjee, Friday, December 29, 2000, 8:26:39 AM, you wrote: a wrong email address sent! a - Original Message - a From: James Duncan Davidson [EMAIL PROTECTED] a To: [EMAIL PROTECTED] a Sent: Thursday, December 28, 2000 11:47 PM Hi ALL! Can anyone help me with simple question

Should i register ALL sevlets in my WEB-INF/web.xml

2000-12-28 Thread Maxim Unger
Hi ALL! Can anyone help me with simple question Should i register ALL sevlets in my WEB-INF/web.xml or there is any other simple way to register all of them , or not register them at all ? Thank you !! p.s tomcat 3.2.1 + apache(mod_jk)

Pl clear this

2000-12-28 Thread Narayanan
Hi All Ihave downloaded the latest version of tomcat and using tha t. 1. Is this the licensed Version .? 2. is there any Enterprise Vesion that has to be purchased . ? 3. How many Users this will support ?. Pl if i get the answers for this it will be very

Re: 403 forbidden in tomcat-apache

2000-12-28 Thread Parvez
thanks, i got the mod_jk.so working now on my machine. but somehow i cannot get it working on the other machine. on my machine i have ... 1. apache user parvez:parvez 2. permisions to htdocs - parvez:parvez 3. permissions to jsp/servlets - parvez:parvez and it works but on the other machine

always a download dialogbox opened.

2000-12-28 Thread Zhao NaiQi
Hello,i have allready installed Tomcat 3.2 withIIS5.0 on my machine using Windows 2000 professional. also i haveset theISAPI filtersin IIS (using isapi_redirect.dll from jakarta.apache.org). It's working very well (.html, .asp and .jsp files). but the .isa (IIS ISAPI file, we created it

bean Constructor

2000-12-28 Thread Deepak C S
Hi , Im using a Bean with scope="session" as follows. jsp:useBean id="test" scope="session" class="MyPack.Mybean"/ I am using the same bean in many JSP pages. The Bean has a constructor which I expect to be called Only once for a session created. But the Constructor is getting