Re: Problem in Tomcat 5.0.19 - Help Needed

2004-03-25 Thread shanmugampl
Hi Ramachandran,

  Are you using any custom tags(your own) in your menuinclude.jsp? 
Could you post your jsp page to get a clear insight about the issue.

Thanks
Shan
Ramachandran wrote:

Hi All,

I am using Tomcat 5.0.19. I am using file called menuinclude.jsp in all the
files using 
When i run the application, the page visited first time is displaying the
menu correctly. But when we visited the same page again, the menu is
displayed twice nad visited again repeated thriceand so on
Can any one tell me what is the problem.

But it is not happening in Tomcat 3.2 at all

Help Needed

-
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]


Re: Connection Pool setup.

2004-03-25 Thread Parsons Technical Services
Gordon,

What about resultset and statement? Since this fixes it then you DO have a
leak. Break it down and check each step to make sure that they are returned,
even if an exception is thrown. I have it in finally clauses as a last
resort if it fails normally. There is something leaving the connection
hanging.

Doug
- Original Message - 
From: "Gordon Luk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 26, 2004 2:31 AM
Subject: Re: Connection Pool setup.


> Hi Doug,
>
> O, thanks, it's work... BTW, thanks for remind, and i am the good
> citizen, allway return connection back to pool. ;-)
>
> Gordon
>
> Parsons Technical Services wrote:
>
> >Gordon,
> >
> >Just for grins and giggles try adding this as a test:
> >
> > 
> >  removeAbandoned
> >  true
> >  
> >
> >  
> >  removeAbandonedTimeout
> >  60
> >  
> >
> >To reclaim abandoned connections.
> >
> >If it drops you back to the min then you have a leak in you app.
> >
> >Check that connections, resultsets and statements are all closed.
> >
> >Doug
> >
> >- Original Message - 
> >From: "Gordon Luk" <[EMAIL PROTECTED]>
> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> >Sent: Thursday, March 25, 2004 11:18 PM
> >Subject: RE: Connection Pool setup.
> >
> >
> >
> >
> >>Here my setting...
> >>
> >>My problem is ... Connection pool look like don't open 10 connection at
> >>start-up, and when my servlet run for a while... Let it open up more
> >>connections(over 30) and then wait... (after a night .. :-D)... When I
> >>check database server, it still open more connections, I expect min. for
> >>10 only.
> >>
> >>My setup anything got wrong?  Thx.
> >>--->8
> >>
> >>...
> >>
> >>
> >>factory
> >>
> >>org.apache.commons.dbcp.BasicDataSourceFactory
> >>
> >>
> >>
> >>maxActive
> >>100
> >>
> >>
> >>
> >>maxIdle
> >>10
> >>
> >>
> >>minIdle
> >>10
> >>
> >>
> >>
> >>maxWait
> >>1
> >>
> >>
> >>username
> >>myuserid
> >>
> >>
> >>password
> >>mypassword
> >>
> >>
> >>
> >>driverClassName
> >>net.sourceforge.jtds.jdbc.Driver
> >>
> >>
> >>url
> >>
> >>
> >>jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5
> >>
> >>
> >>validationQuery
> >>select count(*) from tablename
> >>
> >>
> >>testOnBorrow
> >>true
> >>
> >>
> >>testWhileIdle
> >>true
> >>
> >>
> >>timeBetweenEvictionRunsMillis
> >>5000
> >>
> >>
> >>minEvictableIdleTimeMillis
> >>1
> >>
> >>
> >>
> >>
> >>--->8
> >>
> >>Regards,
> >>
> >>Gordon Luk
> >>
> >>
> >>
> >>-Original Message-
> >>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, March 25, 2004 7:03 PM
> >>To: Tomcat Users List; Tomcat Users List
> >>Subject: RE: Connection Pool setup.
> >>
> >>
> >>May help if you post your resource snipplet (replacing any host
> >>/user/passwd info)
> >>
> >> -Original Message-
> >>From: Gordon Luk [mailto:[EMAIL PROTECTED]
> >>Sent: Thu Mar 25 05:30:56 2004
> >>To: Tomcat Users List
> >>Subject: Connection Pool setup.
> >>
> >>Hi All,
> >>
> >>May be I missing understand the DBCP configuration. Anyone could
> >>help ? I want my connection pool are Max 100 connection, 10 conn. At
> >>start-up, max idle 10, when idle for 10 min then kill it. Something like
> >>that.
> >>
> >>   Thanks.
> >>
> >>
> >>Regards,
> >>
> >>Gordon Luk
> >>
> >>
> >>
> >>---
> >>Outgoing mail is certified Virus Free.
> >>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>---
> >>Incoming mail is certified Virus Free.
> >>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
> >>
> >>
> >>---
> >>Outgoing mail is certified Virus Free.
> >>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >

Re: Problem while importing CA certificates in Tomcat

2004-03-25 Thread Gregor . Kovac




Hi!

Use the latest JDK 1.4.2_04, because in earlier version there were
certificates that are not not valid anymore.

Best regards,
  Kovi

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac |[EMAIL PROTECTED]   |

|  In A World Without Fences Who Needs Gates?  |
|  Experience Linux.   |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~



   
  "anand ganapathy"
  <[EMAIL PROTECTED] Za:  [EMAIL PROTECTED]
  otmail.com>   kp:
Zadeva:  Problem while importing CA 
certificates in
  26.03.2004 08:24  Tomcat 
  Prosim,  
  odgovorite za
  "Tomcat Users
  List"
   
   




Hello all,
I am trying to establish secure communication using SSL on Tomcat V 4.1.30.
I have generated self-signed certificates using keytool utility ( in JDK
1.4
) and run Tomcat with SSL.I was able to establish secure communication. I
then requested for a certificate from Verisign and imported the same.When I

start tomcat I get the following error.

/


WARNING: Reinitializing ServerSocket
Mar 25, 2004 5:48:21 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint [SSL:
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]]
ignored exception: java.net.SocketException: SSL handshake error
javax.net.ssl.S
SLException: No available certificate corresponds to the SSL cipher suites
which
are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No

avai
lable certificate corresponds to the SSL cipher suites which are enabled.
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESo
cketFactory.java:154)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:387)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:557)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:536)

/


Please suggest who I can avoid the same?

Thanks in advance,
Cheers,
Anand

PS.) I have uncommented the "SSL HTTP/1.1 Connector" entry in
$CATALINA_HOME/conf/server.xml.

_
Get an  IndianOil Citibank ATM/Debit Card.
http://go.msnserver.com/IN/45534.asp Save upto 5% on your fuel expenses.


-
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]



Re: Connection Pool setup.

2004-03-25 Thread Gordon Luk
Hi Doug,

   O, thanks, it's work... BTW, thanks for remind, and i am the good 
citizen, allway return connection back to pool. ;-) 

Gordon

Parsons Technical Services wrote:

Gordon,

Just for grins and giggles try adding this as a test:


 removeAbandoned
 true
 
 
 removeAbandonedTimeout
 60
 
To reclaim abandoned connections.

If it drops you back to the min then you have a leak in you app.

Check that connections, resultsets and statements are all closed.

Doug

- Original Message - 
From: "Gordon Luk" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 11:18 PM
Subject: RE: Connection Pool setup.

 

Here my setting...

My problem is ... Connection pool look like don't open 10 connection at
start-up, and when my servlet run for a while... Let it open up more
connections(over 30) and then wait... (after a night .. :-D)... When I
check database server, it still open more connections, I expect min. for
10 only.
My setup anything got wrong?  Thx.
--->8

...
   
   
   factory
org.apache.commons.dbcp.BasicDataSourceFactory
   
   
   
   maxActive
   100
   
   
   
   maxIdle
   10
   
   
   minIdle
   10
   
   
   
   maxWait
   1
   
   
   username
   myuserid
   
   
   password
   mypassword
   
   
   
   driverClassName
   net.sourceforge.jtds.jdbc.Driver
   
   
   url


jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5
   
   
   validationQuery
   select count(*) from tablename
   
   
   testOnBorrow
   true
   
   
   testWhileIdle
   true
   
   
   timeBetweenEvictionRunsMillis
   5000
   
   
   minEvictableIdleTimeMillis
   1
   
   


--->8
Regards,

Gordon Luk



-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 7:03 PM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Connection Pool setup.

May help if you post your resource snipplet (replacing any host
/user/passwd info)
-Original Message-
From: Gordon Luk [mailto:[EMAIL PROTECTED]
Sent: Thu Mar 25 05:30:56 2004
To: Tomcat Users List
Subject: Connection Pool setup.
Hi All,

   May be I missing understand the DBCP configuration. Anyone could
help ? I want my connection pool are Max 100 connection, 10 conn. At
start-up, max idle 10, when idle for 10 min then kill it. Something like
that.
  Thanks.

Regards,

Gordon Luk



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004


-
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]


Problem while importing CA certificates in Tomcat

2004-03-25 Thread anand ganapathy
Hello all,
I am trying to establish secure communication using SSL on Tomcat V 4.1.30.
I have generated self-signed certificates using keytool utility ( in JDK 1.4 
) and run Tomcat with SSL.I was able to establish secure communication. I 
then requested for a certificate from Verisign and imported the same.When I 
start tomcat I get the following error.

/

WARNING: Reinitializing ServerSocket
Mar 25, 2004 5:48:21 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
SEVERE: Endpoint [SSL: 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]]
ignored exception: java.net.SocketException: SSL handshake error 
javax.net.ssl.S
SLException: No available certificate corresponds to the SSL cipher suites 
which
are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No 
avai
lable certificate corresponds to the SSL cipher suites which are enabled.
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESo
cketFactory.java:154)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:387)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:557)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
   at java.lang.Thread.run(Thread.java:536)

/

Please suggest who I can avoid the same?

Thanks in advance,
Cheers,
Anand
PS.) I have uncommented the "SSL HTTP/1.1 Connector" entry in 
$CATALINA_HOME/conf/server.xml.

_
Get an  IndianOil Citibank ATM/Debit Card.  
http://go.msnserver.com/IN/45534.asp Save upto 5% on your fuel expenses.

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


Problem in Tomcat 5.0.19 - Help Needed

2004-03-25 Thread Ramachandran
Hi All,

I am using Tomcat 5.0.19. I am using file called menuinclude.jsp in all the
files using 

When i run the application, the page visited first time is displaying the
menu correctly. But when we visited the same page again, the menu is
displayed twice nad visited again repeated thriceand so on

Can any one tell me what is the problem.

But it is not happening in Tomcat 3.2 at all

Help Needed


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



Re: Tomcat Hangs

2004-03-25 Thread Antonio Fiol Bonnín
kill -QUIT
to see what the threads are doing...
Surya Suravarapu wrote:

We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of 
Memory and good processor speed. Tomcat has been allocated 1 GB of max 
memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While 
using Tomcat with Apache we're getting "500 Internal Server Error". We 
are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have 
also increased the maxProcessors of the connector to 300 instead of the 
default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the 
number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
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]


RE: Apache & Tomcat & JK - Connection Problem.

2004-03-25 Thread Steven Perry
Hey EC

The packets are reaching the other computer, I can
ping to it succesfully. Also Tomcat is running and
listening to 8009. The listener definitions have not
been commented out.

--Steven

> Maybe the packets from one computer can't reach the
> other. Some firewall
> settings, maybe. Also, make sure Tomcat is running
> and listening on 8009
> port (connector not commented out and so on)
> 
> EC
> 
> -Original Message-
> From: Steven Perry [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 9:26 AM
> To: [EMAIL PROTECTED]
> Subject: Apache & Tomcat & JK - Connection Problem.
> 
> Hello All,
> 
> I am running Apache 2 and Tomcat 5. Both are running
> on 2 different Win-2k machines.
> 
> I've configured the httpd.conf / workers.properties
> and server.xml and below. My problem is :: I cannot
> seem to connect to Tomcat, below is the mod_jk.log
> too.
> 
> --
> httpd.conf
> --
> 
> LoadModule jk_module "E:/Apache2/modules/mod_jk.dll"
> 
> JkWorkersFile "E:/Apache2/conf/workers.properties"
> JkLogFile "E:/Apache2/logs/mod_jk.log"
> JkLogLevel debug
> 
> JkMount / tomcat1
> JkMount /* tomcat1
> 
> --
> workers.properties
> --
>  
>  workers.apache_log= E:\Apache2\httpd
>  workers.tomcat_home= C:\Tomcat
>  workers.java_home= C:\j2sdk1.4.1_06
>  
>  ps=\
> 
>  worker.list= tomcat1
> 
>  worker.tomcat1.type=ajp13 
>  worker.tomcat1.host= 192.168.100.10
>  worker.tomcat1.port=8009 
>  worker.tomcat1.cachesize=10 
>  worker.tomcat1.cache_timeout=600 
>  worker.tomcat1.socket_keepalive=1 
>  worker.tomcat1.socket_timeout=300 
> 
> --
> server.xml
> --
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0"/>
> 
> 
> 
> --
> mod_jk.log
> --
> 
> [Thu Mar 25 12:42:25 2004]  [jk_uri_worker_map.c
> (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [Thu Mar 25 12:42:25 2004]  [jk_uri_worker_map.c
> (477)]: Attempting to map URI '/'
> [Thu Mar 25 12:42:25 2004]  [jk_uri_worker_map.c
> (491)]: jk_uri_worker_map_t::map_uri_to_worker,
> Found
> an exact match tomcat1 -> /
> [Thu Mar 25 12:42:25 2004]  [mod_jk.c (1708)]: Into
> handler r->proxyreq=0 r->handler=jakarta-servlet
> r->notes=4670648 worker=tomcat1
> [Thu Mar 25 12:42:25 2004]  [jk_worker.c (132)]:
> Into
> wc_get_worker_for_name tomcat1
> [Thu Mar 25 12:42:25 2004]  [jk_worker.c (136)]:
> wc_get_worker_for_name, done  found a worker
> [Thu Mar 25 12:42:25 2004]  [mod_jk.c (497)]:
> agsp=80
> agsn=localhost hostn=localhost
> shostn=server.ebizrusserver.com cbsport=80 sport=80 
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c
> (1546)]:
> Into jk_worker_t::get_endpoint
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c
> (1208)]:
> Into jk_endpoint_t::service
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c (295)]:
> Into ajp_marshal_into_msgb
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c (463)]:
> ajp_marshal_into_msgb - Done
> [Thu Mar 25 12:42:25 2004]  [jk_connect.c (158)]:
> Into
> jk_open_socket
> [Thu Mar 25 12:42:25 2004]  [jk_connect.c (165)]:
> jk_open_socket, try to connect socket = 1408
> [Thu Mar 25 12:42:25 2004]  [jk_connect.c (174)]:
> jk_open_socket, after connect ret = -1
> [Thu Mar 25 12:42:25 2004]  [jk_connect.c (203)]:
> jk_open_socket, connect() failed errno = 49
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c (676)]:
> Error connecting to tomcat. Tomcat is probably not
> started or is listenning on the wrong port. Failed
> errno = 49
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c (955)]:
> Error connecting to the Tomcat process.
> [Thu Mar 25 12:42:25 2004]  [jk_ajp_common.c
> (1309)]:
> sending request to tomcat failed in send loop. err=0
> 
> 
> Any help is appreciated. 
> 
> Thank you,
> Steve.
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on
> time.
> http://taxes.yahoo.com/filing.html
> 
>
-
> 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]
> 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: Problem in Welcome-file-list and security

2004-03-25 Thread shanmugampl
Found out the problem. Changing the  from */jsp/test.jsp* 
to *jsp/test.jsp *solves the issue. The additional / causes some changes 
in the url pattern and as a result the request was not considered to be 
secured one. Thanks for your effort.

-Shan-

Tim Funk wrote:

Make your welcome file index.jsp. Then for that specific URL (/) - 
have it redirect to jsp/test.jsp. That way the external redirect 
forces the security constraint to be caught. For example:

index.jsp:

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>



-Tim

shanmugampl wrote:

My very first page is the login screen. If i have specified security 
constraints, then how can i show the login screen as the first 
screen. The request should actually go to a secured screen, and this 
will bring up the login screen. Thats the reason, i require the first 
page to be secured. Is there any other way i can do this.

-Shanmugam-

Tim Funk wrote:

Security constraints are in the incoming URL.

[
Also welcome files *should*(but not required) be single files - not 
files buried under a directory.
Good: cowbell.jsp
Bad:  more/cowbell.jsp
]

-Tim

shanmugampl wrote:

Hi,

   I am using 5.0.19 & I have the following definition in my 
web.xml file

  
*  /jsp/test.jsp*
   
   
   
 Secured Core Context
*  /jsp/**
   
 
 *
   
   
 
   FORM
   
 /login/login.jsp
 /login/login.jsp
   
 
  Now if i access my application as 
http://localhost:8080/, the welcome-file is served 
directly, without going through the security constraints. But if i 
invoke as. http://localhost:8080//jsp/test.jsp, then the 
login.jsp page is brought up.
  The same setup works fine in tomcat 4.1.24

  Am i missing something in the configuration or is it a tomcat 
5 bug. If it is a bug are there any workarounds
 



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


RE: Possible thread "crossing"

2004-03-25 Thread Ralph Einfeldt

Probably you tried to access the variables from a static method.
(Which isn't static any longer or has been removed or changed in 
way that it doesn't access the variabled)

That the problem shows up only recently may be caused be a change 
in the usage pattern of the site or because your updated environment
has different timings than before.

I also have seen errors that where just not noticed for several
months, than you make a change to the system, look closer at the 
system, see the error and think 'Oh how can this change cause 
such an error.

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 6:32 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> 
> For the life of me I cannot recall why I made them static!!!  
> There are
> a few other variables that I had static as well.  I want to say that
> when I was writing the program I was getting compile errors 
> stating that
> I cannot reference non-static variables and changing them to static
> allowed the program to compile (major newbie mistake/assumption I am
> sure).
> 
> I just created a copy of my program and removed static from the
> serialNumber as well as a few other variables I had made static and
> everything compiled fine.  Very strange though that it has 
> been working
> fine this entire time??? :-/ I guess the next step is to make this
> change in the live program and monitor it very closely...
> 
> Thanks again.
> 
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 12:16 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> Ha ! Gotcha !
> 
> That's no instance variable 
> It's a class variable 
> 
> It is shared by all instances of the bean !!!
> 
> change it to:
> 
> private String serialNumber="";
> 
> > -Original Message-
> > From: Denise Mangano [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 25, 2004 6:14 PM
> > To: Tomcat Users List
> > Subject: RE: Possible thread "crossing"
> > 
> > In the bean there is an instance variable:  
> > private static String serialNumber="";
> > 
> > And it is set using the regular set method:
> > public void setserialNumber(String sn) { serialNumber = sn; }
> > 
> 
> -
> 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]



Re: Connection Pool setup.

2004-03-25 Thread Parsons Technical Services
Gordon,

Just for grins and giggles try adding this as a test:

 
  removeAbandoned
  true
  

  
  removeAbandonedTimeout
  60
  

To reclaim abandoned connections.

If it drops you back to the min then you have a leak in you app.

Check that connections, resultsets and statements are all closed.

Doug

- Original Message - 
From: "Gordon Luk" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 11:18 PM
Subject: RE: Connection Pool setup.


> Here my setting...
> 
> My problem is ... Connection pool look like don't open 10 connection at
> start-up, and when my servlet run for a while... Let it open up more
> connections(over 30) and then wait... (after a night .. :-D)... When I
> check database server, it still open more connections, I expect min. for
> 10 only.
> 
> My setup anything got wrong?  Thx.
> --->8
> 
> ...
> 
> 
> factory
>  
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
> 
> maxActive
> 100
> 
> 
> 
> maxIdle
> 10
> 
> 
> minIdle
> 10
> 
> 
> 
> maxWait
> 1
> 
> 
> username
> myuserid
> 
> 
> password
> mypassword
> 
> 
> 
> driverClassName
> net.sourceforge.jtds.jdbc.Driver
> 
> 
> url
>  
>  
> jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5
> 
> 
> validationQuery
> select count(*) from tablename
> 
> 
> testOnBorrow
> true
> 
> 
> testWhileIdle
> true
> 
> 
> timeBetweenEvictionRunsMillis
> 5000
> 
> 
> minEvictableIdleTimeMillis
> 1
> 
> 
> 
> 
> --->8
> 
> Regards,
> 
> Gordon Luk
> 
> 
> 
> -Original Message-
> From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 7:03 PM
> To: Tomcat Users List; Tomcat Users List
> Subject: RE: Connection Pool setup.
> 
> 
> May help if you post your resource snipplet (replacing any host
> /user/passwd info)
> 
>  -Original Message-
> From: Gordon Luk [mailto:[EMAIL PROTECTED]
> Sent: Thu Mar 25 05:30:56 2004
> To: Tomcat Users List
> Subject: Connection Pool setup.
> 
> Hi All,
> 
> May be I missing understand the DBCP configuration. Anyone could
> help ? I want my connection pool are Max 100 connection, 10 conn. At
> start-up, max idle 10, when idle for 10 min then kill it. Something like
> that.
> 
>Thanks.
> 
> 
> Regards,
> 
> Gordon Luk
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
>  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
>  
> 
> 
> -
> 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]



Regarding Configuration in Tomcat 4.1.30

2004-03-25 Thread Ramachandran
Hi Users,

I am facing problem in configuring Tomcat version 4.1.30. I am having one
application name ecghr. I deployed the application in webapps directory.And
also i mentioned in it server.xaml Still it is not working. It is showing
the following error.

type Status report

message /summitworksv1.1

description The requested resource (/summitworksv1.1) is not available.


Any body having idea about that. Please help me.

Thanks N Regds

M.Ramachandran
SummitWorks Technologies Pvt Ltd
Phone : 28478601 X 123
Mobile : 94442 17831
www.summitworks.com
[EMAIL PROTECTED]


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



RE: Connection Pool setup.

2004-03-25 Thread Gordon Luk
Here my setting...

My problem is ... Connection pool look like don't open 10 connection at
start-up, and when my servlet run for a while... Let it open up more
connections(over 30) and then wait... (after a night .. :-D)... When I
check database server, it still open more connections, I expect min. for
10 only.

My setup anything got wrong?  Thx.
--->8

...


factory
 
org.apache.commons.dbcp.BasicDataSourceFactory



maxActive
100



maxIdle
10


minIdle
10



maxWait
1


username
myuserid


password
mypassword



driverClassName
net.sourceforge.jtds.jdbc.Driver


url
 
 
jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5


validationQuery
select count(*) from tablename


testOnBorrow
true


testWhileIdle
true


timeBetweenEvictionRunsMillis
5000


minEvictableIdleTimeMillis
1




--->8

Regards,

Gordon Luk



-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 7:03 PM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Connection Pool setup.


May help if you post your resource snipplet (replacing any host
/user/passwd info)

 -Original Message-
From:   Gordon Luk [mailto:[EMAIL PROTECTED]
Sent:   Thu Mar 25 05:30:56 2004
To: Tomcat Users List
Subject:Connection Pool setup.

Hi All,

May be I missing understand the DBCP configuration. Anyone could
help ? I want my connection pool are Max 100 connection, 10 conn. At
start-up, max idle 10, when idle for 10 min then kill it. Something like
that.

   Thanks.


Regards,

Gordon Luk



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 3/22/2004
 


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



Re: jndi without a ??

2004-03-25 Thread Parsons Technical Services
Josh,

Imagine that you only want certain applications to access the
GlobalResource. With it in the default everyone has access.

The context.xml for TC5 in the META-INF replaces the context element that
you put in the server.xml in TC4. Thus as you deploy an application you can
adjust it as needed and the server will read it compared to TC4 you had to
restart to reread the server.xml for changes.

I like the quote, but for me it would have to read:
"My Wife! I have to do awful things to pay for her!"

Doug

- Original Message - 
From: "Josh G" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 11:00 PM
Subject: Re: jndi without a ??


> At 12:41 PM 26/03/2004, you wrote:
>
>
> >Josh,
> >
> >Got you covered.
> >
> >Warning this  email may be long winded, so take breaks often.
> >
> >First, unless there is a reason for you NOT to have a context then this
will
> >get you going.
>
> Snip...
>
> >Good luck and let us know.
> >
> >Doug
>
>
> Thanks for that! Of course it turns up 15 minutes after I accidently
> stumble upon the  element which seems to have made it all
> work. I'm interested in the context.xml you had in the META-INF directory,
> what's that for?
>
> Oh, and let's have three cheers for the _wonderful_ tomcat
documentation...
> *grumble grumble*
>
> :-)
>
> -Josh
>
>
>   "My Ferrari! I had to do awful things to pay for her!"
>
> [ Josh 'G' McDonald ]  --  [ Pirion Systems, Brisbane]
>
> [ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]
>
>
> -
> 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]



Re: jndi without a ??

2004-03-25 Thread Josh G
At 12:41 PM 26/03/2004, you wrote:


Josh,

Got you covered.

Warning this  email may be long winded, so take breaks often.

First, unless there is a reason for you NOT to have a context then this will
get you going.
Snip...

Good luck and let us know.

Doug


Thanks for that! Of course it turns up 15 minutes after I accidently 
stumble upon the  element which seems to have made it all 
work. I'm interested in the context.xml you had in the META-INF directory, 
what's that for?

Oh, and let's have three cheers for the _wonderful_ tomcat documentation... 
*grumble grumble*

:-)

-Josh

 "My Ferrari! I had to do awful things to pay for her!"

   [ Josh 'G' McDonald ]  --  [ Pirion Systems, Brisbane]

[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ] 

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


Re: [OT] Thank you! : New homes for Tomcat on Linux Found !

2004-03-25 Thread Chong Yu Meng
Hi All !

When I woke up this morning, I was really surprised at the number of 
people who offered to help me out ! You guys are really generous ! 
Thanks a lot !

I think I have enough mirror sites, so I will close my request for new 
homes. To those who offered to host my pages, I will email you off-list.

Thanks and Warmest Regards,

--

++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++


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


Re: Tomcat 4.1.29 Problem

2004-03-25 Thread Parsons Technical Services
I think that you need docBase="test.war" to be docBase="test" .
Not a 100% but thought that was what I read. Mine explodes and I do not have
.war on mine.

Doug

- Original Message - 
From: "Ramesh Thyagarajan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 9:41 PM
Subject: Tomcat 4.1.29 Problem


> Hi,
>
> I am using Tomcat 4.1.29. I have added the following context to server.xml
>
>
>  cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="true"
> debug="0"
> displayname="TEST"
> docBase="test.war"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> path="/test"
> privileged="false"
> reloadable="true"
> swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper">
> type="javax.sql.DataSource"/>
>
>
>
> I have my test.war in the webapps directory. When I start Tomcat, the war
> file does not explode automatically to create the test directory under
> webapps. I have also tried using the following values, but it does not
help:
>
> (a) docBase = C:/Tomcat4.1/webapps/test directory
> (b) docBase = test
>
> But, if I remove the context definition, Tomcat uses the default context
and
> the .war file is exploded.
>
> Any suggestions/solutions?
>
> _
> Is your PC infected? Get a FREE online computer virus scan from McAfee®
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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]



Tomcat 4.1.29 Problem

2004-03-25 Thread Ramesh Thyagarajan
Hi,

I am using Tomcat 4.1.29. I have added the following context to server.xml


   cachingAllowed="true"
   charsetMapperClass="org.apache.catalina.util.CharsetMapper"
   cookies="true"
   crossContext="true"
   debug="0"
   displayname="TEST"
   docBase="test.war"
   mapperClass="org.apache.catalina.core.StandardContextMapper"
   path="/test"
   privileged="false"
   reloadable="true"
   swallowOutput="false"
   useNaming="true"
   wrapperClass="org.apache.catalina.core.StandardWrapper">
  
  

I have my test.war in the webapps directory. When I start Tomcat, the war 
file does not explode automatically to create the test directory under 
webapps. I have also tried using the following values, but it does not help:

(a) docBase = C:/Tomcat4.1/webapps/test directory
(b) docBase = test
But, if I remove the context definition, Tomcat uses the default context and 
the .war file is exploded.

Any suggestions/solutions?

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: jndi without a ??

2004-03-25 Thread Parsons Technical Services
Josh,

Got you covered.

Warning this  email may be long winded, so take breaks often.

First, unless there is a reason for you NOT to have a context then this will
get you going.

First in the server.xml set up a GlobalResource such as this:

  



  
validationQuery
select 1
  
  
url
jdbc:mysql://localhost:3306/golf?autoReconnect=true
  
  
password
**
  
  
maxActive
30
  
  
maxWait
5000
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
username
**
  
  
maxIdle
2
  

  

Of course replace the necesary data with your specifics.

Next place this, at the bottom, in your web.xml for the app:

  
  GolfDB Connection
  jdbc/GolfDB
  javax.sql.DataSource
  Container
  

Now create a file in the META-INF directory. Name the file context.xml.
In this file you will need to define the context and the link to the jdbc.





My application is deployed with the manager from a war file named golf.war
The resource name is jdbc/GolfDB and I am running against a MySQL database.
Make sure all the names match exactly as this will cause many bumps from
banging you head. Adjust other setting to match your needs.

I am on TAO linux, Tomcat 5.0.19 And JVM 1.4.2_04-b05.

Good luck and let us know.

Doug
www.parsonstechnical.com



- Original Message - 
From: "Josh G" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 6:39 PM
Subject: jndi without a ??


> Hi, I don't have a  element in my server.xml or my web xml, and
as
> such I can't seem to make dbcp work...
>
> I know that in tomcat5 you can put this information in the web.xml, but I
> sure as hell can't find out how, anybody can point me in the right
direction?
>
> Cheers,
> -Josh
>
>
>   "My Ferrari! I had to do awful things to pay for her!"
>
> [ Josh 'G' McDonald ]  --  [ Pirion Systems, Brisbane]
>
> [ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]
>
>
> -
> 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]



Re: Tomcat Hangs

2004-03-25 Thread Surya Suravarapu
I'd say the activity is moderate. Some 6-10 users would be using our 
web application during that time. The machine is better than a 
development machine but not as good as production one.

Jeff, can you explain more about the -- JVM's "permanent generation".

Thanks.

- SPS

- Original Message -
From: "Jeff Tulley" <[EMAIL PROTECTED]>
Date: Thursday, March 25, 2004 7:59 pm
Subject: Re: Tomcat Hangs

> What kind of activity is going on with this server during those two
> hours?  Heavy, moderate, light load?  Is it a development box or
> production?
> 
> I ask the last question, since some have seen a problelm with repeated
> redeploys of a web application, where the JVM's "permanent generation"
> memory is running out even though the rest of the memory pools are
> nowhere near full.
> 
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
> 
> >>> [EMAIL PROTECTED] 3/25/04 5:50:42 PM >>>
> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> using AJP13 connector. The machine that we're using has got over 
> 2GB of
> 
> Memory and good processor speed. Tomcat has been allocated 1 GB of max
> 
> memory.
> 
> The issue is: For every two hours or so Tomcat hangs. That means, 
> Tomcat don't crash but simply don't accept any more connections. While
> 
> using Tomcat with Apache we're getting "500 Internal Server 
> Error". We
> 
> are constantly restarting server to make it work. There is no good 
> information in the logs that could lead us to debug this issue.
> 
> I have tried several things. Taken out Apache and Connectors from 
> the 
> equation by running Tomcat as standalone. This time Tomcat we 
> get "server not found error - Page cannot be displayed" message. I 
> have
> also increased the maxProcessors of the connector to 300 instead 
> of the
> 
> default 75.
> 
> Interesting thing is -- when Tomcat hangs the memory usage never 
> reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the
> 
> number of threads that we see is also always less than half of 
> maxProcessors value (300) set. 
> 
> If anybody encountered this kind of issue or if you have any 
> thoughts 
> please respond.
> 
> Thanks in advance!
> 
> - SPS
> 
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: tomcat-user-
> [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]



Re: Tomcat Hangs

2004-03-25 Thread Jeff Tulley
What kind of activity is going on with this server during those two
hours?  Heavy, moderate, light load?  Is it a development box or
production?

I ask the last question, since some have seen a problelm with repeated
redeploys of a web application, where the JVM's "permanent generation"
memory is running out even though the rest of the memory pools are
nowhere near full.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 3/25/04 5:50:42 PM >>>
We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of

Memory and good processor speed. Tomcat has been allocated 1 GB of max

memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While

using Tomcat with Apache we're getting "500 Internal Server Error". We

are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have

also increased the maxProcessors of the connector to 300 instead of the

default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the

number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
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]



Re: JNDI Realm Problem

2004-03-25 Thread Jeff Tulley
Pascal,
What version of Tomcsat are you using?  In response to a defect, I
added a feature to JNDIRealm a while back, that applied a "filter" to
certain JNDI realms to encode characters such as " and (
Later we learned that I should have focused that filtering a little
more on a specific string, and too much was being filtered, so I
submitted a fix.  It was very simple, really only a one or two-line
fix.

The reason I suspect this is that your output below has "\28" and "\29"
in the filter expression, which are the encodings for the parenthesis
that would be surrounding the expression.  The bug was that only the DN
should have been encoded, not the whole filter expression.

It looks like from CVS logs that the fix should be in 5.0.19, and
5.0.20, but not 5.0.18

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 3/25/04 6:14:06 AM >>>
Hello, all !

I've got a really strange problem that is probably caused by my 
eyesight. I followed the JNDI Real HowTo on the Jakarta site, and I 
setup the necessary LDIF file and put the necessary entries inside 
server.xml. After struggling with various typo errors and configuration

mistakes (I was having a migraine at the time), I finally got Tomcat to

authenticate with my OpenLDAP server. The trouble is, it cannot find
the 
role, so I always get kicked out with an authorization error.

This is the error I am getting when I try to login to the Tomcat Web 
Administration page :

2004-03-25 20:42:53 JNDIRealm[Catalina]: lookupUser(tcadmin)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
dn=uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]:   validating credentials by 
binding as the user
2004-03-25 20:42:53 JNDIRealm[Catalina]:   binding as 
uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]: Username tcadmin successfully

authenticated
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
getRoles(uid=tcadmin,ou=people,o=cymulacrum)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Searching role base 
'ou=groups,o=cymulacrum' for attribute 'cn'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   With filter expression 
'\28uniqueMember=uid=tcadmin,ou=people,o=cymulacrum\29'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Returning 0 roles



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



Tomcat Hangs

2004-03-25 Thread Surya Suravarapu
We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of 
Memory and good processor speed. Tomcat has been allocated 1 GB of max 
memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While 
using Tomcat with Apache we're getting "500 Internal Server Error". We 
are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have 
also increased the maxProcessors of the connector to 300 instead of the 
default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the 
number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



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



which memory profiling tool is better for tomcat?

2004-03-25 Thread tom ly
I've got Tomcat running Axis in a Non-GUI Linux Environment, so I'll have to be able 
to monitor tomcat from a GUI windows environment.  The options I've come across are 
Rational Purify and JProbe.  Rational Purify doesn't seem to be as tailored for Web 
Servers as JProbe, and I've found nothing in Rational Purify's documentation 
describing how to run a Web Server in non-graphical Linux bur monitor from a Windows 
machine which I do see that JProbe do.  Is Rational Rose a good choice for Tomcat 
memory analysyst?


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Adrian Lanning
Hey Chong,

How much daily bandwidth does hosting your tut currently use?

If it takes less than 50MB per day you can use SDF to host it.

SDF is a non-profit organization promoting Internet education.  Basically
they have a big cluster of 64-bit servers running NetBSD that they give out
shell access to.  You can find out more about them here:
http://www.freeshell.org
http://www.freeshell.org/index.cgi?faq?BASICS?01

Here is the information on bandwidth usage limits:
http://sdf.lonestar.org/over

Since its a non-profit once you go over quota, users get redirected to the
over page rather than the site staying up and you getting billed.


I have found it to be a really great deal.  An ARPA membership (50MB
transfer limit / day) costs $36 (US) and is a one-time fee (can you believe
it?).  There is no monthly or yearly cost.  I have been a member for over a
year and have a friend who's been a member for over 10 years...

Disclaimer for the paranoid:
  I am not affiliated with SDF in any way other than having paid my $36.
No, I'm not being paid to promote it.  No, there are no banner ads or such.
Yes, I am still waiting for them to close up shop and "steal" my $36!  :-)

On the flip-side, I have found their service to be reliable and have my
personal website hosted there (that's why I paid the $36).


Hope that helps!
Adrian

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



jndi without a ??

2004-03-25 Thread Josh G
Hi, I don't have a  element in my server.xml or my web xml, and as 
such I can't seem to make dbcp work...

I know that in tomcat5 you can put this information in the web.xml, but I 
sure as hell can't find out how, anybody can point me in the right direction?

Cheers,
-Josh
 "My Ferrari! I had to do awful things to pay for her!"

   [ Josh 'G' McDonald ]  --  [ Pirion Systems, Brisbane]

[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ] 

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


Cookie values

2004-03-25 Thread Angelov, Rossen
How are the cookies treated by Tomcat?

take this cookie for example: name=lastname, firstname
for version 0 the comma and the space are not valid but for version 1 they
are

If I have my Cookie version set to 1 the cookie looks like this:
name="lastname, firstname" when read by JavaScript
if read by jsp with this code
Cookie[] c = request.getCookies();
for (int i=0; c != null && i < c.length; i++){
   out.write(""+i+": "+c[i].getName()+"="+c[i].getValue());
}

it splits the name cookie in two separate cookies: 
1. name="lastname and 
2. firstname"= 


If I have my Cookie version set to 0 the cookie looks like this:
name=lastname, firstname when read by JavaScript
but the server throws this error java.lang.IllegalArgumentException:
lastname, firstname

Which is the right way of creating and reading cookie values when using
Tomcat?

I was using IE6.0 for these tests.

Thanks,
Ross


"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."



Net Integrator Virus Alert

2004-03-25 Thread Virus Scanner
WARNING: a virus (probably I-Worm.NetSky.q) or suspicious attachment was detected and 
removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED]
Some of the content may still be readable.
--- Begin Message ---


+++ Attachment: No Virus found
+++ MessageLabs AntiVirus - www.messagelabs.com



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

Problem with tomcat 4.1.30 + jdk1.4.2

2004-03-25 Thread Sweeney, Chris
At startup 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(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709)
at java.lang.ClassLoader.loadClass(ClassLoader.java:284)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
...

After reading the classloader documentation I wondered if the problem was
with where the jar file is located. I moved mx4j-jmx.jar from server/lib to
common/lib and the startup exception went away.  I'm not using the javax
management capabilities...

Anyone else encounter this?

Sincerely,
Chris Sweeney

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



Elliptic Curve Cryptography

2004-03-25 Thread Andrey Rogov

Can I use ECC libraries to produce certificates & provide
authentication using certificate methods with Tomcat & OpenSSL ?

Thank you a lot for answer,

-- 
Best regards,
 Andrey  mailto:[EMAIL PROTECTED]


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



Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Adrian Lanning
Chong,

I think the wiki idea is a great one but have you thought about asking any
of the online Java magz or sites about hosting it for you?  It seems to me
that the more traffic they get, the happier they are.  You would have to put
up with ads on your tut, of course.  I have seen several tutorials /
walkthroughs on such sites.

Besides the ads, the only problem might be change control since I'm not sure
how often they let authors edit articles.

Adrian


- Original Message - 
From: "Chong Yu Meng" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 12:20 PM
Subject: Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep


> Hi Tim !
>
> Tim Funk wrote:
>
> > The drawback (which is a good drawback!) is the tomcat4 and tomcat5
> > links below contain many files and can easily grow to many more as it
> > becomes more comprehensive.
> >
> Thanks, Tim !
>
> > The docs are not FAQ worthy but definitely worth linking to from the
FAQ.
>
> Well, the documents weren't written to be a FAQ, and I think the
> structure does not lend itself well to a FAQ. The reason why I wrote it
> that way was because a lot of answers in FAQs assume or require a level
> of understanding that newbie Tomcat administrators may not possess.
> Instead of trying to cover the background and theory behind every
> question, I thought a "walk-through" tutorial would be  a more effective
> way of building up understanding of the product.
>
> >
> > Here is my preference ...
> > Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html
> > and http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki.
> >
> > The book (after being copied to wiki) could be linked from the above
> > links OR we could create a new link in the FAQ.
> >
> > This way - anyone may maintain/add/edit the content without needing
> > any additional privledges.
> >
> Actually, I like the Wiki idea, but maybe more along the lines of the
> MySQL documentation (http://www.mysql.com/doc/en/index.html), where
> users can add sections and comments. This would maintain the "narrative
> integrity" while allowing for digressions.
>
> > I like it when many different people can(and do) write docs. Even if
> > 10 people write about the same thing - they may say it in different
> > ways, have a different nuance with their writing style, or emphasis a
> > particular problem they had which can be helpful to such a diverse
> > audience.
>
> I think we need more people writing docs for Tomcat. Though installation
> and basic configuration is covered quite well, and there is a LOT of
> stuff out there on Apache connectors, some advanced stuff, like writing
> your own realms or JNDI realms, or even the recent discussions about
> JNDI datasources are not covered -- or if they are, not adequately.
>
> >
> > Some people may be thinking this is kludgey. Yes it is. But I think
> > its an OK tradeoff so we can keep the barrier of documentation
> > creation low.
> >
> Here, here. But I need to say a little something about my documents. The
> original document is actually in Docbook format, and I generate the HTML
> from that document using docbook utilities. If you want to put it into
> the Wiki, you'll need only the HTML (without the masthead), am I right ?
> I've never used Wiki before, so I may need help here.
>
> >
>
> -- 
> "Men never do evil so completely and cheerfully as when they do it from
> religious conviction."
> -- Blaise Pascal
> ++
> | Pascal Chong   |
> | email: [EMAIL PROTECTED]  |
> ||
> | Please visit my site at : http://cymulacrum.net|
> | If you're using my documentation, please read the Terms and|
> | and Conditions at http://cymulacrum.net/terms.html |
> ++
>
>
>
> -
> 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]



RE: Securing a folder

2004-03-25 Thread Schalk
Try looking at your webapps, web.xml's security-constraint. That way you can
take the protection away from Apache and allow Tomcat to handle that.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Dean Searle [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, March 25, 2004 11:45 PM
:: To: Tomcat Users List
:: Subject: Securing a folder
:: 
:: Hello Everyone,
:: 
:: Not to sure how to phrase this but here I go anyways. I am attempting to
secure a
:: folder that is located within my application. This folder contains pdf's
that only need
:: to be accessible by tomcat, the site requires a password to enter. At
first if I did
:: www.domain.com/pdfs/somefile.pdf it would open up somefile.pdf. So I
tried this in
:: my http.conf file for the website:
:: 
:: 
::   order deny,allow
::   deny from all
::   allow from 127.0.0.1
:: 
:: 
:: But now tomcat cannot even retrieve the pdf's. Am I doing this right.
Could you
:: please point me to some doc's that might explain this more.
:: 
:: Not sure if this helps or not:
:: 
:: Windows 2000 Server SP4
:: Tomcat 4.1.24 LE
:: Apache 2.0.46
:: JDK 1.4.1_02
:: 
:: Thank you for time
:: 
:: Dean




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



Question on debuggin JNDI/prepared statement in a bean

2004-03-25 Thread Tom K
I am frustrated trying to debug a prepared statement within a bean; what
am I doing wrong?; ANY clues appreciated…
It is not throwing any exceptions yet I methodically went over the code;
granted this is the first time I used beans versus servlets.
 
Can anyone point me to a good example (JNDI, JSP, JavaBean, Resultset) 
 
Code within bean:
 
private void prepareStatement(){
try{
  
Context env = (Context) new
InitialContext().lookup("java:comp/env");
pool = (DataSource) env.lookup("jdbc/myDB");
 
if (pool == null)
throw new NamingException("`jdbc/ myDB ' is an
unknown DataSource");


  
  //dbConnection = null;
  dbConnection = pool.getConnection();

 
  String SQLCmd =
  "select * from AdInfoView where Classification = ?
" 
   + "and UniqueDateId < ? order by UniqueDateId
desc";

  pstmt = dbConnection.prepareStatement(SQLCmd);
// TEST Exception thrown here.
//pstmt.setString(1,searchWord);
  pstmt.setString(1,ClassifiedAd);
  pstmt.setString(2,UniqueDateId);  
  
}catch(Exception e){
  System.err.println("Problem preparing statement " +
e.getMessage() + e.getCause());
} 
  }

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


Securing a folder

2004-03-25 Thread Dean Searle
Hello Everyone,

Not to sure how to phrase this but here I go anyways. I am attempting to secure a 
folder that is located within my application. This folder contains pdf's that only 
need to be accessible by tomcat, the site requires a password to enter. At first if I 
did www.domain.com/pdfs/somefile.pdf it would open up somefile.pdf. So I tried this in 
my http.conf file for the website:


  order deny,allow
  deny from all
  allow from 127.0.0.1


But now tomcat cannot even retrieve the pdf's. Am I doing this right. Could you please 
point me to some doc's that might explain this more.

Not sure if this helps or not:

Windows 2000 Server SP4
Tomcat 4.1.24 LE
Apache 2.0.46
JDK 1.4.1_02

Thank you for time

Dean

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

RE: Tomcat 3.2.3 windows service

2004-03-25 Thread Dmitriy .
anyone on this???


From: "Dmitriy ." <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2.3 windows service
Date: Thu, 25 Mar 2004 11:36:09 -0500
Yes, it does...


From: "Cocalea, Eugen" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Tomcat 3.2.3 windows service
Date: Thu, 25 Mar 2004 11:25:35 +0200
Does it run as standalone?

-Original Message-
From: Dmitriy . [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.3 windows service
Hi I have Tomcat 3.2.3 and tried running it as a service on my Win2000
server and got the following error:
---
The Jakarta service is starting.
The Jakarta service could not be started.
The service did not report an error.

More help is available by typing NET HELPMSG 3534.
-
The NET HELPMSG doesn't indicate anything as well... Do you know what the
problem might be?
I used the jk_nt_service.exe that I downloaded from jakarta.apache.org.
Maybe it was intended to run on NT and I have 2000 and that might cause a
problem? Anyone experienced something like this before?
Thanks.

_
All the action. All the drama. Get NCAA hoops coverage at MSN Sports by
ESPN. http://msn.espn.go.com/index.html?partnersite=espn
-
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]
_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

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


Re: session replication

2004-03-25 Thread Pablo Garaitonandia
I was hoping to find something other than just an instructions to 
uncomment a few lines .

On Mar 25, 2004, at 12:28 PM, Erin O'Neill wrote:

Here's an interesting thing --
I just make the change of adding to /etc/profile:  the JAVA_HOME & 
CATALINA_HOME, restarted tomcat and the JSP example that normally 
fails works. If I reload the page and it fails with the compiler not 
found error but if I go back and reclick it works (this is on 
5.0.16).

I guess I have to deploy my little test app. I've got it showing up in 
the manager but never compiling ...

erin - who thinks this JSP example compiling may be a fluke... I'm 
going back to the tutorial and see if they offer any more tidbits!

At 11:47 AM 3/25/2004 -0500, you wrote:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: pablo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 11:46 AM
>To: [EMAIL PROTECTED]
>Subject: session replication
>
>Hello ,
>  I am running tomcat 5 and I am trying to figure out how to
>configure session replication .   Unfortunately the Filip Hanik 
website
>that has all that good info either no longer exists or it has moved.
>Any help on getting the How to would be greatly appreciated.
>-Pablo
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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]


-
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]


Re: Problem using form login auth

2004-03-25 Thread Peter Rossbach
Yes,  I have the same problem.

After you login with a correct user, but the wrong role you have a 
application problem.
With Form based Auth the only way out is:
invalidate the session at your error page, or let do that the user.

With Basic, Digest the only way is that the user cancel the browser.

Regards
Peter
Simone - Dev schrieb:

Hello All,
I've a strange problem using the form login coupled with JDBCRealm.
This the web.xml I'm using


   
 Example Security Constraint
 
Protected Area
/protected/*
   DELETE
GET
POST
   PUT
 
 
  manager
 
   
   
   
 FORM
 Example Form-Based Authentication Area
 
   /login.jsp
   /error.jsp
 
   
   
   
   
   
   An administrator
   manager
   


The strange behaveur is that if I logon using a completely wrong user
(either user or password invalid) I get redirected to the error.jsp page
but if I type in a user that has not the "manager" role I get redirected
to the originally requested page (/protected/index.jsp) but then get a
403 error (Access denied)
Can't get to solve this...

Thank you

Simone

-
Simone Chiaretta
 www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"
 



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


Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Parsons Technical Services
Three questions:

How big is the site? Disk space.
How much bandwidth are we talking about?
Do you need to keep your URL?

Doug

- Original Message - 
From: "Chong Yu Meng" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 9:35 AM
Subject: [OT] Needed : New home(s) for Tomcat on Linux StepByStep


> Hi all !
> 
> The amount of traffic I'm getting for my Tomcat tutorial has shot up in 
> recent days, and though I'm very happy with the response, I'm also more 
> than a little worried about my bandwidth bill at the end of the month. 
> Because I am currently unemployed, I'm not sure how long I can keep the 
> site going before I have to close it down.
> 
> Before you decide, I think it would be fair to warn you that I used to 
> get about 30,000 hits on my site. Lately, I've been getting more than 
> 2,000 hits a day! Some of it is for my other stuff, like Firebird and 
> SecurityFilter, but a massive proportion comes from the Tomcat write-up.
> 
> So, if anyone is willing to give my Tomcat docs a new home, I -- and I'm 
> sure a lot of Tomcat newbies -- will be grateful. I have a few 
> conditions though:
> 
> 1. Because I update the documents, sometimes quite frequently, 
> especially when important new information comes up, I will need a way to 
> update the documents either online, or through email with the site 
> maintainers.
> 2. Please don't put it on one of those free webhosting sites with plenty 
> of pop-ups and advertisements.
> 3. You cannot charge money for this service. Hey, I don't (didn't ?) 
> charge anyone to access my site.
> 
> Yoav, do you think the Jakarta group be willing to accept my stuff ?
> 
> Thanks to the many thousands out there who read my docs. Hope they 
> helped you, in some small way. And if you know of any companies hiring, 
> tell them about this poor Linux/UNIX sysadmin and Java programmer in 
> Southeast Asia who'd make a good Tomcat administrator and give him a job.
> 
> -- 
> "Men never do evil so completely and cheerfully as when they do it from
> religious conviction." 
> -- Blaise Pascal
> ++
> | Pascal Chong   |
> | email: [EMAIL PROTECTED]  |
> ||
> | Please visit my site at : http://cymulacrum.net|
> | If you're using my documentation, please read the Terms and|
> | and Conditions at http://cymulacrum.net/terms.html |
> ++
> 
> 
> 
> -
> 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]



Mail Delivery (failure tomcat-user@jakarta.apache.org)

2004-03-25 Thread tomcat-user


If the message will not displayed automatically,
follow the link to read the delivered message.
Received message is available at:
www.jakarta.apache.org/inbox/tomcat-user/read.php?sessionid-102

 


Norton AntiVirus Deleted1.txt
Description: plain/text


Re: session replication

2004-03-25 Thread Peter Rossbach
Hey Pablo,

read this article and after that, look at the conf/server.xml at tomcat 
5.0.19 binary release for example.to
the new Cluster configuration.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Regards
Peter
pablo schrieb:

Hello ,
 I am running tomcat 5 and I am trying to figure out how to 
configure session replication .   Unfortunately the Filip Hanik 
website that has all that good info either no longer exists or it has 
moved.  Any help on getting the How to would be greatly appreciated.
-Pablo

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




--
J2EE Systemarchitekt und Tomcat Experte
http://objektpark.de/
http://www.webapp.de/
Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:(49) 175 1660884
E-Mail:  [EMAIL PROTECTED]


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


Re: Java IDE for Tomcat

2004-03-25 Thread Tom Bednarz
Thank you Guys for all that feedback!

Tom


- Original Message - 
From: "Tom Bednarz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 6:38 PM
Subject: Java IDE for Tomcat


> Does anybody know if it is possible to integrate Tomcat 5 into JBuilder 
> 8 Enterprise?
> 
> Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 with 
> Eclipse (debugging servlets, JSP etc)?
> 
> Many thanks for your feedback on your experience.
> 
> Tom
> 
> -
> 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]



RE: Default Context in Tomcat 5.0.19

2004-03-25 Thread LILES, DAVID (CONTRACTOR)
I'm not 100% sure, but if you are just running the default config, in the  tag 
it specifies the default location and in the Catalina.properties file it identifies 
all of the default class paths.

Now I've created multiple instances by adding additional  entries and then in 
the Catalina folder I create subfolders matching the host name I created and in there 
I place my xml files that have the context information I want

-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 12:42 PM
To: [EMAIL PROTECTED]
Subject: Default Context in Tomcat 5.0.19


Hi,

I am a bit confused about this one. I am able to run servlets using the
invoker servlet by placing the classes in the ROOT/WEB-INF/classes
directory. 

Yet, I don't see in server.xml any mention of the default context. Has
this changed since 4.1.x version? I've looked into
conf/Catalina/localhost/ directory and I don't see any context files
there that would indicate that default context is being defined.

As far as I remember I used to define the default context by:



How is this done now and how do I turn off the default context going to
ROOT?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


-
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]



RE: TC V4.1.29 Coyote Connector / minProcessors maxProcessors / Confusion

2004-03-25 Thread Shapira, Yoav

Hi,
I think your testing, servlets, configuration is all fine.  The
maxProcessors-1 observation is something I've noticed in the past, but
as you say I don't think many people care because they deal with ~75
maxProcessors (the default value).

The second observation: two requests to the same servlet always handled
serially.  Tomcat normally creates one instance of a servlet for every
declaration in web.xml.  The exception is SingleThreadModel (deprecated,
don't use this) servlets.  There's no provision in tomcat to create more
instances as the load on the server increases (maybe there is such a
provision and I've missed it?).  Instead, the processing threads should
call the servlet methods in parallel.  I'm not sure why you're not
seeing this behavior, perhaps someone else could comment, as I have to
run to a meeting ;)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 1:56 PM
>To: [EMAIL PROTECTED]
>Subject: RE: TC V4.1.29 Coyote Connector / minProcessors maxProcessors
/
>Confusion
>
>Yoav,
>
>Thanks for the quick reply...
>
>>Create a servlet that takes a long time to process, so you can easily
>>observe the connections.  Then make sure you make two concurrent
>>requests to that servlet, and that the servlet's HTML output doesn't
>>contain images, CSS references, or any other entities which would
cause
>>a separate HTTP connection to be initiated by the browser for that one
>>page. This type of page is the most common cause for perceived
problems
>>with concurrent request processing.
>
>I wasn't working with any images, etc. - reduced quickly to KISS level
>configs & testing as a consequence of more than a couple of decades
>worth of battle scars ;-)
>
>Simple servlet, doGet implementation, simple HTML out, 30 second sleep.
>Built several variants, different only in class name. Manual
deployment,
>no WAR file, a set of servlet classes in several different contexts.
>Servlets HelloWait, HelloWait2, HelloWait3, etc. Contexts cctest1,
>cctest2, etc.
>
>Used a multi-tabbed browser (Mozilla) to test, though behavior the same
>with separate browsers on multiple clients (enlisted the aid of several
>of my cohorts). Also used lovely little multi-threaded Java HTTP test
>client gadget to slam in requests from multiple clients concurrently.
>
>First observation:
>
>Behavior in general indicates number of concurrent requests serviced
>equal to maxProcessors - 1 (not maxProcessers-minProcessors as I
>suggested in earlier email).
>
>Second observation:
>
>This one really threw me. Independent of maxProcessors value, multiple
>concurrent requests to the same servelet in the same context appear
>to be handled serially - one at a time. Multiple concurrent requests,
>each to a different servlet in the same context or a servlet in
>another context appear to be handled concurrently, subject to my
>first observation.
>
>I was ready to buy the maxProcessers-1 thing as a simple implementation
>oversight - not surprising since most use Tomcat for much higher volume
>stuff. Second observation suggests something really strange with 4.1.29
>(most of our earlier testing experimentation was with 4.1.27) or I have
>made a really toady configuration error.
>
>I have attached 2 representative servlet source samples - pretty
>trivial, server.xml, default web.xml (renamed as web_default.xml) and
>example context web.xml for servlets. Would have zipped but found
>that not permitted for list mail. Maybe something in these I'm doing
>wrong?
>
>Tomcat running (for test execution) on an HP dual proc (Intel PIII
1.133
>GHz) platform running Linux - RedHat 7.1 - little or no extraneous load
>during the testing.
>
>Any insight might have would be well appreciated.
>
>Regards,
>
> -Jim-



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]



RE: TC V4.1.29 Coyote Connector / minProcessors maxProcessors / Confusion

2004-03-25 Thread jblayer
Yoav, 

Thanks for the quick reply... 

Create a servlet that takes a long time to process, so you can easily
observe the connections.  Then make sure you make two concurrent
requests to that servlet, and that the servlet's HTML output doesn't
contain images, CSS references, or any other entities which would cause
a separate HTTP connection to be initiated by the browser for that one
page. This type of page is the most common cause for perceived problems
with concurrent request processing.
I wasn't working with any images, etc. - reduced quickly to KISS level
configs & testing as a consequence of more than a couple of decades
worth of battle scars ;-) 

Simple servlet, doGet implementation, simple HTML out, 30 second sleep.
Built several variants, different only in class name. Manual deployment,
no WAR file, a set of servlet classes in several different contexts.
Servlets HelloWait, HelloWait2, HelloWait3, etc. Contexts cctest1,
cctest2, etc. 

Used a multi-tabbed browser (Mozilla) to test, though behavior the same
with separate browsers on multiple clients (enlisted the aid of several
of my cohorts). Also used lovely little multi-threaded Java HTTP test
client gadget to slam in requests from multiple clients concurrently. 

First observation: 

Behavior in general indicates number of concurrent requests serviced
equal to maxProcessors - 1 (not maxProcessers-minProcessors as I
suggested in earlier email). 

Second observation: 

This one really threw me. Independent of maxProcessors value, multiple
concurrent requests to the same servelet in the same context appear
to be handled serially - one at a time. Multiple concurrent requests,
each to a different servlet in the same context or a servlet in
another context appear to be handled concurrently, subject to my
first observation. 

I was ready to buy the maxProcessers-1 thing as a simple implementation
oversight - not surprising since most use Tomcat for much higher volume
stuff. Second observation suggests something really strange with 4.1.29
(most of our earlier testing experimentation was with 4.1.27) or I have
made a really toady configuration error. 

I have attached 2 representative servlet source samples - pretty
trivial, server.xml, default web.xml (renamed as web_default.xml) and
example context web.xml for servlets. Would have zipped but found
that not permitted for list mail. Maybe something in these I'm doing
wrong? 

Tomcat running (for test execution) on an HP dual proc (Intel PIII 1.133
GHz) platform running Linux - RedHat 7.1 - little or no extraneous load
during the testing. 

Any insight might have would be well appreciated. 

Regards, 

-Jim- 
/*
 * HelloWait.java
 */

import java.io.*;
import java.net.*;
import java.util.Date;
import java.text.DateFormat;

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

/**
 *  Servlet used to test concurrent connections. Waits for 30 seconds
 *  before returning from doGet method.
 *  
 *  @author LayerJB
 */

public class HelloWait extends HttpServlet
{
/**
 * Process the HTTP GET request.
 * 
 * @param   req An HttpServletRequest object that contains the
 *  request the client has made of the servlet.
 * @param   res An HttpServletResponse object that contains the
 *  response the servlet sends to the object.
 * 
 * @exception   ServletExceptionThrown if the request for the
 * 
 GET could not be handled.
 * @exception   IOException Thrown if an input or 
output
 * 
 error is detected when the servlet
 * 
 handles the request.
 */

public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
DateFormat dateFormat = DateFormat.getDateTimeInstance();
String sStart = dateFormat.format(new Date());

res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();
out.println("HelloWait");
out.println("doGet start: " + sStart +
"We're waiting 30 seconds...");
out.flush();
try
{
Thread.sleep(3);
}
catch (InterruptedException ignore) {};

out.println("Done Waiting: " +
dateFormat.format(new Date()) +
"");

out.close();
}
}
/*
 * HelloWait2.java
 */

import java.io.*;
import java.net.*;
import java.util.Date;
import java.text.DateFormat;

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

/**
 *  Servlet used 

RE: Possible thread "crossing"

2004-03-25 Thread David Rees
Denise Mangano wrote:
> For the life of me I cannot recall why I made them static!!!  There are
> a few other variables that I had static as well.  I want to say that
> when I was writing the program I was getting compile errors stating that
> I cannot reference non-static variables and changing them to static
> allowed the program to compile (major newbie mistake/assumption I am
> sure).

It's a common mistake to make.

> I just created a copy of my program and removed static from the
> serialNumber as well as a few other variables I had made static and
> everything compiled fine.  Very strange though that it has been working
> fine this entire time??? :-/ I guess the next step is to make this
> change in the live program and monitor it very closely...

It will appear to work fine under light testing or light load scenarios. 
Once load increases or requests happen to come in at the same time these
types of concurrency issues will show up.

-Dave

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



Re: Java IDE for Tomcat

2004-03-25 Thread Oliver Andrich
Hi Tom,

Tom Bednarz schrieb:

Does anybody know if it is possible to integrate Tomcat 5 into 
JBuilder 8 Enterprise?

Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 
with Eclipse (debugging servlets, JSP etc)?

Many thanks for your feedback on your experience.
I have been using Eclipse 3 with the sysdeo plugin and it worked fine. 
Now I switched to MyEclipse plugin and it rocks, it gives you all you 
need to do web development with Eclipse. Debugging, JSP Editor, etc. pp. 
J2EE Support is also included.

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


RE: How to Secure my Passwd Info from server.xml file?

2004-03-25 Thread Shapira, Yoav

Hi,
No, you have to write a custom realm for this.  A couple of others have
asked in the past, so you may wish to search the archives to see if they
posted their solutions.

If you come up with something nice and generic, it'd be a nice donation
to tomcat ;)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Cathy Hui [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 1:41 PM
>To: [EMAIL PROTECTED]; tomcat-user-
>[EMAIL PROTECTED]; [EMAIL PROTECTED]; tomcat-
>[EMAIL PROTECTED]
>Subject: How to Secure my Passwd Info from server.xml file?
>
>I am trying to solve a security issue with my webapp. We are using
>tomcat's connection pooling for our webapp. The database username and
>password be specified in the server.xml file (as shown below).
>
>Is there a way to encrypt the password, and tomcat should decrypt the
>password before establishing the database connection. We are trying to
>do this without changing the tomcat code itself. Is it a setting in
>tomocat, or is there a 3rd party software?
>
>Any suggestions/solutions are appreciated. Thanks
>type="javax.sql.DataSource"/>
>
>
>username
>myuser
>
>
>password
>mypassword
>
>
>
>Thanks!
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]



RE: tomcat certificate

2004-03-25 Thread Mark Thomas
I've look at the code and it would help if you could post your realm definition.

Thanks,

Mark 

> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 6:00 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat certificate
> 
> OK. Light dawns. Can you try using the memory realm? My realm 
> definition looks
> like:
> 
> 
> Looking again at the exception it looks like a JMX issue with the
> UserDatabaseRealm MBean and user names containing '='. I'll 
> have a look at the
> code.
> 
> Mark
> 
> > -Original Message-
> > From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 25, 2004 9:01 AM
> > To: Tomcat Users List
> > Subject: RE: tomcat certificate
> > 
> > 
> > My server.xml file has:
> >  >   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> >   enableLookups="false" disableUploadTimeout="true"
> >   acceptCount="100" debug="0" scheme="https" secure="true"
> >   clientAuth="true" sslProtocol="TLS"
> >   keystoreFile
> > ="/home/tomcat/jakarta-tomcat-5.0.19/conf/ssl/server/server.ks" />
> > 
> > 
> > The tomcat-users.xml file has:
> > 
> >  > roles="certs"/>
> > 
> > 
> > The web.xml file of the application is:
> > 
> > 
> >  > Web Application
> > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > Empty web.xml file for Web 
> > Application
> > 
> > 35
> > 
> > 
> > html
> > text/html
> > 
> > 
> > txt
> > text/plain
> > 
> > 
> > index.jsp
> > index.html
> > 
> > 
> > Saturn database
> > jdbc/saturn
> > javax.sql.DataSource
> > SERVLET
> > 
> > 
> > 
> > Protected
> > Area
> > /pim.htm
> > 
> > 
> > certs
> > 
> > 
> > 
> > CONFIDENTIAL
> > 
> > 
> > 
> > 
> >CLIENT-CERT
> > 
> > 
> > 
> > certs
> > 
> > 
> > 
> > 
> > 
> > When  I  startup  Tomcat  I get the following message in 
> > "catalina.out" log
> > file:
> > 
> > 24-mar-2004   
> >  17:37:55
> > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
> > createMBeans
> > GRAVE: Exception creating UserDatabase MBeans for UserDatabase
> > javax.management.MalformedObjectNameException:  Invalid  
> > character  '='  in
> > value part of property
> > at 
> javax.management.ObjectName.construct(ObjectName.java:563)
> > at javax.management.ObjectName.(ObjectName.java:1300)
> > at
> > org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUt
> > ils.java:1520)
> > at
> > 
> org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:783)
> > at
> > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> > eateMBeans(GlobalResourcesLifecycleListener.java:280)
> > at
> > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> > eateMBeans(GlobalResourcesLifecycleListener.java:210)
> > at
> > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> > eateMBeans(GlobalResourcesLifecycleListener.java:172)
> > at
> > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.li
> > fecycleEvent(GlobalResourcesLifecycleListener.java:144)
> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> > ifecycleSupport.java:166)
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.j
> > ava:2338)
> > at 
> > org.apache.catalina.startup.Catalina.start(Catalina.java:594)
> > at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at 
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
> > at 
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
> > 
> > And  when  I access the "/pim.htm" page via SSL and port 8443 
> > it gives me a
> > Tomcat  error in the navigator (HTTP 401). It is in Spanish, 
> > but in English
> > it would be something like:
> > HTTP 401 Status - Impossible to authenticate with provided 
> credentials
> > type: status report
> > message: Impossible to authenticate with provided credentials
> > description:  This  requirement requires HTTP authentication 
> > (Impossible to
> > authenticate with provided credentials)
> > 
> > The client certificate is signed by a C

Re: RE: Java IDE for Tomcat

2004-03-25 Thread Giuseppe Briotti
> You can also try Netbeans 3.6 RC1

I had this with Java SDK 1.4.2 (and Tomcat 4.1.?? was in the package too) and it works 
fine :-

G


--

Giuseppe Briotti
[EMAIL PROTECTED]

"Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius."
 (Orazio)



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



How to Secure my Passwd Info from server.xml file?

2004-03-25 Thread Cathy Hui
I am trying to solve a security issue with my webapp. We are using
tomcat's connection pooling for our webapp. The database username and
password be specified in the server.xml file (as shown below). 

Is there a way to encrypt the password, and tomcat should decrypt the
password before establishing the database connection. We are trying to
do this without changing the tomcat code itself. Is it a setting in
tomocat, or is there a 3rd party software?

Any suggestions/solutions are appreciated. Thanks



username
myuser


password
mypassword



Thanks!


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



Default Context in Tomcat 5.0.19

2004-03-25 Thread Chaikin, Yaakov Y (US SSA)
Hi,

I am a bit confused about this one. I am able to run servlets using the
invoker servlet by placing the classes in the ROOT/WEB-INF/classes
directory. 

Yet, I don't see in server.xml any mention of the default context. Has
this changed since 4.1.x version? I've looked into
conf/Catalina/localhost/ directory and I don't see any context files
there that would indicate that default context is being defined.

As far as I remember I used to define the default context by:



How is this done now and how do I turn off the default context going to
ROOT?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


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



RE: Java IDE for Tomcat

2004-03-25 Thread Schalk
You can also try Netbeans 3.6 RC1

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, March 25, 2004 7:51 PM
:: To: Tomcat Users List
:: Subject: RE: Java IDE for Tomcat
:: 
:: I am currently using Eclipse 3 with TomCat 5 and so far it has been
working well for
:: me. I downloaded a plug-in that allows me to run TomCat from within my
Eclipse
:: IDE. It also allows for creating new TomCat projects which creates your
TomCat
:: environment for you, much like JBuilder does
:: 
:: -Original Message-
:: From: Tom Bednarz [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, March 25, 2004 11:38 AM
:: To: Tomcat Users List
:: Subject: Java IDE for Tomcat
:: 
:: 
:: Does anybody know if it is possible to integrate Tomcat 5 into JBuilder
:: 8 Enterprise?
:: 
:: Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 with
:: Eclipse (debugging servlets, JSP etc)?
:: 
:: Many thanks for your feedback on your experience.
:: 
:: Tom
:: 
:: -
:: 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]



Re: Where is the stratum package?

2004-03-25 Thread Alex Chen
Thanks.

Shapira, Yoav wrote:

Hi,
Stratum is a jakarta turbine (http://jakarta.apache.org/turbine/)
package.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Alex Chen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 10:15 PM
To: Tomcat Users List
Subject: Where is the stratum package?
I got the following error message in my tomcat log file.  I am using
Axis under Tomcat and create a servlet that extends AxisServlet
2004-03-24 18:33:07
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
2004-03-24 18:33:08 StandardContext[/axis]StandardWrapper.Throwable
java.lang.NoClassDefFoundError:
   

org/apache/stratum/lifecycle/Initializable
 

  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl
   

assL
 

oader.java:1677)
  at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade
   

r.ja
 

va:900)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
   

r.ja
 

va:1350)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
   

r.ja
 

va:1230)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  at com.packetmotion.trinity.gsm.main.GsmServlet.init(Unknown
   

Source)
 

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





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]
 



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


RE: Getting Context Parameters from server.xml

2004-03-25 Thread Michael Jones
Sweet that was the trick.
Thanks alot for all of the responses.

-Michael

On Thu, 25 Mar 2004, Bodycombe, Andrew wrote:
> I think you want to use getServletContext().getInitParameter("companyName");
> 
> 
> There is a difference between a servlet init parameter (defined in web.xml)
> and a servlet context init parameter (defined in the context.xml or
> server.xml file)


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



RE: tomcat certificate

2004-03-25 Thread Mark Thomas
OK. Light dawns. Can you try using the memory realm? My realm definition looks
like:


Looking again at the exception it looks like a JMX issue with the
UserDatabaseRealm MBean and user names containing '='. I'll have a look at the
code.

Mark

> -Original Message-
> From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 9:01 AM
> To: Tomcat Users List
> Subject: RE: tomcat certificate
> 
> 
> My server.xml file has:
>maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>   enableLookups="false" disableUploadTimeout="true"
>   acceptCount="100" debug="0" scheme="https" secure="true"
>   clientAuth="true" sslProtocol="TLS"
>   keystoreFile
> ="/home/tomcat/jakarta-tomcat-5.0.19/conf/ssl/server/server.ks" />
> 
> 
> The tomcat-users.xml file has:
> 
>  roles="certs"/>
> 
> 
> The web.xml file of the application is:
> 
> 
>  Web Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> Empty web.xml file for Web 
> Application
> 
> 35
> 
> 
> html
> text/html
> 
> 
> txt
> text/plain
> 
> 
> index.jsp
> index.html
> 
> 
> Saturn database
> jdbc/saturn
> javax.sql.DataSource
> SERVLET
> 
> 
> 
> Protected
> Area
> /pim.htm
> 
> 
> certs
> 
> 
> 
> CONFIDENTIAL
> 
> 
> 
> 
>CLIENT-CERT
> 
> 
> 
> certs
> 
> 
> 
> 
> 
> When  I  startup  Tomcat  I get the following message in 
> "catalina.out" log
> file:
> 
> 24-mar-2004   
>  17:37:55
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
> createMBeans
> GRAVE: Exception creating UserDatabase MBeans for UserDatabase
> javax.management.MalformedObjectNameException:  Invalid  
> character  '='  in
> value part of property
> at javax.management.ObjectName.construct(ObjectName.java:563)
> at javax.management.ObjectName.(ObjectName.java:1300)
> at
> org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUt
> ils.java:1520)
> at
> org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:783)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> eateMBeans(GlobalResourcesLifecycleListener.java:280)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> eateMBeans(GlobalResourcesLifecycleListener.java:210)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.cr
> eateMBeans(GlobalResourcesLifecycleListener.java:172)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.li
> fecycleEvent(GlobalResourcesLifecycleListener.java:144)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:166)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.j
> ava:2338)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:594)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
> at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
> 
> And  when  I access the "/pim.htm" page via SSL and port 8443 
> it gives me a
> Tomcat  error in the navigator (HTTP 401). It is in Spanish, 
> but in English
> it would be something like:
> HTTP 401 Status - Impossible to authenticate with provided credentials
> type: status report
> message: Impossible to authenticate with provided credentials
> description:  This  requirement requires HTTP authentication 
> (Impossible to
> authenticate with provided credentials)
> 
> The client certificate is signed by a CA recognised by 
> Tomcat, because when
> I  access  other  pages  via  SSL  and  port 8443, Tomcat 
> gives no eror and
> accepts the client certificate.
> 
> 
> Regards,
> Idoia





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



RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread LILES, DAVID (CONTRACTOR)
I should have clarified minimal docs that cover TC5 and IIS 5. Most of what I 
found references TC4 and those that related to TC5 were for IIS 6.

As for the Wiki... where I looked there were only two links and when I tried to create 
a new one for TC5 and IIS 5 I couldn't get it to generate it correctly

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 11:38 AM
To: Tomcat Users List
Subject: RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep



Hi,

>I've noticed that there is next to no documentation that covers TC5 and
IIS

Google: there are many hits including a bunch of how-to's and tutorials.

>I've never used a Wiki and having looked at it I have no idea how
to go
>about that.

It doesn't get much more trivial than posting to a wiki: paste your text
into a textbox, hit save. ;)  Afterwards you may want to pretty it up a
bit with wiki-specific layout instructions, but that's entirely
optional.

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]


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



RE: Java IDE for Tomcat

2004-03-25 Thread LILES, DAVID (CONTRACTOR)
I am currently using Eclipse 3 with TomCat 5 and so far it has been working well for 
me. I downloaded a plug-in that allows me to run TomCat from within my Eclipse IDE. It 
also allows for creating new TomCat projects which creates your TomCat environment for 
you, much like JBuilder does

-Original Message-
From: Tom Bednarz [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 11:38 AM
To: Tomcat Users List
Subject: Java IDE for Tomcat


Does anybody know if it is possible to integrate Tomcat 5 into JBuilder 
8 Enterprise?

Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 with 
Eclipse (debugging servlets, JSP etc)?

Many thanks for your feedback on your experience.

Tom

-
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]



RE: Java IDE for Tomcat

2004-03-25 Thread Shapira, Yoav

Hi,

>Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5
with
>Eclipse (debugging servlets, JSP etc)?

Yes, google:
http://www.google.com/search?sourceid=navclient&q=tomcat+eclipse.

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]



RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,

>I've noticed that there is next to no documentation that covers TC5 and
IIS

Google: there are many hits including a bunch of how-to's and tutorials.

>I've never used a Wiki and having looked at it I have no idea how
to go
>about that.

It doesn't get much more trivial than posting to a wiki: paste your text
into a textbox, hit save. ;)  Afterwards you may want to pretty it up a
bit with wiki-specific layout instructions, but that's entirely
optional.

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]



Java IDE for Tomcat

2004-03-25 Thread Tom Bednarz
Does anybody know if it is possible to integrate Tomcat 5 into JBuilder 
8 Enterprise?

Does anybody use Eclipse and Tomcat? Is it possible to use Tomcat 5 with 
Eclipse (debugging servlets, JSP etc)?

Many thanks for your feedback on your experience.

Tom

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


RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,

>Wiki has its pros and cons. And different flavors of Wiki are more
advanced
>in the their formatting capabilitites than others. You might be able to
>post
>straight HTML, but usually Wiki's don't like that.
>
>TextFormattingRules: http://www.usemod.com/cgi-
>bin/wiki.pl?TextFormattingRules

All new docs would go in the MoinMoin wiki (http://wiki.apache.org), not
the UseMod one.  In fact we need to move all our UseMod content to the
MoinMoin wiki as that will be a demand from the infrastructure team
soon.

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]



Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Tim Funk
Chong Yu Meng wrote:


The docs are not FAQ worthy but definitely worth linking to from the FAQ.


Well, the documents weren't written to be a FAQ, and I think the 
structure does not lend itself well to a FAQ. The reason why I wrote it 
that way was because a lot of answers in FAQs assume or require a level 
of understanding that newbie Tomcat administrators may not possess. 
Instead of trying to cover the background and theory behind every 
question, I thought a "walk-through" tutorial would be  a more effective 
way of building up understanding of the product.
100% Agree - Many times people go to any FAQ before using a product. Catching 
the newbies is the goal of linking from the FAQ. (That is, getting them to a 
tutorial like document)


Some people may be thinking this is kludgey. Yes it is. But I think 
its an OK tradeoff so we can keep the barrier of documentation 
creation low.

Here, here. But I need to say a little something about my documents. The 
original document is actually in Docbook format, and I generate the HTML 
from that document using docbook utilities. If you want to put it into 
the Wiki, you'll need only the HTML (without the masthead), am I right ? 
I've never used Wiki before, so I may need help here.


Wiki has its pros and cons. And different flavors of Wiki are more advanced 
in the their formatting capabilitites than others. You might be able to post 
straight HTML, but usually Wiki's don't like that.

TextFormattingRules: http://www.usemod.com/cgi-bin/wiki.pl?TextFormattingRules

-Tim



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


RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread LILES, DAVID (CONTRACTOR)
Ref the Wiki I just went through two painful weeks of trying to get TomCat 5 
configured with IIS 5 and finally have things working.

I've noticed that there is next to no documentation that covers TC5 and IIS 5 so I 
have documented the steps I took to get things to work. I asked where I should put my 
doc and it was suggested that it go in the Wiki I've never used a Wiki and having 
looked at it I have no idea how to go about that.

I'm waiting for feedback from the person who helped me resolve the configuration issue 
because I want to give them credit for helping resolve it. Once I've addressed that 
issue I plan to post the document on my web site as well

-Dave

-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 11:20 AM
To: Tomcat Users List
Subject: Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep


Hi Tim !

Tim Funk wrote:

> The drawback (which is a good drawback!) is the tomcat4 and tomcat5 
> links below contain many files and can easily grow to many more as it 
> becomes more comprehensive.
>
Thanks, Tim !

> The docs are not FAQ worthy but definitely worth linking to from the FAQ.

Well, the documents weren't written to be a FAQ, and I think the 
structure does not lend itself well to a FAQ. The reason why I wrote it 
that way was because a lot of answers in FAQs assume or require a level 
of understanding that newbie Tomcat administrators may not possess. 
Instead of trying to cover the background and theory behind every 
question, I thought a "walk-through" tutorial would be  a more effective 
way of building up understanding of the product.

>
> Here is my preference ...
> Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html 
> and http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki.
>
> The book (after being copied to wiki) could be linked from the above 
> links OR we could create a new link in the FAQ.
>
> This way - anyone may maintain/add/edit the content without needing 
> any additional privledges.
>
Actually, I like the Wiki idea, but maybe more along the lines of the 
MySQL documentation (http://www.mysql.com/doc/en/index.html), where 
users can add sections and comments. This would maintain the "narrative 
integrity" while allowing for digressions.

> I like it when many different people can(and do) write docs. Even if 
> 10 people write about the same thing - they may say it in different 
> ways, have a different nuance with their writing style, or emphasis a 
> particular problem they had which can be helpful to such a diverse 
> audience.

I think we need more people writing docs for Tomcat. Though installation 
and basic configuration is covered quite well, and there is a LOT of 
stuff out there on Apache connectors, some advanced stuff, like writing 
your own realms or JNDI realms, or even the recent discussions about 
JNDI datasources are not covered -- or if they are, not adequately.

>
> Some people may be thinking this is kludgey. Yes it is. But I think 
> its an OK tradeoff so we can keep the barrier of documentation 
> creation low.
>
Here, here. But I need to say a little something about my documents. The 
original document is actually in Docbook format, and I generate the HTML 
from that document using docbook utilities. If you want to put it into 
the Wiki, you'll need only the HTML (without the masthead), am I right ? 
I've never used Wiki before, so I may need help here.

>

-- 
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



-
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]



Using PersistentValve for session replication

2004-03-25 Thread Tony Requist

I want to store session information in a database to be shared between a set
of servers in a "load balancing without session affinity" configuration.

I know this means a database query for every request, but I can afford that,
and my small amount of session data changes rarely so there will not be that
many database writes.

I think the combination of PersistentManager and PersistentValve can do
this, but I can't find any documentation about PersistentValve.

Has anybody set up a configuration like this?

Thanks in advance for any help.

- tony



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



RE: Possible thread "crossing"

2004-03-25 Thread Denise Mangano
For the life of me I cannot recall why I made them static!!!  There are
a few other variables that I had static as well.  I want to say that
when I was writing the program I was getting compile errors stating that
I cannot reference non-static variables and changing them to static
allowed the program to compile (major newbie mistake/assumption I am
sure).

I just created a copy of my program and removed static from the
serialNumber as well as a few other variables I had made static and
everything compiled fine.  Very strange though that it has been working
fine this entire time??? :-/ I guess the next step is to make this
change in the live program and monitor it very closely...

Thanks again.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 12:16 PM
To: Tomcat Users List
Subject: RE: Possible thread "crossing"

Ha ! Gotcha !

That's no instance variable 
It's a class variable 

It is shared by all instances of the bean !!!

change it to:

private String serialNumber="";

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 6:14 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> In the bean there is an instance variable:  
>   private static String serialNumber="";
> 
> And it is set using the regular set method:
>   public void setserialNumber(String sn) { serialNumber = sn; }
> 

-
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]



RE: session replication

2004-03-25 Thread Erin O'Neill
Here's an interesting thing --
I just make the change of adding to /etc/profile:  the JAVA_HOME & 
CATALINA_HOME, restarted tomcat and the JSP example that normally fails 
works. If I reload the page and it fails with the compiler not found error 
but if I go back and reclick it works (this is on 5.0.16).

I guess I have to deploy my little test app. I've got it showing up in the 
manager but never compiling ...

erin - who thinks this JSP example compiling may be a fluke... I'm going 
back to the tutorial and see if they offer any more tidbits!

At 11:47 AM 3/25/2004 -0500, you wrote:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: pablo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 11:46 AM
>To: [EMAIL PROTECTED]
>Subject: session replication
>
>Hello ,
>  I am running tomcat 5 and I am trying to figure out how to
>configure session replication .   Unfortunately the Filip Hanik website
>that has all that good info either no longer exists or it has moved.
>Any help on getting the How to would be greatly appreciated.
>-Pablo
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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]


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


RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,

>I think we need more people writing docs for Tomcat. Though
installation
>and basic configuration is covered quite well, and there is a LOT of
>stuff out there on Apache connectors, some advanced stuff, like writing
>your own realms or JNDI realms, or even the recent discussions about
>JNDI datasources are not covered -- or if they are, not adequately.

Contributions are always gladly reviewed and nearly universally accepted
(plus credits are always retained).

>Here, here. But I need to say a little something about my documents.
The
>original document is actually in Docbook format, and I generate the
HTML
>from that document using docbook utilities. If you want to put it into
>the Wiki, you'll need only the HTML (without the masthead), am I right
?
>I've never used Wiki before, so I may need help here.

Wiki will take HTML plus a few wiki-specific commands.  You can see the
help at http://wiki.apache.org/general if you'd like more information.
Wiki doesn't automatically work with DocBook format.

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]



Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Chong Yu Meng
Hi Tim !

Tim Funk wrote:

The drawback (which is a good drawback!) is the tomcat4 and tomcat5 
links below contain many files and can easily grow to many more as it 
becomes more comprehensive.

Thanks, Tim !

The docs are not FAQ worthy but definitely worth linking to from the FAQ.
Well, the documents weren't written to be a FAQ, and I think the 
structure does not lend itself well to a FAQ. The reason why I wrote it 
that way was because a lot of answers in FAQs assume or require a level 
of understanding that newbie Tomcat administrators may not possess. 
Instead of trying to cover the background and theory behind every 
question, I thought a "walk-through" tutorial would be  a more effective 
way of building up understanding of the product.

Here is my preference ...
Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html 
and http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki.

The book (after being copied to wiki) could be linked from the above 
links OR we could create a new link in the FAQ.

This way - anyone may maintain/add/edit the content without needing 
any additional privledges.

Actually, I like the Wiki idea, but maybe more along the lines of the 
MySQL documentation (http://www.mysql.com/doc/en/index.html), where 
users can add sections and comments. This would maintain the "narrative 
integrity" while allowing for digressions.

I like it when many different people can(and do) write docs. Even if 
10 people write about the same thing - they may say it in different 
ways, have a different nuance with their writing style, or emphasis a 
particular problem they had which can be helpful to such a diverse 
audience.
I think we need more people writing docs for Tomcat. Though installation 
and basic configuration is covered quite well, and there is a LOT of 
stuff out there on Apache connectors, some advanced stuff, like writing 
your own realms or JNDI realms, or even the recent discussions about 
JNDI datasources are not covered -- or if they are, not adequately.

Some people may be thinking this is kludgey. Yes it is. But I think 
its an OK tradeoff so we can keep the barrier of documentation 
creation low.

Here, here. But I need to say a little something about my documents. The 
original document is actually in Docbook format, and I generate the HTML 
from that document using docbook utilities. If you want to put it into 
the Wiki, you'll need only the HTML (without the masthead), am I right ? 
I've never used Wiki before, so I may need help here.


--
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
	-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


RE: Possible thread "crossing"

2004-03-25 Thread Shapira, Yoav

Hi,
Why is the serialNumber field static?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Denise Mangano [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 12:14 PM
>To: Tomcat Users List
>Subject: RE: Possible thread "crossing"
>
>Ralph,
>
>In the bean there is an instance variable:
>   private static String serialNumber="";
>
>And it is set using the regular set method:
>   public void setserialNumber(String sn) { serialNumber = sn; }
>
>The purpose of the serial number is to identify which client the
>information being processed is for.  Correct me if I am wrong but I
have
>the scope of the bean set to session.  That means that that when user A
>accesses my first JSP page it starts a session and the variables apply
>to that session until the user ends it.  If user B comes to the site
>they get their own session started.  Is that correct?  If so then if
>User A is in the middle of the session how could it be possible that
>they are requested the form more than once in their session?
>
>Dave, yes I am using mod_ssl 2.8.16.
>
>Thanks.
>
>
>Denise Mangano
>Complus Data Innovations, Inc.
>914-747-1200
>
>-Original Message-
>From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 11:43 AM
>To: Tomcat Users List
>Subject: RE: Possible thread "crossing"
>
>So far so good, but how is the serial number stored in the validator
>bean ?
>
>If the id is stored in an instance variable it may be possible that 2
>concurrent request in the same session to any form that uses this bean
>might cause problems.
>(It is possible to change the value between jsp:setProperty and
>isValid())
>
>What exactly is the purpose of the serial id ?
>
>
>> -Original Message-
>> From: Denise Mangano [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, March 25, 2004 5:05 PM
>> To: Tomcat Users List
>> Subject: RE: Possible thread "crossing"
>>
>> <%@ page import="com.beans.clients.Validator" %> > id="formValidator" class="com.beans.clients.Validator"
>> scope="session"/>
>> <% formValidator.reset(); %>
>> 
>>
>> <% if (formValidator.isValid()) {   %>
>>
>> If the form data is not valid it calls Retry.jsp which I have tried
>> two ways:
>> 1) > value="<%=formValidator.getSerialNumber()%>">
>> 2) 
>>
>
>-
>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 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]



RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,
I'll ask on [EMAIL PROTECTED] and see if someone knows there.  I wouldn't
want to lose stuff posted on the wiki if someone is a bit careless when
editing.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 12:15 PM
>To: Tomcat Users List
>Subject: Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep
>
>Don't know. (I guess it might be nice to take snapshots occasionally.)
>
>-Tim
>
>Shapira, Yoav wrote:
>>
>> BTW, do we backup the wiki every now and then?
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]



RE: Tomcat mixing different log4j FileAppenders

2004-03-25 Thread Angelov, Rossen
Log4J.jar is in extensions directory in java1.4/jre/lib
It is configured in a way that any application that uses our java1.4
installation can have access to this extensions directory. In this case
Tomcat is started with first setting JAVA_HOME to use the same java1.4
installation.

Here are the settings from our log4j properties file:
--
log4j.rootCategory=DEBUG, LOG
log4j.appender.LOG=org.apache.log4j.FileAppender
log4j.appender.LOG.File=/filepath1/log4j.log(and it's filepath2 for the
other log file)
log4j.appender.LOG.layout=org.apache.log4j.PatternLayout
log4j.appender.LOG.layout.ConversionPattern=%d{ABSOLUTE} %p - %m%n
--

I don't see how these settings can cause such a mismatch with the log data.

Ross

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 7:58 AM
To: Tomcat Users List
Subject: RE: Tomcat mixing different log4j FileAppenders



Hi,
How are you configuring log4j?  Where is log4j.jar?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 24, 2004 7:45 PM
>To: 'Tomcat Users List'
>Subject: Tomcat mixing different log4j FileAppenders
>
>I'm using Tomcat 5.0.19 with two different web applications running on
>different virtual hosts and Log4j to log errors.
>Each application has its own log4j FileAppender and is supposed to
write to
>its own log file.
>
>I've noticed few times that Tomcat sends the log information to the
same
>log
>file which isn't right. Both applications are not supposed to share
>anything
>except the container. The issue is resolved after restarting Tomcat but
it
>appears randomly again.
>
>Has anybody experienced similar problems or do you have any suggestions
>what
>might be set incorrectly in my case?
>
>Thanks,
>Ross
>
>
>"This communication is intended solely for the addressee and is
>confidential and not for third party unauthorized distribution."




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 communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."



RE: Possible thread "crossing"

2004-03-25 Thread Ralph Einfeldt
Ha ! Gotcha !

That's no instance variable 
It's a class variable 

It is shared by all instances of the bean !!!

change it to:

private String serialNumber="";

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 6:14 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> In the bean there is an instance variable:  
>   private static String serialNumber=""; 
> 
> And it is set using the regular set method:
>   public void setserialNumber(String sn) { serialNumber = sn; }
> 

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



Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Tim Funk
Don't know. (I guess it might be nice to take snapshots occasionally.)

-Tim

Shapira, Yoav wrote:
BTW, do we backup the wiki every now and then?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Possible thread "crossing"

2004-03-25 Thread Denise Mangano
Ralph,

In the bean there is an instance variable:  
private static String serialNumber=""; 

And it is set using the regular set method:
public void setserialNumber(String sn) { serialNumber = sn; }

The purpose of the serial number is to identify which client the
information being processed is for.  Correct me if I am wrong but I have
the scope of the bean set to session.  That means that that when user A
accesses my first JSP page it starts a session and the variables apply
to that session until the user ends it.  If user B comes to the site
they get their own session started.  Is that correct?  If so then if
User A is in the middle of the session how could it be possible that
they are requested the form more than once in their session?

Dave, yes I am using mod_ssl 2.8.16.

Thanks.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 11:43 AM
To: Tomcat Users List
Subject: RE: Possible thread "crossing"

So far so good, but how is the serial number stored in the validator
bean ?

If the id is stored in an instance variable it may be possible that 2
concurrent request in the same session to any form that uses this bean
might cause problems.
(It is possible to change the value between jsp:setProperty and
isValid())

What exactly is the purpose of the serial id ?


> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 5:05 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> <%@ page import="com.beans.clients.Validator" %>  id="formValidator" class="com.beans.clients.Validator"
> scope="session"/>
> <% formValidator.reset(); %>
> 
> 
> <% if (formValidator.isValid()) {   %>
> 
> If the form data is not valid it calls Retry.jsp which I have tried 
> two ways:
> 1)  value="<%=formValidator.getSerialNumber()%>">
> 2) 
> 

-
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]



RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,

>Here is my preference ...
>Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html
and
>http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki.
>
>The FAQ does already links to these 2 documents:
>http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links and
>http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto
>
>The book (after being copied to wiki) could be linked from the above
links
>OR we could create a new link in the FAQ.
>
>This way - anyone may maintain/add/edit the content without needing any
>additional privledges.

I like it.  If it's OK with Senor Chong, it's fine with me.

BTW, do we backup the wiki every now and then?

Yoav



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]



RE: Possible thread "crossing"

2004-03-25 Thread Ralph Einfeldt

You have basically this options:
- The error was introduced by the update of the underlying software

- The error was there before and somehow just didn't show
  That is shows up after the update may be coincidence.
  Or it just show because the new system is faster/slower
  than before.

>From your description the second one is (in my opinion) most 
likely.

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 5:46 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> 
> It would appear so, but the strange thing is that I have been 
> using the same program since July of last year.  
> I recently rebuilt my server and
> changed versions of RH, Apache and Tomcat - but my web pages and java
> programs were all restored from back up. This is what's 
> boggling my mind
> - nothing has changed in my application itself and this just started
> happening a few weeks ago...
> 

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



RE: session replication

2004-03-25 Thread Shapira, Yoav

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: pablo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 11:46 AM
>To: [EMAIL PROTECTED]
>Subject: session replication
>
>Hello ,
>  I am running tomcat 5 and I am trying to figure out how to
>configure session replication .   Unfortunately the Filip Hanik website
>that has all that good info either no longer exists or it has moved.
>Any help on getting the How to would be greatly appreciated.
>-Pablo
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]



Re: Possible thread "crossing"

2004-03-25 Thread David Rees
Denise Mangano wrote, On 3/25/2004 8:45 AM:
It would appear so, but the strange thing is that I have been using the
same program since July of last year.  I recently rebuilt my server and
changed versions of RH, Apache and Tomcat - but my web pages and java
programs were all restored from back up. This is what's boggling my mind
- nothing has changed in my application itself and this just started
happening a few weeks ago...
This is a wild stab in the dark, but are you using SSL?

-Dave

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


session replication

2004-03-25 Thread pablo
Hello ,
 I am running tomcat 5 and I am trying to figure out how to 
configure session replication .   Unfortunately the Filip Hanik website 
that has all that good info either no longer exists or it has moved.  
Any help on getting the How to would be greatly appreciated.
-Pablo

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


RE: Possible thread "crossing"

2004-03-25 Thread Ralph Einfeldt
So far so good, but how is the serial number stored 
in the validator bean ?

If the id is stored in an instance variable it may be 
possible that 2 concurrent request in the same session
to any form that uses this bean might cause problems.
(It is possible to change the value between 
jsp:setProperty and isValid())

What exactly is the purpose of the serial id ?


> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 5:05 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> <%@ page import="com.beans.clients.Validator" %>
>  scope="session"/>
> <% formValidator.reset(); %>
> 
> 
> <% if (formValidator.isValid()) {   %>
> 
> If the form data is not valid it calls Retry.jsp which I have 
> tried two ways:
> 1)  value="<%=formValidator.getSerialNumber()%>">
> 2) 
> 

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



RE: Possible thread "crossing"

2004-03-25 Thread Denise Mangano
It would appear so, but the strange thing is that I have been using the
same program since July of last year.  I recently rebuilt my server and
changed versions of RH, Apache and Tomcat - but my web pages and java
programs were all restored from back up. This is what's boggling my mind
- nothing has changed in my application itself and this just started
happening a few weeks ago...



Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 11:15 AM
To: Tomcat Users List
Subject: Re: Possible thread "crossing"

Denise Mangano wrote, On 3/25/2004 8:04 AM:
>
> If the form data is not valid it calls Retry.jsp which I have tried 
> two
> ways:
> 1)  value="<%=formValidator.getSerialNumber()%>">
> 2) 
> 
> If the form data is completely valid then Verify.jsp is called.
> Verify.jsp just retrieves the form data (not the serialNumber) and 
> displays it to the user.  Nothing can be changed on this screen and 
> when the user clicks submit the data is taken from the instance of 
> Validator.java and sent of for processing.  The user does have the 
> option to go back and make changes which brings them to the previous 
> page.
> 
> One thing to note.  On Retry.jsp up until yesterday I had the first 
> way in the jsp page.  I changed this yesterday to make sure it was 
> hard coded from all possible change points and so far since then no 
> transactions have crossed over - but it is still a little too early to

> tell since these "crossings" were random and not happening everyday.

I would guess that your formValidator class com.beans.clients.Validator
may have some issues based on the behavior you've described.

-Dave

-
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]



RE: Tomcat 3.2.3 windows service

2004-03-25 Thread Dmitriy .
Yes, it does...


From: "Cocalea, Eugen" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Tomcat 3.2.3 windows service
Date: Thu, 25 Mar 2004 11:25:35 +0200
Does it run as standalone?

-Original Message-
From: Dmitriy . [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.3 windows service
Hi I have Tomcat 3.2.3 and tried running it as a service on my Win2000
server and got the following error:
---
The Jakarta service is starting.
The Jakarta service could not be started.
The service did not report an error.

More help is available by typing NET HELPMSG 3534.
-
The NET HELPMSG doesn't indicate anything as well... Do you know what the
problem might be?
I used the jk_nt_service.exe that I downloaded from jakarta.apache.org.
Maybe it was intended to run on NT and I have 2000 and that might cause a
problem? Anyone experienced something like this before?
Thanks.

_
All the action. All the drama. Get NCAA hoops coverage at MSN Sports by
ESPN. http://msn.espn.go.com/index.html?partnersite=espn
-
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]
_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/

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


Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Tim Funk
The drawback (which is a good drawback!) is the tomcat4 and tomcat5 links 
below contain many files and can easily grow to many more as it becomes more 
comprehensive.

( http://cymulacrum.net/writings/tomcat5/book1.html and 
http://cymulacrum.net/writings/tomcat4/book1.html )

The docs are not FAQ worthy but definitely worth linking to from the FAQ.

Here is my preference ...
Copy the content of http://cymulacrum.net/writings/tomcat5/book1.html and 
http://cymulacrum.net/writings/tomcat4/book1.html to the Wiki.

The FAQ does already links to these 2 documents: 
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links and 
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto

The book (after being copied to wiki) could be linked from the above links OR 
we could create a new link in the FAQ.

This way - anyone may maintain/add/edit the content without needing any 
additional privledges.

I like it when many different people can(and do) write docs. Even if 10 
people write about the same thing - they may say it in different ways, have a 
different nuance with their writing style, or emphasis a particular problem 
they had which can be helpful to such a diverse audience.

Some people may be thinking this is kludgey. Yes it is. But I think its an OK 
tradeoff so we can keep the barrier of documentation creation low.

[My opinion of all of this might change in 10 minutes.]

-Tim

Shapira, Yoav wrote:

Hi,
My one remaining concern is future maintenance of the documents: what we
host we have to maintain.  It's enough work maintaining the tomcat
documentation current as it is right now.  But maybe if we place your
documentation as part of the FAQ (e.g. here:
http://jakarta.apache.org/tomcat/faq/unix.html), then it's not as big a
deal.  Tim?
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 10:32 AM
To: Tomcat Users List
Subject: Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep
Hi Yoav !

Shapira, Yoav wrote:


Hi,
Technically, we can host this on jakarta.apache.org/tomcat.  The
network

traffic numbers you quote would be a tiny fraction of what our servers
receive.  However:
- You won't have direct write access to the docs: you'll have to send
a

message to tomcat-dev.  Someone (most likely me ;)) would read and
apply

your changes ASAP, but it will sometimes take a day or two.



No problems here !


- Technically speaking, you give up ownership of the docs and they
become property of the ASF.  Of course your credits remain (e.g. the
"Prepared By Pascal Chong" line with a link to your email address) as
they are, but things like links to your resume are dropped ;).


I have no issue with this also. Anyway, my resume has become a
liability

in my local context, because I get rejection letters that say I'm
over-qualified. ;)

- We usually don't do this.  We're happy to add links to external
resources (for example, I also help with log4j's doc page,
http://logging.apache.org/log4j/docs/documentation.html, which has
numerous links to external articles).  I'll be happy to add an
external

resources page, and link to your site.  That way we avoid the above
two

issues.


I can't afford to keep my site running, if the traffic continues to
trend upwards. And I understand that this is rather unorthodox, so I
really appreciate your effort !

- In the cases where we have done this (e.g.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html)
,

it's one simple page.  Your docs are much more complex in structure,
content, and style.  They really deserve to be their own website ;)


Thanks Yoav ! Because of my early problems (oops -- learning curve)
with

Tomcat, I thought that a tutorial was something that newbies would
appreciate. That's why I structured my document the way I did. I
realize

that actually works against me right now. But I really appreciate your
quick response on this! Thanks for your thoughts ! And I will wait for
others to respond on this.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Possible thread "crossing"

2004-03-25 Thread David Rees
Denise Mangano wrote, On 3/25/2004 8:04 AM:
If the form data is not valid it calls Retry.jsp which I have tried two
ways:
1) 
2) 
If the form data is completely valid then Verify.jsp is called.
Verify.jsp just retrieves the form data (not the serialNumber) and
displays it to the user.  Nothing can be changed on this screen and when
the user clicks submit the data is taken from the instance of
Validator.java and sent of for processing.  The user does have the
option to go back and make changes which brings them to the previous
page.
One thing to note.  On Retry.jsp up until yesterday I had the first way
in the jsp page.  I changed this yesterday to make sure it was hard
coded from all possible change points and so far since then no
transactions have crossed over - but it is still a little too early to
tell since these "crossings" were random and not happening everyday.
I would guess that your formValidator class com.beans.clients.Validator 
may have some issues based on the behavior you've described.

-Dave

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


Re: need for deployment strategy without terminating user sessions

2004-03-25 Thread Tim Funk
Tomcat should be saving all session data to a serializable file. So you can 
persist session across an application restart.

You can also (in tomcat 5) - use the clustering capability.

You can use JDBC to persist sessions.

OR

You can not put stuff critical to a session and persist in another manner and 
save non-critical stuff in the session.

-Tim

Hubbert, Thomas wrote:

Hi,
I need some help on how to deploy applications on tomcat without terminating
all the user sessions (by stopping and restarting the application). At the
moment I can't see how this could be possible (not even with the help of
session replication). Is there any feature in tomcat or modjk which could
help me achieve this task? 
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Connection Pool

2004-03-25 Thread Tom K
Armalai,

This is some of the parameters I noted you didn't have, BUT,
they are from the Tomcat 5, so check the docs. Just by looking at the
verbiage of the tags, they look like they might be helpful.

Tom Kochanowicz





maxIdle
30




maxWait
1




removeAbandoned
true





-Original Message-
From: armalai [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 7:53 AM
To: Tomcat Users List
Subject: Connection Pool

Environement: Tomcat4.x ,Windows 2000 , Oracle9i

I'm using 75 concurrent users to hit my application using Jmeter.
After 5 hours i'm getting this below error. 

ERROR: Cannot get a connection, pool exhausted

1.Can you please give me an idea to tune up my settings?
2.This is something sue to server's unavailable state?



this is my data base connection setting.

  
  

  driverClassName
  oracle.jdbc.OracleDriver


  url
  jdbc:oracle:oci:@CURACC_DEV


  username
  sysadm


  password
  sysadmawbs


  maxActive
  20


  maxWait
  1


  maxIdle
  10

  


Thanks.,
MALAI

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



Where I can find the apache 2.0.x and tomcat 4.1.2x debian packages ?

2004-03-25 Thread Salvador Santander Gutiérrez
Where I can find the apache 2.0.x and tomcat 4.1.2x debian packages ?
Thanks.


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



RE: Possible thread "crossing"

2004-03-25 Thread Denise Mangano
Thanks for the replies.  This is the process involved in my webapp:

At the bottom of my form I have:   

The action of this form calls the following control jsp:

<%@ page import="com.beans.clients.Validator" %>


<% formValidator.reset(); %>


<% if (formValidator.isValid()) {   %>

 

<% } else {  %>

 

<% } %>

If the form data is not valid it calls Retry.jsp which I have tried two
ways:
1) 
2) 

If the form data is completely valid then Verify.jsp is called.
Verify.jsp just retrieves the form data (not the serialNumber) and
displays it to the user.  Nothing can be changed on this screen and when
the user clicks submit the data is taken from the instance of
Validator.java and sent of for processing.  The user does have the
option to go back and make changes which brings them to the previous
page.

One thing to note.  On Retry.jsp up until yesterday I had the first way
in the jsp page.  I changed this yesterday to make sure it was hard
coded from all possible change points and so far since then no
transactions have crossed over - but it is still a little too early to
tell since these "crossings" were random and not happening everyday.

Thank you for taking a look.


Denise Mangano
Complus Data Innovations, Inc.
914-747-1200

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 24, 2004 2:34 AM
To: Tomcat Users List
Subject: RE: Possible thread "crossing"


That the problem is just happening for users that have the highest
volume, might indicate that you have a threading problem. (Like a
variable that should only be visible in the current request, is visible
to concurrent requests)

If there is a threading problem it's most likely in your application or
a third party software. (I wouldn't bet that tomcat isn't having such
issues, but it is much less likely)

Can you show how you set the id in the jsp ?
Can you show a example how you process the jsp ?
If you can't make it public, you may post it to me directly (No
guarantee how much time I will have to look at it).

The memory that is used by your java is very unlikely to cause such
symptoms. (In certain instances it may indirectly affect the problem by
increasing the runtime for each request and this way rising the
probability that requests are processed concurrently)

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 24, 2004 6:02 AM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> 
> I just wanted to point out again that this data appears to be getting 
> "crossed" only with the clients that have the highest volume This 
> is why I am thinking it's a java/Tomcat issue.  Perhaps my java isn't 
> using enough memory? (old-newbie guess?)  How would I check something 
> like that, and if it is too low how do I increase it?
> 
> Thanks again. 
> 
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> -Original Message-
> From: Denise Mangano
> Sent: Tuesday, March 23, 2004 11:53 PM
> To: Tomcat Users List
> Subject: RE: Possible thread "crossing"
> 
> Can I please verify something?  This webapp has been live since last 
> year and I have never had this problem.  I recently reformatted my 
> server changing versions of Tomcat, Apache and RH.  The programs and 
> web pages I am using are the same - pulled from backups so nothing has

> changed.
> 
> This is my java program structure:  /com/beans/transaction/*.java.
> 
> The pages accessing these programs are located in: 
>   /webapps/ROOT/clients/client1 
>   /webapps/ROOT/clients/client2
>   etc...
> 
> When someone goes to client one and accesses the java program an 
> individual instance of the program is created, correct?  So if user 1 
> starts a transaction from /client1 and user 2 starts a transaction 
> from
> /client2 each user has it's own instance of the java program running -

> so technically data from one instance should not be finding it's way 
> to another.  I made some changes to my webapp but this still appears 
> to be happening.
> 
> Nix:
> 1.  Network sniffer?  If I add some debugging code to my java program 
> is this what you mean? Or is there a tool I can actually use?
> 2.  The two key variables are a transaction number and this serial 
> number.  Both are hard coded into the JSP pages and are not changed by

> anything in either my JSP or my java program.  Only variables that 
> change are personal info (i.e. address).
> 
> Thanks.
> 
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> -Original Message-
> From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 1:13 AM
> To: Tomcat Users List
> Subject: Re: Possible thread "crossing"
> 
> Denise Mangano wrote:
> 
> > The only thing I can narrow it down to is Tomcat/Java.  Like I said 
> > the serial numbers are hard coded on the jsp pages.  Everytime this 
> > jsp page is submitted it forms its own instance of m

test

2004-03-25 Thread Michael Lehnen




*
Automatisch erzeugte Unterschrift
Automatically generated signature
*

BEI ANRUF MORD??? Nein, nicht "Mord" wie bei Alfred Hitchcock, sondern die 
elektronische Akte IHRES Kunden öffnet  sich innerhalb von Sekunden! Sie kommen nie 
wieder in die Verlegenheit wichtige Kundeninformationen nicht  griffbereit zu haben!

Dafür steht JTheseus, die webbasierte CRM-Lösung (Customer-Relationship-Management) 
der Tesla. Über 100  Telefon-Anlagen werden schon unterstützt. Die Deutsche Telekom 
vertreibt unser Produkt unter dem Namen "CRM Compact  Sales Support" und stellt damit 
bundesweiten Vor-Ort-Service sicher.

Testen Sie JTheseus OHNE Download und OHNE Installation direkt in Ihrem Internet 
Explorer:

http://www.Demo.JTheseus.de

*

Michael Lehnen
Technik
Tesla CRM Software GmbH
Bockholtstr. 23

41460 Neuss

Germany

Tel +49-2131-95151-0
Fax +49-2131-95151-8

[EMAIL PROTECTED]

www.Tesla.de und www.JTheseus.de

'Der rote Faden zu Ihren Kunden'
CRM-Software mit Telefon- und Internet-Integration

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



Re: context.xml - what's the secret?

2004-03-25 Thread Chong Yu Meng
Hi Joshua,

There's your answer right there. Yes, the directory *has* to exist. In 
fact, when you install Tomcat (the full version, not sure about LE, 
though), you should see admin.xml and manager.xml inside that directory. 
You are using Tomcat 5, right ? If the directory does not exist, you 
should create it. If you're using Tomcat 4.1.x or earlier, I think that 
saving your context information inside a separate XML file is out of the 
question (that is, I don't think it would work).

HTH

White, Joshua A (HTSC, CASD) wrote:

No problem.

I am using the "org.apache.catalina.ant.InstallTask" ant task.

As far as I know, this task does not copy the context XML into
$CATALINA_HOME/conf/Catalina/localhost.  Should it be doing this?  In fact,
the $CATALINA_HOME/conf/Catalina directory does not exist.
Suggestions?



 

--

"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
	-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


RE: post data through form based authentication example?

2004-03-25 Thread Martin Alley
Hi Adam,

That's encouraging.  I'm actually using struts in this app too.  I'll do
some debugging and see where I get.

Thanks for now
Martin


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2004 15:10
To: Tomcat Users List
Subject: Re: post data through form based authentication example?

Martin,
I would check your problem again. That is not the normal behaviour of 
the container-managed login. It will cache the original request during 
the login and send it on to the originally requested URL.

Adam

On 03/25/2004 02:45 PM Martin Alley wrote:
> Hi,
> 
> Has any one got an example of a servlet secured with form based
> authentication, where the request to the servlet is posted, from
outside
> the secured area?
> 
> My actual situation is I already have a web application with form
based
> auth working fine, but I have a problem when the user is at a web
form,
> about to post the data when their session times out.  Then they submit
> the form, get sent to the login page, and then the on to the original
> form processing servlet.  However the post data is now lost.
> 
> I am using tomcat4.1 as bundled with JBoss 3.2.3 and the coyote
> connector.
> 
> Thanks in advance
> Martin
> PS I have also posted to JBoss
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


-
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]



RE: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Shapira, Yoav

Hi,
My one remaining concern is future maintenance of the documents: what we
host we have to maintain.  It's enough work maintaining the tomcat
documentation current as it is right now.  But maybe if we place your
documentation as part of the FAQ (e.g. here:
http://jakarta.apache.org/tomcat/faq/unix.html), then it's not as big a
deal.  Tim?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 10:32 AM
>To: Tomcat Users List
>Subject: Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep
>
>Hi Yoav !
>
>Shapira, Yoav wrote:
>
>>Hi,
>>Technically, we can host this on jakarta.apache.org/tomcat.  The
network
>>traffic numbers you quote would be a tiny fraction of what our servers
>>receive.  However:
>>
>>- You won't have direct write access to the docs: you'll have to send
a
>>message to tomcat-dev.  Someone (most likely me ;)) would read and
apply
>>your changes ASAP, but it will sometimes take a day or two.
>>
>>
>>
>No problems here !
>
>>- Technically speaking, you give up ownership of the docs and they
>>become property of the ASF.  Of course your credits remain (e.g. the
>>"Prepared By Pascal Chong" line with a link to your email address) as
>>they are, but things like links to your resume are dropped ;).
>>
>>
>>
>I have no issue with this also. Anyway, my resume has become a
liability
>in my local context, because I get rejection letters that say I'm
>over-qualified. ;)
>
>>- We usually don't do this.  We're happy to add links to external
>>resources (for example, I also help with log4j's doc page,
>>http://logging.apache.org/log4j/docs/documentation.html, which has
>>numerous links to external articles).  I'll be happy to add an
external
>>resources page, and link to your site.  That way we avoid the above
two
>>issues.
>>
>>
>I can't afford to keep my site running, if the traffic continues to
>trend upwards. And I understand that this is rather unorthodox, so I
>really appreciate your effort !
>
>>- In the cases where we have done this (e.g.
>>http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html)
,
>>it's one simple page.  Your docs are much more complex in structure,
>>content, and style.  They really deserve to be their own website ;)
>>
>>
>>
>Thanks Yoav ! Because of my early problems (oops -- learning curve)
with
>Tomcat, I thought that a tutorial was something that newbies would
>appreciate. That's why I structured my document the way I did. I
realize
>that actually works against me right now. But I really appreciate your
>quick response on this! Thanks for your thoughts ! And I will wait for
>others to respond on this.
>
>--
>"Men never do evil so completely and cheerfully as when they do it from
>religious conviction."
>   -- Blaise Pascal
>++
>| Pascal Chong   |
>| email: [EMAIL PROTECTED]  |
>||
>| Please visit my site at : http://cymulacrum.net|
>| If you're using my documentation, please read the Terms and|
>| and Conditions at http://cymulacrum.net/terms.html |
>++
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]



RE: context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
No problem.

I am using the "org.apache.catalina.ant.InstallTask" ant task.

As far as I know, this task does not copy the context XML into
$CATALINA_HOME/conf/Catalina/localhost.  Should it be doing this?  In fact,
the $CATALINA_HOME/conf/Catalina directory does not exist.

Suggestions?



-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 9:08 AM
To: Tomcat Users List
Subject: Re: context.xml - what's the secret?


Ok, this may sound like a rather obvious question, but how are you using 
the Ant task to install ? Are you using the deployer, or a custom ant 
task ?

Also, when you deploy your web application, does it copy the context XML 
into $CATALINA_HOME/conf/Catalina/localhost ? If it does not, then I 
suspect something is not working properly with the ant build file 
(everytime I write something like this, I get plenty of negative 
responses -- but at least, Joshua, you'll get a lot of information !)

White, Joshua A (HTSC, CASD) wrote:

>No luck.
>
>I am using the ant install task to install the war.  I have tried naming
the
>context fragment both context.xml and myAppName.xml.  Any other ideas?
>
>Joshua
>
>-Original Message-
>From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 8:03 AM
>To: Tomcat Users List
>Subject: Re: context.xml - what's the secret?
>
>
>Hi Joshua,
>
>If you're using a war file, then you should place the  fragment 
>inside META-INF then deploy it. If you have already deployed the web 
>application (that is, it is either already expanded inside your web 
>application directory, or the directory was manually created and your 
>servlets and JSPs reside inside there), then the context's XML file goes 
>into $CATALINA_HOME/conf/Catalina/localhost/
>
>And remember that it should be given the same name as your web 
>application (that is, if your web application is called 
>'MyWonderfulApp', then the name of the XML file should be 
>MyWonderfulApp.xml. Not context.xml.
>
>I spent the whole of last weekend figuring this out ... sigh !
>
>HTH
>
>
>  
>


-- 
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Re: [OT] Needed : New home(s) for Tomcat on Linux StepByStep

2004-03-25 Thread Chong Yu Meng
Hi Yoav !

Shapira, Yoav wrote:

Hi,
Technically, we can host this on jakarta.apache.org/tomcat.  The network
traffic numbers you quote would be a tiny fraction of what our servers
receive.  However:
- You won't have direct write access to the docs: you'll have to send a
message to tomcat-dev.  Someone (most likely me ;)) would read and apply
your changes ASAP, but it will sometimes take a day or two.
 

No problems here !

- Technically speaking, you give up ownership of the docs and they
become property of the ASF.  Of course your credits remain (e.g. the
"Prepared By Pascal Chong" line with a link to your email address) as
they are, but things like links to your resume are dropped ;).
 

I have no issue with this also. Anyway, my resume has become a liability 
in my local context, because I get rejection letters that say I'm 
over-qualified. ;)

- We usually don't do this.  We're happy to add links to external
resources (for example, I also help with log4j's doc page,
http://logging.apache.org/log4j/docs/documentation.html, which has
numerous links to external articles).  I'll be happy to add an external
resources page, and link to your site.  That way we avoid the above two
issues.  
 

I can't afford to keep my site running, if the traffic continues to 
trend upwards. And I understand that this is rather unorthodox, so I 
really appreciate your effort !

- In the cases where we have done this (e.g.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html),
it's one simple page.  Your docs are much more complex in structure,
content, and style.  They really deserve to be their own website ;)
 

Thanks Yoav ! Because of my early problems (oops -- learning curve) with 
Tomcat, I thought that a tutorial was something that newbies would 
appreciate. That's why I structured my document the way I did. I realize 
that actually works against me right now. But I really appreciate your 
quick response on this! Thanks for your thoughts ! And I will wait for 
others to respond on this.

--
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
	-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


need for deployment strategy without terminating user sessions

2004-03-25 Thread Hubbert, Thomas
Hi,
I need some help on how to deploy applications on tomcat without terminating
all the user sessions (by stopping and restarting the application). At the
moment I can't see how this could be possible (not even with the help of
session replication). Is there any feature in tomcat or modjk which could
help me achieve this task? 

Thomas

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



Re: setting crosscontext attribute to true in auto-deployed webapp??

2004-03-25 Thread Phillip Rhodes

Hi,
That's what the  server.xml element is for.
Ah, thank you, Yoav! That's exactly
what I needed.
TTYL,

Phillip R.



--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives 
that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.

FREE AMERICA
Vote Libertarian
www.lp.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Write my own Realm - HOWTO ?

2004-03-25 Thread Adam Hardy
Tom,
FIXME means it needs to be written... :) (Although I may be wrong there 
- perhaps someone will jump in)

I should imagine that the original class for the JDBC realm would be a 
fine basis to start from.

You should jar it up and put it in tomcat's common/lib directory.

Adam

On 03/25/2004 04:05 PM Tom Bednarz wrote:
Im using Tomcat 5.0.19.

I need to extend the JDBC Realm a little bit, precisly I need to have my 
own implementation of authenticate(..).

In the Realm Configuration HOW-TO is a incomplete Link (FIXME) to 
information how to do this.

Could anybody please point me to that link?

Basically I want to create my own realm derived from JDBCRealm with my 
own implementation of authenticate(). How do I tell Tomcat about this 
new Realm. Where do I need to put the jar file that it is being recognised?

Thanks for your help.

Thomas

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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: setting crosscontext attribute to true in auto-deployed webapp??

2004-03-25 Thread Shapira, Yoav

Hi,
That's what the  server.xml element is for.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Phillip Rhodes [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 10:14 AM
>To: [EMAIL PROTECTED]
>Subject: setting crosscontext attribute to true in auto-deployed
webapp??
>
>Hello all, I have a quick question concerning the crosscontext
>attribute.  I have two webapps that need to work together,
>via one app obtaining the ServletContext for the other. I
>understand that I need to set the crosscontext attribute
>of the Context to 'true' in order for getContext()
>to work correctly..
>
>However, I am relying (currently) on Tomcat's auto-deployment
>of war files, to deploy my apps.  So I'm wondering, is there a
>way to tell Tomcat to make the crosscontext attribute, of the
>Context of the auto-deployed app, equal true?  Or am I forced
>to manually configure the  element in server.xml if
>I want to enforce that setting?
>
>Thanks,
>
>Phillip Rhodes
>
>--
>When the 1st Amendment no longer protects your voice.
>And when the 4th Amendment no longer protects your privacy or your
stuff.
>Thank God we have the 2nd Amendment to tell our elected representatives
>that enough is enough.
>It's time to put "... from my cold, dead hands" back where it belongs.
>
>FREE AMERICA
>Vote Libertarian
>www.lp.org
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]



Re: post data through form based authentication example?

2004-03-25 Thread Adam Hardy
Martin,
I would check your problem again. That is not the normal behaviour of 
the container-managed login. It will cache the original request during 
the login and send it on to the originally requested URL.

Adam

On 03/25/2004 02:45 PM Martin Alley wrote:
Hi,

Has any one got an example of a servlet secured with form based
authentication, where the request to the servlet is posted, from outside
the secured area?
My actual situation is I already have a web application with form based
auth working fine, but I have a problem when the user is at a web form,
about to post the data when their session times out.  Then they submit
the form, get sent to the login page, and then the on to the original
form processing servlet.  However the post data is now lost.
I am using tomcat4.1 as bundled with JBoss 3.2.3 and the coyote
connector.
Thanks in advance
Martin
PS I have also posted to JBoss


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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


setting crosscontext attribute to true in auto-deployed webapp??

2004-03-25 Thread Phillip Rhodes
Hello all, I have a quick question concerning the crosscontext
attribute.  I have two webapps that need to work together,
via one app obtaining the ServletContext for the other. I
understand that I need to set the crosscontext attribute
of the Context to 'true' in order for getContext()
to work correctly..
However, I am relying (currently) on Tomcat's auto-deployment
of war files, to deploy my apps.  So I'm wondering, is there a
way to tell Tomcat to make the crosscontext attribute, of the
Context of the auto-deployed app, equal true?  Or am I forced
to manually configure the  element in server.xml if
I want to enforce that setting?
Thanks,

Phillip Rhodes

--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives 
that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.

FREE AMERICA
Vote Libertarian
www.lp.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >