Problem Running Tomcat

2001-06-11 Thread Parminder Singh


Hi Everyone,
I have been tyring to run tomcat 3.2.1. 

However whenever i start my Tomcat using the tomcat.sh script then i get
the following errors
"Using classpath:
/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/mm.mysql.jdbc-1.2c/:usr/local/jdbc-ora/classes12.zip
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
org.apache.tomcat.resources.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at org.apache.tomcat.util.StringManager.(StringManager.java:115)
at
org.apache.tomcat.util.StringManager.getManager(StringManager.java:260)"

I created a new script as shown below:
"#!/bin/sh
#
# $Id: tomcat.sh,v 1.17.2.1 2000/11/17 22:05:50 glenn Exp $

# Shell script to start and stop the server

# There are other, simpler commands to startup the runner. The two
# commented commands good replacements. The first works well with
# Java Platform 1.1 based runtimes. The second works well with
# Java2 Platform based runtimes.

java -classpath
$CLASSPATH:/usr/local/tomcat/lib/runner.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/classes:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/dt.jar:/usr/local/jdk1.3/lib/classes12.zip
org.apache.tomcat.shell.Startup $*"

But this script fails to load tools.jar & hence gives an exception

Can anyone pls help me out with this. I cannot see any errors here. Please
help me.
Any help is very much appreciated.
Truly,
Parminder.



Re: Making over Half Million Dollars every 4 to 5 Months fromyour Home!!!

2001-06-11 Thread Ganasen Gounden

please remove me from your mailing list



**
Any unauthorized use and interception of this e-mail is illegal.
If this e-mail is not intended for you, you may not copy, 
distribute or disclose the contents to anyone.  This e-mail 
does not give rise to any binding legal obligations upon the
City of Cape Town unless the City of Cape Town subsequently
confirms the content in writing non-electronically.  This e-mail
may be confidential, legally privileged or otherwise protected
by law.  Unauthorised disclosure or copying of any or all of it
may be unlawful. If you receive this e-mail in error please notify
the sender and delete the message

**



RE: stress test

2001-06-11 Thread altuga

Hi 
what is SGBD ?tomcat  runs on SunOs 2.8..  

i confused , idle threads are good or bad ? and any good tool for testing
tomcat
i think "ab"  tool is not enough , right ? 


thanks 


-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 8:38 PM
To: [EMAIL PROTECTED]
Subject: RES: RES: stress test


-BEGIN PGP SIGNED MESSAGE-

So, spare-threads seems to be waiting listenners, doesnt it? Its always very
very important that you have an ideia about the amount of users  which are
using your application at the same time... Thats the reason for using
threads. Some questions: does your app use SGBD? SGBD has threads
configuration too and needs disk space. Anyway, it seems that TomCat isnt
strong enough for this kind of test or else your hardware/S.O. isnt good
enough. If you  are using NT/2000, try to tune it.
I hope it helps!

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: Charles Baker [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 12:06
Para:   [EMAIL PROTECTED]
Assunto:Re: RES: stress test

Spare-threads are idle threads. We want a few idle
threads to quickly answer incoming requests. We don't
want too many idle threads, or else we can negatively
impact performance. So, we can represent the config
below with this pseudo-code in an attempt to make it
more clear:

// Max spare threads
while ( IDLE_THREADS > 20 ) {
server.killThread();
}

// Min spare threads
while ( IDLE_THREADS < 5 && THREAD_COUNT <= 200 ){
server.spawnThread();
}
- --- "Jose Euclides da Silva Junior - DIGR.O"
<[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> First of all,
> what does "spare-treads" mean?
> Secondly,
> there are 2 very important parameters that should be
> configurated: delay and
> threads - and 1 important concept: each new group
> will begin after the prior
> one ends. So, you should have enough CPU and memory
> to allow multithreads.
> Finally, if you are testing a web page, this kind of
> tool (in general)
> doesnt simulate the real overhead.
> 
> Regards,
> 
> José Euclides Júnior
> __
> E-mail: [EMAIL PROTECTED]
> [EMAIL PROTECTED] 
> http://euclides.8m.com
> 
> 
> 
> - -Mensagem original-
> De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Enviada em:   Segunda-feira, 11 de Junho de 2001
> 08:19
> Para: [EMAIL PROTECTED]
> Assunto:  stress test
> 
> Hi all 
> 
> i am testing tomcat with using  "ap"  which comes
> with apache
> 
> what is ideal test case , ? for example 1000 user ,
> 7 concurrent is ideal ?
> 
> 
> and while i am testing tomcat sometimes it  uses %98
> cpu and never gives it
> back ..
> i configured my server.xml like that 
>   name="max_threads"
> value="200"/>
>  name="max_spare_threads"
> value="20"/>
>  name="min_spare_threads"
> value="5" />
> 
> any idea ? 
> 
> 
> regards .. 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5.1
> 
>
iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
>
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
>
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
> Eo7s29sLgL8=
> =xzb+
> -END PGP SIGNATURE-


=
- -
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOyUlM90YhuJ3BUxtAQF46wQAjyxCE9Lxd7kmP3eibHeDLM2OenKWoGkA
nyqCceTXvmgTOr1jSdrmbS6KvBZBntIfuUDSIeREWQWJcTJG9uhpHTrGeCE90Xu1
qS6drL+OnNzylKMcT8PmRJ43rcpmFgtsuvK5v/vrdASVU3It8OwfWICIwpUnfgls
Y/pqvIqm5oE=
=G7ka
-END PGP SIGNATURE-



Re: the name of the page you are at

2001-06-11 Thread Dmitri Colebatch

On Tue, 12 Jun 2001 13:56, you wrote:
> I was just wondering if it is possible for a JSP to
> get its own name?
I think <%= request.getRequestURI() %> will do this for you - its part of the 
HttpServletRequest object, which if my memory serves me correct is available 
as the request variable in a JSP - note this returns the full path.

hope this helps.

cheers
dim

>
> ie, say we are at test.jsp, is there some variable in
> the request object that lets it know that it is
> test.jsp?
>
> thanks!
> Jason
>
> ___
>__ http://messenger.yahoo.com.au - Yahoo! Messenger
> - Voice chat, mail alerts, stock quotes and favourite news and lots more!



the name of the page you are at

2001-06-11 Thread teh j

Hello!

I was just wondering if it is possible for a JSP to
get its own name?

ie, say we are at test.jsp, is there some variable in
the request object that lets it know that it is
test.jsp?

thanks!
Jason

_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



mod_jk.so kills apache 1.3.19 on tru64 v5.1

2001-06-11 Thread Stewart Mclean

Hi guys, can anyone help me with running tomcat 3.2.2 and apache 1.3.19 with 
mod_jk.so on a Alpha box running Tru64 v5.1? So far I managed to successfully 
compile and link mod_jk.so with the libpthread.so library but when I try to 
start apache with mod_jk.so apache dies straight away with the following message
in apache's error log file:

Syntax error on line 355 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/mod_jk.so into server: dlopen: libpthread.so: 
symbol "pthread_setcancelstate" unresolved

Any help would be greatly appreciated.

Thanks in advance,
Stewart.

--
Stewart Mclean
UNIX Support Group
Information Management Services
Curtin University of Technology
GPO Box U1987
Perth 6845
Ph: (08) 9266 7495
Email: [EMAIL PROTECTED]

The manual said install Windows 98 or better.
.so I installed Linux!


and yes, my password is the same as my dog's name. My dog's name is 
4%&12ab!! but I change it every week. Sure does confuse the hell out of my dog!





mod_jk

2001-06-11 Thread Amsler Thomas (JNet Systems AG)

hi,

i'm trying to integrate tomcat 3.2.2 into apache 1.3.9.
the mod_jk.conf-auto is included in httpd.conf. when i 
start apache, the following errors occur:

/mnt1/apache/bin/httpd: can't resolve symbol '_dl_initial_searchlist'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_profile'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_global_scope_alloc'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_fpu_control'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_origin_path'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_lazy'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_loaded'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_main_searchlist'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_profile_map'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_profile_output'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_platformlen'
/mnt1/apache/bin/httpd: can't resolve symbol '__libc_stack_end'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_unload_cache'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_mcount'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_start_profile'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_dst_count'
/mnt1/apache/bin/httpd: can't resolve symbol '_dl_dst_substitute'
/sbin/init.d/apache: line 171:  2757 Aborted $HTTPD
/sbin/init.d/apache start: httpd could not be started

can anybody help me out?

thomas
___
JNet Systems AG, Meierhoefliring 3, CH-6017 Ruswil
Homepage:   http://www.jnetsystems.com
E-Mail::[EMAIL PROTECTED]
Phone (direct): +41 41 496 90 76

JNet Systems AG is member of the EIB Association



Servlet mapping not working with Apache

2001-06-11 Thread David Burns

My setup:

RH Linux 7.1
Apache 1.3.19
Tomcat 3.2.1
Sun JDK 1.3.1

I'm using mod_jk.conf-auto to hook in the mod_jk connector.

When I access tomcat directly, servlet mapping seem to work.  Via Apache, it 
doesn't.  For example,

http://127.0.0.1:8080/examples/snoop

brings up the snoop servlet.

http://127.0.0.1/examples/snoop

returns a 404.

However,

http://127.0.0.1/examples/servlet/snoop

works.

Any ideas on how to set this right, or at least diagnose it further?  I'd 
rather not be stuck with the old-fashioned /servlet/ style.

Thanks in advance,
David


_
Get your FREE download of MSN Explorer at http://explorer.msn.com




JNDI CNFEs

2001-06-11 Thread Robert Slifka

Hi all,

Been poking around on the tomcat archives for this one.  Is the default JNDI
code just broken in that it doesn't rely on the container classloader to
load ContextFactory?

This isn't just a Tomcat problem.  I think JRun gets around it by having you
use their own context stuff.

That's a pretty nasty thing... Do I have to write my own InitialContext?

--
Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net)



Re: j_security_check

2001-06-11 Thread Pae Choi

Confirming! "j_security_check" works in the combination of Apache1.3.19 +
Tomcat 3.2.1.


Pae


Mark

I'm working with Apache 1.3.19 and TTomcat 3.2.1
My configuration requires Apache & Tomcat (Tomcat standalone doesn'T
neewd mod_jk at all!)

regards
Peter


Mark Muffett wrote:
> 
> Peter
> 
> Can I check what version of Tomcat you're using?  Mine still doesn't work.
> 
> Thanks
> 
> Mark
> 
> - Original Message -
> From: "P.Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 1:58 PM
> Subject: Re: j_security_check
> 
> > Hi Mark,
> >
> > I send you attached the parts of mod_jk.conf , web.xml which works for
> > me;
> > belonging to directory structure
> > c:\tomcat\webapps\tute6\form\protected.jsp
> > c:\tomcat\webapps\tute6\secure\login.jsp & error.html
> > c:\tomcat\webapps\tute6\WEB-INF\web.xml
> >
> > set   > verbosityLevel = "DEBUG"
> > path="logs/tomcat.log"/>
> >
> > in your server.xml so you can see if there are any mod_jk errors while
> > invoking tomcat.
> >
> > Hth
> >
> > Peter
> 
> 
> 
> 
> > ÿþ# The following line makes apache aware of the location of the /tute6
> context
> > #
> > Alias /tute6 "C:/tc/webapps/tute6"
> > 
> > Options Indexes FollowSymLinks
> > 
> >
> > #
> > # The following line mounts all JSP files and the /servlet/ uri to tomcat
> > #
> > JkMount /tute6/servlet/* ajp13
> > JkMount /tute6/*.jsp ajp13
> > JKMount /tute6/form/*.jsp ajp13
> > JKMount /tute6/secure/j_security_check ajp13
> > #
> > # The following line prohibits users from directly accessing WEB-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > #
> > # The following line prohibits users from directly accessing META-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > ###
> > # Auto configuration for the /tute6 context ends.
> > ###
> >
> 
> 
> 
> 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >
> >
> >tomcat
> >
> >
> >   
> >protect
> >   /form/protected.jsp
> >   
> >
> >   TESTAPPROLE
> >   tomcat
> >
> >
> >
> >
> >
> >   tute6
> >   /tute6/servlet/*
> >
> >
> >
> >   
> >  My Protected Area
> >  /form/*
> >  DELETE
> >  GET
> >  POST
> >  PUT
> >   
> >   
> >  tomcat
> >   
> >
> >
> >
> >   FORM
> >   Form Based Authentication
> >
> >   /secure/login.jsp
> >   /secure/error.html
> >   
> >
> >
> > 
> >



Mapping Issue with Apache

2001-06-11 Thread Hunter Hillegas

Howdy.

I use Apache 1.3.19 in front of Tomcat 3.2.2 and have a couple of sites
running on it with great success.

I'm trying out the Jive message board system and I'm stumped on an
Apache/Tomcat problem...

I've got the main stuff passing through but under the admin/ directory,
where index.jsp sits and is served up properly, there is an images
directory. None of the images are found when viewing index.jsp.

Checking the image directly gives me an Apache 404, indicating to me that
Apache is having trouble finding the file... If the images directory is
under the admin directory, which is serving up jsp's just fine, shouldn't it
"just work"?

Hunter




RE: How to make tomcat read .asp extension as .jsp file

2001-06-11 Thread Filip Hanik

>1) No knowledge of how to write a batch script that can do
>this...I could do
>it in java, but figured there must be an easier way.

then that is probably your best call.
http://www.win32scripting.com/ will give you a bunch of scripts already
written for win32

3. The web.xml actually works!!! look at the entry below, that is cool!

 

jsp


*.jsp


*.asp



~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 4:19 PM
>To: [EMAIL PROTECTED]
>Subject: RE: How to make tomcat read .asp extension as .jsp file
>
>
>Filip,
>Thank you for the suggestions, I will continue to play around with it, but
>here is what I have come up with for those 3 solutions so far.  Guess I may
>have to suck it up and go in and change everything.
>

>
>2)This is going to be deployed on a server with quite a few other sites, so
>I would prefer to keep it local...hopefully I could set an alias or
>something inside the individual context in server.xml
>
>3) I have tried that technique in the web.xml, but my changes don't seem to
>be working as long as I want to use .jsp extensions also...again, I still
>would like to keep it local.
>
>Brandon
>
>
>-Original Message-
>From: Filip Hanik [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 6:10 PM
>To: [EMAIL PROTECTED]
>Subject: RE: How to make tomcat read .asp extension as .jsp file
>
>
>three ways
>
>1. 250 files, that is nothing, why don't you just write a .bat (batch)
>script to do this for you?
>otherwise,
>
>2. change the file WebXmlReader.java and add this line
>   ctx.addServletMapping( "*.asp", "jsp");
>
>3. in your web.xml file, I'm sure you can add in the lines
>   
>
>jsp
>
>
>*.asp
>
>
>
>but I haven't verified the last one (3.) so you may want to play
>around with
>it.
>
>Filip
>
>~
>Namaste - I bow to the divine in you
>~
>Filip Hanik
>Software Architect
>[EMAIL PROTECTED]
>www.filip.net
>
>>-Original Message-
>>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, June 11, 2001 3:57 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to make tomcat read .asp extension as .jsp file
>>
>>
>>I know this has been asked on here before, but I can't find it in
>the 4000+
>>messages I have.  Does anyone know of a way to make tomcat map any random
>>extension as a .jsp file.  For example, I have a bunch of .asp
>files that I
>>have changed all the code for, but don't want to have to go through the
>>tedious task of renaming 250 .asp files to .jsp.  Can I just set something
>>in server.xml or web.xml to read these files like they were .jsp's?
>>Thanks for any help!!!
>>
>>Brandon
>>
>>
>
>
>




RE: How to make tomcat read .asp extension as .jsp file

2001-06-11 Thread Brandon Cruz

Filip,
Thank you for the suggestions, I will continue to play around with it, but
here is what I have come up with for those 3 solutions so far.  Guess I may
have to suck it up and go in and change everything.

1) No knowledge of how to write a batch script that can do this...I could do
it in java, but figured there must be an easier way.

2)This is going to be deployed on a server with quite a few other sites, so
I would prefer to keep it local...hopefully I could set an alias or
something inside the individual context in server.xml

3) I have tried that technique in the web.xml, but my changes don't seem to
be working as long as I want to use .jsp extensions also...again, I still
would like to keep it local.

Brandon


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 6:10 PM
To: [EMAIL PROTECTED]
Subject: RE: How to make tomcat read .asp extension as .jsp file


three ways

1. 250 files, that is nothing, why don't you just write a .bat (batch)
script to do this for you?
otherwise,

2. change the file WebXmlReader.java and add this line
ctx.addServletMapping( "*.asp", "jsp");

3. in your web.xml file, I'm sure you can add in the lines


jsp


*.asp



but I haven't verified the last one (3.) so you may want to play around with
it.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 3:57 PM
>To: [EMAIL PROTECTED]
>Subject: How to make tomcat read .asp extension as .jsp file
>
>
>I know this has been asked on here before, but I can't find it in the 4000+
>messages I have.  Does anyone know of a way to make tomcat map any random
>extension as a .jsp file.  For example, I have a bunch of .asp files that I
>have changed all the code for, but don't want to have to go through the
>tedious task of renaming 250 .asp files to .jsp.  Can I just set something
>in server.xml or web.xml to read these files like they were .jsp's?
>Thanks for any help!!!
>
>Brandon
>
>





RE: How to make tomcat read .asp extension as .jsp file

2001-06-11 Thread Filip Hanik

three ways

1. 250 files, that is nothing, why don't you just write a .bat (batch)
script to do this for you?
otherwise,

2. change the file WebXmlReader.java and add this line
ctx.addServletMapping( "*.asp", "jsp");

3. in your web.xml file, I'm sure you can add in the lines


jsp


*.asp



but I haven't verified the last one (3.) so you may want to play around with
it.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 3:57 PM
>To: [EMAIL PROTECTED]
>Subject: How to make tomcat read .asp extension as .jsp file
>
>
>I know this has been asked on here before, but I can't find it in the 4000+
>messages I have.  Does anyone know of a way to make tomcat map any random
>extension as a .jsp file.  For example, I have a bunch of .asp files that I
>have changed all the code for, but don't want to have to go through the
>tedious task of renaming 250 .asp files to .jsp.  Can I just set something
>in server.xml or web.xml to read these files like they were .jsp's?
>Thanks for any help!!!
>
>Brandon
>
>




How to make tomcat read .asp extension as .jsp file

2001-06-11 Thread Brandon Cruz

I know this has been asked on here before, but I can't find it in the 4000+
messages I have.  Does anyone know of a way to make tomcat map any random
extension as a .jsp file.  For example, I have a bunch of .asp files that I
have changed all the code for, but don't want to have to go through the
tedious task of renaming 250 .asp files to .jsp.  Can I just set something
in server.xml or web.xml to read these files like they were .jsp's?
Thanks for any help!!!

Brandon




RE: WAR file behavior and Tomcat 3.2.x

2001-06-11 Thread Darrell Porter

REPOST as I REALLY need help on this...

I've read the documentation.  I've added the unpackWARfiles="FALSE" to my
server.xml

Why is Tomcat still unpacking the WAR file into the WEBAPPS directory?
Should it not simply be unpacking files to WORK as it needs them?

I had heard that it was possible to encrypt or password-protect the WAR file
but I can find no instructions on configuring Tomcat to access these
encrypted files.  Any sources?

Thanks

Darrell Porter


"Only a man who can not conquer his deficiencies feels the need to convince
the world he has none."



Valve : Is there a way to get the Session or Principal?

2001-06-11 Thread Bragg, Casey

Inside of a Valve.invoke method, is there any way to reach the session or
principal objects associated with the current Request?

Thanks...
...Casey

==
Casey Bragg - Software Engineer
Allegiance Telecom, Inc.  Dallas, TX
469-259-2702 - [EMAIL PROTECTED]
==




RE: Question about tomcat setup

2001-06-11 Thread Nael Mohammad

It's trying to bind to a PORT in use.  do "netstat -an" to view your port
status and like the last post stated you can do a  "netstat -an|grep tomcat"

Nael Mohammad
Neomar, Inc.
[EMAIL PROTECTED]
415-403-7300 x314 (Work)
415-793-0609 (Mobile)
"When Wireless Means Business"


CONFIDENTIALITY NOTICE: This e-mail may contain confidential information
that is legally privileged. Do not read this e-mail if you are not the
intended recipient.
This e-mail transmission, and any documents, files or previous e-mail
messages attached to it may contain confidential information that is legally
privileged. If you are not the intended recipient, or a person responsible
for delivering it to the intended recipient, you are hereby notified that
any disclosure, copying, distribution or use of any of the information
contained in or attached to this transmission is STRICTLY PROHIBITED. If you
have received this transmission in error, please immediately notify us by
reply e-mail or by telephone at (415) 403-7300, and destroy the original
transmission and its attachments without reading or saving in any manner.
Thank you.






-Original Message-
From: Marcel [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 3:36 PM
To: [EMAIL PROTECTED]
Subject: Question about tomcat setup


Hello,

I've downloaded tomcat 3.2.2 on my redhat 7.1 machine.
However when i run sh startup.sh, i get this error:

FATAL: Java Bind Exception: address already in use.

I've setup my JAVA_HOME=/usr/java/jdk1.3 ; export JAVA_HOME

Any ideas what i am missing here?

Apache has been installed and works.

Thanks



Question about tomcat setup

2001-06-11 Thread Marcel

Hello,

I've downloaded tomcat 3.2.2 on my redhat 7.1 machine.
However when i run sh startup.sh, i get this error:

FATAL: Java Bind Exception: address already in use.

I've setup my JAVA_HOME=/usr/java/jdk1.3 ; export JAVA_HOME

Any ideas what i am missing here?

Apache has been installed and works.

Thanks




WebAccess (Novell) on Tomcat.

2001-06-11 Thread Jim Michael

Does *anyone* in the known universe know how to get Novell's GroupWise webaccess 
servlets running on Tomcat? I saw it done at the Brainshare conference in March, but 
cannot find anyone who knows the exact arcane edits to make it happen.

So far, I have Tomcat running stand-alone perfectly fine on Netware. I can get the 
webaccess servlets to load (they auto-run when Tomcat starts) without errors, but when 
I try to access the servlet I get this error:

Error: 500
Location: /servlet/webacc
Internal Servlet Error:

java.lang.NoClassDefFoundError: com/novell/webaccess/common/I18NMultipartParser
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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:466)

"I18MultipartParser" is a classfile within njweb.jar, which IS in the classpath. I 
have no idea why the servlet seems to think it can't find 
com/novell/webaccess/common/I18NMultipartParser

ANY ideas?

Jim




RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Mike Jackson

Or do "netstat -an | grep LIST" and look for the ports you expect.  It
doesn't
tell you which program is listening on the port, but it's usually a good
indication (along with the "ps -fade | grep java").

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 2:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How can I tell if Tomcat Server is running


> Verify that tomcat has actually started. To check this, for
> unix and Linux,
> I would just do a "ps -ef|grep tomcat" or whatever the name
> of that process
> is.

This will work in *nix but it doesn't tell you if it is running
correctly/the right port/etc...  The best thing for this is
testing from the root server up and/or using telnet/ping to
check to see if a server is listening on the port.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com




Parsing error on web.xml 4.0b5

2001-06-11 Thread Vernon Wu


After I deploy my small application and start Tomcat version 4.0 beta 5, I get the following error:
 
2001-06-11 11:53:48 ContextConfig[/q3] Parse error in application web.xmlorg.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3013) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at javax.xml.parsers.SAXParser.parse(SAXParser.java:108) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413) at org.apache.catalina.core.StandardHost.install(StandardHost.java:641) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
The web.xml is a small one as the followings.
 

             ControllerServlet    CentralServlet    ControllerServlet            ControllerServlet    /controller/*     
...

 
I can't see any problem. It works fine on 3.x. Anything needs to been done on 4.0?
 
Thanks in advance.
 
VernonGet your FREE download of MSN Explorer at http://explorer.msn.com


RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Nael Mohammad

TO check the port numbers, just see what process ID is and then do a netstat
-an  and look for the port it should be using. In this case, its 8080. 


-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 2:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How can I tell if Tomcat Server is running


> Verify that tomcat has actually started. To check this, for 
> unix and Linux,
> I would just do a "ps -ef|grep tomcat" or whatever the name 
> of that process
> is.

This will work in *nix but it doesn't tell you if it is running
correctly/the right port/etc...  The best thing for this is
testing from the root server up and/or using telnet/ping to
check to see if a server is listening on the port.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



Parsing error on web.xml 4.0b5

2001-06-11 Thread Vernon Wu

After I deploy my small application and start Tomcat version 4.0 beta 5, I get the following error:
 
2001-06-11 11:53:48 ContextConfig[/q3] Parse error in application web.xmlorg.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3013) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303) at org.apache.crimson.parser.Parser2.content(Parser2.java:1700) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at javax.xml.parsers.SAXParser.parse(SAXParser.java:108) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413) at org.apache.catalina.core.StandardHost.install(StandardHost.java:641) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:353) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:647) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
The web.xml is a small one as the followings.
 

             ControllerServlet    CentralServlet    ControllerServlet            ControllerServlet    /controller/*     
...

 
I can't see any problem. It works fine on 3.x. Anything needs to been done on 4.0?
 
Thanks in advance.
 
VernonGet your FREE download of MSN Explorer at http://explorer.msn.com


RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Michael Wentzel

> Verify that tomcat has actually started. To check this, for 
> unix and Linux,
> I would just do a "ps -ef|grep tomcat" or whatever the name 
> of that process
> is.

This will work in *nix but it doesn't tell you if it is running
correctly/the right port/etc...  The best thing for this is
testing from the root server up and/or using telnet/ping to
check to see if a server is listening on the port.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Nael Mohammad

Verify that tomcat has actually started. To check this, for unix and Linux,
I would just do a "ps -ef|grep tomcat" or whatever the name of that process
is.

This will check to see if the process is running. Or you can grep Java make
sure some java process is running. Another thing you can try is the log
files and see if you have any errors upon startup.

Nael Mohammad
Neomar, Inc.
[EMAIL PROTECTED]
"When Wireless Means Business"


CONFIDENTIALITY NOTICE: This e-mail may contain confidential information
that is legally privileged. Do not read this e-mail if you are not the
intended recipient.
This e-mail transmission, and any documents, files or previous e-mail
messages attached to it may contain confidential information that is legally
privileged. If you are not the intended recipient, or a person responsible
for delivering it to the intended recipient, you are hereby notified that
any disclosure, copying, distribution or use of any of the information
contained in or attached to this transmission is STRICTLY PROHIBITED. If you
have received this transmission in error, please immediately notify us by
reply e-mail or by telephone at (415) 403-7300, and destroy the original
transmission and its attachments without reading or saving in any manner.
Thank you.






-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How can I tell if Tomcat Server is running


I recently installed Tomcat 3.2.2.  When I start the server, 
it appears to start correctly (no error messages).  However, 
when I try to execute the example SnoopServlet from the 
browser by typing: 

http:localhost:8080/examples/servlet/SnoopServlet 

I get an error message indicating that the page cannot 
be opened.  I get the exact same error even if I don't 
start the server at all. 

Any suggestions on how to see what is actually happening 
so that I can solve this problem.  How can I tell if the server 
is actually running? 


--
First off http://localhost:8080/
Then http://localhost:8080/examples/
etc...

You can also ping your localhost on port 8080.
If you use 'tomcat run' to start tomcat and it doesn't return to
the dos/shell prompt then you will also know you're still running.

FYI - Please note that one of the rules on this list is all messages
are to be posted in plain text so everyone can read them(no HTML).
Not only does this keep us long time residents happy but it will
get you questions answered much more quickly.



--- 
Michael Wentzel 
Software Developer 
Software As We Think - http://www.aswethink.com



RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Filip Hanik

you mistyped your URL, it should say 
http://
 ^^

the best way to check is to do the

"telnet localhost 8080" command

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: How can I tell if Tomcat Server is running


I recently installed Tomcat 3.2.2.  When I start the server, 
it appears to start correctly (no error messages).  However, 
when I try to execute the example SnoopServlet from the 
browser by typing: 

http:localhost:8080/examples/servlet/SnoopServlet 

I get an error message indicating that the page cannot 
be opened.  I get the exact same error even if I don't 
start the server at all. 

Any suggestions on how to see what is actually happening 
so that I can solve this problem.  How can I tell if the server 
is actually running? 

Dom Pante 
PanTech Consulting 
908-281-6759 
[EMAIL PROTECTED] 

Dom Pante 
PanTech Consulting 
908-281-6759 
[EMAIL PROTECTED] 



RE: Session timeout during long file upload

2001-06-11 Thread William Kaufman

Are you sure it's the _session_ timeout, not the browser's connection
timeout?

The session timeout defaults to 30 minutes.  That should be plenty of time
to load anything, even a Word document at 9600 baud,...

More likely, the browser is timing out when it doesn't get a response
quickly enough.  There are several things you could do for this:

1) Do some profiling on your code to find out why it's taking a long time to
process the data.  One profiler is jprof, which comes with the Sun JDK (see
the Sun webpage, at http://java.sun.com/j2se/, for more info).  Others are
JProbe (www.jprobe.com) and JInsight
(http://www.alphaworks.ibm.com/tech/jinsight).

2) If processing the file must take a long time, don't do it while the
browser is waiting.  Instead, fork a new thread to do the processing, and
return a web page immediately.

3) If you can't do that, at least return _some_ of the page
immediately--say, a header saying that you're working on it.  Call flush()
on the output stream before starting the processing.  (Note that this isn't
guaranteed to work--the servlet engine or the network layer might buffer the
page until you write a ton of data, or you close the connection.  But it
works on my PC running Tomcat and IE locally.)

-- Bill K. 


-Original Message-
From: Tal Dayan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:30 PM
To: [EMAIL PROTECTED]
Subject: Session timeout during long file upload



Hello,

When we try to upload a long file to a servlet we encounters a problem with
the session
timeout because of the long time it takes to upload the file over a slow
connection (sometimes
several hours).

It seems that the problem is in the way the session timeout is specified in
the servlet
session. It measures time between request, not just idle time (no activity
related to
that session).

A possible solution would be to increase the session timeout to several
hours but
this will affect also affect the automatic logout of users
after a predefined idle time period (by the automatic invalidation of the
session).

Is there a way to reset the session timer as if a new request has arrived ?
With this option, we could add to the loop that reads the incoming files a
periodic
call that will reset the session timeout (watchdog).

Thanks,

Tal




RE: Overide encodeURL()

2001-06-11 Thread David M. Rosner

Hello,

Yes, I was hoping I could do this just like i've modified the 
SessionInterceptor, but the problem is I need to modify the response -  not 
the request. Am I assuming correctly that interceptors can only modify 
requests and not responses?

The actual implementation of encodeURL is done in the 
HttpServletResponseFacade - I guess I can just change that code and deploy 
it with all my Jakarta builds. But it would be better if I had my own 
HttpServletResponseFacade that extended the functionality of the default 
class. This way I could keep it with my application files and not have to 
worry about later Jakarta upgrades. Problem is I can't get it to compile 
outside of the facade package.

So my question is - what is the correct approach and procedure for 
replacing/extending classes in the facade package?





At 04:28 PM 6/11/2001, Filip Hanik wrote:
>it is possible if you change the source code yourself.
>you can read a little bit about the architecture at
>http://www.filip.net/tomcatbook/TomcatInterceptors.html
>this is focused on the interceptors though
>
>Filip
>
>~
>Namaste - I bow to the divine in you
>~
>Filip Hanik
>Software Architect
>[EMAIL PROTECTED]
>www.filip.net
>
> >-Original Message-
> >From: David M. Rosner [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, June 11, 2001 12:39 PM
> >To: [EMAIL PROTECTED]
> >Subject: Overide encodeURL()
> >
> >
> >Hi All,
> >
> >My application has already been coded to use the encodeURL()
> >method for all
> >URL references within all of the JSP pages. I now have a need to take the
> >output of encodeURL() and add additional text to it. Is it possible to
> >write my own version of encodeURL() that will call the request.encodeURL()
> >method and then pass the output back to the JSP page?
> >
> >For example I would have the following on a JSP page:
> >
> ><%= response.encodeURL( "/SomePage.jsp") %>
> >
> >Then I would have a class called response with a static method called
> >encodeURL() which may look like this:
> >
> >static String encodeURL( String location  ) {
> >   String strTemp = response.encodeURL( location );
> >
> >   doStuff( strTemp );
> >
> >   return strTemp;
> >}
> >
> >
> >Due to the fact that I don't fully understand the Jakarta architecture
> >perhaps this isn't possible? Any ideas?
> >
> >




force reload of servlets

2001-06-11 Thread Boyle, William (CAP, TIP)

Tomcat doesnt seem to reload servlets when they are called in a chain.  Is there any 
way to manually force a reload of servlets and even regular classes with java code 
(like an
admin servlet or something)?



RE: How can I tell if Tomcat Server is running

2001-06-11 Thread Michael Wentzel

I recently installed Tomcat 3.2.2.  When I start the server, 
it appears to start correctly (no error messages).  However, 
when I try to execute the example SnoopServlet from the 
browser by typing: 

http:localhost:8080/examples/servlet/SnoopServlet 

I get an error message indicating that the page cannot 
be opened.  I get the exact same error even if I don't 
start the server at all. 

Any suggestions on how to see what is actually happening 
so that I can solve this problem.  How can I tell if the server 
is actually running? 


--
First off http://localhost:8080/
Then http://localhost:8080/examples/
etc...

You can also ping your localhost on port 8080.
If you use 'tomcat run' to start tomcat and it doesn't return to
the dos/shell prompt then you will also know you're still running.

FYI - Please note that one of the rules on this list is all messages
are to be posted in plain text so everyone can read them(no HTML).
Not only does this keep us long time residents happy but it will
get you questions answered much more quickly.



--- 
Michael Wentzel 
Software Developer 
Software As We Think - http://www.aswethink.com



RE: Session timeout during long file upload

2001-06-11 Thread Michael Wentzel

> When we try to upload a long file to a servlet we encounters 
> a problem with
> the session
> timeout because of the long time it takes to upload the file 
> over a slow
> connection (sometimes
> several hours).
> 
> It seems that the problem is in the way the session timeout 
> is specified in
> the servlet
> session. It measures time between request, not just idle time 
> (no activity
> related to
> that session).
> 
> A possible solution would be to increase the session timeout 
> to several
> hours but
> this will affect also affect the automatic logout of users
> after a predefined idle time period (by the automatic 
> invalidation of the
> session).
> 
> Is there a way to reset the session timer as if a new request 
> has arrived ?
> With this option, we could add to the loop that reads the 
> incoming files a
> periodic
> call that will reset the session timeout (watchdog).

What about doing the following:
int max = session.getMaxInactiveInterval();


session.setMaxInactiveInterval(Integet.MAX_VALUE);

// whatever needs to be done here...

session.setMaxInactiveInterval(max);


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



€ Tomcat 3.2.1

2001-06-11 Thread Xavier Renaut


Hi !

I'm using Tomcat 3.2.1
and Struts 1.0-b1.

I'm trying to set up an error page to catch all the 500 errors.

So, following web.dtd (and the order between tags), inside of web.xml, I added
those 4 lines :



  500
  /common/error/noflash/index.html

  

but it just do not work.

Tomcat prints the exception page.

If I set up a 404 error code, there is a StackOverFlow error (500)
when trying to reach a non-existant page.

I'm talking only on tomcat server. I'm accessing it trough the 8080 port.
(but through apache (80) it doesn't work too)

Do you have any ideas ?

Thanks

xavier

Here is included the complete version of my web.xml.
(which goes into the WEB-INF of my webapp)





http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
action
org.apache.struts.action.ActionServlet


  application
  MessageResource



  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  

  
  
 viewArticle
 article.ViewArticle
  

  
  
viewArticle
/articlesubmission/viewArticle
  

  
  
 viewSubmittedArticle
 articlesubmission.ViewArticle
  

  
  
viewSubmittedArticle
/article/viewSubmittedArticle
  

  
  
action
*.do
  


  
  
index.jsp
  


  500
  /common/error/noflash/index.html


  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  

  
/WEB-INF/struts-template.tld
/WEB-INF/struts-template.tld
  








How can I tell if Tomcat Server is running

2001-06-11 Thread DPante
I recently installed Tomcat 3.2.2.  When I start the server,
it appears to start correctly (no error messages).  However,
when I try to execute the example SnoopServlet from the
browser by typing:

http:localhost:8080/examples/servlet/SnoopServlet

I get an error message indicating that the page cannot
be opened.  I get the exact same error even if I don't
start the server at all.

Any suggestions on how to see what is actually happening
so that I can solve this problem.  How can I tell if the server
is actually running?

Dom Pante
PanTech Consulting
908-281-6759
[EMAIL PROTECTED]

Dom Pante
PanTech Consulting
908-281-6759
[EMAIL PROTECTED]


Session timeout during long file upload

2001-06-11 Thread Tal Dayan


Hello,

When we try to upload a long file to a servlet we encounters a problem with
the session
timeout because of the long time it takes to upload the file over a slow
connection (sometimes
several hours).

It seems that the problem is in the way the session timeout is specified in
the servlet
session. It measures time between request, not just idle time (no activity
related to
that session).

A possible solution would be to increase the session timeout to several
hours but
this will affect also affect the automatic logout of users
after a predefined idle time period (by the automatic invalidation of the
session).

Is there a way to reset the session timer as if a new request has arrived ?
With this option, we could add to the loop that reads the incoming files a
periodic
call that will reset the session timeout (watchdog).

Thanks,

Tal





RE: Overide encodeURL()

2001-06-11 Thread Filip Hanik

it is possible if you change the source code yourself.
you can read a little bit about the architecture at
http://www.filip.net/tomcatbook/TomcatInterceptors.html
this is focused on the interceptors though

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: David M. Rosner [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 12:39 PM
>To: [EMAIL PROTECTED]
>Subject: Overide encodeURL()
>
>
>Hi All,
>
>My application has already been coded to use the encodeURL()
>method for all
>URL references within all of the JSP pages. I now have a need to take the
>output of encodeURL() and add additional text to it. Is it possible to
>write my own version of encodeURL() that will call the request.encodeURL()
>method and then pass the output back to the JSP page?
>
>For example I would have the following on a JSP page:
>
><%= response.encodeURL( "/SomePage.jsp") %>
>
>Then I would have a class called response with a static method called
>encodeURL() which may look like this:
>
>static String encodeURL( String location  ) {
>   String strTemp = response.encodeURL( location );
>
>   doStuff( strTemp );
>
>   return strTemp;
>}
>
>
>Due to the fact that I don't fully understand the Jakarta architecture
>perhaps this isn't possible? Any ideas?
>
>




Re: jspc ???

2001-06-11 Thread Tim O'Neil

At 03:18 PM 6/9/2002 +0530, you wrote:
>hi all
>
>can somebody tell me how to precompile the jsp's of my webapp.
>i have tried using jspc with options . it just creates the related java
>files but not the compiled servlets.

Hit your jsp content once before you go
into production, they'll be compiled and
ready to go until the next time you cycle
the system for whatever reason.





Re: Problem starting TOMCAT on Win 2000

2001-06-11 Thread Shravan Shashikant

Priya,
  I think you need to set the path of java in your environment variables.
The error "system cannot..." is generally associated with dos not finding
the executable to run the program.so,include the jave home and tomcat home
in your PATH variable of your comp.also,i think its mentioned in the
tomcat documentation too.
regards,
shravan

On Mon, 11 Jun 2001, Priya Gupta wrote:

> Hello
>I dowloaded the Tomcat 3.2.2 and unzipped all the
> files in a folder: foo\jakarta-tomcat-3.2.2
>I set the TOMCAT_HOME variable set
> TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
>and JAVA_HOME=C:\jdk1.2.2
>But still when I try startiing Tomcat from command
> it says "The system cannot find the Path specified"
>Also I have copied the tools.jar file in the Path.
>It would be really nice if someone can help me out
> of this!
>Thank you
>Priya   
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 




Overide encodeURL()

2001-06-11 Thread David M. Rosner

Hi All,

My application has already been coded to use the encodeURL() method for all 
URL references within all of the JSP pages. I now have a need to take the 
output of encodeURL() and add additional text to it. Is it possible to 
write my own version of encodeURL() that will call the request.encodeURL() 
method and then pass the output back to the JSP page?

For example I would have the following on a JSP page:

<%= response.encodeURL( "/SomePage.jsp") %>

Then I would have a class called response with a static method called 
encodeURL() which may look like this:

static String encodeURL( String location  ) {
String strTemp = response.encodeURL( location );

doStuff( strTemp );

return strTemp;
}


Due to the fact that I don't fully understand the Jakarta architecture 
perhaps this isn't possible? Any ideas?




Re: Problem connecting to the database

2001-06-11 Thread Ann Tomcat

Hi!Hemant,

Inspite of including the all permission grant in
.java.policy file I have problem connecting to the 
database.

The .java.policy file looks like:
grant codeBase "http://localhost:8080/log/"; {
  permission java.lang.RuntimePermission "usePolicy";
  permission java.net.SocketPermission "*", "accept,
connect, listen, resolve";
  permission java.io.FilePermission "<>",
"read";
  permission java.security.AllPermission;
};

when I use the system on IE 5.0 it gives me
'Access Denied: java.permission.SocketPermission
[server_name] resolve' error on appletviewer there 
is no such problem.

Can you please suggest me a way out ? 

Thanks 

Ann


--- Hemant Singh <[EMAIL PROTECTED]> wrote:
> HI Ann:
> no doubt your problem is offcourse configuration
> related.
> Try giving all permission in your java.policy
> file(Make sure it is
> java.policy or .java.policy)
> eg.
> grant {
> permission java.security.AllPermission;
> }
> Let me know if this also don't work
> Regards,
> Hemant
> 
> - Original Message -
> From: "Ann Tomcat" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 10, 2001 11:25 PM
> Subject: Problem connecting to the database
> 
> 
> > Hi!guys,
> >
> >
> > I have developed an application using Tomcat 3.1
> > ,jdk1.3 and Oracle8.1.5 as the database.
> >
> > The application includes servlets,applets and jsp
> > pages.
> >
> > Environment: NT
> > Jdk : 1.3
> > Oracle : 8.1.5
> > Tomcat : 3.1
> >
> > The application runs Ok till the servlet execution
> > ie proper database connection.But when the JApplet
> > tries to connect to the database gives
> > 'Access Denied: java.permission.SocketPermission
> > [server_name] resolve error.
> >
> > Note:
> > 1) The database is on the same machine as the
> JApplet.
> > 2) I did place .java.policy file in
> > [c:\WINNT\PROFILES\ADMINSTRATION\] which is the
> home
> > directory as per the java console with proper
> socket
> > permission.
> > 3) When I try to connect the database using
> > appletviewer in the JDK1.3 the JApplet has no
> problem
> > with the database connection.
> >
> > Can anybody help me out with this issue ?
> >
> > This is very urgent.
> >
> > Thanks
> >
> > Ann.
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> - only $35
> > a year!  http://personal.mail.yahoo.com/
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Problem starting TOMCAT on Win 2000

2001-06-11 Thread Randy Layman


TOMCAT_HOME should be C:\some\dir\foo\jakarta-tomcat-3.2.2 (i.e.
absolute path).


> -Original Message-
> From: Priya Gupta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: Problem starting TOMCAT on Win 2000
> 
> 
> Hello
>I dowloaded the Tomcat 3.2.2 and unzipped all the
> files in a folder: foo\jakarta-tomcat-3.2.2
>I set the TOMCAT_HOME variable set
> TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
>and JAVA_HOME=C:\jdk1.2.2
>But still when I try startiing Tomcat from command
> it says "The system cannot find the Path specified"
>Also I have copied the tools.jar file in the Path.
>It would be really nice if someone can help me out
> of this!
>Thank you
>Priya   
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 



RE: Problem starting TOMCAT on Win 2000

2001-06-11 Thread Jann VanOver

Your TOMCAT_HOME path must be a FULL path like D:\foo\jakarta-tomcat-3.2.2

-Original Message-
From: Priya Gupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 12:01 PM
To: [EMAIL PROTECTED]
Subject: Problem starting TOMCAT on Win 2000


Hello
   I dowloaded the Tomcat 3.2.2 and unzipped all the
files in a folder: foo\jakarta-tomcat-3.2.2
   I set the TOMCAT_HOME variable set
TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
   and JAVA_HOME=C:\jdk1.2.2
   But still when I try startiing Tomcat from command
it says "The system cannot find the Path specified"
   Also I have copied the tools.jar file in the Path.
   It would be really nice if someone can help me out
of this!
   Thank you
   Priya   

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Problem starting TOMCAT on Win 2000

2001-06-11 Thread Priya Gupta

Hello
   I dowloaded the Tomcat 3.2.2 and unzipped all the
files in a folder: foo\jakarta-tomcat-3.2.2
   I set the TOMCAT_HOME variable set
TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
   and JAVA_HOME=C:\jdk1.2.2
   But still when I try startiing Tomcat from command
it says "The system cannot find the Path specified"
   Also I have copied the tools.jar file in the Path.
   It would be really nice if someone can help me out
of this!
   Thank you
   Priya   

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Tomcat NT service mode

2001-06-11 Thread Ratnakar Palle

Thanks Randy... I think, this one helps...

-Ratnakar

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat NT service mode



To do this from a program/non-interactive environment, for an
already installed service, edit the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[ServiceName]\Start.
The value 2 is definitely for Automatic.  I believe that 0 is disabled, 1 is
manual, but I'm not 100% sure of the last two.

Randy


> -Original Message-
> From: Ratnakar Palle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat NT service mode
>
>
>
> I've a similar requirement...
> If anyone has done this before, please let me know..
>
> Thanks,
> -Ratnakar
>
>
>
> From: "Swart, James (Jim) ** CTR **"
> Subject:  RE: Tomcat NT service mode
> Date:  Tue, 5 Jun 2001 13:00:07 -0400
>
> can't you just change it's properties to startup up automatically in
> the
> services control panel?
>
> -Original Message-
> From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 10:29 AM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat NT service mode
>
>
> Hello,
>
> When we run jk_nt_service.exe, by default the Tomcat NT service will
> be set
> in manual mode. But we want to set the automatic mode as the default
> when we
> register Tomcat NT service. Is it difficult to change the source
> code to do
> that? Where may I find the source code for jk_nt_service.exe? Thank
> you!
>
> Dong
>




RE: Tomcat and IIS revisited

2001-06-11 Thread Winer, Matthew

Randy,

Here is a clip from my server.xml file:







Thank You
Matt Winer

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat and IIS revisited



Now, my question is, have you modified Tomcat's server.xml file?
This file indicates that it will try and use ajp12 to connect to
localhost:8007 to find Tomcat.  From your uriworkermap.properties file we
know that this one should be used, and from the log files posted earlier we
know that it is being used.  So, the only thing that remains that could be
wrong, is that Tomcat is not running AJP12 on port 8007.



RE: Tomcat NT service mode

2001-06-11 Thread Ratnakar Palle

Matt,

Thanks for your response...
But, we are installing the product on the client side. And, client may not
be aware of this.
We want to make it automatic such that if they reboot the system, Tomcat
will be started automatically...

Thanks again,
-Ratnakar

-Original Message-
From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat NT service mode


Ratnakar,

After you run the jk_nt_service -i   if you go into
the Services Control Panel you will see the service Sitting there set to
manual and stoped.

For example if I create a service by the following:

jk_nk_service -i Tomcat wrapper.properties

In the Service I will find Tomcat and I can change it to Automatic, Manual,
or Disabled.  You can even put in a description.

-Matt Winer

-Original Message-
From: Ratnakar Palle [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat NT service mode



I've a similar requirement...
If anyone has done this before, please let me know..

Thanks,
-Ratnakar





RE: Tomcat NT service mode

2001-06-11 Thread Randy Layman


To do this from a program/non-interactive environment, for an
already installed service, edit the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[ServiceName]\Start.  
The value 2 is definitely for Automatic.  I believe that 0 is disabled, 1 is
manual, but I'm not 100% sure of the last two.

Randy


> -Original Message-
> From: Ratnakar Palle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat NT service mode
> 
> 
> 
> I've a similar requirement... 
> If anyone has done this before, please let me know..
> 
> Thanks,
> -Ratnakar
> 
> 
> 
> From: "Swart, James (Jim) ** CTR **" 
> Subject:  RE: Tomcat NT service mode
> Date:  Tue, 5 Jun 2001 13:00:07 -0400
> 
> can't you just change it's properties to startup up automatically in
> the
> services control panel?
> 
> -Original Message-
> From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 10:29 AM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat NT service mode
> 
> 
> Hello,
> 
> When we run jk_nt_service.exe, by default the Tomcat NT service will
> be set
> in manual mode. But we want to set the automatic mode as the default
> when we
> register Tomcat NT service. Is it difficult to change the source
> code to do
> that? Where may I find the source code for jk_nt_service.exe? Thank
> you!
> 
> Dong
> 



RE: Tomcat NT service mode

2001-06-11 Thread Winer, Matthew

Ratnakar,

After you run the jk_nt_service -i   if you go into
the Services Control Panel you will see the service Sitting there set to
manual and stoped. 

For example if I create a service by the following:

jk_nk_service -i Tomcat wrapper.properties

In the Service I will find Tomcat and I can change it to Automatic, Manual,
or Disabled.  You can even put in a description.

-Matt Winer

-Original Message-
From: Ratnakar Palle [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat NT service mode



I've a similar requirement... 
If anyone has done this before, please let me know..

Thanks,
-Ratnakar





RE: Tomcat and IIS revisited

2001-06-11 Thread Randy Layman


Now, my question is, have you modified Tomcat's server.xml file?
This file indicates that it will try and use ajp12 to connect to
localhost:8007 to find Tomcat.  From your uriworkermap.properties file we
know that this one should be used, and from the log files posted earlier we
know that it is being used.  So, the only thing that remains that could be
wrong, is that Tomcat is not running AJP12 on port 8007.

Randy

> -Original Message-
> From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 2:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tomcat and IIS revisited
> 
> 
> I appoligize here is the correct file
> 
> #
> # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/workers.properties,v
> 1.3.2.2 2000/10/16 01:59:22 larryi Exp $
> # $Revision: 1.3.2.2 $
> # $Date: 2000/10/16 01:59:22 $
> #
> #
> # workers.properties -
> #
> # This file provides jk derived plugins with with the needed 
> information to
> # connect to the different tomcat workers.
> #
> # As a general note, the characters $( and ) are used 
> internally to define
> # macros. Do not use them in your own configuration!!!
> #
> # Whenever you see a set of lines such as:
> # x=value
> # y=$(x)\something
> #
> # the final value for y will be value\something
> #
> # Normaly all you will need to modify is the first properties, i.e.
> # workers.tomcat_home, workers.java_home and ps. Most of the 
> configuration
> # is derived from these.
> #
> # When you are done updating workers.tomcat_home, 
> workers.java_home and ps
> # you should have 3 workers configured:
> #
> # - An ajp12 worker that connects to localhost:8007
> # - An ajp13 worker that connects to localhost:8009
> # - A jni inprocess worker.
> # - A load balancer worker
> #
> # However by default the plugins will only use the ajp12 
> worker. To have
> # the plugins use other workers you should modify the 
> worker.list property.
> #
> #
> 
> #
> # workers.tomcat_home should point to the location where you
> # installed tomcat. This is where you have your conf, webapps and lib
> # directories.
> #
> workers.tomcat_home=c:\tomcat\jakarta-tomcat-3.2.2
> 
> #
> # workers.java_home should point to your Java installation. Normally
> # you should have a bin and lib directories beneath it.
> #
> workers.java_home=c:\jdk1.3.1
> 
> #
> # You should configure your environment slash... ps=\ on NT 
> and / on UNIX
> # and maybe something different elsewhere.
> #
> ps=\
> # ps=/
> 
> #
> #-- ADVANCED MODE 
> #-
> #
> 
> #
> #-- DEFAULT worket list --
> #-
> #
> #
> # The workers that your plugins should create and work with
> #
> worker.list=ajp12, ajp13
> 
> #
> #-- DEFAULT ajp12 WORKER DEFINITION --
> #-
> #
> 
> #
> # Defining a worker named ajp12 and of type ajp12
> # Note that the name and the type do not have to match.
> #
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> #
> # Specifies the load balance factor when used with
> # a load balancing worker.
> # Note:
> #  > lbfactor must be > 0
> #  > Low lbfactor means less work done by the worker.
> worker.ajp12.lbfactor=1
> 
> #
> #-- DEFAULT ajp13 WORKER DEFINITION --
> #-
> #
> 
> #
> # Defining a worker named ajp13 and of type ajp13
> # Note that the name and the type do not have to match.
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> #
> # Specifies the load balance factor when used with
> # a load balancing worker.
> # Note:
> #  > lbfactor must be > 0
> #  > Low lbfactor means less work done by the worker.
> worker.ajp13.lbfactor=1
> 
> #
> # Specify the size of the open connection cache.
> #worker.ajp13.cachesize
> 
> #
> #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
> #-
> #
> 
> #
> # The loadbalancer (type lb) workers perform wighted round-robin
> # load balancing with sticky sessions.
> # Note:
> #  > If a worker dies, the load balancer will check its state
> #once in a while. Until then all work is redirected to peer
> #workers.
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp12, ajp13
> 
> 
> #
> #-- DEFAULT JNI WORKER DEFINITION-
> #-
> #
> 
> #
> # Defining a worker named inprocess and of type jni
> # Note that the name and the type do not have to match.
> #
> worker.inprocess.type=jni
> 
> #
> #-- CLASSPATH DEFINITION ---

RE: Tomcat NT service mode

2001-06-11 Thread Ratnakar Palle


I've a similar requirement... 
If anyone has done this before, please let me know..

Thanks,
-Ratnakar



From: "Swart, James (Jim) ** CTR **" 
Subject:  RE: Tomcat NT service mode
Date:  Tue, 5 Jun 2001 13:00:07 -0400

can't you just change it's properties to startup up automatically in
the
services control panel?

-Original Message-
From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 10:29 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat NT service mode


Hello,

When we run jk_nt_service.exe, by default the Tomcat NT service will
be set
in manual mode. But we want to set the automatic mode as the default
when we
register Tomcat NT service. Is it difficult to change the source
code to do
that? Where may I find the source code for jk_nt_service.exe? Thank
you!

Dong



Re: jspc and deployment

2001-06-11 Thread Oskar Zinger

What option did you use with jspc?  I am encountering the same problem.
Thanks
Oskar

FRED wrote:

> Hi Randy,
>
> Thank you for your reaction. I got it working. This will save me a lot
> of time and will make my application more scalable.
>
> Sophie
>
> Randy Layman schreef:
>
> > The answer is you can't.  Even if you could get it to generate the
> > file names correctly, Tomcat still wouldn't use them.  What you need to do
> > is to use jspc with the option that produces a web.xml file.  You then need
> > to incorporate that with your web.xml file, compile the .java files, and you
> > will have a webapp made up of exclusively servlets (and static content) - no
> > more JSP to compile.
> >
> > Randy
> >
> > > -Original Message-
> > > From: Joost en Sooophie [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 09, 2001 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: jspc and deployment
> > >
> > >
> > > Hi,
> > >
> > > My problem is the following:
> > >
> > > I am working on an EJB application. I want to pre-compile all the
> > > jsp-pages before making the application available on the internet
> > > (and someone clicking on the page, experiencing quite some delay).
> > >
> > > When the jsp MyJSP.jsp is compiled with jspc in Tomcat, files
> > > MyJSP.java
> > > and MyJSP.class are placed in the /TOMCAT_HOME/work directory. But
> > > when I start the application on the internet, it creates the files
> > > xxxMy_yyyJSP.java
> > > and xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory.
> > >
> > > How can I configure jspc, so that it creates the files
> > > xxxMy_yyyJSP.java and
> > > xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory?
> > >
> > > Any answer or information or documentation is much appreciated.
> > >
> > > Sophie
> > >
> > >




RE: Tomcat and IIS revisited

2001-06-11 Thread Winer, Matthew

I appoligize here is the correct file

#
# $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/workers.properties,v
1.3.2.2 2000/10/16 01:59:22 larryi Exp $
# $Revision: 1.3.2.2 $
# $Date: 2000/10/16 01:59:22 $
#
#
# workers.properties -
#
# This file provides jk derived plugins with with the needed information to
# connect to the different tomcat workers.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first properties, i.e.
# workers.tomcat_home, workers.java_home and ps. Most of the configuration
# is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#
#

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=c:\tomcat\jakarta-tomcat-3.2.2

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=c:\jdk1.3.1

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\
# ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp12, ajp13

#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13


#
#-- DEFAULT JNI WORKER DEFINITION-
#-
#

#
# Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni

#
#-- CLASSPATH DEFINITION -
#-
#

#
# Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes

#
# The XML parser provided with Tomcat
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar

#
# Tomcat's implementation
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar

#
# Javac as available from Java2SE
#
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar

#
# Setting the command line for tomcat
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)

stress test

2001-06-11 Thread altuga


Hi all 

i am testing tomcat with using  "ap"  which comes with apache

what is ideal test case , ? for example 1000 user , 7 concurrent is ideal ?


and while i am testing tomcat sometimes it  uses %98 cpu and never gives it
back ..
i configured my server.xml like that 
 



any idea ? 


regards .. 

Altug



 




RE: Corrupt isapi_redirect.dll and ISS5

2001-06-11 Thread Randy Layman


You can assume that they are acceptable, and if you're asking the
question then they are probably correct.  The only time they would be
acceptable but not correct involves two sets of files and you not wanting to
use one of them


Randy

-Original Message-
From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 2:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Corrupt isapi_redirect.dll and ISS5


If I have the green up arrow in IIS can I assume that my registry setting
are 100% correct?
 
-Matt Winer
-Original Message-
From: Lawrence Kemdirim [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Corrupt isapi_redirect.dll and ISS5


Hello:

I finally got it to work. I just wanted to include this post to clarify any
misconceptions about the isapi_redirect.dll being corrupt. They are not
corrupt!!!

I got things working by following Rex's advice. I would appear that using
regedit does not
entirely do the job. As Rex had suggested, it would be best (but time
consuming) to manually create the .reg file and that's it.

Personally, I don't think it had anything to do with typos, etc., although
in some cases, that could be the problem. However, I think it's simply just
the way regedit handles the info.

Lawrence



Tomcat as a service.

2001-06-11 Thread Winer, Matthew

I have Tomcat running as a service successfully however I have one issue.
When I run it as a service I am able to access:
http://localhost/examples/jsp and everything in there.  However when I try
to access http://localhost/uwi/com.ups.uoi.servlets.LoginServlet I get:  

Error 500:

Location: /uwi/com.ups.uoi.servlets.LoginServlet

Internal Servlet Error:

java.util.MissingResourceException: Can't find bundle for base name
UtilBundle, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
12)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at com.ups.uoi.core.Util.(Util.java:16)
at com.ups.uoi.UoiServletFrame.(UoiServletFrame.java:37)
at com.ups.uoi.servlets.LoginServlet.(LoginServlet.java:35)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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:484)

If I run tomcat manually (start it by hand) then this works.  I added:

/uwi/servlet/*=ajp12
/uwi/*.jsp=ajp12
/uwi/*=ajp12

to my uriworkermap.properties.  I don't know why it works this way, I mean I
thought the only difference was the wrapper.properties file which has
nothing to do with the workers and contexts.

Thank you

-Matt Winer



Re: Corrupt isapi_redirect.dll and ISS5

2001-06-11 Thread Lawrence Kemdirim



My guess is that your settings are correct as far 
as finding the dll file. However, I don't believe that this means that this is a 
carte blanche for all your other settings (i.e. worker.properties, logs, and 
workeruri, etc.).
 
Lawrence

  - Original Message - 
  From: 
  Winer, 
  Matthew 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Monday, June 11, 2001 2:00 PM
  Subject: RE: Corrupt isapi_redirect.dll 
  and ISS5
  
  If I 
  have the green up arrow in IIS can I assume that my registry setting are 100% 
  correct?
   
  -Matt Winer
  
-Original Message-From: Lawrence Kemdirim [mailto:[EMAIL PROTECTED]]Sent: 
Monday, June 11, 2001 1:56 PMTo: [EMAIL PROTECTED]Subject: 
Re: Corrupt isapi_redirect.dll and ISS5
Hello:I finally got it to work. I just 
wanted to include this post to clarify anymisconceptions about the 
isapi_redirect.dll being corrupt. They are notcorrupt!!!I got 
things working by following Rex's advice. I would appear that 
usingregedit does notentirely do the job. As Rex had suggested, it 
would be best (but timeconsuming) to manually create the .reg file 
and that's it.Personally, I don't think it had anything to do with 
typos, etc., althoughin some cases, that could be the problem. However, 
I think it's simply justthe way regedit handles the 
info.Lawrence


RE: Tomcat and IIS revisited

2001-06-11 Thread Randy Layman



> -Original Message-
> From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 1:38 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tomcat and IIS revisited
> 
> 
> Here is a copy of my workers.properties and 
> uriworkermap.properties files.
> I was told that this is where my problem lies.  If somebody 
> could take a
> quick look, maybe see if anything is wrong.  Thanks
> 
> 
> 
> #
> # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v
> 1.2.2.1 2000/10/16 01:59:22 larryi Exp $

workers.properties, not wrapper.properties.



Classpath for javax.swing

2001-06-11 Thread Swart, James (Jim) ** CTR **

I just created an applet using javax.swing components.  I got it to run but
I had to add the jar file to my classpath so that the import statements
would find javax.swing.*.  Obviously, users are not going to know how to add
a jar file to their classpath.  Can someone point me to some docs for
downloadable jar files?  Or can I just add
CODEBASE="/javaclass/swingall.jar" parameter to
my  tag?

Jim Swart.
SysAdmin/Developer/WebMaster



RE: Corrupt isapi_redirect.dll and ISS5

2001-06-11 Thread Winer, Matthew



If I 
have the green up arrow in IIS can I assume that my registry setting are 100% 
correct?
 
-Matt 
Winer

  -Original Message-From: Lawrence Kemdirim 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 11, 2001 1:56 
  PMTo: [EMAIL PROTECTED]Subject: Re: Corrupt 
  isapi_redirect.dll and ISS5
  Hello:I finally got it to work. I just 
  wanted to include this post to clarify anymisconceptions about the 
  isapi_redirect.dll being corrupt. They are notcorrupt!!!I got 
  things working by following Rex's advice. I would appear that usingregedit 
  does notentirely do the job. As Rex had suggested, it would be best (but 
  timeconsuming) to manually create the .reg file and that's 
  it.Personally, I don't think it had anything to do with typos, etc., 
  althoughin some cases, that could be the problem. However, I think it's 
  simply justthe way regedit handles the 
info.Lawrence


FW: From Vaskar

2001-06-11 Thread Swart, James (Jim) ** CTR **

Forwarding

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 11:53 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: From Vaskar


please refer this to the "tomcat-user" list
thanks and have a great week
Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

>-Original Message-
>From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 11, 2001 10:24 AM
>To: '[EMAIL PROTECTED]'
>Subject: RE: From Vaskar
>
>
>well.. for starters.. open a "command" prompt and run it from there.. that
>will SHOW you what is going on rather than it just disappearing! :-)
>
>-Original Message-
>From: Vaskar Mistri [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, June 10, 2001 9:11 AM
>To: [EMAIL PROTECTED]
>Subject: From Vaskar
>
>
>Hello,
>
>I joined this list today. I'll start off with a problem I'm facing.
>
>I'm having some problem running the command "startup.bat" on Win98 SE
>to start JSDK2.1's servlet runner.
>
>I have classpath and everything else set up properly.
>
>The problem is that when I issue the command startup.bat at the command
>prompt
>
>
>E:>jsdk2.1\startup
>
>a new command window pops up and then disappears(rather vanishes)
>almostly
>immediately.
>
>Earlier I faced the same problem while trying to start the Tomcat
>server.
>Initially I used Tomcat 3.2.1 and downloaded that from Jakarta's tomcat
>site(http://jakarta.apache.org)
>
>Later I downloaded Tomcat 3.2-b7 from jboss
>website(http://www.jboss.org).
>And using that I could start the Tomcat server properly.
>
>It would be great if you could tell me what's going wrong and how do I
>fix it
>or get around it.
>
>With regards,
>
>-Vaskar Mistri
>[EMAIL PROTECTED]
>



Re: Corrupt isapi_redirect.dll and ISS5

2001-06-11 Thread Lawrence Kemdirim



Hello:I finally got it to work. I just 
wanted to include this post to clarify anymisconceptions about the 
isapi_redirect.dll being corrupt. They are notcorrupt!!!I got things 
working by following Rex's advice. I would appear that usingregedit does 
notentirely do the job. As Rex had suggested, it would be best (but 
timeconsuming) to manually create the .reg file and that's 
it.Personally, I don't think it had anything to do with typos, etc., 
althoughin some cases, that could be the problem. However, I think it's 
simply justthe way regedit handles the info.Lawrence

  - Original Message - 
  From: 
  Lawrence 
  Kemdirim 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 11, 2001 6:07 AM
  Subject: Corrupt isapi_redirect.dll and 
  ISS5
  
  Dear Fellow Tocaters:
   
  Could someone tell me how to obtain a non corrupt 
  version of the isapi_redirect.dll. I have spent my entire weekend trying to 
  get the dll to load successfully (i.e. obtaining the upward green arrow). 
  
   
  I am running windows 2000 professional, and using 
  IIS5.0. I have checked and rechecked all my settings, I have even successfully 
  loaded other dll files. 
   
  Could you please help, or post a more up to date 
  no corrupt version of this file.
   
  Thanks,
   
  Lawrence


question on affinity for cookies

2001-06-11 Thread Mike Spreitzer

I have a web application served by Tomcat (currently 3.2.2b3).  I've 
configured Tomcat to offer both a secured connector at HTTPS://host:8086/ 
and an unsecured version available at HTTP://host:8085/.  My question is, 
should I expect my servlets to see the same "session attributes" when a 
client uses either of the two scheme&port pairs?

My experience is that it depends on the browser.  For IE 5.0 on Win2K, the 
session attributes are common across the two prefixes; for Netscape 4.75 
on the same client machine, the session attributes associated with one 
prefix are independent of the session attributes associated with the 
other.

Which is correct, and what are my options for getting consistent behavior?

Thanks,
Mike



RES: RES: stress test

2001-06-11 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

So, spare-threads seems to be waiting listenners, doesnt it? Its always very
very important that you have an ideia about the amount of users  which are
using your application at the same time... Thats the reason for using
threads. Some questions: does your app use SGBD? SGBD has threads
configuration too and needs disk space. Anyway, it seems that TomCat isnt
strong enough for this kind of test or else your hardware/S.O. isnt good
enough. If you  are using NT/2000, try to tune it.
I hope it helps!

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: Charles Baker [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 12:06
Para:   [EMAIL PROTECTED]
Assunto:Re: RES: stress test

Spare-threads are idle threads. We want a few idle
threads to quickly answer incoming requests. We don't
want too many idle threads, or else we can negatively
impact performance. So, we can represent the config
below with this pseudo-code in an attempt to make it
more clear:

// Max spare threads
while ( IDLE_THREADS > 20 ) {
server.killThread();
}

// Min spare threads
while ( IDLE_THREADS < 5 && THREAD_COUNT <= 200 ){
server.spawnThread();
}
- --- "Jose Euclides da Silva Junior - DIGR.O"
<[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> First of all,
> what does "spare-treads" mean?
> Secondly,
> there are 2 very important parameters that should be
> configurated: delay and
> threads - and 1 important concept: each new group
> will begin after the prior
> one ends. So, you should have enough CPU and memory
> to allow multithreads.
> Finally, if you are testing a web page, this kind of
> tool (in general)
> doesnt simulate the real overhead.
> 
> Regards,
> 
> José Euclides Júnior
> __
> E-mail: [EMAIL PROTECTED]
> [EMAIL PROTECTED] 
> http://euclides.8m.com
> 
> 
> 
> - -Mensagem original-
> De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Enviada em:   Segunda-feira, 11 de Junho de 2001
> 08:19
> Para: [EMAIL PROTECTED]
> Assunto:  stress test
> 
> Hi all 
> 
> i am testing tomcat with using  "ap"  which comes
> with apache
> 
> what is ideal test case , ? for example 1000 user ,
> 7 concurrent is ideal ?
> 
> 
> and while i am testing tomcat sometimes it  uses %98
> cpu and never gives it
> back ..
> i configured my server.xml like that 
>   name="max_threads"
> value="200"/>
>  name="max_spare_threads"
> value="20"/>
>  name="min_spare_threads"
> value="5" />
> 
> any idea ? 
> 
> 
> regards .. 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5.1
> 
>
iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
>
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
>
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
> Eo7s29sLgL8=
> =xzb+
> -END PGP SIGNATURE-


=
- -
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOyUlM90YhuJ3BUxtAQF46wQAjyxCE9Lxd7kmP3eibHeDLM2OenKWoGkA
nyqCceTXvmgTOr1jSdrmbS6KvBZBntIfuUDSIeREWQWJcTJG9uhpHTrGeCE90Xu1
qS6drL+OnNzylKMcT8PmRJ43rcpmFgtsuvK5v/vrdASVU3It8OwfWICIwpUnfgls
Y/pqvIqm5oE=
=G7ka
-END PGP SIGNATURE-



RE: Tomcat and IIS revisited

2001-06-11 Thread Winer, Matthew

Here is a copy of my workers.properties and uriworkermap.properties files.
I was told that this is where my problem lies.  If somebody could take a
quick look, maybe see if anything is wrong.  Thanks



#
# $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v
1.2.2.1 2000/10/16 01:59:22 larryi Exp $
# $Revision: 1.2.2.1 $
# $Date: 2000/10/16 01:59:22 $
#
#
# jk_service.properties - a bootstrup file for the Tomcat NT service.
#
# This file provides jk_nt_service with the needed information to
# start tomcat at a different process.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first two properties, i.e.
# wrapper.tomcat_home and wrapper.java_home. Most of the configuration
# is derived from these two.
#

#
# wrapper.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
wrapper.tomcat_home=c:\tomcat\jakarta-tomcat-3.2.2

#
# wrapper.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
wrapper.java_home=c:\jdk1.3.1

#
#-- ADVANCED MODE 
# Make sure that you read the how-to before making too many changes.
#-
#

#
# Defining where the service is going to put the standard
# output of Tomcat. This is where System.out.println and
# System.err.println goes to.
#
wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

#
# Additions to the path. put here directories where you store DLLs for
# native methods etc.
#
wrapper.ld_path=d:\
wrapper.ld_path=c:\

#
# Defining the classpath. All the rows that belongs to the class_path
# property are concatenated to create the classpath for Tomcat.
#
# If you have additional locations that you would like to add to the
# claspath you should add a new wrapper.class_path= line.
#
wrapper.class_path=$(wrapper.tomcat_home)\classes
wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar

#
# This is where Javac is located in JDK1.2.x
#
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
#
# and a tribute to JDK1.1.x
#
#wrapper.class_path=$(wrapper.java_home)\lib\classes.zip

#
# This is the Java interpreter used for running Tomcat
#
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

#
# This is Tomcat's startup class (the class that contains Tomcat's
# starting point.
#
wrapper.startup_class=org.apache.tomcat.startup.Tomcat

#
# This is the location where tomcat's server.xml configuration file 
# is located. 
#
wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml

#
# The NT service uses AJP12/AJP13 to shutdown Tomcat. The 
# wrapper.shutdown_port tells the service the identity of the port that 
# is used by AJP12/AJP13.
#
wrapper.shutdown_port=8007

#
# Can either be ajp12 or ajp13 depending on your configuration.
#
# Default value is ajp12
#
wrapper.shutdown_protocol=ajp12

#
# This is the command line that is used to start Tomcat. You can *add* extra
# parameters to it but you can not remove anything.
#
wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.tomcat_home)





#The uriworkermap.properties file

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12


***

Can I or should I use this file.  I am going to need the uwi and loxt
contexts


#This is the uriworkermap.properties-auto file
#
# Auto configuration for the /loxt context starts.
#

#
# The following line mounts all JSP file and the /servlet/ uri to tomcat
#
/loxt/servlet/*=$(default.worker)
/loxt/*.jsp=$(default.worker)

#
# If you want tomcat to serve all the resources (including static) that
# are part of the /loxt context, uncomment the following line
#
# /loxt/*=$(default.worker)
###
# Auto configuration for the /loxt context ends.
###

#

Re: Tomcat on IIS registry entries

2001-06-11 Thread Lawrence Kemdirim

Hello:

I would like to send a special thanks to Rex...I finally got the
isapi_redirect.dll working. I would appear that using regedit does not
entirely do the job. As Rex had suggested, it would be best (but time
consuming) to manually create the .reg file and that's it.

Personally, I don't think it had anything to do with typos, etc., although
in some cases, that could be the problem. However, I think it's simply just
the way regedit handles the info.

Lawrence
- Original Message -
From: "Rex Cooper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 11:30 AM
Subject: Tomcat on IIS registry entries


> HI There.
>
> We have created two .reg files for NT 4 and Windows 2000. They work for
> tomcat installations on
> c:\jakarta-tomcat-3.2.1 but should be editable for other file paths. I
found
> the process to be very error prone, manually making the keys every time.
>
> Win 2k
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
> Redirector\1.0]
> "extension_uri"="/jakarta/isapi_redirect.dll"
> "log_file"="c:\\jakarta-tomcat-3.2.1\\logs\\isapi.log"
> "log_level"="info"
> "worker_file"="c:\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
>
"worker_mount_file"="c:\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties
> "
>
> NT 4
> REGEDIT4
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
> Redirector\1.0]
> @=""
> "log_file"="c:\\jakarta-tomcat-3.2.1\\logs\\isapi.log"
> "worker_file"="c:\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
>
"worker_mount_file"="c:\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties
> "
> "extension_uri"="/jakarta/isapi_redirect.dll"
> "log_level"="debug"
>
> The NT 4 version also works on Win 2k, but is here for completeness.
>




Re: advice on setting up server for student projects?

2001-06-11 Thread Michael Jennings

Hi,

I have done this before on my Linux server, but only by manually
modifying server.xml to explicitly add contexts that point to
something off of each user's home directory.

For example, in my server.xml file (tomcat 3.2.2) I've got the following:



So that my friend Craig can play with JSP's in his public_html directory.
Since I rely on mod_jk.conf-auto, I have to restart tomcat to regenerate
the newer mod_jk.conf-auto then I have to restart apache to re-read
mod_jk.conf-auto

What you probably want to do, is copy AutoSetup.java to something like
HomeDirSetup.java then modify HomeDirSetup.java such that it automatically
adds
contexts from /home/*/public_html/jsp
so that each user gets a tomcat context.

Was this clear? Didn't sound clear when I typed it. Hope it made sense!
-Mike

- Original Message -
From: "Daphne Tregear" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 9:59 AM
Subject: advice on setting up server for student projects?


> Hello.
>
> Does anyone have any advice to offer on setting up an Apache/Tomcat
> server for student projects? Currently our students can just ask for
> CGI permission if they need it for their project and we enable their
> ~/public_html/cgi-bin directory.  Is there a way I can just enable
> ~/public_html/javapages (say) on an ad-hoc basic without giving myself
> major amounts of reconfiguration to do each time?
>
> If you have any suggestions, please let me know -- thanks.
>
> --
> Daf Tregear Department of Computer Science
> Systems Manager University of Manchester
> E-mail: [EMAIL PROTECTED] Oxford Road
> Tel: +44 (0)161 275 6227 Manchester
> Fax: +44 (0)161 275 6236 United Kingdom  M13 9PL
>




RE: MVB

2001-06-11 Thread Swart, James (Jim) ** CTR **



Am I 
the only one who just got this in.. is it.. Russian?

  -Original Message-From: MVB 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 11:58 
  PMTo: [EMAIL PROTECTED]Subject: 
  MVB
  ÂÛ ÇÍÀÅÒÅ  ×ÒΠ ÒÀÊÎÅ  ÃÐÈÍÌÅÉË 
  ?ÝÒΠ ÀÊÖÈÎÍÅÐÍÛÉ  ØÀÍÒÀÆ, ÀÃÐÅÑÑÈÂÍÎÅ ÏÎÃËÎÙÅÍÈÅ ÏÐÅÄÏÐÈßÒÈÉ, 
  ÏÅÐÅÕÂÀÒ ÓÏÐÀÂËÅÍÈß  ÀÎ, ÑÀÁÎÒÀÆ ÐÀÁÎÒÛ ÏÐÅÄÏÐÈßÒÈß, ÓÑÒÐÀÍÅÍÈÅ 
  ÊÎÍÊÓÐÅÍÒÎÂ È ÌÍÎÃÎÅ ÄÐÓÃÎÅ, ÍÎ ÇÀÌÅÒÜÒÅ, ÊÀÊ ÍÅ ÏÀÐÀÄÎÊÑÀËÜÍÎ, ÂѨ  ÐÀÌÊÀÕ 
  ÇÀÊÎÍÀ!Åñëè åù¸ 5-10 ëåò íàçàä ÿâëåíèå ãðèíìåéëà 
  áûëî ïðåðîãàòèâîé çàïàäíîé ýêîíîìèêè, òî ñåé÷àñ ìîæíî óòâåðæäàòü, ÷òî 
  ðîññèéñêèé ãðèíìåéë óæå âñòàë íà íîãè (ïðèíöèï ñîçäàíèÿ èìïåðèè "Ðóññêèé 
  Àëþìèíèé"), õîòÿ â íàøåé ñòðàíå ïðèñóòñòâóåò è ãîñóäàðñòâåííûé ãðèíìåéë 
  (ÍÒÂ).Âû õîòèòå çíàòü îá ýòîì áîëüøå ? Õîòèòå çíàòü, êàê îòáèðàþòñÿ 
  ïðåäïðèÿòèÿ, íåîæèäàííî ìåíÿåòñÿ ðóêîâîäñòâî  ÀÎ, êàê äåëàþòñÿ 
  ïðåäëîæåíèÿ "îò êîòîðûõ íåëüçÿ îòêàçàòüñÿ", êàê áîãàòûå ñòàíîâÿòñÿ áåäíûìè è 
  êàê çàùèòèòñÿ îò íåäðóæåñòâåííûõ äåéñòâèé, òîãäà Âàì íåîáõîäèìî çíàòü, ÷òî 3 
  èþíÿ îòêðûëñÿ ôîðóì "ÀÊÖÈÎÍÅÐÍÛÅ ÂÎÉÍÛ", ïîñâÿù¸ííûé òåìàòèêå ãðèíìåéëà íà 
  ñàéòå ÈÍÂÅÑÒÈÖÈÎÍÍÛÅ ÐÅÑÓÐÑÛ www.mvb.ru . Íà 
  ôîðóìå Âû ìîæåòå ïîëó÷èòü áåñïëàòíûå êîíñóëüòàöèè îò þðèñòîâ, 
  ñïåöèàëèçèðóþùèõñÿ íà ãðèíìåéëå.
   


advice on setting up server for student projects?

2001-06-11 Thread Daphne Tregear

Hello.

Does anyone have any advice to offer on setting up an Apache/Tomcat
server for student projects? Currently our students can just ask for
CGI permission if they need it for their project and we enable their
~/public_html/cgi-bin directory.  Is there a way I can just enable
~/public_html/javapages (say) on an ad-hoc basic without giving myself
major amounts of reconfiguration to do each time?

If you have any suggestions, please let me know -- thanks.

-- 
Daf Tregear Department of Computer Science
Systems Manager University of Manchester
E-mail: [EMAIL PROTECTED]Oxford Road
Tel: +44 (0)161 275 6227Manchester
Fax: +44 (0)161 275 6236United Kingdom  M13 9PL




RES: stress test

2001-06-11 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Up now, none.

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 10:45
Para:   [EMAIL PROTECTED]
Assunto:RE: stress test

hi ? 
what kind of testing tool or tools are you suggesting ?


- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 4:24 PM
To: [EMAIL PROTECTED]
Subject: RES: stress test



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 11/06/01 11:19:37
*** Verified: 11/06/01 14:35:50
*** BEGIN PGP VERIFIED MESSAGE ***

First of all,
what does "spare-treads" mean?
Secondly,
there are 2 very important parameters that should be configurated: delay and
threads - and 1 important concept: each new group will begin after the prior
one ends. So, you should have enough CPU and memory to allow multithreads.
Finally, if you are testing a web page, this kind of tool (in general)
doesnt simulate the real overhead.

Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 08:19
Para:   [EMAIL PROTECTED]
Assunto:stress test

Hi all 

i am testing tomcat with using  "ap"  which comes with apache

what is ideal test case , ? for example 1000 user , 7 concurrent is ideal ?


and while i am testing tomcat sometimes it  uses %98 cpu and never gives it
back ..
i configured my server.xml like that 
 



any idea ? 


regards .. 

*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOyUdv90YhuJ3BUxtAQEC7gP9FXlOFd8TrHJW3bOhJ/GUob2Tfdz6mRIE
A8UpVZnG3lLZqPfNaa2ucdlX11PcUd1kF1i/oGfb/ma+6k+ip+EPzz3frlpuOXh/
1NboAkN5rFImPfAB7FAWA291E1WDqlQdNJKbAHWhMkWhs3y20l851zN58mu7lYFr
2k56b1sN6EI=
=Vnwz
-END PGP SIGNATURE-



Re: j_security_check

2001-06-11 Thread Michael Jennings

Mark,

The mod_jk stuff doesn't matter if you are talking to tomcat directly. Have
you
checked out the security example that comes with tomcat 3.2.2?
Does that work? (You might need to modify your server.xml file)

-Mike Jennings

- Original Message -
From: "Mark Muffett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 8:04 AM
Subject: Re: j_security_check


> Peter
>
> Can I check what version of Tomcat you're using?  Mine still doesn't work.
>
> Thanks
>
> Mark
>
> - Original Message -
> From: "P.Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 1:58 PM
> Subject: Re: j_security_check
>
>
> > Hi Mark,
> >
> > I send you attached the parts of mod_jk.conf , web.xml which works for
> > me;
> > belonging to directory structure
> > c:\tomcat\webapps\tute6\form\protected.jsp
> > c:\tomcat\webapps\tute6\secure\login.jsp & error.html
> > c:\tomcat\webapps\tute6\WEB-INF\web.xml
> >
> > set   > verbosityLevel = "DEBUG"
> > path="logs/tomcat.log"/>
> >
> > in your server.xml so you can see if there are any mod_jk errors while
> > invoking tomcat.
> >
> > Hth
> >
> > Peter
>
>
> --
--
> 
>
>
> > ÿþ# The following line makes apache aware of the location of the /tute6
> context
> > #
> > Alias /tute6 "C:/tc/webapps/tute6"
> > 
> > Options Indexes FollowSymLinks
> > 
> >
> > #
> > # The following line mounts all JSP files and the /servlet/ uri to
tomcat
> > #
> > JkMount /tute6/servlet/* ajp13
> > JkMount /tute6/*.jsp ajp13
> > JKMount /tute6/form/*.jsp ajp13
> > JKMount /tute6/secure/j_security_check ajp13
> > #
> > # The following line prohibits users from directly accessing WEB-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case
matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > #
> > # The following line prohibits users from directly accessing META-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case
matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > ###
> > # Auto configuration for the /tute6 context ends.
> > ###
> >
>
>
> --
--
> 
>
>
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >
> >
> >tomcat
> >
> >
> >   
> >protect
> >   /form/protected.jsp
> >   
> >
> >   TESTAPPROLE
> >   tomcat
> >
> >
> >
> >
> >
> >   tute6
> >   /tute6/servlet/*
> >
> >
> >
> >   
> >  My Protected Area
> >  /form/*
> >  DELETE
> >  GET
> >  POST
> >  PUT
> >   
> >   
> >  tomcat
> >   
> >
> >
> >
> >   FORM
> >   Form Based Authentication
> >
> >   /secure/login.jsp
> >   /secure/error.html
> >   
> >
> >
> > 
> >
>




Sticky Session Bug

2001-06-11 Thread nospam

I'm having problems with Tomcat's sticky session implementation while in a
cluster of Tomcat 3.2.2 worker instances running Ajp13.

>From what I understand from the documentation, when a session exists, mod_jk is
suppose to forward all requests for that session to the original Tomcat instance
that created the session.  It's not working  It seems like after a few
reloads, the request will switch to another Tomcat instance (in a roud-robin
fashion as if I didn't have a session).  I'm using Mozilla for my test and
Mozilla is telling me that it received the JSESSIONID cookie and Tomcat is
telling me that it received the JSESSIONID cookie back.  Looks like Tomcat is
ignoring the cookie.

Here is my configuration:

I have three instances of Tomcat 3.2.2 running on the same machine (each is
running Ajp13 on a different port). 
I have a loadbalancer configured to include those three Tomcat instances.
I have one instance of Apache 1.3.19 running in front of my loadbalancer (using
mod_jk).

When I make a request, I get a JSESSIONID back.  If I make the same request 10
times, the first 5 are made on the same server that created the session however,
the other requests after the 5th go to my next tomcat instance.

Is there something I forgot to configure for the sessions to be sticky within a
group of Tomcat workers?

Thanks in advance for your help.

Marc





Re: Error in Startup Tomcat at Win2000

2001-06-11 Thread Hemant Singh



HI Peter:
you are getting the BindException, the most 
possible reason for this is that box you are trying to run tomcat already 
running some application which is using port 8080, so you try changing the port 
from 8080 to someother (In server.xml) and try running it again,
Regards
Hemant

  - Original Message - 
  From: 
  Qinhong 
  Pan 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, June 11, 2001 7:00 AM
  Subject: Error in Startup Tomcat at 
  Win2000
  
  I am running Tomcat 3.2 and Win2000 
  Professional.Once startup tomcat, I got the following error 
  message,2001-06-10 04:12:17 - ContextManager: Adding context Ctx( 
  /examples )2001-06-10 04:12:17 - ContextManager: Adding context Ctx( 
  /admin )Starting tomcat. Check logs/tomcat.log for error 
  messages2001-06-10 04:12:17 - ContextManager: Adding context Ctx( 
  )2001-06-10 04:12:17 - ContextManager: Adding context Ctx( /test 
  )2001-06-10 04:12:18 - PoolTcpConnector: Starting HttpConnectionHandler on 
  8080FATAL:java.net.BindException: Address in use: 
  JVM_Bindjava.net.BindException: Address in use: JVM_Bindat 
  java.net.PlainSocketImpl.socketBind(Native Method)at 
  java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)at 
  java.net.ServerSocket.(ServerSocket.java:170)at 
  java.net.ServerSocket.(ServerSocket.java:121)at 
  org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97)at 
  org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239)at 
  org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)at 
  org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)at 
  org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)Your help is 
  greatly appreciated.Peter 



Re: Problem connecting to the database

2001-06-11 Thread Hemant Singh

HI Ann:
no doubt your problem is offcourse configuration related.
Try giving all permission in your java.policy file(Make sure it is
java.policy or .java.policy)
eg.
grant {
permission java.security.AllPermission;
}
Let me know if this also don't work
Regards,
Hemant

- Original Message -
From: "Ann Tomcat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 10, 2001 11:25 PM
Subject: Problem connecting to the database


> Hi!guys,
>
>
> I have developed an application using Tomcat 3.1
> ,jdk1.3 and Oracle8.1.5 as the database.
>
> The application includes servlets,applets and jsp
> pages.
>
> Environment: NT
> Jdk : 1.3
> Oracle : 8.1.5
> Tomcat : 3.1
>
> The application runs Ok till the servlet execution
> ie proper database connection.But when the JApplet
> tries to connect to the database gives
> 'Access Denied: java.permission.SocketPermission
> [server_name] resolve error.
>
> Note:
> 1) The database is on the same machine as the JApplet.
> 2) I did place .java.policy file in
> [c:\WINNT\PROFILES\ADMINSTRATION\] which is the home
> directory as per the java console with proper socket
> permission.
> 3) When I try to connect the database using
> appletviewer in the JDK1.3 the JApplet has no problem
> with the database connection.
>
> Can anybody help me out with this issue ?
>
> This is very urgent.
>
> Thanks
>
> Ann.
>
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/




Re: setting up Tomcat on win98

2001-06-11 Thread Hemant Singh

HI :
place following line at top of your startup.bat
set TOMCAT_HOME=d:\Tomcat\jakarta-tomcat-3.2.2
set JAVA_HOME=d:\jdk1.3.1
It should work
Regards,
Hemant

- Original Message - 
From: "gek hua" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 10, 2001 7:22 PM
Subject: setting up Tomcat on win98


> sorry for this simple question.
> 
> i am a trying to set up the Tomcat server on a win98 system.
> 
> But whenever i try to start the server running, i keep getting the:
>"You must set JAVA_HOME to point at your Java Development kit
> installation" error message.
> 
> 
> MY Jdk is installed at "d:\jdk1.3.1"
> My Tomcat is installed at "d:\Tomcat\jakarta-tomcat-3.2.2"
> 
> In my autoexec.bat, i have set:
> 
> "path =d:\jdk1.3.1\bin"
> 
> In the folder d:\Tomcat\jakarta-tomcat-3.2.2, i have kept a bat file:
> 
> set TOMCAT_HOME = d:\Tomcat\jakarta-tomcat-3.2.2
> set JAVA_HOME = d:\jdk1.3.1
> bin\startup
> 
> 
> The problem is whenever i run the above bat file, the error message will
> appear.
> This is maddening and hair-pulling!
> 
> would appreciate any help.
> 
> 
> david
> 




Tomcat still falling over. Thread dump help ?

2001-06-11 Thread Andy C

After 3-4 months my tomcat continues to fall falt on it's face every now and
then.  Currentl
it's running at 2-3 times a day !  Every time the processor usage jumps to
100% jaken up
by the Java virtual machine.  Then the java process jsut dies with no
indication of
why.  This time I've got a dump using CTRL-Break.  Any ieads from this why
the
process is behaving like this?

This is Win2000, Tomcat 3.2.2 and apache 1.3.12

ANy sugesstions please, help put me out of my misery !

Andy C


Full thread dump:
"Thread-33" (TID:0xb4a2c0, sys_thread_t:0x1e16e88, Win32ID:0x798,
state:CW)
prio=5
org.apache.tomcat.util.ThreadPool$MonitorRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-32" (TID:0xb4a3b0, sys_thread_t:0x1e16da0, Win32ID:0x69c,
state:MW)
prio=5
java.lang.Object.wait(Compiled Code)
"Thread-31" (TID:0xb4a360, sys_thread_t:0x1e16cb8, Win32ID:0x690,
state:R) p
rio=5
java.net.URL.(Compiled Code)
java.net.URL.(Compiled Code)
java.lang.ClassLoader.getSystemResource(Compiled Code)
org.apache.tomcat.loader.AdaptiveClassLoader.getResource(Compiled
Code)
org.apache.jasper.servlet.JasperLoader.getResource(Compiled Code)
org.apache.jasper.servlet.JasperLoader.getResourceAsStream(Compiled
Code
)
java.beans.Beans.instantiate(Compiled Code)
_0002findex_0002ejsp_0002findex_jsp_1._jspService(Compiled Code)
org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
javax.servlet.http.HttpServlet.service(Compiled Code)

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)
org.apache.jasper.servlet.JspServlet.service(Compiled Code)
javax.servlet.http.HttpServlet.service(Compiled Code)
org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
org.apache.tomcat.core.Handler.service(Compiled Code)
org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
org.apache.tomcat.core.ContextManager.service(Compiled Code)

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec
tion(Compiled Code)
"Thread-30" (TID:0xb4a2f0, sys_thread_t:0x1e16bd0, Win32ID:0x67c,
state:MW)
prio=5
org.apache.tomcat.util.ThreadPool$ControlRunnable.runIt(Compiled
Code)
"Thread-29" (TID:0xb4a5e8, sys_thread_t:0x1e16ae8, Win32ID:0x698,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-28" (TID:0xb4a5a8, sys_thread_t:0x1e16a00, Win32ID:0x580,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-27" (TID:0xb4a550, sys_thread_t:0x1e16918, Win32ID:0x5b8,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-26" (TID:0xb4a510, sys_thread_t:0x1e16830, Win32ID:0x2c8,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-25" (TID:0xb4a4c8, sys_thread_t:0x1e02630, Win32ID:0x5ac,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-24" (TID:0xb4a600, sys_thread_t:0x1e02548, Win32ID:0x5dc,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-23" (TID:0xb4aab8, sys_thread_t:0x1e02460, Win32ID:0x6b8,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-22" (TID:0xb4aa50, sys_thread_t:0x1e02378, Win32ID:0x574,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-21" (TID:0xb4aa10, sys_thread_t:0x1e02290, Win32ID:0x45c,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Thread-20" (TID:0xb4a9d0, sys_thread_t:0x1e021a8, Win32ID:0x55c,
state:CW)
prio=5
java.lang.Object.wait(Compiled Code)
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
java.lang.Thread.run(Compiled Code)
"Threa

RE: Tomcat and IIS revisited

2001-06-11 Thread Randy Layman


Your workers file is not correct - from your previous messages,
isapi_redirect is finding that the resource should be a redirect to Tomcat.
The problem is it can't find the worker for the redirect - the right side of
the mapping in uriworkermap.properties is not defined (or not correctly
defined) in workers.properties.

Randy

> -Original Message-
> From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 11:55 AM
> To: 'Tomcat-User (E-mail)
> Subject: RE: Tomcat and IIS revisited
> 
> 
> When I check the IIS log files I see a 
> 
> GET "/jakarta/isapi_redirect.dll" 401 
> 
> It is a 401 error.  I still have the 
> 
> > jk_uri_worker_map_t::uri_worker_map_close, NULL
> > parameter
> > [jk_uri_worker_map.c (185)]: In 
> > jk_uri_worker_map_t::uri_worker_map_free,
> > NULL parameters
> 
> in my isapi.log file and I am about to throw this $#!* out 
> the window.  
> 
> Thank you for you time
> 
> 
> -Matt Winer
> 



Setting CORBA Settings for Web COntainer

2001-06-11 Thread Adam Bell

Hi,

Can anyone tell me how to set the parameters for JNDI etc within the TOMCAT
server configuration.  Details that need to be entered appear as follows for
the Java WebStart jnlp file to give you an idea












Help would be much appreciated.

Thanks

Adam



RE: Tomcat and IIS revisited

2001-06-11 Thread Winer, Matthew

When I check the IIS log files I see a 

GET "/jakarta/isapi_redirect.dll" 401 

It is a 401 error.  I still have the 

> jk_uri_worker_map_t::uri_worker_map_close, NULL
> parameter
> [jk_uri_worker_map.c (185)]: In 
> jk_uri_worker_map_t::uri_worker_map_free,
> NULL parameters

in my isapi.log file and I am about to throw this $#!* out the window.  

Thank you for you time


-Matt Winer



Re: jsps and servlets in same context?

2001-06-11 Thread Milt Epstein

On Mon, 11 Jun 2001, Burkard Endres wrote:

> Hi
>
> i want my servlets and my jsps be served out of the same directory.
> this means:
> the servlet shoud be mapped to a folder so that they are accessible via:
> /myfolder/myservlet
> the jsps should also be accessible via
> /myfolder/myjsp.jsp
>
> if i copy the jsps in the /myfolder/... it works if i provide the full
> path to the jsps
> but if i access only /myfolder/ i recieve a directorylisting where i can
> download
> my jsps in sourcecode and this is of course not acceptable.

Use the welcome-file facility of the web.xml, and/or put Directory
directives in the tomcat/apache conf file to tell it not to show the
index.  See the sample tomcat/apache conf file for a model of how to
do it.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




another problem with Apache and Tomcat

2001-06-11 Thread francesco.casalena

Hi,
I'm running Tomcat 4.0 m5 with Cocoon2 on Apache 3.1.19 and mod_webapp.

Scenario:

1)lynx http://localhost:8080/examples/servlets/ shows Tomcat's examples
(servlets and JSP) file correctly.

2)lynx http://localhost:8080/examples/cocoon/ shows Coccon's xml files correctly

3)lynx http://localhost/examples/servlets/ works as 1)

4)lynx http://localhost/examples/cocoon/ has a strange behaviour.
  When I select an xml file, browser asks me if I would save the file on   hard disk. 
Now it doesn't recognise .xml extension!
  The same with Netscape.

Is this a problem in httpd.conf or in server.xml (or in web.xml)?

Any answer wellcome!

Regards, ciao
Francesco
--
Virgilio Mail - Il tuo indirizzo E-mail gratis
http://mail.virgilio.it




Tomcat on IIS registry entries

2001-06-11 Thread Rex Cooper

HI There.

We have created two .reg files for NT 4 and Windows 2000. They work for
tomcat installations on
c:\jakarta-tomcat-3.2.1 but should be editable for other file paths. I found
the process to be very error prone, manually making the keys every time.

Win 2k
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="c:\\jakarta-tomcat-3.2.1\\logs\\isapi.log"
"log_level"="info"
"worker_file"="c:\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
"worker_mount_file"="c:\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties
"

NT 4
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
@=""
"log_file"="c:\\jakarta-tomcat-3.2.1\\logs\\isapi.log"
"worker_file"="c:\\jakarta-tomcat-3.2.1\\conf\\workers.properties"
"worker_mount_file"="c:\\jakarta-tomcat-3.2.1\\conf\\uriworkermap.properties
"
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_level"="debug"

The NT 4 version also works on Win 2k, but is here for completeness.




Problem with access control of resources

2001-06-11 Thread Pankaj Chhaparwal


Hi All,

I am using Apache and Tomcat to build
my website. The adapter is JServ.I have certain word documents which have
to be displayed on the browser on demand  from the end user. I dont
want to end users to view these documents unless they have logged into
the system. What happens right now is that user can see the url of word
document when the jsp redirects him to word document on receiving the
request. He can then access the document from the webserver even if he
has not logged into the website. Is there anyway I can prevent this from
happening? Ideally I would like Apache to serve all the word documents
since they are static files. But I am also considering Tomcat to serve
this file.


Also I have another question on access control. Servel 2.2 spec states
the following

Access control for resources: The mechanism by which
interactions with resources are limited
to collections of users or programs for the purpose of
enforcing availability, integrity, or
confidentiality.
How can we limit interaction with resources to collections of
programs?

Any help on this would be greatly appreciated.

Thanks & Regards,
Pankaj



Request.getAttribute() & Request.remove Attribute()

2001-06-11 Thread Florin Pop

Hi there,

1. can somebody tell me what does the getAttribute & removeAttribute methods
of the request object? How can I use them?

2. how can I remove a parameter from a request before forwarding it to
another jsp or servlet?

10x

Florin




RE: Problems with Tomcat/IIS5

2001-06-11 Thread Hamish Barney

Thanks for your advice but I'm afraid all the tomcat logs seem to be in
order to me. Does anyone have any idea what might be causing this problem?
Thanks again,
Hamish

--console---
2001-06-11 01:53:01 - Ctx(  ): 404 R(  + /jakarta/isapi_redirect.dll + null)
null


--jasper.log---
2001-06-11 11:44:56 - JspEngine --> /contact.jsp
2001-06-11 11:44:56 -ServletPath: /contact.jsp
2001-06-11 11:44:56 -   PathInfo: null
2001-06-11 11:44:56 -   RealPath:
C:\tomcat\jakarta-tomcat-3.2.1\webapps\conference\contact.jsp
2001-06-11 11:44:56 - RequestURI: /conference/contact.jsp
2001-06-11 11:44:56 -QueryString: null
2001-06-11 11:44:56 - Request Params: 
2001-06-11 11:44:56 - Classpath according to the Servlet Engine is:
C:\tomcat\jakarta-tomcat-3.2.1\webapps\conference\WEB-INF\classes;C:\tomcat\
jakarta-tomcat-3.2.1\webapps\conference\WEB-INF\lib\addressTags.jar;C:\tomca
t\jakarta-tomcat-3.2.1\webapps\conference\WEB-INF\lib\viewclasses.jar;C:\tom
cat\jakarta-tomcat-3.2.1\webapps\conference\WEB-INF\lib\viewsClasses.jar

--servlet.log---
2001-06-11 11:46:39 - path="/conference" :jsp: init

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems with Tomcat/IIS5



The problem is with your Tomcat configuration - AJP12 is reading a
404 from the connector (about 1/2 way through your log entry).  Check out
your Tomcat configuration, specifically look that /conference is either a
webapp or a directory from the ROOT context, but the Tomcat logs should give
you more information about what is going wrong.

Randy


> -Original Message-
> From: Hamish Barney [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 8:12 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problems with Tomcat/IIS5
> 
> 
> Just wondering if anyone else has had the same experience and 
> if they were
> able to resolve it.
> 
> Trying to get Tomcat 3.2.1 working with IIS5 but I seem to 
> have issues with
> the ISAPI redirector. I've used exactly the same 
> configuration with IIS4 on
> a different machine and it works perfectly. However I always 
> get a 404 error
> when I try to request files when I try with IIS5. I used the 
> same file to
> create both sets of registry settings and as the same
> uriworkermap.properties file on both machines.
> 
> The log from the isapi redirector is shown below. It appears 
> to find the
> jsp, contact.jsp that is requested but still sends back a 404 
> error. Is
> anyone aware of any differences between IIS4 and IIS5 that 
> might produce an
> error like this your help would be greatly appreciated.
> 
> Thanks,
> Hamish
> 
> 
> --ISAPI Redirector Log-
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /conference/contact.jsp
> [jk_uri_worker_map.c (344)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/conference/contact.jsp] is a
> servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/conference/contact.jsp]
> is points to the web-inf directory
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /jakarta/isapi_redirect.dll
> [jk_uri_worker_map.c (344)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (434)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done
> without a match
> [jk_isapi_plugin.c (452)]: HttpFilterProc 
> [/jakarta/isapi_redirect.dll] is
> not a servlet url
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/jakarta/isapi_redirect.dll] is points to the web-inf directory
> [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for 
> name ajp12
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1296
> [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
> [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
> [jk_connect.c (140)]: jk_open_socket, return, sd = 1296
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 1296
> [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
> [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the 
> ajp12 start
> sequence
> [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
> [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the 
> terminating
> mark
> [jk_ajp12_worker.c (472)]: ajpv12_handle_request done
> [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service

Re: j_security_check

2001-06-11 Thread P.Miller

Mark

I'm working with Apache 1.3.19 and TTomcat 3.2.1
My configuration requires Apache & Tomcat (Tomcat standalone doesn'T
neewd mod_jk at all!)

regards
Peter

Mark Muffett wrote:
> 
> Peter
> 
> Can I check what version of Tomcat you're using?  Mine still doesn't work.
> 
> Thanks
> 
> Mark
> 
> - Original Message -
> From: "P.Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 1:58 PM
> Subject: Re: j_security_check
> 
> > Hi Mark,
> >
> > I send you attached the parts of mod_jk.conf , web.xml which works for
> > me;
> > belonging to directory structure
> > c:\tomcat\webapps\tute6\form\protected.jsp
> > c:\tomcat\webapps\tute6\secure\login.jsp & error.html
> > c:\tomcat\webapps\tute6\WEB-INF\web.xml
> >
> > set   > verbosityLevel = "DEBUG"
> > path="logs/tomcat.log"/>
> >
> > in your server.xml so you can see if there are any mod_jk errors while
> > invoking tomcat.
> >
> > Hth
> >
> > Peter
> 
> 
> 
> 
> > ÿþ# The following line makes apache aware of the location of the /tute6
> context
> > #
> > Alias /tute6 "C:/tc/webapps/tute6"
> > 
> > Options Indexes FollowSymLinks
> > 
> >
> > #
> > # The following line mounts all JSP files and the /servlet/ uri to tomcat
> > #
> > JkMount /tute6/servlet/* ajp13
> > JkMount /tute6/*.jsp ajp13
> > JKMount /tute6/form/*.jsp ajp13
> > JKMount /tute6/secure/j_security_check ajp13
> > #
> > # The following line prohibits users from directly accessing WEB-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > #
> > # The following line prohibits users from directly accessing META-INF
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> > #
> > # Use Directory too. On Windows, Location doesn't work unless case matches
> > #
> > 
> > AllowOverride None
> > deny from all
> > 
> >
> > ###
> > # Auto configuration for the /tute6 context ends.
> > ###
> >
> 
> 
> 
> 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> >
> > 
> >
> >
> >tomcat
> >
> >
> >   
> >protect
> >   /form/protected.jsp
> >   
> >
> >   TESTAPPROLE
> >   tomcat
> >
> >
> >
> >
> >
> >   tute6
> >   /tute6/servlet/*
> >
> >
> >
> >   
> >  My Protected Area
> >  /form/*
> >  DELETE
> >  GET
> >  POST
> >  PUT
> >   
> >   
> >  tomcat
> >   
> >
> >
> >
> >   FORM
> >   Form Based Authentication
> >
> >   /secure/login.jsp
> >   /secure/error.html
> >   
> >
> >
> > 
> >



Re: RES: stress test

2001-06-11 Thread Charles Baker

Spare-threads are idle threads. We want a few idle
threads to quickly answer incoming requests. We don't
want too many idle threads, or else we can negatively
impact performance. So, we can represent the config
below with this pseudo-code in an attempt to make it
more clear:

// Max spare threads
while ( IDLE_THREADS > 20 ) {
server.killThread();
}

// Min spare threads
while ( IDLE_THREADS < 5 && THREAD_COUNT <= 200 ){
server.spawnThread();
}
--- "Jose Euclides da Silva Junior - DIGR.O"
<[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> First of all,
> what does "spare-treads" mean?
> Secondly,
> there are 2 very important parameters that should be
> configurated: delay and
> threads - and 1 important concept: each new group
> will begin after the prior
> one ends. So, you should have enough CPU and memory
> to allow multithreads.
> Finally, if you are testing a web page, this kind of
> tool (in general)
> doesnt simulate the real overhead.
> 
> Regards,
> 
> José Euclides Júnior
> __
> E-mail: [EMAIL PROTECTED]
> [EMAIL PROTECTED] 
> http://euclides.8m.com
> 
> 
> 
> - -Mensagem original-
> De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Enviada em:   Segunda-feira, 11 de Junho de 2001
> 08:19
> Para: [EMAIL PROTECTED]
> Assunto:  stress test
> 
> Hi all 
> 
> i am testing tomcat with using  "ap"  which comes
> with apache
> 
> what is ideal test case , ? for example 1000 user ,
> 7 concurrent is ideal ?
> 
> 
> and while i am testing tomcat sometimes it  uses %98
> cpu and never gives it
> back ..
> i configured my server.xml like that 
>   name="max_threads"
> value="200"/>
>  name="max_spare_threads"
> value="20"/>
>  name="min_spare_threads"
> value="5" />
> 
> any idea ? 
> 
> 
> regards .. 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5.1
> 
>
iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
>
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
>
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
> Eo7s29sLgL8=
> =xzb+
> -END PGP SIGNATURE-


=
-
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: j_security_check

2001-06-11 Thread Mark Muffett

Peter

Can I check what version of Tomcat you're using?  Mine still doesn't work.

Thanks

Mark

- Original Message -
From: "P.Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 1:58 PM
Subject: Re: j_security_check


> Hi Mark,
>
> I send you attached the parts of mod_jk.conf , web.xml which works for
> me;
> belonging to directory structure
> c:\tomcat\webapps\tute6\form\protected.jsp
> c:\tomcat\webapps\tute6\secure\login.jsp & error.html
> c:\tomcat\webapps\tute6\WEB-INF\web.xml
>
> set   verbosityLevel = "DEBUG"
> path="logs/tomcat.log"/>
>
> in your server.xml so you can see if there are any mod_jk errors while
> invoking tomcat.
>
> Hth
>
> Peter






> ÿþ# The following line makes apache aware of the location of the /tute6
context
> #
> Alias /tute6 "C:/tc/webapps/tute6"
> 
> Options Indexes FollowSymLinks
> 
>
> #
> # The following line mounts all JSP files and the /servlet/ uri to tomcat
> #
> JkMount /tute6/servlet/* ajp13
> JkMount /tute6/*.jsp ajp13
> JKMount /tute6/form/*.jsp ajp13
> JKMount /tute6/secure/j_security_check ajp13
> #
> # The following line prohibits users from directly accessing WEB-INF
> #
> 
> AllowOverride None
> deny from all
> 
> #
> # Use Directory too. On Windows, Location doesn't work unless case matches
> #
> 
> AllowOverride None
> deny from all
> 
>
> #
> # The following line prohibits users from directly accessing META-INF
> #
> 
> AllowOverride None
> deny from all
> 
> #
> # Use Directory too. On Windows, Location doesn't work unless case matches
> #
> 
> AllowOverride None
> deny from all
> 
>
> ###
> # Auto configuration for the /tute6 context ends.
> ###
>






> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> 
>
>
>tomcat
>
>
>   
>protect
>   /form/protected.jsp
>   
>
>   TESTAPPROLE
>   tomcat
>
>
>
>
>
>   tute6
>   /tute6/servlet/*
>
>
>
>   
>  My Protected Area
>  /form/*
>  DELETE
>  GET
>  POST
>  PUT
>   
>   
>  tomcat
>   
>
>
>
>   FORM
>   Form Based Authentication
>
>   /secure/login.jsp
>   /secure/error.html
>   
>
>
> 
>




RE: stress test

2001-06-11 Thread altuga

hi ? 
what kind of testing tool or tools are you suggesting ?


-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 4:24 PM
To: [EMAIL PROTECTED]
Subject: RES: stress test


-BEGIN PGP SIGNED MESSAGE-

First of all,
what does "spare-treads" mean?
Secondly,
there are 2 very important parameters that should be configurated: delay and
threads - and 1 important concept: each new group will begin after the prior
one ends. So, you should have enough CPU and memory to allow multithreads.
Finally, if you are testing a web page, this kind of tool (in general)
doesnt simulate the real overhead.

Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 08:19
Para:   [EMAIL PROTECTED]
Assunto:stress test

Hi all 

i am testing tomcat with using  "ap"  which comes with apache

what is ideal test case , ? for example 1000 user , 7 concurrent is ideal ?


and while i am testing tomcat sometimes it  uses %98 cpu and never gives it
back ..
i configured my server.xml like that 
 



any idea ? 


regards .. 
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
Eo7s29sLgL8=
=xzb+
-END PGP SIGNATURE-



Re: jspc and deployment

2001-06-11 Thread FRED

Hi Randy,

Thank you for your reaction. I got it working. This will save me a lot
of time and will make my application more scalable.

Sophie

Randy Layman schreef:

> The answer is you can't.  Even if you could get it to generate the
> file names correctly, Tomcat still wouldn't use them.  What you need to do
> is to use jspc with the option that produces a web.xml file.  You then need
> to incorporate that with your web.xml file, compile the .java files, and you
> will have a webapp made up of exclusively servlets (and static content) - no
> more JSP to compile.
>
> Randy
>
> > -Original Message-
> > From: Joost en Sooophie [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 09, 2001 1:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: jspc and deployment
> >
> >
> > Hi,
> >
> > My problem is the following:
> >
> > I am working on an EJB application. I want to pre-compile all the
> > jsp-pages before making the application available on the internet
> > (and someone clicking on the page, experiencing quite some delay).
> >
> > When the jsp MyJSP.jsp is compiled with jspc in Tomcat, files
> > MyJSP.java
> > and MyJSP.class are placed in the /TOMCAT_HOME/work directory. But
> > when I start the application on the internet, it creates the files
> > xxxMy_yyyJSP.java
> > and xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory.
> >
> > How can I configure jspc, so that it creates the files
> > xxxMy_yyyJSP.java and
> > xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory?
> >
> > Any answer or information or documentation is much appreciated.
> >
> > Sophie
> >
> >




class not found error on include

2001-06-11 Thread Luba Powell

Keep getting:
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for
JSPc:\tomcat4\work\localhost\myapp\javabean\counter_jsp.java:3: Class
javabean.Counter not found in import.
import javabean.Counter;
   ^
1 error


What folder do I need to put my class in order to import this class
into JSP page:

<%@ page language="java" %><%@ page import="javabean.Counter" %>


Thanks.
Luba




Re: multiple domain names on same IP

2001-06-11 Thread Luke P. Immes



Members,
Hello. Does anyone know or has tried to 
have multiple domain names on the same IP.
servlet.xml mentions virtual hosts 
(commented out):
 

 
I would rather not hack a solution, it 
is better to know exactly what the specificcation means.
For example: 
 
Can the hostname string be symbolic, 
e.g. 
 
One would expect serveral hostname 
(virtual) declarations...


 
Any help would be greatly appreciated. 
Thanks.
 
Regards,
Luke P. Immes
www.multisegment.com
508 842 1033
508 579 2683    
cell
 
 
 
 


RE: Tomcat and IIS revisited!

2001-06-11 Thread Randy Layman



> -Original Message-
> From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 9:54 AM
> To: 'Tomcat-User (E-mail)
> Subject: Tomcat and IIS revisited!
> 
> 
> Ok well I have made some progress this morning.  I now how 
> the green up
> arrow for the ISAPI filter.  I am so excited.  Now I just 
> have a couple more
> questions.  Does it matter what the home directory is for my 
> IIS web server?
> I did put in a virtual directory for jakarta.  Now when I go to
> 
> http://localhost/examples/jsp/index.html
> 
> it asks for the uname and passwd for that directory.  If I put in the
> correct information I get "Cannot Find Server."  Every time a 
> request is
> made for the site I get two entries in the ISAPI.log file.  
> An ISAPI_Close
> and an ISAPI_free.  There is a little more on each line but 
> that is about
> it.  I have seen nothing in my ISS logs referring to jakarta 
> or the GET
> "/jakarta/isapi_redirect.dll"
> 
> One of my other questions is...  Do I start the Tomcat Server 
> in conjunction
> with the IIS.  I have tried it both ways and still no 
> success.  I would
> assume that it has to be running being that is the whole Java 
> part of this
> whole thing.
> 
> Thank you for you help!!
> 
> -Matt Winer
> 

First, Tomcat must be started before you begin requesting
JSP/servlets.  Otherwise, you will get a 500 (Internal Server) error.  It
doesn't matter, however if you stop and start Tomcat again without starting
IIS - the filter can deal with it.

Second, it sounds like you have the ISAPI debugging set pretty high.
This is probably good for production but not debugging.  I would suggest
changing the debugging level to DEBUG in the registry and then restart IIS
(the process, not instance)

Lastly, if you are getting the IIS username/password prompt then its
because you have restricted access to the virtual directory.  Check your
directory permissions in both the NT File Explorer and the IIS console - you
must have public (anonymous) execute permissions for things to work.

Randy



Tomcat and IIS revisited! (update)

2001-06-11 Thread Winer, Matthew

I changed in the registry the logging to debug and this is what my log file
looked like for one request to http://localhost/examples/jsp/index.html

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[jk_uri_worker_map.c (176)]: Into jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (327)]: Into jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_worker.c (109)]: Into wc_close
[jk_worker.c (111)]: wc_close, done
[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 2
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp12 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp12 was added
[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 2 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 2 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is localhost:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker 
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (710)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (385)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (398)]: In jk_worker_t::validate for worker ajp13 contact
is localhost:8009
[jk_ajp13_worker.c (424)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done



Tomcat and IIS revisited!

2001-06-11 Thread Winer, Matthew

Ok well I have made some progress this morning.  I now how the green up
arrow for the ISAPI filter.  I am so excited.  Now I just have a couple more
questions.  Does it matter what the home directory is for my IIS web server?
I did put in a virtual directory for jakarta.  Now when I go to

http://localhost/examples/jsp/index.html

it asks for the uname and passwd for that directory.  If I put in the
correct information I get "Cannot Find Server."  Every time a request is
made for the site I get two entries in the ISAPI.log file.  An ISAPI_Close
and an ISAPI_free.  There is a little more on each line but that is about
it.  I have seen nothing in my ISS logs referring to jakarta or the GET
"/jakarta/isapi_redirect.dll"

One of my other questions is...  Do I start the Tomcat Server in conjunction
with the IIS.  I have tried it both ways and still no success.  I would
assume that it has to be running being that is the whole Java part of this
whole thing.

Thank you for you help!!

-Matt Winer



RES: stress test

2001-06-11 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

First of all,
what does "spare-treads" mean?
Secondly,
there are 2 very important parameters that should be configurated: delay and
threads - and 1 important concept: each new group will begin after the prior
one ends. So, you should have enough CPU and memory to allow multithreads.
Finally, if you are testing a web page, this kind of tool (in general)
doesnt simulate the real overhead.

Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 11 de Junho de 2001 08:19
Para:   [EMAIL PROTECTED]
Assunto:stress test

Hi all 

i am testing tomcat with using  "ap"  which comes with apache

what is ideal test case , ? for example 1000 user , 7 concurrent is ideal ?


and while i am testing tomcat sometimes it  uses %98 cpu and never gives it
back ..
i configured my server.xml like that 
 



any idea ? 


regards .. 
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOyTvmd0YhuJ3BUxtAQFZJQP/czJ45GXaKV+oMMLx4Bpfly2j/q0bXzNI
B719dvPKCu+BmB5qmTM4rayKd4qVZGCK+kZSyMSUgqv9RHnOeGcSFywS9MVbRhv7
hXzRneAFWWSPAEsWPOWdzYUdY8hlkm3e9X7T+btPNWHRvNrEAPqIwifUGl4vGGxG
Eo7s29sLgL8=
=xzb+
-END PGP SIGNATURE-



Re: j_security_check

2001-06-11 Thread P.Miller

Hi Mark,

I send you attached the parts of mod_jk.conf , web.xml which works for
me;
belonging to directory structure 
c:\tomcat\webapps\tute6\form\protected.jsp
c:\tomcat\webapps\tute6\secure\login.jsp & error.html
c:\tomcat\webapps\tute6\WEB-INF\web.xml

set   

in your server.xml so you can see if there are any mod_jk errors while
invoking tomcat.

Hth

Peter

ÿþ# The following line makes apache aware of 
the location of the /tute6 context

#

Alias /tute6 "C:/tc/webapps/tute6"

<Directory "C:/tc/webapps/tute6">

    Options Indexes FollowSymLinks

</Directory>



#

# The following line mounts all JSP files 
and the /servlet/ uri to tomcat

#

JkMount /tute6/servlet/* ajp13

JkMount /tute6/*.jsp ajp13

JKMount /tute6/form/*.jsp ajp13

JKMount /tute6/secure/j_security_check 
ajp13

#

# The following line prohibits users from 
directly accessing WEB-INF

#

<Location "/tute6/WEB-INF/">

    AllowOverride None

    deny from all

</Location>

#

# Use Directory too. On Windows, Location 
doesn't work unless case matches

#

<Directory "C:/tc/webapps/tute6/WEB-INF/">

    AllowOverride None

    deny from all

</Directory>



#

# The following line prohibits users from 
directly accessing META-INF

#

<Location "/tute6/META-INF/">

    AllowOverride None

    deny from all

</Location>

#

# Use Directory too. On Windows, Location 
doesn't work unless case matches

#

<Directory 
"C:/tc/webapps/tute6/META-INF/">

    AllowOverride None

    deny from all

</Directory>



#######################################################


# Auto configuration for the /tute6 
context ends.

#######################################################





http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


   
   
   tomcat
   

  
   protect
  /form/protected.jsp
  
   
  TESTAPPROLE   
  tomcat

 

   
   
  tute6
  /tute6/servlet/*


   
  
 My Protected Area
 /form/*
 DELETE
 GET
 POST 
 PUT
  
  
 tomcat
  
   
   
   
  FORM
  Form Based Authentication
   
  /secure/login.jsp
  /secure/error.html
   






Where do you deploy JSPs used in Servlet forward()?

2001-06-11 Thread Edilmar Alves

Hi,

I have an application with a Servlet command processor
and business logic, and many JSPs for user interface.

When I'm using JBuilder 4 Ent + Tomcat 3.2.1 to run
the app, all works fine. The Web Server is NT4 +
Apache 1.3.12 and Tomcat is running on port 8080.

However, when I try to deploy for a directory tree like
this, the JSPs are not found:
\ecommerce (HTMLs)
\ecommerce\images (GIFs/JPGs)
\ecommerce\web-inf (web.xml)
\ecommerce\lib (servlet JAR file)
where do I put the JSPs?
I tried at:
\ecommerce
\ecommerce\web-inf
\ecommerce\web-inf\lib
and none of them work.

If I put the URL:
http://localhost:8080/ecommerce/onefile.jsp
it works, but if I put this path on servlet forward(),
it doesn't work.





Making over Half Million Dollars every 4 to 5 Months from your Home!!!

2001-06-11 Thread Sarah




AS SEEN ON NATIONAL TV:Making over Half Million Dollars 
every 4 to 5 Months from your Home for an investment of only$25 U.S. Dollars 
expense one timeTHANK'S TO THE COMPUTER AGE AND THE 
INTERNET!==BE A 
MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!!Before you say ''Bull'', please read 
the following.This is the letter you have been hearing about on the news 
lately. Due to the popularityof this letter on the Internet, a national 
weekly news program recently devoted an entireshow to the investigation of 
this program described below, to see if it really can makepeople money. The 
show also investigated whether or not the program was legal. Their 
findingsproved once and for all that there are ''absolutely NO Laws 
prohibiting the participation inthe program and if people can follow the 
simple instructions, they are bound to make somemega bucks with only $25 out 
of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY& RESPECT THIS 
PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER.This is 
what one had to say: ''Thanks to this profitable opportunity. I was approached 
many times beforebut each time I passed on it. I am so glad I finally joined 
just to see what one could expectin return for the minimal effort and money 
required. To my astonishment, I receivedtotal $610,470.00 in 21 weeks, with 
money still coming in." Pam Hedland, Fort Lee, New 
Jersey.===Here is 
another testimonial: "This program has been around for a long time but I never 
believedin it. But one day when I received this again in the mail I decided 
to gamble my $25 on it. Ifollowed the simple instructions and 3 weeks later 
the money started to come in.First month I only made $240.00 but the 
next 2 months after that I made a total of $290,000.00.So far, in the past 8 
months by re-entering the program, I have made over $710,000.00 and I 
amplaying it again. The key to success in this program is to follow the 
simple steps and NOT changeanything.'' More testimonials later but 
first,= PRINT THIS NOW FOR YOUR FUTURE REFERENCE 
==$If 
you would like to make at least $500,000 every 4 to 5 months easily And 
comfortably, pleaseread the following...THEN READ IT AGAIN and 
AGAIN!!!$FOLLOW 
THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME 
TRUE,GUARANTEED!INSTRUCTIONS:=Order all 5 reports shown 
on the list below =For each report, send $5 CASH, THE NAME & 
NUMBER OF THE REPORT YOU ARE ORDERING andYOUR E-MAIL ADDRESS to the person 
whose name appears ON THAT LIST next to the report.MAKE SURE YOUR RETURN 
ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any 
mailproblems.=== When you place your order, make sure you order each 
of the 5 reports.You will need all 5 reports so that you can save them 
on your computer and resell them.YOUR TOTAL COST $5 X 
5=$25.00.Within a few days you will receive, vie e-mail, each of the 5 
reports from these 5 different individuals.Save them on your computer so 
they will be accessible for you to send to the 1,000's of peoplewho will 
order them from you. Also make a floppy of these reports and keep it on your 
desk incase something happen to your computer.IMPORTANT - DO NOT 
alter the names of the people who are listed next to each report, ortheir 
sequence on the list, in any way other than what is instructed below in 
step'' 1 through 6 '' or you will lose out on majority of your profits. Once 
you understandthe way this works, you will also see how it does not work if 
you change it. Remember, thismethod has been tested, and if you alter, it 
will NOT work !!! People have tried to put theirfriends/relatives names on 
all five thinking they could get all the money. But it does notwork this 
way. Believe us, we all have tried to be greedy and then nothing happened. So Do 
Nottry to change anything other than what is instructed. Because if you do, 
it will not work foryou. Remember, honesty reaps the reward!!!1 
After you have ordered all 5 reports, take this advertisement and REMOVE 
thename & address of the person in REPORT # 5. This person has made it 
through the cycle andis no doubt counting their fortune.2 Move the 
name & address in REPORT # 4 down TO REPORT # 5.3 Move the name 
& address in REPORT # 3 down TO REPORT # 4.4 Move the name & 
address in REPORT # 2 down TO REPORT # 3.5 Move the name & address 
in REPORT # 1 down TO REPORT # 26 Insert YOUR name & address in the 
REPORT # 1 Position.PLEASE MAKE SURE you copy every name & address 
ACCURATELY!== 
Take this entire letter, with the modified list of names, and save it on your 
computer.DO NOT MAKE ANY OTHER CHANGES.Save this on a disk as well just 
in case you lose any data. To assist you wit

Re: j_security_check

2001-06-11 Thread Mark Muffett



Thanks, but it makes no difference.  Is there 
any easy way to be sure that my mod_jk.conf is being used?
 
Mark

  - Original Message - 
  From: 
  Pae 
  Choi 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, June 11, 2001 1:11 PM
  Subject: Re: j_security_check
  
  Try action="/VP/j_security_check" while assuming 
  that the rest of the
  setup is correct.
   
   
  Pae
   
  
I've read everything I can find on the list, and in 
the documentation and I still can't get "FORM" authentication to 
work.
 
I'm using tomcat 3.2.2.  I'm accessing Tomcat 
directly (via port 8080) - I've turned Apache off to make sure that 
it doesn't get in the way.
 
Tomcat correctly redirects to my login page, but then 
pressing submit gets the message "The page cannot be 
found" & it's looking for a page called j_security_check.  I 
have:
 
form method="POST" action="j_security_check" 
>
 Username: 
Password: etc
 
in my login.jsp.
 
I've put 
JkMount  /VP/j_security_check * ajp13
in my mod_jk.conf (in $TOMCAT_HOME/conf/ - but I don't know whether 
Tomcat is reading it).
 
Any ideas?
 
Many thanks
 
Mark Muffett


RE: Problems with Tomcat/IIS5

2001-06-11 Thread Randy Layman


The problem is with your Tomcat configuration - AJP12 is reading a
404 from the connector (about 1/2 way through your log entry).  Check out
your Tomcat configuration, specifically look that /conference is either a
webapp or a directory from the ROOT context, but the Tomcat logs should give
you more information about what is going wrong.

Randy


> -Original Message-
> From: Hamish Barney [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 8:12 AM
> To: '[EMAIL PROTECTED]'
> Subject: Problems with Tomcat/IIS5
> 
> 
> Just wondering if anyone else has had the same experience and 
> if they were
> able to resolve it.
> 
> Trying to get Tomcat 3.2.1 working with IIS5 but I seem to 
> have issues with
> the ISAPI redirector. I've used exactly the same 
> configuration with IIS4 on
> a different machine and it works perfectly. However I always 
> get a 404 error
> when I try to request files when I try with IIS5. I used the 
> same file to
> create both sets of registry settings and as the same
> uriworkermap.properties file on both machines.
> 
> The log from the isapi redirector is shown below. It appears 
> to find the
> jsp, contact.jsp that is requested but still sends back a 404 
> error. Is
> anyone aware of any differences between IIS4 and IIS5 that 
> might produce an
> error like this your help would be greatly appreciated.
> 
> Thanks,
> Hamish
> 
> 
> --ISAPI Redirector Log-
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /conference/contact.jsp
> [jk_uri_worker_map.c (344)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/conference/contact.jsp] is a
> servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/conference/contact.jsp]
> is points to the web-inf directory
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /jakarta/isapi_redirect.dll
> [jk_uri_worker_map.c (344)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (434)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done
> without a match
> [jk_isapi_plugin.c (452)]: HttpFilterProc 
> [/jakarta/isapi_redirect.dll] is
> not a servlet url
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/jakarta/isapi_redirect.dll] is points to the web-inf directory
> [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for 
> name ajp12
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1296
> [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
> [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
> [jk_connect.c (140)]: jk_open_socket, return, sd = 1296
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 1296
> [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
> [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the 
> ajp12 start
> sequence
> [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
> [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the 
> terminating
> mark
> [jk_ajp12_worker.c (472)]: ajpv12_handle_request done
> [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
> [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response
> [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
> Status: 404 Not
> Found
> [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read 
> Status=404 Not Found
> [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type:
> text/html
> [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
> Content-Type=text/html
> [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating 
> header arrays
> [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
> Content-Length: 201
> [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read 
> Content-Length=201
> [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
> Servlet-Engine:
> Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; 
> Windows 2000
> 5.0 x86; java.vendor=Sun Microsystems Inc.)
> [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
> Servlet-Engine=Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; 
> Java 1.3.0_02;
> Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
> [jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done
> [jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response
> [jk_isapi_plugin.c (201)]: Into jk_ws_service_t::start_r

  1   2   >