Session replication problem

2007-11-29 Thread Giancarlo Frison
Hi all,

I have a cluster configured with 2 tomcat instaces in the same host and
apache + mod_jk as load balancer with stiky session.
The instances' server.xml (show below) diff only for
/Cluster/Channel/Receiver[port] attribute, the first one set to 4000 and
the second one set to 4001.
The 2 instances seem aware each other at the startup as report by the
log of clone1 (listening on port 4000):

Nov 29, 2007 10:57:43 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Nov 29, 2007 10:57:43 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4364 ms
Nov 29, 2007 10:58:03 AM org.apache.catalina.tribes.io.BufferPool
getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.catalina.tribes.io.BufferPool15Impl
Nov 29, 2007 10:58:04 AM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=1009,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={}, domain={}, ]


To test the session replication I've created a session on clone2
afterwards I shutted down such instance, as reported by clone1 catalina.out:

Nov 29, 2007 11:00:47 AM
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
INFO: Verification complete. Member
disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=164497,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)},
domain={}, ]]
Nov 29, 2007 11:00:47 AM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberDisappeared
INFO: Received member
disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=164497,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)}, domain={}, ]

With clone2 failover the mod_jk dispatch the request to the clone1. I've
expected to find in the clone1 the session, instead request.getSession()
== false.

The cluster configuration follow stiky session rule, the load balancer
works fine, everything ok except for session replication.
Any clue on these cases?

Thanks a lot!

-- worker.properties:

worker.list=lbworker
worker.lbworker.type=lb
worker.lbworker.balance_workers=c1,c2
worker.c1.type=ajp13
worker.c1.host=localhost
worker.c1.port=8009
worker.c2.type=ajp13
worker.c2.host=localhost
worker.c2.port=8010

-- server.xml

Cluster channelSendOptions=8   
className=org.apache.catalina.ha.tcp.SimpleTcpCluster
Manager
className=org.apache.catalina.ha.session.DeltaManager  
expireSessionsOnShutdown=false   
notifyListenersOnReplication=true /
Channel   
className=org.apache.catalina.tribes.group.GroupChannel
Membership
className=org.apache.catalina.tribes.membership.McastService   
address=228.0.0.4port=45564 frequency=500 
dropTime=3000/
Receiver address=localhost autoBind=100  
className=org.apache.catalina.tribes.transport.nio.NioReceiver
maxThreads=6 port=4000 selectorTimeout=5000 /
Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport 
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender /
/Sender
Interceptor   
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
/
Interceptor   
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor
/
Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
/Channel
Valve
className=org.apache.catalina.ha.tcp.ReplicationValve filter= /
Valve
className=org.apache.catalina.ha.session.JvmRouteBinderValve /
ClusterListener   
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener
/
ClusterListener   
className=org.apache.catalina.ha.session.ClusterSessionListener /
/Cluster



Giancarlo Frison



-
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: multithreaded with taglibs

2007-11-29 Thread ben short
Do you really need to use tomcat to do this? Maybe you should take a
step back and rethink what your trying to achieve.

On Nov 29, 2007 10:14 AM, Yair Ben-Meir [EMAIL PROTECTED] wrote:
 Let me try another scenario: let say that the generated text for the out
 is not one iamge, but some number between 0 and 5. the correct number of
 images will be clear only after the execution of the thread. In this case, I
 do want to continue with the JSP and write to the out later on.
 The only think I thought of was to write something like {1} (instead of
 tag) and when the page is over it will replace {1} with the right code
 from the thread. This will require me to get the generated page from the JSP
 and manipulate it after Jasper has finished with it.
 Any better way to do it?

 -Original Message-
 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 28, 2007 7:04 PM
 To: Tomcat Users List
 Subject: Re: multithreaded with taglibs


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Yair,

 Yair Ben-Meir wrote:
  This solution is good but we must write to the out of the jsp before the
  thread is running (we bypass this because the thread will write to a
  pre-decided file name). is there another way to do it, without writing to
  the out?

 I'm not sure I understand what you mean. Are you asking how to continue
 evaluating the JSP while the image is being generated? Easy. Create a
 class like this:

 public class ParallelImageGenerator
 {
 public ParallelImageGenerator() { ... }

 public String getGeneratedFilename() { ... }

 public void start() { ... }
 public void wait() { ... }
 }

 Then, from your tagStart method in your custom tag library, do something
 like this:

 pig = new ParallelImageGenerator();
 pig.start();

 jspOut.print(img src=\ + pig.getGeneratedFilename() + \ /);

 // Register the 'pig' object somewhere so you can go back and wait
 // on all of the image generators.

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFHTZ9n9CaO5/Lv0PARAkxKAKCP/PK410pUbBTrWxS9G5fIhE6aYgCfb6dJ
 0RnxBh6+CfToeccD3lgS/6M=
 =Iksk
 -END PGP SIGNATURE-

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



apache fop remains active in servlet environment

2007-11-29 Thread Roel

I use apache fop in a servlet to display some xml as pdf. When I have used
that functionality in my webapp my (Tomcat 6.0) web container doesn't want
to undeploy. It deletes everything in the webapps/*context* directory except
WEB-INF/lib/batik.jar and WEB-INF/lib/fop.jar. When trying to delete the
files manually windows tells me they are in use.

I use this code to render the xml into pdf

ByteArrayOutputStream out = new ByteArrayOutputStream();
FopFactory ff=FopFactory.newInstance();
TransformerFactory tf=TransformerFactory.newInstance();

StreamSource xslfo=new
StreamSource(this.getServletContext().getRealPath(lid-pdf.xsl));
try {
Transformer tt=tf.newTransformer(xslfo);
Fop fp=ff.newFop(MimeConstants.MIME_PDF, out);

SAXResult res=new SAXResult(fp.getDefaultHandler());
Source src= new DOMSource(doc);
DOMResult dd=new DOMResult();
assert(src!=null);
assert(res!=null);
tt.transform(src, dd);
Transformer t2=tf.newTransformer();
   // System.out.println(res.getNode().getFirstChild());
t2.transform(new DOMSource(dd.getNode()), res );

//Prepare response
response.setContentType(application/pdf);
assert(out.size()0);
response.setContentLength(out.size());
  //  System.out.println(Version.getVersion());
//Send content to Browser
response.getOutputStream().write(out.toByteArray());
response.getOutputStream().flush();
out.close();

} catch (FOPException e) {
// TODO Auto-generated catch block
throw new ServletException(e);
} catch (TransformerConfigurationException e1) {
// TODO Auto-generated catch block
throw new ServletException(e1);
} catch (TransformerException e) {
// TODO Auto-generated catch block
throw new ServletException(e);
}

System.gc();


Anyone has any ideas?

Roel
-- 
View this message in context: 
http://www.nabble.com/apache-fop-remains-active-in-servlet-environment-tf4896511.html#a14023743
Sent from the Tomcat - User mailing list archive at Nabble.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]



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

2007-11-29 Thread Gregor Schneider
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]



Question about multiple SSL at same machine

2007-11-29 Thread Alex Florentino
Hi all,

I have windows colocation and have one site that have ssl and it works fine,
now I have another site and need set up another ssl, I think that change ssl
port for second site is good solutions but my client don't like this idea,
then I need set up another ip.. but I not sure how I make it...

because, my windows server be behind of router and then really my windows
server have only internal ip.

suggestion about how I should approach this problem ?

thanks a lot.

Alex


Re: apache fop remains active in servlet environment

2007-11-29 Thread mgainty
FOP 0.94 has working servlet code
which can be called specifying the xml and xsl
http://servername/fop/servlet/FopServlet?xml=data.xmlxslt=format.xsl

OR just using the fo param
http://servername/fop/servlet/FopServlet?fo=readme.fo

http://archive.apache.org/dist/xmlgraphics/fop/binaries/
M--
- Original Message -
Wrom: YRWTQTIPWIGYOKSTTZRCLBDXRQBGJS
To: users@tomcat.apache.org
Sent: Thursday, November 29, 2007 6:25 AM
Subject: apache fop remains active in servlet environment



 I use apache fop in a servlet to display some xml as pdf. When I have used
 that functionality in my webapp my (Tomcat 6.0) web container doesn't want
 to undeploy. It deletes everything in the webapps/*context* directory
except
 WEB-INF/lib/batik.jar and WEB-INF/lib/fop.jar. When trying to delete the
 files manually windows tells me they are in use.

 I use this code to render the xml into pdf

 ByteArrayOutputStream out = new ByteArrayOutputStream();
 FopFactory ff=FopFactory.newInstance();
 TransformerFactory tf=TransformerFactory.newInstance();

 StreamSource xslfo=new
 StreamSource(this.getServletContext().getRealPath(lid-pdf.xsl));
 try {
 Transformer tt=tf.newTransformer(xslfo);
 Fop fp=ff.newFop(MimeConstants.MIME_PDF, out);

 SAXResult res=new SAXResult(fp.getDefaultHandler());
 Source src= new DOMSource(doc);
 DOMResult dd=new DOMResult();
 assert(src!=null);
 assert(res!=null);
 tt.transform(src, dd);
 Transformer t2=tf.newTransformer();
// System.out.println(res.getNode().getFirstChild());
 t2.transform(new DOMSource(dd.getNode()), res );

 //Prepare response
 response.setContentType(application/pdf);
 assert(out.size()0);
 response.setContentLength(out.size());
   //  System.out.println(Version.getVersion());
 //Send content to Browser
 response.getOutputStream().write(out.toByteArray());
 response.getOutputStream().flush();
 out.close();

 } catch (FOPException e) {
 // TODO Auto-generated catch block
 throw new ServletException(e);
 } catch (TransformerConfigurationException e1) {
 // TODO Auto-generated catch block
 throw new ServletException(e1);
 } catch (TransformerException e) {
 // TODO Auto-generated catch block
 throw new ServletException(e);
 }

 System.gc();


 Anyone has any ideas?

 Roel
 --
 View this message in context:
http://www.nabble.com/apache-fop-remains-active-in-servlet-environment-tf489
6511.html#a14023743
 Sent from the Tomcat - User mailing list archive at Nabble.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: Tomcat 6.0 with Apache 2.2 front-end

2007-11-29 Thread Brian Millett
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.


-- 
Brian Millett - [ Ivanova, The Geometry of Shadows]
If it gets too bad I'll just gnaw it off at the ankle.


-
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-29 Thread David Cassidy
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]



Re: Tomcat's container architecture - Authenticator

2007-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bill,

Bill Barker wrote:
 Suggestions on how to improve the Authenticators that ship with TC are 
 always welcome on [EMAIL PROTECTED]  But help on 
 rolling-your-own-Authenticator 
 will likely get you pointed back to this list :).

The original question was something like why does the code for the
authenticator check for a principal twice?, which seems like a valid
question. Apparently, AuthenticatorBase checks for a Principal and,
finding none, calls the subclass's method. The subclass's method again
checks for a Principal. I see that as good protection against unexpected
changes from the superclass (i.e. in case it /does not/ check for a
Principal), but the OP wants to know why.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTum+9CaO5/Lv0PARAsOzAJ9F+/NhayvX12hqfqBwYwURpDxeRACguG3z
dZYpY4onr+pW7NBtxMfZa78=
=OLLx
-END PGP SIGNATURE-

-
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: multithreaded with taglibs

2007-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yair,

Yair Ben-Meir wrote:
 Let me try another scenario: let say that the generated text for the out
 is not one iamge, but some number between 0 and 5. the correct number of
 images will be clear only after the execution of the thread. In this case, I
 do want to continue with the JSP and write to the out later on.
 The only think I thought of was to write something like {1} (instead of
 tag) and when the page is over it will replace {1} with the right code
 from the thread. This will require me to get the generated page from the JSP
 and manipulate it after Jasper has finished with it.

This will require you to write a body tag (or whatever they're
called). I haven't written a tag library in 7 years. :(

Basically, you'll have to keep all the template content somewhere so you
can manipulate it /after/ the threads are done, but before the output is
written. Using a wrapper tag (like parallelimgimgimg/parallel)
will help here because you can collect all the jobs to be done (each img
is a job), run them all in parallel, wait for them all to finish, and
then generate all the relevant (real) content to the output stream.

Another option is to simply do all this work before you start generating
any output, which would be my preference. Have the request invoke a
servlet that does everything and then writes the output using JSP. Much
easier and cleaner, which is why it's been the recommended technique
since two days after JSP was invented.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTuq49CaO5/Lv0PARAtouAKCq4/Fl/+MEsXILwECGVMQ4QyqP1ACgjFTG
qSxP8arHfrjmAbj+CHEtns4=
=ohP6
-END PGP SIGNATURE-

-
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: OT - Tomcat and Stanford NLP POS Tagger

2007-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vasu,

[EMAIL PROTECTED] wrote:
 We are trying to implement servlet setup with Tomcat 5.0.28 and JDK
 1.5.x using POS (Parts of Speech) Tagger. We can not get it to work.

What is it? Java? Tomcat? Tagger?

Obviously, we can't give you Tagger support, but we should be able to
get you up and running with Tomcat.

What did you try? What happens? Does Tomcat even start up?

 Unfortunately, there are no error messages in the log files for us to
 debug.

Are there any messages at all?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTus09CaO5/Lv0PARAku0AJ400jN82YL0aqc7l/QAgyBknBaFlQCePouZ
8csv23sqGbyv/sthb3cQ1bg=
=HxiZ
-END PGP SIGNATURE-

-
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: Session replication problem

2007-11-29 Thread Filip Hanik - Dev Lists

you can turn debug on and see the messages being sent back and forth.
a previous user reported that sessions got expired during a normal 
shutdown, I yet have to investigate this


Filip

Giancarlo Frison wrote:

Hi all,

I have a cluster configured with 2 tomcat instaces in the same host and
apache + mod_jk as load balancer with stiky session.
The instances' server.xml (show below) diff only for
/Cluster/Channel/Receiver[port] attribute, the first one set to 4000 and
the second one set to 4001.
The 2 instances seem aware each other at the startup as report by the
log of clone1 (listening on port 4000):

Nov 29, 2007 10:57:43 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Nov 29, 2007 10:57:43 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4364 ms
Nov 29, 2007 10:58:03 AM org.apache.catalina.tribes.io.BufferPool
getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.catalina.tribes.io.BufferPool15Impl
Nov 29, 2007 10:58:04 AM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=1009,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={}, domain={}, ]


To test the session replication I've created a session on clone2
afterwards I shutted down such instance, as reported by clone1 catalina.out:

Nov 29, 2007 11:00:47 AM
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
INFO: Verification complete. Member
disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=164497,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)},
domain={}, ]]
Nov 29, 2007 11:00:47 AM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberDisappeared
INFO: Received member
disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost.localdomain:4001,localhost.localdomain,4001,
alive=164497,id={31 -16 121 -113 112 30 72 -34 -128 51 27 -12 115 7 -107
-22 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)}, domain={}, ]

With clone2 failover the mod_jk dispatch the request to the clone1. I've
expected to find in the clone1 the session, instead request.getSession()
== false.

The cluster configuration follow stiky session rule, the load balancer
works fine, everything ok except for session replication.
Any clue on these cases?

Thanks a lot!

-- worker.properties:

worker.list=lbworker
worker.lbworker.type=lb
worker.lbworker.balance_workers=c1,c2
worker.c1.type=ajp13
worker.c1.host=localhost
worker.c1.port=8009
worker.c2.type=ajp13
worker.c2.host=localhost
worker.c2.port=8010

-- server.xml

Cluster channelSendOptions=8   
className=org.apache.catalina.ha.tcp.SimpleTcpCluster

Manager
className=org.apache.catalina.ha.session.DeltaManager  
expireSessionsOnShutdown=false   
notifyListenersOnReplication=true /
Channel   
className=org.apache.catalina.tribes.group.GroupChannel

Membership
className=org.apache.catalina.tribes.membership.McastService   
address=228.0.0.4port=45564 frequency=500 
dropTime=3000/
Receiver address=localhost autoBind=100  
className=org.apache.catalina.tribes.transport.nio.NioReceiver
maxThreads=6 port=4000 selectorTimeout=5000 /

Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport 
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender /

/Sender
Interceptor   
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector

/
Interceptor   
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor

/
Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
/Channel
Valve
className=org.apache.catalina.ha.tcp.ReplicationValve filter= /
Valve
className=org.apache.catalina.ha.session.JvmRouteBinderValve /
ClusterListener   
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener

/
ClusterListener   
className=org.apache.catalina.ha.session.ClusterSessionListener /

/Cluster



Giancarlo Frison



-
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 Clustering expireSessionsOnShutdown=false

2007-11-29 Thread Filip Hanik - Dev Lists

I'll take a look at this today or tomorrow

filip

Timothy Wonil Lee wrote:

Dear list,

I have a cluster of Tomcat 6.0.14 using DeltaManager.
Session replication works fine while both instances are running.
I can test this by for example, logging-in to one of the webapps on a Tomcat
instance in the cluster, then kill the process of that tomcat. Then I get
transferred to another instance next time I request a page, and I am still
logged in and objects I saved in session are still available. Good.

However, when I stop one of the instances by using the Tomcat script,
sessions on the other instance expire. I suspect this is caused by the
tomcat that is being shutdown sends messages to other instance of Tomcat to
expire sessions. But I did set expireSessionsOnShutdown=false in
server.xml:

Manager className=org.apache.catalina.ha.session.DeltaManager
   expireSessionsOnShutdown=false
   notifyListenersOnReplication=true/

Can anyone help me fix this, please?

By the way, I am also using SingleSignOn, could this have any effect on
Clustering?

TIA,

Timothy Wonil Lee

Java Developer
Koorong Books (http://www.koorong.com/)
email: [EMAIL PROTECTED]
direct ph: (+612) 9857 4448
direct fax: (+612) 9857 6648
http://www.google.com/reader/shared/16849249410805339619



-
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: apache fop remains active in servlet environment

2007-11-29 Thread Roel

And how can i use that to render an in-memory DOM object? The xml I need to
render is constructed on the fly from database records and then fed to fop. 

Roel




mgainty wrote:
 
 FOP 0.94 has working servlet code
 which can be called specifying the xml and xsl
 http://servername/fop/servlet/FopServlet?xml=data.xmlxslt=format.xsl
 
 OR just using the fo param
 http://servername/fop/servlet/FopServlet?fo=readme.fo
 
 http://archive.apache.org/dist/xmlgraphics/fop/binaries/
 M--
 - Original Message -
 Wrom: YRWTQTIPWIGYOKSTTZRCLBDXRQBGJS
 To: users@tomcat.apache.org
 Sent: Thursday, November 29, 2007 6:25 AM
 Subject: apache fop remains active in servlet environment
 
 

 I use apache fop in a servlet to display some xml as pdf. When I have
 used
 that functionality in my webapp my (Tomcat 6.0) web container doesn't
 want
 to undeploy. It deletes everything in the webapps/*context* directory
 except
 WEB-INF/lib/batik.jar and WEB-INF/lib/fop.jar. When trying to delete the
 files manually windows tells me they are in use.

 I use this code to render the xml into pdf

 ByteArrayOutputStream out = new ByteArrayOutputStream();
 FopFactory ff=FopFactory.newInstance();
 TransformerFactory tf=TransformerFactory.newInstance();

 StreamSource xslfo=new
 StreamSource(this.getServletContext().getRealPath(lid-pdf.xsl));
 try {
 Transformer tt=tf.newTransformer(xslfo);
 Fop fp=ff.newFop(MimeConstants.MIME_PDF, out);

 SAXResult res=new SAXResult(fp.getDefaultHandler());
 Source src= new DOMSource(doc);
 DOMResult dd=new DOMResult();
 assert(src!=null);
 assert(res!=null);
 tt.transform(src, dd);
 Transformer t2=tf.newTransformer();
// System.out.println(res.getNode().getFirstChild());
 t2.transform(new DOMSource(dd.getNode()), res );

 //Prepare response
 response.setContentType(application/pdf);
 assert(out.size()0);
 response.setContentLength(out.size());
   //  System.out.println(Version.getVersion());
 //Send content to Browser
 response.getOutputStream().write(out.toByteArray());
 response.getOutputStream().flush();
 out.close();

 } catch (FOPException e) {
 // TODO Auto-generated catch block
 throw new ServletException(e);
 } catch (TransformerConfigurationException e1) {
 // TODO Auto-generated catch block
 throw new ServletException(e1);
 } catch (TransformerException e) {
 // TODO Auto-generated catch block
 throw new ServletException(e);
 }

 System.gc();


 Anyone has any ideas?

 Roel
 --
 View this message in context:
 http://www.nabble.com/apache-fop-remains-active-in-servlet-environment-tf489
 6511.html#a14023743
 Sent from the Tomcat - User mailing list archive at Nabble.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/apache-fop-remains-active-in-servlet-environment-tf4896511.html#a14030465
Sent from the Tomcat - User mailing list archive at Nabble.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]



Re: Tomcat 6.0 with Apache 2.2 front-end

2007-11-29 Thread Filip Hanik - Dev Lists

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]



Re: OT - Tomcat and Stanford NLP POS Tagger

2007-11-29 Thread Ken Bowen
I don't think the Stanford NLP POS Tagger download includes any 
web-oriented classes other than the single class which can parse the 
un-html-tagged content out of a web page.  Have you obtained or 
developed a servlet/jsp in which Tagger is embedded?


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vasu,

[EMAIL PROTECTED] wrote:
  

We are trying to implement servlet setup with Tomcat 5.0.28 and JDK
1.5.x using POS (Parts of Speech) Tagger. We can not get it to work.



What is it? Java? Tomcat? Tagger?

Obviously, we can't give you Tagger support, but we should be able to
get you up and running with Tomcat.

What did you try? What happens? Does Tomcat even start up?

  

Unfortunately, there are no error messages in the log files for us to
debug.



Are there any messages at all?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTus09CaO5/Lv0PARAku0AJ400jN82YL0aqc7l/QAgyBknBaFlQCePouZ
8csv23sqGbyv/sthb3cQ1bg=
=HxiZ
-END PGP SIGNATURE-

-
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 Security/Service question..

2007-11-29 Thread Joe Siebenmann
Hi All,

Basically, I have a Tomcat Service that has a Service User
with a User name and Password, and it's in the Administrator's
Group.

Using WMI, one of the Servlets can connect to a remote machine
and do WMI quires.

Here is the problem..  When I start the Service, that uses tomcat5.exe,
it can connect okay, but the WMI query fails, but when I CD into
Webserver\bin and do a catalina run then everything works great,
it connects and any query works perfectly!

I realize that there are a ton of Windows Security issues involved
with connecting to a remote machine, and doing any query using WMI, and
I'm already investigating that, but when the exact same code, running
on the Service has problems, but using catalina run magically
works, tells me that something else is going on..

I'm running around in circles looking at Access Tokens, Security
Descriptors, etc. and not getting anywhere.

Why does everything work when I use catalina run?
It has to be more than it's using my user credentials when I
do 'catalina run'..  The Service User is in the Administrator's
Group.

If anyone has any insight on why this is happening, and if there
is some way to make everything work using the tomcat5.exe Service,
I'd really appreciate hearing from you.


Thanks,

Joe Siebenmann  


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

-
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.17] Strange Problem With Batabase Connection Pool

2007-11-29 Thread albert quinn
  Hi all ! :

  I'm facing a very strange problem. I'm developing a web service with :

- Apache Axis 2 RC 1.3 running on Tomcat 5.5.17, running on
Windows XP Professional
- Java JDK 1.5

  I've set up a database connection pool in Tomcat. My Web Service
gets a connection from the pool, sends a query to the Database and
returns some information.

  When I call the Web Service for the first time, it works nice.

  If I call it again, it works nice.

  If I wait a few minutes (10 minutes or 20 minutes) and call it
again, it works nice.

  If I wait about an hour and call it again, the Web Service call
never returns. I've seen the Tomcat logs but no errors are reported.
So, I've been searching about that problem in Google and Tomcat's
mailing lists but I haven't found any useful information about the
strange problem.

  So, I've been debugging the Web Service code :


1 - Context ctxt = new InitialContext();
2 - DataSource ds = (DataSource) ctxt.lookup(java:comp/env/jdbc/database);
3 - Connection con = ds.getConnection();
4 - 


  The lines 1 and 2 are executed, but the 4th line is never reached.
Any idea of what could be happening here or how could I do to discover
what's happening? does it seems to be a bug on my code or a setup
problem?

  Thanks in advance for any kind of help with this annoying error.

-
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-29 Thread Jackie Justice
All of a sudden I have gotten several emails concerning tomcat.  All I 
wanted to do was to get to petedge.


Jackie
- Original Message - 
From: albert quinn [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, November 29, 2007 4:26 PM
Subject: Re: [Tomcat 5.5.17] Strange Problem With Batabase Connection Pool



 It could be. I'm really lost, and have no idea about what is happening.

 I forgot to tell that, when I call the web service after about an
hour of inactivity and it waits forever at the 3th line, if i call the
web service again, it works nice and it keeps on working nice (except
if I wait about an hour again). So, it could be what you say.

 Any URL where I can learn about the DBCP configuration and how to
set testOnBorroy to true?.

 MANY thanks for your help with this strange behaviour!!.



2007/11/29, Mark Thomas [EMAIL PROTECTED]:

albert quinn wrote:
   The lines 1 and 2 are executed, but the 4th line is never reached.
 Any idea of what could be happening here or how could I do to discover
 what's happening? does it seems to be a bug on my code or a setup
 problem?

Could you database connection be timing out due to inactivity? It is 
worth

adding a validation query to your DBCP configuration and setting
testOnBorrow to true.

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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.10/1159 - Release Date: 
11/29/2007 11:10 AM






-
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-29 Thread Tony Anecito
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]



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

2007-11-29 Thread albert quinn
  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?

  Thanks again for your help.



2007/11/29, albert quinn [EMAIL PROTECTED]:
  It could be. I'm really lost, and have no idea about what is happening.

  I forgot to tell that, when I call the web service after about an
 hour of inactivity and it waits forever at the 3th line, if i call the
 web service again, it works nice and it keeps on working nice (except
 if I wait about an hour again). So, it could be what you say.

  Any URL where I can learn about the DBCP configuration and how to
 set testOnBorroy to true?.

  MANY thanks for your help with this strange behaviour!!.



 2007/11/29, Mark Thomas [EMAIL PROTECTED]:
  albert quinn wrote:
 The lines 1 and 2 are executed, but the 4th line is never reached.
   Any idea of what could be happening here or how could I do to discover
   what's happening? does it seems to be a bug on my code or a setup
   problem?
 
  Could you database connection be timing out due to inactivity? It is worth
  adding a validation query to your DBCP configuration and setting
  testOnBorrow to true.
 
  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-29 Thread Tony Anecito
I was interested in seeing how it compared to the
regular Apache server. I am not sure of the advantages
of combining multiple tiers. The reason to keep them
separate is to be able to scale by adding servers to a
specific tier.

My experience has been keep the tiers separate. I am
not sure how secure Tomcat is compared to Apache so
combining multiple tiers may include additional risks.

If you really want to get better performance eliminate
Apache altogether. At least that is what I have heard
here in this newsgroup.

I am down to 4.2msec round trip for my type of
requests as measured at the client and want better
than that and the conclusion is to eliminate Apache as
soon as I can find a good Blog software install for
Tomcat rather than one that uses Perl.

Regards,
-Tony

--- Brian Millett [EMAIL PROTECTED] 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.
 
 
 -- 
 Brian Millett - [ Ivanova, The Geometry of
 Shadows]
 If it gets too bad I'll just gnaw it off at the
 ankle.
 
 

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



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-
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-29 Thread albert quinn
  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 5.5.17] Strange Problem With Batabase Connection Pool

2007-11-29 Thread Mark Thomas
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]



Re: compiling APR/tcnative on Win32

2007-11-29 Thread br1

Hi,

Thank you for your reply.

Though the actual question is: what should I change in the Visual C++
project in order to get it compiled correctly?
It is a non VC++ programmer question, you know :-)

Thanks again,
b.


mgainty wrote:
 
 Hi Bruno
 its supposed to be located in %SystemRoot%\system32\Rpcrt4.dll
 M--
 - Original Message -
 From: Bruno Altobelli [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 27, 2007 5:45 PM
 Subject: compiling APR/tcnative on Win32
 
 
 Hello,
 
 I am trying to compile APR on Win32 without OpenSSL using the sources at
 http://tomcat.heanet.ie/native/ - manually removing references to any ssl
 library as I don't have autoconf (yet).
 I was able to compile the project called libtcnative without problems,
 but
 when trying to compile the one named tcnative I get the following error:
 tcnative error LNK2019: unresolved external symbol [EMAIL PROTECTED]
 referenced in function [EMAIL PROTECTED]
 
 I get the same error above with tcnative versions 1.1.10, 1.1.9, 1.1.8,
 with
 APR versions 1.2.12 (that just came out), 1.2.11 and 1.2.9, using VS2005
 and
 VS2003.
 
 Trying to figure out what was the reason, I tried to add rpcdce.lib (or
 Rpcrt4.lib) to the linker in the tcnative project.
 The tcnative-1.dll gets compiled properly, though the linker itself warns
 that rpcdce is not needed (lol).
 
 Questions:
 1 - Is this the right way to do it or should I change something different
 in
 the project?
 2 - May I use the separate dlls generate by the libtcnative project
 instead?
 
 Thank you in advance,
 b.
 
 
 
 
 
 
 
 
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/compiling-APR-tcnative-on-Win32-tf4885036.html#a14037185
Sent from the Tomcat - User mailing list archive at Nabble.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]



RE: Question about multiple SSL at same machine

2007-11-29 Thread Peter Crowther
 From: Alex Florentino [mailto:[EMAIL PROTECTED]
 I have windows colocation and have one site that have ssl and
 it works fine,
 now I have another site and need set up another ssl, I think
 that change ssl
 port for second site is good solutions but my client don't
 like this idea,
 then I need set up another ip.. but I not sure how I make it...

Ask your hosting provider to assign you another IP address.  If you're behind a 
NATted router, they'll tell you what the new internal address is; if not, 
they'll tell you the new external address.  Add that as a second IP on your 
Windows box, then bind port 443 on the new site to it.  Also, you or your 
hosting/DNS provider will need to set up a DNS entry for the new site.

Most providers will charge you for extra IP addresses, and some more for the 
setup.

- Peter

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



Thread-safety servlet testing

2007-11-29 Thread Самойлов Андрей Иванович

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]



Why there are no logs?

2007-11-29 Thread Dmitry S. Kravchenko
Hi!
 
What's wrong with the following configuration tag in Server.xml
 
**
Host name=test02.vsetech.ru debug=1 appBase=/var/webmet/test02
unpackWARs=false autoDeploy=false
 
!-- Logger shared by all Contexts related to this virtual host. --
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=test02.vsetech.ru_ suffix=.log
timestamp=true/
Context path= docBase= debug=0 reloadable=true
crossContext=true
/Context
 
  /Host
**
 
I have no test02* logs in /var/log/tomcat5 directory, only catalina* and
localhost* logs. Why?
 
Thanks.


Re: Why there are no logs?

2007-11-29 Thread Mark Thomas
Dmitry S. Kravchenko wrote:
 What's wrong with the following configuration tag in Server.xml

A Tomcat version would help.

 **
 Host name=test02.vsetech.ru debug=1 appBase=/var/webmet/test02
 unpackWARs=false autoDeploy=false
  
 !-- Logger shared by all Contexts related to this virtual host. --
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=test02.vsetech.ru_ suffix=.log
 timestamp=true/
 Context path= docBase= debug=0 reloadable=true
 crossContext=true
 /Context
  
   /Host

Things wrong:
1. Your appBase should be /var/webmet
2. The directory /var/webmet/test02 should be renamed to /var/webmet/ROOT
3. You have defined a context in server.xml (not 100% but not a good idea)
4. See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for a
list of better places to define your context.
Your context should look like
Context reloadable=true crossContext=true
/Context

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]