MySQL Driver Problem on Win 2k

2001-04-23 Thread Evdin Ursan

Hi All,


Thank you for your answers until now. I have one more problem!
I have MySQL 3.23.XXX installed on a Win 2000 system and I have TOMCAT
3.2.1 running with no problems! If I start TOMCAT SERVICE and I try to
connect throw a JSP page, I got an error like org.gjt.mm.etc driver
not found, but if I start TOMCAT manualy, I a have no problem!

The org\gjt\mm\mysql\... subdir tree it's in a directory called JDBC and
I've added c:\JDBC in my CLASSPATH. 

What's wrong?


Evdin



RE: MySQL Driver Problem on Win 2k

2001-04-23 Thread Warren Crossing

sorry cant chat!!  but add the .jar file to the /tomcat/server/lib
directory.. its the classpath classloader location.  

-Original Message-
From: Evdin Ursan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: MySQL Driver Problem on Win 2k


Hi All,


Thank you for your answers until now. I have one more problem!
I have MySQL 3.23.XXX installed on a Win 2000 system and I have TOMCAT
3.2.1 running with no problems! If I start TOMCAT SERVICE and I try to
connect throw a JSP page, I got an error like org.gjt.mm.etc driver
not found, but if I start TOMCAT manualy, I a have no problem!

The org\gjt\mm\mysql\... subdir tree it's in a directory called JDBC and
I've added c:\JDBC in my CLASSPATH. 

What's wrong?


Evdin



apache tomcat test environment in visual age

2001-04-23 Thread Patrick . Pierra

Hi

I use Apache Tomcat Test Environment 3.1 in  Visual Age 3.5. I dont know
why but until now when I'm running a JSP (in my browser) i could seen the
servlet code in a package (which call JSP default page compiler) in the the
Visual Age Workspace (very useful for debbuging). But now I can' t retrieve
any servlet code in the VA workspace

Any explication...

(I don't now if it's reliable but I've just setup IE5.5, before I've used
IE4)

Patrick PIERRA




Re: file upload servlet

2001-04-23 Thread Christoph Kukulies

On Sun, Apr 22, 2001 at 12:40:54PM -0700, Anne Dirkse wrote:
 Christoph --
 You do need the trailing = after %
 Here's why:
 What you are trying to send from your HTML form is something like this:
 
 form enctype=multipart/form-data action=/servlets/servlet/Upload
 method=post
 input type=file name=FileData value= size=52 maxlength=255
 input type=submit value=Abschicken
 /form
 
 The %= % is a jsp Expression, which means that the value of whatever
 is in it will be converted to a String and then printed out. Since this
 is done before the HTML is processed, what you get is something like in
 the above example.

Thinking about it the question came up in me: Shouldn't tomcat
process the HTML and the jsp expression? With my configuration
(apache+ tomcat), could it be that the apache server handles the
HTML and cannot cope with the jsp? And, if the latter is the case,
how can I overcome the situation?

 As you have it below, with % %, you are not ever actually including
 the value of your encoded URL into your form.
 It's just a scriptlet, which will actually encode your URL, but to no
 avail, since it has no explicit String conversion or printout
 capabilities and thus won't be a part of your form.
 
 all the %= response.encodeURL(/path/to/Servlet) % is doing is
 rewriting your URL to include session data if cookies are not enabled.
 For a first shot at it, you might want to consider just building a set
 of tags like I included above and making sure that works (make sure you
 have cookies enabled, though!) After you have that working, it might be
 a lot easier to get your session encoding working, conceptually. 
 
 What the leftover method=post signals to me is that somewhere you are
 closing the form tag before this part of it, i.e., that the browser
 encounters a  before it encounters method=post and thus assumes that
 the form tag has been completed and that method=post is regular text
 to be printed to the browser window.
 
 Hope that helps,
 Anne
 
-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Apache+mod_ssl

2001-04-23 Thread subbu

Hai,How to use MOD_SSL with apache for win32 plat form..
subbu





SV: MySQL Driver Problem on Win 2k

2001-04-23 Thread Paul Kofon

Hi,

I had the same problem when I had to run Tomcat as a Win2K service. In fact 
I posted the problem here but I didn't get any satisfactory answers until 
went to the docs. Now here's what you do:
1. Edit the wrapper.properties file found in the conf directory of your 
Tomcat installation.

2. Add a line like this:
wrapper.class_path=$(wrapper.tomcat_home)\lib\driver.jar
(where driver is the name of your MySQL driver). Make sure the jar file is 
located in the lib directory - it could be anywhere actually, but that is 
how mine is.

3. Make sure the wrapper.tomcat_home property is set correctly. Mine is: 
wrapper.tomcat_home=c:\jboss_tomcat\tomcat

4. Restart the Tomcat service.

That's it!

Paul


From: Warren Crossing [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: MySQL Driver Problem on Win 2k
Date: Mon, 23 Apr 2001 17:04:36 +1000

sorry cant chat!!  but add the .jar file to the /tomcat/server/lib
directory.. its the classpath classloader location.

-Original Message-
From: Evdin Ursan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: MySQL Driver Problem on Win 2k


Hi All,


Thank you for your answers until now. I have one more problem!
I have MySQL 3.23.XXX installed on a Win 2000 system and I have TOMCAT
3.2.1 running with no problems! If I start TOMCAT SERVICE and I try to
connect throw a JSP page, I got an error like org.gjt.mm.etc driver
not found, but if I start TOMCAT manualy, I a have no problem!

The org\gjt\mm\mysql\... subdir tree it's in a directory called JDBC and
I've added c:\JDBC in my CLASSPATH.

What's wrong?


Evdin

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Timeout issue

2001-04-23 Thread Shravan Shashikant

Hi there,
   I have a problem with a certain servlet code of mine which takes a lot
of time to execute.The problem is that since it takes a lot of time to
execute,the browser times out the servlet after say 5 minutes.I heard
somewhere that this can be remedied by using out.flush() for the output
stream;that didnt work and i learnt later that the problem is actually
with Apache which buffers output in 8k units.I was wondering whether this
setting could be changed or if there were any other solution to this
problem.I looked at certain threading issues but am generally
uncomfortable using the meta header and refreshing it every 10
seconds,till the thread of the task is completed.
  Also,found out that we can increase the timeout for the apache web
server by changing the httpd.conf file.But is there anyway to reduce the
output buffer size?
Thanks  Regards,
Shravan




Re: Timeout issue

2001-04-23 Thread Jon Barber

Hi Shravan,

I've recently had the same situation and we solved it thus :

Encapsulate the lengthy process in an object that implements Runnable, 
complete with an isFinished() call.  Start a seperate thread to execute this 
and place the object in the httpsession.  Send a page back to the user with, 
say, a 5 second refresh which updates the user on the status of the process.

It's not ideal, as it is a form of polling, but it gives the opportunity for 
user feedback.  We cached the last 5 processing times and could give an ETA 
to the user based on the mean.


Jon.

On Monday 23 April 2001 08:13, Shravan Shashikant wrote:
 Hi there,
I have a problem with a certain servlet code of mine which takes a lot
 of time to execute.The problem is that since it takes a lot of time to
 execute,the browser times out the servlet after say 5 minutes.I heard
 somewhere that this can be remedied by using out.flush() for the output
 stream;that didnt work and i learnt later that the problem is actually
 with Apache which buffers output in 8k units.I was wondering whether this
 setting could be changed or if there were any other solution to this
 problem.I looked at certain threading issues but am generally
 uncomfortable using the meta header and refreshing it every 10
 seconds,till the thread of the task is completed.
   Also,found out that we can increase the timeout for the apache web
 server by changing the httpd.conf file.But is there anyway to reduce the
 output buffer size?
 Thanks  Regards,
 Shravan



looking for jakarta-serveletapi

2001-04-23 Thread Djazia Mecheri


Good morning,

I'm installing jakarta-tomcat-3.2.1, and in the README file is writing:
download and install the Serveletapi distribution I couldn't find it
on the apache site.

Could you, please, tell me where can I fond it?

Thanks for your help.
Djazia.


Here is my e-mail: [EMAIL PROTECTED]





Re: Timeout issue

2001-04-23 Thread Shravan Shashikant

Thanks Jon,
  Well,I guess thats pretty much the only option unless I get the Apache
source code and make the changes and compile it!..I had a doubt over
here.How do you handle multiple users accessing the same servlet of
yours.I mean,at the same time if 2/more  users access your servlet and
consider for a moment that,what one person requires to be done from the
servlet is different from what the other person wants.basically if the
parameters are different,i dont see how you can handle multiple users
accessing the servlet and being provided the results they asked
for.Probably there is a way,but I'm ignorant here and would like to know
if and how its possible.
Regards,
Shravan

On Mon, 23 Apr 2001, Jon Barber wrote:

 Hi Shravan,
 
 I've recently had the same situation and we solved it thus :
 
 Encapsulate the lengthy process in an object that implements Runnable, 
 complete with an isFinished() call.  Start a seperate thread to execute this 
 and place the object in the httpsession.  Send a page back to the user with, 
 say, a 5 second refresh which updates the user on the status of the process.
 
 It's not ideal, as it is a form of polling, but it gives the opportunity for 
 user feedback.  We cached the last 5 processing times and could give an ETA 
 to the user based on the mean.
 
 
 Jon.
 
 On Monday 23 April 2001 08:13, Shravan Shashikant wrote:
  Hi there,
 I have a problem with a certain servlet code of mine which takes a lot
  of time to execute.The problem is that since it takes a lot of time to
  execute,the browser times out the servlet after say 5 minutes.I heard
  somewhere that this can be remedied by using out.flush() for the output
  stream;that didnt work and i learnt later that the problem is actually
  with Apache which buffers output in 8k units.I was wondering whether this
  setting could be changed or if there were any other solution to this
  problem.I looked at certain threading issues but am generally
  uncomfortable using the meta header and refreshing it every 10
  seconds,till the thread of the task is completed.
Also,found out that we can increase the timeout for the apache web
  server by changing the httpd.conf file.But is there anyway to reduce the
  output buffer size?
  Thanks  Regards,
  Shravan
 




AW: file upload servlet

2001-04-23 Thread Ralph Einfeldt

Look at the source code in the browser.

If you still see something like %= response ... %
in it you guess is right, otherwise not.

 -Ursprüngliche Nachricht-
 Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 23. April 2001 09:05
 An: [EMAIL PROTECTED]
 Betreff: Re: file upload servlet
 
 
 Thinking about it the question came up in me: Shouldn't tomcat
 process the HTML and the jsp expression? With my configuration
 (apache+ tomcat), could it be that the apache server handles the
 HTML and cannot cope with the jsp? And, if the latter is the case,
 how can I overcome the situation?
 



Re: Timeout issue

2001-04-23 Thread Endre Stølsvik

On Mon, 23 Apr 2001, Shravan Shashikant wrote:

| I had a doubt over here.How do you handle multiple users accessing the
| same servlet of yours.I mean,at the same time if 2/more users access
| your servlet and consider for a moment that,what one person requires
| to be done from the servlet is different from what the other person
| wants.basically if the parameters are different,i dont see how you can
| handle multiple users accessing the servlet and being provided the
| results they asked for.

Basically different threads, differnt stacks.. Each thread is executing
the function with it's own little memory-space, and thus each users have
their own rendering of the servlet. But if you use class fields
(variables) you'll get that problem (or feature, depends on what you
want)..

-- 
Mvh,
Endre





Re: file upload servlet

2001-04-23 Thread Christoph Kukulies

On Mon, Apr 23, 2001 at 10:11:08AM +0200, Ralph Einfeldt wrote:
 Look at the source code in the browser.
 
 If you still see something like %= response ... %
 in it you guess is right, otherwise not.

Yes, viewing the page source reveals:

html
form enctype=multipart/form-data action=%= 
response.encodeUrl(/servlets/servlet/Upload) % method=post
input type=file name=FileData value= size=52 maxlength=255
input type=submit value=Abschicken
/form   
/html

Now I need to know how to start tomcat as a sole webserver for everything,
html, jsp etc.

 
  -Ursprüngliche Nachricht-
  Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 23. April 2001 09:05
  An: [EMAIL PROTECTED]
  Betreff: Re: file upload servlet
  
  
  Thinking about it the question came up in me: Shouldn't tomcat
  process the HTML and the jsp expression? With my configuration
  (apache+ tomcat), could it be that the apache server handles the
  HTML and cannot cope with the jsp? And, if the latter is the case,
  how can I overcome the situation?
  

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: Timeout issue

2001-04-23 Thread Jon Barber

On Monday 23 April 2001 09:05, Endre Stølsvik wrote:
 Basically different threads, differnt stacks.. Each thread is executing
 the function with it's own little memory-space, and thus each users have
 their own rendering of the servlet. But if you use class fields
 (variables) you'll get that problem (or feature, depends on what you
 want)..


Using the HttpSession cache guarantee's that each user just gets the feedback 
appropriate for themselves.

Check out Jason Hunters book on Sevlets, as he ahs a good example calulating 
primes in the background, but this is visible to all users.

Jon.



sealing violation

2001-04-23 Thread gcs

Hello,

I am trying to deploy Tomcat 4.0b3 with Java 1.3. When I do startup.sh,
I get:
ERROR reading /usr/local/conf/server.xml
At Line 75 /Server/Service/Engine/ name=Standalone defaultHost=localhost
debug=0
 
Catalina.start: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

Searching the mail archive gave me a point, my jar files are symbolic
links to the real ones. Also, they contains /../, which seems to be
the problem(?). I have a very good reason to do it, so what I would like
to do, is turn off this security feature. Can you please tell me how to
do this?

Thanks,
Laszlo



Re: Apache mod_jk

2001-04-23 Thread Noel E. Lecaros


Hi, Anil
The JkExtractSSL directive can be found in the file tomcat/conf/mod_jk.conf-auto
which is a file that is automatically generated (or overwritten, if it
already exists) by Tomcat upon startup. However, in the automatically
generated file, the SSL directives are commented out, so you will need
to create your own mod_jk.conf file. You can use mod_jk.conf-auto
as a starting point for your customizations. You should then Include
your customized file somewhere in httpd.conf
Regards,
Noel Lecaros
Noone Anil Kumar wrote:
Hi,
I am configuring appache to support SSL with the help of
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html
.
But where in, the section :
Tomcat with Apache and mod_jk
started with
If you use Apache with SSL (apache-ssl or apache-mod_ssl), the apache
connector mod_jk will be able to forward to tomcat some SSL informations
if
JkExtractSSL directive is present in your httpd.conf.
But i don't see JkExtractSSL in httpd.conf ;
How should i go for it ???
Any help appreciated in configuring Apache 1.3.14 + Tomcat 3.1 on WinNT
for SSL ..
Thanks in advance,
Anil







Re: Apache+mod_ssl

2001-04-23 Thread Noel E. Lecaros

Hi, Subbu

Try this:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html

Regards,
Noel Lecaros

subbu wrote:

 Hai,How to use MOD_SSL with apache for win32 plat form..
 subbu




Rãspuns: MySQL Driver Problem on Win 2k

2001-04-23 Thread Evdin Ursan

Hi,


THANK YOU VERY MUCH! IT WORKED!


EVDIN

-Mesaj original-
De la: Paul Kofon [mailto:[EMAIL PROTECTED]]
Trimis: 23 aprilie 2001 10:50
Catre: [EMAIL PROTECTED]
Subiect: SV: MySQL Driver Problem on Win 2k


Hi,

I had the same problem when I had to run Tomcat as a Win2K service. In
fact 
I posted the problem here but I didn't get any satisfactory answers
until 
went to the docs. Now here's what you do:
1. Edit the wrapper.properties file found in the conf directory of
your 
Tomcat installation.

2. Add a line like this:
wrapper.class_path=$(wrapper.tomcat_home)\lib\driver.jar
(where driver is the name of your MySQL driver). Make sure the jar file
is 
located in the lib directory - it could be anywhere actually, but that
is 
how mine is.

3. Make sure the wrapper.tomcat_home property is set correctly. Mine
is: 
wrapper.tomcat_home=c:\jboss_tomcat\tomcat

4. Restart the Tomcat service.

That's it!

Paul


From: Warren Crossing [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: MySQL Driver Problem on Win 2k
Date: Mon, 23 Apr 2001 17:04:36 +1000

sorry cant chat!!  but add the .jar file to the /tomcat/server/lib
directory.. its the classpath classloader location.

-Original Message-
From: Evdin Ursan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: MySQL Driver Problem on Win 2k


Hi All,


Thank you for your answers until now. I have one more problem!
I have MySQL 3.23.XXX installed on a Win 2000 system and I have TOMCAT
3.2.1 running with no problems! If I start TOMCAT SERVICE and I try to
connect throw a JSP page, I got an error like org.gjt.mm.etc
driver
not found, but if I start TOMCAT manualy, I a have no problem!

The org\gjt\mm\mysql\... subdir tree it's in a directory called JDBC
and
I've added c:\JDBC in my CLASSPATH.

What's wrong?


Evdin


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.




Re: looking for jakarta-serveletapi

2001-04-23 Thread Sebastian Hauer


Hi Djazia,

check out:

http://java.sun.com/products/servlet/download.html

Sebastian

Djazia Mecheri wrote:
 
 Good morning,
 
 I'm installing jakarta-tomcat-3.2.1, and in the README file is writing:
 download and install the Serveletapi distribution I couldn't find it
 on the apache site.
 
 Could you, please, tell me where can I fond it?
 
 Thanks for your help.
 Djazia.
 
 Here is my e-mail: [EMAIL PROTECTED]



RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Saurabh Shukla

which JDK are you using ? 

Shuklix

-Original Message-
From: Georges Boutros [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: to many tomcat processes!! AAH!!


does anyone know how can i force java to use green threads?

thanks

-Original Message-
From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 8:31 PM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hi,

maybe the many processes are because jdk1.2 and up use native threads
(AFAIK, 1.1 used green threads, i. e. a threading package implemented
in java itself).

With 1.2+, every java thread is a native OS thread and therefor gets
listed by ps. Have you tried forcing java to use green threads? I'm
quite sure that it is possible (RTFM).

-- 
Best regards,

Ansgar W. Konermann
eMail: [EMAIL PROTECTED]

--- Hello, I am a message footer. -



Changing DocumentRoot

2001-04-23 Thread Christoph Kukulies

After having noticed that embedded jsp statements *could* work
with my configuration where apache was serving http requests
while tomcat was only doing the servlets I want to switch to tomcat
as the sole webserver. At least here in a small intranet environment
I think I could afford. Don't know if tomcat can sustain heavy
load in Internet environment though and if it's fast enough
compared to apache.

Anyway, I figured out that I only had to change the port value of the
HttpConnection Handler from 8080 to 80.

But how can I change the DocumentRoot to point to /usr/locaol/www/data
(where my apache server had it's root) while maintaining the 
servlets under $TOMCAT_HOME/webapps?

Simply creating a symbolic link in the filesystem of the server
wouldn't work, would it?


-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]




Re: Changing DocumentRoot

2001-04-23 Thread Christoph Kukulies

On Mon, Apr 23, 2001 at 12:49:18PM +0200, Christoph Kukulies wrote:
 After having noticed that embedded jsp statements *could* work
^^^
Ack, that should read *couldn't have worked, of course.

 with my configuration where apache was serving http requests
 while tomcat was only doing the servlets I want to switch to tomcat
 as the sole webserver. At least here in a small intranet environment
 I think I could afford. Don't know if tomcat can sustain heavy
 load in Internet environment though and if it's fast enough
 compared to apache.
 
 Anyway, I figured out that I only had to change the port value of the
 HttpConnection Handler from 8080 to 80.
 
 But how can I change the DocumentRoot to point to /usr/locaol/www/data
 (where my apache server had it's root) while maintaining the 
 servlets under $TOMCAT_HOME/webapps?
 
 Simply creating a symbolic link in the filesystem of the server
 wouldn't work, would it?
 
 
 -- 
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



SSL detection

2001-04-23 Thread Sam Newman

I have Apache and Tomcat running together under SSL. I now want to create a
page which only run under SSL. I want http and https to share the same
documents however. My first idea is to simply have a tag handler, which
detects the protocol, and if not SSL is simply redirects to a page explaning
why they cannot view the requested document.
By problem is that I'm not sure on the correct way to retrieve what type of
protocol is being used. There is a getAuthType method in HttpServletRequest,
but the return type is simply a string (e.g. BASIC or SSL). My concern
is that this return could vary from browser to browser. Can I assume that if
using SSL the return will always be the string SSL? Also, how can I detect
which level of encryption is being used? Ideally, I'd like to restrict users
to connecting using 128bit only, or at least issue a warning when its at
40bit.

Thanks in advance,

Sam




Re: file upload servlet

2001-04-23 Thread Christoph Kukulies

On Sun, Apr 22, 2001 at 12:40:54PM -0700, Anne Dirkse wrote:
 Christoph --
 You do need the trailing = after %
 Here's why:
 What you are trying to send from your HTML form is something like this:
 
 form enctype=multipart/form-data action=/servlets/servlet/Upload
 method=post
 input type=file name=FileData value= size=52 maxlength=255
 input type=submit value=Abschicken
 /form

I got your example (with the change to the direct servlet path
rather than the jsp expression) working now. Running tomcat as
a stanalone http/jsp server.

I had to change doGet to doPost btw. in my servlet.

 
 
 all the %= response.encodeURL(/path/to/Servlet) % is doing is
 rewriting your URL to include session data if cookies are not enabled.

-- 
--Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



IIS and Tomcat on different machines

2001-04-23 Thread dirk . stefer

Hello,

I have a serious problem about using the ISAPI redirector server plugin.

We want to use a UNIX machine as Tomcat server and a Windows Machine with
IIS as the WEB server.
We installed the hole Tomcat distribution an the UNIX machine and getting
results when accessing the WEB server on the UNIX machine. So I think it is
up and running.

The Problem is that we are not able to use the ISAP reditrector to serve
jsp-files on the Windows machine.
I installed the redirector like it is told in the Tomcat IIS HowTo:

1.) I installed a standard IIS on the NT Machine with SP6a.
2.) I just copied the 3 files isapi_redirect.dll (to
d:\jakarta-tomcat\bin\win32\i386), uriworkermap.properties and
workers.properties (both to d:\jakarta-tomcat\conf) to the Windows machine.
I did not copy the whole TOMCAT files to the server and I did not install a
JDK on the machine because Tomcat is completely installed on the UNIX
system.
3.) Then I configured the ISAPI redirecto with all the Registry-Keys etc.
4.) Then I copied the following files from the Tomcat release 3.2.1 to the
IIS Root: \jakarta-tomcat\doc\appdev\sample\web\*.*

When I try to call http://[Servername]/index.html I get the correct page.
But I get no result from the hello.jsp and therefore from the UNIX machine
with tomcat.

Can you help me by telling me how to setup the redirector correctly and
testing it.

 Thanks and best regards
 Dirk.
 
Diese Nachricht ist ausschließlich für den bezeichneten Adressaten oder dessen 
Vertreter bestimmt. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, 
Veröffentlichung, Vervielfältigung oder Weitergabe des Inhaltes der e-mail nicht 
gestattet ist. Sollten Sie nicht der vorgesehene Adressat dieser e-mail oder dessen 
Vertreter sein, so bitten wir Sie, sich mit dem Absender der e-mail in Verbindung zu 
setzen und anschließend diese e-mail und sämtliche Anhänge zu löschen.
---
This message is exclusively for the person addressed or their representative. Any form 
of the unauthorized use, publication, reproduction, copying or disclosure of the 
content of this e-mail is not permitted. If you are not the intended recipient of this 
message and its contents, please notify this sender immediately and delete this 
message and all its attachments subsequently.





Re: to many tomcat processes!! AAH!!

2001-04-23 Thread Wolle

Hei,
i use JDK 1.3

Saurabh Shukla wrote:

 which JDK are you using ?

 Shuklix

 -Original Message-
 From: Georges Boutros [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: to many tomcat processes!! AAH!!

 does anyone know how can i force java to use green threads?

 thanks

 -Original Message-
 From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hi,

 maybe the many processes are because jdk1.2 and up use native threads
 (AFAIK, 1.1 used green threads, i. e. a threading package implemented
 in java itself).

 With 1.2+, every java thread is a native OS thread and therefor gets
 listed by ps. Have you tried forcing java to use green threads? I'm
 quite sure that it is possible (RTFM).

 --
 Best regards,

 Ansgar W. Konermann
 eMail: [EMAIL PROTECTED]

 --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: SSL detection

2001-04-23 Thread Wolle

Hello,
you can check it with the methode request.isSecure,.
that will give you true or false, make shure you use the ajp13 protocol with
mod_jk.
I don't know how to get the detailed information about the protocol and the key.

Greetings,
Wolle

Sam Newman wrote:

 I have Apache and Tomcat running together under SSL. I now want to create a
 page which only run under SSL. I want http and https to share the same
 documents however. My first idea is to simply have a tag handler, which
 detects the protocol, and if not SSL is simply redirects to a page explaning
 why they cannot view the requested document.
 By problem is that I'm not sure on the correct way to retrieve what type of
 protocol is being used. There is a getAuthType method in HttpServletRequest,
 but the return type is simply a string (e.g. BASIC or SSL). My concern
 is that this return could vary from browser to browser. Can I assume that if
 using SSL the return will always be the string SSL? Also, how can I detect
 which level of encryption is being used? Ideally, I'd like to restrict users
 to connecting using 128bit only, or at least issue a warning when its at
 40bit.

 Thanks in advance,

 Sam

--




Re: SSL detection

2001-04-23 Thread Sam Newman

Many thanks for that. I was looking under get methods in the index so I
missed the isSecure one, d'oh!
Now all I have to do is to try and get the encryption strength.I think I
could do that with some client side java script though.

sam
- Original Message -
From: Wolle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 12:34 PM
Subject: Re: SSL detection


 Hello,
 you can check it with the methode request.isSecure,.
 that will give you true or false, make shure you use the ajp13 protocol
with
 mod_jk.
 I don't know how to get the detailed information about the protocol and
the key.

 Greetings,
 Wolle






apxs:Break: Command failed with rc=16777215

2001-04-23 Thread K.P.Majoor

Hi there,

After long searching, trying and investigating I have to say that I can
not figure it out. My last hope is you guys (girls) and I wonder if
someone knows the solution for this problem. I've seen many similar
problems, but none like this exactly.
My system:
Debian Linux, testing
Apache 3.19 compiled with DSO support
Binary tomcat 4.0 works fine !
Trying to install mod_jk.so from the source of tomcat-3.2.1
 And there is where my misery started
For some kind of odd reason apxs does not want to compile the mod_jk at
all.

I execute :

/usr/local/apache/bin/apxs -o mod_jserv.so -I/usr/java/include/linux
-I../jk -I/usr/java/include -c *.c ../jk/*.c

And this is the result:
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c mod_jk.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp12_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp13.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_ajp13_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_connect.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_jni_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_lb_worker.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_map.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_msg_buff.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_nwmain.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_pool.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_sockbuf.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_uri_worker_map.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_util.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
-I../jk -I/usr/java/include  -c ../jk/jk_worker.c
  -o mod_jserv.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o
jk_ajp12_worker.o mod_jk.o
apxs:Break: Command failed with rc=16777215

No matter what I try, ( remove apache, reconfigure and reinstall it for
example) I simply cannot get this piece of cake done. Seems like
nobody has troubles with it and if they have it, then the rc number is
almost never the same I remember Scott having a problem with it, but
couldn't find a solution altough he said he had a solution.

People, many thanks for helping me out with this one.
I'd like to connect apache and tomcat sooner or later!

Regards,

Klaas-Pieter




Re: apxs:Break: Command failed with rc=16777215

2001-04-23 Thread Benoit Jacquemont

I had the same problem some months ago.

In fact, all the object files have been compiled, now you just need to build 
the mod_jk.so from them:
Just go to the directory where the objects files are located and try:

gcc -shared -o mod_jk.so *.o

You will get a mod_jk.so file.

It worked for me very fine, so I hope it will be the same for you.

Benoît



 Hi there,

 After long searching, trying and investigating I have to say that I can
 not figure it out. My last hope is you guys (girls) and I wonder if
 someone knows the solution for this problem. I've seen many similar
 problems, but none like this exactly.
 My system:
 Debian Linux, testing
 Apache 3.19 compiled with DSO support
 Binary tomcat 4.0 works fine !
 Trying to install mod_jk.so from the source of tomcat-3.2.1
  And there is where my misery started
 For some kind of odd reason apxs does not want to compile the mod_jk at
 all.

 I execute :

 /usr/local/apache/bin/apxs -o mod_jserv.so -I/usr/java/include/linux
 -I../jk -I/usr/java/include -c *.c ../jk/*.c

 And this is the result:
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c mod_jk.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_ajp12_worker.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_ajp13.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_ajp13_worker.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_connect.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_jni_worker.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_lb_worker.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_map.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_msg_buff.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_nwmain.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_pool.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_sockbuf.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_uri_worker_map.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_util.c
 gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDED  -I/usr/local/apache/include -I/usr/java/include/linux
 -I../jk -I/usr/java/include  -c ../jk/jk_worker.c
   -o mod_jserv.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
 jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
 jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o
 jk_ajp12_worker.o mod_jk.o
 apxs:Break: Command failed with rc=16777215

 No matter what I try, ( remove apache, reconfigure and reinstall it for
 example) I simply cannot get this piece of cake done. Seems like
 nobody has troubles with it and if they have it, then the rc number is
 almost never the same I remember Scott having a problem with it, but
 couldn't find a solution altough he said he had a solution.

 People, many thanks for helping me out with this one.
 I'd like to connect apache and tomcat sooner or later!

 Regards,

 Klaas-Pieter



Re: apxs:Break: Command failed with rc=16777215

2001-04-23 Thread K.P.Majoor

It worked for me too!

Thanks a lot, unbelievable simple solution for what I thought already was
impossible.

Thanks again,

Klaas-Pieter

Benoit Jacquemont wrote:

 I had the same problem some months ago.

 In fact, all the object files have been compiled, now you just need to build
 the mod_jk.so from them:
 Just go to the directory where the objects files are located and try:

 gcc -shared -o mod_jk.so *.o

 You will get a mod_jk.so file.

 It worked for me very fine, so I hope it will be the same for you.

 Benoît




RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Saurabh Shukla


ok, open your java file, it is a shell script. (it should be in your
JAVA_HOME/bin/ )

look for this line
DEFAULT_THREADS_FLAG=native

change native to green .

ie now the DEFAULT_THREADS_FLAG=green

this should do the job. let me know if it does't/does works.

Regards,
Shuklix


-Original Message-
From: Wolle [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hei,
i use JDK 1.3

Saurabh Shukla wrote:

 which JDK are you using ?

 Shuklix

 -Original Message-
 From: Georges Boutros [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: to many tomcat processes!! AAH!!

 does anyone know how can i force java to use green threads?

 thanks

 -Original Message-
 From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hi,

 maybe the many processes are because jdk1.2 and up use native threads
 (AFAIK, 1.1 used green threads, i. e. a threading package implemented
 in java itself).

 With 1.2+, every java thread is a native OS thread and therefor gets
 listed by ps. Have you tried forcing java to use green threads? I'm
 quite sure that it is possible (RTFM).

 --
 Best regards,

 Ansgar W. Konermann
 eMail: [EMAIL PROTECTED]

 --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Craig O'Brien

I do not know why you would want to do this other then for testing but --
change your startup script for tomcat to include the option java -classic
  and you will be using green threads.  Be aware that it is now easier
to create a deadlock situation. I believe that it would be a big mistake to
deploy a system with green threads.  My system incorrectly reports that I am
using 217 meg of ram but that is incorrect, It is actually using 74 meg of
ram.(with tomcat running) Use gps for a more accurate reading. Pushing the
server hard during testing does not increase the ram used significantly.
(cpu usage reflects as you would expect)

All those processes that you are seeing are simply sleeping threads.  They
are NOT using any resources and are being incorrectly reported as consuming
processes.  This is the very compelling reason that you would want to use
java in the first place. Native multi-threading. You have a thread pool
ready to respond without the overhead of creating new processes on demand.

Good luck,
Craig

Let us know what you find out.

-Original Message-
From: Wolle [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 4:30 AM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hei,
i use JDK 1.3

Saurabh Shukla wrote:

 which JDK are you using ?

 Shuklix

 -Original Message-
 From: Georges Boutros [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: to many tomcat processes!! AAH!!

 does anyone know how can i force java to use green threads?

 thanks

 -Original Message-
 From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hi,

 maybe the many processes are because jdk1.2 and up use native threads
 (AFAIK, 1.1 used green threads, i. e. a threading package implemented
 in java itself).

 With 1.2+, every java thread is a native OS thread and therefor gets
 listed by ps. Have you tried forcing java to use green threads? I'm
 quite sure that it is possible (RTFM).

 --
 Best regards,

 Ansgar W. Konermann
 eMail: [EMAIL PROTECTED]

 --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]






RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Saurabh Shukla

Or you can do try thing also.

open the file  $Tomcat_home/bin/tomcat.sh

in there look for the word native , if there is any such thing change it to
green.(this is assuming that your tomcat start script specifies that it is
using native threads)

in the tomcat.sh file, the command line which runs tomcat looks something
like this.

$JAVACMD  -native -Xms64M -Xmx128M $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}
org.apache.tomcat.startup.Tomcat $@ 

or

make it $JAVACMD  -green -Xms64M -Xmx128M
$TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}  org.apache.tomcat.startup.Tomcat
$@ 

to use the green threads.

However too many java process should not be an issue to worry about, coz' in
green threads
all those processes are shown as a part of one process. Infact your
performance might deteriorate because of use of green threads. You can check
out the performance using
green threads and native threads and then decide if to use green or native
threads.

Shuklix



-Original Message-
From: Wolle [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hei,
i use JDK 1.3

Saurabh Shukla wrote:

 which JDK are you using ?

 Shuklix

 -Original Message-
 From: Georges Boutros [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: to many tomcat processes!! AAH!!

 does anyone know how can i force java to use green threads?

 thanks

 -Original Message-
 From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hi,

 maybe the many processes are because jdk1.2 and up use native threads
 (AFAIK, 1.1 used green threads, i. e. a threading package implemented
 in java itself).

 With 1.2+, every java thread is a native OS thread and therefor gets
 listed by ps. Have you tried forcing java to use green threads? I'm
 quite sure that it is possible (RTFM).

 --
 Best regards,

 Ansgar W. Konermann
 eMail: [EMAIL PROTECTED]

 --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: apxs:Break: Command failed with rc=16777215

2001-04-23 Thread Benoit Jacquemont

Really happy that worked for you.

But, anyway and just for information (;-) ), this solution comes directly 
from the mod_jk-howto.html file from the Jakarta project documentation...

Yes it's written in small characters, but it is written... ;-)

Extract from the mod_jk-howto.html:

 For Linux: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include 
-I/usr/local/jdk/include/linux -c *.c ../jk/*.c

Your build may fail because the object files from the ../jk directory have 
been compiled to the current directory, rather than their source directory. 
Running gcc -shared -o mod_jk.so *.o should finish the build.


Benoît

 It worked for me too!

 Thanks a lot, unbelievable simple solution for what I thought already was
 impossible.

 Thanks again,

 Klaas-Pieter

 Benoit Jacquemont wrote:
  I had the same problem some months ago.
 
  In fact, all the object files have been compiled, now you just need to
  build the mod_jk.so from them:
  Just go to the directory where the objects files are located and try:
 
  gcc -shared -o mod_jk.so *.o
 
  You will get a mod_jk.so file.
 
  It worked for me very fine, so I hope it will be the same for you.
 
  Benoît



Re: apxs:Break: Command failed with rc=16777215

2001-04-23 Thread K.P.Majoor

I cannot believe what I have done to myself, cuz I remember this from the
HOWTO very well. It seemed for me that this would be a problem in case the
../jk directory wasn't in the right place. But I admit (and right now feel
that I waisted my time... ) when I read it now, I certainly see what is meant.
Well, thanks for the efoort anyway.

Benoit Jacquemont wrote:

 Really happy that worked for you.

 But, anyway and just for information (;-) ), this solution comes directly
 from the mod_jk-howto.html file from the Jakarta project documentation...

 Yes it's written in small characters, but it is written... ;-)

 Extract from the mod_jk-howto.html:
 
  For Linux: apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include
 -I/usr/local/jdk/include/linux -c *.c ../jk/*.c

 Your build may fail because the object files from the ../jk directory have
 been compiled to the current directory, rather than their source directory.
 Running gcc -shared -o mod_jk.so *.o should finish the build.
 

 Benoît

  It worked for me too!
 
  Thanks a lot, unbelievable simple solution for what I thought already was
  impossible.
 
  Thanks again,
 
  Klaas-Pieter
 
  Benoit Jacquemont wrote:
   I had the same problem some months ago.
  
   In fact, all the object files have been compiled, now you just need to
   build the mod_jk.so from them:
   Just go to the directory where the objects files are located and try:
  
   gcc -shared -o mod_jk.so *.o
  
   You will get a mod_jk.so file.
  
   It worked for me very fine, so I hope it will be the same for you.
  
   Benoît




Re: to many tomcat processes!! AAH!!

2001-04-23 Thread Wolle

Thanks for all the Information,
i don't want to change it in green Threads, I would only knew what's goining on
with these Threads , and know I have these Information, thanks a lot !

Greetings,
Wolle

Craig O'Brien wrote:

 I do not know why you would want to do this other then for testing but --
 change your startup script for tomcat to include the option java -classic
   and you will be using green threads.  Be aware that it is now easier
 to create a deadlock situation. I believe that it would be a big mistake to
 deploy a system with green threads.  My system incorrectly reports that I am
 using 217 meg of ram but that is incorrect, It is actually using 74 meg of
 ram.(with tomcat running) Use gps for a more accurate reading. Pushing the
 server hard during testing does not increase the ram used significantly.
 (cpu usage reflects as you would expect)

 All those processes that you are seeing are simply sleeping threads.  They
 are NOT using any resources and are being incorrectly reported as consuming
 processes.  This is the very compelling reason that you would want to use
 java in the first place. Native multi-threading. You have a thread pool
 ready to respond without the overhead of creating new processes on demand.

 Good luck,
 Craig

 Let us know what you find out.

 -Original Message-
 From: Wolle [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 4:30 AM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hei,
 i use JDK 1.3

 Saurabh Shukla wrote:

  which JDK are you using ?
 
  Shuklix
 
  -Original Message-
  From: Georges Boutros [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 18, 2001 1:34 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: to many tomcat processes!! AAH!!
 
  does anyone know how can i force java to use green threads?
 
  thanks
 
  -Original Message-
  From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 8:31 PM
  To: [EMAIL PROTECTED]
  Subject: Re: to many tomcat processes!! AAH!!
 
  Hi,
 
  maybe the many processes are because jdk1.2 and up use native threads
  (AFAIK, 1.1 used green threads, i. e. a threading package implemented
  in java itself).
 
  With 1.2+, every java thread is a native OS thread and therefor gets
  listed by ps. Have you tried forcing java to use green threads? I'm
  quite sure that it is possible (RTFM).
 
  --
  Best regards,
 
  Ansgar W. Konermann
  eMail: [EMAIL PROTECTED]
 
  --- Hello, I am a message footer. -




database applets in Tomcat

2001-04-23 Thread Dana Marcusanu

This is a repost. I did not get any answer so far. I just want to specify
that I am using mm.mysql driver (2.0.4). Can someone help me? I don't know
why is looking for the database driver in the applet directory. Is it
because of the security of applets? What rights should I give to the
applet?

 I am using Tomcat version 3.2.1. I am trying to connect to a data base
 from an applet and I am getting the following error: 
 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/org/gjt/
 mm/mysql/Driver.class + null) null
 My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
 My applet is in:
 C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student
 
 What can I do to connect the database from the applet? Should I give
 some
 permissions? 
 
 Thanks, Dana Marcusanu
 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



AW: file upload servlet

2001-04-23 Thread Ralph Einfeldt

I had a little typo in my mail, the enclosing quotation 
marks where missing for the attribute action.
That's the corrected version:

html
  form enctype=multipart/form-data 
action=%= response.encodeUrl(/servlets/servlet/Upload) %
method=post
input type=file name=FileData value= size=52 maxlength=255
input type=submit value=Abschicken
  /form
/html

 -Ursprüngliche Nachricht-
 Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 22. April 2001 20:36
 An: [EMAIL PROTECTED]
 Betreff: Re: file upload servlet
 
 html
 form enctype=multipart/form-data action=%
  response.encodeUrl(/servlets/servlet/Upload)
 %
 method=post
 input type=file name=FileData value= size=52 maxlength=255
 input type=submit value=Abschicken
 /form
 /html



RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Johnathan Smith

Please get me off this list

--- Saurabh Shukla [EMAIL PROTECTED] wrote:
 
 ok, open your java file, it is a shell script. (it
 should be in your
 JAVA_HOME/bin/ )
 
 look for this line
 DEFAULT_THREADS_FLAG=native
 
 change native to green .
 
 ie now the DEFAULT_THREADS_FLAG=green
 
 this should do the job. let me know if it
 does't/does works.
 
 Regards,
 Shuklix
 
 
 -Original Message-
 From: Wolle [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 5:00 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!
 
 
 Hei,
 i use JDK 1.3
 
 Saurabh Shukla wrote:
 
  which JDK are you using ?
 
  Shuklix
 
  -Original Message-
  From: Georges Boutros
 [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 18, 2001 1:34 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: to many tomcat processes!! AAH!!
 
  does anyone know how can i force java to use green
 threads?
 
  thanks
 
  -Original Message-
  From: Ansgar W. Konermann
 [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 8:31 PM
  To: [EMAIL PROTECTED]
  Subject: Re: to many tomcat processes!! AAH!!
 
  Hi,
 
  maybe the many processes are because jdk1.2 and up
 use native threads
  (AFAIK, 1.1 used green threads, i. e. a
 threading package implemented
  in java itself).
 
  With 1.2+, every java thread is a native OS thread
 and therefor gets
  listed by ps. Have you tried forcing java to use
 green threads? I'm
  quite sure that it is possible (RTFM).
 
  --
  Best regards,
 
  Ansgar W. Konermann
  eMail: [EMAIL PROTECTED]
 
  --- Hello, I am a message footer.
 -
 
 --
 __
 Gruss,
 Wolle
 

---
   [EMAIL PROTECTED]
 
 


=
If your into Body For Life, check out
http://clubs.yahoo.com/clubs/bodyforlifestatenislandny

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Running non-HTTP GenericServlets

2001-04-23 Thread Matt Chamberlain

Hello,

I have recently started using Tomcat, and it's working great for all of my
HttpServlets.  I've also written a non-HTTP servlet (extending
GenericServlet), and I wasn't sure how to set this up in server.xml.
Basically, I just need all requests on port 2147 to come through to my
servlet, without being HTTP parsed (as a web application) etc.  I haven't
been able to find any information on this in the documentation.

Does anyone know how to set up Tomcat to work in this way?

Thanks very much for your help.

Best regards,

Matt
-- 
Matt Chamberlain
[EMAIL PROTECTED]



Re: file upload servlet

2001-04-23 Thread Christoph Kukulies

On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote:
 I had a little typo in my mail, the enclosing quotation 
 marks where missing for the attribute action.
 That's the corrected version:
 
 html
   form enctype=multipart/form-data 
 action=%= response.encodeUrl(/servlets/servlet/Upload) %
 method=post
 input type=file name=FileData value= size=52 maxlength=255
 input type=submit value=Abschicken
   /form
 /html


Hhmm. I took your corrected version and I can swear by the life of my Grandma
(God bless her) that I'm running tomcat as a standalone http server
and this is the 'view page source' :
html 
  form enctype=multipart/form-data   
action=%= response.encodeUrl(/servlets/servlet/Upload) % 
method=post  
input type=file name=FileData value= size=52 maxlength=255  
input type=submit value=Abschicken
  /form   
/html  

and I still get
 method=post 
(one more quote, though).

As said in another message of today (to Anne..), inserting the
Servletpath directly, works. But that would have worked with tomcat+apache
configuration anyway.

 
  -Ursprüngliche Nachricht-
  Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
  Gesendet: Sonntag, 22. April 2001 20:36
  An: [EMAIL PROTECTED]
  Betreff: Re: file upload servlet
  
  html
  form enctype=multipart/form-data action=%
   response.encodeUrl(/servlets/servlet/Upload)
  %
  method=post
  input type=file name=FileData value= size=52 maxlength=255
  input type=submit value=Abschicken
  /form
  /html

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: SSL detection

2001-04-23 Thread Jan Labanowski

The simpler way would be to put into httpd.conf the block


Directory /my/directory
Limit
   Order deny,allow
   Deny from all
/Limit
/Directory

In the HTTP section (before the SSL section in the httpd.conf)

and the block
Directory /my/directory
Limit
   Order deny,allow
   Allow from all
/Limit
/Directory

within the HTTPS section (within the SSL section of httpd.conf).
You may also need to define Alias, and to it by Location,
but try this first.


On Mon, 23 Apr 2001, Sam Newman wrote:

 I have Apache and Tomcat running together under SSL. I now want to create a
 page which only run under SSL. I want http and https to share the same
 documents however. My first idea is to simply have a tag handler, which
 detects the protocol, and if not SSL is simply redirects to a page explaning
 why they cannot view the requested document.
 By problem is that I'm not sure on the correct way to retrieve what type of
 protocol is being used. There is a getAuthType method in HttpServletRequest,
 but the return type is simply a string (e.g. BASIC or SSL). My concern
 is that this return could vary from browser to browser. Can I assume that if
 using SSL the return will always be the string SSL? Also, how can I detect
 which level of encryption is being used? Ideally, I'd like to restrict users
 to connecting using 128bit only, or at least issue a warning when its at
 40bit.
 
 Thanks in advance,
 
 Sam
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




Re: starting tomcat as a service

2001-04-23 Thread Mark Mynsted

Sounds like it can't find a class definition.  Check the classpath you assigned when 
you started the JVM as a service.
 [EMAIL PROTECTED] 4/23/2001 8:07:29 AM 
Hi,

I'm using Tomcat 3.2 on Windows 2000. It works fine when I start and stop it 
manually (with the scripts in /bin, I mean), but it doens't work as a service: 
I install the service, and just after I start it, stops again writting 
on /logs/jvm.stderr the following message:

---
java.lang.NoClassDefFoundError: de
Exception in thread main 
---

Any idea what my problem could be?

Thanks beforehand and best regards,
Iñaki Sáinz de Murieta


-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/ 






Problem mapping servlets to /servlets/*

2001-04-23 Thread Diego Castillo

Hi,

I am quite new to Tomcat and I have encountered problems in mapping servlets
to specific URLs. Basically, I want my servlets to be activated when invoked
through an URL that contains /servlets/* in addition to default /servlet/*.

I have added the following to my %TOMCAT_HOME%\conf\web.xml:

web-app
[...]
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/servlets/*
/url-pattern
/servlet-mapping
[...]
/web-app

This does not work. If I point to http://localhost/servlets/IsItWorking
instead of http://localhost/servlet/IsItWorking, Apache is not able to find
the appropriate page.

Any suggestions?

Regards,


Diego Castillo




Re: Changing DocumentRoot

2001-04-23 Thread Christoph Kukulies

On Mon, Apr 23, 2001 at 01:01:04PM -, Kenneth Westelinck wrote:
 Hi,
 
 
 Adding this to server.xml should solve your problem:
 
 Context path=/ docBase=/usr/local/www/data/

Thanks. I got the idea, although it required some 'fine work':

It conflicted with the 

 Context path= docBase=webapps/ROOT debug=0 reloadable=true 
/Context

which was already there. Also, / seems to be interpreted as .
The closing / didn't work either. Maybe it's a shortcut for
a closing /context and it was the duble definition for / resp 
which was causing a syntax error. (I'm a neophyte what xml is concerned).

 
 
 hope this helps,
 
 Kenneth Westelinck
 
 From: Christoph Kukulies [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Changing DocumentRoot
 Date: Mon, 23 Apr 2001 12:49:18 +0200 (CEST)
 
 After having noticed that embedded jsp statements *could* work
 with my configuration where apache was serving http requests
 while tomcat was only doing the servlets I want to switch to tomcat
 as the sole webserver. At least here in a small intranet environment
 I think I could afford. Don't know if tomcat can sustain heavy
 load in Internet environment though and if it's fast enough
 compared to apache.
 
 Anyway, I figured out that I only had to change the port value of the
 HttpConnection Handler from 8080 to 80.
 
 But how can I change the DocumentRoot to point to /usr/locaol/www/data
 (where my apache server had it's root) while maintaining the
 servlets under $TOMCAT_HOME/webapps?
 
 Simply creating a symbolic link in the filesystem of the server
 wouldn't work, would it?
 
 
 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
 
 
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- 
--Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



RE: sealing violation

2001-04-23 Thread CPC Livelink Admin


From what I have read on the list, this error is normally (99%) related to
having mixed versions of the servlet jar's in your class path.  Make sure
that you are not sharing the servlet.jar from a previous version of the spec
with the one distributed with tomcat.

-Original Message-
From: Boszormenyi GCS Laszlo [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 23, 2001 5:44 AM
To: [EMAIL PROTECTED]
Subject: sealing violation


Hello,

I am trying to deploy Tomcat 4.0b3 with Java 1.3. When I do startup.sh,
I get:
ERROR reading /usr/local/conf/server.xml
At Line 75 /Server/Service/Engine/ name=Standalone defaultHost=localhost
debug=0

Catalina.start: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

Searching the mail archive gave me a point, my jar files are symbolic
links to the real ones. Also, they contains /../, which seems to be
the problem(?). I have a very good reason to do it, so what I would like
to do, is turn off this security feature. Can you please tell me how to
do this?

Thanks,
Laszlo




RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread CPC Livelink Admin


From the 3.2.1 server.xml
!-- Non-standard invoker, for backward compat. ( /servlet/* )
 You can modify the prefix that is matched by adjusting the
 prefix parameter below.  Be sure your modified pattern
 starts and ends with a slash.

 NOTE:  This prefix applies to *all* web applications that
 are running in this instance of Tomcat.
  --
RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor
debug=0 prefix=/servlet/ /

So to add /servlets, you would need something like this in your server.xml :
RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor
debug=0 prefix=/servlets/ /


-Original Message-
From: Diego Castillo [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:42 AM
To: [EMAIL PROTECTED]
Subject: Problem mapping servlets to /servlets/*


Hi,

I am quite new to Tomcat and I have encountered problems in mapping servlets
to specific URLs. Basically, I want my servlets to be activated when invoked
through an URL that contains /servlets/* in addition to default /servlet/*.

I have added the following to my %TOMCAT_HOME%\conf\web.xml:

web-app
[...]
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/servlets/*
/url-pattern
/servlet-mapping
[...]
/web-app

This does not work. If I point to http://localhost/servlets/IsItWorking
instead of http://localhost/servlet/IsItWorking, Apache is not able to find
the appropriate page.

Any suggestions?

Regards,


Diego Castillo





AW: file upload servlet

2001-04-23 Thread Ralph Einfeldt

Obviously your file is not processed by the
JSP engine of tomcat.

Sorry to ask that, what's the name of the file
that contains your code ?

As I'm not using tomcat I can't tell you
which screws have to be driven to enable 
or disable jsp parsing on files with a 
given extension.

 -Ursprüngliche Nachricht-
 Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 23. April 2001 15:19
 An: [EMAIL PROTECTED]
 Betreff: Re: file upload servlet
 
 
 On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote:
  I had a little typo in my mail, the enclosing quotation 
  marks where missing for the attribute action.
  That's the corrected version:
  
  html
form enctype=multipart/form-data 
  action=%= 
 response.encodeUrl(/servlets/servlet/Upload) %
  method=post
  input type=file name=FileData value= size=52 
 maxlength=255
  input type=submit value=Abschicken
/form
  /html
 
 
 Hhmm. I took your corrected version and I can swear by the 
 life of my Grandma
 (God bless her) that I'm running tomcat as a standalone http server
 and this is the 'view page source' :
 html 
   form enctype=multipart/form-data   
 action=%= 
 response.encodeUrl(/servlets/servlet/Upload) % 
 method=post
   
 input type=file name=FileData value= size=52 
 maxlength=255  
 input type=submit value=Abschicken
   /form   
 /html  
 
 and I still get
  method=post 
 (one more quote, though).
 
 As said in another message of today (to Anne..), inserting the
 Servletpath directly, works. But that would have worked with 
 tomcat+apache
 configuration anyway.
 
  
   -Ursprüngliche Nachricht-
   Von: Christoph Kukulies 
[mailto:[EMAIL PROTECTED]]
  Gesendet: Sonntag, 22. April 2001 20:36
  An: [EMAIL PROTECTED]
  Betreff: Re: file upload servlet
  
  html
  form enctype=multipart/form-data action=%
   response.encodeUrl(/servlets/servlet/Upload)
  %
  method=post
  input type=file name=FileData value= size=52 maxlength=255
  input type=submit value=Abschicken
  /form
  /html

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: Problem mapping servlets to /servlets/*

2001-04-23 Thread Milt Epstein

On Mon, 23 Apr 2001, Diego Castillo wrote:

 Hi,

 I am quite new to Tomcat and I have encountered problems in mapping
 servlets to specific URLs. Basically, I want my servlets to be
 activated when invoked through an URL that contains /servlets/* in
 addition to default /servlet/*.

 I have added the following to my %TOMCAT_HOME%\conf\web.xml:

 web-app
 [...]
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /servlets/*
 /url-pattern
 /servlet-mapping
 [...]
 /web-app

 This does not work. If I point to
 http://localhost/servlets/IsItWorking instead of
 http://localhost/servlet/IsItWorking, Apache is not able to find the
 appropriate page.

I suspect the key point there is that *Apache* is not able to find the
appropriate page, i.e. it's not even getting to Tomcat.  The web.xml
files are only read by Tomcat.  My guess is you need to insert some
appropriate directives in the tomcat/apache conf file so that Apache
knows to pass these URLs to Tomcat in the first place.  What exactly
those are depends on which module you're using to connect Tomcat to
Apache (mod_jserv, mod_jk, mod_webapp).  Check the tomcat/apache conf
file you have now for samples.

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




Re: file upload servlet

2001-04-23 Thread Christoph Kukulies

On Mon, Apr 23, 2001 at 03:31:39PM +0200, Ralph Einfeldt wrote:
 Obviously your file is not processed by the
 JSP engine of tomcat.
 
 Sorry to ask that, what's the name of the file
 that contains your code ?

upload.html

Yikes! It should be upload.jsp, right? Oh oh. 

 
 As I'm not using tomcat I can't tell you
 which screws have to be driven to enable 
 or disable jsp parsing on files with a 
 given extension.
 
  -Ursprüngliche Nachricht-
  Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 23. April 2001 15:19
  An: [EMAIL PROTECTED]
  Betreff: Re: file upload servlet
  
  
  On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote:
   I had a little typo in my mail, the enclosing quotation 
   marks where missing for the attribute action.
   That's the corrected version:
   
   html
 form enctype=multipart/form-data 
   action=%= 
  response.encodeUrl(/servlets/servlet/Upload) %
   method=post
   input type=file name=FileData value= size=52 
  maxlength=255
   input type=submit value=Abschicken
 /form
   /html
  
  
  Hhmm. I took your corrected version and I can swear by the 
  life of my Grandma
  (God bless her) that I'm running tomcat as a standalone http server
  and this is the 'view page source' :
  html 
form enctype=multipart/form-data   
  action=%= 
  response.encodeUrl(/servlets/servlet/Upload) % 
  method=post

  input type=file name=FileData value= size=52 
  maxlength=255  
  input type=submit value=Abschicken
/form   
  /html  
  
  and I still get
   method=post 
  (one more quote, though).
  
  As said in another message of today (to Anne..), inserting the
  Servletpath directly, works. But that would have worked with 
  tomcat+apache
  configuration anyway.
  
   
-Ursprüngliche Nachricht-
Von: Christoph Kukulies 
 [mailto:[EMAIL PROTECTED]]
   Gesendet: Sonntag, 22. April 2001 20:36
   An: [EMAIL PROTECTED]
   Betreff: Re: file upload servlet
   
   html
   form enctype=multipart/form-data action=%
response.encodeUrl(/servlets/servlet/Upload)
   %
   method=post
   input type=file name=FileData value= size=52 maxlength=255
   input type=submit value=Abschicken
   /form
   /html
 
 -- 
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: SSL detection

2001-04-23 Thread Sam Newman

I should of thought of that myself. The page will now actually behave
differently depending on whether the page is accessed securely now - aint
goal post moving a wonderful thing? I just hope I can finish the work before
they decide they want it done in ASP instead.

sam
- Original Message -
From: Jan Labanowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Jan Labanowski [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 2:31 PM
Subject: Re: SSL detection


 The simpler way would be to put into httpd.conf the block


 Directory /my/directory
 Limit
Order deny,allow
Deny from all
 /Limit
 /Directory

 In the HTTP section (before the SSL section in the httpd.conf)

 and the block
 Directory /my/directory
 Limit
Order deny,allow
Allow from all
 /Limit
 /Directory

 within the HTTPS section (within the SSL section of httpd.conf).
 You may also need to define Alias, and to it by Location,
 but try this first.





Authentication problem with servlets opening connection to other servlets

2001-04-23 Thread Edwards, Peter

I am using the MemoryRealm to protect my web application. I have a servlet
that constructs a URL for another servlet in the same web application but I
find that when it opens a connection to the other servlet, the
authentication is not passed on and so it fails to open the stream. The only
error I get back is FileNotFoundException but if I turn off authentication
everything works.

Can anyone please guide me as to how to set this up correctly?

Should the error have been reported more helpfully?

Any help would be deeply appreciated.

Pete



mod_jk and load balancing (quick question)

2001-04-23 Thread Matt Goss

Hi all,
Does mod_jk support load balancing??? Also does it work with tomcat 3.1
 3.2 ???
Thanks :)
Matt


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))

Hi Milt,

You are right.  This is exactly what I had experienced.  Please see my 
previous posted message yesterday (4/22/01)
mod_jk.conf configuration:  Access servlets from apache server 
with url servername/servlets/servlet-class.

I use mod_jk and play with mod_jk.conf-local for a while, but did not
fiugure out
how to make apache knowing servlets to send to tomcat.  Do you have any
ideas
about how to configure mod_jk.conf?  Thanks a lot!

Alice

Xiaobu Alice Lian
[EMAIL PROTECTED]
(484)397-2583 

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:49 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Problem mapping servlets to /servlets/*


On Mon, 23 Apr 2001, Diego Castillo wrote:

 Hi,

 I am quite new to Tomcat and I have encountered problems in mapping
 servlets to specific URLs. Basically, I want my servlets to be
 activated when invoked through an URL that contains /servlets/* in
 addition to default /servlet/*.

 I have added the following to my %TOMCAT_HOME%\conf\web.xml:

 web-app
 [...]
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /servlets/*
 /url-pattern
 /servlet-mapping
 [...]
 /web-app

 This does not work. If I point to
 http://localhost/servlets/IsItWorking instead of
 http://localhost/servlet/IsItWorking, Apache is not able to find the
 appropriate page.

I suspect the key point there is that *Apache* is not able to find the
appropriate page, i.e. it's not even getting to Tomcat.  The web.xml
files are only read by Tomcat.  My guess is you need to insert some
appropriate directives in the tomcat/apache conf file so that Apache
knows to pass these URLs to Tomcat in the first place.  What exactly
those are depends on which module you're using to connect Tomcat to
Apache (mod_jserv, mod_jk, mod_webapp).  Check the tomcat/apache conf
file you have now for samples.

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



Re: Problem under win98

2001-04-23 Thread Anne-Marie Ternes



Michael Burke wrote:

 When I start tmcat under win 98 it hangs after the linePooltcpConnection:
 StartingAjp12ConnectionHandler on 8007 , my internet connection is a dsl
 line  in case that has anything to do with it. Any suggestions would be
 appreciated.

That's the normal behavior. Tomcat is running now, try it out.

Anne-Marie

--
=
Anne-Marie Ternes

Informaticien diplômé

Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg

Tél: 49 925 642
E-Mail: [EMAIL PROTECTED]
=





Re: Chris Nolte

2001-04-23 Thread Anne-Marie Ternes



Hi Michael,
I'm sorry I just replied to a previous thread of yours and just saw
now that yoiu already knew the answer. Please be aware that multiple postings
are not very well seen in newsgroups - no offense intended.
Anne-Marie
Michael Burke wrote:

Thanks
Chris you were right tomcat was running and I didn't realize it. Doh!!!

- Original Message -

From:
Michael
Burke

To: [EMAIL PROTECTED]

Sent: Wednesday, April 18, 2001 9:30
PM

Subject: Tomcat hangs under win 98
Tomcat hangs under win 98 after
the line "PoolTcpConnection:
StartingAjp12ConnectionHandler on
8007". My internet connection is a dsl
line if that has anything to do with
it. Any help would be appreciated.


--
=
Anne-Marie Ternes
Informaticien diplm
Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg
Tl: 49 925 642
E-Mail: [EMAIL PROTECTED]
=





Re: SSL detection

2001-04-23 Thread subbu

Hello SAM could U please tell me How to configure apache to support SSL
(winnt)
with love
subbu.
- Original Message -
From: Sam Newman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 3:59 AM
Subject: SSL detection


 I have Apache and Tomcat running together under SSL. I now want to create
a
 page which only run under SSL. I want http and https to share the same
 documents however. My first idea is to simply have a tag handler, which
 detects the protocol, and if not SSL is simply redirects to a page
explaning
 why they cannot view the requested document.
 By problem is that I'm not sure on the correct way to retrieve what type
of
 protocol is being used. There is a getAuthType method in
HttpServletRequest,
 but the return type is simply a string (e.g. BASIC or SSL). My concern
 is that this return could vary from browser to browser. Can I assume that
if
 using SSL the return will always be the string SSL? Also, how can I
detect
 which level of encryption is being used? Ideally, I'd like to restrict
users
 to connecting using 128bit only, or at least issue a warning when its at
 40bit.

 Thanks in advance,

 Sam




Books on Tomcat

2001-04-23 Thread Will England

Hi!

Does anyone know of any dead-tree books that document the Tomcat platform

I've checked O'Reilly and Amazon, with no luck.  I've found a few simple
basic articles, but that is it.

Thanks in advance!

Will


-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 





newbie: how to make /admin use client cert

2001-04-23 Thread Riley,R

I've been trying to make the /admin webapp supplied with tomcat use my
client cert.

I've imported my certificate into the tomcat server host's  .keystore using
-keytool and specifying -trustcacerts.

I'm not sure what to put in the web.xml and whether or not I have to put an
entry into tomcat-users.xml (I haven't been able to find a tomcat-users.dtd)

At present I've got the following in the webapps/admin/web-inf/web.xml:

security-constraint
...
  auth-constraint
 role-nameadmin/role-name
  /auth-constraint
 /security-constraint

login-config
  auth-methodCLIENT-CERT/auth-method
/login-config
..

and I've added   user name=mycert_alias password=cert_store_pwd
roles=admin / to tomcat-users.xml.

When a browser requests the contextAdmin.jsp tomcat returns Error: 401
Location: /admin/contextAdmin/contextAdmin.jsp  null

Any help or enlightenment much appreciated.

Thanks

Ron



Error on Tomcat

2001-04-23 Thread Dana Marcusanu

Hi I think I got the first problem, but now I still get this error:

2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /examples )
Starting tomcat. Check logs/tomcat.log for error messages 2001-04-23
10:33:48 -
ContextManager: Adding context Ctx( /admin )

2001-04-23 10:33:48 - ContextManager: Adding context Ctx(  )
2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /test )
2001-04-23 10:33:50 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-04-23 10:33:50 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-04-23 10:37:08 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:37:18 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:45:41 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null

Does somebody know where can I find the file test.jar and what that file
should contain.

Thanks, Dana Marcusanu

--- Dana Marcusanu [EMAIL PROTECTED] wrote:
 I am using Tomcat version 3.2.1. I am trying to connect to a data base
 from an applet and I am getting the following error: 
 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/org/gjt/
 mm/mysql/Driver.class + null) null
 My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
 My applet is in:
 C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student
 
 What can I do to connect the database from the applet? Should I give
 some
 permissions? 
 
 Thanks, Dana
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Error on Tomcat

2001-04-23 Thread Dana Marcusanu

Hi I think I got the first problem, but now I still get this error:

2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /examples )
Starting tomcat. Check logs/tomcat.log for error messages 2001-04-23
10:33:48 -
ContextManager: Adding context Ctx( /admin )

2001-04-23 10:33:48 - ContextManager: Adding context Ctx(  )
2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /test )
2001-04-23 10:33:50 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-04-23 10:33:50 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-04-23 10:37:08 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:37:18 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:45:41 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null

Does somebody know where can I find the file test.jar and what that file
should contain.

Thanks, Dana Marcusanu

--- Dana Marcusanu [EMAIL PROTECTED] wrote:
 I am using Tomcat version 3.2.1. I am trying to connect to a data base
 from an applet and I am getting the following error: 
 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/org/gjt/
 mm/mysql/Driver.class + null) null
 My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
 My applet is in:
 C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student
 
 What can I do to connect the database from the applet? Should I give
 some
 permissions? 
 
 Thanks, Dana
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Error on Tomcat

2001-04-23 Thread Dana Marcusanu

Hi I think I got the first problem, but now I still get this error:

2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /examples )
Starting tomcat. Check logs/tomcat.log for error messages 2001-04-23
10:33:48 -
ContextManager: Adding context Ctx( /admin )

2001-04-23 10:33:48 - ContextManager: Adding context Ctx(  )
2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /test )
2001-04-23 10:33:50 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-04-23 10:33:50 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2001-04-23 10:37:08 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:37:18 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null
2001-04-23 10:45:41 - Ctx( /examples ): 404 R( /examples +
/jsp/student/test.jar
 + null) null

Does somebody know where can I find the file test.jar and what that file
should contain.

Thanks, Dana Marcusanu

--- Dana Marcusanu [EMAIL PROTECTED] wrote:
 I am using Tomcat version 3.2.1. I am trying to connect to a data base
 from an applet and I am getting the following error: 
 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/org/gjt/
 mm/mysql/Driver.class + null) null
 My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
 My applet is in:
 C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student
 
 What can I do to connect the database from the applet? Should I give
 some
 permissions? 
 
 Thanks, Dana
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



SingleThreadModel

2001-04-23 Thread Thomas Roeblitz

Hi,

I'm wondering how Tomcat (Versions 3.1 and 3.2) implements the
SingleThreadModel. I was observing (v3.1) the case that parallel
requests were executed concurrently for the very beginning, but
later not. This behavior has been reported by some other people.

Regarding version 3.2.1 I found a comment that the implementation
uses a synchronized service-method.

Does anybody know something about the actual implementation? How
about further releases, is there a plan to provide one servlet
instance per thread which executes a SingleThreadModel-object?

Are there other Servlet-Containers which implements it in the
way that every thread gets its own servlet instance?

Thanks for your help. Any comment would be helpful

Thomas




RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))

You are right, I did put /mytest under root context in server.xml.
It works within tomcat, but not with apache. I just found it is hard 
to configure mod_jk.conf if I want to use root as the prefix of servlets.
Any recommendations?  Thanks!

Alice

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 10:40 AM
To: '[EMAIL PROTECTED]'
Cc: Allen, Aristotle B (Ari)
Subject: RE: Problem mapping servlets to /servlets/*


On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 Hi Milt,

 You are right.  This is exactly what I had experienced.  Please see
 my previous posted message yesterday (4/22/01) mod_jk.conf
 configuration: Access servlets from apache server with url
 servername/servlets/servlet-class.

 I use mod_jk and play with mod_jk.conf-local for a while, but did
 not fiugure out how to make apache knowing servlets to send to
 tomcat.  Do you have any ideas about how to configure mod_jk.conf?
 Thanks a lot!

I went back and looked at your previous post.  Are you saying you want
to be able to specify the URL without the context name?  That is,
normally you use URLs of the form:

http:servername/contextname/servlets/servletclass

but you want to use:

http:servername/servlets/servletclass

Is that correct?

Can't you do this by putting the servlets in the root context?


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 9:49 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Diego Castillo wrote:

  Hi,
 
  I am quite new to Tomcat and I have encountered problems in mapping
  servlets to specific URLs. Basically, I want my servlets to be
  activated when invoked through an URL that contains /servlets/* in
  addition to default /servlet/*.
 
  I have added the following to my %TOMCAT_HOME%\conf\web.xml:
 
  web-app
  [...]
  servlet-mapping
  servlet-name
  invoker
  /servlet-name
  url-pattern
  /servlets/*
  /url-pattern
  /servlet-mapping
  [...]
  /web-app
 
  This does not work. If I point to
  http://localhost/servlets/IsItWorking instead of
  http://localhost/servlet/IsItWorking, Apache is not able to find the
  appropriate page.

 I suspect the key point there is that *Apache* is not able to find the
 appropriate page, i.e. it's not even getting to Tomcat.  The web.xml
 files are only read by Tomcat.  My guess is you need to insert some
 appropriate directives in the tomcat/apache conf file so that Apache
 knows to pass these URLs to Tomcat in the first place.  What exactly
 those are depends on which module you're using to connect Tomcat to
 Apache (mod_jserv, mod_jk, mod_webapp).  Check the tomcat/apache conf
 file you have now for samples.

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



simple question

2001-04-23 Thread T.J Brosnan



Hi,
Im new to using to tomcat. My query is if I have a directory in 
TOMCAT_HOME/webapps/ called games can I have other directories in the games 
directory (for each different) and then the normal structure within these 
sub-directories, like will tomcat build a context for each of these 
sub-directories when I start it up.
thanks,
T.J


Re: Error on Tomcat

2001-04-23 Thread S Uma


Please unsubscribe me from this list

Thanks,
Uma

Dana Marcusanu wrote:

 Hi I think I got the first problem, but now I still get this error:

 2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /examples )
 Starting tomcat. Check logs/tomcat.log for error messages 2001-04-23
 10:33:48 -
 ContextManager: Adding context Ctx( /admin )

 2001-04-23 10:33:48 - ContextManager: Adding context Ctx(  )
 2001-04-23 10:33:48 - ContextManager: Adding context Ctx( /test )
 2001-04-23 10:33:50 - PoolTcpConnector: Starting HttpConnectionHandler on
 8080
 2001-04-23 10:33:50 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
 8007
 2001-04-23 10:37:08 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/test.jar
  + null) null
 2001-04-23 10:37:18 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/test.jar
  + null) null
 2001-04-23 10:45:41 - Ctx( /examples ): 404 R( /examples +
 /jsp/student/test.jar
  + null) null

 Does somebody know where can I find the file test.jar and what that file
 should contain.

 Thanks, Dana Marcusanu

 --- Dana Marcusanu [EMAIL PROTECTED] wrote:
  I am using Tomcat version 3.2.1. I am trying to connect to a data base
  from an applet and I am getting the following error:
  2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
  /jsp/student/org/gjt/
  mm/mysql/Driver.class + null) null
  My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
  My applet is in:
  C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student
 
  What can I do to connect the database from the applet? Should I give
  some
  permissions?
 
  Thanks, Dana
 
 
 
  __
  Do You Yahoo!?
  Yahoo! Auctions - buy the things you want at great prices
  http://auctions.yahoo.com/

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/




Re: SingleThreadModel

2001-04-23 Thread Milt Epstein

On Mon, 23 Apr 2001, Thomas Roeblitz wrote:

 Hi,

 I'm wondering how Tomcat (Versions 3.1 and 3.2) implements the
 SingleThreadModel. I was observing (v3.1) the case that parallel
 requests were executed concurrently for the very beginning, but
 later not. This behavior has been reported by some other people.

 Regarding version 3.2.1 I found a comment that the implementation
 uses a synchronized service-method.

 Does anybody know something about the actual implementation? How
 about further releases, is there a plan to provide one servlet
 instance per thread which executes a SingleThreadModel-object?

 Are there other Servlet-Containers which implements it in the
 way that every thread gets its own servlet instance?

 Thanks for your help. Any comment would be helpful

I believe some/most servlet containers do implement a pool of servlet
instances when a servlet implements SingleThreadModel.  But I don't
know about Tomcat.

But since you say any comment :-): DON'T USE SingleThreadModel!
There has been a lot of discussion of SingleThreadModel on Sun's
servlet-interest list, and the strong consensus is that it's bad to
use it -- it's misleading, because it doesn't really eliminate all
threading-/concurrency-related problems, and it causes a performance
hit.  The best thing is to just bite the bullet, learn what you need
to know about threading/concurrency, design your system to eliminate
threading/concurrency problems as much as possible, and when
unavoidable, use synchronize on the smallest block possible.

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




Re: simple question

2001-04-23 Thread Martin Mauri



No, just the parent. I mean, the one you've listed 
in the server.xml file (docBase entry).

regards.

m-


  Hi,
  Im new to using to tomcat. My query is if I have a directory in 
  TOMCAT_HOME/webapps/ called games can I have other directories in the games 
  directory (for each different) and then the normal structure within these 
  sub-directories, like will tomcat build a context for each of these 
  sub-directories when I start it up.
  thanks,
  T.J


RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Milt Epstein

On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 You are right, I did put /mytest under root context in server.xml.
 It works within tomcat, but not with apache. I just found it is hard
 to configure mod_jk.conf if I want to use root as the prefix of
 servlets.  Any recommendations?  Thanks!

I haven't really done this myself, so I'm not sure of the exact
details.  But what did you do to put your servlets in the root
context?  My impression is that the sample tomcat/apache conf file is
already configured to accept URLs without any context name for
serlvets in the root context.  So then all you need do is put your
servlets (i.e. the class file) in the root context's WEB-INF/classes
directory.  (Although since you want to use /servlets/ instead of
/servlet/, you may need to change something related to that --
e.g. perhaps another JkMount directive -- but it sounded like you had
already figured out that part of it.)


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 10:40 AM
 To: '[EMAIL PROTECTED]'
 Cc: Allen, Aristotle B (Ari)
 Subject: RE: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

  Hi Milt,
 
  You are right.  This is exactly what I had experienced.  Please see
  my previous posted message yesterday (4/22/01) mod_jk.conf
  configuration: Access servlets from apache server with url
  servername/servlets/servlet-class.
 
  I use mod_jk and play with mod_jk.conf-local for a while, but did
  not fiugure out how to make apache knowing servlets to send to
  tomcat.  Do you have any ideas about how to configure mod_jk.conf?
  Thanks a lot!

 I went back and looked at your previous post.  Are you saying you want
 to be able to specify the URL without the context name?  That is,
 normally you use URLs of the form:

 http:servername/contextname/servlets/servletclass

 but you want to use:

 http:servername/servlets/servletclass

 Is that correct?

 Can't you do this by putting the servlets in the root context?
[ ... ]

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




Re: sealing violation

2001-04-23 Thread Boszormenyi GCS Laszlo

* CPC Livelink Admin [EMAIL PROTECTED] [010423 16:11]:
 
 From what I have read on the list, this error is normally (99%) related to
 having mixed versions of the servlet jar's in your class path.  Make sure
 that you are not sharing the servlet.jar from a previous version of the spec
 with the one distributed with tomcat.
 The machine is just installed, so it is sure that there were not even a
jdk. I was playing with the paths, and finaly I unset all of them. Then
tried startup.sh again. It complained about JAVA_HOME and CATALINA_HOME.
I set up to the real files, without symlinks:
export JAVA_HOME=/usr/local/encap/jdk1.3.0_02
export CATALINA_HOME=/usr/local/encap/jakarta-tomcat-4.0b3

startup.sh gave me sealing violation again. The $CLASSPATH was empty for
sure, I modified the startup.sh to do an echo on it, and I saw an empty
line only this time. Anyway, Catalina/Tomcat reports:
Using CLASSPATH:
/usr/local/encap/jakarta-tomcat-4.0b3/bin/bootstrap.jar:/usr/local/encap/jdk1.3.0_02/lib/tools.jar
Using CATALINA_HOME: /usr/local/encap/jakarta-tomcat-4.0b3
Is it ok? Anyway, I am going to throw in the towel... Absolutely no more idea.

Bye, Laszlo



RE: Books on Tomcat

2001-04-23 Thread Bryant, William


Hmmm...  No books that I know of, either already published or in progress.

I'm not much of an author, but this sounds like an interesting project.
Anyone up for writing a book on Tomcat?  Maybe a not-for-profit,
electronic-format-only guide to Tomcat that users could download.  We could
take the existing documentation (good, however maybe a little sparse) and
add to it.

I've been wanting to get into the Tomcat project for some time now.  This
might be the perfect opportunity.

Any takers?


.. Mike



 

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Books on Tomcat


Hi!

Does anyone know of any dead-tree books that document the Tomcat platform

I've checked O'Reilly and Amazon, with no luck.  I've found a few simple
basic articles, but that is it.

Thanks in advance!

Will


-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 



 Mike Bryant (E-mail).vcf


Re: Problem mapping servlets to /servlets/*

2001-04-23 Thread Martin Mauri

I agree with Milt. What you've gotta do is just put your servlets in
WEB-INF/classes and nothing else. When you do your request the Tomcat will
load the servlet that's in the URL.


  You are right, I did put /mytest under root context in server.xml.
  It works within tomcat, but not with apache. I just found it is hard
  to configure mod_jk.conf if I want to use root as the prefix of
  servlets.  Any recommendations?  Thanks!

 I haven't really done this myself, so I'm not sure of the exact
 details.  But what did you do to put your servlets in the root
 context?  My impression is that the sample tomcat/apache conf file is
 already configured to accept URLs without any context name for
 serlvets in the root context.  So then all you need do is put your
 servlets (i.e. the class file) in the root context's WEB-INF/classes
 directory.  (Although since you want to use /servlets/ instead of
 /servlet/, you may need to change something related to that --
 e.g. perhaps another JkMount directive -- but it sounded like you had
 already figured out that part of it.)


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 10:40 AM
  To: '[EMAIL PROTECTED]'
  Cc: Allen, Aristotle B (Ari)
  Subject: RE: Problem mapping servlets to /servlets/*
 
 
  On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:
 
   Hi Milt,
  
   You are right.  This is exactly what I had experienced.  Please see
   my previous posted message yesterday (4/22/01) mod_jk.conf
   configuration: Access servlets from apache server with url
   servername/servlets/servlet-class.
  
   I use mod_jk and play with mod_jk.conf-local for a while, but did
   not fiugure out how to make apache knowing servlets to send to
   tomcat.  Do you have any ideas about how to configure mod_jk.conf?
   Thanks a lot!
 
  I went back and looked at your previous post.  Are you saying you want
  to be able to specify the URL without the context name?  That is,
  normally you use URLs of the form:
 
  http:servername/contextname/servlets/servletclass
 
  but you want to use:
 
  http:servername/servlets/servletclass
 
  Is that correct?
 
  Can't you do this by putting the servlets in the root context?
 [ ... ]

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




A problem, please help

2001-04-23 Thread Pradeep Kumar

hello group,
I am using tomcat 3.2.1 on win2k box with IIS.

I am able to run all the example context.

I have a context called at...and I am not able to run my servlet.
I get the message resource not allowed on the browser (HTTP 405 error).

The isapi log file says the following error.

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/at/assettrade
[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 [/at/assettrade?a=login] is not a
servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/at/assettrade?a=login]
is points to the web-inf directory


Here assettrade is my servlet with the following url mapping is the web.xml
servlet-mapping
servlet-nameAssetTrade/servlet-name
url-pattern/assettrade/url-pattern
/servlet-mapping

In my uriworkermap.properties, i have specified the following.

/at/*.jsp=ajp12
/at/servlet/*=ajp12

It looks like i am able to complile the jsp files, but the problem is with my
servlet.

Am i doing here something wrong? Your help is highly appriciated.

thanks,
pradeep



URL to catch servlets

2001-04-23 Thread David DELGRANCHE

Hi all,

I'm using Tomcat 3.2.1 with Apache on WinNT. I have defined in the 
server.xml conf file the directory I wanted to put my servlets. I named it 
workDirectory. All my servlets are in the subdirectory: 
workDirectory/web-inf/classes/ and I can access them by 
http://localhost/workDirectory/servlet/nameOfServlet.
What I would like to do is to access them by the following URL: 
http://localhost/workDirectory/nameOfServlet
Does anyone know which modifications I have to do in the Tomcat 
Configuration to do this?
Thanks for help
David.

David DELGRANCHE
[EMAIL PROTECTED]  
Tel: 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX






Request; was: sealing violation

2001-04-23 Thread GCS

 Maybe the jars are too different versions for me. That is why I ask
some people to send the output of
ls -l $CATALINA_HOME/jasper $CATALINA_HOME/server/lib

Thanks, Laszlo



Accessing a packaged file

2001-04-23 Thread Jim Downing

Hi,
I'm trying to get a servlet to access a text file that has been packaged
with the servlet in a .war file. Is it possible to access the file without
knowing it's absolute path when deployed, and if so how?

jim




[Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Neil Aggarwal

Hello:

Has anyone seen this problem

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases


Hello:

I am trying to set-up Tomcat 3.2.1 as a standalone servlet container
for virtual hosts.

I downloaded the tomcat 3.2.1 binary distribution, dearchived it,
and then made these modifications to server.xml:

1. Changed the HttpContentHandler to port 80 so that it
would repond to normal web requests.
2. In the ContextManager section, I added these lines:
Host name=xxx.xxx.xxx.xxx 
Context path=
debug=1
docbase=webapps/host1 /
/Host

After starting tomcat, I tried to visit http://xxx.xxx.xxx.xxx
and I got this error message:
Error: 500

Location: /

Internal Servlet Error:

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)


Any ideas what is causing this?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases





[Fwd: Multiple IP based virtual hosts in Tomcat 4]

2001-04-23 Thread Neil Aggarwal

Hello:

Has anyone seen this problem

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases


Hello:

I am trying to set-up multiple IP based virtual hosts in 
Tomcat 4.0 Beta 3 running as a Standalone container.

I downloaded the 4.0b3 binary of tomcat, dearchived it,
and modified the following items in the server.xml
file:

In the Service name=Tomcat-Standalone section,
I changed the HttpConnector to use port 80 so that
it would respond to normal web requests.

In the Engine section, below the Host section for localhost,
I added the following lines:
  Host name=xxx.xxx.xxx.xxx debug=1 appBase=webapps
unpackWARs=true
Context path= docBase=host1
/Context
  /Host

  Host name=yyy.yyy.yyy.yyy debug=1 appBase=webapps
unpackWARs=true
Context path= docBase=host2
/Context
  /Host

Then, I started tomcat.  When I visit http://xxx.xxx.xxx.xxx,
I get the index.jsp file from the host1 directory as expected.

But when I visit http://yyy.yyy.yyy.yyy, I get this message:
HTTP Status 503 - This application is not currently
available

The requested service (This application is not currently available) is
not currently available. 

Any idea why this is occurring?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases





RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))

Milt and Martin,

Thanks very much for your response!
I would like to put all servlet classes in WEB-INF directory by following
the 
standard, but our people prefer to keep their
original ~/servlets directory for servlet classes.  So what I did was using
Unix symbolic link to let /mytest/WEB-INF/classes -- /mytest/servlets.
It works with Tomcat, but not apache. Any better way to deal with this? 

In mod_jk.conf-local,
I used JkMount /servlets/* ajp12
   JkMount /*.jsp ajp12

Do I need to use JkMount /mytest / 
  or JkMount /mytest/servlets/* /servlets/*  ?  
 I have not done these because I do not know much about the JkMount syntax.

I only revised existing lines in mod_jk.conf.   I used mod_jk.conf-local
because I found mod_jk.conf-auto did not include my setup in server.xml.
Instead,
it only covered everything under $TOMCAT_HOME/webapps into its contexts.  

To make it simple, I did not try to figure out how to change the way
mod_jk.conf-auto
was created, but decided to use mod_jk.conf-local instead.

Thanks for any information!
  
Alice

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:28 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem mapping servlets to /servlets/*


On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 You are right, I did put /mytest under root context in server.xml.
 It works within tomcat, but not with apache. I just found it is hard
 to configure mod_jk.conf if I want to use root as the prefix of
 servlets.  Any recommendations?  Thanks!

I haven't really done this myself, so I'm not sure of the exact
details.  But what did you do to put your servlets in the root
context?  My impression is that the sample tomcat/apache conf file is
already configured to accept URLs without any context name for
serlvets in the root context.  So then all you need do is put your
servlets (i.e. the class file) in the root context's WEB-INF/classes
directory.  (Although since you want to use /servlets/ instead of
/servlet/, you may need to change something related to that --
e.g. perhaps another JkMount directive -- but it sounded like you had
already figured out that part of it.)


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 10:40 AM
 To: '[EMAIL PROTECTED]'
 Cc: Allen, Aristotle B (Ari)
 Subject: RE: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

  Hi Milt,
 
  You are right.  This is exactly what I had experienced.  Please see
  my previous posted message yesterday (4/22/01) mod_jk.conf
  configuration: Access servlets from apache server with url
  servername/servlets/servlet-class.
 
  I use mod_jk and play with mod_jk.conf-local for a while, but did
  not fiugure out how to make apache knowing servlets to send to
  tomcat.  Do you have any ideas about how to configure mod_jk.conf?
  Thanks a lot!

 I went back and looked at your previous post.  Are you saying you want
 to be able to specify the URL without the context name?  That is,
 normally you use URLs of the form:

 http:servername/contextname/servlets/servletclass

 but you want to use:

 http:servername/servlets/servletclass

 Is that correct?

 Can't you do this by putting the servlets in the root context?
[ ... ]

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



Re: URL to catch servlets

2001-04-23 Thread Pae Choi

No need to modify the TC. Just configure it in server.xml and httpd.conf.


Pae


 Hi all,

 I'm using Tomcat 3.2.1 with Apache on WinNT. I have defined in the
server.xml conf file the directory I wanted to put my servlets. I named it
workDirectory. All my servlets are in the subdirectory:
workDirectory/web-inf/classes/ and I can access them by
http://localhost/workDirectory/servlet/nameOfServlet.
 What I would like to do is to access them by the following URL:
http://localhost/workDirectory/nameOfServlet
 Does anyone know which modifications I have to do in the Tomcat
Configuration to do this?
 Thanks for help
 David.

David DELGRANCHE
[EMAIL PROTECTED]
Tel: 02.99 05.34.25
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX







RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik

Thread.currentThread().getContextClassLoader().getResourceAsStream

picks up files in your WEB-INF/classes or WEB-INF/lib inside of a jar or zip
Filip

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

 -Original Message-
 From: Jim Downing [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 9:09 AM
 To: [EMAIL PROTECTED]
 Subject: Accessing a packaged file


 Hi,
 I'm trying to get a servlet to access a text file that has been packaged
 with the servlet in a .war file. Is it possible to access the file without
 knowing it's absolute path when deployed, and if so how?

 jim






Re: Help with Windows IIS

2001-04-23 Thread time out

does the virtual directory in fact point to webapps/ROOT?  also, i assume 
that you are using isapi_redirect.ddl... in which case you can put the JSPs 
in the web site directory and not have to use virtual directorieswhich 
may be confusing things too

if not then that may be an error.

At 00:10 04/22/2001 -0700, you wrote:
Why dont you try anonter name for the app / context besides ROOT

- Original Message -
From: John Lusk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 11:02 PM
Subject: Help with Windows  IIS


I am just loading my server with Tomcat.  I got all the examples to run
correctly with IIS 5.0.  I am now trying to set up my own application.
I went though all the configurations I could find on the Jakarta site.
I made a virtual directory for IAP in IIS.  I opened the server.xml and
added

Context path=/IAP
  docBase=webapps/ROOT
  crossContext=false
  debug=0
  reloadable=true 
 /Context

Also added to uriworkermap.properties

/IAP/*=ajp12
/ROOT/*=ajp12


I must be missing something.  Any help would be appreciated.

John


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Problem mapping servlets to /servlets/*

2001-04-23 Thread Xiaofeng Chen

It looks like many people have problems to configure their own servlet
directory. I
didn't see any documentation about this. It would be nice for a member of
tomcat development team
to add some hints for this topic in the tomcat user's guide: such as what
files we have to modify and what
lines we have to add or change to configure our own servlet directory. Would
someone do tomcat users a
favor? Thanks a lot!

- Original Message -
From: Lian, Xiaobu (Alice) (Xiaobu (Alice)) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 11:11 AM
Subject: RE: Problem mapping servlets to /servlets/*




 Milt and Martin,

 Thanks very much for your response!
 I would like to put all servlet classes in WEB-INF directory by following
 the
 standard, but our people prefer to keep their
 original ~/servlets directory for servlet classes.  So what I did was
using
 Unix symbolic link to let /mytest/WEB-INF/classes -- /mytest/servlets.
 It works with Tomcat, but not apache. Any better way to deal with this?

 In mod_jk.conf-local,
 I used JkMount /servlets/* ajp12
JkMount /*.jsp ajp12

 Do I need to use JkMount /mytest /
   or JkMount /mytest/servlets/* /servlets/*  ?
  I have not done these because I do not know much about the JkMount
syntax.

 I only revised existing lines in mod_jk.conf.   I used mod_jk.conf-local
 because I found mod_jk.conf-auto did not include my setup in server.xml.
 Instead,
 it only covered everything under $TOMCAT_HOME/webapps into its contexts.

 To make it simple, I did not try to figure out how to change the way
 mod_jk.conf-auto
 was created, but decided to use mod_jk.conf-local instead.

 Thanks for any information!

 Alice

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 11:28 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

  You are right, I did put /mytest under root context in server.xml.
  It works within tomcat, but not with apache. I just found it is hard
  to configure mod_jk.conf if I want to use root as the prefix of
  servlets.  Any recommendations?  Thanks!

 I haven't really done this myself, so I'm not sure of the exact
 details.  But what did you do to put your servlets in the root
 context?  My impression is that the sample tomcat/apache conf file is
 already configured to accept URLs without any context name for
 serlvets in the root context.  So then all you need do is put your
 servlets (i.e. the class file) in the root context's WEB-INF/classes
 directory.  (Although since you want to use /servlets/ instead of
 /servlet/, you may need to change something related to that --
 e.g. perhaps another JkMount directive -- but it sounded like you had
 already figured out that part of it.)


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 10:40 AM
  To: '[EMAIL PROTECTED]'
  Cc: Allen, Aristotle B (Ari)
  Subject: RE: Problem mapping servlets to /servlets/*
 
 
  On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:
 
   Hi Milt,
  
   You are right.  This is exactly what I had experienced.  Please see
   my previous posted message yesterday (4/22/01) mod_jk.conf
   configuration: Access servlets from apache server with url
   servername/servlets/servlet-class.
  
   I use mod_jk and play with mod_jk.conf-local for a while, but did
   not fiugure out how to make apache knowing servlets to send to
   tomcat.  Do you have any ideas about how to configure mod_jk.conf?
   Thanks a lot!
 
  I went back and looked at your previous post.  Are you saying you want
  to be able to specify the URL without the context name?  That is,
  normally you use URLs of the form:
 
  http:servername/contextname/servlets/servletclass
 
  but you want to use:
 
  http:servername/servlets/servletclass
 
  Is that correct?
 
  Can't you do this by putting the servlets in the root context?
 [ ... ]

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





RE: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Danny Angus

Context path=
should be
Context path=/
for hits to the path root



 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 5:17 PM
 To: tomcat users list
 Subject: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]
 
 
 Hello:
 
 Has anyone seen this problem
 
 Thanks,
   Neil.
 
 --
 Neil Aggarwal
 JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet Development -- Java, JSP, servlets, databases



Re: simple question

2001-04-23 Thread time out

i have found that tomcat will serve JSPs below the docbase as well...when i 
use iis and isapi_redirect.dll


At 12:24 04/23/2001 -0300, you wrote:
No, just the parent. I mean, the one you've listed in the server.xml file 
(docBase entry).

regards.

m-
Hi,
Im new to using to tomcat. My query is if I have a directory in 
TOMCAT_HOME/webapps/ called games can I have other directories in the 
games directory (for each different) and then the normal structure within 
these sub-directories, like will tomcat build a context for each of these 
sub-directories when I start it up.
thanks,
T.J


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: [Fwd: Multiple IP based virtual hosts in Tomcat 4]

2001-04-23 Thread Danny Angus

Context path=
should probably be
Context path=/
too

 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 5:17 PM
 To: tomcat users list
 Subject: [Fwd: Multiple IP based virtual hosts in Tomcat 4]
 
 
 Hello:
 
 Has anyone seen this problem
 
 Thanks,
   Neil.
 
 --
 Neil Aggarwal
 JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet Development -- Java, JSP, servlets, databases



RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Milt Epstein

On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 Milt and Martin,

 Thanks very much for your response!
 I would like to put all servlet classes in WEB-INF directory by
 following the standard, but our people prefer to keep their original
 ~/servlets directory for servlet classes.  So what I did was using
 Unix symbolic link to let /mytest/WEB-INF/classes --
 /mytest/servlets.  It works with Tomcat, but not apache. Any better
 way to deal with this?

 In mod_jk.conf-local,
 I used JkMount /servlets/* ajp12
JkMount /*.jsp ajp12

 Do I need to use JkMount /mytest /
   or JkMount /mytest/servlets/* /servlets/*  ?
  I have not done these because I do not know much about the JkMount syntax.

I think you're going to have to do some more of your own debugging.
Or at least provide some more information.  Things to look at include:

  What URL(s) you are using
  What is happening (as opposed to just it's not working)
Is it a 404 Not Found?  Or some other web server error?
Is the error coming from Apache or Tomcat?
You should be able to tell from the format of the error page,
and/or you can look in the respective log files

My guess is the problem has to do with Apache not knowing to pass the
URL(s) in question to Tomcat.  That usually means you need to
add/change something in your tomcat/apache conf file.


 I only revised existing lines in mod_jk.conf.  I used
 mod_jk.conf-local because I found mod_jk.conf-auto did not include
 my setup in server.xml.  Instead, it only covered everything under
 $TOMCAT_HOME/webapps into its contexts.

 To make it simple, I did not try to figure out how to change the way
 mod_jk.conf-auto was created, but decided to use mod_jk.conf-local
 instead.

Good idea, because I don't believe you can 100% control what goes into
mod_jk.conf-auto.  General advice seems to me copy it, modify it, and
use the modified one.


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 11:28 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

  You are right, I did put /mytest under root context in server.xml.
  It works within tomcat, but not with apache. I just found it is hard
  to configure mod_jk.conf if I want to use root as the prefix of
  servlets.  Any recommendations?  Thanks!

 I haven't really done this myself, so I'm not sure of the exact
 details.  But what did you do to put your servlets in the root
 context?  My impression is that the sample tomcat/apache conf file is
 already configured to accept URLs without any context name for
 serlvets in the root context.  So then all you need do is put your
 servlets (i.e. the class file) in the root context's WEB-INF/classes
 directory.  (Although since you want to use /servlets/ instead of
 /servlet/, you may need to change something related to that --
 e.g. perhaps another JkMount directive -- but it sounded like you had
 already figured out that part of it.)


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 10:40 AM
  To: '[EMAIL PROTECTED]'
  Cc: Allen, Aristotle B (Ari)
  Subject: RE: Problem mapping servlets to /servlets/*
 
 
  On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:
 
   Hi Milt,
  
   You are right.  This is exactly what I had experienced.  Please see
   my previous posted message yesterday (4/22/01) mod_jk.conf
   configuration: Access servlets from apache server with url
   servername/servlets/servlet-class.
  
   I use mod_jk and play with mod_jk.conf-local for a while, but did
   not fiugure out how to make apache knowing servlets to send to
   tomcat.  Do you have any ideas about how to configure mod_jk.conf?
   Thanks a lot!
 
  I went back and looked at your previous post.  Are you saying you want
  to be able to specify the URL without the context name?  That is,
  normally you use URLs of the form:
 
  http:servername/contextname/servlets/servletclass
 
  but you want to use:
 
  http:servername/servlets/servletclass
 
  Is that correct?
 
  Can't you do this by putting the servlets in the root context?
 [ ... ]

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


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




RE: Books on Tomcat

2001-04-23 Thread David McCormick

I've been thinking about scratching that itch myself. Somewhere on this list
I read that the Tomcat developers (whoever that might mean) were already
working on one, but I haven't seen anything else since then. I think it
would be interesting to do it like Bruce Eckel has done with his books
(http://www.bruceeckel.com), where he publishes chapters and gets immediate
feedback on clarity and correctness.

Count me in.


-Original Message-
From: Bryant, William [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Books on Tomcat



Hmmm...  No books that I know of, either already published or in progress.

I'm not much of an author, but this sounds like an interesting project.
Anyone up for writing a book on Tomcat?  Maybe a not-for-profit,
electronic-format-only guide to Tomcat that users could download.  We could
take the existing documentation (good, however maybe a little sparse) and
add to it.

I've been wanting to get into the Tomcat project for some time now.  This
might be the perfect opportunity.

Any takers?


.. Mike



 

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Books on Tomcat


Hi!

Does anyone know of any dead-tree books that document the Tomcat platform

I've checked O'Reilly and Amazon, with no luck.  I've found a few simple
basic articles, but that is it.

Thanks in advance!

Will


-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 





RE: Accessing a packaged file

2001-04-23 Thread Samson, Lyndon [IT]

Or more succinctly;

this.getClass().getResourceAsStream(String);





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Accessing a packaged file


Thread.currentThread().getContextClassLoader().getResourceAsStream

picks up files in your WEB-INF/classes or WEB-INF/lib inside of a jar or zip
Filip

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

 -Original Message-
 From: Jim Downing [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 9:09 AM
 To: [EMAIL PROTECTED]
 Subject: Accessing a packaged file


 Hi,
 I'm trying to get a servlet to access a text file that has been packaged
 with the servlet in a .war file. Is it possible to access the file without
 knowing it's absolute path when deployed, and if so how?

 jim





RE: Accessing a packaged file

2001-04-23 Thread Milt Epstein

On Mon, 23 Apr 2001, Filip Hanik wrote:

 Thread.currentThread().getContextClassLoader().getResourceAsStream

 picks up files in your WEB-INF/classes or WEB-INF/lib inside of a jar or zip
[ ... ]

I have seen this this construct mentioned a few times here:

Thread.currentThread().getContextClassLoader().getResourceAsStream()

but is this any different from:

getContext().getResourceAsStream()

(similar for getResource(), of course).


  -Original Message-
  From: Jim Downing [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 9:09 AM
  To: [EMAIL PROTECTED]
  Subject: Accessing a packaged file
 
 
  Hi,
  I'm trying to get a servlet to access a text file that has been packaged
  with the servlet in a .war file. Is it possible to access the file without
  knowing it's absolute path when deployed, and if so how?
 
  jim
 
 


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




JSP is not being server properly

2001-04-23 Thread Ferdinand Enario

Hello,

I know I have read this in the forum before but I can't seem to find the
exact message.
Running on Linux Mandrake 7.1, Apache and Tomcat 3.2.1, mod_jk. When I
access the examples like this
http://localhost/examples/jsp/num/numguess.jsp, instead of showing the
example numguess.jsp, I got the source code of the jsp. If I run it like
http://localhost:8080/examples/jsp/num/numguess.jsp , everything is fine.
Could somebody point me to the right direction, please?

Ferdinand




Tomcat 3.2.2 release schedule

2001-04-23 Thread Yair Zadik

Does anyone know when Tomcat 3.2.2 is scheduled for final release?  Looking
through the changes page, I believe that we've been running into a bug in
Tomcat 3.1.1 (our production release) thats fixed in 3.2.2 but not 3.2.1.
We're going into a QA cycle for our next release within the next couple of
weeks and I'd like to pull tomcat 3.2.2 into it if possible (we'll be using
3.2.1 otherwise), but not if there isn't a really good chance that it will
be final by then.

The last 3.2.2 announcment I've seen was

  http://marc.theaimsgroup.com/?l=tomcat-devm=98670258524812w=2

from April 8 that was for 3.2.2 beta 3.

Yair



Re: Accessing HTML files in the apache root from servlets

2001-04-23 Thread Matthias Hupp

Thanks for the replies so far, but my problem remains...
Is looking for input files in the system root really normal behaviour for a
java program? Has anybody else had my problem?
BTW, using ./inputfile.html doesn't work either.

Greetings, Matthias




Re: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Neil Aggarwal

Danny:

I change my server.xml to:
Host name=xxx.xxx.xxx.xxx 
Context path=/
debug=1
docbase=webapps/host1 /
/Host

And I still get this error:
Error: 500

Location: /

Internal Servlet Error:

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)

Any other ideas?

Thanks,
Neil.

Danny Angus wrote:
 
 Context path=
 should be
 Context path=/
 for hits to the path root
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 5:17 PM
  To: tomcat users list
  Subject: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]
 
 
  Hello:
 
  Has anyone seen this problem
 
  Thanks,
Neil.
 
  --
  Neil Aggarwal
  JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet Development -- Java, JSP, servlets, databases

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Re: SSL detection

2001-04-23 Thread Sam Newman

I'm not sure if this is different on winNT, as I did it on Linux, and so
these instructions are really for that. All the packages mentioned here i
think also come with win32 instructions. First, get Apache using mod_ssl.
Easiest way to do this is to download openssl 0.9.6a (www.openssl.org), the
latest apache source (www.apache.org) and the mod_ssl source (search
google - can't remember the url - maybe www.modssl.org  ) The mod_ssl
install file then explains how to build all 3 packages and get them running.
Then get Apache serving .jsp and servlets via tomcat using the ajpv13
protocol (look at the Apache-Tomcat howto in the docs). The older ajpv12
protocol has some issues with SSL. The servlets and jsps should work equally
well under https or http, with the exception (perhaps) of URL rewritting
when the client has cookies disabled (search the archive for recent posts
for more info).

As I said, this worked for me on Linux, more specifically under SuSE 7.0.

sam
- Original Message -
From: subbu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 3:27 AM
Subject: Re: SSL detection


 Hello SAM could U please tell me How to configure apache to support SSL
 (winnt)
 with love
 subbu.
 - Original Message -
 From: Sam Newman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 23, 2001 3:59 AM
 Subject: SSL detection


  I have Apache and Tomcat running together under SSL. I now want to
create
 a
  page which only run under SSL. I want http and https to share the same
  documents however. My first idea is to simply have a tag handler, which
  detects the protocol, and if not SSL is simply redirects to a page
 explaning
  why they cannot view the requested document.
  By problem is that I'm not sure on the correct way to retrieve what type
 of
  protocol is being used. There is a getAuthType method in
 HttpServletRequest,
  but the return type is simply a string (e.g. BASIC or SSL). My
concern
  is that this return could vary from browser to browser. Can I assume
that
 if
  using SSL the return will always be the string SSL? Also, how can I
 detect
  which level of encryption is being used? Ideally, I'd like to restrict
 users
  to connecting using 128bit only, or at least issue a warning when its at
  40bit.
 
  Thanks in advance,
 
  Sam






Re: [Fwd: Multiple IP based virtual hosts in Tomcat 4]

2001-04-23 Thread Neil Aggarwal

Danny:

I change my tomcat 4 server.xml file to:
  Host name=xxx.xxx.xxx.xxx debug=1 appBase=webapps
unpackWARs=true
Context path=/ docBase=host1
/Context
  /Host

  Host name=yyy.yyy.yyy.yyy debug=1 appBase=webapps
unpackWARs=true
Context path=/ docBase=host2
/Context
  /Host

When I got to xxx.xxx.xxx.xxx, I get:
HTTP Status 404 - /index.jsp

The requested resource (/index.jsp) is not available. 

When I go to yyy.yyy.yyy.yyy, I get nothing, the browser 
just sits there and loads nothing. Eventually, it times out.

Any more ideas?

Thanks,
Neil.

Danny Angus wrote:
 
 Context path=
 should probably be
 Context path=/
 too
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 5:17 PM
  To: tomcat users list
  Subject: [Fwd: Multiple IP based virtual hosts in Tomcat 4]
 
 
  Hello:
 
  Has anyone seen this problem
 
  Thanks,
Neil.
 
  --
  Neil Aggarwal
  JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet Development -- Java, JSP, servlets, databases

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



RE: Accessing a packaged file

2001-04-23 Thread Filip Hanik

 Or more succinctly;

 this.getClass().getResourceAsStream(String);

nope, this is not a good approach at all!

if the class this is loaded by the system class loaded, you are screwed,
because the system classloader doesn't point to the WAR directories

Filip


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

 -Original Message-
 From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 9:47 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Accessing a packaged file








 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 5:28 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Accessing a packaged file


 Thread.currentThread().getContextClassLoader().getResourceAsStream

 picks up files in your WEB-INF/classes or WEB-INF/lib inside of a
 jar or zip
 Filip

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

  -Original Message-
  From: Jim Downing [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 9:09 AM
  To: [EMAIL PROTECTED]
  Subject: Accessing a packaged file
 
 
  Hi,
  I'm trying to get a servlet to access a text file that has been packaged
  with the servlet in a .war file. Is it possible to access the
 file without
  knowing it's absolute path when deployed, and if so how?
 
  jim
 
 





Re: Accessing a packaged file

2001-04-23 Thread Jim Downing

I've tried both ways, and I'm still missing something.
Thread.currentThread().getContextClassLoader.getResources() doesn't list
the resource required - do I have to list it in the web.xml descriptor?

jim

- Original Message -
From: Samson, Lyndon [IT] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 5:47 PM
Subject: RE: Accessing a packaged file


 Or more succinctly;

 this.getClass().getResourceAsStream(String);

 From: Filip Hanik [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 5:28 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Accessing a packaged file


 Thread.currentThread().getContextClassLoader().getResourceAsStream

 picks up files in your WEB-INF/classes or WEB-INF/lib inside of a jar or
zip
 Filip

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

  -Original Message-
  From: Jim Downing [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 9:09 AM
  To: [EMAIL PROTECTED]
  Subject: Accessing a packaged file
 
 
  Hi,
  I'm trying to get a servlet to access a text file that has been packaged
  with the servlet in a .war file. Is it possible to access the file
without
  knowing it's absolute path when deployed, and if so how?
 
  jim
 
 





RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread Lian, Xiaobu (Alice) (Xiaobu (Alice))

Please see my previous email message below, which explained my problem. 
Thanks!

Alice


---
***  mod_jk.conf configuration: Access servlets from apache server ***
***  with url servername/servlets/servlet-class***

I have installed mod_jk, and put include
/usr/local/tomcat/conf/mod_jk.conf-auto 
in httpd.conf.  So I can run tomcat 3.2.1 and apache 1.3.19 on hp-ux 11.00.

I have a configuration question and hope somebody can give me a clue.

Our existing servlet classes are in /home/someDir/servlets/ directory.  Our
people
want to keep the same url as servername/servlets/servlet-class.  
I configured tomcat to access it by using url:
server:8090/servlets/classname, 
the same way they are running on other web server. 

What I did was 
   1) add context in server.xml with the path =/ pointing to
/home/someDir.
   2) changed prefix from servlet to servlets in server.xml
   3) in web.xml, set url-pattern /servlets  (Is this necessary?)
   4) symbolic link: /home/someDir/WEB-INF/classes --
/home/someDir/servlets

So I can access from tomcat by http://ourserver:8090/servlets/TestServlet
It works on tomcat. (I wonder if this is the right way to deal with our
situation?)

However, when I access the same servlet class from apache (default port 80),

http://ourserver/servlets/TestServlet, I see the Save As window
open with TestServlet.html displayed in the File name field.  It seems
apache does
not communicate with tomcat correctly.  

So I changed the include statement in httpd.conf, using mod_jk.conf-local
instead.
I tried to play with the mod_jk.conf-local to find a way to make it work,
but failed.

I found I could configure server.xml and mod_jk.conf-local using any alias
preceding 
/servlets, then the servlet class under /home/someDir/servlets will work
when access
from both tomcat (port 8090) and apache (default port ).  The urls look like
the following:
  tomcat:http://ourserver:8090/mytest/servlets/TestServlet
  apache:http://ourserver/mytest/servlets/TestServlet

But this is not what we want.  Is there any way we can configure
apache/tomcat so that we
can access /servlets directly from the apache server root?

Thanks for any information!

***  End of the copied Message ***

--

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 12:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem mapping servlets to /servlets/*


On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

 Milt and Martin,

 Thanks very much for your response!
 I would like to put all servlet classes in WEB-INF directory by
 following the standard, but our people prefer to keep their original
 ~/servlets directory for servlet classes.  So what I did was using
 Unix symbolic link to let /mytest/WEB-INF/classes --
 /mytest/servlets.  It works with Tomcat, but not apache. Any better
 way to deal with this?

 In mod_jk.conf-local,
 I used JkMount /servlets/* ajp12
JkMount /*.jsp ajp12

 Do I need to use JkMount /mytest /
   or JkMount /mytest/servlets/* /servlets/*  ?
  I have not done these because I do not know much about the JkMount
syntax.

I think you're going to have to do some more of your own debugging.
Or at least provide some more information.  Things to look at include:

  What URL(s) you are using
  What is happening (as opposed to just it's not working)
Is it a 404 Not Found?  Or some other web server error?
Is the error coming from Apache or Tomcat?
You should be able to tell from the format of the error page,
and/or you can look in the respective log files

My guess is the problem has to do with Apache not knowing to pass the
URL(s) in question to Tomcat.  That usually means you need to
add/change something in your tomcat/apache conf file.


 I only revised existing lines in mod_jk.conf.  I used
 mod_jk.conf-local because I found mod_jk.conf-auto did not include
 my setup in server.xml.  Instead, it only covered everything under
 $TOMCAT_HOME/webapps into its contexts.

 To make it simple, I did not try to figure out how to change the way
 mod_jk.conf-auto was created, but decided to use mod_jk.conf-local
 instead.

Good idea, because I don't believe you can 100% control what goes into
mod_jk.conf-auto.  General advice seems to me copy it, modify it, and
use the modified one.


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 11:28 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problem mapping servlets to /servlets/*


 On Mon, 23 Apr 2001, Lian, Xiaobu (Alice) (Xiaobu (Alice)) wrote:

  You are right, I did put /mytest under root context in server.xml.
  It works within tomcat, but not with apache. I just found it is hard
  to configure mod_jk.conf if I want to use root as the prefix of
  servlets.  Any 

  1   2   3   >