Tomcat Service and OCI

2007-11-30 Thread Rumpa Giri
Hello,
   
  I am trying to run the tomcat as NT Service, but does not seem to work with 
OCI, if I run the same tomcat instance not as a service but via startup.bat, 
the OCI JDBC driver works fine.
   
  Can anybody help me locate how to fix the service installation script to 
avoid the exception.
   
  Local setup followed -
   
  1) I have installed tomcat 5.5.25.
  2) Installed oracle client installation to use JDBC OCI Driver.
  a) Installed the oracle client installation at location - 
C:\oracle\product\10.2.0\client_1
  b) PATH is updated to reflect the above location for the dlls.
  c) copied the ojdbc14.ar to the %CATALINA_HOME%/commo/lib/ folder.
  3) the context.xml has the OCI URL properly -
   
   
  If i run the %CATALINA_HOME%/bin/startup.bat - the application works fine and 
the JDBC code excutes properly.
   
  To install the tomcat as a service I ran the following script - 
  NOTE - We did specify the -Djava.library.path in the script.
  _
  SET CATALINA_HOME=C:\tools\apache-tomcat-5.5.25
SET CATALINA_BASE=C:\tools\apache-tomcat-5.5.25
  
 @echo off
 
 echo CATALINA_HOME: %CATALINA_HOME%
 echo CATALINA_BASE: %CATALINA_BASE%
 echo JAVA_HOME: %JAVA_HOME%
 pause
 set BASEDIR=%CATALINA_HOME%
 call "%CATALINA_HOME%\bin\setclasspath.bat"
 
 set args=%args% --Description=TOMCAT1
 set args=%args% --DisplayName=TOMCAT1
 
 set args=%args% --Startup=auto
 
 set args=%args% --LogPath=%CATALINA_BASE%\logs
 set args=%args% --LogLevel=DEBUG
 set args=%args% --StdError=%CATALINA_BASE%\logs\tomcat1_err.log
 set args=%args% --StdOutput=%CATALINA_BASE%\logs\tomcat1_out.log
 
 set args=%args% --Classpath="%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar"
 
 set args=%args% --JavaHome=%JAVA_HOME%
 set args=%args% --Jvm=%JAVA_HOME%\jre\bin\server\jvm.dll
 set args=%args% 
--JvmOptions="-Xms128m;-Xmx512m;-Djava.library.path=C:\oracle\product\10.2.0\client_1;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
  
 
 set args=%args% --StartMode=jvm
 set args=%args% --StartClass=org.apache.catalina.startup.Bootstrap
 set args=%args% --StartParams=start
 rem set args=%args% --StartImage=%CATALINA_HOME%\bin\tomcat5.exe
 rem set args=%args% --StartPath=%CATALINA_HOME%\bin;
 
 set args=%args% --StopMode=jvm
 set args=%args% --StopClass=org.apache.catalina.startup.Bootstrap
 set args=%args% --StopParams=stop
 rem set args=%args% --StopImage=%CATALINA_HOME%\bin\tomcat5.exe
 rem set args=%args% --StopPath=%CATALINA_HOME%\bin
 
 %CATALINA_HOME%\bin\tomcat5.exe //IS//TomcatTest %args%
 set args=
 set BASEDIR=
_
   
  Now when we run the service and start the application - we get the following 
exception -
  java.lang.UnsatisfiedLinkError: 
C:\oracle\product\10.2.0\client_1\ocijdbc10.dll: Can't find dependent libraries
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
 at java.lang.Runtime.loadLibrary0(Runtime.java:822)
 at java.lang.System.loadLibrary(System.java:992)
 at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
 at java.security.AccessController.doPrivileged(Native Method)
 at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
 at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
 at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:414)
 at oracle.jdbc.driver.T2CConnection.(T2CConnection.java:132)
 at 
oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
 at 
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
 at 
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
<>
   
  Can anybody please help me locate how to fix the service installation script 
to avoid the exception. I am assuming since the regular command prompt way of 
starting tomcat works fine with the driver, its the service installation script 
which is missing something.
   
  Thanks,
  Rumpa Giri

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

RE: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-30 Thread Shaji Thomas
Thank you Gregor for the links.
We are trying not to modify the Tomcat code at this point to avoid
regression testing. We decided to change our Tomcat startup scripts to
check for port issues and restart the server since this is the least
intrusive change at this point in our release cycle. 

Thanks a lot for the suggestions and links. I really appreciate it.

Shaji

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 3:27 AM
To: Tomcat Users List
Subject: Re: How to make Tomcat shutdown itself if the address it is
trying to bind is already in use.

Shaji,

maybe this will do the trick:

http://tomcat.apache.org/faq/security.html#8005

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-11-30 Thread Tom Robinson
Caldarale, Charles R wrote:
>> From: Tom Robinson [mailto:[EMAIL PROTECTED] 
>> Subject: java.lang.NoClassDefFoundError: 
>> org/apache/commons/collections/SequencedHashMap
>>
>> I think I've installed all the correct jars (mostly via 
>> jpackage and CentOS yum repos)
> 
> And therein lies the problem, most likely.  Throw away the 3rd-party
> repackaged garbled version of Tomcat, and download a proper one from
> tomcat.apache.org.  There are numerous issues in trying to straighten
> out the repackaged junk.
> 
>  - Chuck

Ok Chuck, but I'm bound by other restrictions here. i.e. packaged software.

The manager webapp works a treat as does the admin webapp. As far as tomcat is
concerned, it's up and running and ticking away nicely. The problem I have is
deploying a webapp on an updated version of tomcat.

Any other clues?

Tom

-- 
Thomas Robinson -



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Caldarale, Charles R
> From: Bárbara Vieira [mailto:[EMAIL PROTECTED] 
> Subject: RE: SSL Session expires every request
> 
> HttpSession wasn't null in the beginning, when I started
> my implementation. However, now is null in every request.

How are you retrieving the session?  A code sample would be good.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-11-30 Thread Caldarale, Charles R
> From: Tom Robinson [mailto:[EMAIL PROTECTED] 
> Subject: java.lang.NoClassDefFoundError: 
> org/apache/commons/collections/SequencedHashMap
> 
> I think I've installed all the correct jars (mostly via 
> jpackage and CentOS yum repos)

And therein lies the problem, most likely.  Throw away the 3rd-party
repackaged garbled version of Tomcat, and download a proper one from
tomcat.apache.org.  There are numerous issues in trying to straighten
out the repackaged junk.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-11-30 Thread Tom Robinson
Hi,

I'm having some trouble with a new tomcat5 setup. The webapp works on another
host with the following setup:

CentOS 4
OK - Server info
Tomcat Version: Apache Tomcat/5.0
OS Name: Linux
OS Version: 2.6.9-55.0.9.ELsmp
OS Architecture: i386
JVM Version: 1.4.2_10-b03
JVM Vendor: Sun Microsystems Inc.

I think I've installed all the correct jars (mostly via jpackage and CentOS yum
repos) but on the new host with the following configuration I get the errors
pasted at the bottom of this message:

CentOS 5
OK - Server info
Tomcat Version: Apache Tomcat/5.5.25
OS Name: Linux
OS Version: 2.6.18-8.1.15.el5xen
OS Architecture: i386
JVM Version: 1.6.0_03-b05
JVM Vendor: Sun Microsystems Inc.

The error is:
Nov 30, 2007 11:52:31 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter MainFilter
java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

When I search for the class in /var/lib/tomcat5 I can find the required class 
in:
./server/webapps/admin/WEB-INF/lib/[commons-collections].jar
  9026 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap.class

There are also two other versions from:
./common/lib/[commons-collections-tomcat5].jar
org/apache/tomcat/dbcp/collections/SequencedHashMap.class

and:
./common/lib/[commons-dbcp-tomcat5].jar
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap.class

Why do I have three versions and are they conflicting with each other? Should I
be looking somewhere else for the cause of the error?

Any help is appreciated.

Cheers,

Tom

---

Other Info:

[EMAIL PROTECTED] tomcat5]# pwd
/var/lib/tomcat5
[EMAIL PROTECTED] tomcat5]# list=`find -name '*.jar'`
[EMAIL PROTECTED] tomcat5]# for j in $list
> do
> echo $j
> jar tvf $j | grep SequencedHashMap
> done

---8<--- snip ---8<---

./common/lib/[commons-collections-tomcat5].jar
  1725 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap$1.class
  2151 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap$2.class
  2335 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap$3.class
  1859 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap$Entry.class
  2398 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap$OrderedIterator.class
  8932 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/collections/SequencedHashMap.class
./common/lib/[commons-dbcp-tomcat5].jar
  1780 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$1.class
  2216 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$2.class
  2384 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$3.class
  1811 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$Entry.class
  2458 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$OrderedIterator.class
  9057 Tue Jan 01 00:00:00 GMT 1980
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap.class

---8<--- snip ---8<---

./server/webapps/admin/WEB-INF/lib/[commons-collections].jar
  1681 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap$1.class
  2099 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap$2.class
  2283 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap$3.class
  1843 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap$Entry.class
  2350 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap$OrderedIterator.class
  9026 Tue Jan 01 00:00:00 GMT 1980
org/apache/commons/collections/SequencedHashMap.class

---8<--- snip ---8<---

Errors:

INFO: HTMLManager: start: Starting web application at '/'
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Environment 
INFO: Hibernate 3.1.3
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Environment 
INFO: hibernate.properties not found
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Environment 
INFO: using CGLIB reflection optimizer
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Environment 
INFO: using JDK 1.4 java.sql.Timestamp handling
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Configuration 
getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Nov 30, 2007 11:52:31 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: hibernate.hbm.xml
Nov 30, 2007 11:52:31 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter MainFilter
java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
at org.hibernate.mapping.Table.(Table.java:33)
at org.hibernate.cfg.Mappings.addTable(Mappings.java:165)
at
org.hibernate.cfg.HbmBinder.bindRootPersist

RE: SSL Session expires every request

2007-11-30 Thread Vimal Kumar

This is the first time I am ever asking a question, coz I just got registered 
here now. I think you mistook for somebody elese Chuck Charles

Vimal



 Message Received: Nov 30 2007, 11:58 PM
 From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
 To: "Tomcat Users List" 
 Cc: 
 Subject: RE: SSL Session expires every request
 
 > From: Vimal Kumar [mailto:[EMAIL PROTECTED] 
 > Subject: RE: SSL Session expires every request
 > 
 >   Do u know how to configure PHP 5.2.5 on Tomcat 6.0. Please 
 > let me know about it.
 
 Now you've become really annoying - you've hijacked threads, asked the
 same question multiple times, and apparently haven't bothered to do any
 research on your own.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
Hi Martin!
I'm using 2 connectors : non-SSL HTTP/1.1 Connector on port 8080 and SSL
HTTP/1.1 Connector on port 8443. Tomcat's connectors are very well
configured, because HttpSession wasn't null in the beginning, when I started
my implementation. However, now is null in every request. I can authenticate
the client, and the request has a principal that is not null. But session is
strangely null. 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 23:07
To: Tomcat Users List
Subject: Re: SSL Session expires every request

Barbara

Filip asks if you are using
non SSL HTTP/1.1 HTTPConnector  ***or***
SSL HTTP/1.1 Connector (presumably with Client certs)

?
M--
- Original Message -
From: "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, November 30, 2007 2:16 PM
Subject: Re: SSL Session expires every request


> what session are you talking about, the HTTP session or the actual SSL
> session?
>
> Filip
>
> Bárbara Vieira wrote:
> >
> >
> > Hi there!!
> >
> > I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
> > authentication to authenticate users in my web application. But, the
session
> > expires at every request, in all browsers : Opera, IE, Firefox and
> > Netscape. This is not make any sense, and I don’t know solve this
problem L
> >
> > If somebody can help, I really appreciate that.
> >
> >
> >
> > Thanks for everything,
> >
> > Regards from Braga, Portugal
> >
> > Bárbara Vieira
> >
> >
> >
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date:
11/29/2007 8:32 PM
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Caldarale, Charles R
> From: Vimal Kumar [mailto:[EMAIL PROTECTED] 
> Subject: RE: SSL Session expires every request
> 
>   Do u know how to configure PHP 5.2.5 on Tomcat 6.0. Please 
> let me know about it.

Now you've become really annoying - you've hijacked threads, asked the
same question multiple times, and apparently haven't bothered to do any
research on your own.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Vimal Kumar

Hello,

  Do u know how to configure PHP 5.2.5 on Tomcat 6.0. Please let me know about 
it.

Vimal


 Message Received: Nov 30 2007, 11:27 PM
 From: "Bárbara Vieira" <[EMAIL PROTECTED]>
 To: "'Tomcat Users List'" 
 Cc: 
 Subject: RE: SSL Session expires every request
 
 Hi carlo!!
 Yes, it validates the certs. The certs are valid :) When the application is 
running all pages are showed( all pages are protected - under ssl), but when I 
test if HttpSession in the HttpServletRequest exists, it is null. 
 
 -Original Message-
 From: Carlo Politi [mailto:[EMAIL PROTECTED] 
 Sent: sexta-feira, 30 de Novembro de 2007 18:47
 To: Tomcat Users List
 Subject: Re: SSL Session expires every request
 
 but the certs are valids?
 
 - Messaggio originale -
 Da: Bárbara Vieira <[EMAIL PROTECTED]>
 A: Tomcat Users List 
 Inviato: Venerdì 30 novembre 2007, 18:22:32
 Oggetto: SSL Session expires every request
 
  
 
 Hi there!!
 
 I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
 authentication to authenticate users in my web application. But, the
  session
 expires at every request, in all browsers : Opera, IE, Firefox and
 Netscape. This is not make any sense, and I don’t know solve this
  problem L 
 
 If somebody can help, I really appreciate that.
 
  
 
 Thanks for everything,
 
 Regards from Braga, Portugal
 
 Bárbara Vieira
 
  
 
 
 
 
 
 
 

 ___ 
 Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive 
 http://it.messenger.yahoo.com
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameter Map is null after Ajax Request

2007-11-30 Thread Caldarale, Charles R
> From: Randeep Walia [mailto:[EMAIL PROTECTED] 
> Subject: Parameter Map is null after Ajax Request
> 
> Saving Set 3 will demonstrate a problem whereby the servlet 
> that processes this request has an empty Parameter map

Servlets don't have parameter maps, requests do.  Are you by any chance
storing the reference to a request's parameter map in an instance or
class variable of a servlet and thereby introducing threading problems?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameter Map is null after Ajax Request

2007-11-30 Thread Propes, Barry L
do the logs have anything helpful at all?
Almost sounds as if you save "out of order" - say, skipping from set 2 to set 3 
you get this error, where as saving the first set or all sets won't cause the 
issue?

-Original Message-
From: Randeep Walia [mailto:[EMAIL PROTECTED]
Sent: Friday, November 30, 2007 5:03 PM
To: users@tomcat.apache.org
Subject: Parameter Map is null after Ajax Request


Over a year ago, a user reported a problem with his Request parameter
map showing up null sporadically on his application:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200601.mbox/[EMAIL 
PROTECTED]

I am suddenly seeing similar behavior with our AJAX-enabled web application.

We are using RedHat Linux with Tomcat 5.5 and JDK 1.5.

Our application loads sets of text area dynamically using AJAX
(controlled by the Prototype library). The user can choose to open one
or more sets of text data, edit them, and submit the changes using
AJAX. It normally works well, but I am seeing a problem with certain
sets.

Say I have several sets of text data. I load the third set
successfully and edit it. Saving Set 3 will demonstrate a problem
whereby the servlet that processes this request has an empty Parameter
map, despite their being a considerable amount of data being
transmitted. A different set, say set 2, submits this data just fine.

My first theory as to why this was happening was that some invalid
character or too much data was causing the parsing to fail, but I
found that loading both sets 2 and 3 together and then saving (which
saves both sets) rather bizarrely caused the problem to vanish. What
are the circumstances under which the Parameter map could come up null
like this?

I'm not sure what code to post since this is pretty standard stuff,
but here is the Submit function which uses Prototype:

function ajaxSend(inForm)
{
   //If there is no input get the first form on the document
   var ajxForm = (inForm)?inForm:getAjxForm();

   setAjaxStatus('Submitting');

   var submitter = new Ajax.Request(
   'EditPaper',
   {
   method: 'post',
   parameters: Form.serialize(ajxForm),
   onComplete: ajaxReportStatus,
   onFailure: ajaxReportError
   }
   );

   return false; //Stops the form from submitting
}

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Session expires every request

2007-11-30 Thread Martin Gainty
Barbara

Filip asks if you are using
non SSL HTTP/1.1 HTTPConnector  ***or***
SSL HTTP/1.1 Connector (presumably with Client certs)

?
M--
- Original Message -
From: "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, November 30, 2007 2:16 PM
Subject: Re: SSL Session expires every request


> what session are you talking about, the HTTP session or the actual SSL
> session?
>
> Filip
>
> Bárbara Vieira wrote:
> >
> >
> > Hi there!!
> >
> > I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
> > authentication to authenticate users in my web application. But, the
session
> > expires at every request, in all browsers : Opera, IE, Firefox and
> > Netscape. This is not make any sense, and I don’t know solve this
problem L
> >
> > If somebody can help, I really appreciate that.
> >
> >
> >
> > Thanks for everything,
> >
> > Regards from Braga, Portugal
> >
> > Bárbara Vieira
> >
> >
> >
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date:
11/29/2007 8:32 PM
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Parameter Map is null after Ajax Request

2007-11-30 Thread Randeep Walia
Over a year ago, a user reported a problem with his Request parameter
map showing up null sporadically on his application:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200601.mbox/[EMAIL 
PROTECTED]

I am suddenly seeing similar behavior with our AJAX-enabled web application.

We are using RedHat Linux with Tomcat 5.5 and JDK 1.5.

Our application loads sets of text area dynamically using AJAX
(controlled by the Prototype library). The user can choose to open one
or more sets of text data, edit them, and submit the changes using
AJAX. It normally works well, but I am seeing a problem with certain
sets.

Say I have several sets of text data. I load the third set
successfully and edit it. Saving Set 3 will demonstrate a problem
whereby the servlet that processes this request has an empty Parameter
map, despite their being a considerable amount of data being
transmitted. A different set, say set 2, submits this data just fine.

My first theory as to why this was happening was that some invalid
character or too much data was causing the parsing to fail, but I
found that loading both sets 2 and 3 together and then saving (which
saves both sets) rather bizarrely caused the problem to vanish. What
are the circumstances under which the Parameter map could come up null
like this?

I'm not sure what code to post since this is pretty standard stuff,
but here is the Submit function which uses Prototype:

function ajaxSend(inForm)
{
   //If there is no input get the first form on the document
   var ajxForm = (inForm)?inForm:getAjxForm();

   setAjaxStatus('Submitting');

   var submitter = new Ajax.Request(
   'EditPaper',
   {
   method: 'post',
   parameters: Form.serialize(ajxForm),
   onComplete: ajaxReportStatus,
   onFailure: ajaxReportError
   }
   );

   return false; //Stops the form from submitting
}

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Tomcat 6] jsp on the fly

2007-11-30 Thread Caldarale, Charles R
> From: Manca Davide [mailto:[EMAIL PROTECTED] 
> Subject: R: [Tomcat 6] jsp on the fly
> 
> but it doesn't...
> how can I make it works?

Does auto-compilation of JSPs work in a fresh Tomcat download, using the
included JSP examples?  If so, then something you have changed in your
current Tomcat installation has broken it.  Check if you've damaged
conf/web.xml, since that's where the JspServlet is defined.

You'd do well to read up on Tomcat configuration, since the server.xml
you posted violates current practice:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Putting  elements in server.xml is undesirable, as is
configuring a workDir inside WEB-INF (which should be treated as
read-only).  The latter issue may be the cause of your JSP problem, but
I haven't tried to verify it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: [Tomcat 6] jsp on the fly

2007-11-30 Thread Manca Davide
but it doesn't...
how can I make it works?

-Messaggio originale-
Da: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Inviato: ven 30/11/2007 20.40
A: Tomcat Users List
Oggetto: Re: [Tomcat 6] jsp on the fly
 
yes, this works out of the box, without any changes to any config files

Filip

Manca Davide wrote:
> Hello,
>
>  
>
> I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
> webapp. I want to Tomcat recompile them into .class files without
> restarting.
>
>  
>
> I already tried these:
>
>  
>
> In context.xml
>
>  
>
> 
>
>  antiResourceLocking="false">
>
>  
>
> 
>
> WEB-INF/web.xml
>
> 
>
> 
>
>  
>
> 
>
> 
>
> 
>
>  
>
> In server.xml:
>
>  
>
>  appBase="/store1/www-dev/mysite.net/doc_root/webapps"
>
> unpackWARs="true" autoDeploy="true" deployOnStartup="false"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>  
>
> 
>  
> docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"
>
>  
> workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"
>
>  unpackWARs="true" autoDeploy="true"
> deployOnStartup="false" processTlds="true"
>
>  xmlValidation="false" xmlNamespaceAware="false"
>
>  debug="0" reloadable="true" privileged="true"
> antiResourceLocking="false">
>
>  WEB-INF/web.xml
>
>  jsp/index.jsp
>
>  
>
>  
>
> 
>
>  
>
>  
>
> 
>
>  
>
> Thanks a lot for your help.
>
>  
>
> Ciao.
>
> Dave.
>
>
>   
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 
> 8:32 PM
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
I have this problem with all my web applications. It already worked. But now 
isn't working and I need to know how to solve the problem. I'll try almost 
everything: install a new Tomcat, remove additional configurations in web 
applications, etc. But nothing works. 

-Original Message-
From: Carlo Politi [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 22:31
To: Tomcat Users List
Subject: Re: SSL Session expires every request

m very strange behaviour but have you had this strange thing only with 
a particular application or with all?

- Messaggio originale -
Da: Bárbara Vieira <[EMAIL PROTECTED]>
A: Tomcat Users List 
Inviato: Venerdì 30 novembre 2007, 23:26:39
Oggetto: RE: SSL Session expires every request

Hi carlo!!
Yes, it validates the certs. The certs are valid :) When the
 application is running all pages are showed( all pages are protected - under
 ssl), but when I test if HttpSession in the HttpServletRequest exists, it
 is null. 










___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Session expires every request

2007-11-30 Thread Carlo Politi
in my thesis i worked with SSL and mutual authentication between Apache HTTP 
Server and Tomcat. I didn't use Client-cert and i was able to access to 
HTTPServletRequest

- Messaggio originale -
Da: Bárbara Vieira <[EMAIL PROTECTED]>
A: Tomcat Users List 
Inviato: Venerdì 30 novembre 2007, 23:28:01
Oggetto: RE: SSL Session expires every request

I'm talking about HTTPSession. I think that I cannot accede to SSL
 session
from HTTPServletRequest.

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 19:16
To: Tomcat Users List
Subject: Re: SSL Session expires every request

what session are you talking about, the HTTP session or the actual SSL 
session?

Filip

Bárbara Vieira wrote:
>  
>
> Hi there!!
>
> I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
> authentication to authenticate users in my web application. But, the
session
> expires at every request, in all browsers : Opera, IE, Firefox and
> Netscape. This is not make any sense, and I don’t know solve this
 problem
L 
>
> If somebody can help, I really appreciate that.
>
>  
>
> Thanks for everything,
>
> Regards from Braga, Portugal
>
> Bárbara Vieira
>
>  
>
>
>   
>
 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date:
11/29/2007 8:32 PM
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

Re: SSL Session expires every request

2007-11-30 Thread Carlo Politi
m very strange behaviour but have you had this strange thing only with 
a particular application or with all?

- Messaggio originale -
Da: Bárbara Vieira <[EMAIL PROTECTED]>
A: Tomcat Users List 
Inviato: Venerdì 30 novembre 2007, 23:26:39
Oggetto: RE: SSL Session expires every request

Hi carlo!!
Yes, it validates the certs. The certs are valid :) When the
 application is running all pages are showed( all pages are protected - under
 ssl), but when I test if HttpSession in the HttpServletRequest exists, it
 is null. 










___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

RE: SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
I'm talking about HTTPSession. I think that I cannot accede to SSL session
from HTTPServletRequest.

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 19:16
To: Tomcat Users List
Subject: Re: SSL Session expires every request

what session are you talking about, the HTTP session or the actual SSL 
session?

Filip

Bárbara Vieira wrote:
>  
>
> Hi there!!
>
> I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
> authentication to authenticate users in my web application. But, the
session
> expires at every request, in all browsers : Opera, IE, Firefox and
> Netscape. This is not make any sense, and I don’t know solve this problem
L 
>
> If somebody can help, I really appreciate that.
>
>  
>
> Thanks for everything,
>
> Regards from Braga, Portugal
>
> Bárbara Vieira
>
>  
>
>
>   
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date:
11/29/2007 8:32 PM
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
Hi carlo!!
Yes, it validates the certs. The certs are valid :) When the application is 
running all pages are showed( all pages are protected - under ssl), but when I 
test if HttpSession in the HttpServletRequest exists, it is null. 

-Original Message-
From: Carlo Politi [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 18:47
To: Tomcat Users List
Subject: Re: SSL Session expires every request

but the certs are valids?

- Messaggio originale -
Da: Bárbara Vieira <[EMAIL PROTECTED]>
A: Tomcat Users List 
Inviato: Venerdì 30 novembre 2007, 18:22:32
Oggetto: SSL Session expires every request

 

Hi there!!

I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
authentication to authenticate users in my web application. But, the
 session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don’t know solve this
 problem L 

If somebody can help, I really appreciate that.

 

Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira

 








___ 
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive 
http://it.messenger.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help needed to Configure PHP 5.2.5 on Tomcat 6.0

2007-11-30 Thread Vimal Kumar

Hello,

  Can you please let me know how do I configure PHP 5.2.5 on Tomcat 6.0. Please 
let me know about it as soon as possible.

Vimal


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
Hi Martin!
 is 2.(2 minutes). I believe that's not the problem,
because CLIENT_CERT authentication already worked with session-timeout = 2.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 30 de Novembro de 2007 18:37
To: Tomcat Users List
Subject: Re: SSL Session expires every request

which value is session-timeout assgined to in web.xml?

M--
- Original Message -
From: "Bárbara Vieira" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" 
Sent: Friday, November 30, 2007 12:22 PM
Subject: SSL Session expires every request




Hi there!!

I have a problem with SSL Session in Tomcat. I'm using CLIENT_CERT
authentication to authenticate users in my web application. But, the session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don't know solve this problem L

If somebody can help, I really appreciate that.



Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help needed to Configure PHP 5.2.5 on Tomcat 6.0

2007-11-30 Thread Vimal Kumar

Hello,

  Can you please let me know how do I configure PHP 5.2.5 on Tomcat 6.0. Please 
let me know about it as soon as possible.

Vimal


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Infinite loop restarting web app

2007-11-30 Thread David Sánchez
Hi cuck,

I found the problem!

Another tomcat project had a copy of this .jar and this copy was in future.

Thanks for the info.

David,

2007/11/30, David Sánchez <[EMAIL PROTECTED]>:
>
> Hi,
>
> The file jep-2.3.0.jar is:
>Created: viernes, 30 de noviembre de 2007, 22:07:51
>Modify: viernes, 10 de agosto de 2007, 11:49:10
>Last Access: viernes, 30 de noviembre de 2007, 22:07:51
>
> (noviembre = november and agosto=august)
>
> and the problem continues:
>
> 30-nov-2007 22:11:00 org.apache.catalina.core.StandardContext reload
> INFO: Ha comenzado la recarga de este Contexto
> 30-nov-2007 22:11:11 org.apache.catalina.loader.WebappClassLoader modified
> INFO: Additional JARs have been added : 'jep-2.3.0.jar'
> 30-nov-2007 22:11:11 org.apache.catalina.core.StandardContext reload
> INFO: Ha comenzado la recarga de este Contexto
> 30-nov-2007 22:11:21 org.apache.catalina.loader.WebappClassLoader modified
> INFO: Additional JARs have been added : 'jep-2.3.0.jar'
> 30-nov-2007 22:11:21 org.apache.catalina.core.StandardContext reload
> INFO: Ha comenzado la recarga de este Contexto
>
> The other jars in that directory have different dates..
>
> David,
>
>
> 2007/11/30, Caldarale, Charles R < [EMAIL PROTECTED]>:
> >
> > > From: David Sánchez [mailto: [EMAIL PROTECTED]
> > > Subject: Infinite loop restarting web app
> > >
> > > Any ideas what could have caused this?  I erased the jars and
> > > re-uploaded but the problem continues
> >
> > What's the timestamp on the jep-2.3.0.jar?  Is it in the future,
> > perhaps?
> >
> > - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you received
> > this in error, please contact the sender and delete the e-mail and its
> > attachments from all computers.
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Infinite loop restarting web app

2007-11-30 Thread David Sánchez
Hi,

The file jep-2.3.0.jar is:
   Created: viernes, 30 de noviembre de 2007, 22:07:51
   Modify: viernes, 10 de agosto de 2007, 11:49:10
   Last Access: viernes, 30 de noviembre de 2007, 22:07:51

(noviembre = november and agosto=august)

and the problem continues:

30-nov-2007 22:11:00 org.apache.catalina.core.StandardContext reload
INFO: Ha comenzado la recarga de este Contexto
30-nov-2007 22:11:11 org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'jep-2.3.0.jar'
30-nov-2007 22:11:11 org.apache.catalina.core.StandardContext reload
INFO: Ha comenzado la recarga de este Contexto
30-nov-2007 22:11:21 org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'jep-2.3.0.jar'
30-nov-2007 22:11:21 org.apache.catalina.core.StandardContext reload
INFO: Ha comenzado la recarga de este Contexto

The other jars in that directory have different dates..

David,


2007/11/30, Caldarale, Charles R <[EMAIL PROTECTED]>:
>
> > From: David Sánchez [mailto:[EMAIL PROTECTED]
> > Subject: Infinite loop restarting web app
> >
> > Any ideas what could have caused this?  I erased the jars and
> > re-uploaded but the problem continues
>
> What's the timestamp on the jep-2.3.0.jar?  Is it in the future, perhaps?
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Infinite loop restarting web app

2007-11-30 Thread Caldarale, Charles R
> From: David Sánchez [mailto:[EMAIL PROTECTED] 
> Subject: Infinite loop restarting web app
> 
> Any ideas what could have caused this?  I erased the jars and
> re-uploaded but the problem continues

What's the timestamp on the jep-2.3.0.jar?  Is it in the future, perhaps?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Infinite loop restarting web app

2007-11-30 Thread David Sánchez
I made a change to a jar file for a web app and uploaded it using my
normal process.  Immediately after refreshing the jar on the server,
Tomcat went into an infinite loop restarting the app (See snippit from
stdout log below).


Any ideas what could have caused this?  I erased the jars and
re-uploaded but the problem continues

Is there any way to specify that tomcat should simply give up if an
app doesn't start after 'n' tries within a couple of minutes?


I'm on Tomcat 6.0.13

30-nov-2007 21:23:23 org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'jep-2.3.0.jar'
30-nov-2007 21:23:23 org.apache.catalina.core.StandardContext
 reload
INFO: Reloading this Context has started
30-nov-2007 21:23:33 org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'jep-2.3.0.jar'

30-nov-2007 21:23:33 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
30-nov-2007 21:23:43 org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : '
jep-2.3.0.jar'
30-nov-2007 21:23:43 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
 ...

Thanks,


David Sánchez


Re: [Tomcat 6] jsp on the fly

2007-11-30 Thread Filip Hanik - Dev Lists

yes, this works out of the box, without any changes to any config files

Filip

Manca Davide wrote:

Hello,

 


I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
webapp. I want to Tomcat recompile them into .class files without
restarting.

 


I already tried these:

 


In context.xml

 






 




WEB-INF/web.xml





 








 


In server.xml:

 




 


 
docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"


 
workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"


 unpackWARs="true" autoDeploy="true"
deployOnStartup="false" processTlds="true"

 xmlValidation="false" xmlNamespaceAware="false"

 debug="0" reloadable="true" privileged="true"
antiResourceLocking="false">

 WEB-INF/web.xml

 jsp/index.jsp

 

 




 

 




 


Thanks a lot for your help.

 


Ciao.

Dave.


  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 8:32 PM
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Session expires every request

2007-11-30 Thread Filip Hanik - Dev Lists
what session are you talking about, the HTTP session or the actual SSL 
session?


Filip

Bárbara Vieira wrote:
 


Hi there!!

I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
authentication to authenticate users in my web application. But, the session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don’t know solve this problem L 


If somebody can help, I really appreciate that.

 


Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira

 



  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 8:32 PM
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Session expires every request

2007-11-30 Thread Carlo Politi
but the certs are valids?

- Messaggio originale -
Da: Bárbara Vieira <[EMAIL PROTECTED]>
A: Tomcat Users List 
Inviato: Venerdì 30 novembre 2007, 18:22:32
Oggetto: SSL Session expires every request

 

Hi there!!

I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
authentication to authenticate users in my web application. But, the
 session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don’t know solve this
 problem L 

If somebody can help, I really appreciate that.

 

Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira

 








___ 
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive 
http://it.messenger.yahoo.com

Re: SSL Session expires every request

2007-11-30 Thread Martin Gainty
which value is session-timeout assgined to in web.xml?

M--
- Original Message -
From: "Bárbara Vieira" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" 
Sent: Friday, November 30, 2007 12:22 PM
Subject: SSL Session expires every request




Hi there!!

I have a problem with SSL Session in Tomcat. I'm using CLIENT_CERT
authentication to authenticate users in my web application. But, the session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don't know solve this problem L

If somebody can help, I really appreciate that.



Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL Session expires every request

2007-11-30 Thread Bárbara Vieira
 

Hi there!!

I have a problem with SSL Session in Tomcat. I’m using CLIENT_CERT
authentication to authenticate users in my web application. But, the session
expires at every request, in all browsers : Opera, IE, Firefox and
Netscape. This is not make any sense, and I don’t know solve this problem L 

If somebody can help, I really appreciate that.

 

Thanks for everything,

Regards from Braga, Portugal

Bárbara Vieira

 



Re: Domino DSAPI-Tomcat

2007-11-30 Thread Rainer Jung

Martin Luna wrote:

Hi, My name is Martin, I'm from Argentina and I'm a IBM Lotus Domino
developer. I'm trying to use Tomcat as my JSP server. I've seen that
there used to be a dsapi_redirector.dll for Tomcat-Domino
integration, but I can't find it and I'm not sure is still working.

Can you help me with this? I'm using Domino 7.

Thanks in advance!


Hi Martin,

domino support was ended more than two years ago. Here's the revision 
control message:


r438905 | mturk | 2006-08-31 15:10:22 +0200 (Thu, 31 Aug 2006) | 5 lines

Remove domino connector from the trunk.
Since it does not compile from version 1.2.6
it useless to have it in the trunk.
Users interested in this connector can use
archived tags or branches.


I'm afraid, but there's no easy way for getting back domino support. 
mod_jk is now at version 1.2.25, and domino support didn't work from at 
least 1.2.6. There simply weren't enough people interested in it.


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re^2: Comet servlet synchronization and flush problems

2007-11-30 Thread Filip Hanik - Dev Lists

ffd wrote:

I found the origin of the problem in my case. The problem was neither the
synchronization nor the  connection gone. It was that the asynchronous
writing started too early, before the connection was completely established,
speaking losely... 
  
just call response.flushBuffer() on the BEGIN event, should get 
everything squared away


Filip

When I made sure that the writing starts *after* all the headers were set,
the NPE was gone. I didn't see the same mistake in Leonardo's code, but
maybe it's a hint.

BTW, I very much like the Tomcat approach to Comet. In its striking yet
powerful simplicity it's much simpler and clearer to handle than Grizzly (we
tried Grizzly before choosing to go with Tomcat) or Jetty. I hope that any
standardization efforts will go along Tomcat's lines.

Frank Felix
1000MIKES.COM



Filip Hanik - Dev Lists wrote:
  
a NPE probably has nothing to do with synchronization, more like you are 
trying to write back on an invalid connection (that probably timed out)


Filip

Leonardo Fraga wrote:


Hello,

I'm developing a java web application for finances quotes' real-time 
stream, for hundreds of concurrent users. The solution involves a long 
http request serving javascript snippets that will be executed by 
broser when received, changing the data shown to the user.


To do this, I have a Comet servlet, ServletStream, that receives the 
request, and registers a new instance of 
JavascriptNotificationListener, a wrapper to the response.writer, to a 
running worker thread, MarketNotifier, that, when a market event 
occurs, fires the JavascriptNotificationListener that writes the 
corresponding event javascript snippet to the response.writer. There 
is the Flusher, a running thread that awakes every half second and do 
a flush on every registered response.writer through the same 
JavascriptNotificationListener. And there is a servlet, StreamAction, 
that submits commands to the MarketNotifier, to change the market 
event subscriptions. Some of these commands can also fire market 
events on the JavascriptNotificationListener, and are run while the 
ServletStream is sending data.


Every IO on the writer (print, println, flush, checkError) is 
synchronized on a mutex Object holded by each instance of 
JavascriptNotificationListener, that is, I have a mutex for each 
response.writer.


When running this solution, I often use to get the following error:
java.lang.NullPointerException
   at 
org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:607) 

   at 
org.apache.coyote.http11.InternalNioOutputBuffer.commit(InternalNioOutputBuffer.java:600) 

   at 
org.apache.coyote.http11.Http11NioProcessor.action(Http11NioProcessor.java:1025) 


   at org.apache.coyote.Response.action(Response.java:183)
   at org.apache.coyote.Response.sendHeaders(Response.java:379)
   at 
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
   at 
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
   at 
org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
   at 
br.com.cedro.stream.JavascriptNotificationListener.syn(JavascriptNotificationListener.java:106) 


   at br.com.cedro.stream.Flusher.run(Flusher.java:42)

This error occurs even on low usage scenarios (five concurrent users) 
almost every hour. After the first occurrence happens, every other IO 
on all response.writers catches the same exception.


I'm using apache-tomcat-6.0.14, with default Nio Http Connector 
configuration parameters on server.xml.


I think this problem has to do with synchronization for IO operations. 
Am I right? Or must I simply check some status before doing IO?


The Chat Comet tomcat example does synchronization on a single mutex 
for all response.writers. Must I do the same? Why? Or can I use 
higher-granularity mutexes like I did? If so, what is the right object 
to synchronize? Response? Response.writer?


Has anyone developed Comet servlets and faced the same problem?

Here follow the relevant pieces of my source codes (I put some 
comments about the problem to increase readability):


public class JavascriptNotificationListener ... {
   // This is the only class that manipulates response.writer
   ...
   private PrintWriter out; // set as response.writer on constructor
   private Object writeMonitor = new Object(); // the mutex

   public JavascriptNotificationListener(PrintWriter responseWriter){
   this.out = responseWriter;
   synchronized (writeMonitor) { // Althought at this time we have 
just one thread here

   out.print("");
   }
   }

   ...
   public void flush(){
   // Called by the Flusher thread every 500 msec
   synchronized (writeMonitor) {
   out.print("\n

[Tomcat 6] jsp on the fly

2007-11-30 Thread Manca Davide
Hello,

 

I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
webapp. I want to Tomcat recompile them into .class files without
restarting.

 

I already tried these:

 

In context.xml

 





 



WEB-INF/web.xml





 







 

In server.xml:

 



 



 WEB-INF/web.xml

 jsp/index.jsp

 

 



 

 



 

Thanks a lot for your help.

 

Ciao.

Dave.



can't undeploy webapp with manager

2007-11-30 Thread Tom Robinson
Hi,

I'm having trouble with the manager webapp not removing the unpacked WAR after
an undeploy. The result is that tomcat just redploys the webapp immediately! Do
I have an incorrectly configured manager? Is the webapp itself to blame? I've
pasted my context (ROOT.xml) and server.xml below with a few more comments on
various  settings I thought might work. Any help is appreciated.

Thanks,

TOm


Platform CentOS 5

http://kennetproject/manager/serverinfo
OK - Server info
Tomcat Version: Apache Tomcat/5.5.25
OS Name: Linux
OS Version: 2.6.18-8.1.15.el5xen
OS Architecture: i386
JVM Version: 1.6.0_03-b05
JVM Vendor: Sun Microsystems Inc.

http://kennetproject/manager/list
OK - Listed applications for virtual host kennetproject.int.intelligentspace.com
/:stopped:0:/usr/share/tomcat5/temp/1-ROOT
/manager:running:0:/var/lib/tomcat5/server/webapps/manager


context is ROOT.xml







factory
org.apache.commons.dbcp.BasicDataSourceFactory


username
project


password
project


driverClassName
com.mysql.jdbc.Driver


url

jdbc:mysql://localhost:3306/projects?zeroDateTimeBehavior=convertToNull


maxWait
3000


maxIdle
5


maxActive
10








mail.smtp.host
localhost







server.xml
  type="org.apache.catalina.UserDatabase"
   description="User database that can be updated and saved"
   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  pathname="conf/tomcat-users.xml" />
  

  






  
  


  

  
  













kennetproject






  
  



I've also tried fiddling with the :






kennetproject




But nothing works!

-- 
Thomas Robinson -

   Infrastructure, Integration, Support, Development and Training
   Linux, Oracle, Windows, Networking

   Daedalus Compass Ltd   Mobile: +44 (0)7879 428 968
   132 Clifden Court, Clifden Road  Work: +44 (0)20 8891 6262
   Twickenham, Middlesex, TW1 4LRFax: +44 (0)20 8891 6363
   United KingdomGPG Key: 8A4CB7A7

   CONFIDENTIALITY: Copyright (C). This message with any appended or
   attached material is intended for addressees only and may not be
   copied or forwarded to or used by other parties without permission.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Domino DSAPI-Tomcat

2007-11-30 Thread Martin Gainty
Lotus has published a comprehensive article located on implementing DSAPI in
Tomcat at
http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/f5b53b588d8e36cf8525
73a3004b4d46?OpenDocument

As Microsoft dlls are proprietary to their hosting environment if the
suggestions from the whitepaper will not work for your particular
environment ask IBM for the code so you can make it work for your
environment

Buena Suerte desde EEUU
Martin--
- Original Message -
From: "Martin Luna" <[EMAIL PROTECTED]>
To: 
Sent: Friday, November 30, 2007 8:40 AM
Subject: Domino DSAPI-Tomcat


> Hi,
> My name is Martin, I'm from Argentina and I'm a IBM Lotus Domino
developer. I'm trying to use Tomcat as my JSP server. I've seen that there
used to be a dsapi_redirector.dll for Tomcat-Domino integration, but I can't
find it and I'm not sure is still working.
>
> Can you help me with this? I'm using Domino 7.
>
> Thanks in advance!
>
> --
> Get a free email address with REAL anti-spam protection.
> http://www.bluebottle.com/tag/1
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Tomcat 5.5.17] Strange Problem With Batabase Connection Pool

2007-11-30 Thread albert quinn
  Hi, (n+1)-th times !! :

  I've new information about the Database Connection Pool's mistery.
After the last setup, adding testWhileIdle="true" and
timeBetweenEvictionRunsMillis="240" it worked nice after about 3
hours of inactivity, but I don't undestand why It seems to work now
and it didn't work before. Any ideas about what could be happening
here?.

  Thanks in advance.

Albert

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



comet tomcat 6.0.14

2007-11-30 Thread gabi munteanu
i am giving my first shot at a simple echo comet servlet.
i have a simple webpage with a textarea in it, and a button.
when clicking on the button, i do an ajax request to a comet servlet and write 
its response on the onsuccess ajax event in the textarea.

on the server side i have a comet servlet and a thread.
the thread has access to the list of the HttpServletResponses, and iterates 
over it, and writes the message "hello", every 4 seconds.

all is ok, i see that i enter the begin event and the read event code.

the problem:
the write part gives no error, but the message doesn't reach the browser.
i do call flush on the servletoutputstream, but still nothing.

what i want is to call event.close() after i do 
response.getoutputstream().write("hello");
and then initiate in the javascript code another request. this way i ensure the 
message gets to the client.

but how can i get a reference to the event that corresponds to the 
httpservletresponse that i have ?
there is no httpservletresponse.getCometEvent or something ...

i also played with buffering, suspecting this is the responsible. but actually 
i don't really want to get the message to the client without closing the 
processing of that request.

thank you in advance
gabi



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: Thread-safety servlet testing

2007-11-30 Thread Wilhelmsen Tor Iver
> How to test servlet on thread-safety?

Use jMeter with a multitude of different "users" and test the returned
data that you do not get the data for another user.

http://jakarta.apache.org/jmeter/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Domino DSAPI-Tomcat

2007-11-30 Thread Martin Luna
Hi,
My name is Martin, I'm from Argentina and I'm a IBM Lotus Domino developer. I'm 
trying to use Tomcat as my JSP server. I've seen that there used to be a 
dsapi_redirector.dll for Tomcat-Domino integration, but I can't find it and I'm 
not sure is still working.

Can you help me with this? I'm using Domino 7.

Thanks in advance!

--
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.25 DHCP SQLException: Already closed.

2007-11-30 Thread David Smith
I'm guessing somewhere in your code, you're calling close() on a 
connection and that's bringing up this exception.


It would appear org.apache.commons.dbcp.PoolableConnection is going 
against the Sun javadocs for at least java 5 which states that calling 
close() on an already closed connection is a no-op.  Doesn't look like 
an exception should be thrown here.


Probably your best bet is to ask the DBCP folks since tomcat uses there 
code directly with only a refactoring of the package name.


--David

Eickvonder Bjoern wrote:


Hi,

I just discovered a minor difference in the DHCP implementation used in
Tomcat 5.5.25 vs. 5.5.23 and I'd like to know if it is a bug or a
feature.

I use conncetion pooling with minIdle>0 (but no validationQuery), so a
few connection will remain open all day long. If the database now closes
the connection itself (either due to timeout or server restart), this
was no problem in Tomcat 5.5.23. The DHCP implementation kicked out the
already closed connection out of the pool and established a new one that
is returned.
Now in Tomcat 5.5.25 the connection seems to be kicked out as well in
the end but an exception is propageted to the caller.

Caused by: java.sql.SQLException: Already closed.
at
org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(PoolableConnection.
java:84)
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
.close(PoolingDataSource.java:181)
at
org.jpox.store.rdbms.adapter.DatabaseAdapter.getConnection(DatabaseAdapt
er.java:928)
at
org.jpox.store.rdbms.RDBMSNonmanagedTransaction.begin(RDBMSNonmanagedTra
nsaction.java:324)
... 57 more

Is this a bug?

Bjoern Eickvonder

Kennen Sie schon die inside Schulungsma?nahme zur VVG-Reform? Erfahren Sie mehr dazu unter www.vvg-konzept.de. 


Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 
29.-31.01.08.


Diese Mitteilung ist vertraulich und ausschlie?lich an den entsprechenden 
Empfanger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, 
durfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise 
verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und 
loschen Sie die Mitteilung sowie alle zugehorigen Anhange.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.25 DHCP SQLException: Already closed.

2007-11-30 Thread Eickvonder Bjoern
Hi,

I just discovered a minor difference in the DHCP implementation used in
Tomcat 5.5.25 vs. 5.5.23 and I'd like to know if it is a bug or a
feature.

I use conncetion pooling with minIdle>0 (but no validationQuery), so a
few connection will remain open all day long. If the database now closes
the connection itself (either due to timeout or server restart), this
was no problem in Tomcat 5.5.23. The DHCP implementation kicked out the
already closed connection out of the pool and established a new one that
is returned.
Now in Tomcat 5.5.25 the connection seems to be kicked out as well in
the end but an exception is propageted to the caller.

Caused by: java.sql.SQLException: Already closed.
at
org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(PoolableConnection.
java:84)
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
.close(PoolingDataSource.java:181)
at
org.jpox.store.rdbms.adapter.DatabaseAdapter.getConnection(DatabaseAdapt
er.java:928)
at
org.jpox.store.rdbms.RDBMSNonmanagedTransaction.begin(RDBMSNonmanagedTra
nsaction.java:324)
... 57 more

Is this a bug?

Bjoern Eickvonder

Kennen Sie schon die inside Schulungsma?nahme zur VVG-Reform? Erfahren Sie mehr 
dazu unter www.vvg-konzept.de. 

Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 
29.-31.01.08.


Diese Mitteilung ist vertraulich und ausschlie?lich an den entsprechenden 
Empfanger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, 
durfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise 
verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und 
loschen Sie die Mitteilung sowie alle zugehorigen Anhange.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Tomcat 5.5.17] Strange Problem With Batabase Connection Pool

2007-11-30 Thread albert quinn
  Hi for the n-th time ! :

  I've set up testWhileIdle="true" and
timeBetweenEvictionRunsMillis="240". I'll try again in about an
hour with this new setup and I'll come back if the new setup give me
any new information.



2007/11/30, albert quinn <[EMAIL PROTECTED]>:
>  Hi again :
>
>  I've read the URLs about DBCP configuration. Then, I've set up DBCP
> for my connection pool. I've added a validation query and I've set
> testOnBorrow="true". I've tried again and I've achieved the same
> strange behaviour : after about and hour of inactivity, it waits
> forever in the 3th line. No errors reported in the Tomcat logs.
>
>  Any idea of what's happening or what can I do to know what's
> happening?. Thanks in advance.
>
> Albert
>
>
>
> 2007/11/29, albert quinn <[EMAIL PROTECTED]>:
> >  Hi once more time :
> >
> >  Thanks again for your help. Sorry, I didn't know the connections
> > aren't really closed. I've to leave now, but I'll read the URLs you
> > gave me tomorrow and then, I'll try to set up DHCP properly.
> >
> >  Thanks a lot. I'll come back if I get any kind of new information
> > about the mistery.
> >
> >
> > Albert
> >
> >
> >
> >
> >
> >
> > 2007/11/29, Mark Thomas <[EMAIL PROTECTED]>:
> > > albert quinn wrote:
> > > >   Hi again, Mark :
> > > >
> > > >   I've benn thinking about the problem and I don't really think it
> > > > could be a problem with database connection timeout due to inactivity
> > > > because when the web service is called, the web service gets a
> > > > connection from the pool, it uses the connection, and then it closes
> > > > the connection before returning the web service results. So, it
> > > > mustn't be a problem with database connection timeout due to
> > > > inactivity, don't you think?
> > >
> > > No. I disagree with your analysis. The point of DBCP is that the
> > > connections aren't closed. When you call close() in your code that just
> > > returns the connection to the pool. The actual database connection remains
> > > open.
> > >
> > > The URL you want is:
> > > http://commons.apache.org/dbcp/configuration.html
> > >
> > > The starting point for DBCP is
> > > http://commons.apache.org/dbcp/
> > >
> > > Mark
> > >
> > >
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Thread-safety servlet testing

2007-11-30 Thread Leon Rosenberg
start with firing mit many threads (clients) on it.

On Nov 30, 2007 5:30 AM, Самойлов Андрей Иванович <[EMAIL PROTECTED]> wrote:
>
> How to test servlet on thread-safety?
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [Tomcat 5.5.17] Strange Problem With Batabase Connection Pool

2007-11-30 Thread albert quinn
  Hi again :

  I've read the URLs about DBCP configuration. Then, I've set up DBCP
for my connection pool. I've added a validation query and I've set
testOnBorrow="true". I've tried again and I've achieved the same
strange behaviour : after about and hour of inactivity, it waits
forever in the 3th line. No errors reported in the Tomcat logs.

  Any idea of what's happening or what can I do to know what's
happening?. Thanks in advance.

Albert



2007/11/29, albert quinn <[EMAIL PROTECTED]>:
>  Hi once more time :
>
>  Thanks again for your help. Sorry, I didn't know the connections
> aren't really closed. I've to leave now, but I'll read the URLs you
> gave me tomorrow and then, I'll try to set up DHCP properly.
>
>  Thanks a lot. I'll come back if I get any kind of new information
> about the mistery.
>
>
> Albert
>
>
>
>
>
>
> 2007/11/29, Mark Thomas <[EMAIL PROTECTED]>:
> > albert quinn wrote:
> > >   Hi again, Mark :
> > >
> > >   I've benn thinking about the problem and I don't really think it
> > > could be a problem with database connection timeout due to inactivity
> > > because when the web service is called, the web service gets a
> > > connection from the pool, it uses the connection, and then it closes
> > > the connection before returning the web service results. So, it
> > > mustn't be a problem with database connection timeout due to
> > > inactivity, don't you think?
> >
> > No. I disagree with your analysis. The point of DBCP is that the
> > connections aren't closed. When you call close() in your code that just
> > returns the connection to the pool. The actual database connection remains
> > open.
> >
> > The URL you want is:
> > http://commons.apache.org/dbcp/configuration.html
> >
> > The starting point for DBCP is
> > http://commons.apache.org/dbcp/
> >
> > Mark
> >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0 with Apache 2.2 front-end

2007-11-30 Thread David Cassidy
Tony,

mod_jk - which uses the ajp13 protocol is not the same as
the http11aprprotocol which uses http/1.1 as its protocol.

Filip - is there a comparison between apache talking to http to tomcat
vs apache with ajp to tomcat ?

Ta

D


On Thu, 2007-11-29 at 13:37 -0800, Tony Anecito wrote:
> Thanks Filip I am interested in that information also.
> 
> I will try to get it configured and running and give
> feedback on performance since I already use mod_jk or
> the Http11AprProtocol as I think you call it.
> 
> Regards,
> -Tony
> 
> --- Filip Hanik - Dev Lists <[EMAIL PROTECTED]>
> wrote:
> 
> > the speed of the connectors are (in order)
> > 
> > Http11Protocol - Java BIO connector, no poller,
> > blocking read/write
> > Http11AprProtocol - APR connector, poller, blocking
> > read/write
> > Http11NioProtocol - Java NIO connector, poller,
> > simulated blocking 
> > read/write
> > 
> > the reason the NIO is slower, is cause it has to
> > simulate "blocking" 
> > reads and writes through a non blocking API.The
> > reason the BIO is the 
> > fastest, is cause there is no context switching
> > during block simulation, 
> > or adding/removing the connection from a poller.
> > 
> > When it comes to SSL, the APR connector is much
> > faster than both the 
> > Java connectors.
> > 
> > Filip
> > 
> > David Cassidy wrote:
> > > Has anyone got a comparison of the NIO one vs
> > standard java connectors ?
> > > both with and without the native libs ?
> > >
> > > Ta
> > >
> > >
> > > On Thu, 2007-11-29 at 08:38 -0600, Brian Millett
> > wrote:
> > >   
> > >> Filip Hanik - Dev Lists escribío:
> > >> 
> > >>> using mod_proxy_http, you want to enable
> > >>>
> > >>> ProxyPreserveHost On
> > >>>
> > >>>
> > >>> Filip
> > >>> loknor wrote:
> > >>>   
> >  Filip Hanik - Dev Lists wrote:
> >   
> >  
> > > three options
> > >
> > > mod_proxy_http
> > > mod_jk
> > > mod_proxy_ajp
> > >
> > > Filip
> > >
> > >
> > > 
> > >   
> >  Yep just found the other option, and a site
> > that got me up to speed very
> >  quickly.  I can now communicate between Apache
> > and Tomcat. 
> > 
> >
> http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20
> > 
> > 
> >  Thanks,
> > 
> >  Brent
> >    
> >  
> > >> I'd also recommend that you compile the apr
> > native libs for tomcat
> > >> (apache-tomcat-6.0.14/bin/tomcat-native.tar.gz)
> > and enable it when you start
> > >> tomcat by adding
> > "-Djava.library.path=/usr/local/apr/lib" (I
> > installed the lib
> > >> in /usr/local/apr/lib).
> > >>
> > >> What gives you is the apr interface for handling
> > the http connects.
> > >>
> > >> from the catalina.out:
> > >>
> > >> Nov 26, 2007 9:31:10 AM
> > org.apache.coyote.http11.Http11AprProtocol init
> > >> INFO: Initializing Coyote HTTP/1.1 on http-8080
> > >>
> > >> This handler scales and is quicker than the java
> > handler.  JBoss calls it
> > >> JBossWeb.  See
> > http://labs.jboss.com/jbossweb/index.html for a nice
> > graph of the
> > >> performance differences between the native apr &
> > java handlers.
> > >>
> > >>
> > >> 
> > >
> > >
> > >
> >
> -
> > > To start a new topic, e-mail:
> > users@tomcat.apache.org
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >   
> > 
> > 
> >
> -
> > To start a new topic, e-mail:
> > users@tomcat.apache.org
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> 
> Be a better sports nut!  Let your teams follow you 
> with Yahoo Mobile. Try it now.  
> http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]