RE: Problem in Tomcat 5.0.19 - Help Needed

2004-03-26 Thread Ramachandran

Hi Shanmugam,

Yes i am using custom tag(menus-taglib) menu here. Is there any problem
arise while using that? Can u please give me the solution. Here by i atached
my menuinclude.jsp here.

-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 1:40 PM
To: Tomcat Users List
Subject: Re: Problem in Tomcat 5.0.19 - Help Needed


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 jsp:include

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]


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

Re: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Harry Mantheakis
Hello

 pstmt.setString(1,ClassifiedAd);
 pstmt.setString(2,UniqueDateId);

Are those two parameters - 'ClassifiedAd' and 'UniqueDateId' - variables?
They should be, and if so, where do you declare and initialise them? They do
not appear in the method you posted.

Harry


 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
 
 


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



Re: Problem in Tomcat 5.0.19 - Help Needed

2004-03-26 Thread shanmugampl
Hi,

  Is menus-taglib.tld is your own custom tag, or is it a third 
party tag. In tomcat 5, tag pooling is enabled by default. This is a 
feature, where the same instance of the tag will be used in all places. 
Your tags should be able to handle tag pooling or you must disable it. 
You can disable it by setting the enablePooling variable to false, in 
the jsp servlet of web.xml present in tomcat home/conf directory.

servlet
   servlet-namejsp/servlet-name
   servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
   init-param
   param-namefork/param-name
   param-valuefalse/param-value
   /init-param
   init-param
   param-namexpoweredBy/param-name
   param-valuefalse/param-value
   /init-param
*init-param
   param-nameenablePooling/param-name
   param-valuefalse/param-value
   /init-param*
   load-on-startup3/load-on-startup
   /servlet
-Shan-



Ramachandran wrote:

Hi Shanmugam,

Yes i am using custom tag(menus-taglib) menu here. Is there any problem
arise while using that? Can u please give me the solution. Here by i atached
my menuinclude.jsp here.
-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 1:40 PM
To: Tomcat Users List
Subject: Re: Problem in Tomcat 5.0.19 - Help Needed
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 jsp:include
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]
 



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


RE: Tomcat Hangs

2004-03-26 Thread Ryan Lissack
What OS is Tomcat running on ?

-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 00:51
To: [EMAIL PROTECTED]
Subject: Tomcat Hangs


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: tomcat certificate

2004-03-26 Thread Idoia Murua Belacortu

Yes, you are right. Before my server.xml file had the following realm
defined:

  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

I have replaced it with the memory realm:
Realm className=org.apache.catalina.realm.MemoryRealm /

And  now  it  accepts  the client certificate. Thank you very much for your
help.

And  I  think  you are right, the error in the catalina.out file is a JMX
issue.

Regards,
Idoia


   

  Mark Thomas

  [EMAIL PROTECTED]Para: 'Tomcat Users List' 
[EMAIL PROTECTED]
  cc: 

   Asunto:   RE: tomcat certificate

  25/03/04 19:48   

  Por favor,   

  responda a   

  Tomcat Users

  List

   

   




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:
 Realm className=org.apache.catalina.realm.MemoryRealm /

 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:
  Connector port=8443
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:
  role rolename=certs/
  user   username=[EMAIL PROTECTED],  CN=Idoia,
   OU=INFOTECH,
  O=ROBOTIKER, L=ZAMUDIO, ST=BIZKAIA, C=ES password=null
  roles=certs/
 
 
  The web.xml file of the application is:
 
  ?xml version=1.0 encoding=windows-1252?
  !DOCTYPE  web-app  PUBLIC  -//Sun Microsystems, Inc.//DTD
  Web Application
  2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  descriptionEmpty web.xml file for Web
  Application/description
  session-config
  session-timeout35/session-timeout
  /session-config
  mime-mapping
  extensionhtml/extension
  mime-typetext/html/mime-type
  /mime-mapping
  mime-mapping
  extensiontxt/extension
  mime-typetext/plain/mime-type
  /mime-mapping
  welcome-file-list
  welcome-fileindex.jsp/welcome-file
  welcome-fileindex.html/welcome-file
  

profiling with -Xrunhprof

2004-03-26 Thread Michael Südkamp
Hi,

I ran my Tomcat web-app with Sun JDK 1.4.2 with the built-in profiler activated:
My options are:
cpu=times,thread=y,cutoff=0,format=a
which should give me exact method call times.
My problem is that the reported method call counts are strange. For example one method 
which is called once for every request is reported with 0 calls.

Has anyone similar experiences?

Michael


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



WebDAV with Tomcat and IIS/isapi_redirect.dll

2004-03-26 Thread Ingo Rockel
Hi there,

has anyone a working setup with Tomcat and IIS/isapi_redirect.dll where 
the WebDAV commands like PROPFIND are passed to the Tomcat-Servlets and 
are not processed by the IIS (and answered with a 404)?

I tried isapi_redirect.dll and isapi_redirector2.dll without any luck so 
far.

Any Ideas?

Thanks,

	Ingo

--
PIRONET NDH AG
Ingo Rockel - Produktentwicklung
Maarweg 149-161, 50825 Koeln
Tel.: +49 (0)221-770-1788 / Fax: +49 (0)221-770-1005
mailto:[EMAIL PROTECTED] - http://www.pironet-ndh.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem in Tomcat 5.0.19 - Help Needed

2004-03-26 Thread Andres Ledesma
Hi Ramachandran,

You can check out your session, if it is new, include the page, otherwise do 
not do it.

Andrew

On Friday 26 March 2004 09:10, shanmugampl wrote:
 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 jsp:include
 
 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]

-- 
No hay camino a la felicidad, la felicidad es el camino


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



Re: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Adrian Lanning
This topic doesn't really have anything to do with Tomcat so you might have
better luck receiving help on some other mailing list.  Anybody know which
list he should be posting to?

What is the actual problem you are having?

Do you execute your prepared statement somewhere?

Adrian


- Original Message - 
From: Harry Mantheakis [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 3:28 AM
Subject: Re: Question on debuggin JNDI/prepared statement in a bean


Hello

 pstmt.setString(1,ClassifiedAd);
 pstmt.setString(2,UniqueDateId);

Are those two parameters - 'ClassifiedAd' and 'UniqueDateId' - variables?
They should be, and if so, where do you declare and initialise them? They do
not appear in the method you posted.

Harry


 I am frustrated trying to debug a prepared statement within a bean; what
 am I doing wrong?; ANY clues appreciatedS
 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




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



How to increate maxThread attribute value?

2004-03-26 Thread S.Latha Kamatchi
Hi folk
 
I'm using Tomcat 4.1.27.
 
My web application ,at one point of time does some 2000 database inserts.
 
I have no plm when the no of insert operations to the DB is less (about 100).
 
When the no of inserts exceeds, it shows the following error in the Tomcat server 
console:
 
Thread pool - All threads are busy,waiting.Please increase maxThreads or check the 
Servlet status 75 75.
 
So I did edit the server.xml file's tag:
 

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --

Connector port=8080

maxThreads=1000 enableLookups=false redirectPort=8443 acceptCount=100

debug=0 connectionTimeout=2 

disableUploadTimeout=true /


 
But , I still get the same error
Please tell me what is the maximum value I can give for maxThread attribute?
 
Or How can I correct this plm?
 
Thankx in advance
Latha
 


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

Re: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Tomcat is running on Windows 2000 machine.

- SPS

- Original Message -
From: Ryan Lissack [EMAIL PROTECTED]
Date: Friday, March 26, 2004 3:49 am
Subject: RE: Tomcat Hangs

 What OS is Tomcat running on ?
 
 -Original Message-
 From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
 Sent: 26 March 2004 00:51
 To: [EMAIL PROTECTED]
 Subject: Tomcat Hangs
 
 
 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]
 
 



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



Re: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Can you please elaborate what you meant by kill -QUIT. Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín [EMAIL PROTECTED]
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

 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]
 




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



RE: Tomcat Hangs

2004-03-26 Thread Ryan Lissack
You can achieve the same thing on Windows by typing 'Ctrl-Break' at the
console window

-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 12:15
To: Tomcat Users List
Subject: Re: Tomcat Hangs


Can you please elaborate what you meant by kill -QUIT. Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín [EMAIL PROTECTED]
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

 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]
 
 



-
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-26 Thread pavan . k

when u r saying that tomcat is not consuming
even half of the total memory,
there should be something else that
is creating the problem..may be iam wrong but this is 
what i feel..pls stop all other services
on ur windows machine and see if tomcat
is the sole culprit


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





Surya Suravarapu
[EMAIL PROTECTED] 
03/26/2004 07:15 AM




Please respond to
Tomcat Users List [EMAIL PROTECTED]





To
Tomcat Users List
[EMAIL PROTECTED]


cc



Subject
Re: Tomcat Hangs








Can you please elaborate what you meant by kill
-QUIT. Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín [EMAIL PROTECTED]
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

 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]
 
 



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


ForwardSourceID:NTBAB2
 
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

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

Re: Tomcat Hangs

2004-03-26 Thread pavan . k

also pls check if u have schedukled
any tasks in wndows like virus scanner etc etc..they
consume a lot of memory and effect the
performance...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





[EMAIL PROTECTED] 
03/26/2004 07:20 AM




Please respond to
Tomcat Users List [EMAIL PROTECTED]





To
Tomcat Users List
[EMAIL PROTECTED]


cc



Subject
Re: Tomcat Hangs









when u r saying that tomcat is not consuming even half of the total memory,

there should be something else that is creating the problem..may
be iam wrong but this is 
what i feel..pls stop all other services on ur windows machine and see
if tomcat 
is the sole culprit 


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 




Surya Suravarapu
[EMAIL PROTECTED] 
03/26/2004 07:15 AM





Please respond to
Tomcat Users List [EMAIL PROTECTED]





To
Tomcat Users
List [EMAIL PROTECTED] 


cc



Subject
Re: Tomcat Hangs










Can you please elaborate what you meant by kill -QUIT. Tomcat
is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín [EMAIL PROTECTED]
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

 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]
 
 



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


ForwardSourceID:NTBAB2   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NTBABE
 
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said 

mod_jk 1.2

2004-03-26 Thread Petr Nepoitek
Hi,

I downloaded the latest version of the jk_12 connector for Solaris 8, but
when expanding the tar file there's a checksum error. Does anybody have a
correct version of the connector for Sun?

Thanks in advance,
Nep.



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



Re: Connection Pool setup.

2004-03-26 Thread Gordon Luk
Hi Doug,

Thank for your advise, indeed my project state at begining. So every
thing is simple right now. BTW, i already experience on connection pool
on my previus ejb project. I will take care on it. As a simple mind,
take and go. :-)

Gordon

Parsons Technical Services wrote:

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:

parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter

 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter

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
?xml version='1.0' encoding='utf-8'?
...
   ResourceParams name=jdbc/myjdniname
   parameter
   namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   !-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
--
   parameter
   namemaxActive/name
   value100/value
   /parameter
   !-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
--
   parameter
   namemaxIdle/name
   value10/value
   /parameter
   parameter
   nameminIdle/name
   value10/value
   /parameter
   !-- Maximum time to wait for a dB connection to become
available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded.  Set to -1 to wait indefinitely.
--
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
   nameusername/name
   valuemyuserid/value
   /parameter
   parameter
   namepassword/name
   valuemypassword/value
   /parameter
   !-- Class name for mm.mysql JDBC driver --
   parameter
   namedriverClassName/name
   valuenet.sourceforge.jtds.jdbc.Driver/value
   /parameter
   parameter
   nameurl/name
   value

jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5/value
   /parameter
   parameter
   namevalidationQuery/name
   valueselect count(*) from tablename/value
   /parameter
   parameter
   nametestOnBorrow/name
   valuetrue/value
   /parameter
   parameter
   nametestWhileIdle/name
   valuetrue/value
   /parameter
   parameter
   nametimeBetweenEvictionRunsMillis/name
   value5000/value
   /parameter
   parameter
   nameminEvictableIdleTimeMillis/name
   value1/value
   /parameter
   /ResourceParams

/Context
---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 

Re: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Pavan,

This machine is exclusively used for Apache and Tomcat. There are no 
other major services running on it. No other services are taking up 
more memory. When Tomcat hangs, there is still a lot of physical memory 
available on the machine.

There are no scheduled tasks running on the machine.

- SPS
Content-Type: multipart/alternative; boundary==_alternative 00443A1185256E63_=


--=_alternative 00443A1185256E63_=
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

also pls check if u have schedukled any tasks in wndows like virus scanner =

etc etc..they
consume a lot of memory and effect the performance...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



[EMAIL PROTECTED]
03/26/2004 07:20 AM

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
Re: Tomcat Hangs







when u r saying that tomcat is not consuming even half of the total=20
memory,=20
there should be something else that is creating  the problem..may be iam=20
wrong but this is=20
what i feel..pls stop all other services on ur windows machine and see if=20
tomcat=20
is the sole culprit=20


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com=20


Surya Suravarapu [EMAIL PROTECTED]=20
03/26/2004 07:15 AM=20

Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]=20
cc

Subject
Re: Tomcat Hangs








Can you please elaborate what you meant by kill -QUIT. Tomcat is=20
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonn=EDn [EMAIL PROTECTED]
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

 kill -QUIT
 to see what the threads are doing...
=20
 Surya Suravarapu wrote:
=20
 We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.=20
 We're=20
 using AJP13 connector. The machine that we're using has got over=20
 2GB of=20
 Memory and good processor speed. Tomcat has been allocated 1 GB=20
 of max=20
 memory.
 
 The issue is: For every two hours or so Tomcat hangs. That means,=20
 Tomcat don't crash but simply don't accept any more connections.=20
 While=20
 using Tomcat with Apache we're getting 500 Internal Server=20
 Error. We=20
 are constantly restarting server to make it work. There is no=20
 good=20
 information in the logs that could lead us to debug this issue.
 
 I have tried several things. Taken out Apache and Connectors from=20
 the=20
 equation by running Tomcat as standalone. This time Tomcat we=20
 get server not found error - Page cannot be displayed message.=20
 I have=20
 also increased the maxProcessors of the connector to 300 instead=20
 of the=20
 default 75.
 
 Interesting thing is -- when Tomcat hangs the memory usage never=20
 reaches even half of the max memory (1 GB) allocated to Tomcat,=20
 and the=20
 number of threads that we see is also always less than half of=20
 maxProcessors value (300) set.=20
 
 If anybody encountered this kind of issue or if you have any=20
 thoughts=20
 please respond.
 
 Thanks in advance!
 
 - SPS
 
 
 
 --
 ---
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 =20
 
=20
=20
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
=20
=20



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


ForwardSourceID:NTBAB2=20
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NTBABE=20

--=_alternative 00443A1185256E63_=
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1


brfont size=3D2 face=3Dsans-serifalso pls check if u have schedukled
any tasks in wndows like virus scanner etc etc..they/font
brfont size=3D2 face=3Dsans-serifconsume a lot of memory and effect t=
he
performance.../font
brfont size=3D2 face=3Dsans-serifbr
Pavan Kumarbr
Tata Consultancy Servicesbr
Mailto: [EMAIL PROTECTED]br
Website: http://www.tcs.com/font
br
br
br
table width=3D100%
tr valign=3Dtop
td width=3D40%font size=3D1 face=3Dsans-serifb[EMAIL PROTECTED]/b =
/font
pfont size=3D1 face=3Dsans-serif03/26/2004 07:20 AM/font
br
table border
tr valign=3Dtop
td bgcolor=3Dwhite
div align=3Dcenterfont size=3D1 face=3Dsans-serifPlease respond tobr
quot;Tomcat Users Listquot; lt;[EMAIL PROTECTED]gt;/font=
/div/table
br
td width=3D59%
table width=3D100%
tr
td
div align=3Drightfont size=3D1 face=3Dsans-serifTo/font/div
td valign=3Dtopfont size=3D1 face=3Dsans-serifquot;Tomcat Users List=
quot;
lt;[EMAIL PROTECTED]gt;/font
tr
td
div 

RE: Tomcat 3.2.3 windows service

2004-03-26 Thread Larry Isaacs
You can try looking in your wrapper.properties file.  At the
bottom  the wrapper.cmd_line property is defined.  This
property contains the command line used to fire up Tomcat.
Create a batch file containing this command line with all
substitutions manually resolved.  If done correctly, then
this batch file should fail to start Tomcat for the same
reason that the service is failing.  Hopefully that will
make it easier to spot the problem.

If the batch file happens to succeed, then you need to
investigate the user account being used to start the
service.  It may be lacking some needed permissions.

Cheers,
Larry

 -Original Message-
 From: Dmitriy . [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 25, 2004 4:24 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat 3.2.3 windows service
 
 
 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]
 
 

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



Problem with Apache 2.* + tomcat 4.1.* using mod_jk2

2004-03-26 Thread ppalavilli
hi guys,
I am trying to hook up my tomcat 4.1.29 with the Apache 2.0.49 server (running mod_ssl 
if that makes any difference) with the mod_jk2 2.0.2 version. I downloaded the mod_jk2 
source and built it on my own for linux. 
Everything works fine - I can get to tomcat JSPs and Servlets (using struts in tomcat 
by the way). But what I notice is if the response is larger than 8K, the mod_jk2 
connector in apache is logging an error and throwing away the response on the floor.

This is what I see in the apache error log:

[Fri Mar 26 01:05:41 2004] [error] msgAjp.receive(): Incoming message is too big 8196
[Fri Mar 26 01:05:41 2004] [error] channelSocket.receive(): Bad header
[Fri Mar 26 01:05:41 2004] [error] workerEnv.processCallbacks() Error reading reply
[Fri Mar 26 01:05:41 2004] [error] ajp13.service() ajpGetReply unrecoverable error 
12
[Fri Mar 26 01:05:41 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 0 1
[Fri Mar 26 01:05:41 2004] [notice] ajp13.done() close endpoint ajp13:localhost:8009 
error_state 1
[Fri Mar 26 01:05:41 2004] [error] mod_jk.handler() Error connecting to tomcat 12

Any ideas on what I might be doing wrong ? Is the response size configurable in 
mod_jk2 (I looked in the source but couldn't find a way to do that)?

Please let me know if I need to send this mail to a different mailing list.
thanks in advance. 
Praveen

__
Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

-
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-26 Thread Shapira, Yoav

Hi,
Excellent.  Just please post a link to at least one of them once you're
ready, and we will add the link to the FAQ or docs.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 9:59 PM
To: Tomcat Users List
Subject: Re: [OT] Thank you! : New homes for Tomcat on Linux Found !

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]




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: Elliptic Curve Cryptography

2004-03-26 Thread Shapira, Yoav

Hi,
Yes, but you have to write code for it, it's not supported out of the
box.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Andrey Rogov [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 5:20 PM
To: [EMAIL PROTECTED]
Subject: Elliptic Curve Cryptography


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]




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: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Shapira, Yoav

Hi,
This is a fine list, and he'd get a ton of help anyways.  He should just
mark the subject as [OFF-TOPIC].

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 7:01 AM
To: Tomcat Users List
Subject: Re: Question on debuggin JNDI/prepared statement in a bean

This topic doesn't really have anything to do with Tomcat so you might
have
better luck receiving help on some other mailing list.  Anybody know
which
list he should be posting to?

What is the actual problem you are having?

Do you execute your prepared statement somewhere?

Adrian


- Original Message -
From: Harry Mantheakis [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 3:28 AM
Subject: Re: Question on debuggin JNDI/prepared statement in a bean


Hello

 pstmt.setString(1,ClassifiedAd);
 pstmt.setString(2,UniqueDateId);

Are those two parameters - 'ClassifiedAd' and 'UniqueDateId' -
variables?
They should be, and if so, where do you declare and initialise them?
They
do
not appear in the method you posted.

Harry


 I am frustrated trying to debug a prepared statement within a bean;
what
 am I doing wrong?; ANY clues appreciatedS
 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




-
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: Regarding Configuration in Tomcat 4.1.30

2004-03-26 Thread Shapira, Yoav

Hi,

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.

You only need to do one, not both.

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

Post the errors from the your logs for more help.

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: which memory profiling tool is better for tomcat?

2004-03-26 Thread Shapira, Yoav

Hi,
I actually haven't used Purify in a while.  I've used JProbe a lot and
like OptimizeIt marginally better, but it's a personal preference only.
There are also a number of free tools:
http://www.manageability.org/blog/stuff/open-source-profilers-for-java.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: tom ly [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 6:50 PM
To: [EMAIL PROTECTED]
Subject: which memory profiling tool is better for tomcat?

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.



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 Hangs

2004-03-26 Thread Surya Suravarapu
Just now Tomcat stopped responding. While stopping the console I've got 
the following message:

---
 #
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 43492F424A454354264143544F52590E435050010E
#
# Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
---

We're using JDK version 1.3.1_05.

Any thoughts?

- SPS

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Thursday, March 25, 2004 7:50 pm
Subject: Tomcat Hangs

 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: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,
You said it's hung, not crashed, but this is an internal crash.  It's a
bit beyond not responding ;)

Due cose: update your JDK if you can, as 1.4.2 is far more stable and
performant than 1.3.  And make sure you have all the Windows Update
patches installed on the machine, as this error is usually due to a
miscommunication between the JDK and the OS.

Was there a stack trace that you cut off in the message below?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Tomcat Hangs

Just now Tomcat stopped responding. While stopping the console I've got
the following message:

---
 #
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 43492F424A454354264143544F52590E435050010E
#
# Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
---

We're using JDK version 1.3.1_05.

Any thoughts?

- SPS

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Thursday, March 25, 2004 7:50 pm
Subject: Tomcat Hangs

 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]




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: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Yes this time it appears to be a crash. The message that I posted below 
is the only message that I can see on the console. This is the last 
message before crashing.

- SPS

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
Date: Friday, March 26, 2004 9:17 am
Subject: RE: Tomcat Hangs

 
 Hi,
 You said it's hung, not crashed, but this is an internal crash.  
 It's a
 bit beyond not responding ;)
 
 Due cose: update your JDK if you can, as 1.4.2 is far more stable and
 performant than 1.3.  And make sure you have all the Windows Update
 patches installed on the machine, as this error is usually due to a
 miscommunication between the JDK and the OS.
 
 Was there a stack trace that you cut off in the message below?
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 9:15 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Hangs
 
 Just now Tomcat stopped responding. While stopping the console 
 I've got
 the following message:
 
 ---
  #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Error ID: 43492F424A454354264143544F52590E435050010E
 #
 # Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
 ---
 
 We're using JDK version 1.3.1_05.
 
 Any thoughts?
 
 - SPS
 
 - Original Message -
 From: Surya Suravarapu [EMAIL PROTECTED]
 Date: Thursday, March 25, 2004 7:50 pm
 Subject: Tomcat Hangs
 
  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]
 
 
 
 
 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: RE: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,


Yes this time it appears to be a crash. The message that I posted below
is the only message that I can see on the console. This is the last
message before crashing.

There should be a file called hs_err_ ( can be a number of
different things on the Windows platform) in the current working
directory of the JVM when it crashed.  Look for that file and post its
contents if you find it.

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: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Tom K
Harry,

Yes the ClassifiedAd and UniqueDateId are two parameters taken
from an html form, the values of ClassifiedAd and UniqueDateId are used
in a prepared statement for substitution of ? and ? the results are then
forwarded to a results jsp, which used the getXXX() to retrieve the
values from the bean.
I have this code working in another form as a Servlet using JNDI
and prepared statements. In the servlet the JNDI connection is made in
the init(blah, blah) and calls the super.init(config) which I
super.init(config) is implicit from reading the Tomcat docs.
The bottom line on this, is how do you set up a JNDI connection
in a bean, use a prepared statement (in a bean), retrieve a resultset
and forward the result for the results jsp to retrieve the value from
the bean.

Finally, I apologize to those who feel this is off topic. I have similar
code working in Resin but for the life of me, I can't get it working
with Tomcat 5  :-(   I searched all the archives and can't find a good
example for doing this.

TIA Tom K.



   


-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 2:29 AM
To: Tomcat Users List
Subject: Re: Question on debuggin JNDI/prepared statement in a bean

Hello

 pstmt.setString(1,ClassifiedAd);
 pstmt.setString(2,UniqueDateId);

Are those two parameters - 'ClassifiedAd' and 'UniqueDateId' -
variables?
They should be, and if so, where do you declare and initialise them?
They do
not appear in the method you posted.

Harry


 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
 
 


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



new apache to tomcat connector for linux

2004-03-26 Thread Mark Nye
Hi, 

I spend about half a day looking for the jk flavor of the week.  It seems
the documentation is running in circles.  I currently use apache 2 with
tomcat 3.  (tomcat 3 is the only tomcat that we have been succesfull at
installing with apache)  I would like to use the new tomcat with apache but
the jk for linux download directory is empty.  I'm comfortable with the
install of apache and tomcat but I can't find any good documentation on
getting the jk directory under tomcat5-- conf.  About the best I could do
is copy my jk directory from the old tomcat to the new.  Start the new
tomcat server and Apache.   Tomcat does get the servlet requests but says
the servlet cannot be found.  I don't like this hack though and was
wondering if anyone else has experienced this confusion.  If so could you
point to the correct jk and connection methodology?

 

Thanks,

Mark



Connection Closed

2004-03-26 Thread Rob Wichterman
I had a weird connection problem with Tomcat4.1.24 today.  Here is the
error:

 

Mar 26, 2004 8:44:45 AM org.apache.jk.server.JkCoyoteHandler action

INFO: RESET

 

I received about 10 of these during which I could not login to my
application.  The index page came up with out any problems but it seems that
the database connection was closed.  I restarted one of my 2 Tomcat servers
and everything was fine.  I am using the following connection pooler and
assumed it would automatically reconnect.  Any help would be appreciated.
Thanks  

 

parameter

namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

/parameter



RE: new apache to tomcat connector for linux

2004-03-26 Thread Dale, Matt

This may not live there for much longer but is the best tutorial about

http://cymulacrum.net/writings/tomcat5/book1.html

Ta
Matt

-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 14:32
To: [EMAIL PROTECTED]
Subject: new apache to tomcat connector for linux


Hi, 

I spend about half a day looking for the jk flavor of the week.  It seems
the documentation is running in circles.  I currently use apache 2 with
tomcat 3.  (tomcat 3 is the only tomcat that we have been succesfull at
installing with apache)  I would like to use the new tomcat with apache but
the jk for linux download directory is empty.  I'm comfortable with the
install of apache and tomcat but I can't find any good documentation on
getting the jk directory under tomcat5-- conf.  About the best I could do
is copy my jk directory from the old tomcat to the new.  Start the new
tomcat server and Apache.   Tomcat does get the servlet requests but says
the servlet cannot be found.  I don't like this hack though and was
wondering if anyone else has experienced this confusion.  If so could you
point to the correct jk and connection methodology?

 

Thanks,

Mark

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: new apache to tomcat connector for linux

2004-03-26 Thread Hamilton, Andrew
Mark,

I use apache2, Tomcat 5 and JK2.  It is far better for you to compile the
JK2 connector yourself.  It is a lot easier to do than you might think.
Make sure you configure your apache2 for DSO and it is extremely simple to
set it all up.

Drew

-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: new apache to tomcat connector for linux


Hi, 

I spend about half a day looking for the jk flavor of the week.  It seems
the documentation is running in circles.  I currently use apache 2 with
tomcat 3.  (tomcat 3 is the only tomcat that we have been succesfull at
installing with apache)  I would like to use the new tomcat with apache but
the jk for linux download directory is empty.  I'm comfortable with the
install of apache and tomcat but I can't find any good documentation on
getting the jk directory under tomcat5-- conf.  About the best I could do
is copy my jk directory from the old tomcat to the new.  Start the new
tomcat server and Apache.   Tomcat does get the servlet requests but says
the servlet cannot be found.  I don't like this hack though and was
wondering if anyone else has experienced this confusion.  If so could you
point to the correct jk and connection methodology?

 

Thanks,

Mark



Re: Securing a folder

2004-03-26 Thread John Sidney-Woollett
If you are using JK to connect Apache and Tomcat, you can specify JkMounts
which should cause Apache to forward the request to tomcat to handle.

For example:

VirtualHost 192.168.1.10:80
ServerName www.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/www.beanpix.com
ErrorLog /var/log/httpd/www.domain.com/error_log
CustomLog /var/log/httpd/www.domain.com/access_log combined
JkMount /pdfs/* worker
JkMount /*.jsp worker
/VirtualHost

should cause any URL with the pattern /pdfs/* and *.jsp to be
processed by tomcat. Whether you do this in the main section of the
httpd.conf or for a virtual host only is up to you and your configuration.

Also consider not having the location of the pdf's within the Apache web
root, but instead only accessible by Tomcat...

You can then enforce security using a filter, or using some other method.

Hope that helps

John Sidney-Woollett


Dean Searle said:
 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:

 Location /pdfs
   order deny,allow
   deny from all
   allow from 127.0.0.1
 /Location

 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: new apache to tomcat connector for linux

2004-03-26 Thread Shapira, Yoav

Hi,
You mean to say you read
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html and found
none of it helpful enough to do something besides copy the old conf
directory?!?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: new apache to tomcat connector for linux

Hi,

I spend about half a day looking for the jk flavor of the week.  It
seems
the documentation is running in circles.  I currently use apache 2 with
tomcat 3.  (tomcat 3 is the only tomcat that we have been succesfull at
installing with apache)  I would like to use the new tomcat with apache
but
the jk for linux download directory is empty.  I'm comfortable with the
install of apache and tomcat but I can't find any good documentation on
getting the jk directory under tomcat5-- conf.  About the best I could
do
is copy my jk directory from the old tomcat to the new.  Start the new
tomcat server and Apache.   Tomcat does get the servlet requests but
says
the servlet cannot be found.  I don't like this hack though and was
wondering if anyone else has experienced this confusion.  If so could
you
point to the correct jk and connection methodology?



Thanks,

Mark




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 Hangs

2004-03-26 Thread Surya Suravarapu
I could not find that file. But meanwhile it stopped responding again. 
This time it is not a crash, I can still see the console and the 
java.exe process in the Task Manager.

When I hit ctrl + break on the console, there was a lot of log message 
that scrolled on the screen. I've pasted some of the messages at the 
end below:
---
StandardManager[/udf_uiAlertNS] daemon prio=5 tid=0x34e22e48 
nid=0x6ac waiting
 on monitor [0x358cf000..0x358cfdb8]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep
(StandardManag
er.java:810)
at org.apache.catalina.session.StandardManager.run
(StandardManager.java:
869)
at java.lang.Thread.run(Thread.java:479)

Signal Dispatcher daemon prio=10 tid=0x828e78 nid=0xa68 waiting on 
monitor [0.
.0]

Finalizer daemon prio=9 tid=0x34c50d78 nid=0x978 waiting on monitor 
[0x34f0f00
0..0x34f0fdb8]
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
at java.lang.ref.Finalizer$FinalizerThread.run
(Finalizer.java:157)

Reference Handler daemon prio=10 tid=0x34c500e0 nid=0xf60 waiting on 
monitor [
0x34ecf000..0x34ecfdb8]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:415)
at java.lang.ref.Reference$ReferenceHandler.run
(Reference.java:105)

main prio=5 tid=0x234bc8 nid=0xfcc runnable [0x6f000..0x6fc34]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.catalina.core.StandardServer.await
(StandardServer.java:527
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:203)

VM Thread prio=5 tid=0x829498 nid=0xe20 runnable



- SPS

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
Date: Friday, March 26, 2004 9:37 am
Subject: RE: RE: Tomcat Hangs

 
 Hi,
 
 
 Yes this time it appears to be a crash. The message that I posted 
 belowis the only message that I can see on the console. This is 
 the last
 message before crashing.
 
 There should be a file called hs_err_ ( can be a number of
 different things on the Windows platform) in the current working
 directory of the JVM when it crashed.  Look for that file and post its
 contents if you find it.
 
 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: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,

I could not find that file. But meanwhile it stopped responding again.
This time it is not a crash, I can still see the console and the
java.exe process in the Task Manager.

OK.  Make note of the fact these are different problems with different
results: one is a hang, one is a crash.

When I hit ctrl + break on the console, there was a lot of log message

These are all the live threads in the JVM: it's valuable information ;)
The info for the threads you posted is all fine: these are mostly the
standard JVM threads (main, finalizer, reference handler), as well as
one tomcat thread (the session manager for your webapp).  All appear OK.
Post the thread info for your request processing threads: if you're not
sure which those are, post the whole thread dump and we'll try to look
at it.

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[2]: Elliptic Curve Cryptography

2004-03-26 Thread Andrey Rogov
Hi Yoav,

Can I find some examples ?


SY Hi,
SY Yes, but you have to write code for it, it's not supported out of the
SY box.

SY Yoav Shapira
SY Millennium Research Informatics


-Original Message-
From: Andrey Rogov [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 5:20 PM
To: [EMAIL PROTECTED]
Subject: Elliptic Curve Cryptography


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]




SY 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
SY 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
SY e-mail from your computer system and notify the sender.  Thank you.


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



-- 
Best regards,
 Andreymailto:[EMAIL PROTECTED]


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



RE: Re[2]: Elliptic Curve Cryptography

2004-03-26 Thread Shapira, Yoav

Hi,
Nope.


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Andrey Rogov [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 10:16 AM
To: Tomcat Users List
Subject: Re[2]: Elliptic Curve Cryptography

Hi Yoav,

Can I find some examples ?


SY Hi,
SY Yes, but you have to write code for it, it's not supported out of
the
SY box.

SY Yoav Shapira
SY Millennium Research Informatics


-Original Message-
From: Andrey Rogov [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 5:20 PM
To: [EMAIL PROTECTED]
Subject: Elliptic Curve Cryptography


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]




SY 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
SY 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
SY e-mail from your computer system and notify the sender.  Thank you.


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



--
Best regards,
 Andreymailto:[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: TC V4.1.29 Coyote Connector / minProcessors maxProcessors / Confusion

2004-03-26 Thread jblayer
Shapira, Yoav writes: 

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).
Thanks - glad to know I'm not off in the weeds on that... 

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
Yes - All you mentioned per Servlet spec expected behavior - why I was 
surprised at what I was seeing. I have additional qualification data
but believe I should post under a new thread / subject appropriate. 

-Jim Layer-

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


Why won't Tomcat 5 shutdown properly?

2004-03-26 Thread Frank Diakovasilis
Hi,

Just tried switching to Tomcat 5 and am having a little problem.
Why will Tomcat 5 start fine, but not shutdown properly?
Has this happened to anybody, does anybody have a clue as to why it would
behave this way?

error displayed in console [of startup.bat] when shutdown.bat is clicked:

[ERROR] Catalina - -Catalina.stop LifecycleException:  Cannot find message
associated with key
coyoteConnector.protocolHandlerPauseFailedLifecycleException:  Cannot find
message associated with key coyoteConnector.protocolHandlerPauseFailed
at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1462)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:560)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

Stats are:
Tomcat 5.
Windows XP.
JRE 1.3 (JAVA_HOME pointing to a jre not jdk, but not using JSPs)

Thanks.
Frank

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



RE: Why won't Tomcat 5 shutdown properly?

2004-03-26 Thread Shapira, Yoav

Hi,
Try it with a JDK.  Other than that I don't know ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:40 AM
To: 'Tomcat Users List'
Subject: Why won't Tomcat 5 shutdown properly?

Hi,

Just tried switching to Tomcat 5 and am having a little problem.
Why will Tomcat 5 start fine, but not shutdown properly?
Has this happened to anybody, does anybody have a clue as to why it
would
behave this way?

error displayed in console [of startup.bat] when shutdown.bat is
clicked:

[ERROR] Catalina - -Catalina.stop LifecycleException:  Cannot find
message
associated with key
coyoteConnector.protocolHandlerPauseFailedLifecycleException:  Cannot
find
message associated with key coyoteConnector.protocolHandlerPauseFailed
   at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:14
62)
   at
org.apache.catalina.core.StandardService.stop(StandardService.java:560)
   at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
   at java.lang.reflect.Method.invoke(Native Method)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

Stats are:
Tomcat 5.
Windows XP.
JRE 1.3 (JAVA_HOME pointing to a jre not jdk, but not using JSPs)

Thanks.
Frank

-
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: Why won't Tomcat 5 shutdown properly?

2004-03-26 Thread Frank Diakovasilis
I did that as well, but still did not work. 
Thanks anyway.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:42 AM
To: Tomcat Users List
Subject: RE: Why won't Tomcat 5 shutdown properly?



Hi,
Try it with a JDK.  Other than that I don't know ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:40 AM
To: 'Tomcat Users List'
Subject: Why won't Tomcat 5 shutdown properly?

Hi,

Just tried switching to Tomcat 5 and am having a little problem.
Why will Tomcat 5 start fine, but not shutdown properly?
Has this happened to anybody, does anybody have a clue as to why it
would
behave this way?

error displayed in console [of startup.bat] when shutdown.bat is
clicked:

[ERROR] Catalina - -Catalina.stop LifecycleException:  Cannot find
message
associated with key
coyoteConnector.protocolHandlerPauseFailedLifecycleException:  Cannot
find
message associated with key coyoteConnector.protocolHandlerPauseFailed
   at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:14
62)
   at
org.apache.catalina.core.StandardService.stop(StandardService.java:560)
   at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
   at java.lang.reflect.Method.invoke(Native Method)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

Stats are:
Tomcat 5.
Windows XP.
JRE 1.3 (JAVA_HOME pointing to a jre not jdk, but not using JSPs)

Thanks.
Frank

-
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: Why won't Tomcat 5 shutdown properly?

2004-03-26 Thread Caldarale, Charles R
 From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
 Subject: Why won't Tomcat 5 shutdown properly?
 
 Just tried switching to Tomcat 5 and am having a little problem.
 Why will Tomcat 5 start fine, but not shutdown properly?

Same problem I reported last week. Some new log messages were not included in the 
appropriate properties files sometime between 5.0.16 and 5.0.19 (they are supposed to 
be in 5.0.20). When running with JDK 1.3, the built-in logging mechanism throws an 
exception, killing the main thread. Under JDK 1.4, Sun logging is used, and this just 
prints an error message and continues. If you can move up to 1.4, the problem will 
disappear.

 - Chuck

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



RE: Why won't Tomcat 5 shutdown properly?

2004-03-26 Thread Frank Diakovasilis
sounds good to me, I appreciate the help.  Thanks

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:46 AM
To: Tomcat Users List
Subject: RE: Why won't Tomcat 5 shutdown properly?


 From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
 Subject: Why won't Tomcat 5 shutdown properly?
 
 Just tried switching to Tomcat 5 and am having a little problem.
 Why will Tomcat 5 start fine, but not shutdown properly?

Same problem I reported last week. Some new log messages were not included
in the appropriate properties files sometime between 5.0.16 and 5.0.19 (they
are supposed to be in 5.0.20). When running with JDK 1.3, the built-in
logging mechanism throws an exception, killing the main thread. Under JDK
1.4, Sun logging is used, and this just prints an error message and
continues. If you can move up to 1.4, the problem will disappear.

 - Chuck

-
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: auth-method query

2004-03-26 Thread Koes, Derrick

I have already authenticated, but I am not authenticating for this
particular request.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 24, 2004 6:50 PM
To: '[EMAIL PROTECTED]'
Subject: auth-method query

I wish to programmatically check for the auth-method using Tomcat
4.1.18.
The HttpServletRequest class provides a getAuthType method, but this is
only
good for an authentication request.  How do I retrieve the auth type
used
for the web container at runtime for a non-authentication request?

I guess I could add it to the session upon authentication, but I was
curious
if there was another way.

 

Thanks,

Derrick

 

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

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



Re: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Adrian Lanning
Hey Tom,

When I said your thread was off-topic I didn't mean to imply you couldn't
post your question!  Sorry if that's how it came across.  Just thought you
should mark it [OT] as Yoav pointed out. It appears I was wrong anyways; I
missed the part about it working in Resin and not in Tomcat.

As for your question, what is it exactly that goes wrong with your app now
that its running under Tomcat and not Resin?  Trouble getting the data to
your jsp?  Is it not starting up?  The code you posted doesn't actually DO
anything so I'm guessing that's just an example you put together to
illustrate what you're trying to do?

Could you post the parts of your Context regarding the jndi resource you are
configuring?

Adrian

- Original Message - 
From: Tom K [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:41 AM
Subject: RE: Question on debuggin JNDI/prepared statement in a bean


Harry,

Yes the ClassifiedAd and UniqueDateId are two parameters taken
from an html form, the values of ClassifiedAd and UniqueDateId are used
in a prepared statement for substitution of ? and ? the results are then
forwarded to a results jsp, which used the getXXX() to retrieve the
values from the bean.
I have this code working in another form as a Servlet using JNDI
and prepared statements. In the servlet the JNDI connection is made in
the init(blah, blah) and calls the super.init(config) which I
super.init(config) is implicit from reading the Tomcat docs.
The bottom line on this, is how do you set up a JNDI connection
in a bean, use a prepared statement (in a bean), retrieve a resultset
and forward the result for the results jsp to retrieve the value from
the bean.

Finally, I apologize to those who feel this is off topic. I have similar
code working in Resin but for the life of me, I can't get it working
with Tomcat 5  :-(   I searched all the archives and can't find a good
example for doing this.

TIA Tom K.






-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 2:29 AM
To: Tomcat Users List
Subject: Re: Question on debuggin JNDI/prepared statement in a bean

Hello

 pstmt.setString(1,ClassifiedAd);
 pstmt.setString(2,UniqueDateId);

Are those two parameters - 'ClassifiedAd' and 'UniqueDateId' -
variables?
They should be, and if so, where do you declare and initialise them?
They do
not appear in the method you posted.

Harry


 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




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


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



Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
Is this possible to do?  I've configured load balancing with apache and
that worked as desired, but since then I've determined that the apache
server was unnecessary in my configuration.  If it is possible, can you
please provide a sample jk2.properties file, or at least step me in the
right direction.


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com




RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Shapira, Yoav

Hola,

Is this possible to do?  I've configured load balancing with apache and
that worked as desired, but since then I've determined that the apache
server was unnecessary in my configuration.  If it is possible, can you
please provide a sample jk2.properties file, or at least step me in the
right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)

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: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Adam Fowler
I think (hope) he means one apache httpd instance load balancing to several
tomcat instances. Your guess as to what he means is as good as mine tho! 8o)

Adam.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:36
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hola,

Is this possible to do?  I've configured load balancing with apache and
that worked as desired, but since then I've determined that the apache
server was unnecessary in my configuration.  If it is possible, can you
please provide a sample jk2.properties file, or at least step me in the
right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)  

Yoav Shapira



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


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


_

This email and any files attached is intended for the addressee only and may contain 
information that is confidential and/or legally privileged. Unauthorised use is 
strictly prohibited and may be unlawful. If you are not the addressee, you should not 
read, copy, disclose or otherwise use this message, including any attachment, except 
for the purpose of delivery to the addressee.

We make every effort to keep our network free from viruses. However, you do need to 
verify this e-mail and any attachments to it to be virus free as we can take no 
responsibility for any computer virus which might be transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by SurfControl 
E-mail Filter software in conjunction with virus detection software.





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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
I've misphrased.  What documentation I've come across indicates that
Apache (or IIS) is necessary to configure tomcat as a cluster.  It very
well may be possible, which is why I'm asking the list.  The main
feature that I'm looking for in this configuration is the session
failover ability.  I have a hardware load-balancer, so load-balancing is
not exactly what I was looking for...just the session sharing.


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hola,

Is this possible to do?  I've configured load balancing with apache and

that worked as desired, but since then I've determined that the apache 
server was unnecessary in my configuration.  If it is possible, can you

please provide a sample jk2.properties file, or at least step me in the

right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)  

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: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Harry Mantheakis
Hi Tom

 how do you set up a JNDI connection
 in a bean?

Exactly the same way as you would anywhere else, so if you have some code
working in a servlet, copy it.

To be precise, it is a database connection, acquired from a DataSource,
which is itself acquired via a JNDI lookup. The fact that your code is in a
bean makes no difference.


 how do you... use a prepared statement (in a bean)


Same as anywhere else.


 how do you... retrieve a resultset, and
 forward the result


Again, same as anywhere else.

BTW - you should not be passing about references to JDBC objects that are
tethered (so to speak) to database connections - it is bad practice, and
likely to cause connection (and memory) leaks.

The best thing to do with database connections is, grab your data, store it
in some collection object, and then make damn sure you close the db
connection - usually within a 'finally' block which is guaranteed to
execute, even when exceptions occur.

Having stored the data you need in a collection object, you can pass that
about as much as you like.

That has not really answered your original question, but unless you provide
us with all your relevant code we probably cannot solve the problem.

Since you got it working before, I would be inclined to start again, making
sure that you copy the same JNDI/connection procedures in your 'bean' as in
the servlet that works.

The fact that your 'bean' is not throwing any exceptions suggests, to me,
that there is a bug (logic error) in your code. Starting over might sort
that out.

Sprinkle about a few (temporary) 'System.out.println' statements to see
where your code gets to. Not cool, but they do the job sometimes!

If you are using an IDE - like Eclipse - you can run in debug mode, so it's
easy to see what is happening - though may be not with JSPs.

Good luck.

Harry


 Harry,
 
 Yes the ClassifiedAd and UniqueDateId are two parameters taken
 from an html form, the values of ClassifiedAd and UniqueDateId are used
 in a prepared statement for substitution of ? and ? the results are then
 forwarded to a results jsp, which used the getXXX() to retrieve the
 values from the bean.
 I have this code working in another form as a Servlet using JNDI
 and prepared statements. In the servlet the JNDI connection is made in
 the init(blah, blah) and calls the super.init(config) which I
 super.init(config) is implicit from reading the Tomcat docs.
 The bottom line on this, is how do you set up a JNDI connection
 in a bean, use a prepared statement (in a bean), retrieve a resultset
 and forward the result for the results jsp to retrieve the value from
 the bean.
 
 Finally, I apologize to those who feel this is off topic. I have similar
 code working in Resin but for the life of me, I can't get it working
 with Tomcat 5  :-(   I searched all the archives and can't find a good
 example for doing this.
 
 TIA Tom K.


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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Shapira, Yoav

Hi,
One alternative to balancing traffic without Apache, using only a tomcat
cluster, is to use the balancer webapp that ships with tomcat 5.  It's
not a load balancer in the strict sense of the definition, as it doesn't
replicate anything or allow for sticky sessions, but defacto it works.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 11:40 AM
To: 'Tomcat Users List'
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O
Apache Web Server

I think (hope) he means one apache httpd instance load balancing to
several
tomcat instances. Your guess as to what he means is as good as mine
tho!
8o)

Adam.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:36
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hola,

Is this possible to do?  I've configured load balancing with apache
and
that worked as desired, but since then I've determined that the apache
server was unnecessary in my configuration.  If it is possible, can
you
please provide a sample jk2.properties file, or at least step me in
the
right direction.

How did you determine Apache is not necessary when you're
load-balancing
with mod_jk2 which requires Apache? ;)

Yoav Shapira



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


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


_

This email and any files attached is intended for the addressee only
and
may contain information that is confidential and/or legally privileged.
Unauthorised use is strictly prohibited and may be unlawful. If you are
not
the addressee, you should not read, copy, disclose or otherwise use
this
message, including any attachment, except for the purpose of delivery
to
the addressee.

We make every effort to keep our network free from viruses. However,
you do
need to verify this e-mail and any attachments to it to be virus free
as we
can take no responsibility for any computer virus which might be
transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by
SurfControl E-mail Filter software in conjunction with virus detection
software.





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



PDF Files

2004-03-26 Thread Peter Guyatt
Hi All,

Does anyone know how to jump directly to a specific page in a PDF document
if you have manually loaded it and served it through a servlet ?

Thanks

Pete


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



Tomcat 5 and IIS 5 Configuration Document

2004-03-26 Thread LILES, DAVID (CONTRACTOR)
After a couple of painful weeks trying to figure out how to integrate Tomcat 5 with 
IIS 5, I finally have a working environment with many thanks going to Adrian Lanning.

I have put together a document that outlines the steps taken to get this configuration 
working and would like to share it with those who may also be in a similar situation 
as I.

The document is currently located at http://www.dynamichostings.com/TomCat5IIS5.do

If it is found to be of value for others is there a way to have a reference link point 
others to its location?

-Dave

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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
That doesn't exactly accomplish what I'm looking to do.  Like I said, I
need session replication amongst the tomcat instances...I guess theres
always the idea of managing session data in some other medium (DB).


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 11:42 AM
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hi,
One alternative to balancing traffic without Apache, using only a tomcat
cluster, is to use the balancer webapp that ships with tomcat 5.  It's
not a load balancer in the strict sense of the definition, as it doesn't
replicate anything or allow for sticky sessions, but defacto it works.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 11:40 AM
To: 'Tomcat Users List'
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O
Apache Web Server

I think (hope) he means one apache httpd instance load balancing to
several
tomcat instances. Your guess as to what he means is as good as mine
tho!
8o)

Adam.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:36
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances 
W/O Apache Web Server



Hola,

Is this possible to do?  I've configured load balancing with apache
and
that worked as desired, but since then I've determined that the apache

server was unnecessary in my configuration.  If it is possible, can
you
please provide a sample jk2.properties file, or at least step me in
the
right direction.

How did you determine Apache is not necessary when you're
load-balancing
with mod_jk2 which requires Apache? ;)

Yoav Shapira



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

immediately delete this e-mail from your computer system and notify the

sender.  Thank you.


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


_

This email and any files attached is intended for the addressee only
and
may contain information that is confidential and/or legally privileged.

Unauthorised use is strictly prohibited and may be unlawful. If you are
not
the addressee, you should not read, copy, disclose or otherwise use
this
message, including any attachment, except for the purpose of delivery
to
the addressee.

We make every effort to keep our network free from viruses. However,
you do
need to verify this e-mail and any attachments to it to be virus free
as we
can take no responsibility for any computer virus which might be 
transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by 
SurfControl E-mail Filter software in conjunction with virus detection 
software. 




-
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: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Tom K
Not exactly...it is not the same! I have it working with a connection
pool, mySQL and JNDI. To keep my reply short it goes like this within
the bean:
getDBConnection();  // get
the connection
prepareStatement(); // prepare the
statement
rs = pstmt.executeQuery();  // execute the
query
and of course after that I get my parameters. In a servlet you have an
init() statement that executes only once which you get your db
connection in, also you need to call super.init(config), where you don't
have to do this in a bean, because it is implicit.

(By the way, if someone wants an example, I will post it, but you'll
then be my wife.)

Next challenge is I have a blob that I set and get, but when I get the
blob on my results page, it comes up with something like this  @1eb2473
which I assume is an address. Anyone know what know how to get, what's
in the address. Maybe open a stream?

TIA

Tom K.



-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 10:43 AM
To: Tomcat Users List
Subject: Re: Question on debuggin JNDI/prepared statement in a bean

Hi Tom

 how do you set up a JNDI connection
 in a bean?

Exactly the same way as you would anywhere else, so if you have some
code
working in a servlet, copy it.

To be precise, it is a database connection, acquired from a DataSource,
which is itself acquired via a JNDI lookup. The fact that your code is
in a
bean makes no difference.


 how do you... use a prepared statement (in a bean)


Same as anywhere else.


 how do you... retrieve a resultset, and
 forward the result


Again, same as anywhere else.

BTW - you should not be passing about references to JDBC objects that
are
tethered (so to speak) to database connections - it is bad practice, and
likely to cause connection (and memory) leaks.

The best thing to do with database connections is, grab your data, store
it
in some collection object, and then make damn sure you close the db
connection - usually within a 'finally' block which is guaranteed to
execute, even when exceptions occur.

Having stored the data you need in a collection object, you can pass
that
about as much as you like.

That has not really answered your original question, but unless you
provide
us with all your relevant code we probably cannot solve the problem.

Since you got it working before, I would be inclined to start again,
making
sure that you copy the same JNDI/connection procedures in your 'bean' as
in
the servlet that works.

The fact that your 'bean' is not throwing any exceptions suggests, to
me,
that there is a bug (logic error) in your code. Starting over might sort
that out.

Sprinkle about a few (temporary) 'System.out.println' statements to see
where your code gets to. Not cool, but they do the job sometimes!

If you are using an IDE - like Eclipse - you can run in debug mode, so
it's
easy to see what is happening - though may be not with JSPs.

Good luck.

Harry


 Harry,
 
 Yes the ClassifiedAd and UniqueDateId are two parameters taken
 from an html form, the values of ClassifiedAd and UniqueDateId are
used
 in a prepared statement for substitution of ? and ? the results are
then
 forwarded to a results jsp, which used the getXXX() to retrieve the
 values from the bean.
 I have this code working in another form as a Servlet using JNDI
 and prepared statements. In the servlet the JNDI connection is made in
 the init(blah, blah) and calls the super.init(config) which I
 super.init(config) is implicit from reading the Tomcat docs.
 The bottom line on this, is how do you set up a JNDI connection
 in a bean, use a prepared statement (in a bean), retrieve a resultset
 and forward the result for the results jsp to retrieve the value from
 the bean.
 
 Finally, I apologize to those who feel this is off topic. I have
similar
 code working in Resin but for the life of me, I can't get it working
 with Tomcat 5  :-(   I searched all the archives and can't find a good
 example for doing this.
 
 TIA Tom K.


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



RE: [ANNOUNCE] mod_jk2 2.0.4 released

2004-03-26 Thread David Short
Can you please provide the link to download?

-Original Message-
From: Henri Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:10 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCE] mod_jk2 2.0.4 released


The Tomcat team is pleased to announce the release of version 2.0.4 of 
the Apache Tomcat mod_jk2 web server connector.

Tomcat is the reference implementation of a web application server which 
implements the Java Servlet and JavaServer Pages specifications.

mod_jk2 is a connector which allows a web server such as Apache HTTPD or 
IIS to act as a front end to the Tomcat web application server.

This version fixes a many majors bugs and is the first one to use APR 
which is now mandatory.

See the file CHANGES.txt in the source distribution for a complete list 
of changes.




-
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 sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Tony Requist

 That doesn't exactly accomplish what I'm looking to do.  Like I said, I
 need session replication amongst the tomcat instances...I guess theres
 always the idea of managing session data in some other medium (DB).

Coincidentally, I just got that working -- but it required a full day of
writing code to get around bugs in PersistentValve (I'm going to describe
this soon).  So unless you want to hack Tomcat, I would suggest avoiding
session replication via DB right now (with coding changes it does seem to
work great).

- tony



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



RE: Using PersistentValve for session replication

2004-03-26 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.

Lacking input from others, I will answer part of my own question to possibly
help somebody else.

The result is that with a day of work it is possible to use PersistentValve
and PersistentManager to produce load balancing without session
affinity -- but you have to overcome some Tomcat issues in the code along
the way.  My assumption is while the code is there, it has not been use
seriously and therefore is not shaken down.

I found and fixed (or worked around) a couple of Tomcat bugs along the way.
If a Tomcat developer is interested in these, I would be glad to give more
details:

* JDBCStore read and writes the database multiple times in load() and
save().  Adding break; in a couple strategic places fixes this

* As far as I can tell, the checkInterval attribute within
PersistentManager does not work at all

* PersistentValve loads the session for all requests, even static content
(things like *.css, *.js, *.gif).  While this is not wrong, it does not work
well.  I hacked around it, but there could be a clean solution

* Session data is always written out, even when it doesn't change.  I added
a mechanism based on hashCode() to avoid this

* Deserialization errors are not handled correctly

* I could not get the logging to work so I added my own (this might just be
my problem)

- tony



-
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-26 Thread jblayer
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

Yes - All you mentioned per Servlet spec expected behavior - why I was 
surprised at what I was seeing. I have additional qualification data but
believe I should post under a new thread / subject appropriate. 
-Jim Layer-
egg-on-face update: 

Wasn't controlling my variables closely enough. Weird non-concurrent
behavior I observed was confined to brower-based tests. Screwed up
on the earlier multi-instance client test tool exercise - works as
expected when I'm explicitly controlling client behavior (headers, etc.). 

Thanks (Yoav) again for your help, 

Regards, 

-Jim Layer- 

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


Connection pool in cayenne

2004-03-26 Thread Salvatierra, Mauricio h (M.H.)
  Hi people. I using a connection pool in cayenne and have the next error...

  ORA-00020: maximum number of processes...

  Any idea how resolve this problem. Thanks


Saludos !!
SALVATIERRA, Mauricio Hugo
Information Technology 
Ford Argentina S.C.A.  
Phono/Fax: 54-11-4756-8750 
mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/


STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments are strictly 
confidential and property of Ford Argentina S.C.A. They may not be used or disclosed 
by someone who is not a named recipient. If you have received this e-mail in error 
please notify the sender by replying to this email inserting the word Misdirected as 
the message and delete the present message.




-Original Message-
From: Tony Requist [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 14:44
To: Tomcat Users List
Subject: RE: Using PersistentValve for session replication



 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.

Lacking input from others, I will answer part of my own question to possibly
help somebody else.

The result is that with a day of work it is possible to use PersistentValve
and PersistentManager to produce load balancing without session
affinity -- but you have to overcome some Tomcat issues in the code along
the way.  My assumption is while the code is there, it has not been use
seriously and therefore is not shaken down.

I found and fixed (or worked around) a couple of Tomcat bugs along the way.
If a Tomcat developer is interested in these, I would be glad to give more
details:

* JDBCStore read and writes the database multiple times in load() and
save().  Adding break; in a couple strategic places fixes this

* As far as I can tell, the checkInterval attribute within
PersistentManager does not work at all

* PersistentValve loads the session for all requests, even static content
(things like *.css, *.js, *.gif).  While this is not wrong, it does not work
well.  I hacked around it, but there could be a clean solution

* Session data is always written out, even when it doesn't change.  I added
a mechanism based on hashCode() to avoid this

* Deserialization errors are not handled correctly

* I could not get the logging to work so I added my own (this might just be
my problem)

- tony



-
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 5 and IIS 5 Configuration Document

2004-03-26 Thread Tim Funk
You can add a link to
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
-Tim

LILES, DAVID (CONTRACTOR) wrote:

After a couple of painful weeks trying to figure out how to integrate Tomcat 5 with IIS 5, I finally have a working environment with many thanks going to Adrian Lanning.

I have put together a document that outlines the steps taken to get this configuration working and would like to share it with those who may also be in a similar situation as I.

The document is currently located at http://www.dynamichostings.com/TomCat5IIS5.do

If it is found to be of value for others is there a way to have a reference link point others to its location?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


application-managed security with tomcat

2004-03-26 Thread Thomas Fuerle
Hi there,

we adressing the following problem with tomcat (similar works with bea8.1)
using application-managed security 

application is sending 401, see *.jsp

private static void login(HttpServletResponse response)
{
System.out.println(sending 401 for authenticate);
HttpServletResponse _tmp = response;
response.setStatus(401);
response.setHeader(WWW-Authenticate, BASIC realm=\Hey, first
identify\);
}

There are no entries in any *.xml about the above realm, instead we are just
waiting for the input from the dialog box and the application should verifiy
this internally against LDAP.

But we are getting no dialog box asking for credentials, instead we get
immediately the default 401 error page in german

html
head
titleError Page 401 - Unauthorized/title
/head
body
font face=Arial,Helvetica,sans-serif
center
h1Sie sind aufgrund fehlender Authorisierung nicht berechtigt,
diese Seite aufzurufen!/h1
/center
/font
/body
/html

So I would need a cookboot how to setup application-managed security, which
means, that tomcat must ignore the realm in the header and just give the
credentials to the application and wait what's happening.

Any help is highly appreciated, Thomas


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



RE: Tomcat 5 and IIS 5 Configuration Document

2004-03-26 Thread LILES, DAVID (CONTRACTOR)
Thanks

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:14 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 and IIS 5 Configuration Document


You can add a link to
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

-Tim

LILES, DAVID (CONTRACTOR) wrote:

 After a couple of painful weeks trying to figure out how to integrate Tomcat 5 with 
 IIS 5, I finally have a working environment with many thanks going to Adrian Lanning.
 
 I have put together a document that outlines the steps taken to get this 
 configuration working and would like to share it with those who may also be in a 
 similar situation as I.
 
 The document is currently located at http://www.dynamichostings.com/TomCat5IIS5.do
 
 If it is found to be of value for others is there a way to have a reference link 
 point others to its location?
  

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



Multiple instances of tomcat and apache 2.0.48

2004-03-26 Thread Angelo Alerta - Mainfield
I'm trying to use two instances of tomcat 5.0.12 with apache 2.0.48.
One instance listen at port 8009 while other listen on port 50089.
Reading the output of error_log of apache it seems that 
channelSocket.open() try to connect always on port 8009...
All request are sent to instance listening at port 8009.
Where i'm wrong?

Follow my workers2.properties:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[status:status]

[channel.socket:127.0.0.1:50089]
port=50089
host=127.0.0.1
tomcatId=tomcat_pz
debug=1
[ajp13:127.0.0.1:50089]
channel=channel.socket:127.0.0.1:50089
[uri:/pzmanager/*]
group=ajp13:127.0.0.1:50089
[uri:/pzadmin/*]
group=ajp13:127.0.0.1:50089
[channel.socket:127.0.0.1:8009]
port=8009
host=127.0.0.1
tomcatId=tomcat_mf
debug=1
[worker_mf]
channel=channel.socket:127.0.0.1:8009
Follow the output of error_log file of apache:

[notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6b 
mod_jk2/2.0.2 PHP/4.3.4 configured -- resuming normal operations
[error] channelSocket.open() connect failed 127.0.0.1:8009 111 
Connection refused
[error] ajp13.connect() failed ajp13:127.0.0.1:50089
[error] ajp13.service() failed to connect endpoint errno=111 Connection 
refused
[error] ajp13.service() Error  forwarding ajp13:127.0.0.1:50089 1 1
[error] mod_jk.handler() Error connecting to tomcat 12

Thanks in advance for your help/idea

--

Angelo Alerta
Mainfield srl
Via I. Rosellini 2
20124 Milano, Italy
[EMAIL PROTECTED]
www.mainfield.com
+39266800026
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple instances of tomcat and apache 2.0.48

2004-03-26 Thread Emerson Cargnin
Why don't you create a different virtual IP for running the second 
instance??

Angelo Alerta - Mainfield wrote:
I'm trying to use two instances of tomcat 5.0.12 with apache 2.0.48.
One instance listen at port 8009 while other listen on port 50089.
Reading the output of error_log of apache it seems that 
channelSocket.open() try to connect always on port 8009...
All request are sent to instance listening at port 8009.
Where i'm wrong?

Follow my workers2.properties:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[status:status]

[channel.socket:127.0.0.1:50089]
port=50089
host=127.0.0.1
tomcatId=tomcat_pz
debug=1
[ajp13:127.0.0.1:50089]
channel=channel.socket:127.0.0.1:50089
[uri:/pzmanager/*]
group=ajp13:127.0.0.1:50089
[uri:/pzadmin/*]
group=ajp13:127.0.0.1:50089
[channel.socket:127.0.0.1:8009]
port=8009
host=127.0.0.1
tomcatId=tomcat_mf
debug=1
[worker_mf]
channel=channel.socket:127.0.0.1:8009
Follow the output of error_log file of apache:

[notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6b 
mod_jk2/2.0.2 PHP/4.3.4 configured -- resuming normal operations
[error] channelSocket.open() connect failed 127.0.0.1:8009 111 
Connection refused
[error] ajp13.connect() failed ajp13:127.0.0.1:50089
[error] ajp13.service() failed to connect endpoint errno=111 Connection 
refused
[error] ajp13.service() Error  forwarding ajp13:127.0.0.1:50089 1 1
[error] mod_jk.handler() Error connecting to tomcat 12

Thanks in advance for your help/idea



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
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-26 Thread Shapira, Yoav

Hi,
No problem, glad to help.  It's very hard to get a perfectly controlled
test environment.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:49 PM
To: [EMAIL PROTECTED]
Subject: Re: TC V4.1.29 Coyote Connector / minProcessors maxProcessors
/
Confusion

 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

 Yes - All you mentioned per Servlet spec expected behavior - why I
was
 surprised at what I was seeing. I have additional qualification data
but
 believe I should post under a new thread / subject appropriate.
 -Jim Layer-

egg-on-face update:

Wasn't controlling my variables closely enough. Weird non-concurrent
behavior I observed was confined to brower-based tests. Screwed up
on the earlier multi-instance client test tool exercise - works as
expected when I'm explicitly controlling client behavior (headers,
etc.).

Thanks (Yoav) again for your help,

Regards,

 -Jim Layer-

-
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: Connection pool in cayenne

2004-03-26 Thread Shapira, Yoav

Hi,
Yeah, call your DBA and ask him to allow more concurrent connections to
your DB.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 1:07 PM
To: 'Tomcat Users List'
Subject: Connection pool in cayenne

  Hi people. I using a connection pool in cayenne and have the next
error...

  ORA-00020: maximum number of processes...

  Any idea how resolve this problem. Thanks


   Saludos !!
   SALVATIERRA, Mauricio Hugo
   Information Technology
   Ford Argentina S.C.A.
   Phono/Fax: 54-11-4756-8750
   mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/

***

*
STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments
are
strictly confidential and property of Ford Argentina S.C.A. They may
not be
used or disclosed by someone who is not a named recipient. If you have
received this e-mail in error please notify the sender by replying to
this
email inserting the word Misdirected as the message and delete the
present message.
***

*



-Original Message-
From: Tony Requist [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 14:44
To: Tomcat Users List
Subject: RE: Using PersistentValve for session replication



 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.

Lacking input from others, I will answer part of my own question to
possibly
help somebody else.

The result is that with a day of work it is possible to use
PersistentValve
and PersistentManager to produce load balancing without session
affinity -- but you have to overcome some Tomcat issues in the code
along
the way.  My assumption is while the code is there, it has not been use
seriously and therefore is not shaken down.

I found and fixed (or worked around) a couple of Tomcat bugs along the
way.
If a Tomcat developer is interested in these, I would be glad to give
more
details:

* JDBCStore read and writes the database multiple times in load() and
save().  Adding break; in a couple strategic places fixes this

* As far as I can tell, the checkInterval attribute within
PersistentManager does not work at all

* PersistentValve loads the session for all requests, even static
content
(things like *.css, *.js, *.gif).  While this is not wrong, it does not
work
well.  I hacked around it, but there could be a clean solution

* Session data is always written out, even when it doesn't change.  I
added
a mechanism based on hashCode() to avoid this

* Deserialization errors are not handled correctly

* I could not get the logging to work so I added my own (this might
just be
my problem)

- tony



-
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: Connection Pool setup.

2004-03-26 Thread Antonio Fiol Bonnín
Suggestion:

Also add the logAbandoned parameter and set it to true. I found it 
very useful at hard times.

Antonio Fiol

Gordon Luk wrote:

Hi Doug,

Thank for your advise, indeed my project state at begining. So every
thing is simple right now. BTW, i already experience on connection pool
on my previus ejb project. I will take care on it. As a simple mind,
take and go. :-)
Gordon

Parsons Technical Services wrote:

 

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:

  parameter
   nameremoveAbandoned/name
   valuetrue/value
   /parameter
   parameter
   nameremoveAbandonedTimeout/name
   value60/value
   /parameter
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
?xml version='1.0' encoding='utf-8'?
...
 ResourceParams name=jdbc/myjdniname
 parameter
 namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 !-- Maximum number of dB connections in pool. Make sure you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --
 parameter
 namemaxActive/name
 value100/value
 /parameter
 !-- Maximum number of idle dB connections to retain in pool.
  Set to 0 for no limit.
  --
 parameter
 namemaxIdle/name
 value10/value
 /parameter
 parameter
 nameminIdle/name
 value10/value
 /parameter
 !-- Maximum time to wait for a dB connection to become
available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --
 parameter
 namemaxWait/name
 value1/value
 /parameter
 parameter
 nameusername/name
 valuemyuserid/value
 /parameter
 parameter
 namepassword/name
 valuemypassword/value
 /parameter
 !-- Class name for mm.mysql JDBC driver --
 parameter
 namedriverClassName/name
 valuenet.sourceforge.jtds.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 value
jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5/value
 /parameter
 parameter
 namevalidationQuery/name
 valueselect count(*) from tablename/value
 /parameter
 parameter
 nametestOnBorrow/name
 valuetrue/value
 /parameter
 parameter
 nametestWhileIdle/name
 valuetrue/value
 /parameter
 parameter
 nametimeBetweenEvictionRunsMillis/name
 value5000/value
 /parameter
 parameter
 nameminEvictableIdleTimeMillis/name
 value1/value
 /parameter
 /ResourceParams

/Context
---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

 



-
To unsubscribe, 

Windows Login Id in a Web App on T5

2004-03-26 Thread Kumar Abhay-CAK203C
Hi,

How can I get user's windows login Id in a java web application (JSP/Servlets) running 
on Apache Tomcat (T5) without using NTLM Authentication. The need is due to the fact 
that I cant use POST method with NTLM Authentication in a JSP's to send data to a 
servlet.

Help !!

Regards
Abhay

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



multiple tomcat instances cause user logout

2004-03-26 Thread Carlton Lo
I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, 
when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???

tomcat 4.0.6 on win 2000
Carlton Lo
Pluris
550 Cochituate Road
Framingham, MA 01701
Tel:   (508) 663-1089
Fax:  (508) 663-1060
mailto:[EMAIL PROTECTED]


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



building jk2 failure - cant find coyote

2004-03-26 Thread Allan Bruce
I am trying to build the jk2 connector, and when I try I get an error saying it cant 
find coyote.  Here is the exact output:

BUILD FAILED
/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build.xml:142: Warning: Could not find 
file /tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/coyote/build/lib/tomcat-coyote.jar 
to copy.

There is no coyote directory in the tarball I downloaded.  What should I do?
Thanks
Allan


Spam

2004-03-26 Thread tomcat-user
I have visited this website and I found you in the spammer list. Is that true?

 Attachment: No Virus found
 Norman AntiVirus - www.norman.com



Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: building jk2 failure - cant find coyote

2004-03-26 Thread David Short
can you please provide the link where you downloaded the tarball from?

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: building jk2 failure - cant find coyote


I am trying to build the jk2 connector, and when I try I get an error saying
it cant find coyote.  Here is the exact output:

BUILD FAILED
/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build.xml:142: Warning:
Could not find file
/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/coyote/build/lib/tomcat-coyote.
jar to copy.

There is no coyote directory in the tarball I downloaded.  What should I do?
Thanks
Allan



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



Re: Tomcat 4.1.29 Problem

2004-03-26 Thread Ramesh Thyagarajan
Doug,

I have tried that but it does not seem to help. Are there any changes in 
other config files?



From: Parsons Technical Services [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1.29 Problem
Date: Thu, 25 Mar 2004 21:48:02 -0500
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


 Context className=org.apache.catalina.core.StandardContext
 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
ResourceLink global=jdbc/db name=jdbc/db
 type=javax.sql.DataSource/
/Context


 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]
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


Re: building jk2 failure - cant find coyote

2004-03-26 Thread Allan Bruce
jakarta.apache.org  I got the source tar.gz ver 2.2.04 I think
Allan


- Original Message - 
From: David Short [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 8:05 PM
Subject: RE: building jk2 failure - cant find coyote


 can you please provide the link where you downloaded the tarball from?

 -Original Message-
 From: Allan Bruce [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 11:44 AM
 To: [EMAIL PROTECTED]
 Subject: building jk2 failure - cant find coyote


 I am trying to build the jk2 connector, and when I try I get an error
saying
 it cant find coyote.  Here is the exact output:

 BUILD FAILED
 /tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build.xml:142: Warning:
 Could not find file

/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/coyote/build/lib/tomcat-coyote.
 jar to copy.

 There is no coyote directory in the tarball I downloaded.  What should I
do?
 Thanks
 Allan



 -
 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 sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Antonio Fiol Bonnín
Jeremy Nix wrote:

I've misphrased.  What documentation I've come across indicates that
Apache (or IIS) is necessary to configure tomcat as a cluster.  It very
well may be possible, which is why I'm asking the list.  The main
feature that I'm looking for in this configuration is the session
failover ability.  I have a hardware load-balancer, so load-balancing is
not exactly what I was looking for...just the session sharing.
 

Does your hardware load balancer support sticky sessions?

If it does, you can use Tomcat's HTTP connector, and configure your 
balancer as if Tomcat were a web server (which it is, when you use that 
connector).

If it doesn't I personally recommend getting one that does ;-) or using 
Apache + mod_jk / mod_jk2. Use the hardware balancer and 2 Apache for 
high availability.

Other than that, there is in-memory or JDBC session clustering 
(uncomment two elements from your server.xml, and you are mostly done). 
That implies that objects stored in sessions need to be Serializable. 
Performance impact will depend on your webapp design, so YMMV. I only 
tried in-memory a few months ago, and performance dropped seriously, but 
it worked without problem. Most likely our webapp's fault. You may 
encounter issues with frames and similar constructs. See the docs.

HTH,

Antonio Fiol

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


Re: multiple tomcat instances cause user logout

2004-03-26 Thread Antonio Fiol Bonnín
Carlton Lo wrote:

I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???

tomcat 4.0.6 on win 2000
 

Using the same working directory for both? --Avoid it.

Other than that, no idea.

Antonio Fiol

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


RE: multiple tomcat instances cause user logout

2004-03-26 Thread Carlton Lo
They are installed int different directories ...

-Original Message-
From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 3:48 PM
To: Tomcat Users List
Subject: Re: multiple tomcat instances cause user logout


Carlton Lo wrote:

I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, 
when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???

tomcat 4.0.6 on win 2000
  


Using the same working directory for both? --Avoid it.

Other than that, no idea.

Antonio Fiol

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



Simpler solution to force login on conditional security restraint?

2004-03-26 Thread stekell
Is there a simple way to force a standard login programmatically on
page/servlet?

I would like to conditionally force the behavior that happens
non-conditionally when a user requests a page which has a security
constraint and gets their login.

I can think of some solutions for this, like setting up some data in a
session redirecting to a page with a declared security restraint and
redirecting them back.  But it seems like I must be overlooking something
simpler.

Like maybe throw a particular exception that the container responds to like
it had a security restraint.  

The container already handles these kinds of events and gets the login and
returns to the appropriate page remembering everything it needs to, so it
seems like I should be able to just trigger such an event and let the
container handle it rather than duplicating some of that functionality.


-Steve


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



error in tomcat logging

2004-03-26 Thread Emerson Cargnin
I've got the message :

log4j:WARN No appenders could be found for logger 
(org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.

I'm using tomcat 5.0.18.
Could it be due to any lof4j configuration of my apps?
I think that this could happen if I had a ROOT category, isn't it?

My log4j configuration:

?xml version=1.0 encoding=iso-8859-1 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'

appender name=STDOUT class=org.apache.log4j.ConsoleAppender
   layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern
value=%d %-5p [%t] %C{2} (%F:%L) - %m%n/
   /layout  
/appender
appender name=FILE class=org.apache.log4j.DailyRollingFileAppender
param name=File value=${catalina.home}/logs/sisadm-log.txt/
param name=Append value=true/
param name=datePattern value='.'dd-MM- /
layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern value=%d  %p - %m%n/
/layout
  /appender
!-- aqui se configura o nível de detalhamento do log --
category name=gov.tresc.admsis
  priority value=debug /
   appender-ref ref=STDOUT /
   appender-ref ref=FILE/   
/category


/log4j:configuration
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
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-26 Thread Cathy Hui
I probably didn't state my question more clearly.  

What I actually want to encrypt is the dblogin passwd, not the user
login to tomcat.  Is there a way to do that?

Thanks for the reply!

Cathy



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 10:49 AM
To: Tomcat Users List
Subject: RE: How to Secure my Passwd Info from server.xml file?



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
Resource name=jdbc/iOQDB auth=Container 
type=javax.sql.DataSource/ ResourceParams name=jdbc/iOQDB
parameter
nameusername/name
valuemyuser/value
/parameter
parameter
namepassword/name
valuemypassword/value
/parameter
/ResourceParams

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]




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



Re: Tomcat 4.1.29 Problem

2004-03-26 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
Look under Automatic Application Deployment

In a nutshell: Leave the context there, but remove the expanded directory.
If the directory is there then the war will not explode. This is all mute if
unpackWARs property is set to false.

Doug


- Original Message - 
From: Ramesh Thyagarajan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 3:01 PM
Subject: Re: Tomcat 4.1.29 Problem


 Doug,

 I have tried that but it does not seem to help. Are there any changes in
 other config files?




 From: Parsons Technical Services [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.1.29 Problem
 Date: Thu, 25 Mar 2004 21:48:02 -0500

 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
  
  
   Context className=org.apache.catalina.core.StandardContext
   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
  ResourceLink global=jdbc/db name=jdbc/db
   type=javax.sql.DataSource/
  /Context
  
  
   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]

 _
 MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
 download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


 -
 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: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Harry Mantheakis
Tom

 In a servlet you have an init() statement
 that executes only once which you get your
 db connection in...

I hope you are not in a fog about this: there is nothing pre-ordained about
getting a connection in a servlet init method - that just happens to be
where your code is.

 also you need to call super.init(config), where
 you don't have to do this in a bean, because it
 is implicit...

Hmm... I think maybe you are in a bit of fog about all this :-)

Calling 'super.init( config )' within a servlet's init method has nothing to
do with database connections.

Anyway, if you are prepared to post the *exact* bean code that is not
working for you, I am prepared to look at it and try to help you.

Posting snippets of code is not good enough.

The alternative is for you to walk through your code (with println
statements, or a debugger) and see where it stops working.

 Next challenge is I have a blob that I
 set and get, but when I get the blob on
 my results page, it comes up with...

Is that the servlet providing the 'results' - or did you fix the bean?

Regards

Harry


 Not exactly...it is not the same! I have it working with a connection
 pool, mySQL and JNDI. To keep my reply short it goes like this within
 the bean:
 getDBConnection(); // get
 the connection
 prepareStatement(); // prepare the
 statement
 rs = pstmt.executeQuery();// execute the
 query
 and of course after that I get my parameters. In a servlet you have an
 init() statement that executes only once which you get your db
 connection in, also you need to call super.init(config), where you don't
 have to do this in a bean, because it is implicit.
 
 (By the way, if someone wants an example, I will post it, but you'll
 then be my wife.)
 
 Next challenge is I have a blob that I set and get, but when I get the
 blob on my results page, it comes up with something like this  @1eb2473
 which I assume is an address. Anyone know what know how to get, what's
 in the address. Maybe open a stream?
 
 TIA
 
 Tom K.
 
 
 
 -Original Message-
 From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 10:43 AM
 To: Tomcat Users List
 Subject: Re: Question on debuggin JNDI/prepared statement in a bean
 
 Hi Tom
 
 how do you set up a JNDI connection
 in a bean?
 
 Exactly the same way as you would anywhere else, so if you have some
 code
 working in a servlet, copy it.
 
 To be precise, it is a database connection, acquired from a DataSource,
 which is itself acquired via a JNDI lookup. The fact that your code is
 in a
 bean makes no difference.
 
 
 how do you... use a prepared statement (in a bean)
 
 
 Same as anywhere else.
 
 
 how do you... retrieve a resultset, and
 forward the result
 
 
 Again, same as anywhere else.
 
 BTW - you should not be passing about references to JDBC objects that
 are
 tethered (so to speak) to database connections - it is bad practice, and
 likely to cause connection (and memory) leaks.
 
 The best thing to do with database connections is, grab your data, store
 it
 in some collection object, and then make damn sure you close the db
 connection - usually within a 'finally' block which is guaranteed to
 execute, even when exceptions occur.
 
 Having stored the data you need in a collection object, you can pass
 that
 about as much as you like.
 
 That has not really answered your original question, but unless you
 provide
 us with all your relevant code we probably cannot solve the problem.
 
 Since you got it working before, I would be inclined to start again,
 making
 sure that you copy the same JNDI/connection procedures in your 'bean' as
 in
 the servlet that works.
 
 The fact that your 'bean' is not throwing any exceptions suggests, to
 me,
 that there is a bug (logic error) in your code. Starting over might sort
 that out.
 
 Sprinkle about a few (temporary) 'System.out.println' statements to see
 where your code gets to. Not cool, but they do the job sometimes!
 
 If you are using an IDE - like Eclipse - you can run in debug mode, so
 it's
 easy to see what is happening - though may be not with JSPs.
 
 Good luck.
 
 Harry
 
 
 Harry,
 
 Yes the ClassifiedAd and UniqueDateId are two parameters taken
 from an html form, the values of ClassifiedAd and UniqueDateId are
 used
 in a prepared statement for substitution of ? and ? the results are
 then
 forwarded to a results jsp, which used the getXXX() to retrieve the
 values from the bean.
 I have this code working in another form as a Servlet using JNDI
 and prepared statements. In the servlet the JNDI connection is made in
 the init(blah, blah) and calls the super.init(config) which I
 super.init(config) is implicit from reading the Tomcat docs.
 The bottom line on this, is how do you set up a JNDI connection
 in a bean, use a prepared statement (in a bean), retrieve a resultset
 and forward the result for the results jsp to retrieve the value from
 the bean.
 
 Finally, I apologize to those who feel this is 

JK2

2004-03-26 Thread SH Solutions
Hi

I really wanted to avoid asing the list for this again. Sorry, I couldn't
get it going. This was on the list soo often and I always read the posts and
I bookmarkes, every link I could find.
I am using apache2 and tomcat5 for some time now. Every works great.

Now I need to run multiple tomcats and I don't want to get more ips right
now. So I took a few days (yes, it took that long for me) and compiled
mod_jk2.

Now I am stuck with configuration.
The online documentation really isnt useful. Sorry. This differs from
tomcat. Anyway, I stored a lot of bookmarks in the last weeks about JK2 from
this list.

But there are a lot of questions open.
Some tutorials talk about default workers2.properties files. I dont know
where to find this. A lot of tutorials about jk2 give different syntax for
the configuration files. NO tutorial even states where the files must be
placed. Can anyone tell me, how tomcat should know where to find these
files? Or apache2?

So my questions are:
- Does someone have a [jk2-] beginners tutorial, that covers details?
- Can anyone with a working environment send me his configuraiton files for
apache, tomcat, workers, jk2? I will handle them secretly and you can remove
any real domainnames beforehand.

I would be very thankful.

Regards, 
  Steffen


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



RE: tomcat certificate

2004-03-26 Thread Mark Thomas
Got there in the end! I'll add this to my list of things to look at.

Mark 

 -Original Message-
 From: Idoia Murua Belacortu [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 26, 2004 10:22 AM
 To: Tomcat Users List
 Subject: RE: tomcat certificate
 
 
 Yes, you are right. Before my server.xml file had the following realm
 defined:
 
   !-- Global JNDI resources --
   GlobalNamingResources
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer 
 value=30/
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
   /GlobalNamingResources
 
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
  debug=0 resourceName=UserDatabase/
 
 I have replaced it with the memory realm:
 Realm className=org.apache.catalina.realm.MemoryRealm /
 
 And  now  it  accepts  the client certificate. Thank you very 
 much for your
 help.
 
 And  I  think  you are right, the error in the catalina.out 
 file is a JMX
 issue.
 
 Regards,
 Idoia
 
 
   
   

   Mark Thomas   
   

   [EMAIL PROTECTED]Para: 
 'Tomcat Users List' [EMAIL PROTECTED]
 
   cc:
   

Asunto:   RE: 
 tomcat certificate
 
   25/03/04 19:48  
   

   Por favor,  
   

   responda a  
   

   Tomcat Users   
   

   List   
   

   
   

   
   

 
 
 
 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:
  Realm className=org.apache.catalina.realm.MemoryRealm /
 
  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:
   Connector port=8443
 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:
   role rolename=certs/
   user   username=[EMAIL PROTECTED],  CN=Idoia,
OU=INFOTECH,
   O=ROBOTIKER, L=ZAMUDIO, ST=BIZKAIA, C=ES password=null
   roles=certs/
  
  
   The web.xml file of the application is:
  
   ?xml version=1.0 encoding=windows-1252?
   !DOCTYPE  web-app  PUBLIC  -//Sun Microsystems, Inc.//DTD
   Web Application
   2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app
   descriptionEmpty web.xml file for Web
   Application/description
   session-config
   session-timeout35/session-timeout
   

RE: Windows Login Id in a Web App on T5

2004-03-26 Thread Mark Thomas
You can't get a use a windows username and password without integrating with
windows authentication. How about fronting things with IIS? Let IIS do the
authentication for you. Haven't tried it but I don't see why it wouldn't work.


 -Original Message-
 From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 26, 2004 7:30 PM
 To: 'Tomcat Users List'
 Subject: Windows Login Id in a Web App on T5
 Importance: High
 
 Hi,
 
 How can I get user's windows login Id in a java web 
 application (JSP/Servlets) running on Apache Tomcat (T5) 
 without using NTLM Authentication. The need is due to the 
 fact that I cant use POST method with NTLM Authentication in 
 a JSP's to send data to a servlet.
 
 Help !!
 
 Regards
 Abhay
 
 -
 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]



Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-26 Thread tom ly
The Free Memory(not the java heap) continues to drop even when there is nothing going 
on with tomcat.  It gets to the point where there is hardly any left and we have to 
restart tomcat.  I'm using JRockit and have my JAVA_OPTS=-server -Xms1200 -Xmx1200 
on a Pentium 3 machine with 2GB of RAM.  I'm new to Memory profiling but can't seem to 
find any lingering objects using JProbe, besides, the Free Memory continues to drop on 
the machine over the weekend when no testing is taking place.  What can be wrong?  Any 
help would be great.
Thanks,
Tom


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

Tomcat5 and HttpServletRequest#getSession

2004-03-26 Thread John C Cartwright
Hello All,

I'm a little confused about the creation of new sessions.  I have a 
webapp running (Tomcat 5.0.19), and I can see from a SessionListener 
that the session is timed out - Session destroyed, all attributes 
removed.  So far, so good.  But when a subsequent request is made like 
the following excerpt from a JSP page:

%= request.getSession(false)%

I would have expected to get null as the response, instead I get a
non-null session object (e.g. 
[EMAIL PROTECTED]) and the 
SessionListener reports that a new session was indeed created at the 
time of the JSP request.

So, it seems to me that a session is always created when the 
getSession() method is called regardless of the boolean parameter.

Can someone clarify for me?

Thanks!



-- john

=
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
[EMAIL PROTECTED]
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: No suitable driver

2004-03-26 Thread Todd H. Siegel
Doug,

Yes, I am using TC5, the drivers work when I connect directly via DriverManager
and are in common/lib.

Here are the relevant parts of my server.xml:

  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource

Resource name=resourceName auth=Container
type=javax.sql.DataSource/ 

ResourceParams name=resourceName

parameter
namefactory/name
   
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
namemaxActive/name
value100/value
/parameter

parameter
namemaxIdle/name
value30/value
/parameter

parameter
namemaxWait/name
value1/value
/parameter

parameter
nameurl/name
valuejdbc:microsoft:sqlserver://hostname/value
/parameter

parameter
nameDatabaseName/name
valuedbname/value
/parameter

parameter
nameUser/name
valueusername/value
/parameter

parameter
namePassword/name
valuepassword/value
/parameter

parameter
namedriverClassName/name
   
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
/parameter

/ResourceParams

ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources


From $TOMCAT_HOME/conf/Catalina/localhost/webappname.xml:

Context path=/webappname docBase=webappname debug=5 reloadable=true
crossContext=true

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

   ResourceLink name=jdbc/dbname
 global=resourceName
 type=javax.sql.DataSource /

/Context


And from web.xml:

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/dbname/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

The code snippet is below, in the original email.

Thank you,
Todd

--- Parsons Technical Services [EMAIL PROTECTED] wrote:
 Todd,
 
 I assume you are running TC5?
 Please post your configs from the server.xml, web.xml, context.xml and code
 snippet you use to get a connection.
 
 Because you are getting a driver it is at least seeing some of your config.
 
 Are you using the correct drivers?
 Are they current?
 Are they corrupted?
 
 Driver jar goes in common/lib.
 
 Doug
 
 - Original Message - 
 From: Todd H. Siegel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 24, 2004 10:12 PM
 Subject: No suitable driver
 
 
  All,
 
  I know that this issue has been posted many times, I have read many of
 them and
  and the Tomcat docs but to no avail...
 
  The names between the '*'s have been sanitized.
 
  The following code:
 
  Context initContext = new InitialContext();
  DataSource ds =
 (DataSource)initContext.lookup(java:/comp/env/jdbc/*DbName*);
  Connection conn = ds.getConnection();
 
  produces the following results:
 
  java.lang.Exception: org.apache.commons.dbcp.SQLNestedException: Cannot
 create
  JDBC driver of class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'
 for
  connect URL 'jdbc:microsoft:sqlserver://*hostname*', cause: No suitable
 driver
 
  In the interest of keeping this brief I won't include all of the config,
 but
  I've tried putting the Resource  ResourceParams definitions in the
  Context element for the webapp in server.xml.
 
  I've also put the Resource  ResourceParams definitions in the
  GlobalNamingResources in the server.xml with a ResourceLink in the
  Context element in $CATALINA_HOME/*webapp*.xml.  I've also tried this
 with a
  context.xml in the META-INF directory of the webapp.
 
  The jars for the driver are in common\lib, but I've also tried putting
 them in
  every other imaginable lib directory too.
 
  I would greatly appreciate any help.
 
  Thank you,
  Todd
 
 
  __
  Do you Yahoo!?
  Yahoo! 

RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-26 Thread Filip Hanik \(lists\)
I think you need to store the EJBHandle, not the actual bean that you are
referencing.
is that what you are doing?
Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:20 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Andy,

I agree with your point about a SFSB being an extension of a client. But
then, if I store the 'state' alone in the httpsession and update the state
by using a new SFSB everytime, the whole concept of SFSB's are lost. I would
rather use a stateless session bean and use httpsession for persisting my
conversational state. (I know this line of thinking against use of SFSB has
been advocated many a times and is a different discussion altogether)

I beleive what ur suggesting to be a workaround and is not an acceptable
solution. My design requirement requires a SFSB and I need servlets to
invoke my SFSB. I will also need to cluster the TC5 servers. Passing the
reference within the servlet and between method calls is the only way to
hold a handle and interact with a single instance of a SFSB.

If I use a JBOSS 3.2.3 server which comes bundled with TC then JBOSS takes
care of my httpSession sharing between the various JBOSS servers in the
cluster. (JBOSS has a different mechanism for httpSession sharing). But I
would like to have a multitier cluster with seperate TC clusters and
seperate JBOSS clusters. So the end question would be if TC 5.0.18 has the
capability to handle such a scenario or not.

cheers
Suraj



-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:400
1,10.5.18.27,4001, alive=45657]
Mar 18, 2004 

RE: clustering/replication tomcat 5

2004-03-26 Thread Filip Hanik \(lists\)
should be a document in the doc folder shipped with tomcat.

steps are pretty simple

1. ucomment the cluster section in server.xml
2. add distributable/ to web.xml
3. make all your attributes serializable

4. if you have two or more tomcat instances on the same machine then you
will need to adjust the tcpListenPort in server.xml

Filip

-Original Message-
From: pablo [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 7:05 AM
To: [EMAIL PROTECTED]
Subject: clustering/replication tomcat 5


Hi folks,
  I am looking for a step by step on how to do tomcat
clustering/replication .  I am unable to find anything decent on the
web nor in my books (being that they are still tomcat 4 specific ).  If
anybody has a quick down and dirty on these procedures please let me
know.
-Pablo


-
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.614 / Virus Database: 393 - Release Date: 3/5/2004

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


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



Re: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
It appears that upgrade to JDK 1.4.2 is helping. Tomcat did not 
crash/hang today.

- SPS

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
Date: Friday, March 26, 2004 9:17 am
Subject: RE: Tomcat Hangs

 
 Hi,
 You said it's hung, not crashed, but this is an internal crash.  
 It's a
 bit beyond not responding ;)
 
 Due cose: update your JDK if you can, as 1.4.2 is far more stable and
 performant than 1.3.  And make sure you have all the Windows Update
 patches installed on the machine, as this error is usually due to a
 miscommunication between the JDK and the OS.
 
 Was there a stack trace that you cut off in the message below?
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 9:15 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Hangs
 
 Just now Tomcat stopped responding. While stopping the console 
 I've got
 the following message:
 
 ---
  #
 # HotSpot Virtual Machine Error, Internal Error
 # Please report this error at
 # http://java.sun.com/cgi-bin/bugreport.cgi
 #
 # Error ID: 43492F424A454354264143544F52590E435050010E
 #
 # Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
 ---
 
 We're using JDK version 1.3.1_05.
 
 Any thoughts?
 
 - SPS
 
 - Original Message -
 From: Surya Suravarapu [EMAIL PROTECTED]
 Date: Thursday, March 25, 2004 7:50 pm
 Subject: Tomcat Hangs
 
  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]
 
 
 
 
 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]



Message on Tomcat console

2004-03-26 Thread Surya Suravarapu
Hello All!

Tomcat console is displaying the following message very often:

---
SystemId Unknown; Line 1358; Column 31; name has an illegal attribute: 
{1}
---

It is not affecting Tomcat performance or anything but just want to 
find out if anybody else have observed this kind of behavior. Somebody 
on the net was suggesting that it could be related with xalan.jar?

Thanks!

- SPS



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



RE: [ANNOUNCE] mod_jk2 2.0.4 released

2004-03-26 Thread David Short
I found the zip file but the version under the
http://apache.towardex.com/jakarta/tomcat-connectors/jk2/binaries/win32/
directory only contained the Unix binary.

-Original Message-
From: Henri Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:10 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCE] mod_jk2 2.0.4 released


The Tomcat team is pleased to announce the release of version 2.0.4 of
the Apache Tomcat mod_jk2 web server connector.

Tomcat is the reference implementation of a web application server which
implements the Java Servlet and JavaServer Pages specifications.

mod_jk2 is a connector which allows a web server such as Apache HTTPD or
IIS to act as a front end to the Tomcat web application server.

This version fixes a many majors bugs and is the first one to use APR
which is now mandatory.

See the file CHANGES.txt in the source distribution for a complete list
of changes.




-
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-26 Thread Gordon Luk
Hi Antonio Fiol,

   Right, it should be helpful for development, we all want know what 
IT's doing? But for production, i think it should be off.

Gordon

Antonio Fiol Bonnín wrote:

Suggestion:

Also add the logAbandoned parameter and set it to true. I found it 
very useful at hard times.

Antonio Fiol

Gordon Luk wrote:

Hi Doug,

Thank for your advise, indeed my project state at begining. So every
thing is simple right now. BTW, i already experience on connection pool
on my previus ejb project. I will take care on it. As a simple mind,
take and go. :-)
Gordon

Parsons Technical Services wrote:

 

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:

  parameter
   nameremoveAbandoned/name
   valuetrue/value
   /parameter
   parameter
   nameremoveAbandonedTimeout/name
   value60/value
   /parameter
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
?xml version='1.0' encoding='utf-8'?
...
 ResourceParams name=jdbc/myjdniname
 parameter
 namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 !-- Maximum number of dB connections in pool. Make sure you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --
 parameter
 namemaxActive/name
 value100/value
 /parameter
 !-- Maximum number of idle dB connections to retain in pool.
  Set to 0 for no limit.
  --
 parameter
 namemaxIdle/name
 value10/value
 /parameter
 parameter
 nameminIdle/name
 value10/value
 /parameter
 !-- Maximum time to wait for a dB connection to become
available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --
 parameter
 namemaxWait/name
 value1/value
 /parameter
 parameter
 nameusername/name
 valuemyuserid/value
 /parameter
 parameter
 namepassword/name
 valuemypassword/value
 /parameter
 !-- Class name for mm.mysql JDBC driver --
 parameter
 namedriverClassName/name
 valuenet.sourceforge.jtds.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 value
jdbc:jtds:sqlserver://myserver/mydatabase;TDS=4.2;charset=big5/value 

 /parameter
 parameter
 namevalidationQuery/name
 valueselect count(*) from tablename/value
 /parameter
 parameter
 nametestOnBorrow/name
 valuetrue/value
 /parameter
 parameter
 nametestWhileIdle/name
 valuetrue/value
 /parameter
 parameter
 nametimeBetweenEvictionRunsMillis/name
 value5000/value
 /parameter
 parameter
 nameminEvictableIdleTimeMillis/name
 value1/value
 /parameter
 /ResourceParams

/Context
---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 

Tomcat 4.1.27 fails to start

2004-03-26 Thread Surya Suravarapu
Tomcat fails to start with the following stacktrace:
-
Catalina.start: org.xml.sax.SAXException: Stopping after fatal error: 
The string
 -- is not permitted within comments.
org.xml.sax.SAXException: Stopping after fatal error: The string -- 
is not per
mitted within comments.
at org.apache.xerces.framework.XMLParser.reportError
(XMLParser.java:1228
)
at 
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner.scanComment
(XMLDocumen
tScanner.java:1894)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1121)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse
(XMLParser.java:1081)
at org.apache.commons.digester.Digester.parse
(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:203)
--

We're using Tomcat 4.1.27, JDK 1.4.2 on Windows 2000 machine.

Any thoughts?

Thanks!

- SPS



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



Re: Tomcat 4.1.27 fails to start

2004-03-26 Thread Justin Ruthenbeck
sarcasm
I'm going to go out on a limb here and suggest that perhaps you have some 
xml that you just edited where you included the string -- within a 
comment block.  I'm basing this guess on the error message that you got:

The string -- is not permitted within comments.
/sarcasm
Seriously, check the XML that you just edited and look for something that 
looks like:

!--  This is my comment -- it's not well-formed. --

Such a comment is malformed.  If you can't figure out which xml it is 
(you should be able to), look at the source Catalina.java:449.

Next time, you may want to consider thinking about the error message you 
got before posting to the list and, if you're going to post, give some 
context and an indication that you did so:

I was trying to edit my server.xml to add a new Coyote Connector, which 
I believe I did correctly.  Now when I start my Tomcat with the 
startup.bat file, I get the following error message: [Stack Trace].  I 
couldn't figure out what was causing this, so I bumped up the debug 
level, but didn't see anything. [Debug output].  I googled for is not 
permitted within comments but didn't find anything useful.  I'm offering 
40 karma points for anyone who can help me with this... please.

;)
justin
At 06:40 PM 3/26/2004, you wrote:
Tomcat fails to start with the following stacktrace:
-
Catalina.start: org.xml.sax.SAXException: Stopping after fatal error:
The string
 -- is not permitted within comments.
org.xml.sax.SAXException: Stopping after fatal error: The string --
is not per
mitted within comments.
at org.apache.xerces.framework.XMLParser.reportError
(XMLParser.java:1228
)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner.scanComment
(XMLDocumen
tScanner.java:1894)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1121)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse
(XMLParser.java:1081)
at org.apache.commons.digester.Digester.parse
(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:203)
--
We're using Tomcat 4.1.27, JDK 1.4.2 on Windows 2000 machine.

Any thoughts?

Thanks!

- SPS


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >