RE: Apache2-Tomcat4 over port 21

2002-07-07 Thread Kapil Sharma

Hi,
But I am using tomcat 3.3.1 and there is no default web.xml file in
$TOMCAT_HOME ?

kapil

-Original Message-
From: Daniel Farinha [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 05:55
To: 'Tomcat Users List'
Subject: Apache2-Tomcat4 over port 21


I've configured Virtual Hosts as you describe under apache1.3/tc2.3 as
well, and they did work ok (i.e. no crossing of context), but haven't
gone around doing it with apache2/tc4 yet. If I do crack it I'll let you
know.

My problem now is to make apache2 in one box speak with tomcat4 in
another box, with the added difficulty that the tomcat box can only
'listen' on port 21 (with the problem of it being < 1024), because of a
firewall which separates the 2 boxes (messy, I know).

I added the following rule to ipchains in the tomcat side:
-A input -j REDIRECT 8009 -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 21

which basically forwards incoming requests from port 21 to port 8009 on
the local machine where the ajp13 connector is listening). I tested the
rule by making a test apache server (on the tomcat box) listen to 8009
and accessing it from a remote machine (ie. lynx
hostaddress:21) and it does work.
But when trying the Apache-Tomcat link it doesn't work (I get a 404 not
found)

My server.xml has:



My workers.properties has the port number configured:
worker.ajp13.port=21

If I could use a port > 1024 I'd have no problem, but I'm stuck with 21
for next 3 months.

Any tips on how to make Apache2 speak with AJP13 over port 21 would be
greatly appreciated.

Dan

> -Original Message-
> From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> Sent: 07 July 2002 04:02
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): 
> a failed attempt
> 
> 
> If you are able to get tomcat4 + apache2 to work with
> VirtualHosts; i.e domain2.com/app1 domain1.com/app2 but not 
> domain2.com/app2 domain1.com/app1. If this seperation of 
> VirtualHosts and Contexts worked for you, please ##PLEASE## 
> let me know how you did it. 
> 
> I upgraded from apache1.3+tc2.3 where my virtualhosts
> and contexts did not cross. Now I can not get any
> virtual host or context/application to stay in its
> pin. I have posted three messages on this board with
> this regard, but it seems either noone has ran into a
> problem or no one has done similar work.
> 
> So, again, if you are going that path let me know.
> 
> Regards.


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




re: HTTP Status 500 - No Context configured to process this request

2002-07-07 Thread mpauley

Hi (Jose),

Had  to  put this aside as I was gone over the holiday weekend; I'm back at
it again.

I  forgot  to give you one very important piece of information regarding my
setup:   tomcat is installed to /var/tomcat4 and the jsp that we are trying
to  use tomcat for is in /bioinformatics/webapps/bioinformatics (and again,
we want to use the URL http://bioinformatics.ist.unomaha.edu/bioinformatics
to  access  it;  note the lack of a port).  Based on this I'm assuming that
Docswouldbe   /bioinformatics/webapps/   and   Manager   would   be
/var/tomcat4/work/localhost/manager (where it exists in my install).

For  your reference, here are the relevant (uncommented-out) portions of my
server.xml  file  and  Apache  httpd.conf  file.   One  immediate question:
should I be changing "localhost" to the DNS name of the machine?

server.xml

  












  
  
  

  
  -->
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  


  

httpd.conf


ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot "/bioinformatics/webapps"
DirectoryIndex index.jsp index.html


Again,  with  the  current configuration, the jsp works but the manager and
examples contexts don't.

Mark


Mark A. Pauley, Ph.D.
Senior Research Fellow
Instructor, Department of Computer Science
College of Information Science & Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284



Content-Transfer-Encoding: 7bit
From: =?iso-8859-1?Q?Jos=E9_Montiel?= <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: RE: HTTP Status 500 - No Context configured to process this
request
Date: Tue, 2 Jul 2002 13:36:02 -0400
Message-ID: <004701c221ee$f09c3fa0$6900030a@jmontiel>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"

Hi Mark,

 Ok I'm not totally clear with you set up, but try this

 Your context in Tomcat should look like this




 if it doesn't work try this





If this doesn't work please send me your entire conf directory, where
server.xml file is, and your httpd.conf file of Apache. Also explain me
the structure of you file system (ex. Docs: /bioinformatics/webapps,
manager: /bioinformatics/webapps/manager, etc)


I'm sending my server.xml file so you can take a look at it. my files
are in

 /home/inmuebles/docs/ - site files (HTML, JSP, GIF
etc)
 /home/inmuebles/webapps/manager   - manager app



About the other questions

 1.- Tomcat can work Stand Alone, it is just not so efficient
delivering HTML content for what I have read, but in my dev box I have
it running Stand Alone (No Apache at all). If you want to set up Apache
with tomcat you have to configure the connector AJP or WARP, there are
more docs for AJP connector. Virtual Hosts has nothing to do with this.

 2.-When you connect to
http://bioinformatics.ist.unomaha.edu:8180, you are probably connecting
directly to Tomcat bypassing Apache, and if you set up the connector
mentioned above you will not have to specify the port.

 3.- I don't really know if a WEB_INF is required, I have always
had it since I work with JSP pages. I any case it doesn't do any harm to
have that directory and even the web.xml file that is supposed to be
there.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Accessing Classes from different Context

2002-07-07 Thread stefan

Hi,

we just wrote an Application-Monitor. It just works fine, but he cannot
access Classes from different Contexts under Tomcat 3.2.4
cross-context and trustable are set both to true
What must we configure, that our Application-Monitor can access to the
Classes that lay unter WEB-INF from other Contexts?

Thanx,

Stefan Hadasch


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




installing the Coyote connector for Tomcat 4.0.x

2002-07-07 Thread Ashraf AMR

Hi,

On the page 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-rc2/

One of the instructions for installing Coyote with
Tomcat 4.0.x is "Copy jk2.properties to
$CATALINA_HOME/conf"

I couldn't find the file "jk2.properties" on this page
or elsewhere

appreciate the help...

Ashraf


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Can someone answer it please...

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 00:03
To: 'Tomcat Users List'
Subject: Tomcat and static content


Hi,
I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there
any way to know that apache is serving all static content like
.html/.gif/.jpeg? My virtual host (in apache) is running very slow and
images are breaking..

Please help?

Cheers
kapil



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and static content

2002-07-07 Thread David Kavanagh

Kapil,
You could look at the apache access log. It will tell when an image has 
been served. There is now way (that I know of) to configure apache to 
trap all image requests that would be handled by a tomcat context. Is 
that what you are trying to do? If so, your web app needs to use paths 
that are not within the web app context. You can set up aliases within 
httpd.conf to make it easier to link images from the web app to some 
convenient path on your httpd server.

Hope this helps.

David

Kapil Sharma wrote:

>Can someone answer it please...
>
>kapil
>
>-Original Message-
>From: Kapil Sharma [mailto:[EMAIL PROTECTED]] 
>Sent: 07 July 2002 00:03
>To: 'Tomcat Users List'
>Subject: Tomcat and static content
>
>
>Hi,
>I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there
>any way to know that apache is serving all static content like
>.html/.gif/.jpeg? My virtual host (in apache) is running very slow and
>images are breaking..
>
>Please help?
>
>Cheers
>kapil
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and static content

2002-07-07 Thread mls

Kapil Sharma wrote:
> Is there any way to know that apache is serving 
> all static content like .html/.gif/.jpeg?

[ May be I am missing something fundamental in your question. ]

Can't you just access one of your static web pages from another
computer and see what you get? 

das

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
Well I can see the images and pages request in apache access log. But it
shows request for .jsp as well as images file. So I am still confused
whether the images are served by tomcat or apache?

Cheers
kapil

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 17:07
To: Tomcat Users List
Subject: Re: Tomcat and static content


Kapil,
You could look at the apache access log. It will tell when an image has 
been served. There is now way (that I know of) to configure apache to 
trap all image requests that would be handled by a tomcat context. Is 
that what you are trying to do? If so, your web app needs to use paths 
that are not within the web app context. You can set up aliases within 
httpd.conf to make it easier to link images from the web app to some 
convenient path on your httpd server.

Hope this helps.

David

Kapil Sharma wrote:

>Can someone answer it please...
>
>kapil
>
>-Original Message-
>From: Kapil Sharma [mailto:[EMAIL PROTECTED]]
>Sent: 07 July 2002 00:03
>To: 'Tomcat Users List'
>Subject: Tomcat and static content
>
>
>Hi,
>I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there 
>any way to know that apache is serving all static content like 
>.html/.gif/.jpeg? My virtual host (in apache) is running very slow and 
>images are breaking..
>
>Please help?
>
>Cheers
>kapil
>
>
>
>--
>To unsubscribe, e-mail: 
>
>For additional commands, e-mail: 
>
>
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
I can access the static web pages but it is very slow. Images are
loading very slow!!

kapil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 17:10
To: Tomcat Users List
Subject: Re: Tomcat and static content


Kapil Sharma wrote:
> Is there any way to know that apache is serving
> all static content like .html/.gif/.jpeg?

[ May be I am missing something fundamental in your question. ]

Can't you just access one of your static web pages from another computer
and see what you get? 

das

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and static content

2002-07-07 Thread Tim Funk

The apache access logs can tell you how long it took for a request to be 
served. All requests (whether they live in tomcat or not) are served by 
apache. So you'll need to check your access logs on the tomcat instance 
to see if only jsp's (or servlets are showing up) are being served by 
tomcat. If image requests are appearing in the tomcat logs - then tomcat 
is serving images. (Meaning apache is probably forwarding all requests 
to tomcat, which is inefficient)

Kapil Sharma wrote:
> Hi,
> Well I can see the images and pages request in apache access log. But it
> shows request for .jsp as well as images file. So I am still confused
> whether the images are served by tomcat or apache?
> 
> Cheers
> kapil
> 
> -Original Message-
> From: David Kavanagh [mailto:[EMAIL PROTECTED]] 
> Sent: 07 July 2002 17:07
> To: Tomcat Users List
> Subject: Re: Tomcat and static content
> 
> 
> Kapil,
> You could look at the apache access log. It will tell when an image has 
> been served. There is now way (that I know of) to configure apache to 
> trap all image requests that would be handled by a tomcat context. Is 
> that what you are trying to do? If so, your web app needs to use paths 
> that are not within the web app context. You can set up aliases within 
> httpd.conf to make it easier to link images from the web app to some 
> convenient path on your httpd server.
> 
> Hope this helps.
> 
> David
> 
> Kapil Sharma wrote:
> 
> 
>>Can someone answer it please...
>>
>>kapil
>>
>>-Original Message-
>>From: Kapil Sharma [mailto:[EMAIL PROTECTED]]
>>Sent: 07 July 2002 00:03
>>To: 'Tomcat Users List'
>>Subject: Tomcat and static content
>>
>>
>>Hi,
>>I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there 
>>any way to know that apache is serving all static content like 
>>.html/.gif/.jpeg? My virtual host (in apache) is running very slow and 
>>images are breaking..
>>
>>Please help?
>>
>>Cheers
>>kapil
>>
>>
>>
>>--
>>To unsubscribe, e-mail: 
>>
>>For additional commands, e-mail: 
>>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
> 
> 
> 
>>For additional commands, e-mail: 
>>
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and static content

2002-07-07 Thread Andrew Conrad

Modify your urlworkermap.properties so it serves only jsp files

Etc...

/*.jsp=ajp13

- Andrew


-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 07, 2002 12:06 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat and static content


Hi,
Well I can see the images and pages request in apache access log. But it
shows request for .jsp as well as images file. So I am still confused
whether the images are served by tomcat or apache?

Cheers
kapil

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]]
Sent: 07 July 2002 17:07
To: Tomcat Users List
Subject: Re: Tomcat and static content


Kapil,
You could look at the apache access log. It will tell when an image has
been served. There is now way (that I know of) to configure apache to
trap all image requests that would be handled by a tomcat context. Is
that what you are trying to do? If so, your web app needs to use paths
that are not within the web app context. You can set up aliases within
httpd.conf to make it easier to link images from the web app to some
convenient path on your httpd server.

Hope this helps.

David

Kapil Sharma wrote:

>Can someone answer it please...
>
>kapil
>
>-Original Message-
>From: Kapil Sharma [mailto:[EMAIL PROTECTED]]
>Sent: 07 July 2002 00:03
>To: 'Tomcat Users List'
>Subject: Tomcat and static content
>
>
>Hi,
>I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there 
>any way to know that apache is serving all static content like 
>.html/.gif/.jpeg? My virtual host (in apache) is running very slow and 
>images are breaking..
>
>Please help?
>
>Cheers
>kapil
>
>
>
>--
>To unsubscribe, e-mail: 
>
>For additional commands, e-mail: 
>
>
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed attempt

2002-07-07 Thread Andrew Conrad

I recommend lots of Mountain Dew and pizza for any kind of install of
Tomcat.  A little music never hurts either.

:)

-Andrew

-Original Message-
From: Daniel Farinha [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 06, 2002 10:11 PM
To: 'Tomcat Users List'
Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed
attempt


Of course!

I did read somewhere that you can use mod_jk, but I must admit after so
many frustrating hours trying to make mod_jk2 work I forgot about that
and was just about to go back to Apache 1.3. Thank you for reminding me,
I have now linked tomcat4 and apache2 with mod_jk.

Still, in order to compile mod_jk from the connectors-4.0.4 source I had
first to compile the coyote code, and therefore hack the source as I
mentioned in my original post. This didn't happen with connectors-4.0.2.
A bit of a nuisance...

Anyway, with this working my next task is to get it working with tomcat
and apache on separate boxes. More hours of frustration I bet ;) I could
hardly find any documentation regarding this kind of setup, can anyone
offer any useful pointers?

Andrew, thanks again for the tip.

Dan

> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: 07 July 2002 00:00
> To: 'Tomcat Users List'; [EMAIL PROTECTED]
> Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): 
> a failed attempt
> 
> 
> You know that you could use mod_jk with Apache 2, correct?
> 
> - Andrew


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat and static content

2002-07-07 Thread Fredrik Viklund

Kapil Sharma wrote:

> I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there
> any way to know that apache is serving all static content like
> .html/.gif/.jpeg? My virtual host (in apache) is running very slow and
> images are breaking..

I would try these things: (Bear in mind that I am a OpenBSD user and Tomcat
beginner, so this may be completely out of range.

1. Find the problem. Go directly to Tomcat (using its network port), without
passing through the Apache server. If this is faster, the problem is on the
Apache side, if it's still slow, the problem is on the Tomcat side.

2. If the problem is on Tomcat: Are the static pages also parsed by Tomcat. It
should be possible to set some extensions as static content and send them through
the server without parsing them for JSP code etc. I think this is defined in your
web.xml file. (I *said* I'm a beginner:-)

3. Anyway, if the problem can't be fixed in Tomcat, you could set your Apache to
forward only URL:s that end in .jsp to Tomcat.
I use URL rewriting to forward any http://jsp.my.server.com/url.html url to
http://my.server.com:8080/url.html
In that case you do the same, it is easy:
Modify your your Apache httpd.conf under the virutal hosts section for the Tomcat
server:
 RewriteEngine On
 RewriteCondition %{HTTP:Authorization} ^(.*)
 RewriteRule ^(.*\.jsp) http://your.server:8080$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l,P]

Then Authorization line is only needed if you are using logins or other features
that use HTTP authorization.
The last line is
 RewriteRule ^(.*) (etcetera)
if you want to forward everything to port 8080.

You will of course need to do "LoadModule rewrite_module
/usr/lib/apache/modules/mod_rewrite.so" or similar earlier in your httpd.conf,
but that is covered elsewhere in the Apache documentation.

Good luck.

/Fredrik




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: problem with tomcat 4.03 on Win2K

2002-07-07 Thread Karamjit (Nick) Singh

I am not sure what this means...should I trace the steps that are being
performed using the command line batch files?

Also,

When running through the batch files, is tomcat using the env var CLASSPATH.
It seems that the NT Service uses the classpath parameter when you install
the service.

Is this true?

My CLASSPATH environment variable list most of the jar files in the lib,
common\lib and server\lib directories...Is this required for Tomcat 4.x.  I
remember I needed to do this for 3.x. If so, then do I do the same for the
classapth parameter when installing the service. I am referring to the
install parameter: -Djava.class.path

Thanks

-Original Message-
From: Joey Kovacs [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 06, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with tomcat 4.03 on Win2K


you can go into the command prompt, its actually a long process


>From: "Karamjit (Nick) Singh" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: problem with tomcat 4.03 on Win2K
>Date: Sat, 6 Jul 2002 14:09:27 -0700
>
>
>
>I am having a problem with Tomcat 4.03 on Win2K. I have installed the
>service manually according to the various posts using tomcat.exe.
>
>When I goto the Service control manager and start the service, it doesn't
>start. There are no logs being generated as well. I have the log levels set
>to 99 in server.xml
>
>The prerequisites are also installed and configured such as JDK 1.3.1 and
>the env vars set.
>
>Any help would be greatly appreciated.
>
>Thanks
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




j03b0x3r


_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Newbie: let servlet behavior depend on server load ?

2002-07-07 Thread Holger Blasum

Hello *,

is there any possibility to make behavior of servlets depend on the server 
load, e.g.

Servlet.java:

if (current_number_of_tomcat_threads < 15) {
a_lot_of_fancy_lookups_and_slow_computations ();
} else {
just_the_most_essential_lookups_and_computations ();
}

Background: we run a site for students course subscription and it gets 
overloaded at peak times (just when inscriptions are opened) but has little
load the other time. Running tomcat 4.04 standalone on jdk 1.3.1 blackdown
linux kernel 2.2.

Though this is of course would be a dirty workaround 
(and a lame excuse for poor database design and coding) the answers might be 
instructive for understanding how to tweak with servlets nonetheless. 

Thx,

-- 
Holger Blasum <[EMAIL PROTECTED]>   pls sign http://petition.eurolinux.org
GnuPG 1024D/995D35846FBC717E3562against software patents in Europe! 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
I have got the following lines in my mod_jk.conf-auto file:

# Static files
Alias /foo "/export/home/test/u2/current/foo"
 

Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm logon.jsp


1: What is the meaning of alias here. This means that apache will deal
with this alias to serve static content?
2: Where can I define Indexes? How can I get rid of directory indexing?
I have already made  change in
server.xml, but still indexing is enables?

kapil



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




CGIServlet cannot find my perl script

2002-07-07 Thread Richard Haber

I am running Apache 2.0.36 with Tomcat 4.0.3 and mod_jk on Windows XP.
The site was running without a VirtualHost and Apache was able to
execute the .pl scripts using the ScriptAlias element in httpd.conf.
When I moved the site to a virtual host, ScriptAlias stopped working.
After much fruitless hacking, I discovered CGIServlet and tried using
it.

I have the Tomcat CGIServlet configured as follows:
 
  cgi
  org.apache.catalina.servlets.CGIServlet
  ...
  
   cgiPathPrefix
   ks/cgi-bin/  
  5
 

 
  cgi
  /cgi-bin/*
 

I am trying to invoke a perl script which is stored at
D:\tomcat403\webapps\ks\cgi-bin with the HTML:


I am getting the following error page from the servlet (extraneous
portions left out):

$Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/serv
lets/CGIServlet.java,v 1.6 2001/08/20 02:42:11 amyroh Exp $
CGI script not found or not specified. 
Check the HttpServletRequest pathInfo property to see if it is what you
meant it to be. You must specify an existant and executable file as part
of the path-info. 

HttpServletRequest Properties
  method = POST 
  pathInfo = /enhancements.pl 
  pathTranslated = D:\TOMCAT403\webapps\ks\enhancements.pl 
  ...
  requestURI = /cgi-bin/enhancements.pl
  servletPath = /cgi-bin 

ServletConfig Initialization Parameters
  cgiPathPrefix = ks/cgi-bin/ 

ServletContext Properties
  realPath('/') = D:\TOMCAT403\webapps\ks\ 

If I change to mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread Jamal Najmi


Hi, I am new to Apache and  Tomcat.  I

   I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 
2000.  I need to connect them so that Apache HTTP server forwards servlet and JSP 
requests to Tomcat.  I have been trying to find the documentation on Apache plugin for 
Tomcat 4.0.3, but noluck.  I can find instruction and mod_jk for Tomcat 3.3.x but not 
for Tomcat 4.0.3.  I will really appreciate if someone can direct to where the 
software and instructions are. 

Thanks

Jamal  



-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh

I just used my mod_jk configuration from tomcat 3.2.x on my 4.0.4 
install. If you look in the server.xml for tomcat 4, you should find 
something about an AJP13 connector. That is what links with mod_jk. Just 
make sure the port numbers match (mine did).

David

Jamal Najmi wrote:

>Hi, I am new to Apache and  Tomcat.  I
>
>   I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 
>2000.  I need to connect them so that Apache HTTP server forwards servlet and JSP 
>requests to Tomcat.  I have been trying to find the documentation on Apache plugin 
>for Tomcat 4.0.3, but noluck.  I can find instruction and mod_jk for Tomcat 3.3.x but 
>not for Tomcat 4.0.3.  I will really appreciate if someone can direct to where the 
>software and instructions are. 
>
>Thanks
>
>Jamal  
>
>
>
>-
>Do You Yahoo!?
>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh

oops, I should have mentioned, I'm using apache 1.3.x. Not 2.0.x. Might 
be a different story there...

Jamal Najmi wrote:

>Hi, I am new to Apache and  Tomcat.  I
>
>   I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 
>2000.  I need to connect them so that Apache HTTP server forwards servlet and JSP 
>requests to Tomcat.  I have been trying to find the documentation on Apache plugin 
>for Tomcat 4.0.3, but noluck.  I can find instruction and mod_jk for Tomcat 3.3.x but 
>not for Tomcat 4.0.3.  I will really appreciate if someone can direct to where the 
>software and instructions are. 
>
>Thanks
>
>Jamal  
>
>
>
>-
>Do You Yahoo!?
>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread STEVE R BURRUS

David, you probably don't know me at all, (I am Steve Burrus!) but I was wondering
if you could either supply me with the hyperlink to access any info on using the
numerous directives with Apache 2 OR tell me about all of the more important
directives that I should know about to get going with it!!
***

--- David Kavanagh <[EMAIL PROTECTED]> wrote:
> oops, I should have mentioned, I'm using apache 1.3.x. Not 2.0.x. Might 
> be a different story there...
> 
> Jamal Najmi wrote:
> 
> >Hi, I am new to Apache and  Tomcat.  I
> >
> >   I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my
> Win 2000.  I need to connect them so that Apache HTTP server forwards servlet
> and JSP requests to Tomcat.  I have been trying to find the documentation on
> Apache plugin for Tomcat 4.0.3, but noluck.  I can find instruction and mod_jk
> for Tomcat 3.3.x but not for Tomcat 4.0.3.  I will really appreciate if someone
> can direct to where the software and instructions are. 
> >
> >Thanks
> >
> >Jamal  
> >
> >
> >
> >-
> >Do You Yahoo!?
> >New! SBC Yahoo! Dial - 1st Month Free & unlimited access
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh

Steve,
To be perfectly honest, I've never configured Apache 2.0. I'm still 
stuck in 1.3 and just haven't gotten around to (or been motivated to) 
upgrade. If I wanted to know about it, I'd first look in the httpd.conf 
file (if it still uses that) since there have been numerous comments 
there in the past. I found this link that might also help, there seems 
to be a section on configuration files...

http://httpd.apache.org/docs-2.0/

Good luck!

David

STEVE R BURRUS wrote:

>David, you probably don't know me at all, (I am Steve Burrus!) but I was wondering
>if you could either supply me with the hyperlink to access any info on using the
>numerous directives with Apache 2 OR tell me about all of the more important
>directives that I should know about to get going with it!!
>***
>
>--- David Kavanagh <[EMAIL PROTECTED]> wrote:
>
>>oops, I should have mentioned, I'm using apache 1.3.x. Not 2.0.x. Might 
>>be a different story there...
>>
>>Jamal Najmi wrote:
>>
>>>Hi, I am new to Apache and  Tomcat.  I
>>>
>>>  I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my
>>>
>>Win 2000.  I need to connect them so that Apache HTTP server forwards servlet
>>and JSP requests to Tomcat.  I have been trying to find the documentation on
>>Apache plugin for Tomcat 4.0.3, but noluck.  I can find instruction and mod_jk
>>for Tomcat 3.3.x but not for Tomcat 4.0.3.  I will really appreciate if someone
>>can direct to where the software and instructions are. 
>>
>>>Thanks
>>>
>>>Jamal  
>>>
>>>
>>>
>>>-
>>>Do You Yahoo!?
>>>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>>
>
>
>__
>Do You Yahoo!?
>Sign up for SBC Yahoo! Dial - First Month Free
>http://sbc.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>




Re: Accessing Classes from different Context

2002-07-07 Thread Craig R. McClanahan



On Sun, 7 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Sun, 7 Jul 2002 15:13:25 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Accessing Classes from different Context
>
> Hi,
>
> we just wrote an Application-Monitor. It just works fine, but he cannot
> access Classes from different Contexts under Tomcat 3.2.4
> cross-context and trustable are set both to true
> What must we configure, that our Application-Monitor can access to the
> Classes that lay unter WEB-INF from other Contexts?
>

Classes loaded from a different webapp's classloader are never shared.  In
order to be able to share them, the relevant classes need to be loaded by
the same classloader -- for Tomcat 3.2.x (which, by the way, is really
ancient history), that means putting them on the system CLASSPATH.

> Thanx,
>
> Stefan Hadasch
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"

2002-07-07 Thread Jack Park

I continue to get the sql exception using the above software and
mm.mysql 2.0.8 drivers.
MySql is 3.23.51 downloaded from entropy.ch

I have granted permission to the program for both localhost (a guess) and 
localhost.localdomain (which I needed on wintel and linux).

While roaming with google, someone 
(http://www.macosx.com/forums/showthread.php?s=&threadid=7737&highlight=mysq 
l+java) solved (I think) the same problem by making a new root user with 
host = % (I confess: I have no idea how to do that!).  I tried making my 
program (the name I use to open a connection to mysql) a Mac User.  Nothing 
changed.

I see several candidate avenues of inquiry:
tomcat 4.0.4 has problems with this configuration (I think very unlikely)
mm.mysql 2.0.8 is the wrong driver for 3.23.51
3.23.51 (being a very recent release) has some problem
my configuration of the database with permissions is not consistent with 
OS X needs (works fine on wintel and linux, however).

Any thoughts would be greatly appreciated.
Cheers,
Jack


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed attempt

2002-07-07 Thread Lalit Pant


Tried to get Apace-2.0.39 + Tomcat 4.x working based on the pointers here,
and I must say I did not have too many problems. Fyi, I just built the
native portions of the connectors (mod_jk.so, mod_jk2.so), and got mod_jk.so
to work with (the binaries of ) Tomcat 4.0.4 and and 4.1.5 on multiple
machines. I did not try to configure mod_jk2!

Here's a summary of what I did...

Step 1

make and install Apache 2.0.39 into /opt/apache2

Step 2

- get tomcat-connectors from:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/jakar
ta-tomcat-connectors-4.0.4-src.tar.gz

- extract into ${conn_dir}

- Set up build.properties
-- cd ${conn_dir}/jk
-- cp build.properties.sample build.properties
-- vi build.properties
-- set tomcat40.home
-- comment out tomcat41.home and tomcat33.home
-- comment out everything except apache2.home in the webservers location
section
-- set debug=false, optimize=true, profile=false in compile-time options
section
-- add 'linux=true' as the last line of build.properties

- Set up build.xml
-- vi build.xml
-- go to the native target section and change it to

 
 


- Build
-- ant native

This builds up both mod_jk.so and mod_jk2.so under
${conn_dir}/jk/build/jk/apache2 and ${conn_dir}/jk/build/jk2/apache2

Step 3

Get Apache-2.0.39/mod_jk.so to work with Tomcat 4.0.x and 4.1.x with the .so
built above

- Put the following workers.properties in /opt/apache2/conf

# Sample workers.properties
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
# worker.ajp13.host=localhost
worker.ajp13.host=192.168.0.1
worker.ajp13.type=ajp13


- Put the following lines at the end of your httpd.conf

LoadModule jk_module modules/mod_jk.so
# AddModule mod_jk.c

JkWorkersFile "/opt/apache2/conf/workers.properties"
JkLogFile "/opt/apache2/logs/mod_jk.log"
JkLogLevel info

JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /servlet/* ajp13
JkMount /manager/* ajp13

- Start either Tomcat 4.0.x or 4.1.x on the machine which workers.properties
is pointing to (make sure that the AJP13 connector on port 8009 is
uncommented in server.xml), and try:
http://apache2.host/examples/jsp/num/numguess.jsp

- It should work!

Cheers,
- Lalit


- Original Message -
From: "Daniel Farinha" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, July 06, 2002 10:11 PM
Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed
attempt


> Of course!
>
> I did read somewhere that you can use mod_jk, but I must admit after so
> many frustrating hours trying to make mod_jk2 work I forgot about that
> and was just about to go back to Apache 1.3.
> Thank you for reminding me, I have now linked tomcat4 and apache2 with
> mod_jk.
>
> Still, in order to compile mod_jk from the connectors-4.0.4 source I had
> first to compile the coyote code, and therefore hack the source as I
> mentioned in my original post. This didn't happen with connectors-4.0.2.
> A bit of a nuisance...
>
> Anyway, with this working my next task is to get it working with tomcat
> and apache on separate boxes. More hours of frustration I bet ;)
> I could hardly find any documentation regarding this kind of setup, can
> anyone offer any useful pointers?
>
> Andrew, thanks again for the tip.
>
> Dan




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"

2002-07-07 Thread Steve Ahlstrom

2.0.8 is a very old driver.  The current version is 2.0.14

I don't know how you granted permissions, but do something like ...

(assuming root for username and admin for password) ...

start mysql, then
grant all on *.* to [EMAIL PROTECTED] identified by "admin";

Then "use mysql" and select * on user, make sure your grant took
effect.

If everything looks cool and it still doesn't work, check that your
server.xml is configured correctly for your context and datasource.


-Original Message-
From: Jack Park [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 07, 2002 4:24 PM
To: [EMAIL PROTECTED]
Subject: Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"


I continue to get the sql exception using the above software and
mm.mysql 2.0.8 drivers.
MySql is 3.23.51 downloaded from entropy.ch

I have granted permission to the program for both localhost (a guess) and
localhost.localdomain (which I needed on wintel and linux).

While roaming with google, someone
(http://www.macosx.com/forums/showthread.php?s=&threadid=7737&highlight=mysq
l+java) solved (I think) the same problem by making a new root user with
host = % (I confess: I have no idea how to do that!).  I tried making my
program (the name I use to open a connection to mysql) a Mac User.  Nothing
changed.

I see several candidate avenues of inquiry:
tomcat 4.0.4 has problems with this configuration (I think very unlikely)
mm.mysql 2.0.8 is the wrong driver for 3.23.51
3.23.51 (being a very recent release) has some problem
my configuration of the database with permissions is not consistent with
OS X needs (works fine on wintel and linux, however).

Any thoughts would be greatly appreciated.
Cheers,
Jack


--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Front-ending Tomcat 4.04 with Apache 1.3 with RH7.3

2002-07-07 Thread Steve Ahlstrom

After spending a frustrating hour on the jakarta site looking for info, can
anyone point me to documenation on how to front end Tomcat 4.04
with Apache 1.3 under Red Hat 7.3 or give me step by step instructions?

I've installed mod_jk-1.3-1.0-1.4.0.2.  I'm supposed to run tomcat 
with the jkconf option and a config file is supposed to
appear.  Then I'm supposed to edit httpd.conf.  

I've been unsuccessful at creating the config file.  I've got one, but
it is dated last Feb and is in /etc/httpd/conf/mod_jk.conf so I'm 
assuming that came from my 7.3 install, not anything I did today.

Any pointers out there?

Steve




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie: let servlet behavior depend on server load ?

2002-07-07 Thread Clay Graham

well I know how you would do it in struts...

you could have a servlet action forward, when the action was executed it could check 
how many threads there were and forward appropriatly...

that's struts though

clay


-Original Message-
From:   Holger Blasum [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, July 07, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject:Newbie: let servlet behavior depend on server load ?

Hello *,

is there any possibility to make behavior of servlets depend on the server 
load, e.g.

Servlet.java:

if (current_number_of_tomcat_threads < 15) {
a_lot_of_fancy_lookups_and_slow_computations ();
} else {
just_the_most_essential_lookups_and_computations ();
}

Background: we run a site for students course subscription and it gets 
overloaded at peak times (just when inscriptions are opened) but has little
load the other time. Running tomcat 4.04 standalone on jdk 1.3.1 blackdown
linux kernel 2.2.

Though this is of course would be a dirty workaround 
(and a lame excuse for poor database design and coding) the answers might be 
instructive for understanding how to tweak with servlets nonetheless. 

Thx,

-- 
Holger Blasum <[EMAIL PROTECTED]>   pls sign http://petition.eurolinux.org
GnuPG 1024D/995D35846FBC717E3562against software patents in Europe! 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problems stopping tomcat 4.0.4 on linux

2002-07-07 Thread Bryan Zimmer

Greetings,

I am running Tomcat and Apache together on a RedHat Linux box. Up until
recently they seem to have done quite well. I recently encountered a problem
that I can not trace to any configuration change that I made - I made few or
none - although the problem seems related to configuration. Just today I
installed the rpm version of Tomcat 4.0.4, upgrading from 4.0.3, first
wiping out the old tomcat installation (but saving the important config
files in a different directory). I still get the same results.

On RedHat, the startup script is invoked by issuing the command "service
tomcat4 start", and correspondingly to shut down "service tomcat4 stop".
What happens is that Tomcat seems to start up without complaint, although
its /webapps/examples directory was inaccessible. That may have been an
Apache problem configuring mod_webapp.so and the WarpConnection, or the
directory aliases (do they end with a slash or not? Is there a printed or
online guide to configuring mod_webapp and WarpConnection?).

However, when I issued the command "service tomcat4 stop", I got the
following output:

Stopping tomcat4:
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/jdk   <<--- symbolic link to my
/usr/java/j2sdk1.4.0
Catalina.stop: java.net.NoRouteToHostException: No route to host
java.net.NoRouteToHostException: No route to host
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
 at java.net.Socket.connect(Socket.java:425)
 at java.net.Socket.connect(Socket.java:375)
 at java.net.Socket.(Socket.java:290)
 at java.net.Socket.(Socket.java:118)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  FAILED

Tomcat actually did stop, but I can't understand the meaning of "No route to
host". The localhost and the machines external IP addresses are both in my
routing table. I checked all the config files I could think of, but couldn't
come up with any ideas.

Can anyone help me solve this dilemma?

Also, I had to use the --nodeps switch on rpm when installing 4.0.4, because
rpm was unaware of the existence of log4j on my machine, but that's another
matter.

Thanks,

Bryan A. Zimmer
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: Problems stopping tomcat 4.0.4 on linux

2002-07-07 Thread Daniel Farinha

That reminds me of the error I get every time I try to shutdown Tomcat
when it is not actually running, only I get a
"java.net.ConnectException: Connection refused". This happens often
during my messing up with the configuration files, since the startup
script never outputs any errors, including the fact that Tomcat might
not have started at all (you really have to look at logs/catalina.out if
you're not sure). When I realise something's gone wrong and try stopping
Tomcat (without realising it wasn't running at all) then end up getting
the Exception, along with the thread stack.

Perhaps the NoRouteToHostException is also related to Tomcat not having
initialised properly, since you do have that problem in
/webapps/examples?

Dan

> -Original Message-
> From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
> Sent: 08 July 2002 02:42
> To: Tomcat Users
> Subject: Problems stopping tomcat 4.0.4 on linux
> 
> 
> Greetings,
> 
> I am running Tomcat and Apache together on a RedHat Linux
> box. Up until recently they seem to have done quite well. I 
> recently encountered a problem that I can not trace to any 
> configuration change that I made - I made few or none - 
> although the problem seems related to configuration. Just 
> today I installed the rpm version of Tomcat 4.0.4, upgrading 
> from 4.0.3, first wiping out the old tomcat installation (but 
> saving the important config files in a different directory). 
> I still get the same results.
> 
> On RedHat, the startup script is invoked by issuing the
> command "service tomcat4 start", and correspondingly to shut 
> down "service tomcat4 stop". What happens is that Tomcat 
> seems to start up without complaint, although its 
> /webapps/examples directory was inaccessible. That may have 
> been an Apache problem configuring mod_webapp.so and the 
> WarpConnection, or the directory aliases (do they end with a 
> slash or not? Is there a printed or online guide to 
> configuring mod_webapp and WarpConnection?).
> 
> However, when I issued the command "service tomcat4 stop", I
> got the following output:
> 
> Stopping tomcat4:
> Using CATALINA_BASE:   /var/tomcat4
> Using CATALINA_HOME:   /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using JAVA_HOME:   /usr/java/jdk   <<--- symbolic link to my
> /usr/java/j2sdk1.4.0
> Catalina.stop: java.net.NoRouteToHostException: No route to host
> java.net.NoRouteToHostException: No route to host
>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
>  at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
>  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
>  at java.net.Socket.connect(Socket.java:425)
>  at java.net.Socket.connect(Socket.java:375)
>  at java.net.Socket.(Socket.java:290)
>  at java.net.Socket.(Socket.java:118)
>  at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39
> )
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>   FAILED
> 
> Tomcat actually did stop, but I can't understand the meaning
> of "No route to host". The localhost and the machines 
> external IP addresses are both in my routing table. I checked 
> all the config files I could think of, but couldn't come up 
> with any ideas.
> 
> Can anyone help me solve this dilemma?
> 
> Also, I had to use the --nodeps switch on rpm when installing
> 4.0.4, because rpm was unaware of the existence of log4j on 
> my machine, but that's another matter.
> 
> Thanks,
> 
> Bryan A. Zimmer
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"

2002-07-07 Thread Jack Park

Thank you!

I just upgraded to 2.0.14 with no change in behavior.

I suppose I am a bit confused, and perhaps a bit of detail on what I have 
done might help.

I open mysql with 
DriverManager.getConnection("jdbc:mysql:///mydatabase","nexw","")
where nexw is the username and there is no password.

I have already used two different grants:
 grant all privileges on mydatabase/* to nexw@localhost; 
 
I am not aware of anything else I need to tell tomcat, particularly since 
that context statement works on both WinME and Linux, and this is OS X.

Among the things I have tried is to create a Mac User called "nexw", with 
no password and no root privileges.  Perhaps OS X requires that, which 
means this my problem is less a tomcat problem and more a Darwin-user 
(ignorance) problem.

Looking at mysql:user and mysql:db, nexw is clearly a registered (with 
mysql) user with granted privileges, for both localhost and for 
localhost.localdomain.

That summarizes the problem, thus far. Maybe that will animate more ideas.

Thanks again.
Jack

At 05:46 PM 7/7/2002 -0600, you wrote:
>2.0.8 is a very old driver.  The current version is 2.0.14
>
>I don't know how you granted permissions, but do something like ...
>
>(assuming root for username and admin for password) ...
>
>start mysql, then
>grant all on *.* to [EMAIL PROTECTED] identified by "admin";
>
>Then "use mysql" and select * on user, make sure your grant took
>effect.
>
>If everything looks cool and it still doesn't work, check that your
>server.xml is configured correctly for your context and datasource.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: FW: Problems stopping tomcat 4.0.4 on linux

2002-07-07 Thread Bryan Zimmer

According to my process table "ps -ef f" Tomcat4 and its numerous 
sub-threads had indeed started. I haven't tweaked the config files so 
I'm not yet sure if it's responding at all as a standalone server.

Good guess, though.


On Sunday 07 July 2002 09:01 pm, Daniel Farinha wrote:
> That reminds me of the error I get every time I try to shutdown
> Tomcat when it is not actually running, only I get a
> "java.net.ConnectException: Connection refused". This happens often
> during my messing up with the configuration files, since the startup
> script never outputs any errors, including the fact that Tomcat might
> not have started at all (you really have to look at logs/catalina.out
> if you're not sure). When I realise something's gone wrong and try
> stopping Tomcat (without realising it wasn't running at all) then end
> up getting the Exception, along with the thread stack.
>
> Perhaps the NoRouteToHostException is also related to Tomcat not
> having initialised properly, since you do have that problem in
> /webapps/examples?
>
> Dan
>
> > -Original Message-
> > From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
> > Sent: 08 July 2002 02:42
> > To: Tomcat Users
> > Subject: Problems stopping tomcat 4.0.4 on linux
> >
> >
> > Greetings,
> >
> > I am running Tomcat and Apache together on a RedHat Linux
> > box. Up until recently they seem to have done quite well. I
> > recently encountered a problem that I can not trace to any
> > configuration change that I made - I made few or none -
> > although the problem seems related to configuration. Just
> > today I installed the rpm version of Tomcat 4.0.4, upgrading
> > from 4.0.3, first wiping out the old tomcat installation (but
> > saving the important config files in a different directory).
> > I still get the same results.
> >
> > On RedHat, the startup script is invoked by issuing the
> > command "service tomcat4 start", and correspondingly to shut
> > down "service tomcat4 stop". What happens is that Tomcat
> > seems to start up without complaint, although its
> > /webapps/examples directory was inaccessible. That may have
> > been an Apache problem configuring mod_webapp.so and the
> > WarpConnection, or the directory aliases (do they end with a
> > slash or not? Is there a printed or online guide to
> > configuring mod_webapp and WarpConnection?).
> >
> > However, when I issued the command "service tomcat4 stop", I
> > got the following output:
> >
> > Stopping tomcat4:
> > Using CATALINA_BASE:   /var/tomcat4
> > Using CATALINA_HOME:   /var/tomcat4
> > Using CATALINA_TMPDIR: /var/tomcat4/temp
> > Using JAVA_HOME:   /usr/java/jdk   <<--- symbolic link to
> > my /usr/java/j2sdk1.4.0
> > Catalina.stop: java.net.NoRouteToHostException: No route to host
> > java.net.NoRouteToHostException: No route to host
> >  at java.net.PlainSocketImpl.socketConnect(Native Method)
> >  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
> >  at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
> >  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
> >  at java.net.Socket.connect(Socket.java:425)
> >  at java.net.Socket.connect(Socket.java:375)
> >  at java.net.Socket.(Socket.java:290)
> >  at java.net.Socket.(Socket.java:118)
> >  at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
> >  at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
> >  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)  at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39
> > )
> >  at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl
> > .java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:324)
> >  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> >   FAILED
> >
> > Tomcat actually did stop, but I can't understand the meaning
> > of "No route to host". The localhost and the machines
> > external IP addresses are both in my routing table. I checked
> > all the config files I could think of, but couldn't come up
> > with any ideas.
> >
> > Can anyone help me solve this dilemma?
> >
> > Also, I had to use the --nodeps switch on rpm when installing
> > 4.0.4, because rpm was unaware of the existence of log4j on
> > my machine, but that's another matter.
> >
> > Thanks,
> >
> > Bryan A. Zimmer
> > [EMAIL PROTECTED]
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 

-- 
Bryan A. Zimmer
[EMAIL PROTECTED]

 Populus vult decipi.
[The people like to be deceived.]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread Jamal Najmi


Do the mod_jk and ASP13 connector libraries usually come with the Tomcat 4.0.3 
installation?  After reading the tomcat server.xml file I am under the impression that 
mod_jk is the connector.  I am not sure where to get it though.  
Thanks  
Jamal
David Kavanagh <[EMAIL PROTECTED]> wrote: I just used my mod_jk configuration from tomcat 
3.2.x on my 4.0.4 
install. If you look in the server.xml for tomcat 4, you should find 
something about an AJP13 connector. That is what links with mod_jk. Just 
make sure the port numbers match (mine did).

David

Jamal Najmi wrote:

>Hi, I am new to Apache and Tomcat. I
>
> I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 2000. 
>I need to connect them so that Apache HTTP server forwards servlet and JSP requests 
>to Tomcat. I have been trying to find the documentation on Apache plugin for Tomcat 
>4.0.3, but noluck. I can find instruction and mod_jk for Tomcat 3.3.x but not for 
>Tomcat 4.0.3. I will really appreciate if someone can direct to where the software 
>and instructions are. 
>
>Thanks
>
>Jamal 
>
>
>
>-
>Do You Yahoo!?
>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>



--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


jspsmartupload

2002-07-07 Thread Brian Wolf

I am tryning to configure the "jspsmartupload" package.

Can anyone tell me what this might be caused by
-thanks , brian

Error: 500
Location: /examples/jsp/jspsmartupload/jsp/sample1.jsp
Internal Servlet Error:

javax.servlet.ServletException: Total File Size exceeded (1110).
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
 at 
jsp.jspsmartupload.jsp._0002fjsp_0002fjspsmartupload_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_0._jspService(_0002fjsp_0002fjspsmartupload_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_0.java:125)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:539)

Root cause: 
java.lang.SecurityException: Total File Size exceeded (1110).
 at com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:310)
 at 
jsp.jspsmartupload.jsp._0002fjsp_0002fjspsmartupload_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_0._jspService(_0002fjsp_0002fjspsmartupload_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_0.java:99)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:539)





RE: manager does not want my password

2002-07-07 Thread Vikramjit Singh

Hi,

even i faced the same problem, but i was on windows. I dont think that
should matter much. Check the log files, for any errors which might have
been while starting tomcat. In my case, i was gettting error in JDBC Realm,
driver not found. After i fixed the problem, the manager was accepting
password. Hope this helps.

Regards,
Vikram.


-Original Message-
From: Frederic Barachant [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 5:01 PM
To: [EMAIL PROTECTED]
Subject: manager does not want my password


Hello.
I've got a standalone tomcat 4.0.1 install on a redhat.
I've got the standard memory realm configured, and i've been changing the
tomcat-users.xml file to 
create a user with "manager" role.
Despite hundred tomcat restarts, copies of examples from many faq,  the
server still rejects each and every
account i create.
Help.. i really don't understand what's happening.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"

2002-07-07 Thread Steve Ahlstrom

I'm using Linux, not OSX, so there will likely be differences, but shouldn't
be too much as OSX is Mach/BSD based.

I'm using connection pooling, so I've got commons-collections.jar,
commons-dbcp.jar, commons-pool.jar as well as mm.mysql-2.0.14-bin.jar
in $CATALINA_HOME/common/lib.

I connect to a datasource with the following code ...

   public Connection getConn (String appl)
  throws SQLException {
  DataSource datasource = null;
  try {
 Context initialcontext = new InitialContext();
 datasource =
(DataSource)initialcontext.lookup("java:comp/env/jdbc/" + appl);
  }
  catch (NamingException e) {
throw new SQLException(e.getMessage());

  }
  try {
 conn = datasource.getConnection();
  }
  catch (SQLException e) {
 throw new SQLException(newMsg, e.getSQLState(), e.getErrorCode());
  }
  return (conn);
   }

My context for my app is ...




  

  

  
 
factory
org.apache.commons.dbcp.BasicDataSourceFactory
 
 
username
root
 
 
password
admin
 
 

driverClassNameorg.gjt.mm.mysql.Driver
 
 

urljdbc:mysql://10.0.0.4:3306/thought
 
  


My database name is "thought", my username is "root" and my password is
"admin".
Substitute your own as required.

The appropriate section of my web.xml file is ...

  
jdbc/thought
javax.sql.DataSource
Container
  

I'm not a MySQL expert.  Your grant statement looks funny to me because
I'm not used to seeing the /* syntax.  Not saying it's wrong.  For all
of my MySQL questions I go to the New Riders book, MySQL, by Paul Dubois.

That's about all I can tell you other than my app's been running under
both Weblogic and HPAS for the last 9 months.  I finally got it going
under Tomcat this weekend using the info above.  Now if I can just figure
out how to front end Tomcat with Apache I'll be done with it.

Good luck
Steve


-Original Message-
From: Jack Park [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 07, 2002 8:09 PM
To: Tomcat Users List
Subject: RE: Mac OS X, Tomcat 4.0.4, MySql "configuration denies access"


Thank you!

I just upgraded to 2.0.14 with no change in behavior.

I suppose I am a bit confused, and perhaps a bit of detail on what I have
done might help.

I open mysql with
DriverManager.getConnection("jdbc:mysql:///mydatabase","nexw","")
where nexw is the username and there is no password.

I have already used two different grants:
 grant all privileges on mydatabase/* to nexw@localhost; 
 
I am not aware of anything else I need to tell tomcat, particularly since
that context statement works on both WinME and Linux, and this is OS X.

Among the things I have tried is to create a Mac User called "nexw", with
no password and no root privileges.  Perhaps OS X requires that, which
means this my problem is less a tomcat problem and more a Darwin-user
(ignorance) problem.

Looking at mysql:user and mysql:db, nexw is clearly a registered (with
mysql) user with granted privileges, for both localhost and for
localhost.localdomain.

That summarizes the problem, thus far. Maybe that will animate more ideas.

Thanks again.
Jack

At 05:46 PM 7/7/2002 -0600, you wrote:
>2.0.8 is a very old driver.  The current version is 2.0.14
>
>I don't know how you granted permissions, but do something like ...
>
>(assuming root for username and admin for password) ...
>
>start mysql, then
>grant all on *.* to [EMAIL PROTECTED] identified by "admin";
>
>Then "use mysql" and select * on user, make sure your grant took
>effect.
>
>If everything looks cool and it still doesn't work, check that your
>server.xml is configured correctly for your context and datasource.


--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error reading request, ignored - java.lang.NullPointerException

2002-07-07 Thread muralipn

Hello All

Sometimes I get this error on tomcat dos window,  when I start
tomcat server ,

ContextManaget : Error reading request, ignored -
java.lang.NullPointerException
  at
org.apache.tomcat.core.contextManager.handleError(Contextmanager.java:1099)
and
etc.,

Your help will definitely solve my problem.

From
Murali







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




handling reload

2002-07-07 Thread Steve Vanspall

Hi there,

I have a problem with my web-app where I want to be able to just return to
the surrent page if the refresh button has been pushed on the browser.

I don't want it to go into the action at all in this case.

I will give you an example of what my problem is.


Say someone wants to signup a new member:

when they click the link to begin, my version of a Token is set,

this is a basically just an object that sits inthe session under an
attribute name, say "addMember".

this holds a boolean as to whether it is open or closed, and a long
representing the long representation fo the time this token was set.

so anyway, when the click the link to add a member, it checks to see that
there isn't already an open token in the session for the addMember
procedure.

if there is an open token, it throws an error.

however if they begin and there isn't one, it sets the token.

After performing this request, if they hit refresh in the brower, the action
tests for the token, then, finding it open, it throws an error.

Can anyway suggest a way to stop the action from being re-done on a refresh.

Regards

Steve Vanspall


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Performance question

2002-07-07 Thread Sean Golden

Hello:

I am a new member of this mailing list.  I have been developing in 
Tomcat for about three months now and have produced an application I am 
getting ready to deploy to production.

The application consists of three servlets, as described below:

1. Input servlet which responds to a "get" request and uses xalan to 
merge an xml and an xsl file into an html input screen and then receives 
the post response to create an xml file on the server.

2. Admin servlet which allows an admin person to view the response to 
the first servlet for the purpose of approving the file for processing.  
This also uses xalan to create an htlm approval screen.  Upon approval 
the xml file is merged with an existing larger xml file of previously 
approved responses.

3.  Admin servlet which allows the admin person to "publish" the xml 
data into a seris of html pages which are stored in the servlet 
directory on the server.

A pretty simple system actually.  The html is then available for pure 
html browsing.

My problem is that my sys admin person who needs to deploy this system 
on a production box is concerned that Tomcat cannot be performant enough 
to satisfy the high volume of requests on the server.  He is convinced 
that Tomcat is loaded every time anyone accesses the html, even if they 
do not access the servlets themselves.  I suggested configuring Tomcat 
to use Apache as the html server, and he agreed but came back and said 
the same thing.  Even with Apache as the web server the Tomcat overhead 
kills performance.

I don't think this is right.  I think he is confused.  But maybe I am.  
I need someone to help me understand if he is right, or if Tomcat is 
capable of being used in a production high-volume environment.

One more point.  These servlets must be in a secure environment.  They 
use a Thawte certificate for security.  I thought Tomcat could be 
configured to use a secure certificate fairly simply, but he says 
otherwise.

Any help would be appreciated.  I can refer him directly to someone who 
would like to help him through this if anyone would like to help him 
directly.

Thanks in advance.

-sdg


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-07 Thread David Kavanagh

Jamal,
I don't remember where I got my mod_jk connector. Try searching on 
google. From what I read on the apache site, the compiled connectors 
(and source) should be availble on the ftp site (and mirrors). And, you 
are right, the ajp13 connector code is included, the mod_jk is the 
apache module that talks ajp13 with tomcat.

David

Jamal Najmi wrote:

>Do the mod_jk and ASP13 connector libraries usually come with the Tomcat 4.0.3 
>installation?  After reading the tomcat server.xml file I am under the impression 
>that mod_jk is the connector.  I am not sure where to get it though.  
>Thanks  
>Jamal
>David Kavanagh <[EMAIL PROTECTED]> wrote: I just used my mod_jk configuration from 
>tomcat 3.2.x on my 4.0.4 
>install. If you look in the server.xml for tomcat 4, you should find 
>something about an AJP13 connector. That is what links with mod_jk. Just 
>make sure the port numbers match (mine did).
>
>David
>
>Jamal Najmi wrote:
>
>>Hi, I am new to Apache and Tomcat. I
>>
>>I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 on my Win 2000. 
>I need to connect them so that Apache HTTP server forwards servlet and JSP requests 
>to Tomcat. I have been trying to find the documentation on Apache plugin for Tomcat 
>4.0.3, but noluck. I can find instruction and mod_jk for Tomcat 3.3.x but not for 
>Tomcat 4.0.3. I will really appreciate if someone can direct to where the software 
>and instructions are. 
>>
>>Thanks
>>
>>Jamal 
>>
>>
>>
>>-
>>Do You Yahoo!?
>>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>>
>
>
>
>--
>To unsubscribe, e-mail: 
>For additional commands, e-mail: 
>
>
>
>-
>Do You Yahoo!?
>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>




RE: I fail to get green arrow for filter status.. IIS with Tomcat

2002-07-07 Thread Anoop Kumar V
Title: RE: I fail to get  green arrow for filter status.. IIS with Tomcat





Hi Andrew,
 Here's the info:--


size of isapi_redirect.dll:           112 KB
exact file name :         isapi_redirect.dll
Physical path to isapi_redirect.dll:  E:\jakarta-tomcat-3.2.4\bin\isapi_rediect.dll
Win 2000 Professional
Configuring on Tomcat 3.2.4 (i also hv Tomcat 4.0)


thanks,
-anoop


-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 07, 2002 12:03 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomcat



Hey Anoop,


Maybe I can try and help you.  A couple of things we need to check
before we move on.


I need to know the size of your isapi_redirector.dll and the exact file
name (some use isapi_redirect.dll) and the physical path to the file on
your machine. 


I also need to know the version of Tomcat and Windows.


Zip up your workers.properties file, uriworkermap.properties file and an
export of your Apache Foudation Registry key.  Attach it to your
response.


If you will post that information, I'll try and step you through it.  I
had a difficult time configuring Tomcat 4.03 with the isapi_redirect.dll
from Tomcat 3.3 and that may be the problem you are expreriencing.  I
had the best luck using the ZIP file included in the zip file located at
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm).



-Andrew


-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 06, 2002 11:45 AM
To: 'Tomcat Users List'
Subject: I fail to get green arrow for filter status.. IIS with Tomcat



hi,


i know this issue has been raised many, many times, but i cdnt get
anything from the archives. I am trying to configure IIS with Tomcat,
and am following the very popular link
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm).. but try as many
times as i could. i fail to get a green arrow in my filter status
window. I just cannot think abt where i had made a mistake. I hv
rechecked my registry setting many times over, also set the Filter DLLs,
but what cd hv gone wrong..i fail to see. i hv restarted IIS and also
rebooted my comp several times. One thing i did not do is register the
dll. none of the docs suggested that anyway..


Need help pls.


-anoop


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 




tomIIS.zip
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: webapp_module => apache problem when starting

2002-07-07 Thread Gunter D'Hondt

I've re-installed Apache and under a directory without any spaces and I
still get this problem:

C:\Apache\bin>apache -t
Syntax error on line 173 of C:/Apache/conf/httpd.conf:
Cannot load C:/Apache/modules/mod_webapp.so into server: The specified
module co
uld not be found.

What's the difference between mod_webapp and mod_jk?

Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of robert rowntree
Sent: vrijdag 5 juli 2002 18:20
To: [EMAIL PROTECTED]
Subject: RE: webapp_module => apache problem when starting


you've got spaces in your path!

you may want to check the lists about how to deal with a path to your
mod_webapp.so where spaces are involved.

see: http://www.galatea.com/flashguides/index

and select from the list of links your exact combination
under the windows sections for the connector implementation, there are notes
about tricky paths with spaces in them.

BTW - im using AJP connector on Win2k ( mod_jk.dll ) and it is working.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Original message:


I configured Apache 2.0.39 correctly and Tomcat 4.0.4 (Win NT4)
Now I'm changing the httpd.conf of Apache with
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

and I've placed the mod_webapp.so in the \modules directory and also the
libapr.dll in the same directory but when starting Apache I get the
following:

C:\PROGRA~1\Apache Group\Apache2\bin>apache
Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_webapp.so into
server: The specified module could not be found.


Am I placing the dll in the wrong directory or what?

Greetings,
Gunter.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Performance question

2002-07-07 Thread Henner Zeller


Hi Sean,

> My problem is that my sys admin person who needs to deploy this system 
> on a production box is concerned that Tomcat cannot be performant enough 
> to satisfy the high volume of requests on the server.  He is convinced 
> that Tomcat is loaded every time anyone accesses the html, even if they 
> do not access the servlets themselves.

No, tomcat is already started. The tomcat process is running, waiting for 
requests. Each requests is passed to an already spawned and waiting 
thread. So handling a request is pretty fast. Tomcat behaves like a normal 
webserver in this regard: started and waiting for requests.
Even the servlets inside Tomcat are started once at startup and then 
are reused on every request in a separate thread.

HTML-serving is just another servlet in tomcat, that just reads a file and 
passes it to the servlet output stream.

I assume your admin compares tomcat to CGI-programs. CGI-progams (mostly 
written in Perl, thus often referred to as CGI-script) are started every 
time a request goes to them; this indeed is not good for performance, 
especially for scripts that need to start-up a huge interpreter that needs 
to parse its script first.

> One more point.  These servlets must be in a secure environment.  They 
> use a Thawte certificate for security.  I thought Tomcat could be 
> configured to use a secure certificate fairly simply, but he says 
> otherwise.

Yes. Anyway I'd suggest to always use Apache as the frontend (handling 
as well the SSL stuff) and then connect tomcat with AJP12/13 to the 
apache.

ciao,
 -hen


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using tomcat's Realm as the authentication mechanism and access via mod_webapp

2002-07-07 Thread Steve Wong

 
I find that this setup work if apache is 2.0.36 but not
2.0.39
If for 2.0.39, access via mod_jk will work but not
mod_webapp
 
Do anyone experience the same thing and know the
reason??
 
Thx. and Regards.
Steve.