RE: URL configuration.

2002-07-30 Thread Toby Saville

change the port that your HTTP10Connector runs on. This can be done in the
/conf/server.xml file. Search for the Http10Connector
directive.

hope it works.

-t0bes

-Original Message-
From: RNivas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 5:10 PM
To: Tomcat-User
Subject: URL configuration.


I am having application running on Tomcat at port 8080.
every time i access the application i am getting URL like
http://ip-adress:8080/start.jsp

I am having one registered domain name 
www.123domain.com

How can I access my application

like www.123domain.com/start.jsp

My server running at winNT 4.0

Thanks

RN


***
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of the
Department of  Information Technology & Management.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***


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




URL configuration.

2002-07-30 Thread RNivas

I am having application running on Tomcat at port 8080.
every time i access the application i am getting URL like 
http://ip-adress:8080/start.jsp

I am having one registered domain name 
www.123domain.com

How can I access my application

like www.123domain.com/start.jsp

My server running at winNT 4.0

Thanks

RN



RE: RE: Premature packet header end exception

2002-07-30 Thread Gunter D'Hondt

I'm experiencing the same problem... see message "Cannot do ./configure with
the webapp on Linux machine"
Have you tried building your own mod_webapp.so?
Are you using Suse Linux? It's seems to be specific for Suse...

Need a solution fast too so keep me informed pls!


Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Felix Schumacher
Sent: woensdag 31 juli 2002 08:19
To: Tomcat Users List
Subject: AW: RE: Premature packet header end exception


Hi,

I asked the same question and still have not an acceptable answer,
but that this is a feature not a bug. Well, the message is printed
if the tomcat side of webapp gets an invalid packet. The tomcat
side will cancel the connection gracefully, as I am told. It
seems that the apache side is doing something wrong or loosing
the connection. But I do hope someone would look closer into this
problem.

Bye
 Felix

-- Original Nachricht --

>Yes, I continue to get this error.  I have searched
>through about the past year's messages on this list,
>and also with google, and I have not found an answer.
>
>If you know the problem/answer, please share!
>
>One way or another I have to get this working soon,
>so I will respond with any solution.
>
>Scott
>
>
>
>On Wed, 2002-03-06 at 15:20, Chris Geyer wrote:
>> Ok, a little more detail might be necessary:
>> I am running Tomcat 4.0.1 on Linux connecting to a mysql database. All
>of my
>> JSP pages are served without error, so I don't know where the error below
>is
>> coming from. I never receive an error while browsing the site, however
>this
>> error shows up sporadically throughout the
>> /usr/local/jakarta-tomcat-4.0.1/logs/apache_log... files. Any ideas on
>what
>> could be causing this problem? Has anyone experienced a similar problem?
>>
>>
>> Error message:
>> 2002-03-06 17:14:37 [org.apache.catalina.connector.warp.WarpConnection]
>> Exception on socket
>> java.io.IOException: Premature packet header end
>> at
>>
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
>> 37)
>> at
>>
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
>> ler.java:112)
>> at
>>
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
>> 4)
>> at java.lang.Thread.run(Thread.java:484)
>>
>>
>>
>> Thanks for the help,
>> chris
>>
>>
>> -Original Message-
>> From: Chris Geyer [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 11:41 AM
>> To: [EMAIL PROTECTED]
>> Subject: Premature packet header end exception
>>
>>
>>
>> I continue to get this error throughout my apache_log.2002-mm-dd.txt
files:
>>
>> 2002-03-05 11:16:05 [org.apache.catalina.connector.warp.WarpConnection]
>> Exception on socket
>> java.io.IOException: Premature packet header end
>> at
>>
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
>> 37)
>> at
>>
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
>> ler.java:112)
>> at
>>
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
>> 4)
>> at java.lang.Thread.run(Thread.java:484)
>>
>> What is causing this and how do I fix it?
>> Thanks,
>> chris
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>








Online Fotoalben - jetzt kostenlos bei http://www.ePost.de



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Finding the servlets

2002-07-30 Thread Toby Saville

How do i tell tomcat (3.3.1) to use a directory other than ROOT for finding
the WEB-INF with my servlets? I want to run my website in /web/prod/webapp/
and have the servlets in WEB-INF/classes/ but tomcat keeps looking in
/webapps/ROOT/WEB-INF/classes/.

Also, is the webapps/ directory a reserved name that tomcat looks for (like
WEB-INF) or is it just set via the AutoWebApp directive in server.xml?

thanks.

-t0bes


***
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of the
Department of  Information Technology & Management.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***


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




AW: RE: Premature packet header end exception

2002-07-30 Thread Felix Schumacher

Hi,

I asked the same question and still have not an acceptable answer,
but that this is a feature not a bug. Well, the message is printed
if the tomcat side of webapp gets an invalid packet. The tomcat
side will cancel the connection gracefully, as I am told. It
seems that the apache side is doing something wrong or loosing
the connection. But I do hope someone would look closer into this
problem.

Bye
 Felix

-- Original Nachricht --

>Yes, I continue to get this error.  I have searched
>through about the past year's messages on this list,
>and also with google, and I have not found an answer.
>
>If you know the problem/answer, please share!
>
>One way or another I have to get this working soon,
>so I will respond with any solution.
>
>Scott
>
>
>
>On Wed, 2002-03-06 at 15:20, Chris Geyer wrote:
>> Ok, a little more detail might be necessary:
>> I am running Tomcat 4.0.1 on Linux connecting to a mysql database. All
>of my
>> JSP pages are served without error, so I don't know where the error below
>is
>> coming from. I never receive an error while browsing the site, however
>this
>> error shows up sporadically throughout the
>> /usr/local/jakarta-tomcat-4.0.1/logs/apache_log... files. Any ideas on
>what
>> could be causing this problem? Has anyone experienced a similar problem?
>>
>>
>> Error message:
>> 2002-03-06 17:14:37 [org.apache.catalina.connector.warp.WarpConnection]
>> Exception on socket
>> java.io.IOException: Premature packet header end
>> at
>> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
>> 37)
>> at
>> org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
>> ler.java:112)
>> at
>> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
>> 4)
>> at java.lang.Thread.run(Thread.java:484)
>>
>>
>>
>> Thanks for the help,
>> chris
>>
>>
>> -Original Message-
>> From: Chris Geyer [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 11:41 AM
>> To: [EMAIL PROTECTED]
>> Subject: Premature packet header end exception
>>
>>
>>
>> I continue to get this error throughout my apache_log.2002-mm-dd.txt
files:
>>
>> 2002-03-05 11:16:05 [org.apache.catalina.connector.warp.WarpConnection]
>> Exception on socket
>> java.io.IOException: Premature packet header end
>> at
>> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
>> 37)
>> at
>> org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
>> ler.java:112)
>> at
>> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
>> 4)
>> at java.lang.Thread.run(Thread.java:484)
>>
>> What is causing this and how do I fix it?
>> Thanks,
>> chris
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>








Online Fotoalben - jetzt kostenlos bei http://www.ePost.de



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




Re: Connect Java Profiler to Tomcat

2002-07-30 Thread Steinar Bang

> "Zhenxin Wang" <[EMAIL PROTECTED]>:

> I wonder anyone has done hooking up a Java Profiler such as
> OptimizeIt or JProbe.

I've asked the same question on different newsgroups, but got no
responses.

> The Tomcat startup script is a bit hard to digest. 
> How to start Tomcat (4.0.4) by running java . from cmd line?

If you get it working, could you perhaps post your experiences here? :-)

Thanx!


- Steinar



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




Suppression of directory listing in Tomcat

2002-07-30 Thread Nikolas A. Rathert

Hi,
how do I have to configure server.xml or whatever to tell Tomcat that it 
should not show the complete directory to the user in case there is no 
index.html or something like that in the directory?
I know how to handle that with Apache but the htdocs directory has 
nothing to do with Tomcats webapps. Therefore, there has to be another 
solution.

Cheers,

Nick


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




RE: i can't acces absolute symbolic link created with ln -s command on LINUX

2002-07-30 Thread CouasPhilippe



-Message d'origine-
De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 31 juillet 2002 07:47
A:  Tomcat Users List
Objet:  Re: i can't acces absolute symbolic link created with ln -s command on LINUX

I use Tomcat 4.1.7 Standalone
my link is ln -s /appli appli
and Tomcat is in /usr/bin Directory.

I have exactly same problem with AIX 
I think there is as security parameter somewhere


Thanks


On Tuesday 30 July 2002 18:44, you wrote:
> Hi everybody,
>
>
> i can't acces symbolic link with Tomcat 4.1.7.
> i have created a link with ln -s command on LINUX.
> If this symbolic link don't refere to a directory which is in webapps tree
> i have an error 404. why ?
> That is ok with Tomcat 4.0.4
>
> Thanks
> Philippe

Do you use Apache? Is your Tomcat connected with Apache?
I have not reproduced your situation, but if your directories are described 
for Tomcat-Apache case, in "Apache" syntax, so may be you have somewhere a 
directive FollowSymLinks with "minus" option. I am sure that you are aware 
about this and your situation is different, but this is just an idea

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


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




RE: Cannot do ./configure with the webapp on Linux machine

2002-07-30 Thread Gunter D'Hondt

I've tried it with the EAPI parameter but this is the result:


torvald1:/tmp/webapp-module-1.0-tc40 #
./configure --with-apxs --enable-DEAPI
: command not found
: command not found
: command not found
checking for test... /usr/bin/test
: command not found
: command not found
'/configure: line 2773: syntax error near unexpected token `in
'/configure: line 2773: `  case "${enableval}" in
torvald1:/tmp/webapp-module-1.0-tc40 #

So the problem still occurs... can anybody help me?

Gunter



-Original Message-
From: franzR [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 30 juli 2002 15:44
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: AW: Cannot do ./configure with the webapp on Linux machine


You've to enable the EAPI for an Apache-1.3 by parameterizing this property
before you start the configuration;
Example:
./configure --with-apxs=... --enable-EAPI

More things can be found in the documentation (native/BUILDING)!

franzR

-Ursprüngliche Nachricht-
Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 30. Juli 2002 14:40
An: 'Tomcat Users List'
Betreff: Cannot do ./configure with the webapp on Linux machine


Hi,

I using Suse Linux 8.0 and already installed Apache 1.3 and Tomcat 4.0
successfully. Now I'm trying to get mod_webapp configured. This gives me the
error:
2002-07-30 12:37:05 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
 at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
37)
 at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
 at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
 at java.lang.Thread.run(Thread.java:484)

Since I haven't compiled the mod_webapp.so myself I thought let's do that
becoz I'm getting the following error when running apachectl configtest:
torvald1:/tmp/webapp-module-1.0-tc40 # apachectl configtest
[Tue Jul 30 14:41:06 2002] [warn] Loaded DSO /usr/lib/apache/mod_webapp.so
uses plain Apache 1.3 API, this module might crash u
nder EAPI! (please recompile it with -DEAPI)
Syntax OK
torvald1:/tmp/webapp-module-1.0-tc40 #

But I'm getting problems when doing "./configure" with the sources:
torvald1:/tmp/webapp-module-1.0-tc40 #
torvald1:/tmp/webapp-module-1.0-tc40 # ls -la
total 296
drwxr-xr-x   11 nobody   nobody664 Jul 30 14:24 .
drwxrwxrwt   12 root root 1256 Jul 30 14:30 ..
-rwxr--r--1 nobody   nobody  10244 Jul 19  2001 .DS_Store
-rwxr--r--1 nobody   nobody103 Aug 31  2001 .cvsignore
-rwxr--r--1 nobody   nobody   5527 Sep 17  2001 INSTALL.txt
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 LICENSE.txt
-rwxr--r--1 nobody   nobody   7994 Sep 17  2001 Makedefs.in
-rwxr--r--1 nobody   nobody   6349 Sep 17  2001 Makefile.in
-rwxr--r--1 nobody   nobody   6300 Sep 17  2001 Makefile.win
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 README.txt
drwxr-xr-x2 nobody   nobody176 Jul 30 13:41 apache-1.3
drwxr-xr-x2 nobody   nobody144 Jul 30 13:41 apache-2.0
drwxr-xr-x   22 nobody   nobody   1032 Jul 30 14:25 apr
-rw-r--r--1 root root 1553 Jul 30 14:24 config.log
-rwxr-xr-x1 nobody   nobody 125598 Jul 30 14:29 configure
-rwxr--r--1 nobody   nobody  19982 Sep 17  2001 configure.in
-rwxr--r--1 nobody   nobody  80284 Jul 30 14:22 configure.old
drwxr-xr-x2 nobody   nobody232 Jul 30 13:41 docs
drwxr-xr-x2 nobody   nobody200 Jul 30 13:41 include
drwxr-xr-x2 nobody   nobody544 Jul 30 13:41 java
drwxr-xr-x2 nobody   nobody440 Jul 30 13:41 lib
drwxr-xr-x2 nobody   nobody 72 Jul 30 13:41 nsapi
drwxr-xr-x2 nobody   nobody488 Jul 30 13:41 support
torvald1:/tmp/webapp-module-1.0-tc40 # autoconf
/usr/bin/m4: configure.in: 142: Non-numeric argument to built-in `divert'
/usr/bin/m4: configure.in: 372: Non-numeric argument to built-in `divert'
torvald1:/tmp/webapp-module-1.0-tc40 # ./configure --with-apxs
: command not found
: command not found
: command not found
checking for test... /usr/bin/test
: command not found
: command not found
'/configure: line 2773: syntax error near unexpected token `in
'/configure: line 2773: `  case "${enableval}" in
torvald1:/tmp/webapp-module-1.0-tc40 # #


Does anybody know what the problem can be overhere?

Greetings,
Gunter D'Hondt
SOFICO NV
BELGIUM





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




Re: i can't acces absolute symbolic link created with ln -s command on LINUX

2002-07-30 Thread Irina Lishchenko

On Tuesday 30 July 2002 18:44, you wrote:
> Hi everybody,
>
>
> i can't acces symbolic link with Tomcat 4.1.7.
> i have created a link with ln -s command on LINUX.
> If this symbolic link don't refere to a directory which is in webapps tree
> i have an error 404. why ?
> That is ok with Tomcat 4.0.4
>
> Thanks
> Philippe

Do you use Apache? Is your Tomcat connected with Apache?
I have not reproduced your situation, but if your directories are described 
for Tomcat-Apache case, in "Apache" syntax, so may be you have somewhere a 
directive FollowSymLinks with "minus" option. I am sure that you are aware 
about this and your situation is different, but this is just an idea

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




How can I let a JSP page show traditional-Chinese words correctly?

2002-07-30 Thread @Basebeans.com

Subject: How can I let a JSP page show traditional-Chinese words correctly?
From: "news.basebeans.com" <[EMAIL PROTECTED]>
 ===
Hi,

I design a JSP page and I want the page to show traditional-Chinese
words. I had tried to deploy the JSP page with many Chinese words on the
Tomcat 3.x and I browser the page by IE. The Chinese words in the page were
correctly showed. But I deploy the JSP page on the Tomcat (4.04/4.1.7) and
used IE to browse the page. The Chinese Words in the JSP page were showed
incorrectly.
I had configured the page attribute¡Ð<%@ page
contentType="text/html;charset=big5"%>, and meta tage¡Ð
. These two
configurations in the JSP pages deployed individually on the Tomcat 3.x and
Tomcat 4.x are the same. Why did I upgrade my Tomcat from 3.x to 4.x and the
problem happened. So How can I solve the charset problem in the Tomcat 4.x?
I tried to change the different charset values, but the Chinese words
was as bad as before.

Judging






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




Re: tomcat 4.0.4 and j2sdk1.4.0_01 ?

2002-07-30 Thread Jacob Kjome

At 12:31 PM 7/31/2002 +0930, you wrote:
>looking through the list archives, there seem to be a number of questions 
>and concerns about deploying tomcat with java 1.4 (mostly compilation 
>issues it seems). could someone please provide a quick one line insight:
>
>is tomcat 4.0.3, the 1.4.0_01 sdk, IIS and JDBC access to SQL
>server on windows 2000 a known and good mix? would a more
>conservative SDK choice be better?

Yes, that is fine, although I'd upgrade to 4.0.4.  It solves some 
classloading issues and there are other fixes that are worth the 
upgrade.  If you really want to keep up with the times, I'd upgrade to 
4.1.8 even.  You will need to do it eventually since that is actively being 
developed where 4.0.x is all about bug fixes and no new features.  The JDK 
is just fine.  1.4.x works great with Tomcat.  No experience with using 
JDBC with SQL server except that I've heard the SQL Server driver that 
Microsoft provides is moderately buggy.  I'd try out a driver from 
somewhere else.


>another newbie qn: the list archives on
>
>   http://mikal.org/interests/java/tomcat/
>
>run only to march this year. i have crawled around trying to find another 
>easiy usable archive - is there a more current one?

This is the best one around:

http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

Note that you can also access tons of other user list archives here:

http://marc.theaimsgroup.com/?w=2

Jake

>thanks and regards,
>
>   matt
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



tomcat 4.0.4 and j2sdk1.4.0_01 ?

2002-07-30 Thread Matt Brennan

looking through the list archives, there seem to be a number of 
questions and concerns about deploying tomcat with java 1.4 (mostly 
compilation issues it seems). could someone please provide a quick one 
line insight:

is tomcat 4.0.3, the 1.4.0_01 sdk, IIS and JDBC access to SQL
server on windows 2000 a known and good mix? would a more
conservative SDK choice be better?

another newbie qn: the list archives on

   http://mikal.org/interests/java/tomcat/

run only to march this year. i have crawled around trying to find 
another easiy usable archive - is there a more current one?

thanks and regards,

   matt


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




load a class into memory during startup

2002-07-30 Thread jmok

Hi,
I just wonder how would you load a class into memory during startup of tomcat 
and how to retrieve it back through jsp?

EG, I wanted to load a text file into memory and called it object A, I also 
wanted to call back A later on.

Joshua



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




RE: ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL"

2002-07-30 Thread Toby Saville

It means your trying to use the JK Module to connect Apache and Tomcat. look
for LoadModule jk_module in either /conf/httpd.conf or in
/conf/auto/mod_jk.conf. 

Or look in  to see if there is a directory called libexec.
If there is, but there is no file called mod_jk.so, you may have to download
a copy from the apache site if you want to use mod_jk to connect tomcat and
apache. if you dont want to use mod_jk (im guessing not if you dont know
what it is), comment or delete the line LoadModule jk_module mentioned above
and also the line AddModule mod_jk.c in your httpd.conf file (this line may
not be present).

have phun

-t0bes

-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 11:34 AM
To: Tomcat Users List
Subject: ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL"


I am seeing this error in my log files when I startup tomcat:

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using 
Starting service Tomcat-Apache

There is no mention of it in the list archives. Anyone have an idea
what this means? 

TC seems to startup fine...

-August

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



***
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of the
Department of  Information Technology & Management.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***


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




ApacheConfig modJk="PATH_TO_MOD_JK.SO_OR_DLL"

2002-07-30 Thread August Detlefsen

I am seeing this error in my log files when I startup tomcat:

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using 
Starting service Tomcat-Apache

There is no mention of it in the list archives. Anyone have an idea
what this means? 

TC seems to startup fine...

-August

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Tomcat 4.0.4 HTTP connector shutdown issue

2002-07-30 Thread Sankaranarayanan (Ganesh) Ganapathy

Hi All,

I am running tomcat server 4.0.4 on  win2k. I have a simple client that repeatedly 
keeps sending requests to Tomcat... my client program hangs once in a while during 
Tomcat shutdown. My client program does the following:

URL url = new URL("somerequest");
HttpURLConnection httpUrlConnection = (HttpURLConnection) url.openConnection();
httpUrlConnection.setUseCaches(false);
httpUrlConnection.getContent();  //The code hangs here once a while during tomcat 
shutdown

>From the tomcat code I see that the tomcat shutdown sequence does the following:

1. Shutdown all the processors (essentially the background threads)
2. Shutdown the connector background thread - which cause the server socket to be 
closed

Since the server socket is not closed first - the incoming requests are accepted - but 
they are not processed as the processors are being shutdown. The logs illustrate my 
point too.

Shouldnt the shutdown sequence be the other way?

Am I missing something here... Is there a way for me to work around this problem?

Thanx
Ganesh

 

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




generating a form from a jsp

2002-07-30 Thread Billy V. Kantartzis

is there a way that i could read in a form that i have build as a jsp within
a servlet and modify it
i need to acess a DB and if there is an entry for a specific key  i would
like to be able to display the values in the form and then change them if
need to.
is there a way to do this ?

best regards
Billy Kantartzis

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




RE: Classpath Woes...

2002-07-30 Thread Larry Isaacs

Which Tomcat 3.3.x, and was it installed in a new directory
(which is recommended)?  Any changes to the default configuration?
The default configuration of Tomcat 3.3.x doesn't use the
JspServlet.

Cheers,
Larry

> -Original Message-
> From: Ben Boule [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 6:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: Classpath Woes...
> 
> 
> Hi, 
> I was wondering if anyone could help me out with a problem with Tomcat
> 3.3.x.
> 
> We've developed our application under the Tomcat 3.2.x 
> implementation that
> is integrated into JBuilder 6.  We use Struts for our framework.  The
> application works
> fine in that environment.  I am now trying to set up the 
> deployment, and we
> wanted to 
> use either Tomcat 3.3.x or Tomcat 4.0.x.Tomcat 4 seems to 
> have issues
> with our 
> ORB implementation (Borland) so for now I am working with 3.3.x.
> 
> The problem is that when the application goes to compile a 
> .jsp file for the
> first time, 
> it encounters a ClassNotFoundException trying to find a Jasper class,
> JspServlet.
> 
> e.x.  (from the std output)
> 
> 2002-07-30 17:58:30 - Ctx(/) : Class not found:
> org.apache.jasper.servlet.JspServlet
> 
> If I copy the jasper.jar file from $TOMCAT_HOME/lib/container 
> into  name>/WEB-INF/lib, then the Jasper classes are not found.
> 
> However, this results in another class not found exception, 
> this time it
> can't find the classes for the javac compiler!   (sun.tools.something)
> 
> If I then copy the tools.jar file from the JDK 1.3 
> distribution into the
> WEB-INF/lib directory, everything works.  This would 
> obviously seem to be an
> unacceptable solution however.
> 
> I can't figure out why this is happening.  It doesn't happen with the
> example applications under the exact same environment.
> 
> (JAVA_HOME is set to point to JDK 1.3.1, TOMCAT_HOME is set 
> to the right
> directory as well.)
> 
> I have read the classloader-howto several times but I can't figure out
> what's wrong.
> 
> Thanks,
> Ben Boule
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Re: Tomcat 4.04 and JDBC

2002-07-30 Thread Michael Locasto

Hi Tom,

You need to be a tad more specific about the nature of your problem (error
codes, exception messages, stacktraces, log entries) so folks can have a
decent shot at replying with something resembling a valid answer ;)

My best guess is that your JDBC Driver is probably not being seen by
Tomcat, whereas your Java program was using the CLASSPATH to look for
classes to load and was able to find them. If your driver is someplace
that is normally in the CLASSPATH, it probably isn't in the CLASSPATH that
Tomcat contstructs when it runs.

Make sure the driver can be seen by your web-app's ClassLoader (eg, in
TOMCAT_HOME/webapps/yourapp/WEB-INF/lib) or put it somewhere more general,
like TOMCAT_HOME/common/lib (not sure if the latter is correct behavior
for 4.0.4, in 3.3.1 you place stuff like that in lib/apps )

Regards,
Michael

- Original Message -
From: "Reis, Tom" <[EMAIL PROTECTED]>
To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 6:00 PM
Subject: Tomcat 4.04 and JDBC


> Are there any special parameters for using TomCat 4.04 with JDBC
> drivers. I got the same jdbc_driver and jdbc_url to work with a java
program
> but not with a TomCat servlet and I am wondering if there are any
special
> parameters. Thanks.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:




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




RE: Classpath Woes...

2002-07-30 Thread Ben Boule

I am sorry, in my previous email I meant to say that when I copy jasper.jar
into WEB-INF/lib, the jasper classes ARE found.

Ben Boule

-Original Message-
From: Ben Boule [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 6:06 PM
To: '[EMAIL PROTECTED]'
Subject: Classpath Woes...

[snip]

2002-07-30 17:58:30 - Ctx(/) : Class not found:
org.apache.jasper.servlet.JspServlet

If I copy the jasper.jar file from $TOMCAT_HOME/lib/container into /WEB-INF/lib, then the Jasper classes are not found.

[snip]

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Native OS authentication using single sign on ...

2002-07-30 Thread Craig R. McClanahan



On Tue, 30 Jul 2002, Michael Remijan wrote:

> Date: Tue, 30 Jul 2002 15:46:43 -0500
> From: Michael Remijan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Native OS authentication using single sign on ...
>
> I've been following these posts closely because I want to do basically
> the same thing as well.  My stupid question is what happens after you
> submit the form??  What I would like to do is create an Object and put
> it in the users session.  However, if the user goes click on a link that
> takes them to another webapp, will the object that I put in the session
> still be available??  Single Sign On is great but if I can't passes a
> shared object around via the session (or some other technique) it
> doesn't do me any good.
>

Single sign on avoids the need for a user to authenticate himself or
herself to multiple apps.  It does not cause any sharing of sessions -- in
fact, the user will have a separate session for each app that they are
actually using.

Sharing information between webapps is not affected in the slightest by
single sign on's use.

> Mike

Craig


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




Classpath Woes...

2002-07-30 Thread Ben Boule

Hi, 
I was wondering if anyone could help me out with a problem with Tomcat
3.3.x.

We've developed our application under the Tomcat 3.2.x implementation that
is integrated into JBuilder 6.  We use Struts for our framework.  The
application works
fine in that environment.  I am now trying to set up the deployment, and we
wanted to 
use either Tomcat 3.3.x or Tomcat 4.0.x.Tomcat 4 seems to have issues
with our 
ORB implementation (Borland) so for now I am working with 3.3.x.

The problem is that when the application goes to compile a .jsp file for the
first time, 
it encounters a ClassNotFoundException trying to find a Jasper class,
JspServlet.

e.x.  (from the std output)

2002-07-30 17:58:30 - Ctx(/) : Class not found:
org.apache.jasper.servlet.JspServlet

If I copy the jasper.jar file from $TOMCAT_HOME/lib/container into /WEB-INF/lib, then the Jasper classes are not found.

However, this results in another class not found exception, this time it
can't find the classes for the javac compiler!   (sun.tools.something)

If I then copy the tools.jar file from the JDK 1.3 distribution into the
WEB-INF/lib directory, everything works.  This would obviously seem to be an
unacceptable solution however.

I can't figure out why this is happening.  It doesn't happen with the
example applications under the exact same environment.

(JAVA_HOME is set to point to JDK 1.3.1, TOMCAT_HOME is set to the right
directory as well.)

I have read the classloader-howto several times but I can't figure out
what's wrong.

Thanks,
Ben Boule



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




Tomcat 4.04 and JDBC

2002-07-30 Thread Reis, Tom

Are there any special parameters for using TomCat 4.04 with JDBC
drivers. I got the same jdbc_driver and jdbc_url to work with a java program
but not with a TomCat servlet and I am wondering if there are any special
parameters. Thanks.

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




Re: Add arbitrary path to classpath?

2002-07-30 Thread Will Hartung

From: "Paul Brinkley" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 2:14 PM
Subject: Add arbitrary path to classpath?

> (Newbie alert: I've been playing with Tomcat for a couple weeks, and once
> made a servlet or two a couple of years ago.  Please be gentle.)
>
> Is it possible to give a servlet access to custom class files, if those
> custom classes don't want to live under WEB-INF, CATALINA_HOME, etc.?

Well, let's start with the "Doc, it hurts when I..." lines.

Why don't these classes want to live in WEB-INF or CATALINA_HOME? Did the
COPY command on your system stop working?

> So far as I can tell after reading
>
>tomcat-docs/class-loader-howto.html
>
> four times, as well as rampant websearching, there's no way to do this in
a
> reasonably portable way.

Portable how? To different Servlet containers? Different OSes?

> I would also prefer not to have to change the Tomcat startup scripts.
This
> wouldn't be portable to another web server, and it would also add
> complexity to the installation instructions that I'd rather avoid.  Plus,
> it would expose our code to other servlets.  If I can control visibility
> of this custom code to other servlets possibly running on a given engine,
> great.
>
> Tomcat 4.0.4 (but I'd prefer a solution that's portable to other engines
if
>possible)
> OS: Win2000, but again, the more portable, the better
> Servlet is unpacked (not in a war file)

The solution is to follow the spec, drop your classes into WEB-INF/classes
and WEB-INF/lib and call it a day. These classes aren't shared with any
other servlets, so they're safe. This is completely portable as it's the
"only" way that's guaranteed by the Servlet specification, anything else is
platform dependant and therefore, by definition, not portable.

Done properly, there is no configuration for deployment.

I think Tomcat made the correct decision to completely ignore CLASSPATH for
the deployed applications. This give the container a LOT of flexibility, and
I've yet to see a compelling reason to NOT do it.

Jar files are not directories. Java Packages are not directories. This is an
Illusion that people have because of their current implementation. Your
application DOES NOT CARE where or how the JVM locates classes, so why
should you? When you care about how your application locates classes, is
when you start to write your own ClassLoaders. 99.99% of the time, this
isn't what you want to do.

So, do that smart thing, stick a couple of MKDIR and XCOPY commands into
your build script, move the files to the Right Places within the webapp, and
quit wasting time trying to fight this battle.

Embrace and love the WAR and webapp. It's your friend. Really!

Regards,

Will Hartung
([EMAIL PROTECTED])





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




Add arbitrary path to classpath?

2002-07-30 Thread Paul Brinkley


(Newbie alert: I've been playing with Tomcat for a couple weeks, and once
made a servlet or two a couple of years ago.  Please be gentle.)

Is it possible to give a servlet access to custom class files, if those
custom classes don't want to live under WEB-INF, CATALINA_HOME, etc.?

So far as I can tell after reading

   tomcat-docs/class-loader-howto.html

four times, as well as rampant websearching, there's no way to do this in a
reasonably portable way.

According to

   http://www.jguru.com/faq/view.jsp?EID=141

for Tomcat, I have to set it "in a config file".  Which config file, and
how??  I saw nothing helpful in conf/server.xml or the web.xml template.

I would also prefer not to have to change the Tomcat startup scripts.  This
wouldn't be portable to another web server, and it would also add
complexity to the installation instructions that I'd rather avoid.  Plus,
it would expose our code to other servlets.  If I can control visibility
of this custom code to other servlets possibly running on a given engine,
great.

I'm probably looking for a solution along the lines of "add such-and-such
line to your servlet's web.xml file".

Sundry details:

Tomcat 4.0.4 (but I'd prefer a solution that's portable to other engines if
   possible)
OS: Win2000, but again, the more portable, the better
Servlet is unpacked (not in a war file)


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




RE: Premature packet header end exception

2002-07-30 Thread Scott Erholm

Yes, I continue to get this error.  I have searched
through about the past year's messages on this list,
and also with google, and I have not found an answer.

If you know the problem/answer, please share!

One way or another I have to get this working soon,
so I will respond with any solution.

Scott



On Wed, 2002-03-06 at 15:20, Chris Geyer wrote:
> Ok, a little more detail might be necessary:
> I am running Tomcat 4.0.1 on Linux connecting to a mysql database. All of my
> JSP pages are served without error, so I don't know where the error below is
> coming from. I never receive an error while browsing the site, however this
> error shows up sporadically throughout the
> /usr/local/jakarta-tomcat-4.0.1/logs/apache_log... files. Any ideas on what
> could be causing this problem? Has anyone experienced a similar problem?
> 
> 
> Error message:
> 2002-03-06 17:14:37 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket
> java.io.IOException: Premature packet header end
> at
> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
> 37)
> at
> org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
> ler.java:112)
> at
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
> 4)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> Thanks for the help,
> chris
> 
> 
> -Original Message-
> From: Chris Geyer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Premature packet header end exception
> 
> 
> 
> I continue to get this error throughout my apache_log.2002-mm-dd.txt files:
> 
> 2002-03-05 11:16:05 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket
> java.io.IOException: Premature packet header end
> at
> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
> 37)
> at
> org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
> ler.java:112)
> at
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
> 4)
> at java.lang.Thread.run(Thread.java:484)
> 
> What is causing this and how do I fix it?
> Thanks,
> chris
> 
> 



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




RE: Re[2]: REPOST: Document.importNode not working-works fine in modified JSDK2.1

2002-07-30 Thread Chua Eng Huang, Cecil

Dear all,
 
I tried moving the jars as earlier suggested.
 
Here's the contents of the directory.  As you can see, Xerces IS in the directory 
(actually two versions of it).
 
 Volume in drive C has no label.
 Volume Serial Number is 90E8-430D
 Directory of C:\JAKART~1.1\lib\apps
07/30/2002  04:39p.
07/30/2002  04:39p..
03/13/2002  11:47p 417,110 ant-1.4.1.jar
12/12/2000  02:36p 443,047 ant.jar
01/28/2002  02:31p  71,695 antlr.jar
01/28/2002  02:31p 130,307 avalon-excalibur-4.0.jar
01/28/2002  02:31p  35,299 avalon-framework-4.0.jar
04/23/2001  02:59p 779,765 castor.jar
01/28/2002  02:31p 694,162 cocoon.jar
01/28/2002  02:31p  54,831 cos.jar
01/28/2002  02:31p  24,026 db.jar
03/13/2002  11:47p  15,991 examples.jar
01/28/2002  02:31p 461,188 exist.jar
01/28/2002  02:31p  28,383 getopt.jar
04/23/2001  02:59p  30,358 infozone-lexus.jar
03/13/2002  11:47p  44,009 infozone-tools.jar
01/28/2002  02:31p  29,871 jakarta-regexp-1.2.jar
04/23/2001  02:59p  29,795 jakarta-regexp.jar
01/28/2002  02:31p  66,521 jasper-runtime.jar
12/12/2000  02:37p 209,875 jasper.jar
04/23/2001  02:59p 246,635 javaclass.jar
01/28/2002  02:31p   6,407 java_readline.jar
12/12/2000  02:36p   5,618 jaxp.jar
01/28/2002  02:31p 193,431 jdbc7.0-1.2.jar
04/23/2001  02:59p  98,496 jndi.jar
01/28/2002  02:31p  25,391 jstyle.jar
04/23/2001  02:59p   8,809 jta-spec1_0_1.jar
04/23/2001  02:59p  45,054 junit.jar
01/28/2002  02:31p 158,892 log4j.jar
01/28/2002  02:31p  70,529 logkit-1.0.jar
01/28/2002  02:31p  34,369 maybeupload_1-0-5pre3.jar
01/28/2002  02:31p  62,403 mysql.jar
04/23/2001  02:59p  12,468 omquery.jar
03/13/2002  11:47p   1,729,689 openorb-1.2.0.jar
03/13/2002  11:47p 283,371 openorb_tools-1.2.0.jar
01/28/2002  02:31p 413,614 optional.jar
12/12/2000  02:36p 136,133 parser.jar
05/06/1999  09:41a  33,271 qtag.jar
03/26/2002  07:43a  94 README
01/28/2002  02:31p  72,154 resolver.jar
12/12/2000  02:36p  40,836 servlet.jar
07/30/2002  04:39p   0 show.txt
01/28/2002  02:31p 105,291 trove.jar
12/12/2000  02:37p 406,998 webserver.jar
03/13/2002  11:47p 720,930 xalan-2.0.1.jar
01/28/2002  02:31p 897,409 xalan-2.2.0-D14.jar
03/13/2002  11:47p   1,808,885 xerces-1.4.3.jar
01/28/2002  02:31p   1,781,968 xerces-1.4.4.jar
04/23/2001  02:59p 795,604 xerces.jar
03/13/2002  11:47p 589,139 xindice.jar
03/13/2002  11:47p  77,890 xml-apis-1.0.jar
01/28/2002  02:31p  92,409 xml-apis.jar
01/28/2002  02:31p   8,969 xmldb-api-2001.jar
03/13/2002  11:47p   9,240 xmldb-sdk.jar
03/13/2002  11:47p  28,473 xmldb-xupdate.jar
03/13/2002  11:47p   8,969 xmldb.jar
01/28/2002  02:31p  59,975 xmlrpc-1.0rc1.jar
04/23/2001  02:59p 370,745 xtdash.jar
  56 File(s) 15,006,791 bytes
   2 Dir(s) 886,317,056 bytes free
 
There was also a request to see the variable temp2.  Enclosed is the full source code 
for that function.
 
  private Document setupXMLSearchEngine(DocumentBuilder builder, String result, 
DBConnTable d, readcore swarg) throws 
ParserConfigurationException,SAXException,IOException,ClassNotFoundException,SQLException

   {
Integer I=new Integer(swarg.value("currconfig"));
counter c=new counter();
String dbx=swarg.value("DBX");
while (c.value()No 
records")));
else
  temp=builder.parse(new InputSource(new StringReader(result)));
Node temp3=temp.getDocumentElement();
Node temp4=temp2.importNode(temp3,true); //This is line 109 where Tomcat bombs
root2.appendChild(temp4);
return temp2;
   }

What I'll probably do if nothing else works is just write my own importNode function 
within the module.
 
Cecil Chua

-Original Message- 
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Mon 7/29/2002 3:31 PM 
To: Tomcat Users List 
Cc: 
Subject: Re[2]: REPOST: Document.importNode not working-works fine in modified 
JSDK2.1



Hello Greg,

The advice below to store your application accessible classes in
$TOMCAT_HOME/server/lib/ is bad information.  That will only be seen
by Tomcat itself.  If you want both Tomcat and apps to see your
library, you need to store that in $TOMCAT_HOME/common/lib 

RE: Native OS authentication using single sign on ...

2002-07-30 Thread Michael Remijan

I've been following these posts closely because I want to do basically the same thing 
as well.  My stupid question is what happens after you submit the form??  What I would 
like to do is create an Object and put it in the users session.  However, if the user 
goes click on a link that takes them to another webapp, will the object that I put in 
the session still be available??  Single Sign On is great but if I can't passes a 
shared object around via the session (or some other technique) it doesn't do me any 
good.

Mike

-Original Message-
From: HAVENS,PETER (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 1:53 PM
To: '[EMAIL PROTECTED]'
Subject: Native OS authentication using single sign on ...


I am currently trying to authenticate multiple webapps under a single
authentication mechanism.  That is login once and you can access all of the
webapps under a given virtual host.  I have enabled single sign on in the
server.xml file and I have added a  and 
in my conf/web.xml file.  Everything is working great and it is
authenticating users against the conf/tomcat-users.xml file. 
 
Now I want to take the next step to do native OS authentication using a JNI
to a C or C++ module that uses PAM.  How do I change my login.jsp page
pointed to by the  to call a bean instead of just
authenticating against the tomcat-users.xml?
 
Any input would be greatly appreciated.  I have included part of my
conf/web.xml and my login.jsp.
 
Thanks in advance.
 
-Peter
 
--Portion of conf/web.xml-

  Gryphon Authentication 
  
Protected Area 
 
/* 
 
GET 
DELETE
POST
PUT
  
  
 
* 
  

 
 

  FORM 
  Gryphon Form-Based Authentication 
  
/login.jsp 
/error.jsp 
  

end of conf/web.xml
 
login.jsp-


Login Page

 

  

  Username:
  


  Password:
  


  
  

  

 
<%
if ( ! request.isSecure() )
{
  // Forward to a secure page
  String sslURL = "https://"; + request.getServerName() + ":1188" +
request.getRequestURI();
%>
  
  WARNING: This is a non-secure page!
  
  Click here to use SSL.
  
<%
}
%>




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




Tomcat 4, NS4, SSL and Form-based Login Problem

2002-07-30 Thread David Park

I am trying to implement SSL in order to secure the transmission of
passwords for a web app running under Tomcat 4.0.4 and using form-based
authentication.  My SSL connector is working, and my login form is secured
by a security constraint in web.xml requiring confidential transport
guarantees.  IE6 works perfectly: the login form is presented securely, and
authentications work as expected.  However, under Netscape 4.7, the login
form is presented securely, but I get the following error after I submit a
username and password:

Apache Tomcat/4.0.4 - HTTP Status 400 - Invalid direct
reference to form login page

type Status report

message Invalid direct reference to form login page

description The request sent by the client was syntactically incorrect
(Invalid direct reference to form login page).

Has anyone else encountered this, and if so is there a fix?

Thanks,
--
David Park
[EMAIL PROTECTED]



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




RE: Multiple Web App Authentication

2002-07-30 Thread HAVENS,PETER (HP-Cupertino,ex3)

No.  I was able to place the login.jsp in the webapps/ROOT directory and it
works for all of the webapps in that virtual host.

-Peter

-Original Message-
From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 11:36 AM
To: 'Tomcat Users List'
Subject: RE: Multiple Web App Authentication

Thank you for your reply.  I have done the same thing but what I found is
that, using your example,login.jsp would have to reside in each web
applications directory.  So if I have 5 different web applications,
login.jsp would have to be replicated 5 times.  I would like to have
login.jsp in only one place.  Are you experiencing something different?

-Original Message-
From: HAVENS,PETER (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:31 PM
To: 'Tomcat Users List'
Subject: RE: Multiple Web App Authentication


I have been working on the same thing.  I believe it can be accomplished by
modifying your web.xml file in the conf directory.  You will need a
 and a .  Here is what I added and it
seems be working.  Hope this gets you started.

-Peter
- 

  Gryphon Authentication 
  
Protected Area 
 
/* 
 
GET 
DELETE
POST
PUT
  
  
 
* 
  


 

  FORM 
  Gryphon Form-Based Authentication 
  
/login.jsp 
/error.jsp 
  


-Original Message-
From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 11:10 AM
To: 'Tomcat Users List'
Subject: Multiple Web App Authentication

I am trying to implement single authentication (form based) for multiple web
applications within a single virtual host.  I have read the documentation
for single-sign on and have made that work.  However, it appears that the
logon page(s) need to be in all web applications.  Authentication is granted
for all web applications based on the one someone tried to log onto first.  

What I would like to do is basically have an "authentication web
application".  If someone tried to log into any other web application they
would be redirected to the "authentication web application" to be logged on.
I cannot figure out how to do something like this with Tomcat.  I could
basically accomplish this by having one big web application, but in our
environment it would be cleaner if we could have separate web applications
all protected by a single entry point.

If anyone can help with this, it would be greatly appreciated.

Thank you.

Douglas Srofe
WDS Corp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Exception processing JAR in Tomcat 4.1.7

2002-07-30 Thread Mete Kural

I read in an email that this problem does not occur
with the .exe distribution of Tomcat 4.1.7., but the
tar version only. Does anybody have any insight into
why this might be happening?

Thanks, Mete

--- Mete Kural <[EMAIL PROTECTED]> wrote:
> Addition: Not just for xalan.jar, this happens for
> many other jars such as jakarta-oro.jar,
> xercesImpl.jar, saxpath.jar, etc. 
> I'm using the jakarta-tomcat-4.1.7-LE-jdk14.tar.gz
> binary distribution of Tomcat 4.1.7.
> 
> Thanks, Mete
> 
> --- Mete Kural <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I'm getting the below exception in Tomcat 4.1.7
> > (installed from the .zip distribution) while
> loading
> > xalan.jar in a WEB-INF/lib/ directory. Do you have
> > any
> > suggestions on what might be causing it?
> > 
> > Thanks, Mete
> > 
> > javax.servlet.ServletException: Exception
> processing
> > JAR at resource path /WEB-INF/lib/xalan.jar
> > at
> >
>
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
> > at
> >
>
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
> > at
> >
>
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
> > ..
> > .
> > - Root Cause -
> > java.io.IOException: The system cannot find the
> path
> > specified
> > at
> >
> java.io.WinNTFileSystem.createFileExclusively(Native
> > Method)
> > at java.io.File.checkAndCreate(File.java:1294)
> > at java.io.File.createTempFile(File.java:1382)
> > at java.io.File.createTempFile(File.java:1419)
> > at
> >
>
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
> > at
> > java.security.AccessController.doPrivileged(Native
> > Method)
> > at
> >
>
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
> > at
> >
>
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
> > at
> >
>
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
> > at
> >
>
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
> > at
> >
>
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
> > at
> >
>
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
> > ..
> > .
> > 
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> > http://health.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




RE: Re[2]: Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

Jacob,

> but it seems like you are using the  directive as if it were a
>  directive.   points to a mapping.  In the

I was trying this as-per John Turner's suggestion included below. I have
tried  and  blocks both above and within the
 block. I have tried the JkMounts in the bottom of httpd.conf
outside of the  as well as inside the  but below
the . None of these attempts work as desired.

--
Josh



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache Authentication for Tomcat
>
>
>
> It should work for virtual hosts.
>
> Don't virtual hosts have content in separate locations?  Like
> /www/virtual/host1/htdocs and /www/virtual/host2/htdocs?  If that's the
> case, the Location directive will work, just put the path name in there.
> The hostname on the URL is irrelevant (and an error according to
> the apache
> docs).
>
> By doing it that way, and setting it up as Jake suggested, Apache should
> authenticate requests for that resource (according to path) before
> forwarding the request to tomcat.
>
> John Turner
> [EMAIL PROTECTED]




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




Re[2]: Apache Authentication for Tomcat

2002-07-30 Thread Jacob Kjome

Hello Josh,

but it seems like you are using the  directive as if it were a
 directive.   points to a mapping.  In the
example I gave  would map to
http://localhost/myapp and anything inside that.  What you seem to be
doing is pointing to where the directory of your context actually sits
on the machine.

In you case, you should probably use the :


AuthType Basic
AuthName "protected.zeus.intranet1"
AuthUserFile /drives/a/webapps/.intranet1_passwd


And then below that, include your mod_jk.conf with your JkMount
mappings in whatever  directives that you want.

I'm not an Apache configuration expert, but I would think that would
work.

If it doesn't work, you might have more luck by perusing the Apache
configuration documentation and/or checking out the Apache Web Server
user list.

Jake



Tuesday, July 30, 2002, 2:21:35 PM, you wrote:

JL> Hello Jacob,

JL> I have now received three copies of this same message you sent me. It
JL> doesn't appear to work to way you describe, when working with virtual hosts.

JL> --
JL> Josh


>> -Original Message-
>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 30, 2002 1:12 PM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: Re: Apache Authentication for Tomcat
>>
>>
>> Hello Josh,
>>
>> I have my Apache authentication set up like this:
>>
>> 
>> AuthType Basic
>> AuthName "protected area"
>> AuthUserFile security/.htpasswd
>> AuthGroupFile security/.htgroup
>> require group myapp_admin myapp_user
>> 
>>
>> One thing to note is the Apache authentication configuration comes
>> before the JKMounts.  I include mod_jk.conf as the last thing in my
>> httpd.conf file.  I have had no problems with this setup even when
>> passing every request to "/myapp" to Tomcat like:
>>
>> JkMount /myapp ajp13
>> JkMount /myapp/* ajp13
>>
>>
>> Apache *always* catches it first and forces BASIC authentication.
>>
>> Jake
>>
>> Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
>>
>> JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
>> compiled on RH7.2. I
>> JL> setup Apache to require authentication for a given virtual
>> host using an
>> JL> htpasswd file. Because the same virtual host has some JkMount
>> directives,
>> JL> some requests are forwarded on to Tomcat without
>> authentication. How can I
>> JL> configure this so Apache always handles and requires
>> authentication for
>> JL> requests prior to handing them off to Tomcat?
>>
>> JL> In my httpd.conf I have the following:
>>
>> JL> 
>> JL> DocumentRoot /drives/a/webapps/intranet1
>> JL> ServerName intranet1
>> JL> JkMount /*.jsp zeuscat
>> JL> JkMount /wup/* zeuscat
>> JL> ServerAlias *intranet1
>> JL> 
>> JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
>> JL>AuthName "restricted.zeus.intranet1"
>> JL>AuthType Basic
>> JL>Require valid-user
>> JL> 
>> JL> 
>>
>> JL> In my server.xml I have the following:
>>
>> JL> 
>> JL>  
>> JL>  > JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
>> JL>  timestamp="true"/>
>> JL> 
>>
>>
>> JL> --
>> JL> Josh
>>
>>
>> JL> --
>> JL> To unsubscribe, e-mail:
JL> 
JL>> For additional commands, e-mail:
JL> 



JL> --
JL> Best regards,
JL>  Jacobmailto:[EMAIL PROTECTED]


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



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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

> Did you forget a Require directive in that location?
Nope.

> should work if you move the JkMount under the Directory directive:
I tried this:


DocumentRoot /drives/a/webapps/intranet1
ServerName intranet1
ServerAlias *babyupdates.com

   AuthUserFile /drives/a/webapps/.intranet1_passwd
   AuthName "restricted.zeus.intranet1"
   AuthType Basic
   Require valid-user

JkMount /*.jsp zeuscat
JkMount /wup/* zeuscat


Tailing the access_log illustrates the outcome:
192.168.1.2 - jlandin [30/Jul/2002:15:39:55 -0400] "GET / HTTP/1.1" 304 0
192.168.1.2 - - [30/Jul/2002:15:42:52 -0400] "GET /some.jsp HTTP/1.1" 200
272

As you can see, my remote browser request for "intranet1/" required
authentication, yet "intranet1/some.jsp” did not. Any ideas?

--
Josh


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




RE: Apache Authentication for Tomcat

2002-07-30 Thread Sullivan, Mark E

Did you forget a Require directive in that location? Apache seems to do
stuff in linear fashion, so your original config:


DocumentRoot /drives/a/webapps/intranet1
ServerName intranet1
JkMount /*.jsp zeuscat
JkMount /wup/* zeuscat
ServerAlias *intranet1

   AuthUserFile /drives/a/webapps/.intranet1_passwd
   AuthName "restricted.zeus.intranet1"
   AuthType Basic
   Require valid-user



should work if you move the JkMount under the Directory directive:


DocumentRoot /drives/a/webapps/intranet1
ServerName intranet1 
ServerAlias *intranet1

   AuthUserFile /drives/a/webapps/.intranet1_passwd
   AuthName "restricted.zeus.intranet1"
   AuthType Basic
   Require valid-user

JkMount /*.jsp zeuscat
  JkMount /wup/* zeuscat





-Original Message-
From: Josh Landin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:12 PM
To: Tomcat Users List
Subject: RE: Apache Authentication for Tomcat


I removed the  section from my  and added this above
it all:


AuthType Basic
AuthName "protected.zeus.intranet1"
AuthUserFile /drives/a/webapps/.intranet1_passwd


After restarting the servers the virtual host that points to
"/drives/a/webapps/intranet1" no longer requires any authentication on the
static or dynamic content.
Any other ideas?

--
Josh


> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache Authentication for Tomcat
>
>
>
> It should work for virtual hosts.
>
> Don't virtual hosts have content in separate locations?  Like
> /www/virtual/host1/htdocs and /www/virtual/host2/htdocs?  If that's the
> case, the Location directive will work, just put the path name in there.
> The hostname on the URL is irrelevant (and an error according to
> the apache
> docs).
>
> By doing it that way, and setting it up as Jake suggested, Apache should
> authenticate requests for that resource (according to path) before
> forwarding the request to tomcat.
>
> John Turner
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Josh Landin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:13 PM
> To: Tomcat Users List
> Subject: RE: Apache Authentication for Tomcat
>
>
> That may very well work for the  security implementation but it
> doesn't seem to work for the  style. I added my
> JkMounts after
> (outside of) the VirtualHost tag and requests made to the JkMounts are
> forwarded to Tomcat without authentication.
>
> Anyone else, know how to do this?
>
> --
> Josh
>
> > -Original Message-
> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 30, 2002 1:12 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: Apache Authentication for Tomcat
> >
> >
> > Hello Josh,
> >
> > I have my Apache authentication set up like this:
> >
> > 
> > AuthType Basic
> > AuthName "protected area"
> > AuthUserFile security/.htpasswd
> > AuthGroupFile security/.htgroup
> > require group myapp_admin myapp_user
> > 
> >
> > One thing to note is the Apache authentication configuration comes
> > before the JKMounts.  I include mod_jk.conf as the last thing in my
> > httpd.conf file.  I have had no problems with this setup even when
> > passing every request to "/myapp" to Tomcat like:
> >
> > JkMount /myapp ajp13
> > JkMount /myapp/* ajp13
> >
> >
> > Apache *always* catches it first and forces BASIC authentication.
> >
> > Jake
> >
> > Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
> >
> > JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
> > compiled on RH7.2. I
> > JL> setup Apache to require authentication for a given virtual
> > host using an
> > JL> htpasswd file. Because the same virtual host has some JkMount
> > directives,
> > JL> some requests are forwarded on to Tomcat without
> > authentication. How can I
> > JL> configure this so Apache always handles and requires
> > authentication for
> > JL> requests prior to handing them off to Tomcat?
> >
> > JL> In my httpd.conf I have the following:
> >
> > JL> 
> > JL> DocumentRoot /drives/a/webapps/intranet1
> > JL> ServerName intranet1
> > JL> JkMount /*.jsp zeuscat
> > JL> JkMount /wup/* zeuscat
> > JL> ServerAlias *intranet1
> > JL> 
> > JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
> > JL>AuthName "restricted.zeus.intranet1"
> > JL>AuthType Basic
> > JL>Require valid-user
> > JL> 
> > JL> 
> >
> > JL> In my server.xml I have the following:
> >
> > JL> 
> > JL>  
> > JL>   > JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
> > JL>  timestamp="true"/>
> > JL> 
> >
> >
> > JL> --
> > JL> Josh
> >
> >
> > JL> --
> > JL> To unsubscribe, e-mail:
> > 
> > JL> For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > Best regards,
> > 

RE: Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

Hello Jacob,

I have now received three copies of this same message you sent me. It
doesn't appear to work to way you describe, when working with virtual hosts.

--
Josh


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 1:12 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Apache Authentication for Tomcat
>
>
> Hello Josh,
>
> I have my Apache authentication set up like this:
>
> 
> AuthType Basic
> AuthName "protected area"
> AuthUserFile security/.htpasswd
> AuthGroupFile security/.htgroup
> require group myapp_admin myapp_user
> 
>
> One thing to note is the Apache authentication configuration comes
> before the JKMounts.  I include mod_jk.conf as the last thing in my
> httpd.conf file.  I have had no problems with this setup even when
> passing every request to "/myapp" to Tomcat like:
>
> JkMount /myapp ajp13
> JkMount /myapp/* ajp13
>
>
> Apache *always* catches it first and forces BASIC authentication.
>
> Jake
>
> Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
>
> JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
> compiled on RH7.2. I
> JL> setup Apache to require authentication for a given virtual
> host using an
> JL> htpasswd file. Because the same virtual host has some JkMount
> directives,
> JL> some requests are forwarded on to Tomcat without
> authentication. How can I
> JL> configure this so Apache always handles and requires
> authentication for
> JL> requests prior to handing them off to Tomcat?
>
> JL> In my httpd.conf I have the following:
>
> JL> 
> JL> DocumentRoot /drives/a/webapps/intranet1
> JL> ServerName intranet1
> JL> JkMount /*.jsp zeuscat
> JL> JkMount /wup/* zeuscat
> JL> ServerAlias *intranet1
> JL> 
> JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
> JL>AuthName "restricted.zeus.intranet1"
> JL>AuthType Basic
> JL>Require valid-user
> JL> 
> JL> 
>
> JL> In my server.xml I have the following:
>
> JL> 
> JL>  
> JL>   JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
> JL>  timestamp="true"/>
> JL> 
>
>
> JL> --
> JL> Josh
>
>
> JL> --
> JL> To unsubscribe, e-mail:

JL> For additional commands, e-mail:




--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Deploying precompiled JSP

2002-07-30 Thread St-Germain, Sylvain


Could you clarify your question.  (I feel like an expert now!) ;-)

FYI. The state I am in now, makes the jsp being useless since I mapped their
file pattern to a class in web.xml, they seem to appear invisible to Tomcat.
This is not too bad since I simply need to document that if you want to
change them you simply uncomment the mapping section in web.xml...

Sylvain.

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:09 PM
To: Tomcat Users List
Subject: Re: Deploying precompiled JSP


Thanks Sylvain,

I've posted several questions about JSPC and never got a response.  I guess
few people do it.

Anybody know if Tomcat responds to the JSP precompile directive and compiles
stuff upon loading?

Rick

- Original Message -
From: "St-Germain, Sylvain" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 1:47 PM
Subject: RE: Deploying precompiled JSP


>
> Well... either nobody knows about this or nobody care or but I got it.
> So, for prosperity
>
> Here is the trick.
>
> - compiled JSP go in WEB-INF/classes
> - appropriate mapping is required in web.xml
>
>   
> SignIn
> org.apache.jsp.signIn
>   
>
>   
> SignIn
> /cmNavigator/signIn.jsp
>   
>
>
> Sylvain.
>
>
> -Original Message-
> From: St-Germain, Sylvain [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 29, 2002 6:24 PM
> To: Tomcat User (E-mail)
> Subject: Deploying precompiled JSP
>
>
> Hi all,
>
> I want to distribute my webapp providing pre-compiled JSP.  I am not
> bundling a WAR though (I found some messages about providing pre-compiled
> jsp but they relate to a WAR)  Is it possible to provide pre-compiled JSP
> without of a WAR?
>
> So far I can build all my JSP and the delta between tomcat's one and the
one
> I generate (ant jspc task) is that my index.jsp is now index.class while
> Tomcat's one is named index$jsp.class ...
>
> Does doing so force me to define a servlet-mapping for all my JSP in
> web.xml?  Does the built version go in the work dir or classes?
>
> Any help much appreciated.
> Thanks.
> --
> Sylvain
>
> This message may contain privileged and/or confidential information.  If
you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> This message may contain privileged and/or confidential information.  If
you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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




Re: Multiple Web App Authentication

2002-07-30 Thread Craig R. McClanahan



On Tue, 30 Jul 2002, Srofe, Douglas (c) wrote:

> Date: Tue, 30 Jul 2002 14:10:19 -0400
> From: "Srofe, Douglas (c)" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: Multiple Web App Authentication
>
> I am trying to implement single authentication (form based) for multiple web
> applications within a single virtual host.  I have read the documentation
> for single-sign on and have made that work.  However, it appears that the
> logon page(s) need to be in all web applications.  Authentication is granted
> for all web applications based on the one someone tried to log onto first.
>

Yes, that is the way it works.

> What I would like to do is basically have an "authentication web
> application".  If someone tried to log into any other web application they
> would be redirected to the "authentication web application" to be logged on.
> I cannot figure out how to do something like this with Tomcat.  I could
> basically accomplish this by having one big web application, but in our
> environment it would be cleaner if we could have separate web applications
> all protected by a single entry point.
>

You would have to modify Tomcat sources, or add a custom Valve
implementation to do the redirect, to make this work -- it's not the
normal J2EE pattern.

> If anyone can help with this, it would be greatly appreciated.
>
> Thank you.
>
> Douglas Srofe
> WDS Corp.

Craig


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




RE: Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

I removed the  section from my  and added this above
it all:


AuthType Basic
AuthName "protected.zeus.intranet1"
AuthUserFile /drives/a/webapps/.intranet1_passwd


After restarting the servers the virtual host that points to
"/drives/a/webapps/intranet1" no longer requires any authentication on the
static or dynamic content.
Any other ideas?

--
Josh


> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache Authentication for Tomcat
>
>
>
> It should work for virtual hosts.
>
> Don't virtual hosts have content in separate locations?  Like
> /www/virtual/host1/htdocs and /www/virtual/host2/htdocs?  If that's the
> case, the Location directive will work, just put the path name in there.
> The hostname on the URL is irrelevant (and an error according to
> the apache
> docs).
>
> By doing it that way, and setting it up as Jake suggested, Apache should
> authenticate requests for that resource (according to path) before
> forwarding the request to tomcat.
>
> John Turner
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Josh Landin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:13 PM
> To: Tomcat Users List
> Subject: RE: Apache Authentication for Tomcat
>
>
> That may very well work for the  security implementation but it
> doesn't seem to work for the  style. I added my
> JkMounts after
> (outside of) the VirtualHost tag and requests made to the JkMounts are
> forwarded to Tomcat without authentication.
>
> Anyone else, know how to do this?
>
> --
> Josh
>
> > -Original Message-
> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 30, 2002 1:12 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: Apache Authentication for Tomcat
> >
> >
> > Hello Josh,
> >
> > I have my Apache authentication set up like this:
> >
> > 
> > AuthType Basic
> > AuthName "protected area"
> > AuthUserFile security/.htpasswd
> > AuthGroupFile security/.htgroup
> > require group myapp_admin myapp_user
> > 
> >
> > One thing to note is the Apache authentication configuration comes
> > before the JKMounts.  I include mod_jk.conf as the last thing in my
> > httpd.conf file.  I have had no problems with this setup even when
> > passing every request to "/myapp" to Tomcat like:
> >
> > JkMount /myapp ajp13
> > JkMount /myapp/* ajp13
> >
> >
> > Apache *always* catches it first and forces BASIC authentication.
> >
> > Jake
> >
> > Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
> >
> > JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
> > compiled on RH7.2. I
> > JL> setup Apache to require authentication for a given virtual
> > host using an
> > JL> htpasswd file. Because the same virtual host has some JkMount
> > directives,
> > JL> some requests are forwarded on to Tomcat without
> > authentication. How can I
> > JL> configure this so Apache always handles and requires
> > authentication for
> > JL> requests prior to handing them off to Tomcat?
> >
> > JL> In my httpd.conf I have the following:
> >
> > JL> 
> > JL> DocumentRoot /drives/a/webapps/intranet1
> > JL> ServerName intranet1
> > JL> JkMount /*.jsp zeuscat
> > JL> JkMount /wup/* zeuscat
> > JL> ServerAlias *intranet1
> > JL> 
> > JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
> > JL>AuthName "restricted.zeus.intranet1"
> > JL>AuthType Basic
> > JL>Require valid-user
> > JL> 
> > JL> 
> >
> > JL> In my server.xml I have the following:
> >
> > JL> 
> > JL>  
> > JL>   > JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
> > JL>  timestamp="true"/>
> > JL> 
> >
> >
> > JL> --
> > JL> Josh
> >
> >
> > JL> --
> > JL> To unsubscribe, e-mail:
> > 
> > JL> For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > Best regards,
> >  Jacobmailto:[EMAIL PROTECTED]
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re[2]: Multiple Web App Authentication

2002-07-30 Thread Jacob Kjome

Hello Douglas,

Single Sign-on is implemented in Tomcat using Valves.  See...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Single%20Sign%20On%20Valve
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Sign%20On
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/authenticator/SingleSignOn.html

Jake

Tuesday, July 30, 2002, 1:36:11 PM, you wrote:

SDc> Thank you for your reply.  I have done the same thing but what I found is
SDc> that, using your example,login.jsp would have to reside in each web
SDc> applications directory.  So if I have 5 different web applications,
SDc> login.jsp would have to be replicated 5 times.  I would like to have
SDc> login.jsp in only one place.  Are you experiencing something different?

SDc> -Original Message-
SDc> From: HAVENS,PETER (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
SDc> Sent: Tuesday, July 30, 2002 2:31 PM
SDc> To: 'Tomcat Users List'
SDc> Subject: RE: Multiple Web App Authentication


SDc> I have been working on the same thing.  I believe it can be accomplished by
SDc> modifying your web.xml file in the conf directory.  You will need a
SDc>  and a .  Here is what I added and it
SDc> seems be working.  Hope this gets you started.

SDc> -Peter
SDc> - 
SDc> 
SDc>   Gryphon Authentication 
SDc>   
SDc> Protected Area 
SDc>  
SDc> /* 
SDc>  
SDc> GET 
SDc> DELETE
SDc> POST
SDc> PUT
SDc>   
SDc>   
SDc>  
SDc> * 
SDc>   
SDc> 

SDc>  
SDc> 
SDc>   FORM 
SDc>   Gryphon Form-Based Authentication 
SDc>   
SDc> /login.jsp 
SDc> /error.jsp 
SDc>   
SDc> 

SDc> -Original Message-
SDc> From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] 
SDc> Sent: Tuesday, July 30, 2002 11:10 AM
SDc> To: 'Tomcat Users List'
SDc> Subject: Multiple Web App Authentication

SDc> I am trying to implement single authentication (form based) for multiple web
SDc> applications within a single virtual host.  I have read the documentation
SDc> for single-sign on and have made that work.  However, it appears that the
SDc> logon page(s) need to be in all web applications.  Authentication is granted
SDc> for all web applications based on the one someone tried to log onto first.  

SDc> What I would like to do is basically have an "authentication web
SDc> application".  If someone tried to log into any other web application they
SDc> would be redirected to the "authentication web application" to be logged on.
SDc> I cannot figure out how to do something like this with Tomcat.  I could
SDc> basically accomplish this by having one big web application, but in our
SDc> environment it would be cleaner if we could have separate web applications
SDc> all protected by a single entry point.

SDc> If anyone can help with this, it would be greatly appreciated.

SDc> Thank you.

SDc> Douglas Srofe
SDc> WDS Corp.


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

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

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Native OS authentication using single sign on ...

2002-07-30 Thread HAVENS,PETER (HP-Cupertino,ex3)

I am currently trying to authenticate multiple webapps under a single
authentication mechanism.  That is login once and you can access all of the
webapps under a given virtual host.  I have enabled single sign on in the
server.xml file and I have added a  and 
in my conf/web.xml file.  Everything is working great and it is
authenticating users against the conf/tomcat-users.xml file. 
 
Now I want to take the next step to do native OS authentication using a JNI
to a C or C++ module that uses PAM.  How do I change my login.jsp page
pointed to by the  to call a bean instead of just
authenticating against the tomcat-users.xml?
 
Any input would be greatly appreciated.  I have included part of my
conf/web.xml and my login.jsp.
 
Thanks in advance.
 
-Peter
 
--Portion of conf/web.xml-

  Gryphon Authentication 
  
Protected Area 
 
/* 
 
GET 
DELETE
POST
PUT
  
  
 
* 
  

 
 

  FORM 
  Gryphon Form-Based Authentication 
  
/login.jsp 
/error.jsp 
  

end of conf/web.xml
 
login.jsp-


Login Page

 

  

  Username:
  


  Password:
  


  
  

  

 
<%
if ( ! request.isSecure() )
{
  // Forward to a secure page
  String sslURL = "https://"; + request.getServerName() + ":1188" +
request.getRequestURI();
%>
  
  WARNING: This is a non-secure page!
  
  Click here to use SSL.
  
<%
}
%>





Problems with Encryption in Servlets

2002-07-30 Thread Hans Kaiser

Hello!

I´m trying to encrypt a XML documnet in an servlet under Tomcat 4.0.3.
The same code runs fine in an separate Application, but trying to use it in
an servlet, I always get following exception:

exception

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:512)



root cause

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
set up certs for trusted CAs
at javax.crypto.a.(Unknown Source)
at javax.crypto.Cipher.getInstance(Unknown Source)
at
com.ibm.xml.enc.EncryptionEngine$TripleDESCBC.(EncryptionEngine.java:203)
at
com.ibm.xml.enc.AlgorithmFactoryExtn.getEncryptionEngine(AlgorithmFactoryExtn.java:128)
at
com.ibm.xml.enc.DecryptionContext.getEncryptionEngine(DecryptionContext.java:312)
at com.ibm.xml.enc.DecryptionContext.decrypt(DecryptionContext.java:286)
at
com.tsystems.tests.servlet.HelloWorld.decryptEncryptedData(HelloWorld.java:380)
at
com.tsystems.tests.servlet.HelloWorld.decryptEncryptedData(HelloWorld.java:348)
at com.tsystems.tests.servlet.HelloWorld.doGet(HelloWorld.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invok

RE: Multiple Web App Authentication

2002-07-30 Thread Srofe, Douglas (c)

Thank you for your reply.  I have done the same thing but what I found is
that, using your example,login.jsp would have to reside in each web
applications directory.  So if I have 5 different web applications,
login.jsp would have to be replicated 5 times.  I would like to have
login.jsp in only one place.  Are you experiencing something different?

-Original Message-
From: HAVENS,PETER (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:31 PM
To: 'Tomcat Users List'
Subject: RE: Multiple Web App Authentication


I have been working on the same thing.  I believe it can be accomplished by
modifying your web.xml file in the conf directory.  You will need a
 and a .  Here is what I added and it
seems be working.  Hope this gets you started.

-Peter
- 

  Gryphon Authentication 
  
Protected Area 
 
/* 
 
GET 
DELETE
POST
PUT
  
  
 
* 
  


 

  FORM 
  Gryphon Form-Based Authentication 
  
/login.jsp 
/error.jsp 
  


-Original Message-
From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 11:10 AM
To: 'Tomcat Users List'
Subject: Multiple Web App Authentication

I am trying to implement single authentication (form based) for multiple web
applications within a single virtual host.  I have read the documentation
for single-sign on and have made that work.  However, it appears that the
logon page(s) need to be in all web applications.  Authentication is granted
for all web applications based on the one someone tried to log onto first.  

What I would like to do is basically have an "authentication web
application".  If someone tried to log into any other web application they
would be redirected to the "authentication web application" to be logged on.
I cannot figure out how to do something like this with Tomcat.  I could
basically accomplish this by having one big web application, but in our
environment it would be cleaner if we could have separate web applications
all protected by a single entry point.

If anyone can help with this, it would be greatly appreciated.

Thank you.

Douglas Srofe
WDS Corp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Multiple Web App Authentication

2002-07-30 Thread HAVENS,PETER (HP-Cupertino,ex3)

I have been working on the same thing.  I believe it can be accomplished by
modifying your web.xml file in the conf directory.  You will need a
 and a .  Here is what I added and it
seems be working.  Hope this gets you started.

-Peter
- 

  Gryphon Authentication 
  
Protected Area 
 
/* 
 
GET 
DELETE
POST
PUT
  
  
 
* 
  


 

  FORM 
  Gryphon Form-Based Authentication 
  
/login.jsp 
/error.jsp 
  


-Original Message-
From: Srofe, Douglas (c) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 11:10 AM
To: 'Tomcat Users List'
Subject: Multiple Web App Authentication

I am trying to implement single authentication (form based) for multiple web
applications within a single virtual host.  I have read the documentation
for single-sign on and have made that work.  However, it appears that the
logon page(s) need to be in all web applications.  Authentication is granted
for all web applications based on the one someone tried to log onto first.  

What I would like to do is basically have an "authentication web
application".  If someone tried to log into any other web application they
would be redirected to the "authentication web application" to be logged on.
I cannot figure out how to do something like this with Tomcat.  I could
basically accomplish this by having one big web application, but in our
environment it would be cleaner if we could have separate web applications
all protected by a single entry point.

If anyone can help with this, it would be greatly appreciated.

Thank you.

Douglas Srofe
WDS Corp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Apache Authentication for Tomcat

2002-07-30 Thread Turner, John


It should work for virtual hosts.

Don't virtual hosts have content in separate locations?  Like
/www/virtual/host1/htdocs and /www/virtual/host2/htdocs?  If that's the
case, the Location directive will work, just put the path name in there.
The hostname on the URL is irrelevant (and an error according to the apache
docs).

By doing it that way, and setting it up as Jake suggested, Apache should
authenticate requests for that resource (according to path) before
forwarding the request to tomcat.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Josh Landin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:13 PM
To: Tomcat Users List
Subject: RE: Apache Authentication for Tomcat


That may very well work for the  security implementation but it
doesn't seem to work for the  style. I added my JkMounts after
(outside of) the VirtualHost tag and requests made to the JkMounts are
forwarded to Tomcat without authentication.

Anyone else, know how to do this?

--
Josh

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 1:12 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Apache Authentication for Tomcat
>
>
> Hello Josh,
>
> I have my Apache authentication set up like this:
>
> 
> AuthType Basic
> AuthName "protected area"
> AuthUserFile security/.htpasswd
> AuthGroupFile security/.htgroup
> require group myapp_admin myapp_user
> 
>
> One thing to note is the Apache authentication configuration comes
> before the JKMounts.  I include mod_jk.conf as the last thing in my
> httpd.conf file.  I have had no problems with this setup even when
> passing every request to "/myapp" to Tomcat like:
>
> JkMount /myapp ajp13
> JkMount /myapp/* ajp13
>
>
> Apache *always* catches it first and forces BASIC authentication.
>
> Jake
>
> Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
>
> JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
> compiled on RH7.2. I
> JL> setup Apache to require authentication for a given virtual
> host using an
> JL> htpasswd file. Because the same virtual host has some JkMount
> directives,
> JL> some requests are forwarded on to Tomcat without
> authentication. How can I
> JL> configure this so Apache always handles and requires
> authentication for
> JL> requests prior to handing them off to Tomcat?
>
> JL> In my httpd.conf I have the following:
>
> JL> 
> JL> DocumentRoot /drives/a/webapps/intranet1
> JL> ServerName intranet1
> JL> JkMount /*.jsp zeuscat
> JL> JkMount /wup/* zeuscat
> JL> ServerAlias *intranet1
> JL> 
> JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
> JL>AuthName "restricted.zeus.intranet1"
> JL>AuthType Basic
> JL>Require valid-user
> JL> 
> JL> 
>
> JL> In my server.xml I have the following:
>
> JL> 
> JL>  
> JL>   JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
> JL>  timestamp="true"/>
> JL> 
>
>
> JL> --
> JL> Josh
>
>
> JL> --
> JL> To unsubscribe, e-mail:
> 
> JL> For additional commands, e-mail:
> 
>
>
>
> --
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: tomcat4 doesn't display compile or runtime errors/exceptionsin jsp pages like tomcat3

2002-07-30 Thread Alex Muc

I hate to be replying to my own messages, but I figured out a way to do 
what I'm looking for.  I'll describe it here in case anyone else wants 
to do something similar.

I modified the org.apache.jasper.servlet.JspServlet file which appears 
to be the main location where jsps are driven from.  In the 
service(request, response) method there are a bunch of catch blocks at 
the bottom of the method to catch the various kinds of exceptions that 
may come back from the executing the jsp page.  There are different 
catch blocks for both compile time and runtime exceptions that may be 
caused by executing the jsp page.  I basically just included the 
following code in each of the catch blocks so that the error message 
would get written to the browser as well as continue having tomcat 
handle the exception normally (print to the log).  This is the code I added:
// Write out the error
PrintWriter pw = response.getWriter();
pw.println("");
pw.println("Exception in page:\n\n");
pw.println("\n\n");
e.printStackTrace(pw);
pw.println("");

Now the catch block looks like this:

} catch (IOException e) {
// Write out the error
PrintWriter pw = response.getWriter();
pw.println("");
pw.println("Exception in page:\n\n");
pw.println("\n\n");
e.printStackTrace(pw);
pw.println("");
throw e;
}

It seems to work fine.  If you have questions please send me a mail 
privately as I don't follow this list very closely.

Thanks
Alex.

Alex Muc wrote:

> Hi,
>
> I recently upgraded tomcat3.2.2 to tomcat 4.0.4.  Most of the upgrade 
> went smoothly.  Tomcat4 certainly seems faster than tomcat3 which is good.
>
> One of the things that tomcat3 had which tomcat4 seems to lack is the 
> ability to view the compile or runtime errors and exceptions that 
> occur when developing a jsp page.  In particular when you are doing a 
>  in tomcat3 and the included page was a jsp which had  a 
> error then tomcat3 would send the stack trace of the error in the HTML 
> that it sent back to the browser and this error message was what made 
> up the contents of the included page.  I know some people must have 
> hated this because it tended to jumble the HTML of the including page, 
> but I found it much easier to deal with than the way tomcat4 works 
> which is to display the stack trace in the log file for the context 
> and then not display anything as the result of the included file.  
> This is less useful because the user doesn't get any indication that 
> something has gone wrong.  I'm wondering if there is a way to tell 
> tomcat to display the error messages to the browser AND the log file?  
> I looked through the mail archives but didn't find anything and I 
> checked the configuration documentation for tomcat4 but I couldn't 
> find anything.
>
> Can anyone tell me if this is possible, and if so how.  If it is not 
> currently possible maybe that is a feature I could add if someone 
> could tell me generally where to look.
>
> Thank you for your help.
> Alex.
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>


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




RE: Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

That may very well work for the  security implementation but it
doesn't seem to work for the  style. I added my JkMounts after
(outside of) the VirtualHost tag and requests made to the JkMounts are
forwarded to Tomcat without authentication.

Anyone else, know how to do this?

--
Josh

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 1:12 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Apache Authentication for Tomcat
>
>
> Hello Josh,
>
> I have my Apache authentication set up like this:
>
> 
> AuthType Basic
> AuthName "protected area"
> AuthUserFile security/.htpasswd
> AuthGroupFile security/.htgroup
> require group myapp_admin myapp_user
> 
>
> One thing to note is the Apache authentication configuration comes
> before the JKMounts.  I include mod_jk.conf as the last thing in my
> httpd.conf file.  I have had no problems with this setup even when
> passing every request to "/myapp" to Tomcat like:
>
> JkMount /myapp ajp13
> JkMount /myapp/* ajp13
>
>
> Apache *always* catches it first and forces BASIC authentication.
>
> Jake
>
> Tuesday, July 30, 2002, 11:58:21 AM, you wrote:
>
> JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk
> compiled on RH7.2. I
> JL> setup Apache to require authentication for a given virtual
> host using an
> JL> htpasswd file. Because the same virtual host has some JkMount
> directives,
> JL> some requests are forwarded on to Tomcat without
> authentication. How can I
> JL> configure this so Apache always handles and requires
> authentication for
> JL> requests prior to handing them off to Tomcat?
>
> JL> In my httpd.conf I have the following:
>
> JL> 
> JL> DocumentRoot /drives/a/webapps/intranet1
> JL> ServerName intranet1
> JL> JkMount /*.jsp zeuscat
> JL> JkMount /wup/* zeuscat
> JL> ServerAlias *intranet1
> JL> 
> JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
> JL>AuthName "restricted.zeus.intranet1"
> JL>AuthType Basic
> JL>Require valid-user
> JL> 
> JL> 
>
> JL> In my server.xml I have the following:
>
> JL> 
> JL>  
> JL>   JL>  directory="logs"  prefix="intranet1_log." suffix=".txt"
> JL>  timestamp="true"/>
> JL> 
>
>
> JL> --
> JL> Josh
>
>
> JL> --
> JL> To unsubscribe, e-mail:
> 
> JL> For additional commands, e-mail:
> 
>
>
>
> --
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Multiple Web App Authentication

2002-07-30 Thread Srofe, Douglas (c)

I am trying to implement single authentication (form based) for multiple web
applications within a single virtual host.  I have read the documentation
for single-sign on and have made that work.  However, it appears that the
logon page(s) need to be in all web applications.  Authentication is granted
for all web applications based on the one someone tried to log onto first.  

What I would like to do is basically have an "authentication web
application".  If someone tried to log into any other web application they
would be redirected to the "authentication web application" to be logged on.
I cannot figure out how to do something like this with Tomcat.  I could
basically accomplish this by having one big web application, but in our
environment it would be cleaner if we could have separate web applications
all protected by a single entry point.

If anyone can help with this, it would be greatly appreciated.

Thank you.

Douglas Srofe
WDS Corp.


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




Re: Deploying precompiled JSP

2002-07-30 Thread Rick Fincher

Thanks Sylvain,

I've posted several questions about JSPC and never got a response.  I guess
few people do it.

Anybody know if Tomcat responds to the JSP precompile directive and compiles
stuff upon loading?

Rick

- Original Message -
From: "St-Germain, Sylvain" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 1:47 PM
Subject: RE: Deploying precompiled JSP


>
> Well... either nobody knows about this or nobody care or but I got it.
> So, for prosperity
>
> Here is the trick.
>
> - compiled JSP go in WEB-INF/classes
> - appropriate mapping is required in web.xml
>
>   
> SignIn
> org.apache.jsp.signIn
>   
>
>   
> SignIn
> /cmNavigator/signIn.jsp
>   
>
>
> Sylvain.
>
>
> -Original Message-
> From: St-Germain, Sylvain [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 29, 2002 6:24 PM
> To: Tomcat User (E-mail)
> Subject: Deploying precompiled JSP
>
>
> Hi all,
>
> I want to distribute my webapp providing pre-compiled JSP.  I am not
> bundling a WAR though (I found some messages about providing pre-compiled
> jsp but they relate to a WAR)  Is it possible to provide pre-compiled JSP
> without of a WAR?
>
> So far I can build all my JSP and the delta between tomcat's one and the
one
> I generate (ant jspc task) is that my index.jsp is now index.class while
> Tomcat's one is named index$jsp.class ...
>
> Does doing so force me to define a servlet-mapping for all my JSP in
> web.xml?  Does the built version go in the work dir or classes?
>
> Any help much appreciated.
> Thanks.
> --
> Sylvain
>
> This message may contain privileged and/or confidential information.  If
you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> This message may contain privileged and/or confidential information.  If
you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Custom org.apache.catalina.authenticator

2002-07-30 Thread Tim McLaughlin


On Monday, July 29, 2002, at 05:51 , Craig R. McClanahan wrote:

> On Mon, 29 Jul 2002, Tim McLaughlin wrote:
>
>> The Question:
>> How do I specify a class other than
>> org.catalina.authenticator.BasicAuthenticator to handle Basic
>> authentication?
>
> There is a properties file in the org.apache.catalina.authenticator
> package that defines the mapping of authentication method to classname.
> You would need to customize this file in
> $CATALINA_HOME/server/lib/catalina.jar.
>
> Or, an easier approach would be to copy your customized version of this
> file into the
> $CATALINA_HOME/server/classes/org/apache/catalina/authenticator 
> directory
> (which you'd have to create).  This works because the Catalina class
> loaders load from the "classes" directory before they load from 
> JAR files
> in the corresponding "lib" directory -- this works both for the server
> class loader (server/classes before server/lib), the common class 
> loader
> (common/classes before common/lib) and the webapp class loader
> (WEB-INF/classes before WEB-INF/lib).

The only properties file I found in 
src/share/org/apache/catalina/authenticator directory was for the 
LocalStrings translations.  However, the package.html file 
mentioned the 
src/share/org/apache/catalina/startup/Authenticators.properties 
file.

I have created a copy in $CATALINA_HOME/server/webapps/pc-
manager/WEB-
INF/classes/org/apache/catalina/startup/Authenticator.properties 
and specified my custom class, PerContextBasicAuthenticator for 
BASIC.

I then restarted tomcat, but the log shows that it is not using my 
class (debug=3), instead using the default class.  So I moved the 
new file to 
$CATALINA_HOME/server/classes/org/apache/catalina/startup/Authenticator.properties 
and then it works.

When I specify a class to handle BASIC authentication, do I have to 
do it server-wide, or can I do it on a per-context basis?

Thanks,
Tim


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




RE: Deploying precompiled JSP

2002-07-30 Thread St-Germain, Sylvain


Well... either nobody knows about this or nobody care or but I got it.  
So, for prosperity

Here is the trick.

- compiled JSP go in WEB-INF/classes
- appropriate mapping is required in web.xml   

  
SignIn
org.apache.jsp.signIn


  
SignIn
/cmNavigator/signIn.jsp
  


Sylvain.


-Original Message-
From: St-Germain, Sylvain [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 6:24 PM
To: Tomcat User (E-mail)
Subject: Deploying precompiled JSP


Hi all, 

I want to distribute my webapp providing pre-compiled JSP.  I am not
bundling a WAR though (I found some messages about providing pre-compiled
jsp but they relate to a WAR)  Is it possible to provide pre-compiled JSP
without of a WAR?

So far I can build all my JSP and the delta between tomcat's one and the one
I generate (ant jspc task) is that my index.jsp is now index.class while
Tomcat's one is named index$jsp.class ...

Does doing so force me to define a servlet-mapping for all my JSP in
web.xml?  Does the built version go in the work dir or classes?

Any help much appreciated.
Thanks.
--
Sylvain 

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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




Best Connector Setup???

2002-07-30 Thread da_alchemist

Hello All,

I am a newbie so bear with me if these seem like
simple questions.

My understanding is that only WARP and AJP are used to
connect with Apache httpd server and the HTTP
connector utilizes Tomcat as a web server.  Is that
correct???

In a production environment with Tomcat 4, which
connector setup (HTTP, WARP, AJP) is best regarding
performance and security???

Will one connector setup be better than another in a
J2EE environment (OpenEJB, OC4J for the EJB
containers)???

Should the  element be used for
authentication or is there a better method???

And, how has  worked in
practice, any experiences???

Thanks.


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Charset problem

2002-07-30 Thread Andre E. Bar'yudin

Dear all,

I have a problem with setContentType() function in my servlets.  I pass 
it "text/html;charset=UTF-8".  It works very well with:

Tomcat 4.0.2/4.0.3
RH 7.2
jdk 1.4

the output is displayed Ok in the browser, the server sends the right 
Content-Type header: "text/html;charset=UTF-8".

However the same code running under Tomcat 4.0.4 or any other greater 
version seem to ignore this function call and gives me gibbrish in the 
browser and the Content-Type header is: "text/html;charset=ISO-8859-1".

What could be the problem?

Thanks in advance,

Andre.



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




Re: Apache Authentication for Tomcat

2002-07-30 Thread Jacob Kjome

Hello Josh,

I have my Apache authentication set up like this:


AuthType Basic
AuthName "protected area"
AuthUserFile security/.htpasswd
AuthGroupFile security/.htgroup
require group myapp_admin myapp_user


One thing to note is the Apache authentication configuration comes
before the JKMounts.  I include mod_jk.conf as the last thing in my
httpd.conf file.  I have had no problems with this setup even when
passing every request to "/myapp" to Tomcat like:

JkMount /myapp ajp13
JkMount /myapp/* ajp13


Apache *always* catches it first and forces BASIC authentication.

Jake

Tuesday, July 30, 2002, 11:58:21 AM, you wrote:

JL> I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk compiled on RH7.2. I
JL> setup Apache to require authentication for a given virtual host using an
JL> htpasswd file. Because the same virtual host has some JkMount directives,
JL> some requests are forwarded on to Tomcat without authentication. How can I
JL> configure this so Apache always handles and requires authentication for
JL> requests prior to handing them off to Tomcat?

JL> In my httpd.conf I have the following:

JL> 
JL> DocumentRoot /drives/a/webapps/intranet1
JL> ServerName intranet1
JL> JkMount /*.jsp zeuscat
JL> JkMount /wup/* zeuscat
JL> ServerAlias *intranet1
JL> 
JL>AuthUserFile /drives/a/webapps/.intranet1_passwd
JL>AuthName "restricted.zeus.intranet1"
JL>AuthType Basic
JL>Require valid-user
JL> 
JL> 

JL> In my server.xml I have the following:

JL> 
JL>  
JL>directory="logs"  prefix="intranet1_log." suffix=".txt"
JL>  timestamp="true"/>
JL> 


JL> --
JL> Josh


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: Exception processing JAR in Tomcat 4.1.7

2002-07-30 Thread Mete Kural

Addition: Not just for xalan.jar, this happens for
many other jars such as jakarta-oro.jar,
xercesImpl.jar, saxpath.jar, etc. 
I'm using the jakarta-tomcat-4.1.7-LE-jdk14.tar.gz
binary distribution of Tomcat 4.1.7.

Thanks, Mete

--- Mete Kural <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm getting the below exception in Tomcat 4.1.7
> (installed from the .zip distribution) while loading
> xalan.jar in a WEB-INF/lib/ directory. Do you have
> any
> suggestions on what might be causing it?
> 
> Thanks, Mete
> 
> javax.servlet.ServletException: Exception processing
> JAR at resource path /WEB-INF/lib/xalan.jar
>   at
>
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
>   at
>
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
>   at
>
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
> ..
> .
> - Root Cause -
> java.io.IOException: The system cannot find the path
> specified
>   at
> java.io.WinNTFileSystem.createFileExclusively(Native
> Method)
>   at java.io.File.checkAndCreate(File.java:1294)
>   at java.io.File.createTempFile(File.java:1382)
>   at java.io.File.createTempFile(File.java:1419)
>   at
>
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
>   at
> java.security.AccessController.doPrivileged(Native
> Method)
>   at
>
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
>   at
>
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
>   at
>
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
>   at
>
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
>   at
>
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
>   at
>
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
> ..
> .
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Apache Authentication for Tomcat

2002-07-30 Thread Josh Landin

I'm running apache-2.0.39 and tomcat-4.0.2 using mod_jk compiled on RH7.2. I
setup Apache to require authentication for a given virtual host using an
htpasswd file. Because the same virtual host has some JkMount directives,
some requests are forwarded on to Tomcat without authentication. How can I
configure this so Apache always handles and requires authentication for
requests prior to handing them off to Tomcat?

In my httpd.conf I have the following:


DocumentRoot /drives/a/webapps/intranet1
ServerName intranet1
JkMount /*.jsp zeuscat
JkMount /wup/* zeuscat
ServerAlias *intranet1

   AuthUserFile /drives/a/webapps/.intranet1_passwd
   AuthName "restricted.zeus.intranet1"
   AuthType Basic
   Require valid-user



In my server.xml I have the following:


 
 



--
Josh


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




RE: HTTPS URL in Tomcat

2002-07-30 Thread Sullivan, Mark E

What version of the jdk are you using? in jdk1.4+ all i need to do is:

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
w.protocol");

and then i create my URL 

new URL("https://where-ever.com";)

Make sure that the server has a valid ssl certificate, because any problems
with it will give you an error. Also, you can turn on SSL debugging by
setting the system property like so:

System.setProperty("javax.net.debug","ssl"); // or "all" for everything.

hope this helps,
mark



-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 11:46 AM
To: Tomcat Users List
Subject: HTTPS URL in Tomcat


Hi all,

I keep getting a MALFormedURLException in my servlet which is trying to
connect to a URL which begins 'https://'. However, I keep getting:

java.net.MalformedURLException: unknown protocol: https
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)

I've put
'-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol' in my
tomcat startup. Also I have checked the java.security file and the line
'security.provider.3=com.sun.net.ssl.internal.ssl.Provider' is there.

I have included all of the com.sun.net.*.*.*.*.*.* directories as a
precaution yet the error is still cropping up?

Why am I still getting these errors and how can I fix this?

Thanks for any help that is supplied!

Stuart Stephen


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: parsing xml config file

2002-07-30 Thread Craig R. McClanahan



On Tue, 30 Jul 2002, Sullivan, Mark E wrote:

> Date: Tue, 30 Jul 2002 11:36:38 -0500
> From: "Sullivan, Mark E" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: parsing xml config file
>
> thanks craig. It's reassuring when you use smaller projects like digester
> when you know that a larger more popular project like tomcat is also using
> it.

I hope Struts (which also uses Digester) also counts as "popular" in your
book :-).  In fact, Digester was originally (Struts 1.0.x) named
org.apache.struts.util.Digester before it was refactored into
commons-digester.

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 11:37 AM
> To: Tomcat Users List
> Subject: Re: parsing xml config file
>
>
>
>
> On Tue, 30 Jul 2002, Sullivan, Mark E wrote:
>
> > Date: Tue, 30 Jul 2002 08:54:13 -0500
> > From: "Sullivan, Mark E" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "Tomcat-User@Jakarta. Apache. Org (E-mail)"
> > <[EMAIL PROTECTED]>
> > Subject: parsing xml config file
> >
> > Does anyone know if tomcat uses Digester from the jakarta commons project
> to
> > parse it's xml config file? I cannot find any evidence of this after
> > (briefly) searching the source code. If it doesn't, does it using an
> outside
> > package or just custom stuff written within the project?
> >
>
> Tomcat 4.1.x does indeed use Digester.  Previous versions of Tomcat used
> an internal Tomcat utility called XmlMapper (which was one of the bases
> for Digester's design).
>
> > thanks,
> > Mark
> >
>
> Craig
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Exception processing JAR in Tomcat 4.1.7

2002-07-30 Thread Mete Kural

Hi,

I'm getting the below exception in Tomcat 4.1.7
(installed from the .zip distribution) while loading
xalan.jar in a WEB-INF/lib/ directory. Do you have any
suggestions on what might be causing it?

Thanks, Mete

javax.servlet.ServletException: Exception processing
JAR at resource path /WEB-INF/lib/xalan.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
..
.
- Root Cause -
java.io.IOException: The system cannot find the path
specified
at
java.io.WinNTFileSystem.createFileExclusively(Native
Method)
at java.io.File.checkAndCreate(File.java:1294)
at java.io.File.createTempFile(File.java:1382)
at java.io.File.createTempFile(File.java:1419)
at
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
at
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
at
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
..
.




__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Slightly OT: Distributed Sessiion Manger

2002-07-30 Thread Chris Moon

I am currently looking at Tangosol Coherence (http://www.tangosol.com) to
distribute sessions between multiple tomcat servers.  I am wondering if
anybody out there has used this product?  If so, what are your general
feelings about this product?  How is performance?  Anything else you think I
might need to know?

Thanks!

---
Christopher Moon
System Administrator
Harvard University
FAS Administrative Computing
---


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




JSPC configuration, recompiling JSP

2002-07-30 Thread adam kramer


If these questions have been answered on the list already, reply privately
with links to the archives. I could not find clear answers to them.

I just installed Apache-Tomcat 4.0.4final on Redhat7.3 i386 and read from
the RELEASE-NOTES,
"The Java compiler leaks memory each time a class is compiled. ...
The JSP command line compiler (JSPC) can also be used to precompile the
JSPs."

I'm assuming JSPC is Jasper (correct me if I'm wrong). How do I configure
Tomcat 4.0.4 to precompile JSP (and servlets) with JSPC instead of JAVAC?
Precompiling is the actual creation of the servlet (from the jsp page) to
.java and the compiling of the servlet (.java) to a class file?

Also, it was mentioned that their is no way to unload servlets (servlets
and JSPs compiled to servlets) from a running Tomcat container without
restarting it. Is this true?  If so, the best solution would probably be
to run multiple tomcat instances for different webapps that are running
for production (or even development) purposes, so as to not have to
restart all applications because of changes in one. I'm assuming you could
also erase everything belowing the $CATALINA_HOME/work directory to force
the re/pre/compiling of JSP pages (but not controller servlets, im
assuming)?

Thank you for reading,
Adam K.


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




HTTPS URL in Tomcat

2002-07-30 Thread Stuart Stephen

Hi all,

I keep getting a MALFormedURLException in my servlet which is trying to
connect to a URL which begins 'https://'. However, I keep getting:

java.net.MalformedURLException: unknown protocol: https
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)

I've put
'-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol' in my
tomcat startup. Also I have checked the java.security file and the line
'security.provider.3=com.sun.net.ssl.internal.ssl.Provider' is there.

I have included all of the com.sun.net.*.*.*.*.*.* directories as a
precaution yet the error is still cropping up?

Why am I still getting these errors and how can I fix this?

Thanks for any help that is supplied!

Stuart Stephen


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




i can't acces absolute symbolic link created with ln -s command on LINUX

2002-07-30 Thread CouasPhilippe

Hi everybody,


i can't acces symbolic link with Tomcat 4.1.7.
i have created a link with ln -s command on LINUX.
If this symbolic link don't refere to a directory which is in webapps tree i have an 
error 404.
why ?
That is ok with Tomcat 4.0.4

Thanks
Philippe


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




RE: parsing xml config file

2002-07-30 Thread Sullivan, Mark E

thanks craig. It's reassuring when you use smaller projects like digester
when you know that a larger more popular project like tomcat is also using
it.  

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 11:37 AM
To: Tomcat Users List
Subject: Re: parsing xml config file




On Tue, 30 Jul 2002, Sullivan, Mark E wrote:

> Date: Tue, 30 Jul 2002 08:54:13 -0500
> From: "Sullivan, Mark E" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "Tomcat-User@Jakarta. Apache. Org (E-mail)"
> <[EMAIL PROTECTED]>
> Subject: parsing xml config file
>
> Does anyone know if tomcat uses Digester from the jakarta commons project
to
> parse it's xml config file? I cannot find any evidence of this after
> (briefly) searching the source code. If it doesn't, does it using an
outside
> package or just custom stuff written within the project?
>

Tomcat 4.1.x does indeed use Digester.  Previous versions of Tomcat used
an internal Tomcat utility called XmlMapper (which was one of the bases
for Digester's design).

> thanks,
> Mark
>

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: parsing xml config file

2002-07-30 Thread Craig R. McClanahan



On Tue, 30 Jul 2002, Sullivan, Mark E wrote:

> Date: Tue, 30 Jul 2002 08:54:13 -0500
> From: "Sullivan, Mark E" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "Tomcat-User@Jakarta. Apache. Org (E-mail)"
> <[EMAIL PROTECTED]>
> Subject: parsing xml config file
>
> Does anyone know if tomcat uses Digester from the jakarta commons project to
> parse it's xml config file? I cannot find any evidence of this after
> (briefly) searching the source code. If it doesn't, does it using an outside
> package or just custom stuff written within the project?
>

Tomcat 4.1.x does indeed use Digester.  Previous versions of Tomcat used
an internal Tomcat utility called XmlMapper (which was one of the bases
for Digester's design).

> thanks,
> Mark
>

Craig


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




Why couldn't Tomcat4.0.4 work with Netscape?

2002-07-30 Thread Hongming Qi

Hi,

I installed Tomcat 4.0.4 and Apache 2. 0.39 on Redhat 7.2. The "examples" could
be run on Explore, but they couldn't be run on Netscape ( the content couldn't be
loaded while clicking the "jsp" or "servlets". What happened? Anyone can help me
? Thanks.

Hongming


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




Re: Context Not working as expected

2002-07-30 Thread Randy Peterman

Doh!  I found my problem - I checked everywhere but where the problem was.

Thanks for your patience with me.

Note to self: Check your directory structure to make sure it matches your context node!

--

Randy Peterman
Alt-N Technologies, Ltd.
Helping The World Communicate
http://www.altn.com
http://www.mdaemon.com
http://www.relayfax.com


-Original Message-
From: "Randy Peterman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Tue, 30 Jul 2002 11:12:49 -0500
Subject: Context Not working as expected

> Y'all bear with me here-
> 
> I am just now getting into Java Servlets and JSP but I am stumped as to
> why I can't get 
> Context nodes to work in my Tomcat installation's servlet.xml file.
> 
> The following is from the book "Java Server Programming" and its not
> doing me a bit of good - 
> but I figure its some typo on my part.
> 
> In server.xml file, under the Host node, down at the end of the Node's
> content I have added 
> 
>docBase="C:\ProJavaServer\Chapter07\greeting" 
> reloadable="true"/>
> 
> When I attempt to access the index.html file I get the following Tomcat
> error message in my 
> browser:
> 
> Apache Tomcat/4.0.4 - HTTP Status 404 - /greeting
> 
> ---
> -
> 
> type Status report
> 
> message /greeting
> 
> description The requested resource (/greeting) is not available.
> 
> 
> For the record here are my machine and Java stats:
> 
> JVM: 1.4
> Tomcat: 4.0.4
> Install Directory: C:\Tomcat
> OS: Windows 2K
> Computer: Dell Pentium III 1gHz 512 MB Ram
> --
> 
> Randy Peterman
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 


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




RE: AW: getHeader("Referer") and document location

2002-07-30 Thread Maria Tan

Hi,Yoav and Ralph:

Thank you for your big help. Finally i got the URL i
wanted.

Thanks again.

Maria
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Hi,
> When you make this change, the flow is:
> 
> 1. Try getHeader("Referer").
> 2. If #1 returns null, try
> getParameter("myReferer").
> Since myReferer is not a header, you can't get it as
> a header ;)
> 
> You can URL-encode things in JavaScript by using the
> escape(string) function.  But that's getting to be
> off-topic for this list ;)
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Maria Tan [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, July 30, 2002 11:43 AM
> >To: Tomcat Users List
> >Subject: Re: AW: getHeader("Referer") and document
> location
> >
> >Hi, Ralph:
> >
> >Thanks you. But i just change to code in my
> javascript
> >function:
> >
>
>out.println("document.location=\"CheckURL1myReferer=CheckURL1\";");
> >
> >In my second servlet(CheckURL1). i still get null
> >through getHeader("Referer")
> >
> >Beside, i am just wondering if it is possible to
> use
> >the resonse.encodeUrl in the JavaScript function.
> >
> >Your help is appreciated.
> >
> >Maria
> >
> >--- Ralph Einfeldt <[EMAIL PROTECTED]>
> >wrote:
> >> If CheckURL1 is the url to your servlet
> >> you should use something like:
> >>
> >> out.println("document.location=\"");
> >>
>
>out.println(response.encodeUrl("CheckURL1?myReferer=test"));
> >> // The call to encodeUrl ensures that the link
> will
> >> contain
> >> // the session id if the browser has cookies
> >> disabled.
> >> // The separator between the servlet and the
> first
> >> parameter
> >> // is ?. All further params are separated by &
> >> // e.g.: "CheckURL1?myReferer=test&age=18"
> >> out.println("\";");
> >>
> >> > -Ursprüngliche Nachricht-
> >> > Von: Maria Tan [mailto:[EMAIL PROTECTED]]
> >> > Gesendet: Dienstag, 30. Juli 2002 16:55
> >> > An: Tomcat Users List
> >> > Betreff: RE: getHeader("Referer") and document
> >> location
> >> >
> >> > Would you mind tell me how to urlEncode the my
> >> second servlet
> >> > URL in the javascript.
> >> 
> >> > out.println(" LANGUAGE=\"JavaScript\">");
> >> > out.println("function
> >> loadcheckmodificationservlet()");
> >> > out.println("{");
> >> >
> >>
>
>out.println("document.location=\"CheckURL1&myReferer=test\";");
> >> > out.println("}");
> >> > out.println("");
> >> >
> >> 
> >>
> >> --
> >> To unsubscribe, e-mail:
> >>
> 
> >> For additional commands, e-mail:
> >> 
> >>
> >
> >
> >__
> >Do You Yahoo!?
> >Yahoo! Health - Feel better, live better
> >http://health.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:    >[EMAIL PROTECTED]>
> >For additional commands, e-mail:
>  >[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Context Not working as expected

2002-07-30 Thread Randy Peterman

Y'all bear with me here-

I am just now getting into Java Servlets and JSP but I am stumped as to why I can't 
get 
Context nodes to work in my Tomcat installation's servlet.xml file.

The following is from the book "Java Server Programming" and its not doing me a bit of 
good - 
but I figure its some typo on my part.

In server.xml file, under the Host node, down at the end of the Node's content I have 
added 



When I attempt to access the index.html file I get the following Tomcat error message 
in my 
browser:

Apache Tomcat/4.0.4 - HTTP Status 404 - /greeting



type Status report

message /greeting

description The requested resource (/greeting) is not available.


For the record here are my machine and Java stats:

JVM: 1.4
Tomcat: 4.0.4
Install Directory: C:\Tomcat
OS: Windows 2K
Computer: Dell Pentium III 1gHz 512 MB Ram
--

Randy Peterman


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




RE: How to enable Tomcat's Apache Auto-config

2002-07-30 Thread Andrew Conrad

I'm not sure exactly what you mean by 

If you want to generate a config file automatically, you will need to
add this into your server.xml file nested within either your Engine or
Host attribute (different level of detail depending on where you nest
it).




The info came from the manual:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

- Andrew

> -Original Message-
> From: JY - June Young [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: How to enable Tomcat's Apache Auto-config
> 
> 
> I am using Apache 1.3 and Apache Tomcat 4.0.
> 
> I downloaded the binary mod_jk.dll from 
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/b
> in/win32/i
> 386/.
> 
> The doc says to configure Tomcat to generate the Apache 
> auto-configuration add the following block to your 
> TOMCAT_HOME/conf/server.xml file after   
> 
> 
> I can't find  in server.xml of my Tomcat 4.0, 
> and I am not quite clear what block to add.
> 
> Can anyone tell me how to config server.xml to generate the 
> Apache auto-configuration?
> 
> Thanks,
> 
> June Young
> 
> 
> June Young, Software Development   bus: (902)422-1973
> x144
> Dymaxion Research Ltd., 5515 Cogswell St.,  fax: (902)421-1267
> Halifax, Nova Scotia, B3J 1R2 Canada   mailto:
> [EMAIL PROTECTED]
> http://www.dymaxion.ca
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




RE: How to enable Tomcat's Apache Auto-config

2002-07-30 Thread Mike Jackson

On the newer 3.x versions you can do "startup.sh jkconf", however you
should note that I'm not using windows and not using 4.x, but it might
work the same way.

Regardless however it's not too hard to generate the config yourself,
for the simpliest configuration (and not the best) you can setup a
mod_jk.conf file that contains the following:


  LoadModule jk_module libexec/mod_jk.so


JkWorkersFile "/usr/local/jakarta-tomcat-3.3.1/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-3.3.1/logs/mod_jk.log"

JkLogLevel emerg

And then for each webapp add the following:

JkMount /WEBAPPNAMEHERE ajp13
JkMount /WEBAPPNAMEHERE/* ajp13

Now again this is for 3.x, but I don't image it's all that much different
for
4.x.

Oh, and you'll need to add an include line to your httpd.conf in your apache
config, otherwise none of this will do anything for you (it won't be
loaded).

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

> -Original Message-
> From: JY - June Young [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 8:49 AM
> To: [EMAIL PROTECTED]
> Subject: How to enable Tomcat's Apache Auto-config
>
>
> I am using Apache 1.3 and Apache Tomcat 4.0.
>
> I downloaded the binary mod_jk.dll from
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i
> 386/.
>
> The doc says to configure Tomcat to generate the Apache
> auto-configuration add the following block to your
> TOMCAT_HOME/conf/server.xml file after/>
>
> I can't find  in server.xml of my Tomcat 4.0, and I am not
> quite clear what block to add.
>
> Can anyone tell me how to config server.xml to generate the Apache
> auto-configuration?
>
> Thanks,
>
> June Young
>
>
> June Young, Software Development   bus: (902)422-1973
> x144
> Dymaxion Research Ltd., 5515 Cogswell St.,  fax: (902)421-1267
> Halifax, Nova Scotia, B3J 1R2 Canada   mailto:
> [EMAIL PROTECTED]
> http://www.dymaxion.ca
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>



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




How to enable Tomcat's Apache Auto-config

2002-07-30 Thread JY - June Young

I am using Apache 1.3 and Apache Tomcat 4.0.

I downloaded the binary mod_jk.dll from
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i
386/.

The doc says to configure Tomcat to generate the Apache
auto-configuration add the following block to your
TOMCAT_HOME/conf/server.xml file after   

I can't find  in server.xml of my Tomcat 4.0, and I am not
quite clear what block to add.

Can anyone tell me how to config server.xml to generate the Apache
auto-configuration?

Thanks,

June Young


June Young, Software Development   bus: (902)422-1973
x144
Dymaxion Research Ltd., 5515 Cogswell St.,  fax: (902)421-1267
Halifax, Nova Scotia, B3J 1R2 Canada   mailto:
[EMAIL PROTECTED]
http://www.dymaxion.ca

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




RE: AW: getHeader("Referer") and document location

2002-07-30 Thread Shapira, Yoav

Hi,
When you make this change, the flow is:

1. Try getHeader("Referer").
2. If #1 returns null, try getParameter("myReferer").
Since myReferer is not a header, you can't get it as a header ;)

You can URL-encode things in JavaScript by using the escape(string) function.  But 
that's getting to be off-topic for this list ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Maria Tan [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 30, 2002 11:43 AM
>To: Tomcat Users List
>Subject: Re: AW: getHeader("Referer") and document location
>
>Hi, Ralph:
>
>Thanks you. But i just change to code in my javascript
>function:
>
>out.println("document.location=\"CheckURL1myReferer=CheckURL1\";");
>
>In my second servlet(CheckURL1). i still get null
>through getHeader("Referer")
>
>Beside, i am just wondering if it is possible to use
>the resonse.encodeUrl in the JavaScript function.
>
>Your help is appreciated.
>
>Maria
>
>--- Ralph Einfeldt <[EMAIL PROTECTED]>
>wrote:
>> If CheckURL1 is the url to your servlet
>> you should use something like:
>>
>> out.println("document.location=\"");
>>
>out.println(response.encodeUrl("CheckURL1?myReferer=test"));
>> // The call to encodeUrl ensures that the link will
>> contain
>> // the session id if the browser has cookies
>> disabled.
>> // The separator between the servlet and the first
>> parameter
>> // is ?. All further params are separated by &
>> // e.g.: "CheckURL1?myReferer=test&age=18"
>> out.println("\";");
>>
>> > -Ursprüngliche Nachricht-
>> > Von: Maria Tan [mailto:[EMAIL PROTECTED]]
>> > Gesendet: Dienstag, 30. Juli 2002 16:55
>> > An: Tomcat Users List
>> > Betreff: RE: getHeader("Referer") and document
>> location
>> >
>> > Would you mind tell me how to urlEncode the my
>> second servlet
>> > URL in the javascript.
>> 
>> > out.println("");
>> > out.println("function
>> loadcheckmodificationservlet()");
>> > out.println("{");
>> >
>>
>out.println("document.location=\"CheckURL1&myReferer=test\";");
>> > out.println("}");
>> > out.println("");
>> >
>> 
>>
>> --
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>> 
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




Re: AW: getHeader("Referer") and document location

2002-07-30 Thread Maria Tan

Hi, Ralph:

Thanks you. But i just change to code in my javascript
function:

out.println("document.location=\"CheckURL1myReferer=CheckURL1\";");

In my second servlet(CheckURL1). i still get null
through getHeader("Referer")

Beside, i am just wondering if it is possible to use
the resonse.encodeUrl in the JavaScript function.

Your help is appreciated.

Maria

--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> If CheckURL1 is the url to your servlet 
> you should use something like:
> 
> out.println("document.location=\"");
>
out.println(response.encodeUrl("CheckURL1?myReferer=test"));
> // The call to encodeUrl ensures that the link will
> contain 
> // the session id if the browser has cookies
> disabled.
> // The separator between the servlet and the first
> parameter 
> // is ?. All further params are separated by &
> // e.g.: "CheckURL1?myReferer=test&age=18"
> out.println("\";");
> 
> > -Ursprüngliche Nachricht-
> > Von: Maria Tan [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 30. Juli 2002 16:55
> > An: Tomcat Users List
> > Betreff: RE: getHeader("Referer") and document
> location
> >
> > Would you mind tell me how to urlEncode the my
> second servlet 
> > URL in the javascript.
>  
> > out.println("");
> > out.println("function
> loadcheckmodificationservlet()");
> > out.println("{");
> >
>
out.println("document.location=\"CheckURL1&myReferer=test\";");
> > out.println("}");
> > out.println("");
> > 
>  
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




tomcat4 doesn't display compile or runtime errors/exceptions in jsppages like tomcat3

2002-07-30 Thread Alex Muc

Hi,

I recently upgraded tomcat3.2.2 to tomcat 4.0.4.  Most of the upgrade 
went smoothly.  Tomcat4 certainly seems faster than tomcat3 which is good.

One of the things that tomcat3 had which tomcat4 seems to lack is the 
ability to view the compile or runtime errors and exceptions that occur 
when developing a jsp page.  In particular when you are doing a 
 in tomcat3 and the included page was a jsp which had  a 
error then tomcat3 would send the stack trace of the error in the HTML 
that it sent back to the browser and this error message was what made up 
the contents of the included page.  I know some people must have hated 
this because it tended to jumble the HTML of the including page, but I 
found it much easier to deal with than the way tomcat4 works which is to 
display the stack trace in the log file for the context and then not 
display anything as the result of the included file.  This is less 
useful because the user doesn't get any indication that something has 
gone wrong.  I'm wondering if there is a way to tell tomcat to display 
the error messages to the browser AND the log file?  I looked through 
the mail archives but didn't find anything and I checked the 
configuration documentation for tomcat4 but I couldn't find anything.

Can anyone tell me if this is possible, and if so how.  If it is not 
currently possible maybe that is a feature I could add if someone could 
tell me generally where to look.

Thank you for your help.
Alex.


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




RE: parsing xml config file

2002-07-30 Thread Shapira, Yoav

Hi,
Tomcat 4.x uses Xerces to do its internal XML parsing.  See the section
on XML parsers in the release notes at
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/RELEA
SE-NOTES

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 30, 2002 9:54 AM
>To: Tomcat-User@Jakarta. Apache. Org (E-mail)
>Subject: parsing xml config file
>
>Does anyone know if tomcat uses Digester from the jakarta commons
project
>to
>parse it's xml config file? I cannot find any evidence of this after
>(briefly) searching the source code. If it doesn't, does it using an
>outside
>package or just custom stuff written within the project?
>
>thanks,
>Mark
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




AW: getHeader("Referer") and document location

2002-07-30 Thread Ralph Einfeldt

If CheckURL1 is the url to your servlet 
you should use something like:

out.println("document.location=\"");
out.println(response.encodeUrl("CheckURL1?myReferer=test"));
// The call to encodeUrl ensures that the link will contain 
// the session id if the browser has cookies disabled.
// The separator between the servlet and the first parameter 
// is ?. All further params are separated by &
// e.g.: "CheckURL1?myReferer=test&age=18"
out.println("\";");

> -Ursprüngliche Nachricht-
> Von: Maria Tan [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 30. Juli 2002 16:55
> An: Tomcat Users List
> Betreff: RE: getHeader("Referer") and document location
>
> Would you mind tell me how to urlEncode the my second servlet 
> URL in the javascript.
 
> out.println("");
> out.println("function loadcheckmodificationservlet()");
> out.println("{");
> out.println("document.location=\"CheckURL1&myReferer=test\";");
> out.println("}");
> out.println("");
> 
 

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




tomcat 4.1

2002-07-30 Thread O'Gara, Damian
Title: tomcat 4.1





Hi


does anyone know the estimated production date for 4.1 of Tomcat?


Thanks
Damian O'Gara




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


RE: getHeader("Referer") and document location

2002-07-30 Thread Maria Tan

Hi, Yoav:

Thank you for your help. Would you mind tell me how to
ualEncode the my second servlet URL in the javascript.

public void service(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
try {
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("");
out.println("");
out.println("");
out.println("function
loadcheckmodificationservlet()");
out.println("{");
   
out.println("document.location=\"CheckURL1&myReferer=test\";");
out.println("}");
out.println("");

out.println("");
out.println("");
out.println("");
 out.println("" + "test" + "");
 
 out.println("Pending Reviews");
out.println("Modify
Audit");
out.println("");
out.println("");

}
Thanks a lot.

Maria
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Hi,
> IE (5.x) is known to have this issue with the
> Referer header.  If you
> are relying on the referrer header (which is not a
> good idea in general,
> but sometimes necessary), you will simply have to
> "add it" to your
> JavaScript.  In your case, change
> document.location="SecondServlet" to
>
document.location="SecondServlet&myReferer=blahblah".
>  SecondServlet
> would then look for that myReferer param if the
> Referer header is not
> found, and try to deal with it.  Remember to
> urlEncode the blahblah URL
> ;)
> 
> Most designs I've seen that rely on the Referer
> header can instead be
> done with a marker parameter in the request, e.g.
> comingFrom.  So you
> would have
>
document.location="SecondServlet&comingFrom=firstServlet".
> Then SecondServlet (and in fact all your servlets,
> or you could refactor
> this behavior into a Filter) would look from
> comingFrom instead of the
> Referer header.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Maria Tan [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, July 29, 2002 6:34 PM
> >To: [EMAIL PROTECTED]
> >Subject: getHeader("Referer") and document location
> >
> >Hi, All:
> >
> >I have two servlets.
> >
> >In my first servlet,I use the
> >document.location="SecondServlet" in my Java script
> >for URL Rewriting,
> >
> >In my second servlet, i use getHeader("Referer") to
> >get the referer. It works well in Netscape, but in
> >IE(5.5),it always returns null.
> >
> >String ref = (String)request.getHeader("Referer");
> >(ref returns null in IE, return URL in Netscape).
> >
> >Any suggestion? If IE didn't pass the Referer
> through
> >Java script, is there another way to work around?
> >
> >Thanks
> >
> >Maria
> >
> >
> >__
> >Do You Yahoo!?
> >Yahoo! Health - Feel better, live better
> >http://health.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:    >[EMAIL PROTECTED]>
> >For additional commands, e-mail:
>  >[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




AW: Re: AW: How to configure multiple warp connections

2002-07-30 Thread Felix Schumacher

Thanks for the info. You are right, I can use one Connector for
each Tomcat.

-- Original Nachricht --

>On Tue, 30 Jul 2002, Felix Schumacher wrote:
>
>> You have to use a different WebAppConnection for each WebAppDeploy
>> So use:
>> WebAppConnection warpAp1 warp localhost:8084
>> WebAppDeploy app1 warpAp1 /app1/
>> WebAppConnection warpAp2 warp localhost:8084
>> WebAppDeploy app2 warpAp2 /app2/
>> WebAppConnection warpAp3 warp localhost:8084
>> WebAppDeploy app3 warpAp3 /app3/
>> This will deploy three different apps in one tomcat into your
>> apache. Just change the localhost:8084 into something different
>> and there you are.
>> btw: If there is no reason to change the warpConnector port, don't
>> change it.
>
>This is not correct, you don't need to use different
>WebAppConnection's for each WebAppDeploy.  In fact, it's
>counter-productive, and I could even imagine you'd get an error if you
>tried to have different WebAppConnection's running on the same
>host:port.
>
>BTW, it's helpful to include the question you're responding to when
>you post.
>
>Milt Epstein
>Research Programmer
>Systems and Technology Services (STS)
>Campus Information Technologies and Educational Services (CITES)
>University of Illinois at Urbana-Champaign (UIUC)
>[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>








Online Fotoalben - jetzt kostenlos bei http://www.ePost.de



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




RE: tomcat and netscape

2002-07-30 Thread Durham David Cntr 805CSS/SCBE

How can I be more specific??  This is a yes/no question

> -Original Message-
> From: Cunningham Emmett [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 29, 2002 5:55 PM
> To: Tomcat Users List
> Subject: Re: tomcat and netscape
> 
> 
> 
> I haven't played with apache and IIS. But I do know 
> a fair amount about the iPlanet integration.
> 
> If you have a more specific question then just forward
> it. 
> I hope that I can help.
> emmett
> 
> --- Durham David Cntr 805CSS/SCBE
> <[EMAIL PROTECTED]> wrote:
> > Anyone know if jakarta entries in netscape's
> > obj.conf file is equivalent to entries in the
> > uriworkermap.properties file when integrating with
> > IIS and Apache?
> > 
> > Thanks,
> > 
> > Dave
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




parsing xml config file

2002-07-30 Thread Sullivan, Mark E

Does anyone know if tomcat uses Digester from the jakarta commons project to
parse it's xml config file? I cannot find any evidence of this after
(briefly) searching the source code. If it doesn't, does it using an outside
package or just custom stuff written within the project?

thanks,
Mark

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




AW: Cannot do ./configure with the webapp on Linux machine

2002-07-30 Thread franzR

You've to enable the EAPI for an Apache-1.3 by parameterizing this property
before you start the configuration;
Example:
./configure --with-apxs=... --enable-EAPI

More things can be found in the documentation (native/BUILDING)!

franzR

-Ursprüngliche Nachricht-
Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 30. Juli 2002 14:40
An: 'Tomcat Users List'
Betreff: Cannot do ./configure with the webapp on Linux machine


Hi,

I using Suse Linux 8.0 and already installed Apache 1.3 and Tomcat 4.0
successfully. Now I'm trying to get mod_webapp configured. This gives me the
error:
2002-07-30 12:37:05 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
 at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
37)
 at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
 at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
 at java.lang.Thread.run(Thread.java:484)

Since I haven't compiled the mod_webapp.so myself I thought let's do that
becoz I'm getting the following error when running apachectl configtest:
torvald1:/tmp/webapp-module-1.0-tc40 # apachectl configtest
[Tue Jul 30 14:41:06 2002] [warn] Loaded DSO /usr/lib/apache/mod_webapp.so
uses plain Apache 1.3 API, this module might crash u
nder EAPI! (please recompile it with -DEAPI)
Syntax OK
torvald1:/tmp/webapp-module-1.0-tc40 #

But I'm getting problems when doing "./configure" with the sources:
torvald1:/tmp/webapp-module-1.0-tc40 #
torvald1:/tmp/webapp-module-1.0-tc40 # ls -la
total 296
drwxr-xr-x   11 nobody   nobody664 Jul 30 14:24 .
drwxrwxrwt   12 root root 1256 Jul 30 14:30 ..
-rwxr--r--1 nobody   nobody  10244 Jul 19  2001 .DS_Store
-rwxr--r--1 nobody   nobody103 Aug 31  2001 .cvsignore
-rwxr--r--1 nobody   nobody   5527 Sep 17  2001 INSTALL.txt
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 LICENSE.txt
-rwxr--r--1 nobody   nobody   7994 Sep 17  2001 Makedefs.in
-rwxr--r--1 nobody   nobody   6349 Sep 17  2001 Makefile.in
-rwxr--r--1 nobody   nobody   6300 Sep 17  2001 Makefile.win
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 README.txt
drwxr-xr-x2 nobody   nobody176 Jul 30 13:41 apache-1.3
drwxr-xr-x2 nobody   nobody144 Jul 30 13:41 apache-2.0
drwxr-xr-x   22 nobody   nobody   1032 Jul 30 14:25 apr
-rw-r--r--1 root root 1553 Jul 30 14:24 config.log
-rwxr-xr-x1 nobody   nobody 125598 Jul 30 14:29 configure
-rwxr--r--1 nobody   nobody  19982 Sep 17  2001 configure.in
-rwxr--r--1 nobody   nobody  80284 Jul 30 14:22 configure.old
drwxr-xr-x2 nobody   nobody232 Jul 30 13:41 docs
drwxr-xr-x2 nobody   nobody200 Jul 30 13:41 include
drwxr-xr-x2 nobody   nobody544 Jul 30 13:41 java
drwxr-xr-x2 nobody   nobody440 Jul 30 13:41 lib
drwxr-xr-x2 nobody   nobody 72 Jul 30 13:41 nsapi
drwxr-xr-x2 nobody   nobody488 Jul 30 13:41 support
torvald1:/tmp/webapp-module-1.0-tc40 # autoconf
/usr/bin/m4: configure.in: 142: Non-numeric argument to built-in `divert'
/usr/bin/m4: configure.in: 372: Non-numeric argument to built-in `divert'
torvald1:/tmp/webapp-module-1.0-tc40 # ./configure --with-apxs
: command not found
: command not found
: command not found
checking for test... /usr/bin/test
: command not found
: command not found
'/configure: line 2773: syntax error near unexpected token `in
'/configure: line 2773: `  case "${enableval}" in
torvald1:/tmp/webapp-module-1.0-tc40 # #


Does anybody know what the problem can be overhere?

Greetings,
Gunter D'Hondt
SOFICO NV
BELGIUM




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




mod_jk.so

2002-07-30 Thread Billingham, Walter 475

All,

Does anyone have a mod_jk.so file that was compiled on a PowerPC box
with AIX 5.1 installed for Apache 1.3.x or Apache 2.x.x?  If so can you
please send me a copy of it?  I am at wits end trying to get mine to compile
and the looney bin is looking like a better place to be than apache/bin for
me, after all I have been through.  Help me. Thank you for your cooperation.



Trask.


 To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.

-Charles Baker



--
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
notify the sender by e-mail at the address shown.  This e-mail transmission may 
contain confidential information.  This information is intended only for the use of 
the individual(s) or entity to whom it is intended even if addressed incorrectly.  
Please delete it from your files if you are not the intended recipient.  Thank you for 
your compliance. Copyright (c) 2002 CIGNA




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




Re: AW: How to configure multiple warp connections

2002-07-30 Thread Milt Epstein

On Tue, 30 Jul 2002, Felix Schumacher wrote:

> You have to use a different WebAppConnection for each WebAppDeploy
> So use:
> WebAppConnection warpAp1 warp localhost:8084
> WebAppDeploy app1 warpAp1 /app1/
> WebAppConnection warpAp2 warp localhost:8084
> WebAppDeploy app2 warpAp2 /app2/
> WebAppConnection warpAp3 warp localhost:8084
> WebAppDeploy app3 warpAp3 /app3/
> This will deploy three different apps in one tomcat into your
> apache. Just change the localhost:8084 into something different
> and there you are.
> btw: If there is no reason to change the warpConnector port, don't
> change it.

This is not correct, you don't need to use different
WebAppConnection's for each WebAppDeploy.  In fact, it's
counter-productive, and I could even imagine you'd get an error if you
tried to have different WebAppConnection's running on the same
host:port.

BTW, it's helpful to include the question you're responding to when
you post.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: How to configure multiple warp connections

2002-07-30 Thread Milt Epstein

On Tue, 30 Jul 2002, Ratner, Ian wrote:

> Can someone point me to an example of how to configure a single instance of
> Apache to connect to two different Tomcat servers (running different apps)
> using warp?
>
> I tried the configuration below, but it didn't work:
>
> WebAppConnection warpConnection warp localhost:8084
> WebAppDeploy app1 warpConnection /app1/
> WebAppDeploy app2 warpConnection /app2/
> WebAppDeploy app3 warpConnection /app3/
>
> WebAppConnection warpConnection2 warp localhost:19123
> WebAppDeploy app4 warpConnection2 /app4/

FWIW, when I've seen the WebAppDeploy directive, the last argument did
not have a trailing slash.  Perhaps you should try it without it.


> The following errors show up in the arror_log:
>
> Cannot deploy application app1
> Cannot deploy application app2
> Cannot deploy application app3
>
> As if it's expecting the warpConnection apps will be available on the
> warpConnection2 server.

Why do you say that?  I don't get that from the above error messages
(or is there more to them?).

The only other thing I can think of is whether things are all
configured and running properly on the Tomcat side of things.  For
example, are the Tomcat instances up and running on the appropriate
ports?

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




AW: How to configure multiple warp connections

2002-07-30 Thread Felix Schumacher

You have to use a different WebAppConnection for each WebAppDeploy
So use:
WebAppConnection warpAp1 warp localhost:8084
WebAppDeploy app1 warpAp1 /app1/
WebAppConnection warpAp2 warp localhost:8084
WebAppDeploy app2 warpAp2 /app2/
WebAppConnection warpAp3 warp localhost:8084
WebAppDeploy app3 warpAp3 /app3/
This will deploy three different apps in one tomcat into your
apache. Just change the localhost:8084 into something different
and there you are.
btw: If there is no reason to change the warpConnector port, don't
change it.

Bye
 Felix






Online Fotoalben - jetzt kostenlos bei http://www.ePost.de



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




connect Apache to Tomcat which reside on different hosts

2002-07-30 Thread Luigi Savini

I have Apache Web Server on host 172.24.96.56
and Jakarta Tomcat 4.0.4 on host 172.24.96.57

Apache connects to Tomcat by mod_jk.

In my workers.properties i have specified the following code:

worker.ajp13.port=8009
worker.ajp13.host=172.24.96.57
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1


Now, Apache connects to Tomcat on the TCP port 8009 but it receive no
answer!
Should i define a virtual host in tomcat to handle request from Apache?

thank's,
Luigi


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




How to configure multiple warp connections

2002-07-30 Thread Ratner, Ian

Can someone point me to an example of how to configure a single instance of
Apache to connect to two different Tomcat servers (running different apps)
using warp?

I tried the configuration below, but it didn't work:

WebAppConnection warpConnection warp localhost:8084
WebAppDeploy app1 warpConnection /app1/
WebAppDeploy app2 warpConnection /app2/
WebAppDeploy app3 warpConnection /app3/

WebAppConnection warpConnection2 warp localhost:19123
WebAppDeploy app4 warpConnection2 /app4/

The following errors show up in the arror_log:

Cannot deploy application app1
Cannot deploy application app2
Cannot deploy application app3

As if it's expecting the warpConnection apps will be available on the
warpConnection2 server.

Thanks,
Ian

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




mod_jk/jk2.properties/JK2 Connector

2002-07-30 Thread franzR

I) jk2.property file
Concerning the documentation of th JK2 connector I've already installed a
jk_conf and a worker.property file for the
apache - tomcat communication. Among other things the port for every tomcat
process has to be provided.
The same port must be used in configuring the JK2-Connector in the
server.xml file.

However, what's the meaning of the jk2.properties which can be found in the
conf directory? Do these properties overrule
the worker's setting? Can I get rid off of them without harming tomcat?

II) socket- / unix channel
What's the difference between a "socket / unix" channel?
I've noticed that the log-file of tomcat issues several information
concerning the used channels on starting tomcat. Do the channel
configuration influence the inter process communication between apache and
tomcat (jserv)?


ThanX
franzR

 __   _
/ /  (_)__  __   __
   / /__/ / _ \/ // /\ \/ /
  //_/_//_/\_,_/ /_/\_\
   TUX for President




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




Cannot do ./configure with the webapp on Linux machine

2002-07-30 Thread Gunter D'Hondt

Hi,

I using Suse Linux 8.0 and already installed Apache 1.3 and Tomcat 4.0
successfully. Now I'm trying to get mod_webapp configured. This gives me the
error:
2002-07-30 12:37:05 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
 at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
37)
 at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
 at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
 at java.lang.Thread.run(Thread.java:484)

Since I haven't compiled the mod_webapp.so myself I thought let's do that
becoz I'm getting the following error when running apachectl configtest:
torvald1:/tmp/webapp-module-1.0-tc40 # apachectl configtest
[Tue Jul 30 14:41:06 2002] [warn] Loaded DSO /usr/lib/apache/mod_webapp.so
uses plain Apache 1.3 API, this module might crash u
nder EAPI! (please recompile it with -DEAPI)
Syntax OK
torvald1:/tmp/webapp-module-1.0-tc40 #

But I'm getting problems when doing "./configure" with the sources:
torvald1:/tmp/webapp-module-1.0-tc40 #
torvald1:/tmp/webapp-module-1.0-tc40 # ls -la
total 296
drwxr-xr-x   11 nobody   nobody664 Jul 30 14:24 .
drwxrwxrwt   12 root root 1256 Jul 30 14:30 ..
-rwxr--r--1 nobody   nobody  10244 Jul 19  2001 .DS_Store
-rwxr--r--1 nobody   nobody103 Aug 31  2001 .cvsignore
-rwxr--r--1 nobody   nobody   5527 Sep 17  2001 INSTALL.txt
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 LICENSE.txt
-rwxr--r--1 nobody   nobody   7994 Sep 17  2001 Makedefs.in
-rwxr--r--1 nobody   nobody   6349 Sep 17  2001 Makefile.in
-rwxr--r--1 nobody   nobody   6300 Sep 17  2001 Makefile.win
-rwxr--r--1 nobody   nobody   4494 Sep 17  2001 README.txt
drwxr-xr-x2 nobody   nobody176 Jul 30 13:41 apache-1.3
drwxr-xr-x2 nobody   nobody144 Jul 30 13:41 apache-2.0
drwxr-xr-x   22 nobody   nobody   1032 Jul 30 14:25 apr
-rw-r--r--1 root root 1553 Jul 30 14:24 config.log
-rwxr-xr-x1 nobody   nobody 125598 Jul 30 14:29 configure
-rwxr--r--1 nobody   nobody  19982 Sep 17  2001 configure.in
-rwxr--r--1 nobody   nobody  80284 Jul 30 14:22 configure.old
drwxr-xr-x2 nobody   nobody232 Jul 30 13:41 docs
drwxr-xr-x2 nobody   nobody200 Jul 30 13:41 include
drwxr-xr-x2 nobody   nobody544 Jul 30 13:41 java
drwxr-xr-x2 nobody   nobody440 Jul 30 13:41 lib
drwxr-xr-x2 nobody   nobody 72 Jul 30 13:41 nsapi
drwxr-xr-x2 nobody   nobody488 Jul 30 13:41 support
torvald1:/tmp/webapp-module-1.0-tc40 # autoconf
/usr/bin/m4: configure.in: 142: Non-numeric argument to built-in `divert'
/usr/bin/m4: configure.in: 372: Non-numeric argument to built-in `divert'
torvald1:/tmp/webapp-module-1.0-tc40 # ./configure --with-apxs
: command not found
: command not found
: command not found
checking for test... /usr/bin/test
: command not found
: command not found
'/configure: line 2773: syntax error near unexpected token `in
'/configure: line 2773: `  case "${enableval}" in
torvald1:/tmp/webapp-module-1.0-tc40 # #


Does anybody know what the problem can be overhere?

Greetings,
Gunter D'Hondt
SOFICO NV
BELGIUM





RE: Re[2]: REPOST: Document.importNode not working-works fine in modified JSDK2.1

2002-07-30 Thread Greg Waehner

Jake is right about "server/lib". Sorry - mental lapse on my part I
meant common/lib. Thanks for catching that.

The XML/DOM packages comes with J2SDK 1.3.1 EE
(http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html) but is now
bundled with the J2SDK 1.4.x SE. I was implicitly assuming EE since Cecil
mentioned the JSDK (servlet) 2.1, which is part of the complete EE distro.
My assumption is that JSDK SE 1.4.x is not in the picture since TC would
have found the XML/DOM packages during runtime. Clearly, using 1.4.x would
be a good (and recommended) solution.

So ultimately, yes, Xerxes is the issue at hand, and Cecil needs to resolve
classpath issues.

Greg

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 3:32 PM
To: Tomcat Users List
Subject: Re[2]: REPOST: Document.importNode not working-works fine in
modified JSDK2.1


Hello Greg,

The advice below to store your application accessible classes in
$TOMCAT_HOME/server/lib/ is bad information.  That will only be seen
by Tomcat itself.  If you want both Tomcat and apps to see your
library, you need to store that in $TOMCAT_HOME/common/lib or in
$TOMCAT_HOME/lib (analogous to $TOMCAT_HOME/shared/lib in Tomcat 4.1.x) for
just your apps and not Tomcat to see it.

What JDK are you using?  XML/DOM libraries did not come with JDK1.3.x,
but do come with j2sdk1.4.x.

If you are using anything less than JDK1.4.x, you need to make sure to
put something like Xerces in a directory accessible to Tomcat's
classloaders.  With Tomcat-3.3.x, you need to put it in either
$TOMCAT_HOME/lib/apps or $TOMCAT_HOME/lib/common.

Get out of the habit of putting any XML/DOM libraries in your own
app's WEB-INF/lib directory.  It is forbidden by the Sun classloading
spec to do this (see their spec for details) and Tomcat-4.0.2+
enforces this.

Jake

Monday, July 29, 2002, 8:26:16 AM, you wrote:

GW> Document.importNode not working-works fine in modified JSDK2.1Yes
indeed, the /WEB-INF/lib is where you place app specific JARs.

GW> But your problem is dealing with XML and JSDK 2.1... the JSDK does not
contain the "org.w3c" package. You probably know this already, but here's
the javadoc link for the JSDK 2.2... the 2.1 is
GW> offline now, since 2.3 is the standard.
GW> http://java.sun.com/products/servlet/2.2/javadoc/index.html

GW> The 1.3.x J2EE complete JAR does... but the older versions did not.

GW> So, the questions therefore, are
GW> 1. What is your "compile-time" classpath... Where is the compiler
finding org.w3c.dom / org.xml.sax ?
GW> 2. What is your "run-time classpath".
GW> 3. If # 1 and # 2 are different, do you also have servlet spec
differences? ( 2.1 vs. 2.2 or 2.3 )

GW> I think the long and short of it will be that you need to add the
"org.w3c.dom" and "org.xml.sax" packages to the $TOMCAT_HOME/server/lib/ or
to your $PROJECT/WEB-INF/lib/




GW> [Greg Waehner]  -Original Message-
GW> From: Chua Eng Huang, Cecil [mailto:[EMAIL PROTECTED]]
GW> Sent: Monday, July 29, 2002 9:02 AM
GW> To: Tomcat Users List
GW> Subject: RE: REPOST: Document.importNode not working-works fine in
modified JSDK2.1


GW>   This is probably it.  However, I have dumped every jar file into
webapps\examples\WEB-INF\lib,
GW>   which according to my understanding of the various docs is where
you're supposed to put all your own JAR files.

GW>   >Also, what are these "special" JARs? Tomcat is a J2EE servlet
container, but it does not contain all the components of >the "easy
download" J2SDK EE. So, look in the JAR files and see if the
GW> "org.w2c.dom" package is there... it may not be (I >forget). If that's
the case, then you are compiling with a classpath that does not match the
runtime classpath. This is >common with Tomcat,
GW> unless you want to point your compile classpath to
$TOMCAT_HOME/server/lib/ for the JARs. >A lot of people use the J2EE.jar for
simplicity, but then must remember to compare the run-time packages
GW> when a problem >occurs.
GW>   The code does compile fine (otherwise I wouldn't be getting a crash by
Tomcat itself.  I'd get it from the compiler).

GW>   Cecil Chua





--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: getHeader("Referer") and document location

2002-07-30 Thread Shapira, Yoav

Hi,
IE (5.x) is known to have this issue with the Referer header.  If you
are relying on the referrer header (which is not a good idea in general,
but sometimes necessary), you will simply have to "add it" to your
JavaScript.  In your case, change document.location="SecondServlet" to
document.location="SecondServlet&myReferer=blahblah".  SecondServlet
would then look for that myReferer param if the Referer header is not
found, and try to deal with it.  Remember to urlEncode the blahblah URL
;)

Most designs I've seen that rely on the Referer header can instead be
done with a marker parameter in the request, e.g. comingFrom.  So you
would have document.location="SecondServlet&comingFrom=firstServlet".
Then SecondServlet (and in fact all your servlets, or you could refactor
this behavior into a Filter) would look from comingFrom instead of the
Referer header.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Maria Tan [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 29, 2002 6:34 PM
>To: [EMAIL PROTECTED]
>Subject: getHeader("Referer") and document location
>
>Hi, All:
>
>I have two servlets.
>
>In my first servlet,I use the
>document.location="SecondServlet" in my Java script
>for URL Rewriting,
>
>In my second servlet, i use getHeader("Referer") to
>get the referer. It works well in Netscape, but in
>IE(5.5),it always returns null.
>
>String ref = (String)request.getHeader("Referer");
>(ref returns null in IE, return URL in Netscape).
>
>Any suggestion? If IE didn't pass the Referer through
>Java script, is there another way to work around?
>
>Thanks
>
>Maria
>
>
>__
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




Re: Java servlets & html escape codes.

2002-07-30 Thread @Basebeans.com

Subject: Re: Java servlets & html escape codes.
From: "Ron Jon" <[EMAIL PROTECTED]>
 ===
that's one possible way to do conversion string-->html:

 public static String ConvertString(String source){
   if (source==null)
 return null;
  int length = source.length();
  StringBuffer temp = new StringBuffer(2*length);
  for(int i=0;i wrote in message
news:[EMAIL PROTECTED]...
> Anyone know a low overhead class or method for converting text strings to
> html escape coded strings (and back again) for java Servlet
implementation?
>
> i.e. & --> &
> etc.
> Best Regards,
> Anthony Geoghegan.
> J2EE Developer
> CPS Ireland Ltd.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Java servlets & html escape codes.

2002-07-30 Thread Anthony Geoghegan

Thanks Simon perfect.

Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.
- Original Message -
From: "Simon Stewart" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 11:44 AM
Subject: Re: Java servlets & html escape codes.


> On Tue, Jul 30, 2002 at 11:05:31AM +0100, Anthony Geoghegan wrote:
> > Anyone know a low overhead class or method for converting text strings
to
> > html escape coded strings (and back again) for java Servlet
implementation?
> >
> > i.e. & --> &
>
> Alex Chafee's PurpleTech classes have something that do
> that. http://www.purpletech.com/ You get the source as well, so you
> can slim the class down even more if you need to.
>
> Cheers,
>
> Simon
>
> --
> A debugged program is one for which you have not yet found the conditions
> that make it fail.
> -- Jerry Ogdin
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Java servlets & html escape codes.

2002-07-30 Thread Simon Stewart

On Tue, Jul 30, 2002 at 11:05:31AM +0100, Anthony Geoghegan wrote:
> Anyone know a low overhead class or method for converting text strings to
> html escape coded strings (and back again) for java Servlet implementation?
> 
> i.e. & --> &

Alex Chafee's PurpleTech classes have something that do
that. http://www.purpletech.com/ You get the source as well, so you
can slim the class down even more if you need to.

Cheers,

Simon

-- 
A debugged program is one for which you have not yet found the conditions
that make it fail.
-- Jerry Ogdin

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




Java servlets & html escape codes.

2002-07-30 Thread Anthony Geoghegan

Anyone know a low overhead class or method for converting text strings to
html escape coded strings (and back again) for java Servlet implementation?

i.e. & --> &
etc.
Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.


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




Re: unable to start tomcat on redhat linux 7.2

2002-07-30 Thread Chris Ruegger

What is CATALINA_HOME set to?

- Original Message -
From: "Daniel Bruce Lynes" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 4:04 AM
Subject: Re: unable to start tomcat on redhat linux 7.2


On Thursday 25 July 2002 01:43, LinuxTyro wrote:

> I have set the JAVA_HOME and TOMCAT_HOME variables
> correctly therefore  cant figure out what is wrong.

export JAVA_HOME=/opt/jdk
export JDK_HOME=/opt/jdk
export PATH=$PATH:/opt/jdk/bin

Or something similar.

--
To unsubscribe, e-mail:

For additional commands, e-mail:







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




Re: Tomcat 3.3.1

2002-07-30 Thread Thomas Colin de Verdière

It seems it is not.
Try to reinstall tomcat 3.3 from beginning do not replace any jar.
this should work.
I thought you have made a wrong manipulation, you should look at the faq 
there is something about this .

Eric Leung wrote:
> Yes, 
> 
> I found the jar under $TOMCAT_HOME/lib/container
> 
> [isatom@demo container]$ jar tvf jasper.jar |grep JspWriterImpl
>   7764 Tue Mar 26 07:41:12 EST 2002
> org/apache/jasper/runtime/JspWriterImpl.class
> 
> How can I know if the method "flushBuffer " is inside the jar?
> But this jar comes with the 3.3.1 binary and the servlet 2.2 spec says this
> method "flushBuffer" is inside the class.
> 
> What else should I look for?
> Thanks,
> Eric
> 
> -Original Message-
> From: Thomas Colin de Verdiere [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 4:03 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 3.3.1
> 
> 
> Did you look at the code :
> org.apache.jasper.runtime.JspWriterImpl
> is the flushBuffer present?
> 
> 
> Thomas
> 
> 
> Eric Leung wrote:
> 
>>Hi All,
>>
>>I'm upgrading an application written for tomcat 3.1.1 to 3.3.1.
>>After fixing some bugs on using tomcat internal classes, I can startup the
>>application in 3.3.1 with the following message 
>>
>>Using classpath: bin/../lib/tomcat.jar
>>Using JAVA_HOME: /opt/jdk1.2.2
>>Using TOMCAT_HOME: /opt/isa-tomcat
>>[isatom@demo isa-tomcat]$
>>[isatom@demo isa-tomcat]$ 2002-07-30 10:51:32 - LogEvents: Adding
> 
> LogEvents,
> 
>>cm.debug=0 true
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.loggers.LogEvents@c562dddb
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.ContextXmlReader@33beddd8
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.ContextXmlReader@2bdaddd8
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.AutoDeploy@2626ddd8
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.AutoWebApp@32aeddd8
>>2002-07-30 10:51:32 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.PolicyLoader@c046dddb
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.mappers.SimpleMapper1@d18edddb
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.session.SessionExpirer@f746dddb
>>2002-07-30 10:51:33 - SessionIdGenerator: Opening /dev/urandom
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.session.SessionIdGenerator@1936ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.LogSetter@cdeddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.LogSetter@48addd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.facade.WebXmlReader@7082ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.generators.ErrorHandler@6226ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.WorkDirSetup@58a2ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.generators.Jdk12Interceptor@5112ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.generators.InvokerInterceptor@46daddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.facade.JspInterceptor@b7ceddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.generators.StaticInterceptor@a722ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.mappers.ReloadInterceptor@9846ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.session.SimpleSessionStore@8e8addd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.aaa.AccessInterceptor@ca3eddda
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.aaa.CredentialsInterceptor@c3f6ddda
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.aaa.SimpleRealm@3832dddb
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.facade.LoadOnStartupInterceptor@311edddb
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.facade.Servlet22Interceptor@26a6dddb
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.mappers.DecodeInterceptor@896eddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.session.SessionId@9d96ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.ApacheConfig@b166ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.IISConfig@4372ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.config.NSConfig@5e36ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>org.apache.tomcat.modules.server.Http10Interceptor@7836ddd8
>>2002-07-30 10:51:33 - LogEvents: addInterceptor
>>o

  1   2   >