RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Mario Fernandez

I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



Has anyone configured security example using Netscape Directory Structure

2002-02-15 Thread jay n gaba


Hi
Has anyone tried to configure the security example provided with tomcat using 
jndirealm. It uses memoryrealm by default. I trying to configure it using netscape 
directory server running on unix with tomcat running on windows nt. I am able to 
connect to ldap but when run the application it always throws invalid user or password 
exception. I have made the entries as specified in How to to-Realm documentation.

please give me some direction. I am attaching the server.xml configuration.

thanks in advance

regards
jay

Realm   className=org.apache.catalina.realm.JNDIRealm debug=99
connectionName=cn=tomcat,o=abc.org
connectionPassword=tomcat
connectionURL=ldap://abc2.xyz.org:8389/o=abc.org;
roleBase=cn=roles,o=abc.org
roleName=cn
roleSearch=(uniqueMember={0})
roleSubtree=false
userPassword=userpassword
userPattern=cn={0},o=abc.org 
digest=SHA/

ldap entry : 
dn: cn=tomcat,o=abc.org
cn: tomcat
userPassword: tomcat
sn: Tomcat User
objectclass: top
objectclass: person

# Define an entry to base role searches on
dn: dc=roles,o=abc.org
cn: roles
objectClass: person
sn: Roles Entry

# Define all members of the 'tomcat' role
dn: cn=tomcat,o=abc.org
cn: tomcat
objectClass: groupOfUniqueNames
uniqueMember: cn=tomcat,o=abc.org 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Starting server during boot with access to X-Windows

2002-02-15 Thread Zsolt Koppany

Hi,

I have the following problem:

we want to start tomcat during boot time. The servlets can produce some 
charts thus the server needs access to X-Windows (thus the server needs 
permission to do that). I do know how to start the server during boot but how 
can it be assured that it will have access to X-Windows?


Zsolt

-- 
Zsolt Koppany

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Starting server during boot with access to X-Windows

2002-02-15 Thread Chris Faulkner

Hi

Have you tried Xvfb which is a virtual frame buffer ? I have a Tomcat app which also 
needs access to X for drawing. We simply start an Xvfb instance on a virtual display 
(:1.0,:2.0, etc) and then use that. We 
have an xvfb script in init.d for starting  which essentially does this.

/usr/X11R6/bin/Xvfb :1.0 -screen 0 1280x1024x24 -shmem  # Starts a virtual 24 bit 
device on :1.0 

and upon shutdown

kill -TERM `cat /tmp/.X1-lock`

Xvfb comes shipped with most ofthe Linux distros and is also available if you look 
around for  Solaris and HP-UX.

Chris

Hi,

I have the following problem:

we want to start tomcat during boot time. The servlets can produce some 
charts thus the server needs access to X-Windows (thus the server needs 
permission to do that). I do know how to start the server during boot but how 
can it be assured that it will have access to X-Windows?


Zsolt

-- 
Zsolt Koppany

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Running Tomcat for Multiple developers

2002-02-15 Thread tsmets

Have you read this :

http://localhost:8080/tomcat-docs/RUNNING.txt

Snip
(4) Advanced Configuration - Multiple Tomcat 4 Instances

In many circumstances, it is desireable to have a single copy of a Tomcat 4
binary distribution shared among multiple users on the same server.  To make
this possible, you must configure a CATALINA_BASE environment variable (in
addition to CATALINA_HOME as described above) that points to a directory
that is unique to your instance.

When you do this, Tomcat 4 will calculate all relative references for files
in
the following directories based on the value for CATALINA_BASE instead of
CATALINA_HOME:
* conf - Server configuration files (including server.xml)
* logs - Log and output files
* webapps - Automatically loaded web applications
* work - Temporary working directories for web applications

If you do not set CATALINA_BASE to an explicit value, it will be initialized
to the same value as is set for CATALINA_HOME (which means that the same
directory is used for all relative path resoluations).
/Snip

Thomas,

--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Bruxelles
yahoo-id : smetsthomas
- Original Message -
From: Lantz Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 15 February, 2002 1:35 AM
Subject: Running Tomcat for Multiple developers


 Hi,

 I need to use tomcat for 30 or so students who may or may not be logging
 onto more than one system.  How do I get multiple instance's of tomcat
 with one installation ?  I can not give everyone a separte server.xml
 file with unique port numbers because I can not figure out how to tell
 the startup.sh script where to find a server.xml file in, for example,
 everyone's home directory or how that will affect other components of the
 application.

 Thanks.

 Lantz Johnson
 Unix System Administrator
 Santa Clara University
 (408) 554-6806


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How to redirect port 8080 to port 443?

2002-02-15 Thread tsmets

Why don't you read the docs over the ./conf/server.xml ?
There should be your answer ?

Thomas,


--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Bruxelles
yahoo-id : smetsthomas
- Original Message -
From: Anton Brazhnyk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 15 February, 2002 8:20 AM
Subject: RE: How to redirect port 8080 to port 443?


 Hi,

  -Original Message-
  From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 14, 2002 6:06 PM
  To: [EMAIL PROTECTED]
  Subject: How to redirect port 8080 to port 443?
 
 
  Greetings!
 
  I am moving from an insecure to a secure server for Tomcat.  Currently,
  I have both ports 8080 (for http) and ports 443 (for https) enabled in
  my server.xml.file.
 
  Now I have must remove port 8080 (insecure).
 
  Is there a way to redirect port 8080 to port 443 within server.xml?  Is
  there an *easy* way? G  (i.e. the setup is currently very stable and
  simple - I don't want to start trying to enable multiple virtual servers
  or contexts or anything like that - just a simple port redirection (if
  possible).
 

 Do you want to remove it or redirect it?
 If you remove it you won't be able to access that port and thereof do
 redirections. All you need is to remove or comment out Connector
 with port=8080 attribute in server.xml
 If you want to redirect requests from 8080 to 443 you have to
 add/change the redirectPort attribute in that Connector and
 add some SecurityConstraints to web.xml in your application.

 These topics are covered in the SSL HOWTO of TC docs and
 in Servlet Specification (Security)

  Thanks in advance for your assistance.
 
  -Richard
 
 

 Anton

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat - OMVS/S390 - Urgent

2002-02-15 Thread GOMEZ Henri

 De: Brown Bay [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 14 de febrero de 2002 22:42

 Has anyone got Tomcat (any version) running under OMVS on S390.

If you have a Linux VM on your S390 it will be easy since we package
Tomcat 3.3/4.0.2 as RPM ;)

BTW, Tomcat is a java apps which could be used on any system with
a JDK 1.1.x (TC 3.3) or JDK 1.2 (TC 4.0.2). I used them on our
IBM iSeries in OS/400 mode without any problems for months.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: (ANTON)Configuring apache + tomcat on separate machines

2002-02-15 Thread AMRAN121

Hello Anton Brazhnyk

Thanks for putting up the example I have tried to follow the example but I am 
still getting errors can you please please put up  a more comprehensive 
answer. I know alot of people are trying to set this up so it would help us 
all. An example of your httpd and all the other files in full will really 
really help.

Thanxs in advance and also thanxs for sharing the solution
Amran



R: Another Question About Tomcat Auth

2002-02-15 Thread Renato Romano

OK!!I just made a little step: i tried to put the classes in the common dir,
but Tomcat can't start, giving me a ClassNotFoundException on JDBCRealm. In
fact my Realm implementation is an extension of JDBCRealm, and the Common
ClassLoader can't find it, because it is a parent of the Catalina
ClassLoader. One solution i think would be to put also catalina.jar (where
JDBCRealm is) in the common/lib dir, but it doesn't seems to be a great idea
:-(((
Suggestions ?
Thanks again

Renato

-Messaggio originale-
Da: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 14 febbraio 2002 18.24
A: Tomcat Users List; [EMAIL PROTECTED]
Oggetto: Re: Another Question About Tomcat Auth




On Thu, 14 Feb 2002, Renato Romano wrote:

 Date: Thu, 14 Feb 2002 16:50:52 +0100
 From: Renato Romano [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Another Question About Tomcat Auth

 I succeffully defined my own Realm Implementation, but for have it working
i
 had to put the classes into the $CATALINA_HOME/server/classes dir. Since I
 also use those classes in my webapp, I also had to put them in
 webapps/myapp/WEB-INF/classes !! Of course I tried to put the classes in
the
 common/classes dir, but it doesn't works. Any idea ?
 Thanks again


If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

  http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

 Renato


Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

We have NOT made any changes to jni wrokers. What is the error that is being 
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Mario Fernandez

Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

I guess that is the message displayed when JNI performs some illegal operation. I 
suggest you to check your JNI code. The best thing would be to put *AfxMessageBox*es 
at different places. One more thing... have you generated the .h file?
-mb-

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



Re: null DataSource when trying to get JNDI InitialContext

2002-02-15 Thread fnovella



George M. Coles presuntamente escribió:

Hi all,
I am using tomcat for the firs time. I have v. 4.02, using jdk 1.4.

I am attempting to deploy my app, which uses JNDI to look up a connection
for its data access. I am using DB2 I have  placed the db2 jdbc zip file
in
my WEB-INF/libs dir. My server.xml looks like this:
 ...

If your JDBC driver for DB2 is a .zip file you can change the extension to
a .jar file.

Hope this helps.

Francisco J. Novella
[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat 3.2 and external webapps (again)

2002-02-15 Thread Joel Rees
I seem to recall several posts on this, but can't figure out how to get them
from the archive, and I don't recall any answers except my own half-baked
response about doing it in v 3.3. I've also dug through the 3.2 docs a ways.
And I've been mucking about in the conf directory for several days, and I
still can't figure out how to tell tomcat 3.2 to serve something outside of
its own directory tree.

No problems in v 3.3. apps-.xml, etc. work fine. But I am being told to
use 3.2.

I get the feeling it might be done by setting up workers and making
appropriate re-directs in apache. Is this where I should be looking?

Joel




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Manish Bhatnagar

Okay... do this:
replace #include jni.h with #include jni.h. Does it work?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 4:05 PM
To: '[EMAIL PROTECTED]'
Subject: RV: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve tried with a function that only makes a return(); and it keeps on
crashing... I think the failure is not in JNI code, because it works with
Apache + Jserv, so that´s why I´m getting mad about this failure. The .h
file is like this:


/* DO NOT EDIT THIS FILE - it is machine generated */
#include jni.h
/* Header for class Libreria */

#ifndef _Included_Libreria
#define _Included_Libreria
#ifdef __cplusplus
extern C {
#endif
/*
 * Class: Libreria
 * Method:JAdd
 * Signature: (Lipfw/Regla;)V
 */
JNIEXPORT void JNICALL Java_Libreria_JAdd
  (JNIEnv *, jobject, jobject);

/*
 * Class: Libreria
 * Method:JInterfaces
 * Signature: ()Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JInterfaces
  (JNIEnv *, jobject);

/*
 * Class: Libreria
 * Method:JListar
 * Signature: ([Ljava/lang/String;I)Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JListar
  (JNIEnv *, jobject, jobjectArray, jint);

/*
 * Class: Libreria
 * Method:JResolver
 * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_Libreria_JResolver
  (JNIEnv *, jobject, jstring, jstring);

#ifdef __cplusplus
}
#endif
#endif



-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:58 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I guess that is the message displayed when JNI performs some illegal
operation. I suggest you to check your JNI code. The best thing would be to
put *AfxMessageBox*es at different places. One more thing... have you
generated the .h file?
-mb-

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And I use this header in mylib.c
 
 Thanks in advance
 
 



RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-15 Thread Mario Fernandez

It fails again... May the way I compile the C file be the error cause?? I
compile it like this:

# gcc -Wall -c mylib.c -I/usr/local/jdk1.2.2/include
-I/usr/local/jdk1.2.2/include/freebsd
# ld -shared -fPIC -o libmylib.so mylib.o

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 15 de febrero de 2002 11:33
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Okay... do this:
replace #include jni.h with #include jni.h. Does it work?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 4:05 PM
To: '[EMAIL PROTECTED]'
Subject: RV: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve tried with a function that only makes a return(); and it keeps on
crashing... I think the failure is not in JNI code, because it works with
Apache + Jserv, so that´s why I´m getting mad about this failure. The .h
file is like this:


/* DO NOT EDIT THIS FILE - it is machine generated */
#include jni.h
/* Header for class Libreria */

#ifndef _Included_Libreria
#define _Included_Libreria
#ifdef __cplusplus
extern C {
#endif
/*
 * Class: Libreria
 * Method:JAdd
 * Signature: (Lipfw/Regla;)V
 */
JNIEXPORT void JNICALL Java_Libreria_JAdd
  (JNIEnv *, jobject, jobject);

/*
 * Class: Libreria
 * Method:JInterfaces
 * Signature: ()Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JInterfaces
  (JNIEnv *, jobject);

/*
 * Class: Libreria
 * Method:JListar
 * Signature: ([Ljava/lang/String;I)Ljava/util/Vector;
 */
JNIEXPORT jobject JNICALL Java_Libreria_JListar
  (JNIEnv *, jobject, jobjectArray, jint);

/*
 * Class: Libreria
 * Method:JResolver
 * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_Libreria_JResolver
  (JNIEnv *, jobject, jstring, jstring);

#ifdef __cplusplus
}
#endif
#endif



-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:58 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I guess that is the message displayed when JNI performs some illegal
operation. I suggest you to check your JNI code. The best thing would be to
put *AfxMessageBox*es at different places. One more thing... have you
generated the .h file?
-mb-

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:33 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Not exactly... the browser get stuck for some minutes, as if it was trying
to access the library methods; but when it finish, the error is: The page
cannot be displayed. I think this is because Tomcat is crashing, but I don´t
know why.

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 10:45 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


We have NOT made any changes to jni wrokers. What is the error that is being
displayed? Is it 500 Internal Server Error?

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


I´ve my library there, in $CATALINA_HOME\lib, and there´s mo way to make it
works... The System.loadLibrary() call works fine, but the problem is when I
call some native method. I´ve reading some responses in the mailing list
talking about jni workers or something like this, but always with Tomcat
3.2.3. In Tomcat 4.0.1, should I do something special in any configuration
file??

-Mensaje original-
De: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Enviado el: Friday, February 15, 2002 5:29 AM
Para: Tomcat Users List
Asunto: RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD


Where are you putting your mylib.so library? It should be in
$CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



 Hi everybody,
 
 I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
 machine. I call a native method from a servlet and it doesn´t work. I get
 a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
 My classes an native code are below:
 Is it necessary to do something in Tomcat to work with JNI??
 
 From the servlet i make the following call:
 
 
 
 Library.list(null, 0);
 
 
 
 My class Library is like this:
 
 public class Library{
 
 static {
 
 System.loadLibrary(mylib); // The sahred library is called libmylib.so
 and this works fine
 }
 
 public native static void list(String name, int num);
 
 }
 
 
 The function header in Library.h (generated by javah -jni Library) is:
 
 JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
 
 And 

Re: TC + JDK1.4

2002-02-15 Thread Joe Canady Canady

I am running SUSE linux 7.2 and just installed jdk1.4 (actually called something like 
j2sdk1.4 by Sun.  Tomcat 4.0.2 seems to  work with it.  Be advised though that I was 
unable to get tomcat 4.0.1 or 4.0.2 to run with jdk1.3.  It is also noted on the 
jakarta-tomcat website that jdk1.3 would not run with SUSE 7.2

Joe Canady
=
-Original Message-
From: Lauer, Oliver [EMAIL PROTECTED]
Date: Fri, 15 Feb 2002 09:08:41 +0100
To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
Subject: TC + JDK1.4


 Hi, 
 
 does TC support JDK1.4 ? 
 
 Thanx
 Oliver 
 
  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer 
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
  
  
 
 --
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, 
sich mit dem Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in this e-mail is not 
legally binding. Upon request we would be pleased to provide you with a legally 
binding confirmation in written form. Any form of unauthorised use, publication, 
reproduction, copying or disclosure of the content of this e-mail is not permitted. 
This message is exclusively for the person addressed or their representative. If you 
are not the intended recipient of this message and its contents, please notify the 
sender immediately.
 
 ==
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

-- 

___
Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: System.out.println

2002-02-15 Thread Javier Alonso





Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

In the JAva Console





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat 4.0.1 forte 3.0 ce

2002-02-15 Thread Alex

Does anyone knows how can i setup tomcat 4.0.1 to work with forte 3.0
ce as the ide's default web server (forte 3.0 ce use tomcat 3.2, but i
need tomcat 4.0.1) ?

Thanks in advance ...

Alex.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




PWS Tomcat - http://ipaddress/xyz.jsp

2002-02-15 Thread Ramanujam Muralidharan


Hi,
  I have a jsp page which i want to access as http://ipaddress/xyz.jsp . How do i do 
this . Where should i place the jsp file .Tomcat PWS integration is Ok.

thanx in advance
murali 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HTTPS client authentification

2002-02-15 Thread Andrew

 Hi, I 've a simple question. If I've configured some rules and JDBCRealm as
credentials store for may webapp+ set transport-guaratee to CONFIDENTIAL
for some resources, how I must setup SSL connector that it authentificate my
users through client certificates.More concrete JDBCRealm is
not used in this case but must be used PKI based authentification mechanism
instead? How I can setup my users for CLIENT-CERT?

Thank you.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Starting server during boot with access to X-Windows

2002-02-15 Thread Randy Layman


Another option for this is to upgrade to JDK 1.4 and then use the
headless option (check Java's docs for more info on how to do this).  Then
you can create images without the need for X.  (This doesn't work if you are
using GUI objects like Frame).

Randy


 -Original Message-
 From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 4:27 AM
 To: Tomcat Users List
 Subject: Re: Starting server during boot with access to X-Windows
 
 
 Hi
 
 Have you tried Xvfb which is a virtual frame buffer ? I have 
 a Tomcat app which also needs access to X for drawing. We 
 simply start an Xvfb instance on a virtual display 
 (:1.0,:2.0, etc) and then use that. We 
 have an xvfb script in init.d for starting  which essentially 
 does this.
 
 /usr/X11R6/bin/Xvfb :1.0 -screen 0 1280x1024x24 -shmem  # 
 Starts a virtual 24 bit device on :1.0 
 
 and upon shutdown
 
 kill -TERM `cat /tmp/.X1-lock`
 
 Xvfb comes shipped with most ofthe Linux distros and is also 
 available if you look around for  Solaris and HP-UX.
 
 Chris
 
 Hi,
 
 I have the following problem:
 
 we want to start tomcat during boot time. The servlets can 
 produce some 
 charts thus the server needs access to X-Windows (thus the 
 server needs 
 permission to do that). I do know how to start the server 
 during boot but how 
 can it be assured that it will have access to X-Windows?
 
 
 Zsolt
 
 -- 
 Zsolt Koppany
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: HttpResponse.sendRedirect problem

2002-02-15 Thread Dirk . Dinger


Hi Remy,

I had problems with response.sendRedirect since tomcat 4.x too (under 3.2
the same code worked).

I modified my code and use an RequestDispatcher.forward(). This works for
me.

Hope that helps,
Dirk



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat 3.2 and external webapps (again)

2002-02-15 Thread Joel Rees
Never mind, I finally found it, in the deployment section of the online docs
for 3.2.

Add a context entry to server.xml, etc.

Sorry about the static.

- Original Message -
I wrote:

 I seem to recall several posts on this, but can't figure out how to get
them
 from the archive, and I don't recall any answers except my own half-baked
 response about doing it in v 3.3. I've also dug through the 3.2 docs a
ways.
 And I've been mucking about in the conf directory for several days, and I
 still can't figure out how to tell tomcat 3.2 to serve something outside
of
 its own directory tree.

 No problems in v 3.3. apps-.xml, etc. work fine. But I am being told
to
 use 3.2.

 I get the feeling it might be done by setting up workers and making
 appropriate re-directs in apache. Is this where I should be looking?

 Joel




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: HTTPS client authentification

2002-02-15 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Andrew [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 1:30 PM
 To: Tomcat Users List
 Subject: HTTPS client authentification
 
 
  Hi, I 've a simple question. If I've configured some rules and 
 JDBCRealm as
 credentials store for may webapp+ set transport-guaratee to CONFIDENTIAL
 for some resources, how I must setup SSL connector that it 
 authentificate my
 users through client certificates.More concrete JDBCRealm is
 not used in this case but must be used PKI based authentification 
 mechanism
 instead? How I can setup my users for CLIENT-CERT?
 

Well, you know it's not a simple question. It took me about 2 weeks
to find some clues and I still can't require client auth on application
level. It seems request can't pass to client through mod_jk. So,
I had to ask sysadmin to require certificate authentication with Apache.
I didn't try mod_webapp though.
Not very helpful answer, eh? Try with more specific questions and
I hope I'll be able to help.

BTW, there is no such word authentiFIcation. It was surprise for me to. :)

 Thank you.
 
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Loadbalancer problems in mod_jk from 4.0.2 TC distribution when using TC 3.3

2002-02-15 Thread Hans Schmid

Hi,

I just ran into a problem with loadbalancing in mod_jk when using
the version which comes with TC 4.0.2.

I am currently using Tomcat 3.3 on Solaris 8 behind Apache 1.3.19
connectted via mod_jk 1.1.0 comming with TC 3.3.

I built mod_jk.so from the 4.0.2 connector package and replaced my
mod_jk.so (TC3.3 Version) with this one in apache/libexec (1.3.19).

By just changing a link back and forth between the two versions, I tested
our TC3.3 based application against the two versions of mod_jk.
If this is not enough and I am missing something, please let me know.
Otherwise exactly the same setup

All works perfectly with the new mod_jk when I use normal ajp13 workers
(one webapp), but fails when I use a loadbalancing worker pointing to
another webapp on a different Tomcat instance.


Note, We use the loadbalancer just for switching tomcats. Only one
instance of the two loadbalanced Tomcats is active most of the time.
(by changing the lbvalue)


Here toe parts of my mod_jk.log.


The initialisation phase (reading the workers seems identical)

apachectl graceful..

mod_jk.log 4.0.2 distribution  and 3.3

[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (383)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 12
[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/einsurance/=loadbalancer was added
[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (170)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (362)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule
/einsurance=loadbalancer was added

... (another 10 workers of type ajp13)

here the initialisation:  Loadbalancer loadbalances ajp13-01 and ajp13-02

[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (395)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 12 rules
[Tue Feb 12 15:26:45 2002]  [jk_uri_worker_map.c (409)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 8 workers
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (228)]: build_worker_map, creating
worker loadbalancer
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance loadbalancer of lb
[Tue Feb 12 15:26:45 2002]  [jk_lb_worker.c (540)]: Into lb_worker_factory
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init loadbalancer
[Tue Feb 12 15:26:45 2002]  [jk_lb_worker.c (411)]: Into
jk_worker_t::validate
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp13-01 of ajp13
[Tue Feb 12 15:26:45 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp13-01
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1174)]: Into
jk_worker_t::validate
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1194)]: In
jk_worker_t::validate for worker ajp13-01 contact is tomcathost:9009
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp13-02 of ajp13
[Tue Feb 12 15:26:45 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp13-02
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1174)]: Into
jk_worker_t::validate
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1194)]: In
jk_worker_t::validate for worker ajp13-02 contact is tomcathost:9019
[Tue Feb 12 15:26:45 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (238)]: build_worker_map, removing
old loadbalancer worker
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (228)]: build_worker_map, creating
worker ajp12-01
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp12-01 of ajp12
[Tue Feb 12 15:26:45 2002]  [jk_ajp12_worker.c (268)]: Into
ajp12_worker_factory
[Tue Feb 12 15:26:45 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp12-01
[Tue Feb 12 15:26:45 2002]  [jk_ajp12_worker.c (185)]: Into

RE: Tomcat 3.3a and context loading order

2002-02-15 Thread Larry Isaacs

Having the contexts declared outside of server.xml was the
intent.  I think having multiple contexts in an apps-ordered.xml
is appropriate.

Cheers,
Larry

 -Original Message-
 From: Mario Felarca [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 14, 2002 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3a and context loading order
 
 
 Hello,
 
 In Tomcat 3.2.x one could specify the order in which contexts were 
 initialized by the order in which they were entered in the 
 server.xml file.
 
 In Tomcat 3.3 I have not found a way to do this yet, short of 
 putting the 
 contexts into one file (be it the server.xml file or an 
 apps-ordered.xml 
 file). Does anyone know of a better way to do this?
 
 Thanks in advance,
 
 Mario-
 
 
 
 _
 
 Do You Yahoo!?
 
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Newbie ... :)

2002-02-15 Thread dark.wizzard

Hi everyone !

Please, anybody knows a site or tutorial what
describe how-to make a intranet ??? I'm using Tom Cat
4.0 for make this, but I have no idea to implements ...

Can help me please ???

Thanks


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HTTPS client authentification

2002-02-15 Thread Andrew

Hi, I 've a simple question. If I've configured some rules and JDBCRealm as
credentials store for may webapp+ set transport-guaratee to CONFIDENTIAL
for some resources, how I must setup SSL connector that it authentificate my
users through client certificates.More concrete JDBCRealm is
not used in this case but must be used PKI based authentification mechanism
instead? How I can setup my users for CLIENT-CERT?

Thank you.





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: System.out.println

2002-02-15 Thread Deep Singh Bhau

Check out on the tomcat window.

-Original Message-
From: Javier Alonso [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 15, 2002 4:23 PM
To: Tomcat Users List
Subject: Re: System.out.println





Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

In the JAva Console





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Limit of HTML input fields in a form?

2002-02-15 Thread Andreas Schlegel

Hi,

does anyone know if there is a limit for the HTML input fields in one
form?

We have a dynamically created form that contains a lot of input fields
(most of them have the type hidden or checkbox).

Having between 110 and 140 input fields we got the following message and
error:

Message: Connection closed by remote server
2002-02-15 02:43:50 - ContextManager: Error reading request, ignored -
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.tomcat.service.http.HttpRequestAdapter.parseHeaderFiled(HttpRequestAdapter.java:224)

at
org.apache.tomcat.service.http.HttpRequestAdapter.readHeaders(HttpRequestAdapter.java:205)

at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:140)

at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

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

Of course it is first a design problem of our application but the
ArrayIndexOutOfBoundsException seems to be a little bit strange or not?

Environment: Tomcat 3.2.1 / W2K

Greetings,
Andreas


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat as nt service

2002-02-15 Thread secfoc

i install tomcat as an nt-service, via jk_nt_service -i tomcat c:\program 
files\tomcat\conf\wrapper.properties  and it looks fine.  but then the service 
won´t start and won´t even give me a reason why. and it looks good.  when i start 
tomcat via c:\program files\tomcat\bin\startup.bat everything runs 
fine and smoothbut i need the service...

anybody seen this problem???
anybody an idea???



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Newbie ... :)

2002-02-15 Thread Loïc Lefèvre

Hi,
Can you describe a little more than 'intranet' what you
would like to know?

-Message d'origine-
De : dark.wizzard [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 15 février 2002 14:37
À : TomCat List
Objet : Newbie ... :)


Hi everyone !

Please, anybody knows a site or tutorial what
describe how-to make a intranet ??? I'm using Tom Cat
4.0 for make this, but I have no idea to implements ...

Can help me please ???

Thanks


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Limit of HTML input fields in a form?

2002-02-15 Thread Loïc Lefèvre

Hi,
Yes, forms with GET method (eg: form method='GET') have a maxium
size of 256 bytes (if I remember well) because it is the maximum length
of an URL is 256 bytes.
If you use POST method then there the maximum is bigger (generally more
than 65Ko).

Cheers,
Loïc Lefèvre

-Message d'origine-
De : Andreas Schlegel [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 15 février 2002 14:57
À : tomcat-user
Objet : Limit of HTML input fields in a form?


Hi,

does anyone know if there is a limit for the HTML input fields in one
form?

We have a dynamically created form that contains a lot of input fields
(most of them have the type hidden or checkbox).

Having between 110 and 140 input fields we got the following message and
error:

Message: Connection closed by remote server
2002-02-15 02:43:50 - ContextManager: Error reading request, ignored -
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.tomcat.service.http.HttpRequestAdapter.parseHeaderFiled(HttpReque
stAdapter.java:224)

at
org.apache.tomcat.service.http.HttpRequestAdapter.readHeaders(HttpRequestAda
pter.java:205)

at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpReques
tAdapter.java:140)

at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:195)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

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

Of course it is first a design problem of our application but the
ArrayIndexOutOfBoundsException seems to be a little bit strange or not?

Environment: Tomcat 3.2.1 / W2K

Greetings,
Andreas


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with Manager reload, memory usage and garbage collection.

2002-02-15 Thread Thomas Åhlen

Each time I reload my application with the Manager servlet the memory usage
increase.

Spec: I have Tomcat 4.0.2 and JDK 1.3.1_02 running on a Windows2k machine.

I have located my problem using JProbe with Tomcat 4.0.2. Looking at the
instance summary before and after a reload I see that there is one class
that isn't GC'd. So after 10 reloads I have 10 instances of this class. The
class is a singelton and lookes something like this:

public class MySingelton
{
private static MySingelton singelton;

private Hashtable resources;

private MySingelton()
{
// Create a Hashtable with some resources here
}

public static Object getResource( String name )
{
 return resources.get( name );
}

public static synchronized void configure()
{
singelton= new MySingelton();
}
}

This Singelton are only called in the init method of my servlet; e.g.

public void init( ServletConfig config )
throws ServletException
{
MySingelton.configure();
}


I guess that Tomcat sets up a new ClassLoader each time an application is
reloaded. So why can't MySingelton be garabage collected? Somewhere there
must still be a reference to it and it isn't in my code for sure.

Please anyone got a suggestion how to solve my problem?

Thanks!
Thomas Åhlén



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat as nt service

2002-02-15 Thread Olaf Jahn

secfoc [EMAIL PROTECTED] wrote:

 i install tomcat as an nt-service, via jk_nt_service -i tomcat
 c:\program files\tomcat\conf\wrapper.properties and it looks fine.
 but then the service won´t start and won´t even give me a reason
 why. and it looks good.  when i start tomcat via c:\program
 files\tomcat\bin\startup.bat everything runs fine and smoothbut
 i need the service...

Did you modify wrapper.properties to fit your installation? 
I'd look there first.

It there something in your control.log?

Olaf


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Limit of HTML input fields in a form?

2002-02-15 Thread Ralph Einfeldt

Do you use method=post or method=get in the form.

This kind of error shouldn't happens with of the of the methods.

Post should have no restriction at all, and get can have a 
restriction but :

spec
   A server SHOULD return 414 (Request-URI Too Long) status if
   a URI is longe than the server can handle (see section 10.4.15).
/spec

http://www.faqs.org/rfcs/rfc2068.html
3.2.1

 -Ursprüngliche Nachricht-
 Von: Andreas Schlegel [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 15. Februar 2002 14:57
 An: tomcat-user
 Betreff: Limit of HTML input fields in a form?
snip/
 does anyone know if there is a limit for the HTML input fields in one
 form?
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Auto loading servlets at startup

2002-02-15 Thread Dimmick, Bill

Hi Tim,

Open the web.xml which contains the servlet you wish to autoload.
Find the servlet tag that defines that servlet, and inside that stanza,
add a tag like the following:

load-on-startup100/load-on-startup

This will force the servlet to be init'd when the engine starts.
The number in the tags is the ordering of when the servlet is started,
where the lesser number is started first.

Bill

-Original Message-
From: Kennedy, Tim [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 9:10 AM
To: '[EMAIL PROTECTED]'
Subject: Auto loading servlets at startup


Hello,

I have a servlet that I wish to startup as soon as Tomcat starts. How is
this done?

Cheers

Tim

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: RE: tomcat as nt service

2002-02-15 Thread secfoc

thanks for answering so fast, but this is just the way, i did it. it just doesn´t work 
for no obvious reason.


Am 15.02.2002 15:07:29, schrieb Deep Singh Bhau [EMAIL PROTECTED]:

Hi,

If u have jk_nt_service.zip file then unzip it and extract the
executable to bin folder under tomcat home
Go to the conf  folder under tomcat home and open the wrapper.properties
with some text editor.
Update the wrapper.tomcat_home to point to the tomcat home directory
Update the wrapper.java_home to point to the jdk1.3 directory
Run the executable to set up Jakarta as a service  ---go to the bin
folder under tomcat home and run the following command on the command
line prompt jk_nt_service -I Jakarta  complete path to the
wrapper.properties file 
Eg :  jk_nt_service -I Jakarta
C:\foo\Jakarta-tomcat\conf\wrapper.properties


On the command prompt  start Jakarta by typing in net start Jakarta  
Fire up IE Explorer and go to http://localhost:8080/examples/jsp
You should be able to see the jsp examples 
Click on execute of the Numberguess example and play with the JSP until
you get the right answer  ?
Close the IE Explorer
On the command prompt  stop Jakarta by typing in net stop Jakarta  

You have successfully installed Jakarta as a service 


-Original Message-
From: secfoc [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 15, 2002 7:29 PM
To: [EMAIL PROTECTED]
Subject: tomcat as nt service

i install tomcat as an nt-service, via jk_nt_service -i tomcat
c:\program files\tomcat\conf\wrapper.properties  and it looks fine.
but then the service 
won´t start and won´t even give me a reason why. and it looks good.
when i start tomcat via c:\program files\tomcat\bin\startup.bat
everything runs 
fine and smoothbut i need the service...

anybody seen this problem???
anybody an idea???



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat as nt service

2002-02-15 Thread secfoc

that is my problem...there is no obvious reason...and nt just says, tomcat could not 
be startet and tomcat did not say why...there is no appearance in any 
logfile.


Am 15.02.2002 15:07:09, schrieb Olaf Jahn [EMAIL PROTECTED]:

secfoc [EMAIL PROTECTED] wrote:

 i install tomcat as an nt-service, via jk_nt_service -i tomcat
 c:\program files\tomcat\conf\wrapper.properties and it looks fine.
 but then the service won´t start and won´t even give me a reason
 why. and it looks good.  when i start tomcat via c:\program
 files\tomcat\bin\startup.bat everything runs fine and smoothbut
 i need the service...

Did you modify wrapper.properties to fit your installation? 
I'd look there first.

It there something in your control.log?

Olaf


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Another Question About Tomcat Auth

2002-02-15 Thread Luke Studley

Renato

I get this as well. I may be wrong but I found that the Realm base class is
package protected so you have to have your extension in the same package.
This is a bit of a pain, it also means I could only get it to work by
placing my realm code and any dependents directly  in the server/lib
directory - it doesn't work from common. Then all my other common stuff
excluding realms goes in the common/lib dir.

Hope that helps

Luke

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]] 
Sent: 15 February 2002 09:50
To: Tomcat Users List
Subject: R: Another Question About Tomcat Auth

OK!!I just made a little step: i tried to put the classes in the common dir,
but Tomcat can't start, giving me a ClassNotFoundException on JDBCRealm. In
fact my Realm implementation is an extension of JDBCRealm, and the Common
ClassLoader can't find it, because it is a parent of the Catalina
ClassLoader. One solution i think would be to put also catalina.jar (where
JDBCRealm is) in the common/lib dir, but it doesn't seems to be a great idea
:-(((
Suggestions ?
Thanks again

Renato

-Messaggio originale-
Da: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 14 febbraio 2002 18.24
A: Tomcat Users List; [EMAIL PROTECTED]
Oggetto: Re: Another Question About Tomcat Auth




On Thu, 14 Feb 2002, Renato Romano wrote:

 Date: Thu, 14 Feb 2002 16:50:52 +0100
 From: Renato Romano [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Another Question About Tomcat Auth

 I succeffully defined my own Realm Implementation, but for have it working
i
 had to put the classes into the $CATALINA_HOME/server/classes dir. Since I
 also use those classes in my webapp, I also had to put them in
 webapps/myapp/WEB-INF/classes !! Of course I tried to put the classes in
the
 common/classes dir, but it doesn't works. Any idea ?
 Thanks again


If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

  http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

 Renato


Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: restarting Tomcat 4

2002-02-15 Thread Christos Karras

It works fine if you wait long enough between calling the stop and start script,
but not if you write a restart script which
calls catalina.sh start and immediately after, catalina.sh stop, because
then there's no delay between the two, and tomcat doesn't have the
time to shutdown before you try (and fail) to restart it.

In my case, I need to wait 10 seconds between doing a shutdown and a startup,
but this varies depending on the number
of webapps you have (in the case of the original poster, it's 40 seconds), so I
agree with him there should be a more elegant
way to restart the server.


Thanh Duong wrote:

 Hi,
 to start tomcat in a separate window use
 $CATALINA_HOME/bin/catalina.sh start

 to stop tomcat use
 $CATALINA_HOME/bin/catalina.sh stop

 It works fine so you don't need to wait for ending the tomcat process.

 Bye
 Thanh

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 14. Februar 2002 16:02
 To: [EMAIL PROTECTED]
 Subject: restarting Tomcat 4

 Hi.

  I was wondering if anyone out there has a good way of restarting Tomcat
 4...?  In version 3, I used to just be able to do
 $TOMCAT_HOME/bin/shutdown.sh; $TOMCAT_HOME/bin/startup.sh.  Now, in
 version
 4 though, since the starting and stopping scripts seem to have been modified
 to be background processes, this no longer works since it won't wait for the
 first script to finish anymore before starting the second one.  Now, my
 restart alias looks like this: $CATALINA_HOME/bin/shutdown.sh; sleep 40;
 $CATALINA_HOME/bin/startup.sh.  Pretty lame, and I just arrived at the
 sleep
 value by trial and error (actually as I add more stuff in my server.xml
 file,
 I think the shutdown might even take longer, so I may need to bump this
 value
 up).  Does anyone have any more elegant/exact ways of doing this?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JAXP

2002-02-15 Thread Micael Padraig Og mac Grene

Not in there.  Probably deprecated forever.

At 09:52 AM 2/14/02 -0500, you wrote:
Hi,
It's in the Sun XML pack (among other places), at
http://java.sun.com/xml/downloads/javaxmlpack.html

Yoav Shapira


[EMAIL PROTECTED] wrote:
 
  I got it about 6 months ago and you're right, I can't seem
  to find it again.
 
 
  Where did you find jaxp.jar, if you 
 did?  I
  have been looking everywhere

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie ... :)

2002-02-15 Thread Robert Keddie

intranetjournal.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat v4.0.2 : null DataSource when trying to get JNDI InitialContext

2002-02-15 Thread Frederic Monclar

Dear all,

Like several persons, I got this null DataSource. I read several
mails, but i didn't find any answer.(example:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg44065.html).

So I am trying to define the problem as accurate as possible :

Environment definition :

- Running Tomcat v4.02 under Linux (installation directory :
/usr/local/jakarta-tomcat-4.0.2)
- Starting developping my web application with asimple JSP page
(installation directory : /home/james/myWebProject/)
- Creating subdirectrories /home/james/myWebProject/WEB-INF/ and
/home/james/myWebProject/WEB-INF/lib/
- Using Oracle 8 on my database server named ukki, and copying the
Oracle
driver in /home/james/myWebProject/WEB-INF/lib/
- The instance of my databse is named : develdb


My server.xml file (in /usr/local/jakarta-tomcat-4.0.2/conf) :
--
...
  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone
...

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0
...

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
unpackWARs=true
...
Context path=/Test docBase=/home/james/myWebProject/
 debug=4 reloadable=true crossContext=true

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_test. suffix=.txt
  timestamp=true/

  Resource name=jdbc/myDB auth=Container
type=javax.sql.DataSource/

  ResourceParams name=jdbc/myDB
parameter
  nameuser/name
  valuejames/value
/parameter
parameter
  namepassword/name
  valuebond007/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  namedriverName/name
  valuejdbc:oracle:thin:@ukki:1521:develdb/value
/parameter
  /ResourceParams

/Context
...
  /Host

/Engine

  /Service
...


and my web.xml file (in /home/james/myWebProject/WEB-INF/) :
--
...
resource-ref
description
  Resource reference to a factory for
  java.sql.Connection
/description
res-ref-namejdbc/myDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
...

To start Tomcat :
-
/usr/local/jakarta-tomcat-4.0.2/bin/startup.sh

and i got the following traces :
2002-02-15 15:15:42 StandardContext[/Test]: Starting
2002-02-15 15:15:42 StandardContext[/Test]: Processing start(), current
available=false
2002-02-15 15:15:42 StandardContext[/Test]: Configuring default
Resources
2002-02-15 15:15:42 StandardContext[/Test]: Configuring non-privileged
default Loader
2002-02-15 15:15:42 StandardContext[/Test]: Configuring default Manager
2002-02-15 15:15:42 StandardContext[/Test]: Processing standard
container startup
2002-02-15 15:15:42 WebappLoader[/Test]: Deploying class repositories to
work directory /usr/local/jakarta-tomcat-4.0.2/work/localhost/Test
2002-02-15 15:15:42 WebappLoader[/Test]: Deploy JAR
/WEB-INF/lib/oracledr.jar to
/home/james/myWebProject/WEB-INF/lib/oracledr.jar
2002-02-15 15:15:42 WebappLoader[/Test]: Reloading checks are enabled
for this Context
2002-02-15 15:15:42 StandardManager[/Test]: Seeding random number
generator class java.security.SecureRandom
2002-02-15 15:15:42 StandardManager[/Test]: Seeding of random number
generator has been completed
2002-02-15 15:15:42 ContextConfig[/Test]: ContextConfig: Processing
START
2002-02-15 15:15:43 StandardContext[/Test]: Setting deployment
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN'
2002-02-15 15:15:43 StandardContext[/Test]: Setting deployment
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN'
2002-02-15 15:15:43 ContextConfig[/Test]: Scanning web.xml tag libraries
2002-02-15 15:15:43 ContextConfig[/Test]: Scanning library JAR files
2002-02-15 15:15:43 ContextConfig[/Test]:
tldConfigJar(/WEB-INF/lib/oracledr.jar): java.io.IOException: No such
file or directory
2002-02-15 15:15:43 Authenticator[/Test]: No SingleSignOn Valve is
present
2002-02-15 15:15:43 ContextConfig[/Test]: Configured an authenticator
for method BASIC
2002-02-15 15:15:43 ContextConfig[/Test]: Pipline Configuration:
2002-02-15 15:15:43 ContextConfig[/Test]:  
org.apache.catalina.authenticator.BasicAuthenticator/1.0
2002-02-15 15:15:43 ContextConfig[/Test]:  
org.apache.catalina.core.StandardContextValve/1.0
2002-02-15 15:15:43 ContextConfig[/Test]: 

Re: Another Question About Tomcat Auth

2002-02-15 Thread Micael Padraig Og mac Grene

When I put jar files in $TOMCAT_HOME/common/lib they work fine for running 
Catalina, but they do not work for javac on my own classes, so I have had 
to put the actual classes into 
$TOMCAT_HOME/webapps/myapp/WEB-INF/classes/.  Is there a reason why the 
common/lib directory does not work for javac?  The app can see the javac 
command, but cannot see the classes in common/lib/whatever.jar.

Micael



If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

   http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

  Renato
 

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JAXP

2002-02-15 Thread Mihai Gheorghiu

Is this what you are looking for? I found it included in Poolman.

-Original Message-
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Friday, February 15, 2002 9:40 AM
Subject: Re: JAXP


Not in there.  Probably deprecated forever.

At 09:52 AM 2/14/02 -0500, you wrote:
Hi,
It's in the Sun XML pack (among other places), at
http://java.sun.com/xml/downloads/javaxmlpack.html

Yoav Shapira


[EMAIL PROTECTED] wrote:
 
  I got it about 6 months ago and you're right, I can't
seem
  to find it again.
 
 
  Where did you find jaxp.jar, if you
 did?  I
  have been looking everywhere

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




jaxp.jar
Description: Binary data

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


warp binary image bug with TC4.02 A1.3.23 under Windows?

2002-02-15 Thread Andrzej Jan Taramina

Has anyone else experienced a problem using the latest mod_webapp Warp 
connector on a Windows 2K platform when trying to transmit images (binary 
files) between Tomcat 4.0.2 and Apache 1.3.23?

Still hoping to get this resolved

Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat as nt service

2002-02-15 Thread secfoc

okthanks to all of you...the problem is solved

because of the blank in c:\program files\ i tried c:\program files\ but it didn´t 
work outin fact, you must avoid blanks in paths in general, therefore, for 
all people having this problem, you need to write the short-form of the path, for 
example c:\progra~1\ instead of c:\program files or c:\program files

my personal advise after this experience...avoid blanks in pathnames at all cost...




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JAXP -- File had a virus.

2002-02-15 Thread Micael Padraig Og mac Grene

Please note that the file you sent me was packed with a virus.

At 10:04 AM 2/15/02 -0500, you wrote:
The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:

The Anti Virus software Antigen found jaxp.jar infected with
ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
from the message sent to  with the subject Re: JAXP  if it could not be
cleaned.

Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
envoyé à  avec l' objet Re: JAXP  s'il n' a pu être nettoyé.

I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
wonderful piece of software.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: tomcat as nt service

2002-02-15 Thread Gisela Ulrich

that will do it also:

1. go to

%tomcat_home%\bin

2. insert jk_nt_service -i tomcat ..\conf\wrapper.properties

-Ursprüngliche Nachricht-
Von: secfoc [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 15. Februar 2002 16:18
An: Tomcat Users List
Betreff: Re: tomcat as nt service


okthanks to all of you...the problem is solved

because of the blank in c:\program files\ i tried c:\program files\ but it
didn´t work outin fact, you must avoid blanks in paths in general,
therefore, for
all people having this problem, you need to write the short-form of the
path, for example c:\progra~1\ instead of c:\program files or c:\program
files

my personal advise after this experience...avoid blanks in pathnames at all
cost...




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




With tomcat?

2002-02-15 Thread JD Evora

Hi everybody,

 Can I find somewhere a document telling me with version of tomcat should I
install?


 I am using right now TC 3.2.4.

 Should I migrate to TC 3.3 or TC 4?

 Thanks
   JD



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Using IP Addresses

2002-02-15 Thread Denny Chambers

Hi All,

Need some quick help here. I have Apache 1.3.20, Tomcat 4.0.1 and
mod_webapp setup to work together. Tomcat only has the WARP connector
configured, no HTTP connector or AJP connector. Everything works fine as
long as I use the hostname that has been defined by the ServerName
directive in the httpd.conf of apache and the hostname is in my
/etc/hosts of my client machine or dns. If the host name is not
configured in etc/hosts or dns, and I use the IP Address to access my
server, the problems begin. I can access apache fine. I can also access
my web application fine, as long as I give the full url to the *.html or
*.jsp. If I use http://192.168.0.1/mywebapp/ the server starts to
process the request fine, and even prompts me for a login (Apache has
Basic Authenication configured for this.). However, when tomcat
redirects from the http://192.168.0.1/mywebapp/ to the actual .html file
(defined in my web.xml) it rewrites the url as
http://myservername/mywebapp/index.html. The myservername is not setup
to be resolved, so the server never gets found. Is there any way that I
can tell tomcat use the what is passed in as the server name, and not
rewrite it as a hostname? I need this server to be able to work in both
dns, and non dns environments.

Thanks in advance,
-- 
Denny Chambers

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problems with Manager reload, memory usage and garbage collection.

2002-02-15 Thread Cox, Charlie

you're not holding a reference to the class in a session are you? Sessions
aren't released until they timeout.

yes, it is a new classloader each time. that's how reload works since you
cannot unload a class in java without destroying the classloader.

Charlie

 -Original Message-
 From: Thomas Ehlen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 9:11 AM
 To: Tomcat Users List
 Subject: Problems with Manager reload, memory usage and garbage
 collection.
 
 
 Each time I reload my application with the Manager servlet 
 the memory usage
 increase.
 
 Spec: I have Tomcat 4.0.2 and JDK 1.3.1_02 running on a 
 Windows2k machine.
 
 I have located my problem using JProbe with Tomcat 4.0.2. 
 Looking at the
 instance summary before and after a reload I see that there 
 is one class
 that isn't GC'd. So after 10 reloads I have 10 instances of 
 this class. The
 class is a singelton and lookes something like this:
 
 public class MySingelton
 {
 private static MySingelton singelton;
 
 private Hashtable resources;
 
 private MySingelton()
 {
 // Create a Hashtable with some resources here
 }
 
 public static Object getResource( String name )
 {
  return resources.get( name );
 }
 
 public static synchronized void configure()
 {
 singelton= new MySingelton();
 }
 }
 
 This Singelton are only called in the init method of my servlet; e.g.
 
 public void init( ServletConfig config )
 throws ServletException
 {
 MySingelton.configure();
 }
 
 
 I guess that Tomcat sets up a new ClassLoader each time an 
 application is
 reloaded. So why can't MySingelton be garabage collected? 
 Somewhere there
 must still be a reference to it and it isn't in my code for sure.
 
 Please anyone got a suggestion how to solve my problem?
 
 Thanks!
 Thomas Åhlén
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




4.0.2 connectors

2002-02-15 Thread Dan Zehme

Can anyone tell my why there are no binaries corresponding to the sources 
jakarta-tomcat-connectors-4.0.2-01-src.zip for Solaris, Linux, and Win32 (I need all 
three)?

Dan Zehme
[EMAIL PROTECTED]




java.io.IOException: No such file or directory

2002-02-15 Thread Frederic Monclar

Hello,

Does someone have any idea about this exception when starting
Tomcatv4.02 ?

= tldConfigJar(/WEB-INF/lib/oracledr.jar): 
java.io.IOException: No such file or directory

Thanks in advance,
Fred.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: 4.0.2 connectors

2002-02-15 Thread Jean-Luc BEAUDET

Dan Zehme a écrit :

 Can anyone tell my why there are no binaries corresponding to the sources 
jakarta-tomcat-connectors-4.0.2-01-src.zip for Solaris, Linux, and Win32 (I need all 
three)?

 Dan Zehme
 [EMAIL PROTECTED]

Yu should build it by yur own with

 The source I downloaded was a bit more complete package that came from the
following url:

http://cvs.apache.org/snapshots/jakarta-tomcat-connectors

It included all the connectors even though I was only after mod_webapp.  On
the other hand, it also had apr.  Maybe they stopped packaging apr with the
webapp source to guarantee you get the most recent version.

In your case, you might want to download apr from
http://cvs.apache.org/snapshots/apr and place the uncompressed files in the
apr directory under the webapp source root.

Hope it helps...

--David 

David Smith gently replied to me after a post i made.

Yu know it's REALLY simple to do.

I made it for SOLARIS 8 Apache1.3.22/Tomcat 4.0.2/Warp 1.0.2.

Jean-Luc B :O)




RE: Problems with Manager reload, memory usage and garbage collection.

2002-02-15 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Thomas ?hlen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 4:11 PM
 To: Tomcat Users List
 Subject: Problems with Manager reload, memory usage and garbage
 collection.
 
 
 Each time I reload my application with the Manager servlet the 
 memory usage
 increase.
 
 Spec: I have Tomcat 4.0.2 and JDK 1.3.1_02 running on a Windows2k machine.
 
 I have located my problem using JProbe with Tomcat 4.0.2. Looking at the
 instance summary before and after a reload I see that there is one class
 that isn't GC'd. So after 10 reloads I have 10 instances of this 
 class. The
 class is a singelton and lookes something like this:
 
 public class MySingelton
 {
 private static MySingelton singelton;
 

Above is the reference that don't let your class to be GC'ed.
You should add something like close() to your class

public void close() {
singleton = null;
}
and then call it in your servlet's destroy()


 private Hashtable resources;
 
 private MySingelton()
 {
 // Create a Hashtable with some resources here
 }
 
 public static Object getResource( String name )
 {
  return resources.get( name );
 }
 
 public static synchronized void configure()
 {
 singelton= new MySingelton();
 }
 }
 
 This Singelton are only called in the init method of my servlet; e.g.
 
 public void init( ServletConfig config )
 throws ServletException
 {
 MySingelton.configure();
 }
 
 
 I guess that Tomcat sets up a new ClassLoader each time an application is
 reloaded. So why can't MySingelton be garabage collected? Somewhere there
 must still be a reference to it and it isn't in my code for sure.
 
 Please anyone got a suggestion how to solve my problem?
 

Hope it helps.

 Thanks!
 Thomas ?hl?n
 
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Datasources context ?

2002-02-15 Thread Jacquet, Frederic
Title: Datasources context ?





I have got this error
 Name java:comp is not bound in this Context 


When I try the following code :
 try {
 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 DataSource ds = (DataSource) envCtx.lookup(jdbc/TestDb);
 Connection conn = ds.getConnection();


 Statement st = conn.createStatement();
 ResultSet rs = st.executeQuery(SELECT prenom,nom FROM annuaire;);
 while (rs.next()) {
 out.println(p + rs.getString(prenom));
 out.println(nbsp; + rs.getString(nom));
 }


 conn.close();
 } catch (Exception e) {
 out.print(e.getMessage());
 }
And the declarations 
server.xml
  Resource name=jdbc/TestDb auth=CONTAINER
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDb
 parameternameuser/namevalueuser/value/parameter
 parameternamepassword/namevaluepasswd/value/parameter
 parameternamedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value/parameter
 parameternamedriverName/name
 valuejdbc:mysql://localhost/test/value/parameter
 /ResourceParams
web.xml
resource-ref
 descriptionTest database./description
 res-ref-namejdbc/TestDb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authCONTAINER/res-auth
/resource-ref



What is wrong ???


Regards / Cordialement


Frederic Jacquet




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Tomcat 4.0.2 and AJP13 problem with JDK 1.2.2 (again)

2002-02-15 Thread Adrian Prezioso

I'm having problems with TC4.0.2 and the AJP13
connector from IIS 5.0 using JDK1.2.2.  I continuously
get the following error when I make a request: 

java.lang.NoSuchMethodError: java.net.Socket: method
setKeepAlive(Z)V not found
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

It seems like a problem with my JDK, since AJP13 is
trying to call java.net.Socket.setKeepAlive() and
JDK1.2.2 does not have this method.  Upgrading to
JDK1.3.1 fixes things, but my application requires
1.2.2. 

According to the docs, this is a supported
configuration on Win2000.  I've reinstalled 3 times
and each time got this error. Has anyone else with
this configuration had a similar problem?  

any help would be appreciated.
Adrian

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: 4.0.2 connectors

2002-02-15 Thread Dan Zehme

Thanks for the pointer.  The package seemed somewhat incomplete.

- Original Message -
From: Jean-Luc BEAUDET [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 15, 2002 10:55 AM
Subject: Re: 4.0.2 connectors


 Dan Zehme a écrit :

  Can anyone tell my why there are no binaries corresponding to the
sources jakarta-tomcat-connectors-4.0.2-01-src.zip for Solaris, Linux, and
Win32 (I need all three)?
 
  Dan Zehme
  [EMAIL PROTECTED]

 Yu should build it by yur own with

  The source I downloaded was a bit more complete package that came from
the
 following url:

 http://cvs.apache.org/snapshots/jakarta-tomcat-connectors

 It included all the connectors even though I was only after mod_webapp.
On
 the other hand, it also had apr.  Maybe they stopped packaging apr with
the
 webapp source to guarantee you get the most recent version.

 In your case, you might want to download apr from
 http://cvs.apache.org/snapshots/apr and place the uncompressed files in
the
 apr directory under the webapp source root.

 Hope it helps...

 --David 

 David Smith gently replied to me after a post i made.

 Yu know it's REALLY simple to do.

 I made it for SOLARIS 8 Apache1.3.22/Tomcat 4.0.2/Warp 1.0.2.

 Jean-Luc B :O)




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Cannot find server or DNS Error on post

2002-02-15 Thread Dan Zehme

Since using Tomcat 4.0.x with AJP 13 connector, frequently my users are getting a 
Cannot find server or DNS Error when pressing one of my submit buttons that is 
POSTing a form.  It most frequently happens on a form uploading a file.  Has anybody 
else seen this error and has anybody found a solution?  I did not see this with Tomcat 
3.2, and I was having different problems with Tomcat 3.3.

Dan




Re: Datasources context ?

2002-02-15 Thread Frederic Monclar

May be you have defined at a wrong place your resource in your
server.xml file.
Fred.


 Jacquet, Frederic wrote:
 
 I have got this error
 Name java:comp is not bound in this Context
 
 When I try the following code :
  try {
 Context initCtx = new InitialContext();
 Context envCtx = (Context)
 initCtx.lookup(java:comp/env);
 DataSource ds = (DataSource) envCtx.lookup(jdbc/TestDb);
 
 Connection conn = ds.getConnection();
 
 Statement st = conn.createStatement();
 ResultSet rs = st.executeQuery(SELECT prenom,nom FROM
 annuaire;);
 while (rs.next()) {
 out.println(p + rs.getString(prenom));
 out.println(nbsp; + rs.getString(nom));
 }
 
 conn.close();
 } catch (Exception e) {
 out.print(e.getMessage());
 }
 And the declarations
 server.xml
 Resource name=jdbc/TestDb auth=CONTAINER
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/TestDb
 
 parameternameuser/namevalueuser/value/parameter
 
 parameternamepassword/namevaluepasswd/value/parameter
 parameternamedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value/parameter
 parameternamedriverName/name
   valuejdbc:mysql://localhost/test/value/parameter
   /ResourceParams
 web.xml
 resource-ref
 descriptionTest database./description
 res-ref-namejdbc/TestDb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authCONTAINER/res-auth
 /resource-ref
 
 What is wrong ???
 
 Regards / Cordialement
 
 Frederic Jacquet
 
 ---
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Datasources context ?

2002-02-15 Thread Jacquet, Frederic
Title: RE: Datasources context ?






I put in in my application context :
Context path=/test docBase=test debug=200
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_feedback. suffix=.log
   timestamp=true/
  Environment name=maxExemptions type=java.lang.Integer
 value=16/
 Parameter name=context.param.name value=context.param.value
 override=false/
 Resource name=jdbc/TestDb auth=CONTAINER
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDb
 parameternameuser/namevaluefred/value/parameter
 parameternamepassword/namevaluefred/value/parameter
 parameternamedriverClassName/name
 valueorg.gjt.mm.mysql.MysqlDataSource/value/parameter
 parameternamedriverName/name
 valuejdbc:mysql://localhost:3306/test/value/parameter
 /ResourceParams
 
 !-- JNDI Resource for sending email using SMTP --
  Resource name=mail/send auth=CONTAINER
  type=javax.mail.internet.MimePartDataSource/
  ResourceParams name=mail/send
  parameternamefactory/name
  valueorg.apache.naming.factory.SendMailFactory/value
  /parameter
  parameternamemail.smtp.host/name
  valuevers-mail.vers.eu.fciconnect.com/value
  /parameter
  parameternamemail.smtp.user/name
  valuefjacquet/value
  /parameter
  parameternamemail.from/name
  value[EMAIL PROTECTED]/value
  /parameter
  /ResourceParams


/Context


-Original Message-
From: Frederic Monclar [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 5:17 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Datasources context ?



May be you have defined at a wrong place your resource in your
server.xml file.
Fred.



 Jacquet, Frederic wrote:
 
 I have got this error
 Name java:comp is not bound in this Context
 
 When I try the following code :
 try {
 Context initCtx = new InitialContext();
 Context envCtx = (Context)
 initCtx.lookup(java:comp/env);
 DataSource ds = (DataSource) envCtx.lookup(jdbc/TestDb);
 
 Connection conn = ds.getConnection();
 
 Statement st = conn.createStatement();
 ResultSet rs = st.executeQuery(SELECT prenom,nom FROM
 annuaire;);
 while (rs.next()) {
 out.println(p + rs.getString(prenom));
 out.println(nbsp; + rs.getString(nom));
 }
 
 conn.close();
 } catch (Exception e) {
 out.print(e.getMessage());
 }
 And the declarations
 server.xml
 Resource name=jdbc/TestDb auth=CONTAINER
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDb
 
 parameternameuser/namevalueuser/value/parameter
 
 parameternamepassword/namevaluepasswd/value/parameter
 parameternamedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value/parameter
 parameternamedriverName/name
 valuejdbc:mysql://localhost/test/value/parameter
 /ResourceParams
 web.xml
 resource-ref
 descriptionTest database./description
 res-ref-namejdbc/TestDb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authCONTAINER/res-auth
 /resource-ref
 
 What is wrong ???
 
 Regards / Cordialement
 
 Frederic Jacquet
 
 ---
 --
 To unsubscribe: mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Determining User Connection Speed

2002-02-15 Thread Jim Urban

Is there a way to determine the speed a user is connected to the internet at
from within a servlet?

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Windows 2000 Service Startup Question

2002-02-15 Thread Jack Frosch

Rich,

You can try this: Open the services window from Control Panel.  Right
click on the Tomcat service and select Properties.  There's a field at
the bottom of the dialog for Start Parameters.  I haven't used it for
Tomcat, but it seems like a natural fit.

Jack

-Original Message-
From: Rich Hansen - Yahoo [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 01, 2002 2:56 PM
To: [EMAIL PROTECTED]
Subject: Windows 2000 Service Startup Question


I startup tomcat through the Windows 2000 startup services.  I need to
startup tomcat with the following parm: -DVERITY_K2_HOSTPORT=xx.xx.xx.xx


Can set this through the server.xml file?  I've added it to the
catalina.bat, however it seems this file is only called when I start
tomcat through the startup.bat command.

Thanks!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Determining User Connection Speed

2002-02-15 Thread Christopher K. St. John

Jim Urban wrote:
 
 Is there a way to determine the speed a user is connected to the
 internet at from within a servlet?
 

 No.

 If you explain more about why you want to know, maybe
someone could suggest something that would solve your
problem without requiring the user's connection speed.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problems with Manager reload, memory usage and garbage collection.

2002-02-15 Thread Thomas Åhlen

  Each time I reload my application with the Manager servlet the
  memory usage
  increase.
 
  Spec: I have Tomcat 4.0.2 and JDK 1.3.1_02 running on a Windows2k
machine.
 
  I have located my problem using JProbe with Tomcat 4.0.2. Looking at the
  instance summary before and after a reload I see that there is one class
  that isn't GC'd. So after 10 reloads I have 10 instances of this
  class. The
  class is a singelton and lookes something like this:
 
  public class MySingelton
  {
  private static MySingelton singelton;
 

 Above is the reference that don't let your class to be GC'ed.
 You should add something like close() to your class

 public void close() {
 singleton = null;
 }
 and then call it in your servlet's destroy()



So simple!! Many thanks :).
Have never had to reload applications with singelton objects before.

Thomas




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: 4.0.2 connectors

2002-02-15 Thread Jean-Luc BEAUDET

Dan Zehme a écrit :

 Thanks for the pointer.  The package seemed somewhat incomplete.

 - Original Message -
 From: Jean-Luc BEAUDET [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 15, 2002 10:55 AM
 Subject: Re: 4.0.2 connectors

  Dan Zehme a écrit :
 
   Can anyone tell my why there are no binaries corresponding to the
 sources jakarta-tomcat-connectors-4.0.2-01-src.zip for Solaris, Linux, and
 Win32 (I need all three)?
  
   Dan Zehme
   [EMAIL PROTECTED]
 
  Yu should build it by yur own with
 
   The source I downloaded was a bit more complete package that came from
 the
  following url:
 
  http://cvs.apache.org/snapshots/jakarta-tomcat-connectors
 
  It included all the connectors even though I was only after mod_webapp.
 On
  the other hand, it also had apr.  Maybe they stopped packaging apr with
 the
  webapp source to guarantee you get the most recent version.
 
  In your case, you might want to download apr from
  http://cvs.apache.org/snapshots/apr and place the uncompressed files in
 the
  apr directory under the webapp source root.
 
  Hope it helps...
 
  --David 
 
  David Smith gently replied to me after a post i made.
 
  Yu know it's REALLY simple to do.
 
  I made it for SOLARIS 8 Apache1.3.22/Tomcat 4.0.2/Warp 1.0.2.
 
  Jean-Luc B :O)
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

Not at all, yu just missed the apr package.

I had the same pb; the last packager used to put the apr package with, but
since the new one and as the apr is totally another dev project, the apr is
no more packaged with..

Jean-Luc B :O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat - OMVS/S390 - Urgent

2002-02-15 Thread Brown Bay


 Has anyone got Tomcat (any version) running under OMVS on S390.

If you have a Linux VM on your S390 it will be easy since we package
Tomcat 3.3/4.0.2 as RPM ;)

BTW, Tomcat is a java apps which could be used on any system with
a JDK 1.1.x (TC 3.3) or JDK 1.2 (TC 4.0.2). I used them on our
IBM iSeries in OS/400 mode without any problems for months.


Henri,

Have you had success in making Apache and Tomcat work together under OMVS.
So, did you have success in compiling the mod_jk module under OMVS. Can you
mention the versions of Tomcat, Apache and the mod_jk that you used during
the process, it will be a lot of help.

Thanks.

Brown.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TomCat and WinGate

2002-02-15 Thread dark.wizzard

Hi again !

 Anyone knows if have any problems used Tomcat and
WinGate in Windows NT ???

Thanks !


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Determining User Connection Speed

2002-02-15 Thread Jim Urban

Our clients run our application on both the internet and intranet.  The
users who use the application on the intranet are usually on a 100MB (LAN)
network directly attached to the application server.  For these users the
application really hums.  For those on the internet, using 33kb or 58kb
dialup connections, the application is very slow downloading data.  We have
experimented with sending back the data compressed with mixed results.  That
is, the dialup users see a significant drop in download time while the
intranet (100MB LAN) users actually see a slow down in performance do to the
additional time needed to compress and uncompress the data.

If we could tell when a user is on a dialup (slow) connection we could
compress the data and not compressing it for those on a LAN connection.

Jim

 -Original Message-
 From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 11:39 AM
 To: Tomcat Users List
 Subject: Re: Determining User Connection Speed


 Jim Urban wrote:
 
  Is there a way to determine the speed a user is connected to the
  internet at from within a servlet?
 

  No.

  If you explain more about why you want to know, maybe
 someone could suggest something that would solve your
 problem without requiring the user's connection speed.


 --
 Christopher St. John [EMAIL PROTECTED]
 DistribuTopia http://www.distributopia.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Determining User Connection Speed

2002-02-15 Thread Jacquet, Frederic
Title: RE: Determining User Connection Speed





Check on IP : lan and dialup should be different !


-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 6:03 PM
To: Tomcat Users List
Subject: RE: Determining User Connection Speed



Our clients run our application on both the internet and intranet. The
users who use the application on the intranet are usually on a 100MB (LAN)
network directly attached to the application server. For these users the
application really hums. For those on the internet, using 33kb or 58kb
dialup connections, the application is very slow downloading data. We have
experimented with sending back the data compressed with mixed results. That
is, the dialup users see a significant drop in download time while the
intranet (100MB LAN) users actually see a slow down in performance do to the
additional time needed to compress and uncompress the data.


If we could tell when a user is on a dialup (slow) connection we could
compress the data and not compressing it for those on a LAN connection.


Jim


 -Original Message-
 From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 11:39 AM
 To: Tomcat Users List
 Subject: Re: Determining User Connection Speed


 Jim Urban wrote:
 
  Is there a way to determine the speed a user is connected to the
  internet at from within a servlet?
 

 No.

 If you explain more about why you want to know, maybe
 someone could suggest something that would solve your
 problem without requiring the user's connection speed.


 --
 Christopher St. John [EMAIL PROTECTED]
 DistribuTopia http://www.distributopia.com

 --
 To unsubscribe: mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Apache 1.3.23 + Tomcat 4.01 + Warp

2002-02-15 Thread Jack Frosch

After having problems with other apps that appeared IP related, I
removed TCP/IP and reinstalled it.  This corrected all the weird
inter-app problems.  I guess my system just blew its stack!

-Original Message-
From: Jack Frosch [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 01, 2002 7:24 PM
To: Tomcat-User
Subject: Apache 1.3.23 + Tomcat 4.01 + Warp


I'm trying to get Apache 1.3.23 to work with Tomcat 4.01. On my
development machine, I've installed both Tomcat and Apache to test the
configurations.

The installs and initial configurations seemed to go okay at first
because both Tomcat and Apache work well separately. (I did add the
LoadModule directive like: LoadModule webapp_module
modules/mod_webapp.so) However, when I couldn't get a connection to
Tomcat, I noticed Apache logs the following error on startup:

[Fri Feb 01 14:12:36 2002] [error] Connection warpConnection cannot
connect [Fri Feb 01 14:12:36 2002] [error] Cannot open connection
warpConnection

What causes this connection to fail? Is there a way to test it outside
of Apache to isolate whether it's an issue with my Tomcat or my Apache
configuration?

Thanks.

Jack Frosch

For more info:

The warpConnection is defined in a Virtual Host which is defined as
follows:

NameVirtualHost 127.0.0.1

# www.testdomain1.com is mapped in my HOSTS file to 127.0.0.1; i.e.
localhost VirtualHost 127.0.0.1  ServerName www.testdomain1.com
ServerAdmin [EMAIL PROTECTED]  DocumentRoot
E:/Apache/com/testdomain1/www  ErrorLog logs/testdomain1.com-error_log
CustomLog logs/testdomain1.com-access_log common

 WebAppConnection warpConnection warp 127.0.0.1:8008  WebAppDeploy
examples warpConnection /examples

 WebAppInfo /webapp-info
/VirtualHost

My Tomcat server.xml file defines the Apache-Connector service as:
 !-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
  Connector
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true acceptCount=10 debug=0/
  Engine
  className=org.apache.catalina.connector.warp.WarpEngine
  name=www.testdomain1.com debug=0 appBase=webapps
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_warp_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Determining User Connection Speed

2002-02-15 Thread Ricky Leung

To determine one's net speed, I guess you can write up something to send out
a 100k file and calculate how long it took the user to download the file,
but that still slows down LAN users.  The more elegant way is to separate by
the domain or IP group since LAN users have predictable net configurations
while everyone else you set to compress.

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 12:03 PM
To: Tomcat Users List
Subject: RE: Determining User Connection Speed


Our clients run our application on both the internet and intranet.  The
users who use the application on the intranet are usually on a 100MB (LAN)
network directly attached to the application server.  For these users the
application really hums.  For those on the internet, using 33kb or 58kb
dialup connections, the application is very slow downloading data.  We have
experimented with sending back the data compressed with mixed results.  That
is, the dialup users see a significant drop in download time while the
intranet (100MB LAN) users actually see a slow down in performance do to the
additional time needed to compress and uncompress the data.

If we could tell when a user is on a dialup (slow) connection we could
compress the data and not compressing it for those on a LAN connection.

Jim

 -Original Message-
 From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 11:39 AM
 To: Tomcat Users List
 Subject: Re: Determining User Connection Speed


 Jim Urban wrote:
 
  Is there a way to determine the speed a user is connected to the
  internet at from within a servlet?
 

  No.

  If you explain more about why you want to know, maybe
 someone could suggest something that would solve your
 problem without requiring the user's connection speed.


 --
 Christopher St. John [EMAIL PROTECTED]
 DistribuTopia http://www.distributopia.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Determining User Connection Speed

2002-02-15 Thread Christopher K. St. John

Jim Urban wrote:
 
 Our clients run our application on both the internet and intranet. 
 
 If we could tell when a user is on a dialup (slow) connection we could
 compress the data and not compressing it for those on a LAN connection.
 

 If it's an intranet then (as mentioned in other posts) the
dialups probably have predictable IP's. You'd have to maintain
a table of which IP ranges were know to be dialups, though.

 Measuring the connection speed is difficult, because a
momentary slowdown in the local LAN could make it appear
that a LAN connection was a dialup connection. Also, what
do you time? With buffering, your servlet is never really
sure if it's written the data to a client or just to the
buffers.

 Random ideas: Maybe a little piece of (shudder) Javascript
on the client side that measures how long it takes to
download the first page, then sends that back to the server?
Maybe a checkbox on the login? Just ask them? 



-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Did the default HTTP expires header change in Tomcat?

2002-02-15 Thread Jonathan Eric Miller

Thanks. Is there a way that I can override this behavior and revert back to
the old behavior? I'm guessing that you're using a HTTP header to do this?
I'm guessing that I can use HttpServletResponse.setHeader() to override it?
Is it the expires header, or something else? What value is it setting now,
and what was the original value?

Jon

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Jonathan Eric
Miller [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 6:26 PM
Subject: Re: Did the default HTTP expires header change in Tomcat?


  Yeah, I just tried my application in 4.0.1 and it doesn't expire.
 Something
  seems to have changed in 4.0.2.

 Yes, the content which is protected through a security constraint is
marked
 as non cacheable (which fixes a security problem where a proxy would cache
 the pages).

 Remy



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Datasources context ?

2002-02-15 Thread Remy Maucherat

 I have got this error
 Name java:comp is not bound in this Context

 When I try the following code :
  try {
 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 DataSource ds = (DataSource) envCtx.lookup(jdbc/TestDb);
 Connection conn = ds.getConnection();

 Statement st = conn.createStatement();
 ResultSet rs = st.executeQuery(SELECT prenom,nom FROM
 annuaire;);
 while (rs.next()) {
 out.println(p + rs.getString(prenom));
 out.println(nbsp; + rs.getString(nom));
 }

 conn.close();
 } catch (Exception e) {
 out.print(e.getMessage());
 }

Well, the big questions are:
- where is that code fragment located ?
- are you modifying the context classloader ?

To end up with the right JNDI context, Catalina uses context classloader
associations. So if you get the error you're getting, it means that the CL
association is not the one it should be. There were a few bugs caused
because in some places, it wasn't set properly (for example, you can look at
bug 5330).

Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC + JDK1.4

2002-02-15 Thread Remy Maucherat

 does TC support JDK1.4 ?

Yes, but don't use the beta 3 (see release notes).
The RC or the final seem to work fine.

I do recommend using JDK 1.4 under Linux, as it doesn't need the workaround
to avoid a crash on startup.

Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache / Tomcat Content Handling

2002-02-15 Thread Jack Frosch

Now that I have Tomcat 4.0x and Apache 1.3.23 playing nice together
using the Warp connector, I'm wondering about how to deploy the content.

For Tomcat to handle the dynamic stuff, it seems that I have to deploy
all the JSP/Servlet files into Tomcat's webapps directory (unless I
specify otherwise).  Apache will continue serving static content placed
into the DocumentRoot directory.

Is this correct?  Is there no way to simply tell Apache to server JSPs
to Tomcat, rather than pass requests for JSPs to Tomcat?

What I'd like to do is deploy the JSPs with the html files on the Apache
machine.  When a JSP file requested, Apache would pass it to the
registered Tomcat web app for compilation and execution, and Tomcat
would pass the response back to Apache.

I'd think this could be done with Apache's AddType, AddHandler and
Action directives to cause .jsp files to be automatically passed to
Tomcat.  It would work something like this:

#register jsp type
AddType text/html .jsp

# register handler for type
AddHandler tomcat .jsp

# specify WebAppConnection as path for handler
Action tomcat WebAppConnection  

This way, all the web content (including JSP) would reside on the Apache
machine, all the Java stuff would be on the Tomcat machine, and there
would be a better separation between the two.

Jack


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem loading images when servlet mapping used

2002-02-15 Thread Donie Kelly

Hi all

I have a mapping in web.xml that looks like 

  servlet-mapping
servlet-namemmsProxy/servlet-name
url-pattern//url-pattern
  /servlet-mapping

This is so that I can use a URL like http://host/mms/36123123

The servlet it's mapped to can then get the ID from the path. Simple and
working fine :)

My problem is that I have a JSP pages in the context also which have images.
The url for the image would be http://host/mms/images/logo.gif

Problem here is that the URL is not mapped and the default mapping from
above is forcing the request into my servlet. How can I set up a mapping
without removing the one above which directs all picture requests to
/mms/images and retrieves the right image



Thanks for the help
Donie


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Server.xml for tomcat3.2.3

2002-02-15 Thread Gaurav Arya

I need to disable cookies on the server side for which i use the following
configuaration in server.xml for tomcat 3.3
SessionId cookiesFirst=false noCookies=true /
This doesn't work for tomcat 3.2.3. I tried searching the documentation for
this particular release but it doesn't talk about this issue anywhere? Has
anyone tried this on Tomcat3.2.3, Any inputs regarding this would be
appreciated

Regards,
Gaurav



RE: Apache / Tomcat Content Handling

2002-02-15 Thread Jarecsni Janos

Hi,

I use mod_jk with Apache 1.3.23 and Tomcat 4.0.2b.

I deploy everything on Tomcat, and configure DocumentRoot to point to
Tomcat's appropriate directory, say $TOMCAT_HOME/webapps/myapp.

It works w/ problems.

I don't think that the AddType, AddHandler stuff is for you. That's why
mod_jk and mod_webapp were invented. (with mod_jk you use eg. JkMount
/*.jsp ajp13 in apache httpd.conf to tell apache to let tomcat process JSPs
using the AJP v 1.3 connector).

Cheers,
Janos.



|-Original Message-
|From: Jack Frosch [mailto:[EMAIL PROTECTED]]
|Sent: Friday, February 15, 2002 7:29 PM
|To: Tomcat-User
|Subject: Apache / Tomcat Content Handling
|
|
|Now that I have Tomcat 4.0x and Apache 1.3.23 playing nice together
|using the Warp connector, I'm wondering about how to deploy the content.
|
|For Tomcat to handle the dynamic stuff, it seems that I have to deploy
|all the JSP/Servlet files into Tomcat's webapps directory (unless I
|specify otherwise).  Apache will continue serving static content placed
|into the DocumentRoot directory.
|
|Is this correct?  Is there no way to simply tell Apache to server JSPs
|to Tomcat, rather than pass requests for JSPs to Tomcat?
|
|What I'd like to do is deploy the JSPs with the html files on the Apache
|machine.  When a JSP file requested, Apache would pass it to the
|registered Tomcat web app for compilation and execution, and Tomcat
|would pass the response back to Apache.
|
|I'd think this could be done with Apache's AddType, AddHandler and
|Action directives to cause .jsp files to be automatically passed to
|Tomcat.  It would work something like this:
|
|#register jsp type
|AddType text/html .jsp
|
|# register handler for type
|AddHandler tomcat .jsp
|
|# specify WebAppConnection as path for handler
|Action tomcat WebAppConnection
|
|This way, all the web content (including JSP) would reside on the Apache
|machine, all the Java stuff would be on the Tomcat machine, and there
|would be a better separation between the two.
|
|Jack
|
|
|--
|To unsubscribe:   mailto:[EMAIL PROTECTED]
|For additional commands: mailto:[EMAIL PROTECTED]
|Troubles with the list: mailto:[EMAIL PROTECTED]
|
|


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Is this possible with TOMCAT- host:8080 AND host:8585

2002-02-15 Thread Luis Pinho

Hi There,

Is it possible to run TOMCAT at different ports, at the same time?

Like:

host:8080

and 

host:1234


If yes, how is this done, and where do I put the HTML files (in the disk...)

Can I have two or more copies of TOMCAT in the PC running at the same time,
running at different port's and installed at different locations of the HD?


Thanks

Pinho

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Using JNDIRealm with password digesting and Netscape Directory Structure

2002-02-15 Thread jay n gaba


Hi 
Has anyone solved the following problem regarding the digest password

please give me some hint;

thanks

regards
jay

Hi,

 I'm trying to use tomcat's JNDIRealm with OpenLDAP. I've
converted my
 passwords to digest format in the LDAP directory instead of
plain text.

 Apparently, tomcat only excepts only hex formatted password
where openLDAP
 provides passwords of the format
 {crypt}X where crypt = { SHA, MD, ... } and XXX is a base64
encoded
 integer.

 Is there a way to configure tomcat to accept this format of
passwords? If
 so does this require any recompilation of
 tomcat?


Supporting passwords in this format (with the leading {foo} prefix)
is
high on my TODO list of enhancements for JNDIRealm -- along with
other
improvements -- but it hasn't been done yet.

 Thanks for your help,
 --  Dirk

 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JAXP -- File had a virus.

2002-02-15 Thread Mihai Gheorghiu

Please check this:
http://www.sophos.com/virusinfo/analyses/exceedinglyinfected.html
I checked my computer with Norton Antivirus using 2/14 definitions and it
found nothing.
Which one is right?

-Original Message-
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Friday, February 15, 2002 10:19 AM
Subject: Re: JAXP -- File had a virus.


Please note that the file you sent me was packed with a virus.

At 10:04 AM 2/15/02 -0500, you wrote:
The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:

The Anti Virus software Antigen found jaxp.jar infected with
ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
from the message sent to  with the subject Re: JAXP  if it could not be
cleaned.

Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
envoyé à  avec l' objet Re: JAXP  s'il n' a pu être nettoyé.

I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
wonderful piece of software.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Deploying external dependencies

2002-02-15 Thread Abhijit Dixit

Hi,

I'm trying to deploy a servlet using the sample build.xml file bundled with 
the Apache Tomcat distribution. My servlet needs some external JAR files 
and these have to be copied to the WEB-INF/lib directory. I added the 
following entries to my build.xml file ...

property name=soap.jar
value=/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar/
property name=xercesImpl.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar/
property name=xmlParserAPIs.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAPIs.jar/

but when I do a deploy with Ant, although all the other files are deployed 
properly, these JAR files are not copied to the lib directory. Anything 
wrong with the above syntax ?

-Abhijit


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC Deploying external dependencies

2002-02-15 Thread Kirby Vandivort

You also need to add directives to the deploy target to actually copy
the files over.. Something like:

copy todir=${deploy.home}/WEB-INF/lib file=${soap.jar}/ 
copy todir=${deploy.home}/WEB-INF/lib file=${xercesImpl.jar}/ 
copy todir=${deploy.home}/WEB-INF/lib file=${xmlParserAPIs.jar}/ 

I'm assuming there aren't any licensing issues with redistribution of
these..  (I've no idea.. Just thought I would toss this out)

On Fri, Feb 15, 2002 at 11:06:27AM -0800, Abhijit Dixit wrote:
 Hi,
 
 I'm trying to deploy a servlet using the sample build.xml file bundled with 
 the Apache Tomcat distribution. My servlet needs some external JAR files 
 and these have to be copied to the WEB-INF/lib directory. I added the 
 following entries to my build.xml file ...
 
 property name=soap.jar
value=/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar/
 property name=xercesImpl.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar/
 property name=xmlParserAPIs.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAPIs.jar/
 
 but when I do a deploy with Ant, although all the other files are deployed 
 properly, these JAR files are not copied to the lib directory. Anything 
 wrong with the above syntax ?
 
 -Abhijit
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Making Tomcat listen on a specific IP.

2002-02-15 Thread Bob Dushok

I'm running Tomcat 4.0.2 on a Red Hat box with seven IP addresses.  I've 
been trying to configure Tomcat to listen to only one of these seven IPs 
but haven't had any success.  I'm looking for something similar to the 
Apache listen directive.

Any suggestions would be appreciated.

Tia,
Bob


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Server.xml for tomcat3.2.3

2002-02-15 Thread Larry Isaacs

The noCookies attribute is found on SessionInterceptor in Tomcat 3.2.x.
This is documented in the server.xml.

Cheers,
Larry

 -Original Message-
 From: Gaurav Arya [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 1:47 PM
 To: Tomcat-User (E-mail)
 Subject: Server.xml for tomcat3.2.3
 
 
 I need to disable cookies on the server side for which i use 
 the following
 configuaration in server.xml for tomcat 3.3
 SessionId cookiesFirst=false noCookies=true /
 This doesn't work for tomcat 3.2.3. I tried searching the 
 documentation for
 this particular release but it doesn't talk about this issue 
 anywhere? Has
 anyone tried this on Tomcat3.2.3, Any inputs regarding this would be
 appreciated
 
 Regards,
 Gaurav
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Making Tomcat listen on a specific IP.

2002-02-15 Thread Reynir Hübner

have you tried to set up a host in server.xml ?

if the hostname is something like 127.0.0.1 I think it only listens to
that IP.

hope it helps
-reynir


 -Original Message-
 From: Bob Dushok [mailto:[EMAIL PROTECTED]]
 Sent: 15. febrúar 2002 19:18
 To: [EMAIL PROTECTED]
 Subject: Making Tomcat listen on a specific IP.
 
 
 I'm running Tomcat 4.0.2 on a Red Hat box with seven IP 
 addresses.  I've 
 been trying to configure Tomcat to listen to only one of 
 these seven IPs 
 but haven't had any success.  I'm looking for something 
 similar to the 
 Apache listen directive.
 
 Any suggestions would be appreciated.
 
 Tia,
 Bob
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Making Tomcat listen on a specific IP.

2002-02-15 Thread Christopher K. St. John

Bob Dushok wrote:
 
 I'm running Tomcat 4.0.2 on a Red Hat box with seven IP addresses.  I've
 been trying to configure Tomcat to listen to only one of these seven IPs
 but haven't had any success. 


 You're running in standalone mode with the HTTP/1.1
connector? Have you looked at:
 
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

 specifically the address attribute?

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: System.out.println

2002-02-15 Thread August Detlefsen

System.out statements also get written to: 

/path/to/tomcat/logs/catalina.out





--- krithikav [EMAIL PROTECTED] wrote:
 Thanks, I am seeing the output now.
 
 Regards,
 Krithika
 
 -Original Message-
 From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 12:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: System.out.println
 
 
 You can see it in the console or window where your tomcat is running.
 
 ***
 Pedro Gaspar
 PT Prime
 DMK / GSV
 Tel:  +351 21 500 41 43
 Fax: +351 21 500 45 85
 Email: [EMAIL PROTECTED]
 ***
 
  [EMAIL PROTECTED] 02/15/02 07:04 
 Hi,
 Where do I see the output from System.out.println given in a java
 class
 placed under WEB-INF\classes? I am new to Tomcat and developing a
 sample
 application.
 
 Regards,
 Krithika
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Setting up Apache1.3 with Tomcat 4.1

2002-02-15 Thread nathan phillips

Documentation in server.xml states that I need the MOD_WEBAPP connecter to 
connect the two together and to read the README.txt file that comes with it. 
  I've been looking around but I'm unable to find the WebApp Module 
distribution.  Does anyone have the URL for this?  Does anyone know of any 
other documentation on configuring both of these to work together other than 
what's in server.xml?  I appreciate any help.  Thanks.



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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Making Tomcat listen on a specific IP.

2002-02-15 Thread Bob Dushok

Thanks, that was the attribute I needed.

Bob

Christopher K. St. John wrote:

Bob Dushok wrote:

I'm running Tomcat 4.0.2 on a Red Hat box with seven IP addresses.  I've
been trying to configure Tomcat to listen to only one of these seven IPs
but haven't had any success. 


 You're running in standalone mode with the HTTP/1.1
connector? Have you looked at:
 
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

 specifically the address attribute?





Re: Setting up Apache1.3 with Tomcat 4.1

2002-02-15 Thread Arnaldo Riquelme




 Documentation in server.xml states that I need the MOD_WEBAPP connecter to
 connect the two together and to read the README.txt file that comes with
it.
   I've been looking around but I'm unable to find the WebApp Module
 distribution.  Does anyone have the URL for this?  Does anyone know of any
 other documentation on configuring both of these to work together other
than
 what's in server.xml?  I appreciate any help.  Thanks.



Download the  webapp-connector from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/
Read the docs.
This is how I got it to work:

Once mod_webapp module is compiled copy mod_webapp.so to your Apache modules
directory.
ie:/etc/httpd/modules.
Copy tomcat-webapp.ajr to $CATALINA_HOME/server/lib

Add this lines to your http.conf


LoadModule webapp_modulemodules/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008 ## Change this to your
server name/port
WebAppDeploy   examples   warpConnection/examples/

Restart Tomcat
Restart Apache

You're good to go.

Hope this help.



 Arnaldo Riquelme
Director of System Operations
Dynamic Capital Management
Office:(907)562-6374
e-mail:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




ContextInitialized Event

2002-02-15 Thread Liu, Xiaoyan

Hi, all

I'm wondering what exactly it means by 'servlet context initialized'?

In the contextInitialized() method of my ServletContextListener class, it
calls a static method of from a class in one of jars of the context being
loaded, and I get a ClassNotFound Exception.  Why is this happening?

thanks.


Liu



Apache-Tomcat

2002-02-15 Thread Rajeshwari Ramamurthi

Hi
I am new to Tomcat.
Just installed Tomcat. I want to configure it with Apache?
Where can I get the latest version of web app module? I want binary version
Thanks
Raji

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




not found request problem

2002-02-15 Thread Jeff Self

I dove headfirst into jsp's yesterday. Got Tomcat 3.3 running on my
debian system. Created a couple of directories under webapps and wrote
some example jsp's from a book and after figuring out that I needed to
run the tomcat start script with the -jkconf to get apache to recognize
my directories, the example scripts ran perfectly.

So today, I create another directory and create an html form which uses
a jsp for its form action. I bring the html form up in my browser, type
in the info and hit submit. And I get the following error message:

Original request: /personnel/process.jsp

Not found request: /personnel/process.jsp

I can't figure this out since the jsp is there. I go back to one of my
examples from yesterday and they still work. I can copy the html form
and the process.jsp to one of my directories I created yesterday and it
works. I copy some jsp's I created yesterday to my personnel directory
and I get the Not found request error. I reran the -jkconf several times
and the personnel directory shows up in my mod_jk.conf file. So whats
going on? 

-- 
Jeff Self
Information Technology Analyst
Department of Personnel
City of Newport News
2400 Washington Ave.
Newport News, VA 23607
757-926-6930


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Determining User Connection Speed

2002-02-15 Thread Kevin McBrearty

www.cyscape.com

Jim Urban wrote:

Is there a way to determine the speed a user is connected to the internet at
from within a servlet?

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



-- 
Kevin McBrearty
ATG Automation Technologies Group Ltd.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >