Installing in Redhat 7.0

2001-02-05 Thread Peter B. West

I seem to have successfully installed tomcat and cocoon in a Redhat 7.0
system.  I used Henri Gomez' rpms.  One comment on the contents of
/etc/httpd/conf/workers.properties file.  It contained

#
# The JVM that we are about to use
#
# This is for Java2
#
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll

Is this value used?  I replaced the .dll with libjvm.so

One other comment.  After installing cocoon 1.8.1, I was trying to
access Cocoon.xml as localhost/Cocoon.xml.  This did not work, but
localhost/cocoon/Cocoon.xml did.  I seem to recall the
localhost/Cocoon.xml worked when using mod_jserv.

Peter
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Session MaxInactiveInterval Problem....;-(

2001-02-05 Thread John Clark L. Naldoza

I've been banging my head for the last couple of days on this one... 



doPost() called [Mon Feb 05 16:47:34 CST 2001]
Connection == [Keep-Alive]
Content-Length == [50]
From   == [null]
Host   == [penguin:8080]
processLogin() called [Mon Feb 05 16:47:34 CST 2001]
AutoLogout Value == [50]
starting session for [njclark] : Date == [Mon Feb 05 16:47:34 CST 2001]
processLogin() finished [Mon Feb 05 16:47:34 CST 2001]
stopping session for [njclark] : Date == [Mon Feb 05 16:48:17 CST 2001]

TOTAL TIME ELAPSED == 43


doPost() called [Mon Feb 05 16:49:00 CST 2001]
Connection == [Keep-Alive]
Content-Length == [50]
From   == [null]
Host   == [penguin:8080]
processLogin() called [Mon Feb 05 16:49:00 CST 2001]
AutoLogout Value == [50]
starting session for [njclark] : Date == [Mon Feb 05 16:49:00 CST 2001]
processLogin() finished [Mon Feb 05 16:49:00 CST 2001]
stopping session for [njclark] : Date == [Mon Feb 05 16:50:17 CST 2001]

TOTAL TIME ELAPSED == 67


doPost() called [Mon Feb 05 16:50:50 CST 2001]
Connection == [Keep-Alive]
Content-Length == [50]
From   == [null]
Host   == [penguin:8080]
processLogin() called [Mon Feb 05 16:50:50 CST 2001]
AutoLogout Value == [50]
starting session for [njclark] : Date == [Mon Feb 05 16:50:50 CST 2001]
processLogin() finished [Mon Feb 05 16:50:50 CST 2001]
stopping session for [njclark] : Date == [Mon Feb 05 16:52:17 CST 2001]

TOTAL TIME ELAPSED == 87


doPost() called [Mon Feb 05 16:52:45 CST 2001]
Connection == [Keep-Alive]
Content-Length == [50]
From   == [null]
Host   == [penguin:8080]
processLogin() called [Mon Feb 05 16:52:45 CST 2001]
AutoLogout Value == [50]
starting session for [njclark] : Date == [Mon Feb 05 16:52:45 CST 2001]
processLogin() finished [Mon Feb 05 16:52:45 CST 2001]
stopping session for [njclark] : Date == [Mon Feb 05 16:54:17 CST 2001]

TOTAL TIME ELAPSED == 92


doPost() called [Mon Feb 05 16:57:01 CST 2001]
Connection == [Keep-Alive]
Content-Length == [50]
From   == [null]
Host   == [penguin:8080]
processLogin() called [Mon Feb 05 16:57:01 CST 2001]
AutoLogout Value == [50]
starting session for [njclark] : Date == [Mon Feb 05 16:57:01 CST 2001]
processLogin() finished [Mon Feb 05 16:57:01 CST 2001]
stopping session for [njclark] : Date == [Mon Feb 05 16:58:17 CST 2001]

TOTAL TIME ELAPSED == 76




The values does not seem to be consistent...;-(


-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 241-4612 \   \
  /   / email: [EMAIL PROTECTED]\   \

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




servlet security

2001-02-05 Thread shlomi sarfati

can tomcat give authentication to a servlet ?

I want to add a user name and password requirements to a particular servlet
how can I do it ??

thanks ahead
shlomi



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Is the server.xml using server.dtd?

2001-02-05 Thread joeri

Hi,

I'm (still) using TOMCAT Version 3.1. I'd like to change the port for my
servlets and JSP-pages from 8080 to 80. Now, I assume you have to change
these settings in the file "server.xml". I have two questions regarding
this file:

1. Why isn't the "server.dtd" used in the "server.xml"? The structure in
the DTD-file is different from the one in the XML-file. The DTD-structure
corresponds to the one in the book I'm using "Core Servlets and JavaServer
Pages" (Marty Hall), the XML-file doesn't!

2. How can I be sure the default port number for my servlets is 80? I'm
using the PWS 4.0 and the "isapi_redirect.dll".

Regards,

Joeri Theelen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Where is mod_jk.so for WIN32?

2001-02-05 Thread R N Mukherjee


SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat connectin in
win 98)

URL address will be most helpful.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SERVELET ClasspathWOES

2001-02-05 Thread R N Mukherjee


SUB: How should the CLASSPATH be set for compiling a servlet file
containing BOTH USERDEFINED packages  BUILT-IN java packages. (presently
gives compile error with javax.http.servlet not found)

My servelet code is

/*user defined html package saved in c:mypackage*/
import mypackage.html.*;
import javax.servlet.*;
import.javax.servlet.http.*;

COMPILE ERROR
the user defined html package is found, but not the javax.servet package.

Classpath is set as follows
set classpath=.;c:\mypackage;c:\jsdk2.0\lib\jsdk.jar;

Please suggest How should the classpath be set for RECOGNISING BOTH user
defined packages and javax.servlet packages at the same time.









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




mod_jk: build problem OpenBSD 2.8

2001-02-05 Thread Tobias Oberstein

Hi there,

I'm having a hard time trying to get the mod_jk.so properly built.
My environment is as follows:

  * OpenBSD 2.8 Rel. / i386
  * JDK 1.1.8 (actually, the FreeBSD port of SUNs JDK)


Please help - after reading through all the dox and mailing lists I'm still
lost.

My only guess is, that I need to get the IBM compilers, as the problem seems
to be related to JNI ??

Greets,
Toby


PROBLEM DESCRIPTION


I'm executing the following from

/usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3

/usr/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/includ
e/freebsd -DFREEBSD -I/usr/lib/apache/include -I../jk mod_jk.c ../jk/*.c


The Output is as follows ..

cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c mod_jk.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp12_worker.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp13.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_ajp13_worker.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_connect.c
cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT -I../li
b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include -I/usr/local/jd
k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -I/usr/lib/apache/inclu
de -I../jk -DFREEBSD  -c ../jk/jk_jni_worker.c
../jk/jk_jni_worker.c:764: warning:
#warning ---
../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR
JAVA 2 FEATURES DISABLED
../jk/jk_jni_worker.c:766: warning:
#warning ---
../jk/jk_jni_worker.c: In function `load_jvm_dll':
../jk/jk_jni_worker.c:724: `RTLD_NOW' undeclared (first use in this
function)
../jk/jk_jni_worker.c:724: (Each undeclared identifier is reported only once
../jk/jk_jni_worker.c:724: for each function it appears in.)
../jk/jk_jni_worker.c:724: `RTLD_GLOBAL' undeclared (first use in this
function)
apxs:Break: Command failed with rc=65536
root:mabuse #


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




User Authentication using the Windows NT Authentication

2001-02-05 Thread Rahul Desai



Hi,


I am building a system for the Intranet. We have a NT network. I wanted to 
know if by any means I can use the username and password that is registered in 
the NT Server as the mode of authentication for my site built on Tomcat?

This is possible with the IIS.But I am not sure how it manages.In the 
management console there is an option to do that.I am not able to figure out 
anything with either Apache or Tomcat.


Any Ideas??

Rahul Desai
Software Engineer
Aztec Software
Bangalore - India

BEGIN:VCARD
VERSION:2.1
N:Desai;Rahul;R.M
FN:Rahul R.M Desai
NICKNAME:Rahul
ORG:Aztec Software And Technology Services
TITLE:Developer ( Software Engineer )
TEL;WORK;VOICE:+91-80-5522892 / 93
TEL;HOME;VOICE:6610320
TEL;WORK;FAX:+91-80-5521987
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;23, 3rd 'A' cross,=0D=0A18th main, 6th block,=0D=0AKoramangala;Bangalore;K=
arnataka;560 095;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23, 3rd 'A' cross,=0D=0A18th main, 6th block,=0D=0AKoramangala=0D=0ABangalor=
e, Karnataka 560 095=0D=0AIndia
ADR;HOME;ENCODING=QUOTED-PRINTABLE:;;#108, "Anagha Apts."=0D=0AII main, Gavipuram Extn.,=0D=0AHanumanthanagar;B=
angalore;Karnataka;560019;India
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:#108, "Anagha Apts."=0D=0AII main, Gavipuram Extn.,=0D=0AHanumanthanagar=0D=
=0ABangalore, Karnataka 560019=0D=0AIndia
X-WAB-GENDER:2
URL:http://geocities.com/rrmdesai
URL:http://www.aztec.soft.net
BDAY:19780324
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20010205T095131Z
END:VCARD



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Solaris 8, apache and mod_jk - problem

2001-02-05 Thread Eoin McCarthy



Hi, 

I'm trying to configure apache 1.3.9  and tomcat 3.2 with mod_jk under
Solaris 8.  I'm using the example contexts supplied with the 
tomcat.

A standalone configuration of tomcat serves the contexts OK as does tomcat
with apache using mod_jserv. However, I
can't get jsps to run using mod_jk - when I try to run one I just get the
source code. Servlets are also problematic:
for the provided webapps/examples context, the servlets run OK if I do not
explicitly specify that context in the server.xml file. 
If I specify it, tomcat complains that it can't find the file (and yes, I
have the location right).

I suspect that the workers.properties file is the problem seeing as I'm
following the off-the-shelf configurations for
tomcat. However, the provided workers.properties file refers to DLLs,
indicating a win32 setup. I've set the paths required as per 
my system but I may be missing something - the output from the mod_jk logs
seems to indicate that mod_jk can't find a worker for
jsps. I've tried both ajp12 and ajp13.

The configuration files I'm using are attached. 

Any help would be greatly appreciated. 
Eoin McCarthy


 tomcat-jk-2.conf 


 workers.properties 


 httpd.conf 


 server.xml 





 tomcat-jk-2.conf
 workers.properties
 httpd.conf
 server.xml

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Datasources?

2001-02-05 Thread Robert Keith

Hi Guys,

In the EJB Specification there is a way of specifying a global datasource
for all applications. This can be looked up using JNI. Is there something
similar in tomcat, can I define a datasource that all applications can use,
or do I need to write my own property file or something?

cheers

Robert Keith

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: Solaris 8, apache and mod_jk - problem

2001-02-05 Thread Thomas Bezdicek

Hi,

We had the same problem and solved it by copying the tools.jar into
$TOMCAT_HOME/lib.

BTW: dont use the Hotspot-Engine with -server Parameter it would
crash at sometime with signal 11, it is a bug, use -client Parameter.

regards, tom


-Ursprngliche Nachricht-
Von: Eoin McCarthy [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 05. Februar 2001 11:56
An: '[EMAIL PROTECTED]'
Betreff: Solaris 8, apache and mod_jk - problem




Hi,

I'm trying to configure apache 1.3.9  and tomcat 3.2 with mod_jk under
Solaris 8.  I'm using the example contexts supplied with the
tomcat.

A standalone configuration of tomcat serves the contexts OK as does tomcat
with apache using mod_jserv. However, I
can't get jsps to run using mod_jk - when I try to run one I just get the
source code. Servlets are also problematic:
for the provided webapps/examples context, the servlets run OK if I do not
explicitly specify that context in the server.xml file.
If I specify it, tomcat complains that it can't find the file (and yes, I
have the location right).

I suspect that the workers.properties file is the problem seeing as I'm
following the off-the-shelf configurations for
tomcat. However, the provided workers.properties file refers to DLLs,
indicating a win32 setup. I've set the paths required as per
my system but I may be missing something - the output from the mod_jk logs
seems to indicate that mod_jk can't find a worker for
jsps. I've tried both ajp12 and ajp13.

The configuration files I'm using are attached.

Any help would be greatly appreciated.
Eoin McCarthy


 tomcat-jk-2.conf


 workers.properties


 httpd.conf


 server.xml






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: simple question about servlet development

2001-02-05 Thread Robuschi \(Delfi\)

I developed some servlets and I didn't restarted Tomcat each time. I thing
you can simply put the new servlets over the oldest ones and then try
them.

Hope this helps.

Robuschi Roberto  Delfi srl
P.za Ravenet 1/b - 43100 PARMA
Tel. 0521/932474 Fax 0521/989045
[EMAIL PROTECTED] --- http://www.delfi.it


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Logging errors on Tomcat Startup

2001-02-05 Thread Dusan Petrovic




Hi,
I have problem during the start of TomCat 
server
tomcat start

After few seccond, TomCut write some errors on the 
screen and then that window desappear. I can not see what is the problem. My 
question is: Can I see log of those errors???

Thanks!!!


RE: Logging errors on Tomcat Startup

2001-02-05 Thread Xavier



It is very often due to the fact you forgot to set the 
environement variables TOMCAT_HOME ant JAVA_HOME in the startup.bat 
file.
Or maybe if you use Apache as a static page web server, 
the line used to include the Tomcat.conf file is not well 
written.

  -Original Message-From: Dusan Petrovic 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 2001 
  12:20 PMTo: [EMAIL PROTECTED]Subject: 
  Logging errors on Tomcat Startup
  
  Hi,
  I have problem during the start of TomCat 
  server
  tomcat start
  
  After few seccond, TomCut write some errors on 
  the screen and then that window desappear. I can not see what is the problem. 
  My question is: Can I see log of those errors???
  
  Thanks!!!


Re: Logging errors on Tomcat Startup

2001-02-05 Thread Robuschi \(Delfi\)

I already had this problem. are you using version 3.1 or 3.0 ?
If you're, you can try restarting the PC if it is the same, reinstall
Java

Bye

Robuschi Roberto  Delfi srl
P.za Ravenet 1/b - 43100 PARMA
Tel. 0521/932474 Fax 0521/989045
[EMAIL PROTECTED] --- http://www.delfi.it


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Logging errors on Tomcat Startup

2001-02-05 Thread Dusan Petrovic



Tomcat is working OK. The problem is in deploying 
some my application. I want to se error log file, to corect errors in my 
application.

- Original Message - 

  From: 
  Xavier 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 05, 2001 
  12:27
  Subject: RE: Logging errors on Tomcat 
  Startup
  
  It is very often due to the fact you forgot to set 
  the environement variables TOMCAT_HOME ant JAVA_HOME in the startup.bat 
  file.
  Or maybe if you use Apache as a static page web 
  server, the line used to include the Tomcat.conf file is not well 
  written.
  
-Original Message-From: Dusan Petrovic 
[mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 
2001 12:20 PMTo: 
[EMAIL PROTECTED]Subject: Logging errors on Tomcat 
Startup

Hi,
I have problem during the start of TomCat 
server
tomcat start

After few seccond, TomCut write some errors on 
the screen and then that window desappear. I can not see what is the 
problem. My question is: Can I see log of those 
errors???

Thanks!!!


Re: Logging errors on Tomcat Startup

2001-02-05 Thread Dusan Petrovic

v3.2

Tomcat is working OK. The problem is in deploying some my application. I
want to se error log file, to corect errors in my application.

Thanks !!!

- Original Message -
From: "Robuschi (Delfi)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 05, 2001 12:26
Subject: Re: Logging errors on Tomcat Startup


 I already had this problem. are you using version 3.1 or 3.0 ?
 If you're, you can try restarting the PC if it is the same, reinstall
 Java

 Bye

 Robuschi Roberto  Delfi srl
 P.za Ravenet 1/b - 43100 PARMA
 Tel. 0521/932474 Fax 0521/989045
 [EMAIL PROTECTED] --- http://www.delfi.it


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Logging errors on Tomcat Startup

2001-02-05 Thread Alistair Hopkins



Use 

tomcat 
run
instead.

That 
way, it will execute in your local window instead of spaawning a new one, and 
you will see the messages in your window after java exits. 


  -Original Message-From: Xavier 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 2001 11:28 
  AMTo: [EMAIL PROTECTED]Subject: RE: Logging 
  errors on Tomcat Startup
  It is very often due to the fact you forgot to set 
  the environement variables TOMCAT_HOME ant JAVA_HOME in the startup.bat 
  file.
  Or maybe if you use Apache as a static page web 
  server, the line used to include the Tomcat.conf file is not well 
  written.
  
-Original Message-From: Dusan Petrovic 
[mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 
2001 12:20 PMTo: 
[EMAIL PROTECTED]Subject: Logging errors on Tomcat 
Startup

Hi,
I have problem during the start of TomCat 
server
tomcat start

After few seccond, TomCut write some errors on 
the screen and then that window desappear. I can not see what is the 
problem. My question is: Can I see log of those 
errors???

Thanks!!!


SERVLET TIMEOUT

2001-02-05 Thread schalk

  My servlet won't stay loaded.  Is there a default time limit for 
unused servlets?  If so, how can I override it.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Solaris 8, apache and mod_jk - problem

2001-02-05 Thread Eoin McCarthy


Hi, 

Just tried this. Unfortunately, it didn't work - java/lib/tools.jar was
already on the classpath
on startup and copying it to $TOMCAT_HOME/lib didn't have any effect. 

Thanks,
EOin

-Original Message-
From: Thomas Bezdicek [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: AW: Solaris 8, apache and mod_jk - problem


Hi,

We had the same problem and solved it by copying the tools.jar into
$TOMCAT_HOME/lib.

BTW: dont use the Hotspot-Engine with -server Parameter it would
crash at sometime with signal 11, it is a bug, use -client Parameter.

regards, tom


-Ursprngliche Nachricht-
Von: Eoin McCarthy [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 05. Februar 2001 11:56
An: '[EMAIL PROTECTED]'
Betreff: Solaris 8, apache and mod_jk - problem




Hi,

I'm trying to configure apache 1.3.9  and tomcat 3.2 with mod_jk under
Solaris 8.  I'm using the example contexts supplied with the
tomcat.

A standalone configuration of tomcat serves the contexts OK as does tomcat
with apache using mod_jserv. However, I
can't get jsps to run using mod_jk - when I try to run one I just get the
source code. Servlets are also problematic:
for the provided webapps/examples context, the servlets run OK if I do not
explicitly specify that context in the server.xml file.
If I specify it, tomcat complains that it can't find the file (and yes, I
have the location right).

I suspect that the workers.properties file is the problem seeing as I'm
following the off-the-shelf configurations for
tomcat. However, the provided workers.properties file refers to DLLs,
indicating a win32 setup. I've set the paths required as per
my system but I may be missing something - the output from the mod_jk logs
seems to indicate that mod_jk can't find a worker for
jsps. I've tried both ajp12 and ajp13.

The configuration files I'm using are attached.

Any help would be greatly appreciated.
Eoin McCarthy


 tomcat-jk-2.conf


 workers.properties


 httpd.conf


 server.xml






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: User Authentication using the Windows NT Authentication

2001-02-05 Thread Michael Percy

Actually, this month's Linux magazine talks about using PAM for user
authentication (article on PAM and Samba for Win integration). It basically
is aa Apache module that lets you authenticate users against a PDC (I
believe), you'll need to look into it as I don't know enough about it to
give details.

Good luck,
Mike

-Original Message-
From: Rahul Desai
To: Tomcat User at Jakarta(Apache)
Sent: 2/5/01 1:51 AM
Subject: User Authentication using the Windows NT Authentication

Hi,
 
 
I am building a system for the Intranet. We have a NT network. I wanted
to know if by any means I can use the username and password that is
registered in the NT Server as the mode of authentication for my site
built on Tomcat?
 
This is possible with the IIS.But I am not sure how it manages.In the
management console there is an option to do that.I am not able to figure
out anything with either Apache or Tomcat.
 
 
Any Ideas??
 
Rahul Desai
Software Engineer
Aztec Software
Bangalore - India
 Rahul R.M Desai.vcf  ATT121389.txt 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SSL Help

2001-02-05 Thread venkatesan

Hi All,
 I am developing web applications using servlets, Rmi, Sql-server and
Tomcat in Apache web server under Linux platform. I would like to use SSL. Can
any body tell that where can i get SSL for tomcat. How can i do it using
Tomcat..
Thanks in advance...

cheers
Venkateh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: quick Tomcat question

2001-02-05 Thread William Brogden



R N Mukherjee wrote:
 
 SUB: is TOMCAT is a JSP ENGINE + SERVELET ENGINE or ONLY A JSP ENGINE.??
 
 If it is JSP + Servelets then why we have to run JSDK for testing the JSP
 files.?
 

You should totally remove all traces of JSDK library from your system 
because the jsdk.jar library interferes with the more up to date
Tomcat library - servlet.jar
-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Logging errors on Tomcat Startup

2001-02-05 Thread gerd trautner

see server.xml in tomcat/conf

:add
path="logs/tomcat.log"
to Logger name="tc_log"...

Dusan Petrovic wrote:

 Hi,I have problem during the start of TomCat servertomcat start After few seccond, 
TomCut write some errors on the screen and then that window desappear. I can not see 
what is the problem. My question is: Can I see log of those errors??? Thanks!!!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




A lot of params equals in web.xml

2001-02-05 Thread Alberto

Hi everyone.
I've a question:
in my web.xml I have a lot of servlets that use the same set of parameters
(same param name, same param value). The value of these parameters could
change a lot of time in a month so:
there's a way to write only one set of param name / param value and call it
in all my servlet?



I thought something like
.
param set
   set nameparam_set_name/set name
param-namemyparam/param-name
param-valuemyvalue/param-value
/param set

servlet
servlet-name
myservlet
/servlet-name
servlet-class
my.class
/servlet-class
init-param
param setparam_set_name/param set
/init-param
/servlet


Is there yet anything like this or I'm asking for a necessity never found
before?
Thank's a lot to everyone

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Logging errors on Tomcat Startup

2001-02-05 Thread Gallicus


 Hi,I have problem during the start of TomCat servertomcat start After few
seccond, TomCut write some errors on the screen and then that window
desappear. I can not see what is the problem. My question is: Can I see log
of those errors??? Thanks!!!

If you are using NT or 2000 Windows Os try starting Tomcat, instead of by
doubleclikking the start bat file, calling the bat file from a OS command
windows. In this way the window doasn,'t desappear immediatly and you have
time to read your errors

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: SSL Help

2001-02-05 Thread Coetmeur, Alain



browse the archive those recent days/weeks

the secret are:

it is advised to use apache with openssl (mod_ssl or apache+ssl)
as the SSL processor and just configure it
to delegate servlet and JSP to tomcat...
look at http://www.modssl.org/
or http://www.apache-ssl.org/
for explanations, install doc, binaries, advices...

anyway you can make tomcat able to serve SSL directly.
install JSSE from SUN as documented
(detail in some of my former messages here)
this include putting the.jar in a lib or lib/ext directory
as explaine, and twickle some security.properties

create private key in the java keystore, produce a 
certificate (externaly or auto-certifies) with CN=the.dns.name.of.my.tomcat
and add the certificate to the java keystore...

modify the server.xml as explained
in come comments... (I've send here a working server.xml)

add some options in TOMCAT_OPTS (in tomcat.bat) so that URL Factory
supports SSL, and JSSE can find the truststore...
set TOMCAT_OPTS=%TOMCAT_OPTS% 
  -Djavax.net.ssl.trustStore="%TOMCAT_HOME%/../openssl/maui/cacerts" 
  -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol 

may the force be with you.
you can do it!
this can work, I've tested !

 -Message d'origine-
 De: venkatesan [mailto:[EMAIL PROTECTED]]
 Date: lundi 5 fvrier 2001 12:50
 : [EMAIL PROTECTED]
 Objet: SSL Help
 
 
 Hi All,
  I am developing web applications using servlets, 
 Rmi, Sql-server and
 Tomcat in Apache web server under Linux platform. I would 
 like to use SSL. Can
 any body tell that where can i get SSL for tomcat. How can i 
 do it using
 Tomcat..
 Thanks in advance...
 
 cheers
 Venkateh
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Logging errors on Tomcat Startup

2001-02-05 Thread Etienne Baert \(SPS Office\)

Or you simply add the "pause" command at the end of the .bat file ...

-Original Message-
From: Gallicus [mailto:[EMAIL PROTECTED]]
Sent: lundi 5 fvrier 2001 13:25
To: [EMAIL PROTECTED]
Subject: Re: Logging errors on Tomcat Startup



 Hi,I have problem during the start of TomCat servertomcat start After few
seccond, TomCut write some errors on the screen and then that window
desappear. I can not see what is the problem. My question is: Can I see log
of those errors??? Thanks!!!

If you are using NT or 2000 Windows Os try starting Tomcat, instead of by
doubleclikking the start bat file, calling the bat file from a OS command
windows. In this way the window doasn,'t desappear immediatly and you have
time to read your errors

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: A lot of params equals in web.xml

2001-02-05 Thread David Nyakundi

Try this for each of your servlets:

servlet
.
param-nameproperties/param-name
   param-valueWEB-INF/servlet.properties/param-value


/servlet

where servlet.properties contains all the params required by your servlets.


- Original Message -
From: "Alberto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 05, 2001 3:18 PM
Subject: A lot of params equals in web.xml


 Hi everyone.
 I've a question:
 in my web.xml I have a lot of servlets that use the same set of parameters
 (same param name, same param value). The value of these parameters could
 change a lot of time in a month so:
 there's a way to write only one set of param name / param value and call
it
 in all my servlet?



 I thought something like
 .
 param set
set nameparam_set_name/set name
 param-namemyparam/param-name
 param-valuemyvalue/param-value
 /param set

 servlet
 servlet-name
 myservlet
 /servlet-name
 servlet-class
 my.class
 /servlet-class
 init-param
 param setparam_set_name/param set
 /init-param
 /servlet
 

 Is there yet anything like this or I'm asking for a necessity never found
 before?
 Thank's a lot to everyone

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Newbie Question

2001-02-05 Thread Mike S. Avelar

I just installed Tomcat 3.2 on Apache 1.3.14. Installed like a
charm, all I had to do was restart both services and Apcahe was feeding
up the static stuff and Tomcat the JSP/JavaServlets.
For the last few days I've been thrying to comprehend the "User's
Guide"... Maybe its just me... where can I find some detailed
documentation on how to configure tomcat (I'm talking documentaion for
dumb asses).

Another thing. I've noticed that there is a http://localhost/admin
and it supposedly gives you the ability to view/delete/create contexts.
It prompts me for a uid/pw when I try to use it... In the server.xml
file is says (in lamans terms) that if you want to use it 'don't forget
to set a password' it doesn't tell me how to set a password. Can
anyone help me before I hurt myself on my desk?

--
Mike S. Avelar
[EMAIL PROTECTED]

- Bang head here 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: A lot of params equals in web.xml

2001-02-05 Thread William Brogden



Alberto wrote:
 
 Hi everyone.
 I've a question:
 in my web.xml I have a lot of servlets that use the same set of parameters
 (same param name, same param value). The value of these parameters could
 change a lot of time in a month so:
 there's a way to write only one set of param name / param value and call it
 in all my servlet?
 

Sure - create all of those name/value pairs in a properties file
and have web.xml point to it.
In your init method use a java.util.Properties object to read
the properties file and recover the parameters that servlet needs.

I do this all the time, makes it easy to synchronize all servlets
with the same properties.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: SERVLET TIMEOUT

2001-02-05 Thread Michael Wentzel

   My servlet won't stay loaded.  Is there a default time limit for 
 unused servlets?  If so, how can I override it.

Are you sure that's what's happening?  Try putting a debug
output line in your servlets init() method to make sure that
it is actually getting reloaded.

---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




configurable params in server.xml and/or web.xml

2001-02-05 Thread Vijay Prabhakar
Title: configurable params in server.xml and/or web.xml






I'd like to add some configurable parameters for an interceptor in server.xml. Do you just have to write get/set methods for that variable and add the parameters as is done with JDBCRealm (below)?

 RequestInterceptor 

 className=org.apache.tomcat.request.JDBCRealm 

 debug=99 

  driverName=sun.jdbc.odbc.JdbcOdbcDriver 

  connectionURL=jdbc:odbc:TOMCAT 

  userTable=users 

 userNameCol=user_name 

 userCredCol=user_pass 

  userRoleTable=user_roles 

 roleNameCol=role_name /

 

and then add some methods like getUserNameCol() and setUserNameCol()? 


-Vijay





SERVELET ClasspathWOES

2001-02-05 Thread R N Mukherjee


SUB: How should the CLASSPATH be set for compiling a servlet file
containing BOTH USERDEFINED packages  BUILT-IN java packages. (presently
gives compile error with javax.http.servlet not found)

My servelet code is

/*user defined html package saved in c:mypackage*/
import mypackage.html.*;
import javax.servlet.*;
import.javax.servlet.http.*;

COMPILE ERROR
the user defined html package is found, but not the javax.servet package.

Classpath is set as follows
set classpath=.;c:\mypackage;c:\jsdk2.0\lib\jsdk.jar;

Please suggest How should the classpath be set for RECOGNISING BOTH user
defined packages and javax.servlet packages at the same time.









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Where is mod_jk.so for WIN32?

2001-02-05 Thread R N Mukherjee


SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat connectin in
win 98)

URL address will be most helpful.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Where is mod_jk.so for WIN32?

2001-02-05 Thread Michael Wentzel

 SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat 
 connectin in
 win 98)
 
 URL address will be most helpful.

There is no mod_jk.so for win32.  A .so is a static library
in linux.  Should be a dll you're looking for.

---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




What do these messages mean?

2001-02-05 Thread Rogério Meneguelli Gatto

I'm experiencing some stability problems with my Tomcat setup:

Linux 2.2.18
IBM JDK 1.3
Tomcat 3.2.1

What do these messages mean in tomcat.log, verbosity=INFORMATION:

2001-01-31 08:45:55 - Ctx(  ): 400 R( /) null

This one is pretty common, and there are also some of these:

2001-01-31 11:22:44 - ContextManager: Error reading request, ignored - 
java.lang.NullPointerException
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java(Compiled
 
Code))
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled 
Code))
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)

2001-01-31 11:23:07 - ContextManager: Error reading request, ignored - 
java.lang.NullPointerException
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java(Compiled
 
Code))
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled 
Code))
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)

Any help appreciated.

Regards,
-- 
Rogrio Meneguelli Gatto |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informtica  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: A lot of params equals in web.xml

2001-02-05 Thread niv the tool

better use
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
context-param
param-nameproxy_server/param-name
param-valuelabproxy/param-value
/context-param
context-param
param-nameproxy_port/param-name
param-value8080/param-value
/context-param
.
.
.

and in your servlet use

  /**Initialize global variables*/
  public void init(ServletConfig config) throws ServletException
  {
super.init(config);
ServletContext context = config.getServletContext();
PROXY_SERVER = context.getInitParameter("proxy_server");

Niv Maman - Vice President, RD
Movious Inc.

E-mail : [EMAIL PROTECTED]
Mobile : +972 54 830880
Tel: +972 9 8858555
Fax: +972 9 8858556



-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: A lot of params equals in web.xml




Alberto wrote:

 Hi everyone.
 I've a question:
 in my web.xml I have a lot of servlets that use the same set of parameters
 (same param name, same param value). The value of these parameters could
 change a lot of time in a month so:
 there's a way to write only one set of param name / param value and call
it
 in all my servlet?


Sure - create all of those name/value pairs in a properties file
and have web.xml point to it.
In your init method use a java.util.Properties object to read
the properties file and recover the parameters that servlet needs.

I do this all the time, makes it easy to synchronize all servlets
with the same properties.

--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: SERVLET TIMEOUT

2001-02-05 Thread schalk

Michael:

   I have a database connection pool servlet which loads on startup.  It 
works fine, but if I don't give it a workout on my test site often 
enough, it disappears.  I suspect Tomcat destroys idle servlets after a 
certain time has elapsed, but I can't find documentation on this.  I 
don't know if I need to do something with the Tomcat configuration, of 
modify my servlet so it will be left alone.  There is no doubt that the 
servlet loads on startup, and remains active for a while.

   Thanks much for the response.

   --  David   

Michael Wentzel wrote:

   My servlet won't stay loaded.  Is there a default time limit for 
 unused servlets?  If so, how can I override it.
 
 
 Are you sure that's what's happening?  Try putting a debug
 output line in your servlets init() method to make sure that
 it is actually getting reloaded.
 
 ---
 Michael Wentzel
 Software Developer
 A HREF="http://www.aswethink.com"Software As We Think/A
 A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Logging errors on Tomcat Startup

2001-02-05 Thread RK



If you are on Windows, try the 
following.

See the log files
Start tomcat from the DOS window with the following 
command that saves the output to a file
tomcat run tomcat.out 21
tomcat.out contains the error log. Use your 
favorite editor (emacs! :-)) to look at the log.




  - Original Message - 
  From: 
  Dusan Petrovic 
  To: [EMAIL PROTECTED] 
  Sent: Monday, February 05, 2001 3:19 
  AM
  Subject: Logging errors on Tomcat 
  Startup
  
  
  Hi,
  I have problem during the start of TomCat 
  server
  tomcat start
  
  After few seccond, TomCut write some errors on 
  the screen and then that window desappear. I can not see what is the problem. 
  My question is: Can I see log of those errors???
  
  Thanks!!!


Re: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-05 Thread Ed Mooney

Use the -S switch to apxs:

-S CFLAGS=-DSTDAPI

You probably will also need to specify:

-S CFLAGS=-DMOD_PERL -S CFLAGS=-DUSE_EXPAT -S CFLAGS=-O

(which apxs otherwise would set by default).

Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
XML Technology Center |UBUR02-201|an arrow, but
[EMAIL PROTECTED] |1 Network Drive   |fruit flies like
781-442-0459  |Burlington, MA  01803 |a banana. Groucho

 Original Message 

On 2/4/01, 12:58:02 PM, "J." "J." Merelo [EMAIL PROTECTED] wrote 
regarding Re: Problems with mod_jk.so, RH7.0, binary/compiled:

 GOMEZ Henri escribi?:

  That means that I can recompile it using -DSTDAPI or something
  like that? If
  it's that easy, I can do it myself...
 
  Just use the apxs command, it will set the necessary flags :-)

 Yep, but it looks like it sets EAPI by default, and there does not seem
 to be a way to undef it.

 J



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Where is mod_jk.so for WIN32?

2001-02-05 Thread Steve Smale


In the standard downloads directory, ie:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/mod_jk.dll

Hope this helps,
Steve


On Mon, 5 Feb 2001, Michael Wentzel wrote:

  SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat
  connectin in
  win 98)
 
  URL address will be most helpful.

 There is no mod_jk.so for win32.  A .so is a static library
 in linux.  Should be a dll you're looking for.

 ---
 Michael Wentzel
 Software Developer
 A HREF="http://www.aswethink.com"Software As We Think/A
 A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-- 
Steve Smale
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: quick Tomcat question

2001-02-05 Thread Xavier

Tomcat is Jsp engine + Servlet engine + light Web server.
Jsp/Servlet engine for dynamic pages publishing.
light Web Server for static pages publishing as a Apache replacement for
test purpose.

Forget all about Jsdk and replace/add servlet.jar to your Classpath.


-Original Message-
From: R N Mukherjee [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 8:12 AM
To: [EMAIL PROTECTED]
Subject: quick Tomcat question




SUB: is TOMCAT is a JSP ENGINE + SERVELET ENGINE or ONLY A JSP ENGINE.??

If it is JSP + Servelets then why we have to run JSDK for testing the JSP
files.?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




new user please correct me................

2001-02-05 Thread mathew

Hi

I read thru the tomcat documentation and this is what i understood.

Please correct me if there is any problem.

we are running

OS -R H LINUX 6.2

WebServer - Apache 1.3.14

Tomcat -3.2.1

and I

1. Copied the tomcat directory to /usr/
2. Since libexec directory was not there for apache  created libexec
directory
3. Copied mod_jk.so to the libexec directory.
4. Inserted "include /usr/tomcat/conf.mod_jk.conf" into httpd.conf of
apache.
5. Modified TOMCAT-HOME, JAVA-HOME, and ps in workers.properties.
6. Added the following block to server.xml
Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler " value =
"org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
 Parameter name="port" value="8009"/
/Connector


That's all with my installation.


Now I have 2 domains www.host1.com, www.host2.com and it is configured in
httpd.conf
and is running well with perl.

To enable them with servlets
1. Created servlets directory and copied WEB-INF and META-INF to the
directories.
2. Copied servlet classes to the classes directory in the WEB-INF directory.
3. Modified the server.xml with following

Host name="www.host1.com" 
   Context path="/servlet"
docBase="host1/servlets" /
/Host
Host name="www.host2.com" 
   Context path="/servlet"
docBase=" host2/servlets" /
/Host

It is working fine .Will this be enough, please advise me


Max




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




What means HTTP 400?

2001-02-05 Thread Rogério Meneguelli Gatto

Hi, guys,

What is a HTTP 400 status/error?  I'm seeing a lot of these in my tomcat.log:

2001-02-05 01:27:17 - Ctx(  ): 400 R( /) null

Regards,
-- 
Rogrio Meneguelli Gatto |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informtica  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: What means HTTP 400?

2001-02-05 Thread shlomi sarfati



Error Message: HTTP/1.1 Error 400 - Bad Request



The information in this article applies to:

Microsoft Internet Information Services version 5.0





SYMPTOMS
When a GET request is submitted to a Web server configured with Custom Error
pages, the Web server sends the following error message to the client
browser:

HTTP/1.1 Error 400 - Bad Request



CAUSE
This behavior is expected when the GET request itself cannot be parsed
because of some kind of packet corruption. If you send a bad request to the
IIS Web server, the Custom Errors functionality is not invoked, which causes
the "HTTP/1.1 Error 400 - Bad Request" error message.



RESOLUTION
If the contents of a GET request are corrupt, then the server is unable to
determine the URL or the host to which the GET request should be sent. IIS
is unable to retrieve the host information from the GET request packet in
order to look up the meta data for the custom error. This is by design.
Errors that result from severely corrupted GET requests are not
customizable.

To more completely determine what may be occurring, obtain a network capture
of the communication packets between the client receiving the error and the
Web server itself. Use the Microsoft Network Monitor utility to capture
network packets for analysis. For additional information, click the article
number below to view the article in the Microsoft Knowledge Base:

 Q148942 How to Capture Network Traffic with Network Monitor

-Original Message-
From: Rogrio Meneguelli Gatto [mailto:[EMAIL PROTECTED]]
Sent: Mon, February 05, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: What means HTTP 400?


Hi, guys,

What is a HTTP 400 status/error?  I'm seeing a lot of these in my
tomcat.log:

2001-02-05 01:27:17 - Ctx(  ): 400 R( /) null

Regards,
--
Rogrio Meneguelli Gatto |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informtica  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



 Q148942.url

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: performance

2001-02-05 Thread John Golubenko

It's true.

 Original Message 

On 2/2/01, 5:45:09 PM, "Geoff Lane" [EMAIL PROTECTED] wrote regarding 
Re: performance:


 I think it's only for Linux (and AIX) - good reason to switch. :)
 More info is available at: http://www.alphaworks.ibm.com/tech

 Todd Carmichael wrote:
 
  Running Windows 2000 Advanced Server with Sun JDK 1.3 and hotspot.
 
  Anyone know where can I find the IBM JDK 1.3 for Windows platforms?
 
  -Original Message-
  From: Steve Ruby [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 02, 2001 2:15 PM
  To: [EMAIL PROTECTED]
  Subject: Re: performance
 
  With tomcat 3.2.1 and IBM JDK1.3 on linux
 
  running a PII 400Mhz with 192Megs (physical) I was able toget
 
  650 requests/sec
 
  running apache ab like this
   -n 1 -c 100
  against the RequestInfo example servlet. with no un-returned requests.
 
  Which JVM/OS where you running in the tests below?
 
  Todd Carmichael wrote:
  
   My tests, using Microsofts Web Application Stress (WAS) Tool, had the
   following results for a simple servlet that all it did was display a
  single
   html table:
  
   Weblogic: 490 requests/sec
   Tomcat: 540 requests/sec
   Resin: 850 requests/sec  - produced numerous socket errors (Connection
  reset
   by peer).  The other servlet engines did not do this.
  
   This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS
  (HTTP)
   clients engaged in the tests. Each client had 50 threads hitting the Web
   server
  
   The real question being asked is Tomcat suitable for production
   environments.  This is something I really would like to get a feel for
  from
   other developers experiences.  I am very interested in using Tomcat for
   production and the performance seems reasonable enough for me.  I am
  curious
   about monitoring tools and security issues with open source; that is what
   our IT department will hammer us on.
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 02, 2001 7:56 AM
   To: [EMAIL PROTECTED]
   Subject: RE: performance
  
   Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
   application through a browser is much more responsive, but still a little
   slower than I would hope. The same test with resin does not show any
   noticeable degradation in performance. In fact I upped the ante with
  resin.
   I started 2 more jmeter clients (configured the same), and still noticed
  no
   significant drop in performance when accessing the site through a 
browser.
  A
   few connections were refused, but that is to be expected, with the 
current
   configuration.
  
   You may ask, why not just use resin and stop whining :) ... in short 
while
   resin does perform it has some problems in how it implements the servlet
   spec that make me leery of deploying a production app on it.
  
   Once again, any insight would be appreciated.
  
   p.s. Randy,
  
   Thanks for the info, I will check into the things that you mentioned. 
With
   regards to the fingers, they are hard to come by, but I heard amazon.com
  is
   opening a new branch and offering extremely discounted server fingers ..
  you
   may want to check there :)
  
   Thanks,
   Bob
  
   -Original Message-
   From: Randy Layman [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 02, 2001 9:30 AM
   To: [EMAIL PROTECTED]
   Subject: RE: performance
  
   I thought about what the delay probably meant after I sent the
   message, but the message was already sent by then.
  
   Back to the orginal problem or the performance  Other people
   have reported similar problems under "high" load.  No one have ever 
really
   given a definition of what high is since it depends upon your 
application,
   however I would think that 20 concurent users should be completely
  supported
   by Tomcat (our application does it).
  
   Two things to note:
   1.  People who have reported these issuses usually say that if 
the
   requests stop, Tomcat will eventually catch up
   2.  You might want to check whether or not its your application.
   Try the same test, but request a small static file.  This will show you
  what
   the best performance you could hope to get.  There were a few messages
  about
   a week or two ago about tuning Tomcat, you might want to look at that,
   although there wasn't much there.  Another thing is you might look
  throught
   the source and see where they initalize the thread pool (probably in
   PoolTcpConnectors).  Uping this size should give you more concurrent
  users,
   however it will add more overhead when the server is idle.  While you're
   running your test, keep an eye on your network bandwidth usage and cpu
   utilization.  Its possible that you might be saturating the network (are
  the
   responses very large?) or that you are only using one of your 4 
processors
   (I have no idea how to fix this).
  
   Randy
  
   PS Bob 

Mail Notification

2001-02-05 Thread Administrator

The attached message has had some or all attachments deleted because of the following 
reason:

Message contains attachments: Q148942.url

Additional Information:

none





Error Message: HTTP/1.1 Error 400 - Bad Request



The information in this article applies to:

Microsoft Internet Information Services version 5.0





SYMPTOMS
When a GET request is submitted to a Web server configured with Custom Error
pages, the Web server sends the following error message to the client
browser:

HTTP/1.1 Error 400 - Bad Request



CAUSE
This behavior is expected when the GET request itself cannot be parsed
because of some kind of packet corruption. If you send a bad request to the
IIS Web server, the Custom Errors functionality is not invoked, which causes
the "HTTP/1.1 Error 400 - Bad Request" error message.



RESOLUTION
If the contents of a GET request are corrupt, then the server is unable to
determine the URL or the host to which the GET request should be sent. IIS
is unable to retrieve the host information from the GET request packet in
order to look up the meta data for the custom error. This is by design.
Errors that result from severely corrupted GET requests are not
customizable.

To more completely determine what may be occurring, obtain a network capture
of the communication packets between the client receiving the error and the
Web server itself. Use the Microsoft Network Monitor utility to capture
network packets for analysis. For additional information, click the article
number below to view the article in the Microsoft Knowledge Base:

 Q148942 How to Capture Network Traffic with Network Monitor

-Original Message-
From: Rogrio Meneguelli Gatto [mailto:[EMAIL PROTECTED]]
Sent: Mon, February 05, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: What means HTTP 400?


Hi, guys,

What is a HTTP 400 status/error?  I'm seeing a lot of these in my
tomcat.log:

2001-02-05 01:27:17 - Ctx(  ): 400 R( /) null

Regards,
--
Rogrio Meneguelli Gatto |  ICQ# 25775025
Analista de Sistemas Pleno   |  +55 19 3254-6518 ext 223
Software Design Informtica  |  http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



 Q148942.url

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Couple quick questions.

2001-02-05 Thread Jody Brownell

Hello,

Where can I get a list of configuration options for mod_jk.so?
Is there any documentation on the ajp12 and ajp13?




Jody Brownell
Product Development
Core Networks Inc.
P: (902) 481-5750, ext. 2132
F: (902) 481-5799
[EMAIL PROTECTED]

CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
Streamline account provisioning, support processes, IP address and DHCP
management and RF level monitoring, for both DOCSIS and proprietary systems.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: What means HTTP 400?

2001-02-05 Thread William Brogden



Rogrio Meneguelli Gatto wrote:
 
 Hi, guys,
 
 What is a HTTP 400 status/error?  I'm seeing a lot of these in my tomcat.log:
 
 2001-02-05 01:27:17 - Ctx(  ): 400 R( /) null
 

Look in the Tomcat \webapps\ROOT\docs\api  Javadocs
for the HttpServletResponse class documentation - there
you will find a complete list of the status codes

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: SSL Help

2001-02-05 Thread John Golubenko

Hello,
 
I have configured with OpenSSL (to Tomcat directly), made a key, etc. Now
I can have a secure connections to my server, but browsers complains that 
my
certificate isn't good, not signed, not knows, etc. Seems that browsers
have to problems with Verisign or RSA (?) certificates, which cost 
600-1000 dollars
per each one. I'm don't have those kind of money to spend. So, how do I 
get my certificate, so the browser wouldn't ask to install it, or 
approval from the user.

Thank you,
John.  



 Original Message 

On 2/5/01, 4:59:46 AM, "Coetmeur, Alain" 
[EMAIL PROTECTED] wrote regarding RE: SSL Help:


 browse the archive those recent days/weeks

 the secret are:

 it is advised to use apache with openssl (mod_ssl or apache+ssl)
 as the SSL processor and just configure it
 to delegate servlet and JSP to tomcat...
 look at http://www.modssl.org/
 or http://www.apache-ssl.org/
 for explanations, install doc, binaries, advices...

 anyway you can make tomcat able to serve SSL directly.
 install JSSE from SUN as documented
 (detail in some of my former messages here)
 this include putting the.jar in a lib or lib/ext directory
 as explaine, and twickle some security.properties

 create private key in the java keystore, produce a
 certificate (externaly or auto-certifies) with 
CN=the.dns.name.of.my.tomcat
 and add the certificate to the java keystore...

 modify the server.xml as explained
 in come comments... (I've send here a working server.xml)

 add some options in TOMCAT_OPTS (in tomcat.bat) so that URL Factory
 supports SSL, and JSSE can find the truststore...
 set TOMCAT_OPTS=%TOMCAT_OPTS%
   -Djavax.net.ssl.trustStore="%TOMCAT_HOME%/../openssl/maui/cacerts"
   -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

 may the force be with you.
 you can do it!
 this can work, I've tested !

  -Message d'origine-
  De: venkatesan [mailto:[EMAIL PROTECTED]]
  Date: lundi 5 fvrier 2001 12:50
  : [EMAIL PROTECTED]
  Objet: SSL Help
 
 
  Hi All,
   I am developing web applications using servlets,
  Rmi, Sql-server and
  Tomcat in Apache web server under Linux platform. I would
  like to use SSL. Can
  any body tell that where can i get SSL for tomcat. How can i
  do it using
  Tomcat..
  Thanks in advance...
 
  cheers
  Venkateh
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: SSL Help

2001-02-05 Thread John Golubenko

Look on OpenSSL.org or Apache-SSL.org, or do search for SSL on apache.org 
web server.

 Original Message 

On 2/5/01, 3:49:47 AM, venkatesan [EMAIL PROTECTED] wrote regarding 
SSL Help:


 Hi All,
  I am developing web applications using servlets, Rmi, Sql-server 
and
 Tomcat in Apache web server under Linux platform. I would like to use 
SSL. Can
 any body tell that where can i get SSL for tomcat. How can i do it using
 Tomcat..
 Thanks in advance...

 cheers
 Venkateh



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: SSL Help

2001-02-05 Thread GOMEZ Henri

Take a look at www.modssl.org.

There is allready done RPM for Redhat

On ne peut rsoudre les problmes les plus graves avec le mme esprit qui
les a cres.
-- Albert Einstein 

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: SSL Help


Look on OpenSSL.org or Apache-SSL.org, or do search for SSL on 
apache.org 
web server.

 Original Message 

On 2/5/01, 3:49:47 AM, venkatesan [EMAIL PROTECTED] 
wrote regarding 
SSL Help:


 Hi All,
  I am developing web applications using servlets, 
Rmi, Sql-server 
and
 Tomcat in Apache web server under Linux platform. I would 
like to use 
SSL. Can
 any body tell that where can i get SSL for tomcat. How can i 
do it using
 Tomcat..
 Thanks in advance...

 cheers
 Venkateh



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other 
privileged information.  If you are not the intended 
recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, 
disseminate, or otherwise use the information.  Also, please 
indicate to the sender that you have received this email in 
error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of 
the sender and is neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JDBC Realm

2001-02-05 Thread Vegard Skjefstad

Hi,

I'm working on a project where I'm going to use a MySQL JDBC connection. I 
noticed in the server.xml something called a JDBCRealm.
I was unable to find any any documentation about the JDBCRealm. Is this 
something I should use? How will I access the database if I use it? Is 
there any JDBCRealm docs available?

[EMAIL PROTECTED]
http://snuffcity.com
ICQ UIN 11872166


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: JDBC Realm

2001-02-05 Thread hische



A JDBC Realm baiscally is your tomcat-users.xml file in a database.

Look in:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto

Tomcat4 and tomcat 3.x allow realms per Context.

Wilko






Vegard Skjefstad [EMAIL PROTECTED] on 05-02-2001 17:07:35

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  JDBC Realm



Hi,

I'm working on a project where I'm going to use a MySQL JDBC connection. I
noticed in the server.xml something called a JDBCRealm.
I was unable to find any any documentation about the JDBCRealm. Is this
something I should use? How will I access the database if I use it? Is
there any JDBCRealm docs available?

[EMAIL PROTECTED]
http://snuffcity.com
ICQ UIN 11872166


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




linking a static mod_jk with Apache

2001-02-05 Thread Rouiller Samuel

Hi,

I want to use Apache and Tomcat together. However, I need to build Apache
statically due to a thread problem with the OCI library. Hence my question:
Is it possible to compile mod_jk and link it statically with Apache instead
of using DSO's. I am particularily interested in mod_jk because it should
have a better support for SSL that mod_jserv.

Any help will be very appreciated,
Thanks,

Samuel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: linking a static mod_jk with Apache

2001-02-05 Thread Jan Labanowski

http://w6.metronet.com/~wjm/tomcat/2000/Sep/msg00794.html



On Mon, 5 Feb 2001, Rouiller Samuel wrote:

 Hi,
 
 I want to use Apache and Tomcat together. However, I need to build Apache
 statically due to a thread problem with the OCI library. Hence my question:
 Is it possible to compile mod_jk and link it statically with Apache instead
 of using DSO's. I am particularily interested in mod_jk because it should
 have a better support for SSL that mod_jserv.
 
 Any help will be very appreciated,
 Thanks,
 
 Samuel
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Servlet destruction ploicy

2001-02-05 Thread Tony Montgomery Smith

Is there a policy in Tomcat/Apache for destroying servlets when resources are
tight? And, if so, can the installer control the policy?

Regards

Tony


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




how to USE differnet contexts

2001-02-05 Thread Chris Ward

I have set up two contexts. One runs from webapps/ROOT, the other from
webapps/test. The contexts appear to be set up correctly. My application
runs fine from webapps/ROOT. The problem is running from webapps/test. The
main servlet calls JSP pages, which redirect to the main servlet again. The
JSP pages just reference /myServlet. They do not specify a context, such as
test/mysServlet, or ROOT/myServlet. I don't want to have to change every JSP
page to run this application in a different context. What do I need to do
this, so context is independent?

Chris
--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Off topic - HTTP POST example?

2001-02-05 Thread David Wall

Not exactly a Tomcat issue, but it's in the web world of Java servlets:

Does anybody have any code samples that would demonstrate an HTTP POST (I'll
use JSSE and really do an HTTPS POST, but I suspect the code will be the
same or very similar)?  I've seen URL class code that does a GET, but
nothing that shows how to setup the HTTP body parts and encoding that go on
in a POST.

Thanks,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Off topic - HTTP POST example?

2001-02-05 Thread John Golubenko

Well, do you mean POST from web-form? Then it would be:

form name="posttest" action="http://server/servlet/ServletName" 
method="POST"
Name: input type="text" name="name"
input type="submit"
/form


If you asking how to handle POST's from a servlet, it would be:

import javax.servlet.*;
import javax.servlet.http.*;

public class ServletName extends HttpServet { 
public void doPost(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = res.getWriter();
String name = request.getParameter("name");
out.println("The parameter name = " + name);
  }
/* Also you can redirect POST-GET methods by doing this: */
public void doGet(HttpServletRequest request, HttpServeltResponse 
response) {
doPost(request, response);
}
}


That's about it. To secure it, just put this stuff under secure section 
of your site.
Or request it thru secure https protocol.
Good luck,
John.




 Original Message 

On 2/5/01, 9:28:32 AM, "David Wall" [EMAIL PROTECTED] wrote regarding 
Off topic - HTTP POST example?:


 Not exactly a Tomcat issue, but it's in the web world of Java servlets:

 Does anybody have any code samples that would demonstrate an HTTP POST 
(I'll
 use JSSE and really do an HTTPS POST, but I suspect the code will be the
 same or very similar)?  I've seen URL class code that does a GET, but
 nothing that shows how to setup the HTTP body parts and encoding that go 
on
 in a POST.

 Thanks,
 David


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: JDBC Realm

2001-02-05 Thread Scott Sanders

The JDBCRealm is used only for authentication of users.  If you want
to access the database for you rown purposes, this will not help you
;-)

Scott Sanders

- Original Message -
From: "Vegard Skjefstad" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 05, 2001 8:07 AM
Subject: JDBC Realm


 Hi,

 I'm working on a project where I'm going to use a MySQL JDBC
connection. I
 noticed in the server.xml something called a JDBCRealm.
 I was unable to find any any documentation about the JDBCRealm. Is
this
 something I should use? How will I access the database if I use it?
Is
 there any JDBCRealm docs available?

 [EMAIL PROTECTED]
 http://snuffcity.com
 ICQ UIN 11872166


 
-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Off topic - HTTP POST example?

2001-02-05 Thread John Golubenko

Oh... PrintWriter out = response.getWriter() not res.getWriter(), also 
it's not tested :)



 Original Message 

On 2/5/01, 9:46:50 AM, "John Golubenko" [EMAIL PROTECTED] 
wrote regarding Re: Off topic - HTTP POST example?:


 Well, do you mean POST from web-form? Then it would be:

 form name="posttest" action="http://server/servlet/ServletName"
 method="POST"
 Name: input type="text" name="name"
 input type="submit"
 /form


 If you asking how to handle POST's from a servlet, it would be:

 import javax.servlet.*;
 import javax.servlet.http.*;

 public class ServletName extends HttpServet {
   public void doPost(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
   response.setContentType("text/html");
 PrintWriter out = res.getWriter();
 String name = request.getParameter("name");
   out.println("The parameter name = " + name);
   }
   /* Also you can redirect POST-GET methods by doing this: */
   public void doGet(HttpServletRequest request, HttpServeltResponse
 response) {
   doPost(request, response);
   }
 }


 That's about it. To secure it, just put this stuff under secure section
 of your site.
 Or request it thru secure https protocol.
 Good luck,
 John.




  Original Message 

 On 2/5/01, 9:28:32 AM, "David Wall" [EMAIL PROTECTED] wrote regarding
 Off topic - HTTP POST example?:


  Not exactly a Tomcat issue, but it's in the web world of Java servlets:

  Does anybody have any code samples that would demonstrate an HTTP POST
 (I'll
  use JSSE and really do an HTTPS POST, but I suspect the code will be the
  same or very similar)?  I've seen URL class code that does a GET, but
  nothing that shows how to setup the HTTP body parts and encoding that go
 on
  in a POST.

  Thanks,
  David


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

 NOTICE:  This communication may contain confidential or other privileged 
information.  If you are not the intended recipient, or believe that you 
have received this communication in error, please do not print, copy, 
retransmit, disseminate, or otherwise use the information.  Also, please 
indicate to the sender that you have received this email in error, and 
delete the copy you received.  Any communication that does not relate to 
official Columbia business is that of the sender and is neither given nor 
endorsed by Columbia.  Thank you.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


 NOTICE:  This communication may contain confidential or other privileged 
information.  If you are not the intended recipient, or believe that you 
have received this communication in error, please do not print, copy, 
retransmit, disseminate, or otherwise use the information.  Also, please 
indicate to the sender that you have received this email in error, and 
delete the copy you received.  Any communication that does not relate to 
official Columbia business is that of the sender and is neither given nor 
endorsed by Columbia.  Thank you.

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




A JSP/Jasper question

2001-02-05 Thread Hammon, Sean
Title: A JSP/Jasper question





The servlet spec defines that request.getParameter() returns null if the parameter wasn't passed to the page. However, it would appear that Jasper chokes on this case. Since JSPs are an extension to servlets shouldn't the behavior be the same? If I hacked the URL to pass in all the parameters for the page when the page is compiled, will I get this error with future acceses when, theoretically, Jasper isn't involved anymore?

-Sean Hammon



 org.apache.jasper.compiler.ParseException: /part2/doc_root/vp/quote.jsp(13,51) Attribute firstname has no value
  at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:499)
  at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:615)
  at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:192)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)





RE: A JSP/Jasper question

2001-02-05 Thread Randy Layman


This error message is about a badly formatted JSP page at line 13,
column 51 (or is it line 51, column 13 - I never can remember).  Apparently
Jasper doesn't like your variable firstname.  Without seeing your code its
difficult to guess the cause of this, but its probably because you haven't
declared you want to use a bean using jsp:useBean before you have called
jsp:setProperty.  Again, this is just a guess from the exception you
included.

This is in no way a runtime error, but a parse and compile time
error, therefore it is impossible to infer whether or not Tomcat is
correctly handling request.getParameter(), however from my own experience,
it follows the servlet spec.

Randy

-Original Message-
From: Hammon, Sean [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 12:50 PM
To: [EMAIL PROTECTED]
Subject: A JSP/Jasper question


The servlet spec defines that request.getParameter() returns null if the
parameter wasn't passed to the page. However, it would appear that Jasper
chokes on this case. Since JSPs are an extension to servlets shouldn't the
behavior be the same? If I hacked the URL to pass in all the parameters for
the page when the page is compiled, will I get this error with future
acceses when, theoretically, Jasper isn't involved anymore?
-Sean Hammon 


 org.apache.jasper.compiler.ParseException:
/part2/doc_root/vp/quote.jsp(13,51) Attribute firstname has no value 
   at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:499)

   at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:615) 
   at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:192) 
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) 
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) 
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) 
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) 
   at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Off topic - HTTP POST example?

2001-02-05 Thread David Wall

 Well, do you mean POST from web-form? Then it would be:

 form name="posttest" action="http://server/servlet/ServletName"
 method="POST"
 Name: input type="text" name="name"
 input type="submit"
 /form

Not, that was not my question.  I understand how to do a regular POST from a
web browser and how to process it in a servlet.  I'm trying to do one
programmatically: that is, I want to open a URL and send a POST to that URL
from my program.  In other words, I'm trying to act like the browser, not
the web server.

David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: A JSP/Jasper question

2001-02-05 Thread John Golubenko
Title: Re: A JSP/Jasper question




I guess it's depends how you do it. I've lots of interesting things
going on when  I check for params in JSP pages. But if you pass
'request' object to JavaBean || Servlet for confirmation || testing ||
reading || etc, it seemsworks nicely. 



Original Message dated 2/5/01, 9:49:49 AM
Author: Hammon, Sean
[EMAIL PROTECTED]
Re: A JSP/Jasper question:



The servlet spec defines that request.getParameter()
returns null if the parameter wasn't passed to the page. However, it
would appear that Jasper chokes on this case. Since JSPs are an
extension to servlets shouldn't the behavior be the same? If I hacked
the URL to pass in all the parameters for the page when the page is
compiled, will I get this error with future acceses when,
theoretically, Jasper isn't involved anymore?
-Sean Hammon 



 org.apache.jasper.compiler.ParseException:
/part2/doc_root/vp/quote.jsp(13,51) Attribute firstname has no value
  at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:499)
  at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:615)
  at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:192)
  at
org.apache.jasper.compiler.Parser.parse(Parser.java:1077) 
 at
org.apache.jasper.compiler.Parser.parse(Parser.java:1042) 
 at
org.apache.jasper.compiler.Parser.parse(Parser.java:1038) 
 at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
  at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)



NOTICE:  This communication may contain confidential or other privileged information.  If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information.  Also, please indicate to the sender that you have received this email in error, and delete the copy you received.  Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia.  Thank you.



max threads

2001-02-05 Thread Carlos

can anybody say me how limit the tomcat process number to 15 in a linux?
in my linux tehere are a lot of threads
thanks
Carlos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: max threads

2001-02-05 Thread Kevin Sangeelee

On Mon, 5 Feb 2001, Carlos wrote:

 can anybody say me how limit the tomcat process number to 15 in a linux?
 in my linux tehere are a lot of threads
 thanks
 Carlos

The processes you see are in fact just threads, and are apparently just an
annoying side-effect of the (current?) Linux threads implementation. Truth
is that they're not taking up much extra resources, and advice on this
list a while ago was to ignore them.

You could, of course, configure your JVM to use green threads instead,
in which case you'll only see one copy of the JVM process when you list
your processes.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Newbie Question

2001-02-05 Thread Stefan Langer

For the password you need to go into the tomcat-user.xml file and create a password 
and user for the admin role.

it's pretty straight forward but just in case put in a line like

user name="tomcat" password="tomcat" roles="admin" /

roles corresponds to the realm .

BTW tomcat-user.xml is located in the conf directory of your tomcat installation.

Stefan
  




Help please :)

2001-02-05 Thread Jody Brownell

Hello,

I tried to post the following to the soap.apache list with no luck, 
You are my last hope :)  When using tomcat(3.2.1) to serve soap requests
everything works 
fine. When apache(1.3.17) is added to the picture I get the follwing stack
dump.

Is it possible that mod_jk.so is stripping whitespace. That is what it
sounds like.
When apache is removed from the picture, everything works as per usual. 

BTW, we are using ajp13 for protocol ... 

org.xml.sax.SAXParseException: White space is required between the public
identifier and the system identifier.
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056)
at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.
java:651)
at
org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.java:
1198)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1104)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2192)
at
org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
.java:86)
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:776)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
at org.apache.soap.rpc.Call.invoke(Call.java:157)
at samples.stockquote.GetQuote.main(GetQuote.java:103)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
HTMLHEAD
TITLE400 Bad Request/TITLE
/HEADBODY
H1Bad Request/H1
Your browser sent a request that this server could not understand.P
Client sent malformed Host headerP
HR
ADDRESSApache/1.3.17 Server at soap.broadjump.corenetworks.com Port
80/ADDRESS
/BODY/HTML
]
at org.apache.soap.rpc.Call.invoke(Call.java:167)
at samples.stockquote.GetQuote.main(GetQuote.java:103)

Sorry if this is off topic, but it appears to be an apache/mod_jk issue.

Jody Brownell
Product Development
Core Networks Inc.
P: (902) 481-5750, ext. 2132
F: (902) 481-5799
[EMAIL PROTECTED]

CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
Streamline account provisioning, support processes, IP address and DHCP
management and RF level monitoring, for both DOCSIS and proprietary systems.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Tomcat load-balancing (via mod_jk)

2001-02-05 Thread Wei Wu

I understand tomcat3.2.1 supports the Apache JServ style load-balancing via 
mod_jserv. Does anyone know if the same is true when using mod_jk instead 
of mod_jserv? Any advice on how to setup load balancing with Tomcat3.2.1 
and Apache (mod_jk) is appreciated.

Thanks,

Wei Wu
WRLC


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




re: problems with servlet init parameters tomcat 3.2.1

2001-02-05 Thread Karina Anderson

 Thanks for answering my question. My web.xml file is in Web-inf 
 directory or at the same level as my classes and lib directory. I 
 posted another message with more information. Do you see any problems?
 
 thanks a million.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Newbie Question

2001-02-05 Thread Mike S. Avelar

Thank you, I'll give that a go.

Stefan Langer wrote:

 For the password you need to go into the tomcat-user.xml file and create a password 
and user for the admin role.

 it's pretty straight forward but just in case put in a line like

 user name="tomcat" password="tomcat" roles="admin" /

 roles corresponds to the realm .

 BTW tomcat-user.xml is located in the conf directory of your tomcat installation.

 Stefan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Questions

2001-02-05 Thread Phillip Kuzma

I'm currently running apache + mod_jk + tomcat.

I put all my servlets in /usr/java/tomcat/webapps/ROOT/web-inf/classes/

I put all my jsp files in /usr/java/tomcat/webapps/ROOT/

When i goto my domain I goto www.domain.com/servlet and it reads the
servlets dir
When I goto my domain I goto www.domain.com/*.jsp and it reads the jsp
directory.

How do I change my servlet directory to say "/www/world/servlets"
 How do I change my jsp directory to say  "/www/world/jsp"

please CC me any replies/suggestions/comments.

THANK-YOU
Phil



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: performance

2001-02-05 Thread Todd Carmichael

IBM does have a 1.3 for Intel and it is quite fast (faster than sun's
hotspot in my tests).

(You need to register with IBM to get in.

http://www6.software.ibm.com/dl/wspt/priv/wspt-h?S_PKG=pretechww

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 7:59 AM
To: [EMAIL PROTECTED]
Subject: Re: performance


It's true.

 Original Message 

On 2/2/01, 5:45:09 PM, "Geoff Lane" [EMAIL PROTECTED] wrote regarding 
Re: performance:


 I think it's only for Linux (and AIX) - good reason to switch. :)
 More info is available at: http://www.alphaworks.ibm.com/tech

 Todd Carmichael wrote:
 
  Running Windows 2000 Advanced Server with Sun JDK 1.3 and hotspot.
 
  Anyone know where can I find the IBM JDK 1.3 for Windows platforms?
 
  -Original Message-
  From: Steve Ruby [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 02, 2001 2:15 PM
  To: [EMAIL PROTECTED]
  Subject: Re: performance
 
  With tomcat 3.2.1 and IBM JDK1.3 on linux
 
  running a PII 400Mhz with 192Megs (physical) I was able toget
 
  650 requests/sec
 
  running apache ab like this
   -n 1 -c 100
  against the RequestInfo example servlet. with no un-returned requests.
 
  Which JVM/OS where you running in the tests below?
 
  Todd Carmichael wrote:
  
   My tests, using Microsofts Web Application Stress (WAS) Tool, had the
   following results for a simple servlet that all it did was display a
  single
   html table:
  
   Weblogic: 490 requests/sec
   Tomcat: 540 requests/sec
   Resin: 850 requests/sec  - produced numerous socket errors (Connection
  reset
   by peer).  The other servlet engines did not do this.
  
   This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS
  (HTTP)
   clients engaged in the tests. Each client had 50 threads hitting the
Web
   server
  
   The real question being asked is Tomcat suitable for production
   environments.  This is something I really would like to get a feel for
  from
   other developers experiences.  I am very interested in using Tomcat
for
   production and the performance seems reasonable enough for me.  I am
  curious
   about monitoring tools and security issues with open source; that is
what
   our IT department will hammer us on.
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 02, 2001 7:56 AM
   To: [EMAIL PROTECTED]
   Subject: RE: performance
  
   Tomcat does indeed "catch up" if I stop the jmeter client, accessing
the
   application through a browser is much more responsive, but still a
little
   slower than I would hope. The same test with resin does not show any
   noticeable degradation in performance. In fact I upped the ante with
  resin.
   I started 2 more jmeter clients (configured the same), and still
noticed
  no
   significant drop in performance when accessing the site through a 
browser.
  A
   few connections were refused, but that is to be expected, with the 
current
   configuration.
  
   You may ask, why not just use resin and stop whining :) ... in short 
while
   resin does perform it has some problems in how it implements the
servlet
   spec that make me leery of deploying a production app on it.
  
   Once again, any insight would be appreciated.
  
   p.s. Randy,
  
   Thanks for the info, I will check into the things that you mentioned. 
With
   regards to the fingers, they are hard to come by, but I heard
amazon.com
  is
   opening a new branch and offering extremely discounted server fingers
..
  you
   may want to check there :)
  
   Thanks,
   Bob
  
   -Original Message-
   From: Randy Layman [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 02, 2001 9:30 AM
   To: [EMAIL PROTECTED]
   Subject: RE: performance
  
   I thought about what the delay probably meant after I sent the
   message, but the message was already sent by then.
  
   Back to the orginal problem or the performance  Other
people
   have reported similar problems under "high" load.  No one have ever 
really
   given a definition of what high is since it depends upon your 
application,
   however I would think that 20 concurent users should be completely
  supported
   by Tomcat (our application does it).
  
   Two things to note:
   1.  People who have reported these issuses usually say that if

the
   requests stop, Tomcat will eventually catch up
   2.  You might want to check whether or not its your
application.
   Try the same test, but request a small static file.  This will show
you
  what
   the best performance you could hope to get.  There were a few messages
  about
   a week or two ago about tuning Tomcat, you might want to look at that,
   although there wasn't much there.  Another thing is you might look
  throught
   the source and see where they initalize the thread pool (probably in
   PoolTcpConnectors).  Uping this size should give you more concurrent
  users,
   however it 

small error in the Tomcat 3.2 (Win32) jsp sample application

2001-02-05 Thread Andrey Stepantsov

A small error in the Tomcat 3.2 (Win32) jsp sample application.

This note relates to the Tomcat 3.2 sample application,
Which is shiped with Tomcat 3.2 (win32) and placed at 
%TOMCAT_HOME%\doc\appdev\sample\

If someone will try to use the sample as a base for his own project
he can possibly meet some errors during compilation. 

1. The problem is that original "buid.bat" contains commands
which are incorrect for execution with win32 command
interpreter for some situations when TOMCAT_HOME and
other environmet variables contain spaces like:
"C:\Program Files\Apache Group\Tomcat"

2. The variable CP is incorrectly assigned in line #9.

I attached an corrected version of the build.bat file.

 build.bat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Apache Tomcat Configuration

2001-02-05 Thread Mike Glose

Hello,

Do you have a list of companies who are using the Apache/Tomcat
configuration in their production environment?  I would like to find some
references at the technical and executive level.

Thank you,
---
Mike Glose
Unix System Administration
Requisite Technology 303-474-8146
Cell 303-888-2260
Pager 888-712-9405
"E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE"




CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender 
("Information") that may be confidential and legally privileged.  If you are
not the intended recipient, any disclosure, copying,
distribution or action taken in reliance on the Information is strictly
prohibited.  If you have received the Information in error,
please contact the sender by reply email and destroy all copies of the
original email.
 Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Mail Notification

2001-02-05 Thread Administrator

The attached message has had some or all attachments deleted because of the following 
reason:

Message contains attachments: build.bat

Additional Information:

none



A small error in the Tomcat 3.2 (Win32) jsp sample application.

This note relates to the Tomcat 3.2 sample application,
Which is shiped with Tomcat 3.2 (win32) and placed at 
%TOMCAT_HOME%\doc\appdev\sample\

If someone will try to use the sample as a base for his own project
he can possibly meet some errors during compilation. 

1. The problem is that original "buid.bat" contains commands
which are incorrect for execution with win32 command
interpreter for some situations when TOMCAT_HOME and
other environmet variables contain spaces like:
"C:\Program Files\Apache Group\Tomcat"

2. The variable CP is incorrectly assigned in line #9.

I attached an corrected version of the build.bat file.

 build.bat

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: Questions

2001-02-05 Thread John Golubenko

Easy. Edit 2 files.
First under 
%TOMCAT_HOME%/conf/server.xml
In ContextManager (you'll see similar stuff)
put this:

Context path="/path_after_domain"
docBase="/www/world"
crossContext="false"
debug = "0" !-- 0 to 9 -- 
reloadable = "true"
/Context

So, now assuming you have /www/world directory.
You can make up shell script, to do the job next time like this one I 
have,
and execute it in /www/world directory.

#!/bin/sh
# Must be executed in main directory of 
# docBase parameter of servlet.xml.


mkdir WEB-INF;
mkdir WEB-INF/classes;
mkdir META-INF;
ln -s WEB-INF/classes servlets;
cp %TOMCAT_HOME%/webapps/ROOT/META-INF/MANIFEST.MF META-INF/
cp %TOMCAT_HOME%/webapps/ROOT/WEB-INF/web.xml WEB-INF/web.xml


Or do that by hand...
good luck.
John.



 Original Message 

On 2/5/01, 12:10:43 PM, "Phillip Kuzma" [EMAIL PROTECTED] wrote 
regarding Questions:


 I'm currently running apache + mod_jk + tomcat.

 I put all my servlets in /usr/java/tomcat/webapps/ROOT/web-inf/classes/

 I put all my jsp files in /usr/java/tomcat/webapps/ROOT/

 When i goto my domain I goto www.domain.com/servlet and it reads the
 servlets dir
 When I goto my domain I goto www.domain.com/*.jsp and it reads the jsp
 directory.

 How do I change my servlet directory to say "/www/world/servlets"
  How do I change my jsp directory to say  "/www/world/jsp"

 please CC me any replies/suggestions/comments.

 THANK-YOU
 Phil



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Rules regarding opening files in JSP pages served by Tomcat

2001-02-05 Thread Hawkins, Keith (Keith)



Hello,

I have a JSP based application for which the JSP files reside in directory
C:\tomcat\jakarta-tomcat\webapps\myapp.
One of the JSP files is trying to open a config file configs.xml which also
is present that directory. The JSP code  is using
request.getRealPath("configs.xml") which returns
C:\tomcat\jakarta-tomcat\webapps\myapp\configs.xml to resolve the actual
location of the configs file.   Yet when the code tries to open this file it
says that C:\tomcat\jakarta-tomcat\webapps\myapp\configs.xml is not found.
But IT IS there.  So why can't it see the file?   Are there rules which
prohibit accessing a file in this directory.  How do I grant access to this
directory?

I am able to load the file if I place it in  C:\tomcat\jakarta-tomcat\bin
and skip the use of the request.getRealPath call.  But that is not a nice
solution. I would like the config file to reside with the JSP files it
relates to.  How can I accomplish this?

Thanks,
Keith


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JBulder 4 with Tomcat

2001-02-05 Thread Hamdy Schumann


I have Apache 1.3.12 web server, ApacheJserv 1.1 running through NT
server 4.0.
I did installed the trial CD JBuilder 4
Enterprise (to use it as a JAVA development tool).
I have been told that "Tomcat" is used as the web server in JBuilder.
I Do not know which specific file/files "*.zip or *.dll" I should
download from the following URL:

   
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.1.1/bin/ or
any other address you know

There is no installation instructions for Tomcat as well, I hope if you
can help me fiend the right Tomcat file and any installation
instructions it may help me, I am not certain if it will cause any sort
of conflict with the apache?

Thanks
-- 
Hamdy Schumann, System Administrator
Memofix Hitech Services Inc.
1(800)MEMOFIX-(636-6349)Toll free in Canada
(905)660-4936  Ext. 39
www.memofix.com
Drive Repairs-Service Logistics-Data recovery

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JDBCRealm authentication with interbase interclient

2001-02-05 Thread Erik LaBianca

This may be more of a developer question, but the guidelines seem to
discourage non-developers from posting to the developer list, so I apologize
if this is the wrong place.

I don't know if any of you out there are using interbase with Tomcat 3.2.1,
but I'm attempting to do so.

I'm curious about the behavior when a user first enters a secured realm.
Using the exact same setup as I've used successfully using the jdbc-odbc
bridge and mysql, i'm trying to authenticate a user. I can do so fine if I
force my way into login.jsp.

However, if I just try to connect to a secured area, tomcat throws a
NullPointerException, which appears to have bubbled up from the jdbc driver.
Apparently, when a user first enters a secured realm tomcat calls
authenticate(null, null) or something. The interbase JDBC driver appears NOT
to like this behavior.

However, it would seem to me that the proper behavior in the case of a null
username would be to return false immediately, rather than run a query off
the database with a null parameter.

The code I'm referring to is circa line 306 in
apache/tomcat/request/JDBCRealm.java


Any thoughts?

--erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Speeding up database accesses

2001-02-05 Thread John Coonrod

I would like to leave my oracle database connection open from one page to 
another within a session - is that possible? Is it possible to pool one 
connection for the entire webserver? If so, how? Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread Wang, Jianming

Write a connectionpool as a bean and give it the scope of application.

-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to 
another within a session - is that possible? Is it possible to pool one 
connection for the entire webserver? If so, how? Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread Randy Layman


One possibility (altough a bad idea) is to stick it into your
session.

Another possibility is to create an object that has a static
variable for the Connection.  Then provide methods to access it.  Remember
that you need to make sure only one thing at a time is using the connection.

There are some pooling connection managers out there already.  One
that I know of off the top of my head is PoolMan.  You can go over to
sourceforge.net and search for it.

Randy


-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to 
another within a session - is that possible? Is it possible to pool one 
connection for the entire webserver? If so, how? Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread CPC Livelink Admin


While there are connection pools (I have not used them but others on the
list can point you to them), I find the easiest solution is a session
variable. Then make a function you can call with the session and db
connection info. The function checks the session for the DB varaible. If
it's not there it creates the connection and adds it to the session. Then
returns the DB. That way the call to get the connection looks nice and clean
(no nasty if statements to cloud up your HTML on the JSP).

Regards,
Paul


-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to
another within a session - is that possible? Is it possible to pool one
connection for the entire webserver? If so, how? Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread John Coonrod

Whoops! Over my head! Where would I learn more about how to do this?

= Original Message from [EMAIL PROTECTED] at 2/05/01 4:27 
pm
Write a connectionpool as a bean and give it the scope of application.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Questions

2001-02-05 Thread Phillip Kuzma

Ok I did you said and it worked great thanks, but now how about.

i have www.domain1.com:8080 and www.domain2.com:8080 and I want


domain1.com:8080 servlets to be in /www/domain1/servlets/Hello.class

(www.domain1.com:8080/servlets/Hello)

domain2.com:8080 servlets to be in /www/domain2/servlets/Hello.class

(www.domain2.com:8080/servlets/Hello)

I got hello.jsp to work in /www/domain1(or 2)/, but not Hello.class

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread Wang, Jianming

The following book helps, I think.
http://www.amazon.com/exec/obidos/ASIN/1884777996/qid=981408589/sr=2-2/ref=s
c_b_2/107-2595562-5791743

-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:27 PM
To: [EMAIL PROTECTED]
Subject: RE: Speeding up database accesses


Whoops! Over my head! Where would I learn more about how to do this?

= Original Message from [EMAIL PROTECTED] at 2/05/01 4:27 
pm
Write a connectionpool as a bean and give it the scope of application.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Speeding up database accesses

2001-02-05 Thread John Golubenko

Sure it possible. For the page for example, at least you can do is
use 
---
%@ page import="java.sql.*" %
%!
Connection conn;
PreparedStatement stmt;
%

%!
public void jspInit() {
try {
String url  = "jdbc:as400://URLHERE";
String id   = "id";
String pass = "pass";

/* Making a sql string */
String sql = "SELECT xxx FROM yyy WHERE xxx = '?'";

Class.forName("com.ibm.as400.access.AS400JDBCDriver");
conn = DriverManager.getConnection(url, id, pass);
stmt = conn.prepareStatement(sql);
} catch(SQLException e) {
e.printStackTrace();
} catch(ClassNotFoundException e) {
e.printStackTrace();
}
}
%

%!
/* To close all connections when JSP is destroyed (reloaded, etc) */
public void jspDestroy() {
try {
stmt.close();
conn.close();
} catch(SQLException e) {
e.printStackTrace();
}
}
%
-

Then you can use something like  (not tested of course)
-
  String email = request.getParameter("email");
stmt.setString(1, email);
ResultSet rset = stmt.executeQuery();

-

But this is for some easy pages. If you want to driver "Yahoo" on it,
it wouldn't help... I will suggest you to take a look at PoolMan JDBC
connection pool. It works nicely here...

John.















 Original Message 

On 2/5/01, 1:18:36 PM, "John Coonrod" [EMAIL PROTECTED] wrote regarding Speeding 
up database accesses:


 I would like to leave my oracle database connection open from one page to
 another within a session - is that possible? Is it possible to pool one
 connection for the entire webserver? If so, how? Thanks.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




No path info for include page

2001-02-05 Thread Dmitry Rogatkin

Is that normal for Tomcat? I expect to get something from getPathInfo when I have a 
servlet called as a page include. BTW can I expect a session sharing for such servlet 
and wrapper JSP?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread CPC Livelink Admin


Why is it a bad idea to use a session variable?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Speeding up database accesses



One possibility (altough a bad idea) is to stick it into your
session.

Another possibility is to create an object that has a static
variable for the Connection.  Then provide methods to access it.  Remember
that you need to make sure only one thing at a time is using the connection.

There are some pooling connection managers out there already.  One
that I know of off the top of my head is PoolMan.  You can go over to
sourceforge.net and search for it.

Randy


-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to
another within a session - is that possible? Is it possible to pool one
connection for the entire webserver? If so, how? Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: Speeding up database accesses

2001-02-05 Thread Ralph Bobrik

Doing this way you have a large amount of open connection. They stay opened
until timeout because you don't know, when the user closes his browser.
So I think it's better having a connection-pool managing the DB-connection.
You could implement that using a singleton-pattern.

Ralph

 -Ursprngliche Nachricht-
 Von: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 5. Februar 2001 22:27
 An: [EMAIL PROTECTED]
 Betreff: RE: Speeding up database accesses



 While there are connection pools (I have not used them but others on the
 list can point you to them), I find the easiest solution is a session
 variable. Then make a function you can call with the session and db
 connection info. The function checks the session for the DB varaible. If
 it's not there it creates the connection and adds it to the session. Then
 returns the DB. That way the call to get the connection looks
 nice and clean
 (no nasty if statements to cloud up your HTML on the JSP).

 Regards,
 Paul


 -Original Message-
 From: John Coonrod [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 05, 2001 4:19 PM
 To: [EMAIL PROTECTED]
 Subject: Speeding up database accesses


 I would like to leave my oracle database connection open from one page to
 another within a session - is that possible? Is it possible to pool one
 connection for the entire webserver? If so, how? Thanks.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: No path info for include page

2001-02-05 Thread Erik LaBianca

I think tomcat's getPathInfo is a little wierd. The behavior when you have
bound a servlet to a url is to move what you would expect to be in
getPathInfo() into getServletPath() . Included pages might be getting
handled the same as "mapped" ones, in which case you could be experiencing
the same problem.

I think this is a bug, but maybe it was a design decision.

--erik


-Original Message-
From: Dmitry Rogatkin [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:32 PM
To: [EMAIL PROTECTED]
Subject: No path info for include page


Is that normal for Tomcat? I expect to get something from getPathInfo when I
have a servlet called as a page include. BTW can I expect a session sharing
for such servlet and wrapper JSP?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Speeding up database accesses

2001-02-05 Thread Steve Ruby



For one reason you are going to have a connection dedicated
to that session even if it isn't using it, so you will
have one connection per session when you really only need
one connection per use which is likely to be MUCH smaller, especially
considering the session doesn't die until session-timeout so you
will have a buch of lame connection sitting around takeing up
memory waiting to die..

A pool (especially a good one) will allow you to have
only the number of connections you need available to you
at any time.



CPC Livelink Admin wrote:
 
 Why is it a bad idea to use a session variable?
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 05, 2001 3:52 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Speeding up database accesses
 
 One possibility (altough a bad idea) is to stick it into your
 session.
 
 Another possibility is to create an object that has a static
 variable for the Connection.  Then provide methods to access it.  Remember
 that you need to make sure only one thing at a time is using the connection.
 
 There are some pooling connection managers out there already.  One
 that I know of off the top of my head is PoolMan.  You can go over to
 sourceforge.net and search for it.
 
 Randy
 
 -Original Message-
 From: John Coonrod [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 05, 2001 4:19 PM
 To: [EMAIL PROTECTED]
 Subject: Speeding up database accesses

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Speeding up database accesses

2001-02-05 Thread Randy Layman


I hate it when other people beat me to the responses

Basically, yes.  Another reason is that some of the JDBC drivers
taht I have worked with don't behave properly when garbage collected.
Therefore, when the session dies, the Connection would die a
garbage-collected death, sometimes leaving hanging connections.

Yet another reason is when trying to deal with the JDBC-ODBC bridge
and their problem of not handling concurrent connections.  One connection
per session makes it very difficult to limit the access.  Its much easier
where there is one class handling the the database traffic to implement this
kind of traffic cop approach, or caching, etc.

Lastly, it generally breaks the Model/View/Controller design
philisophy to include the model (database) with the view (jsp) in the same
class.

Randy


-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Speeding up database accesses




For one reason you are going to have a connection dedicated
to that session even if it isn't using it, so you will
have one connection per session when you really only need
one connection per use which is likely to be MUCH smaller, especially
considering the session doesn't die until session-timeout so you
will have a buch of lame connection sitting around takeing up
memory waiting to die..

A pool (especially a good one) will allow you to have
only the number of connections you need available to you
at any time.



CPC Livelink Admin wrote:
 
 Why is it a bad idea to use a session variable?
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 05, 2001 3:52 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Speeding up database accesses
 
 One possibility (altough a bad idea) is to stick it into your
 session.
 
 Another possibility is to create an object that has a static
 variable for the Connection.  Then provide methods to access it.  Remember
 that you need to make sure only one thing at a time is using the
connection.
 
 There are some pooling connection managers out there already.  One
 that I know of off the top of my head is PoolMan.  You can go over to
 sourceforge.net and search for it.
 
 Randy
 
 -Original Message-
 From: John Coonrod [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 05, 2001 4:19 PM
 To: [EMAIL PROTECTED]
 Subject: Speeding up database accesses

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




java.lang.ClassCastException from Tomcat/Appache

2001-02-05 Thread Lifeng Xu

Hi,

I am migrating a tested working project from window platform onto our new
Linux environment. Apache/Tomcat/Iprise  appServer are the same on both
platforms. Now I am getting the following error from inside Appache/Tomcat
when running the app on Linux, which I didn't get when I run it on windows.
The message doesn't make much sence to me. 

Can someone tell me what I am missing here?

java.lang.ClassCastException: java.lang.String
 at
_0002fNewEnrollment_0002ejspNewEnrollment_jsp_0._jspService(_0002fNewEnrollm
ent_0002ejspNewEnrollment_jsp_0.java:1803)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)

 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)

 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)

 at java.lang.Thread.run(Thread.java:498)

Thanks in advance.

Lifeng

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




XML as Servlet Init Params

2001-02-05 Thread Shahed Ali

Hi,

I would like to pass an xml string as a parameter to a servlet.

I tried

 init-param
param-namefoo/param-name
param-value
xml
param
/param
/xml
/param-value

but this does not work.

Any ideas ?

Thanks
Shahed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JBoss-Tomcat-Apache

2001-02-05 Thread Affe Egnell



Hi,
I'm trying to connect my Apache from one machine to 
my JBoss-Tomcat Applicationserver on another
machine, both under Windows 2000. 
How do I do it?
They are both running by them self but when I try 
to call the login.jsp site I cant connect...
I've been trying to configure Apache and Tomcat by 
the help from the web but with no luck
it just tells me how to connect if they are on the 
same machine(I think).

Greatfull for any help...

Affe Egnell[EMAIL PROTECTED]


  1   2   >