Can authentication to webapps be controlled by Apache HTTPD server rather than tomcat?

2002-08-13 Thread Koes, Derrick

 




RE: Can authentication to webapps be controlled by Apache HTTPD serve r rather than tomcat?

2002-08-13 Thread Koes, Derrick


The auth seems to work through apache with this setting, but tomcat still
gives me the 403 error page.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 9:33 AM
To: Tomcat Users List
Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
serve r rather than tomcat? 


Yes, but you have to add tomcatAuthentication="false" to your ajp13 
connector in server.xml.  Also, this doesn't seem to work with the Coyote 
connector, only with the normal ajp13. connector.

Once you've done this, do your athentication through Apache and use 
request.getRemoteUser() to get the name of the user who successfully logged 
in through Apache.

Jake

At 01:49 PM 8/13/2002 +0100, you wrote:
>


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




RE: Can authentication to webapps be controlled by Apache HTTPD s erve r rather than tomcat?

2002-08-13 Thread Koes, Derrick


Ah, I still have my security-constraint in my web.xml.  I thought, perhaps,
as you point out, I was interpreting tomcatAuthentication="false"
inappropriately.

The 403 is coming from Tomcat.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 10:07 AM
To: Tomcat Users List
Subject: RE: Can authentication to webapps be controlled by Apache HTTPD s
erve r rather than tomcat? 


Make sure that you don't have any  stuff set up in 
your web.xml for your app.  You either need to handle everything at the 
Apache level or let everything drop through to the Tomcat level.  I know of 
no way to do both at the same time.

Also, is Apache serving up the 403 error or is Tomcat?  The auth should 
*always* work through Apache whether you have tomcatAuthentication="false" 
on the ajp13 connector or not.  The only thing that parameter controls is 
whether request.getRemoteUser() returns the value that Apache forwards onto 
tomcat or null (if tomcatAuthentication="true" which is the default).

Jake

At 02:40 PM 8/13/2002 +0100, you wrote:

>The auth seems to work through apache with this setting, but tomcat still
>gives me the 403 error page.
>
>-Original Message-
>From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 13, 2002 9:33 AM
>To: Tomcat Users List
>Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
>serve r rather than tomcat? 
>
>
>Yes, but you have to add tomcatAuthentication="false" to your ajp13
>connector in server.xml.  Also, this doesn't seem to work with the Coyote
>connector, only with the normal ajp13. connector.
>
>Once you've done this, do your athentication through Apache and use
>request.getRemoteUser() to get the name of the user who successfully logged
>in through Apache.
>
>Jake
>
>At 01:49 PM 8/13/2002 +0100, you wrote:
> >
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:



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




RE: Can authentication to webapps be controlled by Apache HTTPD s erve r rather than tomcat?

2002-08-13 Thread Koes, Derrick


I guess this might have been an "obvious" detail.  However, I missed it in
the documentation.  I spent over a day trying to figure out why this was a
problem.  Removing the security-constraint in web.xml did the trick.
However,  it's just another step.  Seems like tomcatAuthentication attribute
on the AJP connector is misleading.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 10:07 AM
To: Tomcat Users List
Subject: RE: Can authentication to webapps be controlled by Apache HTTPD s
erve r rather than tomcat? 


Make sure that you don't have any  stuff set up in 
your web.xml for your app.  You either need to handle everything at the 
Apache level or let everything drop through to the Tomcat level.  I know of 
no way to do both at the same time.

Also, is Apache serving up the 403 error or is Tomcat?  The auth should 
*always* work through Apache whether you have tomcatAuthentication="false" 
on the ajp13 connector or not.  The only thing that parameter controls is 
whether request.getRemoteUser() returns the value that Apache forwards onto 
tomcat or null (if tomcatAuthentication="true" which is the default).

Jake

At 02:40 PM 8/13/2002 +0100, you wrote:

>The auth seems to work through apache with this setting, but tomcat still
>gives me the 403 error page.
>
>-Original Message-
>From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 13, 2002 9:33 AM
>To: Tomcat Users List
>Subject: Re: Can authentication to webapps be controlled by Apache HTTPD
>serve r rather than tomcat? 
>
>
>Yes, but you have to add tomcatAuthentication="false" to your ajp13
>connector in server.xml.  Also, this doesn't seem to work with the Coyote
>connector, only with the normal ajp13. connector.
>
>Once you've done this, do your athentication through Apache and use
>request.getRemoteUser() to get the name of the user who successfully logged
>in through Apache.
>
>Jake
>
>At 01:49 PM 8/13/2002 +0100, you wrote:
> >
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:



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




RE: REPOST: Authentication: Use Tomcat and Apache

2002-08-13 Thread Koes, Derrick


Does putting it under a different service name work?

-Original Message-
From: Kevin Andryc [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 13, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: REPOST: Authentication: Use Tomcat and Apache

I have an application that currently uses Apache's authentication. In order
for this to work with Tomcat I had to specify it in my server.xml, like so:



I also have another application running under Tomcat that I would like
Tomcat to handle the authentication. Is there a way to have both methods?

Thanks,
Kevin


Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




session timeout

2002-08-14 Thread Koes, Derrick

How closely does Tomcat follow the servlet specification concerning web.xml?

 

I added the following to my web.xml, but the session seems to timeout
immediately (0 minutes).

  

0

  

 

However, the servlet 2.3 spec states:

 

"If the timeout is 0 or less, the container ensures the default behaviour of
sessions is never to time out."

 

The bottom line is I need to know how to make my webapp's session never
timeout.

Can anyone help?




RE: session timeout

2002-08-14 Thread Koes, Derrick


-1 seems to work, at least I have much better results than with 0.
I quoted directly from the servlet 2.3 FCS spec.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 14, 2002 11:17 AM
To: Tomcat Users List
Subject: RE: session timeout

Hi,
(Too lazy to dig up the spec for the nth time today)

I thought the spec said -1 ensures they never expire.  Not 0 or less.
Did you try -1?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 14, 2002 11:12 AM
>To: '[EMAIL PROTECTED]'
>Subject: session timeout
>
>How closely does Tomcat follow the servlet specification concerning
>web.xml?
>
>
>
>I added the following to my web.xml, but the session seems to timeout
>immediately (0 minutes).
>
>  
>
>0
>
>  
>
>
>
>However, the servlet 2.3 spec states:
>
>
>
>"If the timeout is 0 or less, the container ensures the default
behaviour
>of
>sessions is never to time out."
>
>
>
>The bottom line is I need to know how to make my webapp's session never
>timeout.
>
>Can anyone help?



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Still can't get Apache to forward to Tomcat

2002-08-15 Thread Koes, Derrick


If using mod_jk, where is the port specified on the Apache side?

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 15, 2002 4:51 PM
To: Tomcat Users List
Subject: Re: Still can't get Apache to forward to Tomcat

On Thu, 15 Aug 2002, Kenny G. Dubuisson, Jr. wrote:

> I've been trying all day (installed from blank hard drive twice) and
> I can't get Apache to forward requests to Tomcat.  I'm testing this
> by trying to access http://localhost/examples.  It should be
> forwarding to http://localhost:8080/examples (Tomcat's examples).
>
> I've found the following two entries in my Apache error.log file:
> [Thu Aug 15 15:23:51 2002] [error] lb_worker.service() all workers in
error
> or disabled state
> [Thu Aug 15 15:23:51 2002] [error] mod_jk.handler() Error connecting to
> tomcat 21000
>
> Does anyone have any ideas?  I used the workers2.properties and
> jk2.properties files from Dave on this list (I only changed the paths).
> Everything else is default Apache 2.0.39, Tomcat 4.1.8, and JSDK 1.3.1.
> Thanks,
> Kenny

Did you make sure that both sides (i.e. Apache and Tomcat) agree on
what port the Tomcat AJP connector is running on?  For the Apache
side, that's specified in one of those properties files (I know
mod_jk, not mod_jk2, so I can't tell you for sure where it's
specified).  For the Tomcat side, it's specified in server.xml, look
for the Connector tag that specifies the AJP info.

I'm wondering if that "21000" above indicates that the Apache side is
looking for it on port 21000.  The default "out of the box" on the
Tomcat side in server.xml is 8009.

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


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: configuration problem

2002-09-11 Thread Koes, Derrick


After a bit of agony, I figured out a bit of a pattern--I think.

If I start tomcat from the command prompt, then I see logging (and the log4j
internal debug statements).

However, if I run tomcat from the start menu or as an NT service I get no
logging.

I don't know how to fix this.  This indicates to me a resource or timing
issue--I think.

Can anyone help?


-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 11, 2002 1:40 PM
To: Log4J Users List
Subject: RE: configuration problem


Check that the JVM that launches Tomcat sees your options. Look into 
catalina.sh or catalina.bat.

At 13:38 11.09.2002 -0400, you wrote:

>Any suggestions on what to check next?
>
>-Original Message-
>From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 11, 2002 1:30 PM
>To: Log4J Users List
>Subject: RE: configuration problem
>
>
>debug=true makes log4j emit internal messages. The fact that you are not
>seeing any change means that the config file (logconfig.xml) is not being
>read.
>
>At 13:24 11.09.2002 -0400, you wrote:
>
> >What is the 'debug="true"' supposed to do?
> >I did this and did not notice anything different.
> >
> >Yes, logconfig.xml is in WEB-INF/classes/.
> >
> >-Original Message-
> >From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, September 11, 2002 12:57 PM
> >To: Log4J Users List
> >Subject: Re: configuration problem
> >
> >
> >Looks good to me. Change
> >
> >
> >
> >to
> >
> > >xmlns:log4j='http://jakarta.apache.org/log4j/'>
> >
> >and see what happens.
> >
> >Where have you placed the logconfig.xml file? Is it in WEB-INF/classes/ ?
> >
> >At 12:56 11.09.2002 -0400, you wrote:
> > >When I run my web app I get:
> > >
> > >log4j:WARN No appenders could be found for logger (DoraLogger).
> > >log4j:WARN Please initialize the log4j system properly.
> > >
> > >I cannot figure out why.  I believe I have things configured correctly.
> >
> >[snip]
> >
> >
> >--
> >Ceki
> >
> >TCP implementations will follow a general principle of robustness: be
> >conservative in what you do, be liberal in what you accept from
> >others. -- Jon Postel, RFC 793
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
>
> >For additional commands, e-mail:
>
> >
> >
> >--
> >To unsubscribe, e-mail:
>
> >For additional commands, e-mail:
>
>
>--
>Ceki
>
>TCP implementations will follow a general principle of robustness: be
>conservative in what you do, be liberal in what you accept from
>others. -- Jon Postel, RFC 793
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:


--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



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


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




difficulties using log4j

2002-09-12 Thread Koes, Derrick

Has anyone run into any difficulties getting log4j 1.2.26 working in Tomcat?

 

It works fine for me if I run startup.bat from the command line.

However, if I try to run from the start menu (D:\j2sdk1.4.0_02\bin\java.exe
-jar -Duser.dir="C:\Program Files\Apache Group\Jakarta\tomcat-4.0.4"
"C:\Program Files\Apache Group\Jakarta\tomcat-4.0.4\bin\bootstrap.jar"
start) or as an NT service (C:\Program Files\Apache
Group\Jakarta\tomcat-4.0.4\bin\tomcat.exe) my logging configuration file is
never read.

 

On another note, why are there so many ways to start tomcat?

Why doesn't the service and the start menu use the startup.bat file?

 




tomcat 4.0.4 and oracle

2002-09-18 Thread Koes, Derrick

If I run tomcat from the Windows command prompt using startup.bat, I get:

 

Exception during startup processing

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path

...

 

However, if I run from the start menu I don't have this problem.

 

I gather that somewhere an oracle library is not being loaded, but I'm not
sure how to fix this.

I have put classes12.jar in the common/lib because I'm using Oracle for
authentication.

 

Other than that, everything is default.

 

Can anyone help?




RE: mod_jk log file errors

2002-09-18 Thread Koes, Derrick





Not the same errors, but using Apache 2.0.40 and Tomcat 4.0.4 I get:

[Wed Sep 18 14:49:03 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:17 2002]  [jk_ajp_common.c (824)]: Error sending request
try another pooled connection
[Wed Sep 18 14:55:18 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:18 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Wed Sep 18 14:55:19 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:19 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Wed Sep 18 14:55:20 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Wed Sep 18 14:55:20 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Wed Sep 18 15:05:38 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:05:38 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:06:00 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Wed Sep 18 15:06:19 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed


-Original Message-
From: Ago Meister [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 1:10 PM
To: Tomcat Users List
Subject: mod_jk log file errors

Hello there,

My mod_jk log file contains many error messages?
We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2.
Does anybody any ideas or has experience with similar problems?


errors are:

[Mon Sep 16 15:38:18 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:38:20 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:43:27 2002]  [jk_ajp_common.c (933)]: Error
ajp_process_callback - write failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:12 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:15 2002]  [jk_ajp_common.c (1013)]: Error reading reply

and

[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 1
[Mon Sep 16 15:44:22 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (652)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Mon Sep 16 15:44:22 2002]  [jk_ajp_common.c (1013)]: Error reading reply

ki

JDBCRealm question

2002-09-19 Thread Koes, Derrick

 

According to the directions in the documentation, you should put the jar
that contains the JDBC driver in common/lib if you need it for
authentication as well as for your webapp.

 

If I do this, I cannot use startup.bat because I get:

Exception during startup processing

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)

 

However, if I add it to server/lib and in my webapp's lib I get an exception
stating that it was already loaded by another classloader when my webapp
tries to use it.

 

I'm using the famous Oracle classes12.jar for Oracle 9i release 1.

 

Has anyone had similar problems?  How do you make tomcat "see" the ocijdbc9
library in the "shared" mode?

 

Thanks,

Derrick

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.



webapp's default character encoding

2002-09-27 Thread Koes, Derrick

How do I set the default character encoding for my webapp in tomcat?

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.



RE: Please help me!!

2002-10-03 Thread Koes, Derrick


You may want to look into these two classes from oracle.
oracle.jdbc.oci.OracleOCIConnection
oracle.jdbc.pool.OracleOCIConnectionPool


They should be in the classes12.jar.
This will preclude you from using the thin driver, but probably provide more
stability in connection pooling.

Read Oracle documentation here.
http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/index.htm


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 03, 2002 3:47 AM
To: tomcat-user
Subject: Please help me!!

Hi all,

I can't find an answer to this question. Plese help me.

I have an apache-tomcat(4.0.3) system installed. I use a connection 
DataSource with a Oracle database (I have a resource in server.xml with 
type="javax.sql.DataSource"). ---> Instruction in the JNDI Resources 
HOW-TO section of Tomcat 4.0.x.

My question is this. If Oracle DB crashes and it has to been restarted, 
does my web application,that uses DataSource, have to be restarted? 

I have a class with this static block:

static {
try  {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource) envCtx.lookup(dbName);
con =  ds.getConnection();
if (con == null)
  System.out.println("[ERROR] Connection null");
  } catch (Exception ex) {
System.out.println("[ERROR] Errore = "  + ex.toString() + " \n" 
+ ex.getMessage());
con = null;
  }
  }
 
and I have a method:


protected synchronized Connection getConnection() {
 while (conFree == false) {
try {
   wait();
} catch (InterruptedException e) {
  System.out.println("[ERROR] Exception getConnection() = " 
+ e.toString());
}
 }
 conFree = false;
 notify();
 return con;
}

In the servlets of my web application I call getConnection() to take 
the connection: if db is restarted what happen?

Thanks for your help

Laura



--
To unsubscribe, e-mail:

For additional commands, e-mail:

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


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




HTTPServletRequest.getServerName() question

2002-10-07 Thread Koes, Derrick

The servlet 2.3 spec simply states that, "Returns the host name of the
server that received the request."

 

If I'm running tomcat on a windows machine which is not networked (no DNS),
but is in a workgroup, this call returns an empty string in tomcat.

 

I know tomcat documentation states, "The Host element represents a virtual
host, which is an association of a network name for a server (such as
"www.mycompany.com" with the particular server on which Catalina is running.
In order to be effective, this name must be registered in the Domain Name
Service (DNS) server that manages the Internet domain you belong to -
contact your Network Administrator for more information."

 

1.  Is my problem directly traced to tomcat because of the "In order to
be effective..." statement?
2.  Is tomcat not in accordance with the servlet spec?

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.



Class.forName call hangs tomcat.

2002-10-11 Thread Koes, Derrick


This is a very intermittent problem with tomcat 4.0.4/j2sdk 1.4.0_02.
Sometimes, jsp pages hang (do not load) in the java code if using
Class.forName for a class used by the JSP.

Has anyone had similar experience?

If so, how did you remedy the situation?

Thanks,
Derrick
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


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




version of mod_jk.dll needed

2002-11-04 Thread Koes, Derrick

Does anyone have a mod_jk.dll that will work with tomcat 4.0.6 and apache
2.0.40?

Thanks,
Derrick
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




RE: digest authentication or DIGEST

2002-11-05 Thread Koes, Derrick


Leave the  in the web.xml as BASIC.


-Original Message-
From: Frank Balluffi [mailto:frank.balluffi@;db.com] 
Sent: Monday, November 04, 2002 6:01 PM
To: [EMAIL PROTECTED]
Subject: digest authentication or DIGEST

I am able to successfully configure Tomcat 4.1.12 to use basic
authentication and access a servlet from IE 5.5. conf/server.xml contains:

  

conf/tomcat-users.xml contains:

  
  

myapp/WEB-INF/web.xml contains:


My Application
My Application

invoker
/servlet/*



My Application
/*


myapp



BASIC
My Application


myapp



When IE prompts me for the user name and password, I enter "frank" and
"password" and the servlet successfully runs.

When I attempt to configure Tomcat to use digest authentication (and restart
Tomcat), weird things happen. conf/server.xml contains:

  

conf/tomcat-users.xml contains:

  
  

I used the following command to MD5 digest the password "password" [without
the double quotes]:

C:\jakarta-tomcat-4.1.12\server\lib>java org.apache.catalina.realm.RealmBase
-a MD5 password
password:5f4dcc3b5aa765d61d8327deb882cf99

myapp/WEB-INF/web.xml contains:


My Application
My Application

invoker
/servlet/*



My Application
/*


myapp



DIGEST



My Application


myapp



If I enter the user name and password "frank" and "password" into IE,
authentication fails. But if I enter "frank" and
"5f4dcc3b5aa765d61d8327deb882cf99", authentication succeeds. I expected
"frank" and "password" to work.

The log file for myapp shows the following:

2002-11-04 17:51:40 WebappLoader[/myapp]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.1.12\work\Standalone\localhost\myapp
2002-11-04 17:51:40 WebappLoader[/myapp]: Deploy class files
/WEB-INF/classes to
C:\jakarta-tomcat-4.1.12\bin\..\webapps\myapp\WEB-INF\classes
2002-11-04 17:51:40 WebappLoader[/myapp]: Reloading checks are enabled for
this Context
2002-11-04 17:51:41 ContextConfig[/myapp]: Configured an authenticator for
method DIGEST
2002-11-04 17:51:41 StandardManager[/myapp]: Seeding random number generator
class java.security.SecureRandom
2002-11-04 17:51:41 StandardManager[/myapp]: Seeding of random number
generator has been completed
2002-11-04 17:51:41 StandardWrapper[/myapp:default]: Loading container
servlet default
2002-11-04 17:51:41 StandardWrapper[/myapp:invoker]: Loading container
servlet invoker

Am I doing something wrong? Do I not understand digest authentication? Any
ideas? Thanks.

Frank


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:

For additional commands, e-mail:

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




RE: digest authentication or DIGEST

2002-11-05 Thread Koes, Derrick

I think what is really happening is that the realm is handling the digesting
to do the password "match".  Setting auth-method to DIGEST probably tries to
handle encryption up front, not delaying it until (plain text until then)
the realm code.  What encryption algorithm is used if you select
 DIGEST?  What if all your passwords are SHA-1?

Derrick


-Original Message-
From: Frank Balluffi [mailto:frank.balluffi@;db.com] 
Sent: Tuesday, November 05, 2002 6:25 PM
To: Tomcat Users List
Subject: RE: digest authentication or DIGEST


Jake,

Because tomcat-users.xml only contains the digested password (it does not
contain the string "password") and I am able to authenticate by entering the
password "password" into IE's dialog box, I assume that the digested
password is being sent. What surprised me was that web.xml's auth-method
needed to be set to BASIC, not DIGEST. That said, I do not see much
advantage in using digest authentication over basic authentication.

Frank



 

  Jacob Kjome

  <[EMAIL PROTECTED]>  To:   "Tomcat Users List"
<[EMAIL PROTECTED]>  
   cc:

  11/05/2002 04:18 Subject:  RE: digest
authentication or DIGEST
  PM

  Please respond to

  "Tomcat Users

  List"

 

 






Am I missing something?  If you use BASIC auth, wouldn't your password now
be completely plain textor are you sending your MD5 hashed password
instead of "password".  I guess if that is the case then your password
would be safe, but who can remember a password such as
"5f4dcc3b5aa765d61d8327deb882cf99".  There's got to be a better way to set
things up than that.

Jake

At 03:25 PM 11/5/2002 -0500, you wrote:

>Derrick,
>
>You are correct. Is this a bug or is this the way it is supposed to work?
>Thanks!
>
>Frank
>
>
>
>
>
>   "Koes,
> Derrick"
>
>Users List'" <[EMAIL PROTECTED]>
>   nephew.com> cc:
>
>   Subject:  RE: digest
> authentication or DIGEST
>   11/05/2002 01:29
> PM
>
>   Please respond
> to
>
>   "Tomcat Users
> List"
>
>
>
>
>
>
>
>
>
>
>
>Leave the  in the web.xml as BASIC.
>
>
>-Original Message-
>From: Frank Balluffi [mailto:frank.balluffi@;db.com]
>Sent: Monday, November 04, 2002 6:01 PM
>To: [EMAIL PROTECTED]
>Subject: digest authentication or DIGEST
>
>I am able to successfully configure Tomcat 4.1.12 to use basic
>authentication and access a servlet from IE 5.5. conf/server.xml contains:
>
> pathname  = "conf/tomcat-users.xml" />
>
>conf/tomcat-users.xml contains:
>
>   
>   
>
>myapp/WEB-INF/web.xml contains:
>
>
> My Application
> My Application
> 
> invoker
> /servlet/*
> 
> 
> 
> My Application
> /*
> 
> 
> myapp
> 
> 
> 
> BASIC
> My Application
> 
> 
> myapp
> 
>
>
>When IE prompts me for the user name and password, I enter "frank" and
>"password" and the servlet successfully runs.
>
>When I attempt to configure Tomcat to use digest authentication (and
restart
>Tomcat), weird things happen. conf/server.xml contains:
>
> digest= "MD5"
>  pathname  = "conf/tomcat-users.xml" />
>
>conf/tomcat-users.xml contains:
>
>   
>   roles="myapp"/>
>
>I used the following command to MD5 digest the password "password" [without
>the double quotes]:
>
>C:\jakarta-tomcat-4.1.12\server\lib>java
org.apache.catalina.realm.RealmBase
>-a MD5 password
>password:5f4dcc3b5aa765d61d8327deb882cf99
>
>myapp/WEB-INF/web.xml contains:
>
>
> My Application
> My Application
> 
> invoker
> /servlet/*
> 
> 
> 
> My Application
> /*
> 
> 
> myapp
> 
> 
> 
> DIGEST
>
> 
>
> My Application
> 
> 
> myapp
> 
>
>
>If I enter the user name and password "frank" and "password" into IE,
>authentic

RE: Digest authentication with JDBCRealm: doesn't seems to work

2002-11-07 Thread Koes, Derrick
Change


DIGEST


to


BASIC



-Original Message-
From: Iran Marcius [mailto:iran@;isic.com.br] 
Sent: Thursday, November 07, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: Digest authentication with JDBCRealm: doesn't seems to work

Hi.

I'm trying to use digest authentication with JDBCRealm and SHA
algorithm, but it doesn't seems to work.

Here is my context:






And here is my relevant lines in web.xml:


DIGEST


When I use BASIC method, as a lot of people wrote before, everything
works fine, but with DIGEST method I can't authenticate.

I tried to turn off "digest" parameter in server.xml, but didn't work. I
tried so set a plain password in my user table. Didn't work too. So,
I've tried a lot of combinations without success.

Is there someone who did it before?

iran


--
To unsubscribe, e-mail:

For additional commands, e-mail:

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




RE-POST RE: digest authentication or DIGEST

2002-11-07 Thread Koes, Derrick


-Original Message-
From: Koes, Derrick 
Sent: Tuesday, November 05, 2002 6:43 PM
To: 'Tomcat Users List'
Subject: RE: digest authentication or DIGEST


I think what is really happening is that the realm is handling the digesting
to do the password "match".  Setting auth-method to DIGEST probably tries to
handle encryption up front, not delaying it until (plain text until then)
the realm code.  What encryption algorithm is used if you select
 DIGEST?  What if all your passwords are SHA-1?

Derrick


-Original Message-
From: Frank Balluffi [mailto:frank.balluffi@;db.com] 
Sent: Tuesday, November 05, 2002 6:25 PM
To: Tomcat Users List
Subject: RE: digest authentication or DIGEST


Jake,

Because tomcat-users.xml only contains the digested password (it does not
contain the string "password") and I am able to authenticate by entering the
password "password" into IE's dialog box, I assume that the digested
password is being sent. What surprised me was that web.xml's auth-method
needed to be set to BASIC, not DIGEST. That said, I do not see much
advantage in using digest authentication over basic authentication.

Frank



 

  Jacob Kjome

  <[EMAIL PROTECTED]>  To:   "Tomcat Users List"
<[EMAIL PROTECTED]>  
   cc:

  11/05/2002 04:18 Subject:  RE: digest
authentication or DIGEST
  PM

  Please respond to

  "Tomcat Users

  List"

 

 






Am I missing something?  If you use BASIC auth, wouldn't your password now
be completely plain textor are you sending your MD5 hashed password
instead of "password".  I guess if that is the case then your password
would be safe, but who can remember a password such as
"5f4dcc3b5aa765d61d8327deb882cf99".  There's got to be a better way to set
things up than that.

Jake

At 03:25 PM 11/5/2002 -0500, you wrote:

>Derrick,
>
>You are correct. Is this a bug or is this the way it is supposed to work?
>Thanks!
>
>Frank
>
>
>
>
>
>   "Koes,
> Derrick"
>
>Users List'" <[EMAIL PROTECTED]>
>   nephew.com> cc:
>
>   Subject:  RE: digest
> authentication or DIGEST
>   11/05/2002 01:29
> PM
>
>   Please respond
> to
>
>   "Tomcat Users
> List"
>
>
>
>
>
>
>
>
>
>
>
>Leave the  in the web.xml as BASIC.
>
>
>-Original Message-
>From: Frank Balluffi [mailto:frank.balluffi@;db.com]
>Sent: Monday, November 04, 2002 6:01 PM
>To: [EMAIL PROTECTED]
>Subject: digest authentication or DIGEST
>
>I am able to successfully configure Tomcat 4.1.12 to use basic
>authentication and access a servlet from IE 5.5. conf/server.xml contains:
>
> pathname  = "conf/tomcat-users.xml" />
>
>conf/tomcat-users.xml contains:
>
>   
>   
>
>myapp/WEB-INF/web.xml contains:
>
>
> My Application
> My Application
> 
> invoker
> /servlet/*
> 
> 
> 
> My Application
> /*
> 
> 
> myapp
> 
> 
> 
> BASIC
> My Application
> 
> 
> myapp
> 
>
>
>When IE prompts me for the user name and password, I enter "frank" and
>"password" and the servlet successfully runs.
>
>When I attempt to configure Tomcat to use digest authentication (and
restart
>Tomcat), weird things happen. conf/server.xml contains:
>
> digest= "MD5"
>  pathname  = "conf/tomcat-users.xml" />
>
>conf/tomcat-users.xml contains:
>
>   
>   roles="myapp"/>
>
>I used the following command to MD5 digest the password "password" [without
>the double quotes]:
>
>C:\jakarta-tomcat-4.1.12\server\lib>java
org.apache.catalina.realm.RealmBase
>-a MD5 password
>password:5f4dcc3b5aa765d61d8327deb882cf99
>
>myapp/WEB-INF/web.xml contains:
>
>
> My Application
> My Application
> 
> invoker
> /servlet/*
> 
> 
> 
> My Application
> /*
> 
> 
> myapp
> 
> 
> 
> DIGEST
>
> 
>
> My Application

warning issued by tomcat

2002-11-08 Thread Koes, Derrick

I'm using Apache 2.0.42, Tomcat 4.1.12, and mod_jk (not mod_jk2).

I'm getting the following warning:

Nov 8, 2002 11:03:07 AM org.apache.jk.common.ChannelSocket processConnection
WARNING: server has closed the current connection (-1)

I see this repeated 4 times in succession.


My guess is that my connector min processors number is 5, and since I only
am using one connection, the other 4 are dropped.

If this is correct, can I silence this warning?

If this assumption is not correct, can someone please explain?

Thanks,
Derrick

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




RE: mod_jk.log entries

2002-11-12 Thread Koes, Derrick

This might help.


http://www.faqchest.com/prgm/tomcat-l/tmct-01/tmct-0104/tmct-010470/tmct0104
3017_27782.html


-Original Message-
From: Turner, John [mailto:JTurner@;AAS.com] 
Sent: Tuesday, November 12, 2002 3:40 PM
To: 'Tomcat Users List'
Subject: RE: mod_jk.log entries


The reference would be the source code.

John


> -Original Message-
> From: Chad Cannell [mailto:ccannell@;elogex.com]
> Sent: Tuesday, November 12, 2002 3:38 PM
> To: Tomcat Users List
> Subject: RE: mod_jk.log entries
> 
> 
> Is there an error reference guide or chart. I need to look into the
> folowing errors:
> 
> I am seeing a lot of chatter in my mod_jk.log:
> 
> [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
> [jk_uri_worker_map.c (335)]:
> jk_uri_worker_map_t::uri_worker_map_close,NULL parameter
> [jk_uri_worker_map.c (185)]: In
> jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
> [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
> [jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
> jk_tcp_socket_recvfull failed
> [jk_ajp13_worker.c (622)]: Error reading request
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed
> errno = 61
> [jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process.
> 
> 
> Can anyone help me dicepher these and are they critical? 
> 
> Chad
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




war file "deploys" but can't reach any urls

2002-06-20 Thread Koes, Derrick

 

 

I dropped my war file in the webapps directory in a tomcat 4.0.4 install.

I started tomcat, and a directory is created with the contents of my war
file.

However, I cannot hit the expected url with any success.  I always get a 404
error.

Can anyone help?

 

Thanks.

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = "Derrick Koes";

String title = "Senior Software Engineer";

String company = "Smith + Nephew Endoscopy";

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
 );

String aolIM = "codeauthor2001";

String EMAIL = "[EMAIL PROTECTED]
 ";

String PHONE = "(978) 749-1288";

String FAX = "(978) 749-1487";

}

 




RE: war file "deploys" but can't reach any urls

2002-06-20 Thread Koes, Derrick


I should add that I had no problem with this in tomcat 3.2.3.
What has changed?

-Original Message-
From: Koes, Derrick 
Sent: Thursday, June 20, 2002 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: war file "deploys" but can't reach any urls

 

 

I dropped my war file in the webapps directory in a tomcat 4.0.4 install.

I started tomcat, and a directory is created with the contents of my war
file.

However, I cannot hit the expected url with any success.  I always get a 404
error.

Can anyone help?

 

Thanks.

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = "Derrick Koes";

String title = "Senior Software Engineer";

String company = "Smith + Nephew Endoscopy";

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
<http://www.smith-nephew.com/index-flash.html> );

String aolIM = "codeauthor2001";

String EMAIL = "[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]@smith-nephew.com> ";

String PHONE = "(978) 749-1288";

String FAX = "(978) 749-1487";

}

 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: war file "deploys" but can't reach any urls

2002-06-20 Thread Koes, Derrick


I was under the impression that I did not need mod_webapp unless I was using
Apache as the web server.  Anyway, isn't mod_jk more stable/robust than
mod_webapp?



-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 4:01 PM
To: Tomcat Users List
Subject: Re: war file "deploys" but can't reach any urls

How is the 404 error displayed?

Is it displayed as actual html code in the browser or an actual blue 
backgrounded 404 error?

  If you are using mod_webapp you need:

#WebAppDeploy name.war  conn1/webapps/name


--chad


On Thu June 20 2002 4:00 pm, Koes, Derrick wrote:
> I dropped my war file in the webapps directory in a tomcat 4.0.4 install.
>
> I started tomcat, and a directory is created with the contents of my war
> file.
>
> However, I cannot hit the expected url with any success.  I always get a
> 404 error.
>
> Can anyone help?
>
>
>
> Thanks.
>
>
>
> /**
>
>  * Contact information.
>
>  */
>
> public interface INFO
>
> {
>
> static final String NAME = "Derrick Koes";
>
> String title = "Senior Software Engineer";
>
> String company = "Smith + Nephew Endoscopy";
>
> URL companyURL = new URL(
>
> http://www.smith-nephew.com/index-flash.html
> <http://www.smith-nephew.com/index-flash.html> );
>
> String aolIM = "codeauthor2001";
>
> String EMAIL = "[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]@smith-nephew.com> ";
>
> String PHONE = "(978) 749-1288";
>
> String FAX = "(978) 749-1487";
>
> }

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: war file "deploys" but can't reach any urls

2002-06-20 Thread Koes, Derrick

Apache Tomcat/4.0.3 - HTTP Status 404 - /dora




type Status report

message /dora

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


With a blue background.


-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 4:01 PM
To: Tomcat Users List
Subject: Re: war file "deploys" but can't reach any urls

How is the 404 error displayed?

Is it displayed as actual html code in the browser or an actual blue 
backgrounded 404 error?

  If you are using mod_webapp you need:

#WebAppDeploy name.war  conn1/webapps/name


--chad


On Thu June 20 2002 4:00 pm, Koes, Derrick wrote:
> I dropped my war file in the webapps directory in a tomcat 4.0.4 install.
>
> I started tomcat, and a directory is created with the contents of my war
> file.
>
> However, I cannot hit the expected url with any success.  I always get a
> 404 error.
>
> Can anyone help?
>
>
>
> Thanks.
>
>
>
> /**
>
>  * Contact information.
>
>  */
>
> public interface INFO
>
> {
>
> static final String NAME = "Derrick Koes";
>
> String title = "Senior Software Engineer";
>
> String company = "Smith + Nephew Endoscopy";
>
> URL companyURL = new URL(
>
> http://www.smith-nephew.com/index-flash.html
> <http://www.smith-nephew.com/index-flash.html> );
>
> String aolIM = "codeauthor2001";
>
> String EMAIL = "[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]@smith-nephew.com> ";
>
> String PHONE = "(978) 749-1288";
>
> String FAX = "(978) 749-1487";
>
> }

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




war file deployment problem with tomcat 4.0.3

2002-06-20 Thread Koes, Derrick

I have dropped the war file into the %CATALINA_HOME%/webapps directory.

I run startup.bat.

Tomcat expands my war file, but I always get:

 


Apache Tomcat/4.0.3 - HTTP Status 404 - /dora

  _  


type Status report

message /dora

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

 

 

Why is this happening?

 

 

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = "Derrick Koes";

String title = "Senior Software Engineer";

String company = "Smith + Nephew Endoscopy";

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
 );

String aolIM = "codeauthor2001";

String EMAIL = "[EMAIL PROTECTED]
 ";

String PHONE = "(978) 749-1288";

String FAX = "(978) 749-1487";

}

 




mod_jk for Windows

2002-06-20 Thread Koes, Derrick

I cannot seem to find a combination of apache httpd and tomcat that will
work together.

 

I've tried:

 

Apache 1.3.26 + Tomcat 3.3.1  -- Doesn't understand any of the "Jk"
configuration..."Invalid command 'JkWorkersFile'...

Apache 1.3.26 + Tomcat 4.0.3  -- same

Apache 2.0.39 + Tomcat 4.0.3  -- Can't get to webapp's through tomcat let
alone apache (Yes, of course I can get to the examples through tomcat, but
still not through apache)

Apache 2.0.39 + Tomcat 4.0.4  -- same

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = "Derrick Koes";

String title = "Senior Software Engineer";

String company = "Smith + Nephew Endoscopy";

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
 );

String aolIM = "codeauthor2001";

String EMAIL = "[EMAIL PROTECTED]
 ";

String PHONE = "(978) 749-1288";

String FAX = "(978) 749-1487";

}

 




mod_jk.log has the following error

2002-07-01 Thread Koes, Derrick

Does anyone know why I'm getting these errors in my mod_jk.log?

 

 

[Mon Jul 01 11:32:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61

[Mon Jul 01 11:32:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61

 

 

 




RE: mod_jk.log has the following error

2002-07-01 Thread Koes, Derrick


Thanks for the info.  I still get the same log error even with the larger
cache size.  Is there anywhere I can look up this error number?

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 11:54 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk.log has the following error



> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]] 
> Sent: 1. srpanj 2002 17:43
> To: 'Tomcat Users List'
> Subject: mod_jk.log has the following error
> 
> 
> Does anyone know why I'm getting these errors in my mod_jk.log?
> 
>  
> 
>  
> 
> [Mon Jul 01 11:32:13 2002]  [jk_connect.c (151)]: 
> jk_open_socket, connect() failed errno = 61
> 
> [Mon Jul 01 11:32:13 2002]  [jk_ajp_common.c (599)]: In 
> jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
>

If you are running threaded server, like WIN32 in the workers.properties
Set something like:

worker.ajp13.cachesize=100

MT.


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Seeking working mod_jk.dll for Tomcat 4.0.4 and Apache 2.0.39

2002-07-01 Thread Koes, Derrick

 




RE: Seeking working mod_jk.dll for Tomcat 4.0.4 and Apache 2.0.39

2002-07-01 Thread Koes, Derrick

Carrie,

This is the where I got the copy I'm attempting to use now.
However, I get the following errors in my mod_jk file.  Do you happen to
know the cause for these errors?

[Mon Jul 01 13:46:41 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Mon Jul 01 13:46:41 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61

Thanks,
Derrick

-Original Message-
From: Carrie Salazar [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 2:03 PM
To: Tomcat Users List
Subject: Re: Seeking working mod_jk.dll for Tomcat 4.0.4 and Apache 2.0.39



for windows? i'm running Tomcat 4.0.4/Apache 2.0.39 on windows 2000
and the compiled mod_jk.dll from here works:
http://www.acg-gmbh.de/mod_jk/

or you can compile your own.
--
carrie s.

Mon, Jul 01, 2002 at 06:48:47PM +0100, Koes, Derrick wrote:
>  
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Seeking working mod_jk.dll for Tomcat 4.0.4 and Apache 2.0.39

2002-07-01 Thread Koes, Derrick


Would you mind posting your configuration files?

-Original Message-
From: Carrie Salazar [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 2:03 PM
To: Tomcat Users List
Subject: Re: Seeking working mod_jk.dll for Tomcat 4.0.4 and Apache 2.0.39



for windows? i'm running Tomcat 4.0.4/Apache 2.0.39 on windows 2000
and the compiled mod_jk.dll from here works:
http://www.acg-gmbh.de/mod_jk/

or you can compile your own.
--
carrie s.

Mon, Jul 01, 2002 at 06:48:47PM +0100, Koes, Derrick wrote:
>  
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: tomcat 4.0.4 apache 2.0.39 integration

2002-07-02 Thread Koes, Derrick


http://www.galatea.com/flashguides/index



-Original Message-
From: Paul Ung [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 8:23 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat 4.0.4 apache 2.0.39 integration

Hi,

Does anybody know of any good websites/pages that explains step-by-step how
to integrate Tomcat and Apache? I'm using Tomcat 4.0.4 and Apache 2.0.39 on
Windows 2000. I already tried the tutorial at
http://www.webmasterbase.com/article/305 but it didn't work maybe because
that tutorial was for Tomcat 4.0.3 and not 4.0.4. Should it matter? Well, if
anybody knows any other sites, please let me know.

Thanks,
Paul


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




authentication problem

2002-07-08 Thread Koes, Derrick

Configuration:

Tomcat 4.0.4

Apache 2.0.39

 

I'm successfully authenticating to my index.jsp, however when I attempt to
access the other servlet (MediaContentHandler) identified in my web.xml
deployment descriptor I am prompted to login again.  Since this servlet is
not in my security constraint, why is it prompting me to login?  BTW, the
username and password used to authenticate to index.jsp don't work in the
"re-authentication".

My web.xml is listed below.

 



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



  Test

  Test

  

Dora

Dora

index.jsp



  dora.propertyFile

  dora.properties





  dora.version

  1.0



  

  

MediaContentHandler

Media Content Handler

Handler for retrieving and storing media files into
DORA

com.snn.multimedia.ui.MediaContentHandler

  

  

Dora

/index.jsp

  

  

MediaContentHandler

/MediaContentHandler

  

  

index.jsp

  

  



  index

  /index.jsp





  manager

  tomcat



  

  

BASIC

localhost

  



 

Thanks for the help.

 

Derrick




image url problem

2002-07-08 Thread Koes, Derrick

I am trying to include an image in a pdf document generated from a servlet.

The image url is another servlet which retrieves the image from the
database.

Using the fo:external-graphic element, I get the following in the log:

 

2002-07-08 15:08:11.239 [Ajp13Processor[8009][0]] ERROR DoraLogger  - Error
while creating area : Error with image URL: Server returned HTTP response
code: 401 for URL: http://koes/dora/MediaContentHandler?type=image

&id=1&mimetype=image/jpeg and no base directory is specified

 

I realize this is a servlet container configuration problem  (I am using
Tomcat 4.0.4 and Apache HTTPD 2.039 with the ajp [mod_jk] connector), but I
thought I'd post it to both lists to find out if users on either list have
had this problem and know how to resolve it.

 

Thanks,

Derrick




resource bundle question

2002-07-09 Thread Koes, Derrick

Where should resource bundles (properties files) go in my war file?

 




NT Event Viewer dll question

2002-07-09 Thread Koes, Derrick

I'm using log4j in my web app.  I'm also using the dll that allows logging
to the NT Event Viewer application log.

However, I cannot use the manager servlet to undeploy and redeploy an
updated version of my web app because of a stack trace produced that states
that the dll is already loaded.

Is there any way to configure log4j/tomcat to check for this?

 

Thanks,

Derrick

 




RE: resource bundle question

2002-07-09 Thread Koes, Derrick


Is there a reason you are saying to use
ClassLoader.getSystemResource(String), which returns a URL incidentally,
rather than ResourceBundle.getBundle()?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 5:38 PM
To: Tomcat Users List
Subject: Re: resource bundle question

They should be fine in the classes directory, as it will be placed on your
CLASSPATH appropriately. Use the ClassLoader.getResource methods to find
them.

Regards,

Will Hartung
([EMAIL PROTECTED])

- Original Message -
From: "Koes, Derrick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 2:23 PM
Subject: resource bundle question


> Where should resource bundles (properties files) go in my war file?
>
>
>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Using log4j with tomcat on Windows problem

2002-07-10 Thread Koes, Derrick

Configuration:

Tomcat 4.0.4

Apache 2.0.39

Log4J 1.2.4

 

You can deploy a new version of the war with the manager app as long as you
have not loaded (using) the NT Event logger dll.  Otherwise, you get this:

 

java.lang.UnsatisfiedLinkError: Native Library
C:\WINNT\system32\NTEventLogAppender.dll already loaded in another
classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
at
org.apache.log4j.nt.NTEventLogAppender.(NTEventLogAppender.java:156)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:164)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java
:140)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator
.java:153)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:201)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java
:140)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator
.java:153)
at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigu
rator.java:415)
at
org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:788)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:673)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.
java:456)
at org.apache.log4j.LogManager.(LogManager.java:145)
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at
com.snn.multimedia.server.ServiceDirector.(ServiceDirector.java:27)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:198)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
   

RE: jsp client to server text file uploads

2002-07-16 Thread Koes, Derrick


http://www.servlets.com/cos/index.html


-Original Message-
From: Dr. Edward R. Jones [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 11:20 AM
To: [EMAIL PROTECTED]
Subject: jsp client to server text file uploads

Hi,

The jsp code FileInputStream fiStream = new FileInputStream(path); causes 
the jsp server (tomcat 4.0.2) to look for the file on the server rather 
than on the client machine.

Does anyone have a suggestion or example of how to get a text file 
uploaded to the server for processing using jsp/servlets?

Thanks - edwardJones

-- 

 Edward R. Jones, Ph.D.|  email:   [EMAIL PROTECTED]
 Texas A&M Univ. - Corpus Christi  |  phone:   (361) 825-5840 



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: jk_open_socket, connect() failed errno = 61

2002-07-16 Thread Koes, Derrick


I've experienced the same.  It would be nice to have some resolution so I
can sleep at night.


-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 4:33 PM
To: Tomcat Users List
Subject: jk_open_socket, connect() failed errno = 61 

Hi, 
I am working with tomcat4.0.4 and apache 2.0.39, and
using jk_mod to connect them.
The intresting thing is even after getting this error,
my tomcat and apache are working together...
i can access all the servlets from apache port.
so do i neglect this error, or else how can i fix it.
I have given the worker.properties file, and the
httpd.conf file belpw

My worker.properties file is

workers.tomcat_home=c:/tomcat4.0.4
workers.java_home=$(JAVA_HOME)
ps=\

worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p
s)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

###
lines added in httpd.conf file

 
LoadModule jk_module modules/mod_jk.dll 
 

JkWorkersFile
"c:/tomcat4.0.4/conf/jk/workers.properties"
JkLogFile "c:/tomcat4.0.4/logs/mod_jk.log"

JkLogLevel info

JkMount /manager ajp13
JkMount /manager/* ajp13





__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




What to do to http.conf and/or server.xml

2002-07-17 Thread Koes, Derrick

I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
 .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

to the httpd.conf file, but the URL has to be http://serverName/docs
 .

 

I tried adding

 

Alias /example/ "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 




RE: Tomcat 4 + Apache 2.39

2002-07-17 Thread Koes, Derrick

Check the port you configured in tomcat server.xml.  You probably already
have something running there.

 

-Original Message-
From: Alexandre [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 17, 2002 12:37 PM
To: Tomcat Users List
Subject: Tomcat 4 + Apache 2.39

 

hi all 
im a newbe in this server  ! 
so need a help to much . 

when i type 

[root@dtiso /usr/local/jakarta-tomcat-4/bin]# ./catalina.sh start 
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4 
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4 
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4/temp 
Using JAVA_HOME:   /usr/local/JDK_1.2.2 
[root@dtiso /usr/local/jakarta-tomcat-4/bin]# 

the catalina.out send me this error 
  

tail -f  catalina.out 
Starting service Tomcat-Standalone 
Apache Tomcat/4.0.4 
Exception during startup processing 
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
javax.servlet.ServletContext: 
method setAttribute(Ljava/lang/String;Ljava/lang/Object;)V not found 
at
org.apache.catalina.core.StandardContext.postWorkDirectory(StandardContext.j
ava:3992) 
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3365) 
at org.apache.catalina.core.ContainerBase.start(Compiled Code) 
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638) 
at org.apache.catalina.core.ContainerBase.start(Compiled Code) 
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) 
at org.apache.catalina.core.StandardService.start(Compiled Code) 
at org.apache.catalina.core.StandardServer.start(Compiled Code) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:781) 
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) 
at org.apache.catalina.startup.Catalina.process(Catalina.java:179) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Compiled Code) 
at org.apache.catalina.startup.Bootstrap.main(Compiled Code) 
my ls /usr/local/include/javax/ 
naming   servlet  transaction 

and the others 

ls /usr/local/include/javax/servlet 
Filter.class   ServletContextListener.class 
FilterChain.class  ServletException.class 
FilterConfig.class ServletInputStream.class 
GenericServlet.class   ServletOutputStream.class 
LocalStrings.propertiesServletRequest.class 
RequestDispatcher.classServletRequestWrapper.class 
Servlet.class  ServletResponse.class 
ServletConfig.classServletResponseWrapper.class 
ServletContext.class   SingleThreadModel.class 
ServletContextAttributeEvent.class UnavailableException.class 
ServletContextAttributeListener.class  http 
ServletContextEvent.class 
[root@dtiso /usr/local/jakarta-tomcat-4/bin] 

i have this softwares installed in a Solaris 8 sparc 

jakarta-tomcat-4.0.4 
jakarta-ant-1.4.1 
j2re1.4.0_01 
j2sdk1.4.0_01 
JDK_1.2.2 
jakarta-tomcat-connectors-4.0.2-01-src 
jndi112.zip 

my profile is: 
  

# The profile that all logins get before using their own .profile. 

PS1="[\u@\h \w]\\$ " 
HISTFILESIZE=1 

PATH=/usr/local/bin:/usr/local/sbin:/usr/openwin/bin:/usr/bin:/usr/sbin:/usr
/dt/bin:/usr/ccs/bin:/usr/j2se/bin:/usr/j2se/jre/bin:/sbin:/usr/platform/sun
4u/sbin:/usr/local/jakarta-tomcat-4/bin 

MANPATH=/usr/local/man:/usr/openwin/man:/usr/dt/man:/usr/man:/usr/j2se/man 

LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/openwin/lib:/usr/share/lib:/usr
/dt/lib:/usr/ccs/lib:/usr/j2se/lib:/usr/j2se/jre/lib:/etc/lib:/lib:/usr/loca
l/Apache2/modules:/usr/local/JDK_1.2.2/lib 
JAVA_HOME=/usr/local/JDK_1.2.2 
TOMCAT_HOME=/usr/local/jakarta-tomcat-4 
CATALINA_HOME=/usr/local/jakarta-tomcat-4 
#CATALINA_HOME=/usr/local/include/java 
ANT_HOME=/usr/local/jakarta-ant-1.4.1 
  

CLASSPATH=/usr/local/JDK_1.2.2/lib/jsdk.jar:/usr/local/JDK_1.2.2/lib/ApacheJ
Serv.jar:/usr/local/JDK_1.2.2/lib/activation.jar:/usr/local/JDK_1.2.2/lib/co
llections.jar:/usr/local/JDK_1.2.2/lib/dt.jar:/usr/local/JDK_1.2.2/lib/jaspe
r.jar:/usr/local/JDK_1.2.2/lib/jdbcpool-0.94.jar:/usr/local/JDK_1.2.2/lib/jd
bcpool.jar:/usr/local/JDK_1.2.2/lib/jdom.jar:/usr/local/JDK_1.2.2/lib/jrefac
tory.jar:/usr/local/JDK_1.2.2/lib/junit.jar:/usr/local/JDK_1.2.2/lib/mail.ja
r:/usr/local/JDK_1.2.2/lib/servlet.jar:/usr/local/JDK_1.2.2/lib/sybase.jar:/
usr/local/JDK_1.2.2/lib/tools.jar:/usr/local/JDK_1.2.2/lib/webserver.jar:/us
r/local/JDK_1.2.2/lib/xalan.jar:/usr/local/JDK_1.2.2/lib/xerces.jar 

trap ""  2 3 
export LOGNAME PATH MANPATH LD_LIBRARY_PATH PS1 HISTFILESIZE JAVA_HOME
TOMCAT_HOME CATALINA_HOME ANT_HOME CLASSPATH PATH=${PATH}:${JAVA_HOME}/bin 

any people can help me ? 

thanks a lot 
  
 




RE: Tomcat 4 + Apache 2.39

2002-07-17 Thread Koes, Derrick

Look for the following in your server.xml.

 







 

If you have something running on port 8080, you won't be able to start
Tomcat.  Try changing the port or find out what is running on this port and
shut it down.

 

You will probably be able to determine what is running on your port by
opening a browser and entering the url, like:

 

http://serverName:8080

 

-Original Message-
From: Alexandre [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 17, 2002 1:03 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 + Apache 2.39

 

hi Koes 

this is my server.xml and my nmap result 

any more ?? 
  

server.xml 
 
   

 

 
 

   
   
  

[root@dust root]# nmap 192.168.2.171 

Starting nmap V. 2.54BETA34 ( www.insecure.org/nmap/ ) 
Interesting ports on hidra.sede.fazenda.sp.gov.br (192.168.2.171): 
(The 1550 ports scanned but not shown below are in state: closed) 
Port   State   Service 
22/tcp openssh 
111/tcpopensunrpc 
6000/tcp   openX11 
32772/tcp  opensometimes-rpc7 
32773/tcp  opensometimes-rpc9 
32774/tcp  opensometimes-rpc11 

Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds 
[root@dust root]# 

"Koes, Derrick" wrote: 

Check the port you configured in tomcat server.xml.  You probably already 
have something running there. 
  
  

-Original Message- 
From: Alexandre [mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] 
Sent: Wednesday, July 17, 2002 12:37 PM 
To: Tomcat Users List 
Subject: Tomcat 4 + Apache 2.39 
  
  

hi all 
im a newbe in this server  ! 
so need a help to much . 

when i type 

[root@dtiso /usr/local/jakarta-tomcat-4/bin]# ./catalina.sh start 
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4 
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4 
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4/temp 
Using JAVA_HOME:   /usr/local/JDK_1.2.2 
[root@dtiso /usr/local/jakarta-tomcat-4/bin]# 

the catalina.out send me this error 
  

tail -f  catalina.out 
Starting service Tomcat-Standalone 
Apache Tomcat/4.0.4 
Exception during startup processing 
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext: 
method setAttribute(Ljava/lang/String;Ljava/lang/Object;)V not found 
at 
org.apache.catalina.core.StandardContext.postWorkDirectory(StandardContext.j

ava:3992) 
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3365) 
at org.apache.catalina.core.ContainerBase.start(Compiled Code) 
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:638) 
at org.apache.catalina.core.ContainerBase.start(Compiled Code) 
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) 
at org.apache.catalina.core.StandardService.start(Compiled Code) 
at org.apache.catalina.core.StandardServer.start(Compiled Code) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:781) 
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) 
at org.apache.catalina.startup.Catalina.process(Catalina.java:179) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Compiled Code) 
at org.apache.catalina.startup.Bootstrap.main(Compiled Code) 
my ls /usr/local/include/javax/ 
naming   servlet  transaction 

and the others 

ls /usr/local/include/javax/servlet 
Filter.class   ServletContextListener.class 
FilterChain.class  ServletException.class 
FilterConfig.class ServletInputStream.class 
GenericServlet.class   ServletOutputStream.class 
LocalStrings.propertiesServletRequest.class 
RequestDispatcher.classServletRequestWrapper.class 
Servlet.class  ServletResponse.class 
ServletConfig.classServletResponseWrapper.class 
ServletContext.class   SingleThreadModel.class 
ServletContextAttributeEvent.class UnavailableException.class 
ServletContextAttributeListener.class  http 
ServletContextEvent.class 
[root@dtiso /usr/local/jakarta-tomcat-4/bin] 

i have this softwares installed in a Solaris 8 sparc 

jakarta-tomcat-4.0.4 
jakarta-ant-1.4.1 
j2re1.4.0_01 
j2sdk1.4.0_01 
JDK_1.2.2 
jakarta-tomcat-connectors-4.0.2-01-src 
jndi112.zip 

my profile is: 
  

# The profile that all logins get before using their own .profile. 

PS1="[\u@\h \w]\\$ " 
HISTFILESIZE=1 

PATH=/usr/local/bin:/usr/local/sbin:/usr/openwin/bin:/usr/bin:/usr/sbin:/usr

/dt/bin:/usr/ccs/bin:/usr/j2se/bin:/usr/j2se/jre/bin:/sbin:/usr/platform/sun

4u/sbin:/usr/local/jakarta-tomcat-4/bin 

MANPATH=/usr/local/man:/usr/openwin/man:/usr/dt/man:/usr/man:/usr/j2se/man 

LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/openwin/lib:/usr/share/lib:/usr

/dt/lib:/usr/ccs/

What to do to http.conf and/or server.xml

2002-07-18 Thread Koes, Derrick

I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
 .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

to the httpd.conf file, but the URL has to be http://serverName/docs
 .

 

I tried adding

 

Alias /example/ "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 




RE: What to do to http.conf and/or server.xml

2002-07-18 Thread Koes, Derrick


That's what I figured.  I thought I'd ask anyway.  I was wondering if there
was an "override" for some directory "under" example.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 18, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: RE: What to do to http.conf and/or server.xml


If you have something under "example" and "example" is mapped to the AJP13
connector, requests for /example and anything under it are going to be
served by tomcat.  That's the point of the connector, to distribute the
requests to a particular area based on URL.  Since servlets don't have file
extensions, there's really no other way other than URL for apache or a
connector to know which requests need to be served by tomcat.

I think if you want apache to serve that content, you have to put it
someplace other than "/example".  Can anyone else confirm this?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:52 AM
To: 'Tomcat Users List'
Subject: What to do to http.conf and/or server.xml


I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
<http://servername/example/docs> .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

to the httpd.conf file, but the URL has to be http://serverName/docs
<http://servername/docs> .

 

I tried adding

 

Alias /example/ "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/"

 



AuthType Basic

AuthName "Restricted Files"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all



 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




dynamically update tomcat-users list

2002-07-23 Thread Koes, Derrick

Is there any way to do this without bringing down Tomcat?




svg question

2002-07-25 Thread Koes, Derrick

 

Can Tomcat handle svg in a jsp page?

I put an svg document, set the content type to image/svg+xml, in a jsp, but
tomcat always puts a leading html tag and screws it up.

 

The svg document on its own works, but I want it in a jsp.

 

Has anyone done this successfully?




RE: svg question

2002-07-25 Thread Koes, Derrick


Looks like svg embed is the answer.

http://printx.org/svgembed/index.php


-Original Message-
From: Koes, Derrick 
Sent: Thursday, July 25, 2002 11:47 AM
To: 'Tomcat Users List'
Subject: svg question

 

Can Tomcat handle svg in a jsp page?

I put an svg document, set the content type to image/svg+xml, in a jsp, but
tomcat always puts a leading html tag and screws it up.

 

The svg document on its own works, but I want it in a jsp.

 

Has anyone done this successfully?



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: manager app

2002-07-25 Thread Koes, Derrick


Have you checked your web.xml?  Do you have a security-constraint?
You may need one.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 1:09 PM
To: [EMAIL PROTECTED]
Subject: manager app

Anybody have any ideas what I could be doing wrong?  This is how I have my
tomcat-users.xml file set up in my $CATALINA_HOME/conf directory.  I've done
a
restart (actually several) since adding tcuser.  When I try to go to
http://localhost:8080/manager, it prompts me for username and password.  I
enter tcuser and tcpass in, and, after 3 attempts, it brings me to a "401 -
Unauthorized" screen.  I'm running Tomcat 4.0.3 on RedHat Linux 6.2.  I
don't
see what could be going on, since this seems like a pretty straightforward
thing.  Any place I could look that may be short-circuiting my manager app?

Thanks,
-Jeff



  
  
  
  




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




log4j in tomcat

2002-07-31 Thread Koes, Derrick

If I start Tomcat as an NT service I get the WARNings that no log4j
appenders could be found.

If I start Tomcat from the start menu everything works as expected and I get
my logs.

 

Has anyone seen this behavior?

Is there an explanation?  I'm guessing some kind of timing issue.




RE: log4j in tomcat

2002-07-31 Thread Koes, Derrick

The long-winded answer was fine and helpful.  That's what I wanted to know,
but there is a bit more.

Actually, I haven't modified either of the bat files you mention.

I simply followed option 1 in the log4j short manual for logging in tomcat
4.x.  This follows:

Default Initialization under Tomcat
The default log4j initialization is particularly useful in web-server
environments. Under Tomcat 3.x and 4.x, you should place the
log4j.properties under the WEB-INF/classes directory of your
web-applications. Log4j will find the properties file and initialize itself.
This is easy to do and it works. 

You can also choose to set the system property log4j.configuration before
starting Tomcat. For Tomcat 3.x The TOMCAT_OPTS environment variable is used
to set command line options. For Tomcat 4.0, set the CATALINA_OPTS
environment variable instead of TOMCAT_OPTS. 



-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 31, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: log4j in tomcat

I think I know what the problem is.  To add log4j to Tomcat you added an
extra parameter to either startup.bat or catalina.bat right?  (I can't
remember which one.)  So when you start Tomcat from the start menu it
reads the change you made in the file.

Thing is, when Tomcat starts as a service it DOES NOT read that change
that you made.  Doh!  Here's why.  The installer creates the service like
any other service gets made - with the command prompt.  That's what the
tomcat.exe file is for in your /bin directory.  It does not run Tomcat,
it installs it as a service.  But, it installs with the same set of
parameters
as in the original (catalina|startup).bat file.

So what has to be done is that you must remove the Tomcat service and
re-install it all from the command prompt.  And here is a link to a web
page made by some really nice people that know more about it than me.

http://www.alexandriasc.com/software/JavaService/index.html

They have made a seperate file called JavaService.exe to run the command
against instead of Tomcat.exe.  The documentation page on that site explains
how to install everything and all the parameters you can set.

The only thing not explained is how to remove the Tomcat Service.
> Tomcat.exe -uninstall "Service Name"
(Enter the exact name, with spaces, that you see in the services menu.

The command you enter will look something like this - take note of the log4j
part:

 > "%CATALINA_HOME%\bin\tomcat.exe" -install "Apache Tomcat"
"%JAVA_HOME%\jre\bin\hotspot\jvm.dll"
-Dlog4j.configuration=/WEB-INF/conf/log4j.properties
-Djava.class.path="%CATALINA_START%" -Dcatalina.home="%CATALINA_HOME%" -Xrs
-start org.apache.catalina.startup.Bootstrap -params start
-stop org.apache.catalina.startup.Bootstrap -params stop
-out "%CATALINA_HOME%"\logs\stderr.log

Yeah, long.  But if you look at your (startup|catalina).bat file it will
look
similar.

Hope this answers your questions - I know my answers are long winded.

Charlie



> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 31, 2002 8:40 AM
> To: 'Tomcat Users List'
> Subject: log4j in tomcat
>
>
> If I start Tomcat as an NT service I get the WARNings that no log4j
> appenders could be found.
>
> If I start Tomcat from the start menu everything works as
> expected and I get
> my logs.
>
>
>
> Has anyone seen this behavior?
>
> Is there an explanation?  I'm guessing some kind of timing issue.
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Tomcat/Apache authentication

2002-08-12 Thread Koes, Derrick

I put this in my httpd.conf file:

 



AuthType Basic

AuthName "protected area"

AuthUserFile "C:/Program Files/Apache Group/users"

require user koes



 

I get the browser authentication popup and I enter the username and password
that is in my AuthUserFile.

 

However, I still get a 403 error from tomcat even though I have
tomcatAuthentication set to false in the AJP Connector.

 

Does anyone have any ideas why this is happening?




JDBCRealm.Digest

2003-01-29 Thread Koes, Derrick

Has anyone else encountered a java.lang.ClassCastException running the
catalina code JDBCRealm.Digest?

Thanks,
Derrick


This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




Diff 4.1.18 and 4.1.24

2003-03-25 Thread Koes, Derrick

Can anyone point me to some documentation which notes the differences
between 4.1.18 and 4.1.24?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Basic authentication question

2003-03-25 Thread Koes, Derrick

I wish to replace tomcat's 401 error page with something more elegant and
specific to my web app.  How can I do this?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Basic authentication question

2003-03-25 Thread Koes, Derrick

Unfortunately, this does not work.
Tomcat seems to use 401 as a prompt to put up the basic auth login dialog.
If you add the configuration below, it goes to this page first without ever
prompting for user login.

Do you have any other suggestions?

Thanks,
Derrick



-Original Message-
From: Boon Seong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 5:27 PM
To: Tomcat Users List
Subject: Re: Basic authentication question

add this to the web.xml


401
/errorpage.jsp
  

- Original Message -
From: "Koes, Derrick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 6:22 PM
Subject: Basic authentication question


>
> I wish to replace tomcat's 401 error page with something more elegant and
> specific to my web app.  How can I do this?
>
> Thanks,
> Derrick
>
>
>
> This electronic transmission is strictly confidential to Smith & Nephew
and
> intended solely for the addressee.  It may contain information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Basic authentication question

2003-03-25 Thread Koes, Derrick

Sorry, it is a protected resource and I want to continue to use basic
authentication, not form authentication.  I still don't see a way around the
problem.

The relevant part of my web.xml:



  dora
  /index.jsp
  GET
  POST


  1
  2
  3

  
  
BASIC
DORA
  

-Original Message-
From: Boon Seong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 5:37 PM
To: Tomcat Users List
Subject: Re: Basic authentication question

In that case, meaning it is a protected resource right ? Maybe u can try
using
the container's security feature such as putting this configuration in your
web application's web.xml file.



  admin page
  /admin/*




FORM

  /admin/login.jsp
  /admin/error.jsp

 

- Original Message -----
From: "Koes, Derrick" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 6:31 PM
Subject: RE: Basic authentication question


>
> Unfortunately, this does not work.
> Tomcat seems to use 401 as a prompt to put up the basic auth login dialog.
> If you add the configuration below, it goes to this page first without
ever
> prompting for user login.
>
> Do you have any other suggestions?
>
> Thanks,
> Derrick
>
>
>
> -Original Message-
> From: Boon Seong [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 5:27 PM
> To: Tomcat Users List
> Subject: Re: Basic authentication question
>
> add this to the web.xml
>
> 
> 401
> /errorpage.jsp
>   
>
> - Original Message -
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 6:22 PM
> Subject: Basic authentication question
>
>
> >
> > I wish to replace tomcat's 401 error page with something more elegant
and
> > specific to my web app.  How can I do this?
> >
> > Thanks,
> > Derrick
> >
> >
> >
> > This electronic transmission is strictly confidential to Smith & Nephew
> and
> > intended solely for the addressee.  It may contain information which is
> > covered by legal, professional or other privilege.  If you are not the
> > intended addressee, or someone authorized by the intended addressee to
> > receive transmissions on behalf of the addressee, you must not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in error, please
> > notify the sender as soon as possible and destroy this message.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to Smith & Nephew
and
> intended solely for the addressee.  It may contain information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



re-post: basic auth problem

2003-03-26 Thread Koes, Derrick

Securing index.jsp as a protected resource and using basic authentication
prevents the error part of the deployment descriptor from the
expected/desired behavior for a 401 error.  I would like to have MY 401
error page show after three invalid login attempts rather than Tomcat's.

Is this something that can be handled through the ErrorDispatcherValve?
Is anyone using this valve?  Can you provide an example?


401
/error401.jsp
  




  dora
  /index.jsp
  GET
  POST


  1
  2
  3

  
  
BASIC
DORA
  


Thanks,
Derrick




This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Is there a way to invalidate all sessions on tomcat startup?
Can someone provide an example?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-----
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Can this be done with a listener?


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 4:14 PM
To: 'Tomcat Users List'
Subject: RE: invalidate all sessions on tomcat start


Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick


Below is my configuration.  SESSIONS.ser is still written despite this
configuration.  








  
  
  
  







-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:27 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

or use the persistence manager


  


> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -----Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMA

RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Thanks.

This caused me to look a bit more closely.  The path was missing the
beginning "/".



-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 5:49 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

oops, 

try 

pathname=""

and set the debug="10" on your standardmanager to see what is going on,

Filip

> -----Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
>   
> Below is my configuration.  SESSIONS.ser is still written despite this
> configuration.
> 
> 
> 
>   
>className="org.apache.catalina.realm.JDBCRealm" connectionName="dora"
> connectionPassword="dora" connectionURL="jdbc:oracle:oci:@doradb"
> digest="MD5" driverName="oracle.jdbc.OracleDriver" 
> roleNameCol="D_RoleId"
> userCredCol="D_Password" userNameCol="D_Username" 
> userRoleTable="Dora_User"
> userTable="Dora_User"/>
>   
>appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" noRoot="false"/>
>   
>className="org.apache.catalina.session.StandardManager" pathname="">
>   
>   
>   
>className="org.apache.catalina.logger.FileLogger" directory="logs"
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>   
>   
> 
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> or use the persistence manager
> 
>   debug="0"
>  saveOnRestart="false"
>  maxActiveSessions="-1"
>  minIdleSwap="-1"
>  maxIdleSwap="-1"
>  maxIdleBackup="-1">
>className="org.apache.catalina.session.FileStore"/>
> 
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 1:17 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Can this be done with a listener?
> > 
> > 
> > -Original Message-
> > From: Koes, Derrick 
> > Sent: Wednesday, March 26, 2003 4:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > Either or.  I don't wish anything to timeout, yet I want them to be
> > invalidated when the server is restarted (at shutdown, or 
> at startup).
> > 
> > Thanks,
> > Derrick
> > 
> > -Original Message-
> > From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 4:03 PM
> > To: Tomcat Users List
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > what do mean you by "invalidating" on startup.
> > Startup an instance there are no sessions, unless they have 
> > been saved from
> > a previous run.
> > 
> > so are you really asking how to prevent them being saved on 
> shutdown?
> > 
> > Filip
> > 
> > > -Original Message-
> > > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 12:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: invalidate all sessions on tomcat start
> > > 
> > > 
> > > 
> > > Is there a way to invalidate all sessions on tomcat startup?
> > > Can someone provide an example?
> > > 
> > > Thanks,
> > > Derrick
> > > 
> > > 
> > > 
> > > This electronic transmission is strictly confidential to 
> > > Smith & Nephew and
> > > intended solely for the ad

unpackWars not working

2003-03-26 Thread Koes, Derrick


The following configuration is not unpacking my war file.
I cannot understand why.  unpackWARs is set to true.
Can anyone help?














Thanks,
Derrick




This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

There is no other context other than the "Default Context".


-Original Message-----
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -----Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick
OK, I see this is a known issue.  H.
I believe tomcat should first unpack the wars, THEN determine if docBase is
valid.

At any rate, it seems I have to design around this feature or submit a
patch.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:17 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


There is no other context other than the "Default Context".


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

I guess the other option would be to muck with the startup files to delete
sessions before starting up.  Hm.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:36 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working

OK, I see this is a known issue.  H.
I believe tomcat should first unpack the wars, THEN determine if docBase is
valid.

At any rate, it seems I have to design around this feature or submit a
patch.



-Original Message-----
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:17 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


There is no other context other than the "Default Context".


-----Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended

overhead running from war rather than unpacked

2003-03-26 Thread Koes, Derrick

How much overhead is there running directly from the war file rather than
unpacked?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Bug #5585, #11091, #13924, #18040 Workaround ???

2003-03-26 Thread Koes, Derrick

Sorry, no, but I've been looking for one.  I want to show MY OWN error page
for a 401.

I've posted to this list about this, but to no avail thus far.

Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
resource.  Sort of makes sense, but makes it difficult to use the 
tags to get a customized error page for a 401.



-Original Message-
From: x1x 82 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 8:12 PM
To: [EMAIL PROTECTED]
Subject: Bug #5585, #11091, #13924, #18040 Workaround ???

Does anybody know of a workaround for the following Tomcat 4.1.x bugs (which

I think are actually the same bug reported over and over again)...

http://issues.apache.org/bugzilla/show_bug.cgi?id=5585
http://issues.apache.org/bugzilla/show_bug.cgi?id=11091
http://issues.apache.org/bugzilla/show_bug.cgi?id=13924
http://issues.apache.org/bugzilla/show_bug.cgi?id=18040

The suggestions within the reports above have not worked so far.

Thanks,
Clint


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Bug #5585, #11091, #13924, #18040 Workaround ???

2003-03-27 Thread Koes, Derrick

Interestingly, though if I configure web.xml with


401
/error401.jsp
  

the browser doesn't get the chance to "ignore"/decide to pop-up the login
dialog.  That is significantly different behavior from when error-page is
not in the deployment descriptor.  It just seems that making such a
seemingly simple change shouldn't produce such different behavior, don't you
think?

I couldn't find this bit documented anywhere.  Seems important.

Thanks very much for your response.



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 11:12 PM
To: Tomcat Users List
Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???



On Wed, 26 Mar 2003, Koes, Derrick wrote:

> Date: Wed, 26 Mar 2003 20:29:00 -0500
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???
>
>
> Sorry, no, but I've been looking for one.  I want to show MY OWN error
page
> for a 401.
>
> I've posted to this list about this, but to no avail thus far.
>
> Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
> resource.  Sort of makes sense, but makes it difficult to use the 
> tags to get a customized error page for a 401.
>

You do realize, I hope, that it's the *browser* that decides to ignore
whatever the server sends along with a 401 error and chooses to pop up the
login dialog instead?

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: overhead running from war rather than unpacked

2003-03-27 Thread Koes, Derrick

Is expandWARs something different than the unpackWARs Host attribute?


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 11:49 AM
To: Tomcat Users List; Rasputin
Subject: Re: overhead running from war rather than unpacked



On Thu, 27 Mar 2003, Rasputin wrote:

> Date: Thu, 27 Mar 2003 11:52:18 +
> From: Rasputin <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Rasputin <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: overhead running from war rather than unpacked
>
> * Craig R. McClanahan <[EMAIL PROTECTED]> [0312 07:12]:
>
> Thanks for that, Craig - top perfromacen tuning tips!
>
> With this in mind, is there a definitive way to
> ensure clients get a 'fresh' copy of a webapp?
> How does tomcat/catalina decide when a webapp has been updated -
> doe sit look at the war before using the expanded content, for example?
>

Are you talking about the case where you just drop a WAR file into the
webapps directory?  if you've got expandWARs set to true, the WAR will be
expanded into a directory with the same base name -- *if* it does not
exist already.  However, if the directory exists Tomcat will *not*
re-expand the updated WAR, so you have to remove the old directory first
(as well as replace the WAR).

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: overhead running from war rather than unpacked

2003-03-27 Thread Koes, Derrick

Don't apologize.  Just trying to make sure my ignorance wasn't too deep.;-)



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 12:14 PM
To: Tomcat Users List
Cc: 'Rasputin'
Subject: RE: overhead running from war rather than unpacked



On Thu, 27 Mar 2003, Koes, Derrick wrote:

> Date: Thu, 27 Mar 2003 11:57:06 -0500
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>,
>  'Rasputin' <[EMAIL PROTECTED]>
> Subject: RE: overhead running from war rather than unpacked
>
>
> Is expandWARs something different than the unpackWARs Host attribute?
>

No ... I just remembered the wrong name.  I never use this feature myself
(if I deploy a WAR file I can't see much value in spending the time it
takes Tomcat to do the unpack), and didn't go look it up; sorry.

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Out of Memory

2003-04-02 Thread Koes, Derrick

Remember that if you are running Tomcat as an NT Service, you will have to
rebuild the service with tomcat.exe with new memory parameters.

"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log"

I think the default out-of-the-box install has a max of 128MB.

Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: How to hand in the passwords to 3000 users [urgent!]

2003-04-02 Thread Koes, Derrick

Write a servlet (JSP) to ask for that information from the user on first
access.



-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2003 10:51 AM
To: Tomcat Users List
Subject: Re: How to hand in the passwords to 3000 users [urgent!]

Hi !,
My application is some kind of schoolar system. In it the students could
find all their schoolar information by their own. You know, grades,
schedules, finantial information, etc.. So  the user id is given by their
student id... so that is clear... but the problem begin because we need to
give their passwords to enter to the site We don't want to give a
general password for all, because some 'bad' friends of some
students could know his/her student id and enter to the site with the
general password and do some 'changes'...
We need some help to find the most secure way to hand in or to let the users
know their password to enter to the site. But we don't have their e-mails.

Thanks!

"Goehring, Chuck Mr., RCI - San Diego" wrote:

> Nancy,
>
> Hope I understood you problem correctly.  It might be worth doing a signup
application, then advertise it through the management chain of command with
a url and instructions.  Have the app capture the information to a text file
or database.  Get the email, username and password that way.  I think I'd
also put password change & mailback capabilities in the app so you don't
have to change passwords for users all the time.
>
> Chuck
>
> -Original Message-
> From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 12:55 PM
> To: Tomcat Users List
> Subject: How to hand in the passwords to 3000 users [urgent!]
>
> Hi all!
>
> I'm trying to entablish the best way to hand in their own user_id and
> password to the 3000 users of an applicattion developed to Internet.
>
> I don't know which could be the best way to do this without forgetting
> the security because each user has some confidential information in
> his/her session.
>
> Could you please help me?
> Any clue could help me!
> Thanks in advance!
>
> Nancy.
>
> ps. I don't have their e-mails so, descart the email way.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: JSDK/JRE

2003-05-29 Thread Koes, Derrick

If you use SUN,
http://servlet.java.sun.com/help/legal_and_licensing/#63


-Original Message-
From: Noel Rappin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 2:15 PM
To: Tomcat Users List
Subject: JSDK/JRE

Sorry if this is an FAQ, but I can't find the exact information anywhere.

I see that Tomcat requires a JDK, not a JRE to enable compilation of JSP 
pages.  Is there any reasonable way to run off a JRE?  Are there any 
license issues involved in distributing the JDK as part of a web 
application instead of the JRE (we actually distribute the web 
application, so it's not a question of just having one copy on our 
server)?   How do other people manage this in practice?

Thanks,

Noel Rappin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Tomcat STILL freezing - time to look at another app server?

2003-05-29 Thread Koes, Derrick

I don't know if this helps any, but this has benefited me.

If using an oracle database, try oracle.jdbc.pool.OracleOCIConnectionPool to
get connection pool stats.



-Original Message-
From: Carl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 2:48 PM
To: Tomcat Users List
Subject: Re: Tomcat STILL freezing - time to look at another app server?

I have had a problem that sounds very similar many times (I don't learn very
fast.)  In all my cases, the problem was running the connection pool out of
connections because I wasn't freeing the connections in c couple of places.
The fact that it occurs when trying to insert something into the data base
indicates that it is related to that activity.

- Original Message -
From: "Hunter, Sandra" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 1:48 PM
Subject: RE: Tomcat STILL freezing - time to look at another app server?


> I am not able to reproduce the problem reliably: that's what is making me
> crazy.
> It happens when things are being inserted to the database but never on the
> same page, never everytime, doesn't matter what else I am doing or what
else
> has been done. No one else is accessing this database right now so I am
the
> only one and I have tested and retested all the sql.
> I am stumped.
> Hopefully running on the server will improve the situation.
> You know, though, I am demoing the app for my client this afternoon so
maybe
> it is just a smelling fear thing.
> Thanks for the feedback you guys.
>
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 8:35 AM
> To: Tomcat Users List
> Subject: RE: Tomcat STILL freezing - time to look at another app server?
>
>
> Howdy,
> That's unfortunate ;(  I've had tough issues that appeared to be random
> (like your network traffic hypothesis) and were very difficult to debug
> ;(
>
> I've tried many many containers / app servers, and always come back to
> tomcat.  This was even before I started contributing to tomcat's
> codebase, and is more true now than ever.
>
> So you are never able to reproduce the problem reliably?
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Hunter, Sandra [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, May 28, 2003 11:26 AM
> >To: 'Tomcat Users List'
> >Subject: Tomcat STILL freezing - time to look at another app server?
> >
> >Well this issue continues. Code has been commented, logged, oracle
> >permissions all tickety boo, no locks.
> >
> >It really is intermittent, and in my opinion seems to be somewhat
> related
> >to
> >network traffic. I talked to one of the tech guys and he seemed to
> think I
> >was nuts.
> >
> >It never happens at night or on the weekends when I am pretty much the
> only
> >one on the network.
> >
> >Does that sound possible to any one with more experience than I?
> >
> >Although we moved it to the live server we had some install problems
> there
> >and so I am still running off my dev machine. It is just a regular P4
> with
> >about 1600mhz and 256 ram. Do you think the freezing will cease when
> >running
> >off the server?
> >
> >And on the other subject: have any of you tried other app servers out
> >there?
> >Do you have any opinions? Tomcat seems to be the industry standard but
> if I
> >can't resolve this freezing issue I might get some pressure to try some
> >different technology.
> >
> >-Original Message-
> >From: Hunter, Sandra [mailto:[EMAIL PROTECTED]
> >Sent: Friday, May 16, 2003 2:52 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Tomcat Freezing?
> >
> >The lock may be an issue: I'll run that past our DBA but that's the
> only
> >thing I haven't looked at.
> >We have actually moved the app to another machine to see if that makes
> any
> >difference.
> >If anyone gets a bright idea I would love to hear it!
> >Puzzled Sandra
> >
> >-Original Message-
> >From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
> >Sent: Friday, May 16, 2003 12:11 PM
> >To: Tomcat Users List
> >Subject: Re: Tomcat Freezing?
> >
> >I'm running out of ideas myself... I gather this is quite a  beefy
> machine
> >you're running it on?
> >
> >Are you using the right version of the Oracle Thin Driver for the
> version
> >of
> >
> >Oracle you are running? Have you got a DBA on site or are you able to
> look
> >at
> >the appropriate v$ view to see what query it died on and possibly why?
> >
> >It's not something like not releasing a lock on a record or commits not
> >being
> >on or something silly like that in the Oracle config?
> >
> >Jason
> >
> >On Sat, 17 May 2003 02:29 am, Hunter, Sandra wrote:
> >> I spoke too soon. I am really stumped now.
> >> Code that ran yesterday, won't run today. I have gone through it line
> by
> >> line, commenting it all out, and then gradually adding in each line,
> and
> >> then it runs again. Same code. No changes.
> >> If I restart Tomcat the code will run. Someti

upgrade JDK

2003-05-29 Thread Koes, Derrick

What is the correct procedure to upgrade to a more recent JDK for a tomcat
install?

Thanks,
Derrick






This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



java.endorsed.dirs

2003-06-12 Thread Koes, Derrick


I have tomcat 4.1.18 installed on Win2K.

If I run it as a service or from the command line, setclasspath.bat is
called and java.endorsed.dirs is set to
%BASE_DIR%\bin;%BASE_DIR%\common\endorsed.  Therefore, the overrides (xalan
2.5.1 and xerces 2.4.0) that I have in the endorsed directory get picked up.

However, if I run from the start menu, java.endorsed.dirs is not set because
the following is run:
C:\j2sdk1.4.1_01\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache
Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar" start


I realize I can modify this by hand, but I want all ways of running tomcat
to be consistent out of the box.

Is there a bug against this?



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: invalidating sessions

2003-07-23 Thread Koes, Derrick
You may use HttpSession.invalidate() to invalidate a session.
 
-Original Message-
From: James Michelich [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 23, 2003 4:30 PM
To: Tomcat Users List
Subject: invalidating sessions
 
A quick question about invalidating sessions:
 
Is there a way to detect whether a session is still active without
implementing some sort of login/logout scheme (i.e. is there some way to
invalidate a session without explicit input from the user, other than simply
letting it time out)?
 
Thanks,
 
James
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service

2003-07-24 Thread Koes, Derrick

You must rebuild the service with the new options.

"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Djava.endorsed.dirs="$CATALINA_HOME$\common\endorsed"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log"

Replace $CATALINA_HOME$ and $JAVA_HOME$ with the appropriate values.
Change -Xmx and -Xms as appropriate.
We use instsrv with the REMOVE command to remove the old service before
running the above, or rename the service.  This is easier than re-installing
tomcat.

-Original Message-
From: Paul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k
service

after assigning the following environment variables the java runtime
options as follows:

eg: JAVA_OPTS=-Xmx128m -Xms128m

tried with:
CATALINA_OPTS
JAVA_OPTS

amount of RAM memory used stayed aprox the same.  Though i was expecting
more memory to be used because of the extra memory that should have been
allotted to java instance for Tomcat.  Consequently, i am assuming that
options were not applied by simply setting these environment variables,
at least when Tomcat is started as a service.

Where and how are java runtime options to be specified with Tomcat 4.1
(JDK 1.4.2) when it is started as a win2k service?

[EMAIL PROTECTED]

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: DOM-to-String

2003-07-30 Thread Koes, Derrick
You need a DOMWriter.

http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/DOMWriter.html



-Original Message-
From: Ben Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:38 PM
To: Tomcat Users List
Subject: DOM-to-String

All,
I have a org.w3c.dom.Document object and I want to pull the string
representation of it.  Do I need to use the Xerces XMLSerializer or is there
an interface for it within org.w3c.dom?


Ben Johnson
Senior Software Developer
 
Collect America, LTD.
1999 Broadway, Suite 2150
Denver, CO 80202
[p]: 303.296.3345 x124


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: DOM-to-String

2003-07-30 Thread Koes, Derrick

I'll assume you are using tomcat since you posted to this list.
org.apache.catalina.util.DOMWriter in the catalina.jar.

-Original Message-
From: Ben Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:56 PM
To: 'Tomcat Users List'
Subject: RE: DOM-to-String

> You need a DOMWriter.
> 
> http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/DOMWriter.html


Derrick,
Where do I find an implementation of DOMWriter?

Ben Johnson


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Tomcat4, where is classpath set when run as service

2003-07-30 Thread Koes, Derrick

You could rebuild your service.

instsrv.exe "Tomcat 4.1" REMOVE  //to remove the existing service

// build the service
"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Djava.endorsed.dirs="$CATALINA_HOME$\common\endorsed"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log"

replacing $CATALINA_HOME$ and $JAVA_HOME$ where appropriate.

Do you REALLY want to do this?  If you are just adding these to run your web
app, include them in your web apps war file.  Another possibility is to put
them in common/lib or server/lib or shared/lib.

-Original Message-
From: Paul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 4:39 PM
To: Tomcat Users List
Subject: Re: Tomcat4, where is classpath set when run as service

Hi John,
   thanks for reply.  How would one go about adding .jar or .zip files to
the classpath given it is created as you say when tomcat starts as a win2k
service?

paul lomack


- Original Message - 
From: "John Turner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 3:47 PM
Subject: Re: Tomcat4, where is classpath set when run as service


>
> It isn't.
>
> Tomcat 4.1 uses the CATALINA_HOME and JAVA_HOME environment variables
> (defined at the System level) to build a classpath at startup.
>
> John
>
> Paul wrote:
>
> > Hi Folks,
> >
> > Does anyone know where the classpath is set for Tomcat 4.1, when Tomcat4
is started and runs as a win2k service?
> >
> > thanks in advance for any help,
> > paul lomack
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: error-code 401

2003-08-07 Thread Koes, Derrick

This is a known bug/feature.  I don't think it is planned to be changed.

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 8:39 AM
To: Tomcat Users List
Subject: error-code 401

Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml


401
error/401.jsp


I m using tomcat 4.1.27 standalone on linux.

I need your help please.

-- 

Georges Roux




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars

2003-08-14 Thread Koes, Derrick

I noticed that getRealPath returns null when running packed.  This makes
sense because there is no "real" path; it's running from within the war.
I didn't want to corrupt any responses with this.  I also wanted to make
sure this is reliable.  Sounds as if it is.

Thanks,
Derrick


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 3:48 PM
To: Tomcat Users List
Subject: RE: unpackWars


Howdy,

>One way that I know that seems to work with Tomcat is to call
>getServletContext().getRealPath()
>If it returns null, that means you are running as a WAR file.
>
>I'm not sure how reliable this is.  Seems to be fine from what I've
>seen.

This is more or less reliable.  The original question is skewed at best,
however, as a webapp is not supposed to know whether it's packed or not
and certainly not supposed to run differently depending on whether it's
packed or not.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



unpackWars

2003-08-14 Thread Koes, Derrick
Is there any way to query tomcat from my web app at runtime to find out
whether it's running my web app as packed or unpacked?
 
I wish to do some things differently for development purposes if running
unpacked.
I set unpackWARs in the Host element in the server.xml configuration file.
 
Thanks,
Derrick
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


maintain directory structure on download

2003-08-25 Thread Koes, Derrick
Has anyone written a web app that downloads files within a directory
structure and maintains the directory structure on the client machine?
I'd like to do it without archiving the files in a zip file first.  How do
you identify a directory in a multipart download?
 
Thanks,
Derrick
 
 
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


Tomcat startup with JDBC Realm

2003-08-29 Thread Koes, Derrick
I have a timing issue where both my database and tomcat are being run as
Windows services.  If my server reboots for some reason, even though I have
startup dependencies (tomcat depends on db), tomcat often doesn't start my
web app because it failed the initial JDBC check it does for a database when
there is a JDBC realm configured.  I presume this is because Windows reports
the db service as started so the tomcat service attempts to start.  However,
the db isn't fully up when the service is "started".
 
Have others witnessed this issue?  Workarounds?
 
 
Thanks,
Derrick
 
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


FW: Tomcat startup with JDBC Realm [RE-POST]

2003-09-02 Thread Koes, Derrick
 
 
-Original Message-
From: Koes, Derrick 
Sent: Friday, August 29, 2003 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat startup with JDBC Realm
 
I have a timing issue where both my database and tomcat are being run as
Windows services.  If my server reboots for some reason, even though I have
startup dependencies (tomcat depends on db), tomcat often doesn't start my
web app because it failed the initial JDBC check it does for a database when
there is a JDBC realm configured.  I presume this is because Windows reports
the db service as started so the tomcat service attempts to start.  However,
the db isn't fully up when the service is "started".
 
Have others witnessed this issue?  Workarounds?
 
 
Thanks,
Derrick
 
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: FW: Tomcat startup with JDBC Realm [RE-POST]

2003-09-02 Thread Koes, Derrick

Thanks Tim.
It's tough to get approval for inclusion in my configuration without an
official release and we're stuck on 4.1.X (actually 4.1.18) right now.
I'll try it anyway.

Derrick

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2003 9:59 AM
To: Tomcat Users List
Subject: Re: FW: Tomcat startup with JDBC Realm [RE-POST]

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

-Tim

Koes, Derrick wrote:

>  
>  
> -----Original Message-
> From: Koes, Derrick 
> Sent: Friday, August 29, 2003 11:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat startup with JDBC Realm
>  
> I have a timing issue where both my database and tomcat are being run as
> Windows services.  If my server reboots for some reason, even though I
have
> startup dependencies (tomcat depends on db), tomcat often doesn't start my
> web app because it failed the initial JDBC check it does for a database
when
> there is a JDBC realm configured.  I presume this is because Windows
reports
> the db service as started so the tomcat service attempts to start.
However,
> the db isn't fully up when the service is "started".
>  
> Have others witnessed this issue?  Workarounds?
>  
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



escaping problems--ha!

2003-09-10 Thread Koes, Derrick
My scenario involves a user who wishes to enter \' in an html input field.
I must then convert that to a javascript variable (for any number of
reasons).
However, when I attempt to escape backslashes then attempt to escape
apostrophes, I end up with a javascript error: Unterminated string constant.
I can see the source on my page has the javascript variable something like:
var name = '\\''.
What are the correct steps to correctly escape data such as \' or any number
of backslashes or apostrophes.
 
Thanks,
Derrick
 
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: OT How to maintain a version number

2003-10-10 Thread Koes, Derrick
Property file?

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 8:17 AM
To: Tomcat Users List
Subject: OT How to maintain a version number

I've written an application where I need to keep up with the version 
number.  I'm trying to figure out an elegant way to maintain that in the 
simplest and perhaps the most automated way.  My source is kept in a cvs 
  archive but of course there are dozens of files so it would be 
difficult to base a version number on the version number of a single 
source or would it?

The number would be displayed as part of the title( My App 
0.92) in the index.jsp so it would have to be easily available 
to that file. I suppose I could use JNDI, I could hardwire it into the 
index.jsp file, but I probably want to put it into other .jsp files also 
and it would be harder to keep up with that way.

Anyway I'm looking for good ideas from this very enlightened crowd.

Thanks,
Jim.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



basic jdbc realm authentication

2003-10-14 Thread Koes, Derrick
I'm using tomcat 4.1.18 with Microsoft Internet Explorer 6.0 sp1 as the
browser and oracle as the database to which I authenticate users.
 
Oddly, the colon character cannot be used in user names, but can be used in
passwords.  I'm assuming my code is at fault, but I cannot see how.
Perhaps there is something special about the colon character to the
authentication dialog.
 
Thanks for the help.
 
Derrick
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: Tomcat 5 and oracle

2003-12-10 Thread Koes, Derrick

I'm not 100% certain, but does Oracle even offer an 8.1.7/JDK 1.4
ojdbc14.jar file?  I think it is only offered for 9.2.  You are stuck with
classes12.zip.  I would try that.  The common/lib directory is the correct
place.

http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc817.html



-Original Message-
From: John Sidney-Woollett [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 12:25 PM
To: Jonathan Drnek
Cc: [EMAIL PROTECTED]
Subject: Re: Tomcat 5 and oracle

Try using the thin driver - it's jar file is classes12.jar

Place it in [TOMCAT_HOME]/common/lib

John Sidney-Woollett

Jonathan Drnek said:
> I am having a problem setting up a data source in tomcat.  I seem to
> remember having this problem last time I played with it several moths
> ago but I don't remember what I did to fix it.
>
> I am running Tomcat 5.0.16 with JVM version 1.4.2_03-b02 on windows
> 2000.
>
> I am trying to connect to an Oracle 8.1.7.1.0 database.
>
> I have placed the ojdbc14.jar file in common\lib
>
> The error I am getting is
>
> javax.servlet.ServletException: Cannot create JDBC driver of class ''
> for connect URL 'null', cause: No suitable driver
>
> I am using oracle.jdbc.driver.OracleDriver because that's what the docs
> said, but I seem to recall that was not correct.  I just can't find
> anything that tells me what other driver I should be using.
>
>
> My server.xml file has
>
> .
> .
> .
> 
> .
> .
> .
> 
>   
>   
> validationQuery
> select * from dual
>   
>   
> url
> jdbc:oracle:thin:@holl302h:1521:ORDT
>   
>   
> password
> password
>   
>   
> maxActive
> 4
>   
>   
> maxWait
> 5000
>   
>   
> driverClassName
> oracle.jdbc.driver.OracleDriver
>   
>   
> username
> username
>   
>   
> maxIdle
> 2
>   
> 
> .
> .
> .
>
> web.xml looks like
>
> 
>
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>   Metrology Lab
>   
>  First Source Metrology Lab
>   
>
>  
>  Oracle Datasource example
>  jdbc/ordt
>  javax.sql.DataSource
>  Container
> 
>
> 
>
> my code looks like
>
> Context initContext = new InitialContext();
> Context envContext
> (Context)initContext.lookup("java:/comp/env");
> DataSource ds = (DataSource)envContext.lookup("jdbc/ordt");
> Connection conn = ds.getConnection();
>
> Thanks for any help,
>
> Jon Drnek
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Tomcat 5 and oracle

2003-12-10 Thread Koes, Derrick

I assume you've checked the state of the ds object.  Is it valid after
you've gotten it from the lookup?

In other words cast down to an Object and perform getClass, etc. to
determine it is a valid object.  If it's not chances are your XML
configuration is not good (server.xml or web.xml).

Upon further review, you need an auth attribute on your Resource since you
are using .  See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource
%20Parameters

"DBCP provides support for JDBC 2.0. On systems using a 1.4 JVM DBCP will
support JDBC 3.0. Please let us know if you have used DBCP and its JDBC 3.0
features with a 1.4 JVM."  --from Tomcat docs, sounds like 1.4 support may
be a little shaky.

You may want to try upgrading DBCP, collections, and pool jars in
common/lib.  The example mention in the docs for Oracle 8i also includes the
factory as a parameter.  See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html#Database%20Connection%20Pool%20(DBCP)%20Configurations


The classes12.jar only comes with Oracle 9 versions.  The classes12.zip
comes with Oracle 8.1.7 and earlier.  You were correct to rename it, or
extract and re-jar.


-Original Message-
From: Jonathan Drnek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 1:11 PM
To: Tomcat Users List
Subject: RE: Tomcat 5 and oracle

Classes12.zip didn't work either, even after I renamed it to
classes12.jar 

Actually, 

DataSource ds = (DataSource)envContext.lookup("jdbc/ordt");
Connection conn = ds.getConnection();

Still didn't work and 

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@holl302h:1521:ORDT","ordl
ine","junk");

still did work.


I am going to try and download a copy of the 1.2 jdk since that is what
classes12 said it needed and try that.  

Any other suggestions?

Jon
-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 12:45 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5 and oracle


I'm not 100% certain, but does Oracle even offer an 8.1.7/JDK 1.4
ojdbc14.jar file?  I think it is only offered for 9.2.  You are stuck
with
classes12.zip.  I would try that.  The common/lib directory is the
correct
place.

http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc817.html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



  1   2   >