Re: Rejecting a file upload

2008-01-15 Thread Volker Schoenefeld

Hello again,

This is a follow up to my post you can see here [1].

I've tried a little more and found out something really scaring.

By using chunked transfer encoding you can continously send data to  
_any_ tomcat servlet. Even if it would generate a 404 or another error.


What I did was to simply use the httpclient library to upload a  
stream of random data to a really basic tomcat servlet (that prints  
hello world). What happens is that the servlet executes, finished,  
but tomcat continues to read all the data sent by my little program,  
even if that continues to infinity. And instead of directly showing  
the 404 tomcat will  first _always_ show the 100 Continue header,  
even if it _doesn't even accept posts/put_


Sample log:

 POST /backend/test HTTP/1.1[\r][\n]
 User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]
 Host: ***:8443[\r][\n]
 Expect: 100-continue[\r][\n]
 Transfer-Encoding: chunked[\r][\n]
 [\r][\n]
 HTTP/1.1 100 Continue[\r][\n]
 [\r][\n]
 *3 megabytes of random garbage data here*
 HTTP/1.1 405 HTTP method POST is not supported by this URL[\r][\n]
[...]

This probably means that any tomcat server out there having chunked  
transfer enabled can be flooded with large amounts of data without  
any mechanism inside of the servlet to prevent that from happening,  
as far as I can see. This means theoretically one could open an  
infinite number of non-terminating sockets to a tomcat server, that  
_has_ to hurt performance.


Seems to me like there really needs to be a solution for this issue.

Best regards,
Volker

[1] http://marc.info/?l=tomcat-userm=120024591128397w=2

-
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: Doubt in how lbfactor works with load balancing of Apache with Tomcat cluster

2008-01-15 Thread Shiby Maria John
I was getting confused with setting the load balancer to be
sticky_session and setting of lbfactor together.
By session, i meant new sessions being created in the server.
Are they mutually exclusive ?

Can you please explain the effect of setting both those values along
with method=R.
Please clarify.

Regards,
Shiby


  
 Rainer Jung  
 [EMAIL PROTECTED]  
 ppdata.deTo 
 Tomcat Users List
 01/14/2008  users@tomcat.apache.org
 04:58 PM  cc 
  
  Subject 
 Please respond  Re: Doubt in how lbfactor works  
   towith load balancing of Apache
  Tomcat Users  with Tomcat cluster  
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  
  




Hi Shiby,

Shiby Maria John schrieb:
 Hi,

 This is my worker.properties for Apache server for clustering 3
 instances of Tomcat in my machine.

 # The advanced router LB worker
 worker.list=router

 # Define a worker using ajp13
 worker.worker1.port=8009
 worker.worker1.host=localhost
 worker.worker1.type=ajp13
 worker.worker1.lbfactor=1

 # Define another worker using ajp13
 worker.worker2.port=9009
 worker.worker2.host=localhost
 worker.worker2.type=ajp13
 worker.worker2.lbfactor=10

 # Define the LB worker
 worker.router.type=lb
 worker.router.balance_workers=worker2,worker1,worker3
 worker.router.method=B

 # Define another worker using ajp13
 worker.worker3.port=8029
 worker.worker3.host=localhost
 worker.worker3.type=ajp13
 worker.worker3.lbfactor=50

 I expected more sessions to be hitting worker3 since it has the max
 lbfactor. But the sessions are created equally in all servers.
 Can some one please explain this ?

What happens, if you use the default mthod, which is R = by
requests?

Is your app a normal webapp (throughput focused, many relatively short

running requests)? Then R should be best.

Is there a reason you are talking about sessions? What is the
ressource you need to balance with, is it CPU (the traditional notion
of
load) or more memory (because your sessions are very big)? In the
latter
case, you could also use S. Although many people use B, I very
rarely find a use case, where B is a nice fit.

A nice way of following what's going on is to use a status worker:

worker.list=jkstatus
worker.jkstatus.type=status

JkMount /jkstatus jkstatus

and then point your browser to the URL /jkstatus

See: http://tomcat.apache.org/connectors-doc/reference/status.html

 Regards,
 Shiby

If R (or maybe S) don't help you, let us know.

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]






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



MultiContext War

2008-01-15 Thread DCVer

Hi,
I am trying to merge 4 web applications (WARs) into 1 WAR file. Is it
possible? Shall I have e.g. 4 web.xml files or should I manually merge them
into 1 file? I am using Maven, so I would be happy if most of the work could
be done by Maven.
-- 
View this message in context: 
http://www.nabble.com/MultiContext-War-tp14837978p14837978.html
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: MultiContext War

2008-01-15 Thread Peter Crowther
 From: DCVer [mailto:[EMAIL PROTECTED]
 I am trying to merge 4 web applications (WARs) into 1 WAR file. Is it
 possible?

Yes, but it can be a lot of manual work.

 Shall I have e.g. 4 web.xml files or should I
 manually merge them into 1 file?

One WAR = one webapp.
One webapp = one web.xml, one WEB-INF, etc.
Therefore you need exactly one web.xml.

You may also need to merge quite a lot of your code by hand, depending on 
exactly what it does.

 I am using Maven, so I would be happy if most of
 the work could be done by Maven.

I think a lot of people would be happy if this was so.

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



tomcat connector 1.2.26 with apache httpd 2.2.3

2008-01-15 Thread Günther , Thorsten
Hi!

 

I got a problem running jk 1.2.26 on httpd 2.2.3 and I'm not sure if this a 
setup problem or a bug in jk.

 

When compiling jk it says:

---

mod_jk.c: In function âinit_ws_serviceâ:

mod_jk.c:671: warning: implicit declaration of function 
âap_get_server_descriptionâ

---

 

When trying to start tomcat with this module installed it complains about 
unknown ap_get_server_description. jk 1.2.25 compiles and runs ok.

 

Any hints? Should I file a bug report for this?

 

 

Thanx, regards,

 

Thorsten Günther

 

medocino GmbH
Verlautenheidener Strasse 141
52080 Aachen 

 

Tel. +49-2405-40888-63
Fax +49-2405-40888-949
mailto: [EMAIL PROTECTED]
Handelsregister: HRB 7770 Aachen
Geschäftsführer: Sven Hancke, Guido Nilgen

 



Re: tomcat connector 1.2.26 with apache httpd 2.2.3

2008-01-15 Thread Rainer Jung

Hallo Günther,

Günther wrote:

Hi!

I got a problem running jk 1.2.26 on httpd 2.2.3 and I'm not sure if
this a setup problem or a bug in jk.

When compiling jk it says:

---

mod_jk.c: In function âinit_ws_serviceâ:

mod_jk.c:671: warning: implicit declaration of function
âap_get_server_descriptionâ

---


mod_jk uses the function ap_get_server_description(), if it detects that
the so-called mmn number of httpd is at least 20051115,4. In plain text
this means, if the httpd version is at least 2.2.4, the version that
first included ap_get_server_description(). If the mmn is smaller, it
uses another function, that existed already before.

The provided binaries mostly are compiled against a recent httpd, so
they will not run with older versions (in this case: with a version of
2.2.x older than 2.2.4).

Building it should be no problem though. To find out, why your build
does not work, you first need to find the httpd header file ap_mmn.h,
against which we build. In your top level Makefile, there should be a 
path like


apache_include = -I/my/httpd/install/directory/include

and the file ap_mmn.h is in this directory.

This path we get from

apxs -q INCLUDEDIR

where apxs is the one, you gave to configure via --with-apxs.

In ap_mmn.h there should be a block like e.g.

#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20051115
#endif
#define MODULE_MAGIC_NUMBER_MINOR 3

We use the new function, if the major number is at least 20051115, and
if it is equal to 20051115 (most likely the case with your file), the
minor needs to be at least 4. For 2.2.3 it should be 3.

If it is bigger than 3, then I suspect, that either your apxs might be 
broken, or does not belong to your httpd 2.2.3 installation.



When trying to start tomcat with this module installed it complains
about unknown ap_get_server_description. jk 1.2.25 compiles and
runs ok.

Any hints? Should I file a bug report for this?


Lets first check the above httpd header file, you use for compilation.



Thanx, regards,

Thorsten Günther


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: Context does not work

2008-01-15 Thread David Smith
Hmm... might help to define But it doesn't work.  How exactly does it 
not work? 

For the record, you Context element should *not* be in 
conf/context.xml.  That file defines defaults for all webapps.  It 
*should* be in one of two places:


webapps/StrutsDemo/META-INF/context.xml  in which case your webapp will 
respond to requests to http://[myServer:port]/StrutsDemo.


conf/Catalina/localhost/StrutsDemo.xml in which case your webapp will 
respond to requests to http://[myServer:port]/StrutsDemo.


The key thing here is your docBase and the name of your xml file in 
conf/Catalina/localhost should reflect the path name.  If you really 
want path != docBase, you will have to store your webapp outside 
tomcat's webapps directory and store the Context definition in 
conf/Catalina/localhost/welcome.xml.  In that case your webapp will 
respond to http://[myServer:port]/welcome/


--David

Chris Riekenberg wrote:


Hey,

I'm using Tomcat 5.5.12. If I created a context mapping in
/conf/server.xml to cnetext /welcome.

Context path=/welcome docBase=StrutsDemo /

If I do it like this, it works. But I read, that you should not
insert a mapping in server.xml (bad style?) You should prefer
to insert it into
/conf/context.xml
or
\conf\Catalina\localhost\ApplicationName.xml


In both I tried this one:
Context path=/welcome docBase=StrutsDemo
/Context

But it doesn't work. Did I do something wrong?

greetz
Christian

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



JDBC Realm doesn't work properly

2008-01-15 Thread JasDA
Hi,

I'm using a self extended class of JDBC realm to realize a user authentication. 
Here is the corresponding part of my server.xml:

Realm className=de.mycompany.app.AppJDBCRealm
driverName=com.sybase.jdbc2.jdbc.SybDataSource
connectionURL=jdbc:sybase:Tds:db.mycompany.de:5566/DODS000?JCONNECT_VERSION=6
connectionName=test
connectionPassword=test2
userTable=userTable userNameCol=user_nm userCredCol=lng_pwd
userRoleTable=roleTable roleNameCol=dc /

This works fine so far but I have to write four of these realm-configurations 
for 4 different databases. Each database will be used by a different context. 
So I've put this realm-configuration into a context-element:

Context docBase=${catalina.home}/webapps/app
privileged=true antiResourceLocking=false antiJARLocking=true

Realm .

/Context

With this configuration it doesn't work anymore. Here is the error I got:

Unexpected error
java.lang.SecurityException: Anmeldekonfiguration kann nicht gefunden werden.
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at javax.security.auth.login.LoginContext.init(LoginContext.java:403)
at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Can someone please help me?

Regards,
Jason
___
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00


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



Context does not work

2008-01-15 Thread Chris Riekenberg
Hey,

I'm using Tomcat 5.5.12. If I created a context mapping in
/conf/server.xml to cnetext /welcome.

Context path=/welcome docBase=StrutsDemo /

If I do it like this, it works. But I read, that you should not
insert a mapping in server.xml (bad style?) You should prefer
to insert it into
/conf/context.xml
or
\conf\Catalina\localhost\ApplicationName.xml


In both I tried this one:
Context path=/welcome docBase=StrutsDemo
/Context

But it doesn't work. Did I do something wrong?

greetz
Christian

-
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: Context does not work

2008-01-15 Thread Chris Riekenberg
 Hmm... might help to define But it doesn't work.  How exactly does it
 not work?


He returns a Http error 404. Page could not find.

 For the record, you Context element should *not* be in
 conf/context.xml.  That file defines defaults for all webapps.  It
 *should* be in one of two places:

Interessting. So in context.xml I would only define global context.


 webapps/StrutsDemo/META-INF/context.xml  in which case your webapp will
 respond to requests to http://[myServer:port]/StrutsDemo.

 conf/Catalina/localhost/StrutsDemo.xml in which case your webapp will
 respond to requests to http://[myServer:port]/StrutsDemo.

The call http://[myServer:port]/StrutsDemo already works. I would like
to map to another context. So it would be useless to define an
additionally context.xml if it works without.



 The key thing here is your docBase and the name of your xml file in
 conf/Catalina/localhost should reflect the path name.  If you really
 want path != docBase, you will have to store your webapp outside
 tomcat's webapps directory and store the Context definition in
 conf/Catalina/localhost/welcome.xml.  In that case your webapp will
 respond to http://[myServer:port]/welcome/

So if a xml file exist in /conf/Catalina/localhost which is suitable for
a webapps folder, he ignore a context within this file, but if the folder
doesn't exist, he will use this context?

Thank you very much for this answer.

greetz
chris



 --David

 Chris Riekenberg wrote:

Hey,

I'm using Tomcat 5.5.12. If I created a context mapping in
/conf/server.xml to cnetext /welcome.

Context path=/welcome docBase=StrutsDemo /

If I do it like this, it works. But I read, that you should not
insert a mapping in server.xml (bad style?) You should prefer
to insert it into
/conf/context.xml
or
\conf\Catalina\localhost\ApplicationName.xml


In both I tried this one:
Context path=/welcome docBase=StrutsDemo
/Context

But it doesn't work. Did I do something wrong?

greetz
Christian

-
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: Context does not work

2008-01-15 Thread David Smith



Chris Riekenberg wrote:


Hmm... might help to define But it doesn't work.  How exactly does it
not work?

   



He returns a Http error 404. Page could not find.

 


For the record, you Context element should *not* be in
conf/context.xml.  That file defines defaults for all webapps.  It
*should* be in one of two places:
   



Interessting. So in context.xml I would only define global context.
 



[TomcatHome]/conf/context.xml defines defaults for all the other 
webapps.  If it's not explicitly defined in a particular webapp's 
context, it's looked for here.


 


webapps/StrutsDemo/META-INF/context.xml  in which case your webapp will
respond to requests to http://[myServer:port]/StrutsDemo.

conf/Catalina/localhost/StrutsDemo.xml in which case your webapp will
respond to requests to http://[myServer:port]/StrutsDemo.
   



The call http://[myServer:port]/StrutsDemo already works. I would like
to map to another context. So it would be useless to define an
additionally context.xml if it works without.


 



So you want you make your webapp to also respond at 
http://[myServer:port]/welcome.  You can achieve a second launch of your 
webapp just by placing welcome.xml (w/ your Context config) in 
[TomcatHome]/conf/Catalina/localhost.  Just know this is a second 
launch, not an alias to the first running instance.



The key thing here is your docBase and the name of your xml file in
conf/Catalina/localhost should reflect the path name.  If you really
want path != docBase, you will have to store your webapp outside
tomcat's webapps directory and store the Context definition in
conf/Catalina/localhost/welcome.xml.  In that case your webapp will
respond to http://[myServer:port]/welcome/
   



So if a xml file exist in /conf/Catalina/localhost which is suitable for
a webapps folder, he ignore a context within this file, but if the folder
doesn't exist, he will use this context?

 

I'm reasonably sure conf/Catalina/localhost/StrutsDemo.xml trumps 
webapps/StrutsDemo/META-INF/context.xml if both are present.



Thank you very much for this answer.

greetz
chris


 


--David

Chris Riekenberg wrote:

   


Hey,

I'm using Tomcat 5.5.12. If I created a context mapping in
/conf/server.xml to cnetext /welcome.

Context path=/welcome docBase=StrutsDemo /

If I do it like this, it works. But I read, that you should not
insert a mapping in server.xml (bad style?) You should prefer
to insert it into
/conf/context.xml
or
\conf\Catalina\localhost\ApplicationName.xml


In both I tried this one:
Context path=/welcome docBase=StrutsDemo
/Context

But it doesn't work. Did I do something wrong?

greetz
Christian

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

 




-
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: Context does not work

2008-01-15 Thread Chris Riekenberg
 So you want you make your webapp to also respond at
 http://[myServer:port]/welcome.  You can achieve a second launch of your
 webapp just by placing welcome.xml (w/ your Context config) in
 [TomcatHome]/conf/Catalina/localhost.  Just know this is a second
 launch, not an alias to the first running instance.


Can you explain this a little bit more detailed? What does a secon
launch mean? What are the consequences? I just want to start the
application with /welcome. So this would be the same instance everytime?!

As I wrote, it works if I insert the context into server.xml. Is this
really bad style? It is much simpler as creating a new welcome.xml.

thx
chris

-
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: Rejecting a file upload

2008-01-15 Thread Martin Gainty

Volkerwhat constitutes finished ? are you saying the connection is not closed?
 
http://www.archivum.info/users@tomcat.apache.org/2007-05/msg02066.html
?Martin__Disclaimer and 
confidentiality noteEverything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission. Date: Tue, 15 Jan 2008 02:48:33 +0100 Wrom: 
TQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCDets
 to a tomcat server, that  _has_ to hurt performance.  Seems to me like 
there really needs to be a solution for this issue.  Best regards, Volker  
[1] http://marc.info/?l=tomcat-userm=120024591128397w=2  
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Watch “Cause Effect,” a show about real people making a real difference.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

Re: Rejecting a file upload

2008-01-15 Thread Volker Schoenefeld

Hi Martin,

thanks for your response.

Sorry for my unclear description, what I ment is that the TCP  
connection is neither closed, nor interrupted in any way. The  
Uploader simply continues to send data to the server, even if the  
servlet already written a response, closed all streams and returned  
from the handler, thus finishing the request.


Hope that makes it a little more clear.

Best regards,
Volker

On 15.01.2008, at 15:02, Martin Gainty wrote:



Volkerwhat constitutes finished ? are you saying the connection is  
not closed?




-
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: Context does not work

2008-01-15 Thread David Smith
A second launch means a second set of servlet instances, second set of 
resources, overall a higher memory footprint and they won't share data.


Placing this stuff in server.xml does work, but if you want to change 
the config you are required to bounce the tomcat service for changes to 
take effect.  With the Context definitions in separate files, you can 
use the manager webapp to stop/start/restart individual webapps without 
taking down the whole server and all the other webapps tomcat is serving.


--David

Chris Riekenberg wrote:


So you want you make your webapp to also respond at
http://[myServer:port]/welcome.  You can achieve a second launch of your
webapp just by placing welcome.xml (w/ your Context config) in
[TomcatHome]/conf/Catalina/localhost.  Just know this is a second
launch, not an alias to the first running instance.
   




Can you explain this a little bit more detailed? What does a secon
launch mean? What are the consequences? I just want to start the
application with /welcome. So this would be the same instance everytime?!

As I wrote, it works if I insert the context into server.xml. Is this
really bad style? It is much simpler as creating a new welcome.xml.

thx
chris

-
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: JDBC Realm doesn't work properly

2008-01-15 Thread Martin Gainty

Jasondid you apprise login.config of the location of jaas.config e.g
JAVA_OPTS=-Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.configMartin
 __Disclaimer and confidentiality 
noteEverything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission. Date: Tue, 15 Jan 2008 14:22:33 +0100 From: [EMAIL PROTECTED] 
To: users@tomcat.apache.org Subject: JDBC Realm doesn't work properly  Hi, 
 I'm using a self extended class of JDBC realm to realize a user 
authentication. Here is the corresponding part of my server.xml:  Realm 
className=de.mycompany.app.AppJDBCRealm 
driverName=com.sybase.jdbc2.jdbc.SybDataSource 
connectionURL=jdbc:sybase:Tds:db.mycompany.de:5566/DODS000?JCONNECT_VERSION=6
 connectionName=test connectionPassword=test2 userTable=userTable 
userNameCol=user_nm userCredCol=lng_pwd userRoleTable=roleTable 
roleNameCol=dc /  This works fine so far but I have to write four of these 
realm-configurations for 4 different databases. Each database will be used by a 
different context. So I've put this realm-configuration into a 
context-element:  Context docBase=${catalina.home}/webapps/app 
privileged=true antiResourceLocking=false antiJARLocking=true  Realm 
.  /Context  With this configuration it doesn't work anymore. Here 
is the error I got:  Unexpected error java.lang.SecurityException: 
Anmeldekonfiguration kann nicht gefunden werden. at 
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at 
java.lang.Class.newInstance0(Class.java:350) at 
java.lang.Class.newInstance(Class.java:303) at 
javax.security.auth.login.Configuration$3.run(Configuration.java:216) at 
java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
 at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237) at 
java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.login.LoginContext.init(LoginContext.java:234) at 
javax.security.auth.login.LoginContext.init(LoginContext.java:403) at 
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347) at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)   Can someone please help me?  
Regards, Jason 
___ Jetzt 
neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage kostenlos testen. 
http://www.pc-sicherheit.web.de/startseite/?mc=00   
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Watch “Cause Effect,” a show about real people making a real difference.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause

RE: JDBC Realm doesn't work properly

2008-01-15 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: JDBC Realm doesn't work properly
 
 I'm using a self extended class of JDBC realm to realize a 
 user authentication.

Would you care to tell us the version of Tomcat you're using, or should
we guess?

 So I've put this realm-configuration into a context-element:

Where is your Context element located?

 Context docBase=${catalina.home}/webapps/app

A docBase pointing into webapps is never correct; for that matter, the
docBase attribute is usually not allowed.

 java.lang.SecurityException: 
 Anmeldekonfiguration kann nicht gefunden werden.
 ...
 at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347)

This looks like you've subclassed the JAAS realm, not the JDBC one, and
it's hunting for the JAAS configuration file.

 - 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: Context does not work

2008-01-15 Thread Caldarale, Charles R
 From: Chris Riekenberg [mailto:[EMAIL PROTECTED] 
 Subject: Re: Context does not work
 
 Can you explain this a little bit more detailed? What does a secon
 launch mean?

It means you get two webapps started, one with the path welcome, one
with a path that's the name of the webapp .war file or directory.  This
is usually undesirable.

 As I wrote, it works if I insert the context into server.xml. Is this
 really bad style? It is much simpler as creating a new welcome.xml.

Yes, it's very bad style - don't do it.  Unless you need some special
settings for the Context attributes, you don't really need a Context
element at all.  For your case just name your .war file (or the expanded
directory under webapps) welcome and you'll have what you want.

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



any doubt about tomcat contexts... help me please

2008-01-15 Thread Anderson Borges Coutinho
 Hi., a nice day for all,.
 i have four applications at my tomcat 5.5 server, those applications are 4
war files, and i need share one java object between contexts...
can you help me ?
thanks

-- 
Anderson Borges Coutinho


AW: tomcat connector 1.2.26 with apache httpd 2.2.3

2008-01-15 Thread Günther , Thorsten
Hallo Rainer,

thank you for your fast reply. I guess it's an error in the opensuse 10.2 
apache2-devel-2.2.3-22 rpm. MODULE_MAGIC_NUMBER_MINOR is 5 in
/usr/include/apache2-prefork/ap_mmn.h and 
/usr/include/apache2-worker/ap_mmn.h´. The change-logs included in the files 
also indicate that they belong to version 2.2.5. Guess I finally need an 
account with the opensuse bugzilla. :-) You think it's ok to temporarily alter 
the MODULE_MAGIC_NUMBER_MINOR to 3 to trick the jk build?

Regards,
 
Thorsten Günther
 
medocino GmbH
Verlautenheidener Strasse 141
52080 Aachen 
 
Tel. +49-2405-40888-63
Fax +49-2405-40888-949
mailto: [EMAIL PROTECTED]
Handelsregister: HRB 7770 Aachen
Geschäftsführer: Sven Hancke, Guido Nilgen


-Ursprüngliche Nachricht-
Von: Rainer Jung [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 15. Januar 2008 13:45
An: Tomcat Users List
Betreff: Re: tomcat connector 1.2.26 with apache httpd 2.2.3

Hallo Günther,

Günther wrote:
 Hi!
 
 I got a problem running jk 1.2.26 on httpd 2.2.3 and I'm not sure if
 this a setup problem or a bug in jk.
 
 When compiling jk it says:
 
 ---
 
 mod_jk.c: In function âinit_ws_serviceâ:
 
 mod_jk.c:671: warning: implicit declaration of function
 âap_get_server_descriptionâ
 
 ---

mod_jk uses the function ap_get_server_description(), if it detects that
the so-called mmn number of httpd is at least 20051115,4. In plain text
this means, if the httpd version is at least 2.2.4, the version that
first included ap_get_server_description(). If the mmn is smaller, it
uses another function, that existed already before.

The provided binaries mostly are compiled against a recent httpd, so
they will not run with older versions (in this case: with a version of
2.2.x older than 2.2.4).

Building it should be no problem though. To find out, why your build
does not work, you first need to find the httpd header file ap_mmn.h,
against which we build. In your top level Makefile, there should be a 
path like

apache_include = -I/my/httpd/install/directory/include

and the file ap_mmn.h is in this directory.

This path we get from

apxs -q INCLUDEDIR

where apxs is the one, you gave to configure via --with-apxs.

In ap_mmn.h there should be a block like e.g.

#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20051115
#endif
#define MODULE_MAGIC_NUMBER_MINOR 3

We use the new function, if the major number is at least 20051115, and
if it is equal to 20051115 (most likely the case with your file), the
minor needs to be at least 4. For 2.2.3 it should be 3.

If it is bigger than 3, then I suspect, that either your apxs might be 
broken, or does not belong to your httpd 2.2.3 installation.

 When trying to start tomcat with this module installed it complains
 about unknown ap_get_server_description. jk 1.2.25 compiles and
 runs ok.
 
 Any hints? Should I file a bug report for this?

Lets first check the above httpd header file, you use for compilation.

 
 Thanx, regards,
 
 Thorsten Günther

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]




-
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: sessions not cleaned up after expiry

2008-01-15 Thread William C. Mount
Is there a particular version number in the 5.5.X channel that fixes it? 
I'm running 5.5.17 for 1 application and it's doing the exact same thing. 

William C. Mount RHCE
J2EE Web Solutions CoEx
Global IT Solutions
Caterpillar Inc. 
812 W. Washington St.
East Peoria IL,  61630
(309) 675-3031 - Desk
(309) 264-8297 - Cell
[EMAIL PROTECTED]

I would love to change the world, but they won't give me the source 
code.

I love the way Microsoft follows standards.  In much the same manner that 
fish follow migrating caribou.
  -- Paul Tomblin




Bill Barker [EMAIL PROTECTED] 
Sent by: news [EMAIL PROTECTED]
01/14/2008 07:58 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
users@tomcat.apache.org
cc

Subject
Re: sessions not cleaned up after expiry




Caterpillar: Confidential Green Retain Until: 02/13/2008 




Eqbal [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I am noticing the in one of our webapps sessions are
 not getting cleaned up long after they have expired.
 Our session expiry time is set to 30 min. I am using
 lambdaprobe to monitor the sessions and it appears
 that all of these sessions contain one attribute,
 __lambda_probe_la_ip.
 I am using Tomcat 5.5.16
 This is happenning for just one of the webapp. There
 are few other webapps deployed where I do not see a
 problem.

 Can someone give me some pointers on how to
 troubleshoot this?


There is a bug in that version that may cause sessions to never actually 
expire.  Upgrading should fix it.

 I think this may eventually lead to OutOfMemory
 exception after a number of days (its growing very
 slowly).

 Thanks.


 
 

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now. 
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


 -
 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: JDBC Realm doesn't work properly

2008-01-15 Thread JasDA
Hi Martin,

can you give me some more information? I don't even have a jaas.config. Is it 
really that difiicult that it seems to be?

Jason

 -Ursprüngliche Nachricht-
 Von: Tomcat Users List users@tomcat.apache.org
 Gesendet: 15.01.08 15:18:50
 An: Tomcat Users List users@tomcat.apache.org
 Betreff: RE: JDBC Realm doesn't work properly


 
 
 Jasondid you apprise login.config of the location of jaas.config e.g
 JAVA_OPTS=-Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.configMartin
  __Disclaimer and confidentiality 
 noteEverything in this e-mail and any attachments relates to the official 
 business of Sender. This transmission is of a confidential nature and Sender 
 does not endorse distribution to any party other than intended recipient. 
 Sender does not necessarily endorse content contained within this 
 transmission. Date: Tue, 15 Jan 2008 14:22:33 +0100 From: [EMAIL 
 PROTECTED] To: users@tomcat.apache.org Subject: JDBC Realm doesn't work 
 properly  Hi,  I'm using a self extended class of JDBC realm to realize a 
 user authentication. Here is the corresponding part of my server.xml:  
 Realm className=de.mycompany.app.AppJDBCRealm 
 driverName=com.sybase.jdbc2.jdbc.SybDataSource 
 connectionURL=jdbc:sybase:Tds:db.mycompany.de:5566/DODS000?JCONNECT_VERSION=6
  connectionName=test connectionPassword=test2 userTable=userTable 
 userNameCol=user_nm userCredCol=lng_pwd userRoleTable=roleTable 
 roleNameCol=dc /  This works fine so far but I have to write four of 
 these realm-configurations for 4 different databases. Each database will be 
 used by a different context. So I've put this realm-configuration into a 
 context-element:  Context docBase=${catalina.home}/webapps/app 
 privileged=true antiResourceLocking=false antiJARLocking=true  
 Realm .  /Context  With this configuration it doesn't work 
 anymore. Here is the error I got:  Unexpected error 
 java.lang.SecurityException: Anmeldekonfiguration kann nicht gefunden 
 werden. at 
 com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97) at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at 
 java.lang.Class.newInstance0(Class.java:350) at 
 java.lang.Class.newInstance(Class.java:303) at 
 javax.security.auth.login.Configuration$3.run(Configuration.java:216) at 
 java.security.AccessController.doPrivileged(Native Method) at 
 javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
  at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237) at 
 java.security.AccessController.doPrivileged(Native Method) at 
 javax.security.auth.login.LoginContext.init(LoginContext.java:234) at 
 javax.security.auth.login.LoginContext.init(LoginContext.java:403) at 
 org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347) at 
 org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
 at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:595)   Can someone please help me?  
 Regards, Jason 
 ___ 
 Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage kostenlos 
 testen. http://www.pc-sicherheit.web.de/startseite/?mc=00   
 - To 
 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
 [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
 _
 Watch “Cause Effect,” a show about real people making a real difference.
 http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
 


__
Erweitern Sie FreeMail zu 

Re: mod_jk maintenance, recovery

2008-01-15 Thread Dominik Pospisil
 Indeed. It would be OK to return 503, for requests, that already have
 been received by the first node, but not returned yet. New requests

That's the case. All errors I am getting are from requests which were allready 
in processing by failing node. Why it is OK to return 503 for such requests? 
Why after mod_jk detect failure does not redirect them to second node? I have 
recovery_option attribute set to zero.

I am sorry for disturbing you with questins again, but it is really essential 
for me to learn how mod_jk failover works in detail.

Thanks again,

Dominik

-
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 4.1.30 classloader problem

2008-01-15 Thread ehuard

We've got an application in production on Tomcat 4.1.30 (SDK 1.4.2).
The application works fine in test. In production, however, there seems to
be some kind of degradation.
When there is a certain load (not even very high), the following occurs:
These 2 lines (in several classes, JasperReports as well as our own code):
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
documentBuilder = factory.newDocumentBuilder();

Start to work with the wrong class:
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl
(the XML parser of Axis2)
instead of the wanted class:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

Both classes are in our classpath, but for some reason this problem only
occurs in production after a period of uptime.
This gives NullPointerExceptions.

What should we do to avoid this ?
Is it the classloader of tomcat going strange ?
Any help would be appreciated. 
-- 
View this message in context: 
http://www.nabble.com/Tomcat-4.1.30-classloader-problem-tp14841424p14841424.html
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: AW: tomcat connector 1.2.26 with apache httpd 2.2.3

2008-01-15 Thread Rainer Jung

Hi Günther,

Günther wrote:

Hallo Rainer,

thank you for your fast reply. I guess it's an error in the opensuse
10.2 apache2-devel-2.2.3-22 rpm. MODULE_MAGIC_NUMBER_MINOR is 5 in 
/usr/include/apache2-prefork/ap_mmn.h and

/usr/include/apache2-worker/ap_mmn.h´. The change-logs included in
the files also indicate that they belong to version 2.2.5. Guess I


Yeah, that's really broken then.


finally need an account with the opensuse bugzilla. :-) You think
it's ok to temporarily alter the MODULE_MAGIC_NUMBER_MINOR to 3 to
trick the jk build?


Yes that's OK for the JK build.

Viele Grüße von bonn nach Aachen. Die virtuelle Welt ist klein :)


Regards,

Thorsten Günther


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



multi-level context path

2008-01-15 Thread Edward Quick

Hi
 
I'm running tomcat 5.5.16 on jdk1.5.0_10, Redhat ES4 and having a problem when
I deploy my war file myApp.war. The context path is set to deploy it to 
/dpm/myApp. However tomcat is deploying it to /myApp.
 
On my localhost (with NetBeans) running Java EE 5 SDK Update 4 on tomcat 
6.0.14, the webapp deploys correctly to the path set in the app's context.xml 
though.
 
I've tried changing the myApp.war file name to dpm#myApp.war, and also changing 
conf/ Catalina/localhost/myApp.xml to dpm#myApp.xml but this has not made any 
difference.
 
I also tried upgrading on redhat to tomcat 6.0.14/jdk1.5.0_10, but still no 
difference.
 
Could someone help me out please? I'm really stuck!
 
Thanks,
 
Ed.

_
Who's friends with who and co-starred in what?
http://www.searchgamesbox.com/celebrityseparation.shtml

RE: Context does not work

2008-01-15 Thread Chris Riekenberg

 Yes, it's very bad style - don't do it.  Unless you need some special
 settings for the Context attributes, you don't really need a Context
 element at all.  For your case just name your .war file (or the expanded
 directory under webapps) welcome and you'll have what you want.


Hey Chuck, thanks for this hint. I'm just playing with the tomcat to
get a feeling of the behaviour. And now I know what NOT to do ;-)
thanks a lot.





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



AW: AW: tomcat connector 1.2.26 with apache httpd 2.2.3

2008-01-15 Thread Günther , Thorsten
Ok, that did it. Thanx again.

Regards,
 
Thorsten

-Ursprüngliche Nachricht-
Von: Rainer Jung [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 15. Januar 2008 16:17
An: Tomcat Users List
Betreff: Re: AW: tomcat connector 1.2.26 with apache httpd 2.2.3

Hi Günther,

Günther wrote:
 Hallo Rainer,
 
 thank you for your fast reply. I guess it's an error in the opensuse
 10.2 apache2-devel-2.2.3-22 rpm. MODULE_MAGIC_NUMBER_MINOR is 5 in 
 /usr/include/apache2-prefork/ap_mmn.h and
 /usr/include/apache2-worker/ap_mmn.h´. The change-logs included in
 the files also indicate that they belong to version 2.2.5. Guess I

Yeah, that's really broken then.

 finally need an account with the opensuse bugzilla. :-) You think
 it's ok to temporarily alter the MODULE_MAGIC_NUMBER_MINOR to 3 to
 trick the jk build?

Yes that's OK for the JK build.

Viele Grüße von bonn nach Aachen. Die virtuelle Welt ist klein :)

 Regards,
 
 Thorsten Günther

-
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: Question about apache - tomcat connector

2008-01-15 Thread german . a . luisi
The problem is the next:

I have a webApp (called RS) running in Tomcat; 
http://sscllinuxora03.santiago.cl.jpmorganchase.com:8084/RS

Now I put SSO (SiteMinder) to my app, for that I had to use apache, 
because the SSO work with apache.

So, the url that I have to use is 
http://sscllinuxora03.santiago.cl.jpmorganchase.com

When I go there, I'm authenticated and if everything is ok (with my 
user/pass) 
this SSO add some extra-headers like this:
header=SM_USER=w024461
header=SM_USERDN=uid=W024461,ou=People,dc=bankone,dc=net

After that I'm re-directed to 
http://sscllinuxora03.santiago.cl.jpmorganchase.com:8084 
It's mean the tomcat home page, the root level (/). 

This configuration is located in both: 

1 - /etc/httpd/conf/httpd.conf 
LoadModule jk_module modules/mod_jk-1.2.25-httpd-2.0.59.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel   debug 
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkMount / worker1

2- /etc/httpd/conf/workers.propertie
workers.tomcat_home=/home/tigger/jakarta-tomcat-5.0.28
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=sscllinuxora03.santiago.cl.jpmorganchase.com
worker.worker1.port=8009

If in this point, I try to get the extra-headers, 
I can ge it, for that I used:
Valve className=org.apache.catalina.valves.RequestDumperValve/

That mean, the extra-headers that SiteMinder (SSO) is putting in 
the request are coming to Tomcat. Untils here all is ok.

But now I don't know what configuration I should do it 
if I wanna be re-direct to mi wepApp;
http://sscllinuxora03.santiago.cl.jpmorganchase.com:8084/RS
passing the extra-headers without lossing them.

Need I make some configurations on:
/home/tigger/jakarta-tomcat-5.0.28/webapps/RS/WEB-INF/web.xml
or:
/home/tigger/jakarta-tomcat-5.0.28/conf/server.xml

Thanks a lot !!!

-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase  Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase 
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

Re: Context does not work

2008-01-15 Thread Chris Riekenberg
 A second launch means a second set of servlet instances, second set of
 resources, overall a higher memory footprint and they won't share data.

 Placing this stuff in server.xml does work, but if you want to change
 the config you are required to bounce the tomcat service for changes to
 take effect.  With the Context definitions in separate files, you can
 use the manager webapp to stop/start/restart individual webapps without
 taking down the whole server and all the other webapps tomcat is serving.

That's a very helpful answer. Thank you very very much :-)
As newbie it is confusing, why it is possible to configurate a context
in different files. But with this answer I know why.

-
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: JDBC Realm doesn't work properly

2008-01-15 Thread JasDA
I'm using Tomcat 5.5.9 and my realm-class definetly extends the JDBC realm and 
not the JAAS realm. But it seems that the configuration in my context element 
is not been found. You say that my solution isn't the correct way. Can you show 
me a better way to define different context in the server.xml? Because I found 
my solution somewhere in the www.

Regards,
JasDA

 -Ursprüngliche Nachricht-
 Von: Tomcat Users List users@tomcat.apache.org
 Gesendet: 15.01.08 15:27:30
 An: Tomcat Users List users@tomcat.apache.org
 Betreff: RE: JDBC Realm doesn't work properly


 
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Subject: JDBC Realm doesn't work properly
  
  I'm using a self extended class of JDBC realm to realize a 
  user authentication.
 
 Would you care to tell us the version of Tomcat you're using, or should
 we guess?
 
  So I've put this realm-configuration into a context-element:
 
 Where is your Context element located?
 
  Context docBase=${catalina.home}/webapps/app
 
 A docBase pointing into webapps is never correct; for that matter, the
 docBase attribute is usually not allowed.
 
  java.lang.SecurityException: 
  Anmeldekonfiguration kann nicht gefunden werden.
  ...
  at
 org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:347)
 
 This looks like you've subclassed the JAAS realm, not the JDBC one, and
 it's hunting for the JAAS configuration file.
 
  - 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]
 
 


_
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071distributionid=0066


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



How can I preserve a directory on Deployment?

2008-01-15 Thread Greg Kontos

Hello,

  I have an application with an uploads directory located within the 
project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )


  When I redeploy my .war file I want this upload directory to remain 
unchanged.  Is there a way for me to tell Tomcat to leave this directory 
unchanged when the .war file is unpacked?
  If not, I suppose I need to move my uploads directory to something 
like $TOMCAT_HOME/uploads ... or is there a better place for an upload 
folder to live on the server?


  Thanks for any help,

 G. Kontos

-
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: SecurityException when starting TomCat

2008-01-15 Thread Caldarale, Charles R
 From: Bob the BlueBerry [mailto:[EMAIL PROTECTED] 
 Subject: SecurityException when starting TomCat
 
 Can you tell me how to fix this?

 java.lang.SecurityException: Servlet of class 
 org.apache.catalina.servlets.InvokerServlet 
 is privileged and cannot be loaded by 
 this web application

Don't use the InvokerServlet - it's certifiably evil:
http://wiki.apache.org/tomcat/FAQ/Miscellaneous?highlight=%28invoker%29

Use the proper servlet mappings, and the see if you've got a problem.

 - 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: comet questions

2008-01-15 Thread Peter Warren
Anyone else experiencing comet timeout problems with the nio connector
and the latest 6.0.x trunk?

My cometEvent.setTimeout(...) setting is ignored, but I do receive
comet timeouts based on the connectionTimeout setting for the nio
connector.  Setting the connectionTimeout to 10 secs gives me a comet
timeout event every 10 secs.  Setting it to 2 mins gives a comet
timeout every 2 mins.

The docs don't mention any link between the connectionTimeout settings
and comet timeout events that I can find.

Connector config:
Connector port=80
protocol=org.apache.coyote.http11.Http11NioProtocol maxThreads=500
connectionTimeout=1 keepAliveTimeout=3
maxKeepAliveRequests=-1 socket.soKeepAlive=true
socket.appReadBufSize=2048 socket.appWriteBufSize=2048
socket.rxBufSize=2048 socket.txBufSize=2048
acceptorThreadCount=2 redirectPort=8443 /

On Jan 9, 2008 12:23 PM, Peter Warren [EMAIL PROTECTED] wrote:
 Using the nio connector from the latest 6.0.x trunk, I'm failing to
 receive any comet timeouts.  I set the comet timeout to 5 secs but,
 after waiting much longer than 5 secs, the only two events I receive
 are begin and read.

 event: BEGIN, subtype: null
 for servlet: com.seekspeak.server.debug.CometTestServlet
 time: Wed Jan 09 12:12:28 PST 2008
 on cometEvent: [EMAIL PROTECTED]
 with org.apache.tomcat.comet.timeout attribute: null
 with org.apache.tomcat.comet.timeout.support attribute: true
 event: READ, subtype: null
 for servlet: com.seekspeak.server.debug.CometTestServlet
 time: Wed Jan 09 12:12:28 PST 2008
 on cometEvent: [EMAIL PROTECTED]
 with org.apache.tomcat.comet.timeout attribute: 5000
 with org.apache.tomcat.comet.timeout.support attribute: true

 I see that the Http11NioProcessor changed some comet timeout specific
 code from the previous rev.  Could this be having an impact?

 Below is my test client and test servlet.  Am I doing something wrong?

 Thanks,
 Peter

 SERVLET
 ---
 public class CometTestServlet extends HttpServlet implements CometProcessor {

 public void event(CometEvent cometEvent) throws IOException,
 ServletException {
 System.out.println(event:  + cometEvent.getEventType() + ,
 subtype:  + cometEvent.getEventSubType());
 System.out.println(\tfor servlet:  + this.getClass().getName());
 System.out.println(\ttime:  + new Date(System.currentTimeMillis()));
 System.out.println(\ton cometEvent:  + cometEvent);
 System.out.println(\twith \org.apache.tomcat.comet.timeout\
 attribute: 
 +
 cometEvent.getHttpServletRequest().getAttribute(org.apache.tomcat.comet.timeout));
 System.out.println(\twith
 \org.apache.tomcat.comet.timeout.support\ attribute: 
 +
 cometEvent.getHttpServletRequest().getAttribute(org.apache.tomcat.comet.timeout.support));
 if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) {
 cometEvent.setTimeout(5 * 1000);
 } else if (cometEvent.getEventType() == CometEvent.EventType.ERROR) {
 cometEvent.close();
 } else if (cometEvent.getEventType() == CometEvent.EventType.END) {
 cometEvent.close();
 } else if (cometEvent.getEventType() == CometEvent.EventType.READ) {
 handleReadEvent(cometEvent);
 }
 }


 private void handleReadEvent(CometEvent cometEvent) throws
 IOException, ServletException {
 ServerCometChannel talker = new ServerCometChannel(cometEvent);
 respond(talker);
 }

 private void respond(ServerCometChannel channel) throws IOException {
 String clientMessage = channel.receive();
 if (clientMessage != null  clientMessage.length()  0) {
 channel.send(comet succeeded);
 }
 }

 private class ServerCometChannel {

 private static final int OUTPUT_BUFFER_SIZE = 512;

 private CometEvent cometEvent;

 private InputStream inputStream;

 private PrintWriter outputWriter;

 public ServerCometChannel(CometEvent cometEvent) throws
 IOException, ServletException {
 this.cometEvent = cometEvent;
 inputStream = cometEvent.getHttpServletRequest().getInputStream();
 OutputStream outputStream =
 cometEvent.getHttpServletResponse().getOutputStream();
 this.outputWriter = new PrintWriter(new BufferedWriter(new
 OutputStreamWriter(outputStream),
 OUTPUT_BUFFER_SIZE));
 }

 private String receive() throws IOException {
 StringBuffer buffer = new StringBuffer();
 byte[] buf = new byte[512];
 while (inputStream.available()  0) {
 int n = inputStream.read(buf);
 if (n  0) {
 buffer.append(new String(buf, 0, n));
 }
 }
 return buffer.toString();
 }

 public void send(String 

Re: comet client doesn't receive server response

2008-01-15 Thread Leonardo Fraga

Hello,

I've had problems with long http responses and some kind of antiviruses 
and internet firewalls (avg family, basically).
They put a hook on the winsocket stack for http connections and buffer 
everything you are receiving, until the end (or some high amount of 
data), to run the checks. In my case, this buffering lasts for minutes, 
with no byte sent back to the browser.


I think this can be a simple point to check...

Hugs,

Leonardo Fraga
Web Developer
[EMAIL PROTECTED]

Peter Warren wrote:


I posted this question along with some others recently.  I'm
re-posting it in its own thread with some additional information.

I have a comet client app that works on all the machines I've tested
except one.  The failing machine sends a comet request to the server
and then waits indefinitely for the response, even though the server
has sent the response and flushed the buffer.  I'm trying to figure
out why the client doesn't receive the response and would really
appreciate any tips.

Server is latest from 6.0.x trunk and using nio connector.

Failing machine info:
- runs windows xp
- windows firewall is turned off
- fails on multiple networks, so it doesn't seem to be a router or
firewall issue
- computer has no problem with other network access
- same test code pointed at a non-comet servlet (simply changing the
url) succeeds!!!

I used a socket monitoring tool to see if the client machine receives
the response at all.  It doesn't appear to.  Below are traces from a
successful machine and the failing machine.  I'm not a sockets expert,
so I don't really know what to look for, but the two things that stand
out to me are:
- failing machine uses localhost ip instead of its LAN ip (which is
192.168.1.102 according to ipconfig)
 - succeeding machine uses LAN ip
 - I don't understand why they're different
- failing machine receives WSAEWOULDBLOCK error instead of server response

I believe the WSAEWOULDBLOCK basically indicates that there's nothing
on the socket to be read, which seems to indicate that the failing
machine never receives the response at all.

Is this a comet problem?  Is it a routing problem?  Anyone have any
ideas for what the problem might be?  Any tips on what I should
investigate next?

Thanks,
Peter

SUCCEEDING MACHINE SOCKET TRACE
=
Connect 
Address:   66.241.85.247:80
Return Value:  0
Error Code:0

GetSockName 
Address:   192.168.1.133:1104
Return Value:  0
Error Code:0

SetSockOpt -
Level: SOL_SOCKET
Opt Name:  SO_KEEPALIVE
Opt Len:   4
Return Value:  0
Error Code:0
01 00 00 00 

Send ---
Address:   192.168.1.133:1104 = 66.241.85.247:80
Flags: 0
Return Value:  0
Error Code:0
Data:
POST /servlet/Receive HTTP/1.1
Host: www.seekspeak.com
User-Agent: SeekSpeak
Connection: keep-alive
Content-Type: text/plain
Transfer-Encoding: chunked

2c
source_chat_id=192.168.1.1%3A486547763981705


Recv ---
Address:   192.168.1.133:1104 = 66.241.85.247:80
Flags: 0
Return Value:  0
Error Code:0
Data:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=4618F4394D4924A5629628ED1CD2ADDE; Path=/
Transfer-Encoding: chunked
Date: Thu, 10 Jan 2008 07:55:05 GMT

49
OK
COMMAND
INVITATION_ACCEPTED
tutorial_client
Invitation accepted...


FAILING MACHINE SOCKET TRACE
=
Connect 
Address:   66.241.85.247:80
Return Value:  0
Error Code:0

GetSockName 
Address:   127.0.0.1:2085
Return Value:  0
Error Code:0

SetSockOpt -
Level: SOL_SOCKET
Opt Name:  SO_KEEPALIVE
Opt Len:   4
Return Value:  0
Error Code:0
01 00 00 00 

Send ---
Address:   127.0.0.1:2085 = 66.241.85.247:80
Flags: 0
Return Value:  0
Error Code:0
Data:
POST /servlet/Receive HTTP/1.1
Host: www.seekspeak.com
User-Agent: SeekSpeak
Connection: keep-alive
Content-Type: text/plain
Transfer-Encoding: chunked

2c
source_chat_id=192.168.1.1%3A485374421886120


Select -
Return Value:  0
Error Code:0

Recv ---
Address:   127.0.0.1:2077 = 66.241.85.247:80
Flags: 0
Return Value:  -1
Error Code:WSAEWOULDBLOCK

-
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 4.1.30 classloader problem

2008-01-15 Thread Caldarale, Charles R
 From: ehuard [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 4.1.30 classloader problem
 
 Both classes are in our classpath

The red flag just went up.  When you say classpath, are you referring
to the CLASSPATH variable?  Even on 4.1 levels, you should never be
setting that, nor should you add anything to Tomcat's -cp value on the
command line.

Jars and classes used by webapps normally go in the webapp's WEB-INF/lib
and WEB-INF/classes directories.  If classes must be shared across
webapps, then Tomcat's shared/lib (or shared/classes) is the appropriate
location; if classes need to be visible to both Tomcat and webapps, then
common/lib (or common/classes) should be used.

Here's the doc:
http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html

 - 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: JDBC Realm doesn't work properly

2008-01-15 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: JDBC Realm doesn't work properly
 
 I'm using Tomcat 5.5.9 and my realm-class definetly extends 
 the JDBC realm and not the JAAS realm.

However, your stack trace shows that the authentication is going through
JAAS.  Looks like somewhere you have configured or extended the
JAASRealm.  I suppose it's possible that such an old level of 5.5 (it
came out almost 3 years ago) might have a bug in it regarding Realm
selection, but I've never heard of it.

 Can you show me a better way to define different context
 in the server.xml? 

As is frequently discussed on this list, Context elements should not
be placed in server.xml; read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Your Context elements would normally be placed in each webapp's
META-INF/context.xml file.  Neither the path nor the docBase attributes
should be used in this case.

 Because I found my solution somewhere in the www.

Unfortunately, the Internet is strong evidence that Sturgeon's law may
have been optimistic.

 - 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: One of my boxes, the cluster is not working anymore

2008-01-15 Thread Filip Hanik - Dev Lists
question is, why are you using tcpdump, when you need to track down UDP 
packets :)


the reason there is no membership established is because the machine is 
not receiving multicast packets (UDP), so that's what you need to track down


Filip

Randy Paries wrote:

On Jan 7, 2008 2:49 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  

easiest way to see your packets fly by, is to use wireshark and just
sniff UDP packets

Filip


Randy Paries wrote:


On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

  

org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions
INFO: Manager []: skipping state transfer. No members active in cluster group.

this indicates that the box not working, is not receiving multicast
messages from the other nodes.
you'd need to look into the multicasting configuration in server.xml and
also on your box/network

Filip


Randy Paries wrote:



Hello,
I need some help.
I rolled out a new version of my web app last night
Stopped and started tomcat and now one of my boxes (they all have the
same webapp) will not attach(if that is the correct term) to the
cluster. I am doing session sharing between three tomcat servers.  I
did not change any of the server.xml stuff
I am running tomcat 5.5.15

Please help ASAP, this is a production box and not sure what to do.

this is from the catalina.out on a working Box.

  

///Stuff Deleted ---

Filip,

thanks for responding.

All three boxes have this in the server.xml

Any ideas on how to test to see if this one box is recieving multicast messages?

Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.9
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=auto
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=35/

Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve className=org.apache.catalina.cluster.tcp.ReplicationValve

filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/

ClusterListener
className=org.apache.catalina.cluster.session.ClusterSessionListener/
/Cluster

  



Hello,

So here is an update, still struggling  with this problem.
if I do a tcpdump port 4001, i can see lots of traffic on box2 and
box3 but none on box 1

so tonight i swapped out eth1 (i was told that maybe a nic card could
not transmit UDP)
i also went into the server.xml and forced tcpListenAddress to eth1 on each box.
tcpdump port 4001 -i eth1 gives me traffic on box2 and box3 but not box1

i am no longer getthing the exception on boot up, all get now is:
INFO: Cluster is about to start
Jan 8, 2008 11:06:08 PM
org.apache.catalina.cluster.tcp.ReplicationTransmitter start
INFO: Start ClusterSender at cluster
Catalina:type=Cluster,host=localhost with name
Catalina:type=ClusterSender,host=localhost
Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 2000 secs to establish cluster membership
Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.mcast.McastService
registerMBean
INFO: membership mbean registered
(Catalina:type=ClusterMembership,host=localhost)
Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager start
INFO: Register manager  to cluster element Host with name localhost
Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager at
Jan 8, 2008 11:06:11 PM
org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions
INFO: Manager []: skipping state transfer. No members active in cluster group.

-
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: multi-level context path

2008-01-15 Thread Caldarale, Charles R
 From: Edward Quick [mailto:[EMAIL PROTECTED] 
 Subject: multi-level context path
 
 The context path is set to deploy it to /dpm/myApp.

What context path?  If you're talking about the path attribute of the
Context element, it must not be used unless the Context element is
in server.xml (strongly discouraged).  The best you can hope for is that
the path attribute will be ignored.

 However tomcat is deploying it to /myApp.

What mechanism are you using to deploy your webapp?

 I've tried changing the myApp.war file name to dpm#myApp.war, 

That's not effective; the # delimiter is only recognized in the appname
when using a Context element located in a
conf/Catalina/[host]/[appname].xml file.  When using the multi-level
appname, the webapp .war file or directory must be located outside of
the Host appBase (usually webapps), or you'll get double deployment
and related confusion.

 - 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: sessions not cleaned up after expiry

2008-01-15 Thread Eqbal
Thanks Bill!
Is there a bug report I can look at for this? I tried
searching on the website but could not locate it. 
Also to which version should I upgrade, a minor
upgrade or to major version 6?
I am going to have a hard time upgrading as one of the
third party proprietary package we use only supports
this version. If I can find a documented bug report it
may make it easier for me to go to the vendor and
demand support for an upgraded tomcat.

Thanks.
--- Bill Barker [EMAIL PROTECTED] wrote:

 
 Eqbal [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  Hi,
 
  I am noticing the in one of our webapps sessions
 are
  not getting cleaned up long after they have
 expired.
  Our session expiry time is set to 30 min. I am
 using
  lambdaprobe to monitor the sessions and it appears
  that all of these sessions contain one attribute,
  __lambda_probe_la_ip.
  I am using Tomcat 5.5.16
  This is happenning for just one of the webapp.
 There
  are few other webapps deployed where I do not see
 a
  problem.
 
  Can someone give me some pointers on how to
  troubleshoot this?
 
 
 There is a bug in that version that may cause
 sessions to never actually 
 expire.  Upgrading should fix it.
 
  I think this may eventually lead to OutOfMemory
  exception after a number of days (its growing very
  slowly).
 
  Thanks.
 
 
  
 


  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now. 
 

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 

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



  

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: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread Mark Thomas

Christopher Schultz wrote:

Cuco,

cuco2772 wrote:
| So it seems to be complaining about my context.xml. The offending line
| looks to be :
|
|  Context path=/DBTest docBase=DBTest
| debug=5 reloadable=true crossContext=true
|
| Could the path attribute be incorrect ? I followed the directions
| exactly.

I think those instructions have been (sadly) broken for a long time. I'm
not sure why nobody has fixed them:


Which bit do you think is broken?

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: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread Mark Thomas

Christopher Schultz wrote:

Cuco,

cuco2772 wrote:
| So it seems to be complaining about my context.xml. The offending line
| looks to be :
|
|  Context path=/DBTest docBase=DBTest
| debug=5 reloadable=true crossContext=true
|
| Could the path attribute be incorrect ? I followed the directions
| exactly.

I think those instructions have been (sadly) broken for a long time. I'm
not sure why nobody has fixed them:


Which bit do you think is broken?

As to the why - Tomcat is a community to which we all contribute. Given 
this, the question is really 'Why haven't you done something about it?'


If you spot a mistake - create a bugzilla entry. Better yet, provide a 
patch to fix it.


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: One of my boxes, the cluster is not working anymore

2008-01-15 Thread Randy Paries
Filip

So here is what i do not understand , and i appreciate your help.
1) I have completely swapped out the hardware. Entirely new box.
2) completely new OS, FC4 to centos 5
3) same version of tomcat and same config files.
4) tried two different switches.
5) no fw or iptables currently running.

that is what is so confusing . The other servers seem to bee running fine.

Randy

On Jan 15, 2008 12:27 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 question is, why are you using tcpdump, when you need to track down UDP
 packets :)

 the reason there is no membership established is because the machine is
 not receiving multicast packets (UDP), so that's what you need to track down


 Filip

 Randy Paries wrote:
  On Jan 7, 2008 2:49 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 
  easiest way to see your packets fly by, is to use wireshark and just
  sniff UDP packets
 
  Filip
 
 
  Randy Paries wrote:
 
  On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 
 
  org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions
  INFO: Manager []: skipping state transfer. No members active in cluster 
  group.
 
  this indicates that the box not working, is not receiving multicast
  messages from the other nodes.
  you'd need to look into the multicasting configuration in server.xml and
  also on your box/network
 
  Filip
 
 
  Randy Paries wrote:
 
 
  Hello,
  I need some help.
  I rolled out a new version of my web app last night
  Stopped and started tomcat and now one of my boxes (they all have the
  same webapp) will not attach(if that is the correct term) to the
  cluster. I am doing session sharing between three tomcat servers.  I
  did not change any of the server.xml stuff
  I am running tomcat 5.5.15
 
  Please help ASAP, this is a production box and not sure what to do.
 
  this is from the catalina.out on a working Box.
 
 
  ///Stuff Deleted ---
 
  Filip,
 
  thanks for responding.
 
  All three boxes have this in the server.xml
 
  Any ideas on how to test to see if this one box is recieving multicast 
  messages?
 
  Cluster 
  className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
  managerClassName=org.apache.catalina.cluster.session.DeltaManager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true
 
  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.9
  mcastPort=45564
  mcastFrequency=500
  mcastDropTime=3000/
 
  Receiver
  
  className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=auto
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=35/
 
  Sender
 
  className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
  replicationMode=pooled
  ackTimeout=15000/
 
  Valve 
  className=org.apache.catalina.cluster.tcp.ReplicationValve
 
  filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/
 
  Deployer
  className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/tmp/war-deploy/
watchDir=/tmp/war-listen/
watchEnabled=false/
 
  ClusterListener
  className=org.apache.catalina.cluster.session.ClusterSessionListener/
  /Cluster
 
 
 
 
  Hello,
 
  So here is an update, still struggling  with this problem.
  if I do a tcpdump port 4001, i can see lots of traffic on box2 and
  box3 but none on box 1
 
  so tonight i swapped out eth1 (i was told that maybe a nic card could
  not transmit UDP)
  i also went into the server.xml and forced tcpListenAddress to eth1 on each 
  box.
  tcpdump port 4001 -i eth1 gives me traffic on box2 and box3 but not box1
 
  i am no longer getthing the exception on boot up, all get now is:
  INFO: Cluster is about to start
  Jan 8, 2008 11:06:08 PM
  org.apache.catalina.cluster.tcp.ReplicationTransmitter start
  INFO: Start ClusterSender at cluster
  Catalina:type=Cluster,host=localhost with name
  Catalina:type=ClusterSender,host=localhost
  Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.mcast.McastService start
  INFO: Sleeping for 2000 secs to establish cluster membership
  Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.mcast.McastService
  registerMBean
  INFO: membership mbean registered
  (Catalina:type=ClusterMembership,host=localhost)
  Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.deploy.FarmWarDeployer 
  start
  INFO: Cluster FarmWarDeployer started.
  Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager 
  start
  

Re: How can I preserve a directory on Deployment?

2008-01-15 Thread Filip Hanik - Dev Lists
you answered your own question, yes, move the directory external to the 
webapp


Filip

Greg Kontos wrote:

Hello,

  I have an application with an uploads directory located within the 
project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )


  When I redeploy my .war file I want this upload directory to remain 
unchanged.  Is there a way for me to tell Tomcat to leave this 
directory unchanged when the .war file is unpacked?
  If not, I suppose I need to move my uploads directory to something 
like $TOMCAT_HOME/uploads ... or is there a better place for an upload 
folder to live on the server?


  Thanks for any help,

 G. Kontos

-
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: One of my boxes, the cluster is not working anymore

2008-01-15 Thread José Manuel Molina Pascual
Hello, I'm not sure that this is your case but I suffered  similar
issue when deploying an instance of the cluster in a machine with
several interfaces, (One ethernet interface and two installed by
VMWare, It was a Windows box).

I disabled the VMWare interfaces and the the instance began to receive
MCast packets. It seems to me that this is not your configuration but
just in case

-- 
The complexity of software is an essential property, not an accidental one.

Our ignorance is God; what we know is science. (Robert Ingersoll).

Religion is regarded by the common people as true, by the wise as
false, and by the rulers as useful. (Edward Gibbon)

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



Fwd: Mobicents Sip-Servlets 0.1 Released (running on top of Tomcat 5.x)

2008-01-15 Thread Jean Deruelle
Hello Tomcat,

Prior to making the announcement, I would like to thank Tomcat
community and contributors since Tomcat is really a pleasure to work
with and nice to extend.
You guys are making a great job, so keep up the good work. I hope that
you won't consider this a as a spam or what not, this is rather a
proof of concept and a way of saying thanks

We are happy to announce Mobicents Sip Servlets v 0.1.

Mobicents Sip Servlets implementation is based on the sip servlets
v1.1 in progess specification (JSR 289) and run currently on top of
Tomcat 5.x.
(upcoming version 0.2 will run on top of Tomcat 6)
The highlights of this release are support for Servlet Loading in
Tomcat 5.x container,
Application Routing, Proxying, B2BUA (currently limited to 2 call
legs), Http Converged Applications, Sessions and Timers and a first
set of examples to get started with.

What is included in this release:
-
* Core Mobicents Sip Servlets Server
* Educational examples: Click To Call, Call Blocking - Call Forwarding
(both working standalone or composed), Speed Dial - Location Service
(both working standalone or composed)


Project site :
---
https://sip-servlets.dev.java.net


Where to download from?
---
The distribution can be found on java.net. The main binary package is
Sip-Servlet-0.1_Apache-Tomcat-5.5.25.zip :
https://sip-servlets.dev.java.net/source/browse/*checkout*/sip-servlets/trunk/sip-servlets-bootstrap/release/Sip-Servlet-0.1_Apache-Tomcat-5.5.25.zip?rev=370


SVN tag:

release-0.1


Source repositories:
---
* SVN
https://sip-servlets.dev.java.net/source/browse/sip-servlets/


How to get started:
---
You'll find online instructions at
https://sip-servlets.dev.java.net/installation.html on how to get the
server running.
Once the server is running, you'll find online instructions at
https://sip-servlets.dev.java.net/examples/examples.html to try out
the examples.

Alternatively, there is a README file in the top directory of the zip file.
SIP-SERVLETS-README.txt


Roadmap
-
To check our progress and know what lies ahead for the sip servlets
project, please check out
https://sip-servlets.dev.java.net/roadmap.html



Looking forward to your feedback:
-
please feel free to post a mail on the dev list at
[EMAIL PROTECTED] or post an issue in the bugtracker at
https://sip-servlets.dev.java.net/servlets/ProjectIssues

Mobicents Sip Servlets Team

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



Problems with VirtualWebappLoader (Was RE: Tomcat 6.0.x Classloader sequence)

2008-01-15 Thread uma_rk
Env: JRE1.6, Tomcat 6.0.14

Following on an earlier thread: I am trying to place the libraries common
to a number of webapp contexts in a common directory (${catalina.home}/myapplib)
and configure the VirtualWebappLoader with the list of jarfiles for loading by
each webapp context.

My problem is that I need to specify the path to the libraries in a 
platform-independent manner:
when I attempt

Loader className=org.apache.catalina.loader.VirtualWebappLoader
  virtualClasspath=/home/tomcat/myapplib/activation-1.0.2.jar:...
/

it works perfectly. When I however do the following (in an attempt to make it
platform- and location-independent specification), it fails  to find the 
libraries:

   Loader className=org.apache.catalina.loader.VirtualWebappLoader
  virtualClasspath=${catalina.home}/dmslib/activation-1.0.2.jar; ...
   /

There are three platform/location specific elements here which I need to get 
rid of:
   1) catalina.home
   2) path separator: '\' vs '/' for windoze and *nix)
   3) field separate: ';' vs ':' for windoze and *nix)

Is there a way to do this? 
Thanks,

/U

 -- Original message --
From: Caldarale, Charles R [EMAIL PROTECTED]
  From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
  Subject: RE: Tomcat 6.0.x Classloader sequence
  
   Is it possible for me to configure the webapp class 
   loaders to load classes from a path common to multiple
   webapps before loading from the webapp itself?
 
  Browsing through the Tomcat source does turn up something called
  VirtualWebappLoader; the comments therein indicate this is intended to
  provide what you want.
  
  I couldn't actually get it to work, but it is intriguing...
 
 With a little more playing around, I did get it to work.  Your webapps
 will need a Context similar to the following:
 
 Context
   Loader className=org.apache.catalina.loader.VirtualWebappLoader
   virtualClasspath=C:/dir/classes/
 /Context
 
 I assume if you put this in conf/context.xml, it will apply to all
 webapps.  Multiple locations can be given in the virtualClasspath
 attribute by separating them with semicolons; each jar must be specified
 separately.
 
 Using the MBeans tab of JConsole, you can see the paths used by each
 individual classloader; look in the Catalina - Loader - appname -
 hostname - Attributes for classpath.
 
  - 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: One of my boxes, the cluster is not working anymore

2008-01-15 Thread Martin Gainty
yes you should start tc first..
then (if necessary) change VMWare port number
http://www.vmware.com/support/gsx3/doc/manage_portnum_gsx.html

Saludos
Martin
- Original Message -
From: José Manuel Molina Pascual [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, January 15, 2008 3:01 PM
Subject: Re: One of my boxes, the cluster is not working anymore


 Hello, I'm not sure that this is your case but I suffered  similar
 issue when deploying an instance of the cluster in a machine with
 several interfaces, (One ethernet interface and two installed by
 VMWare, It was a Windows box).

 I disabled the VMWare interfaces and the the instance began to receive
 MCast packets. It seems to me that this is not your configuration but
 just in case

 --
 The complexity of software is an essential property, not an accidental
one.

 Our ignorance is God; what we know is science. (Robert Ingersoll).

 Religion is regarded by the common people as true, by the wise as
 false, and by the rulers as useful. (Edward Gibbon)

 -
 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: sessions not cleaned up after expiry

2008-01-15 Thread Len Popp
There was a bug fix in 5.5.21 that may be the same problem as yours.
Changelog: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
(scroll down to 5.5.21)
Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=37356
-- 
Len


On Jan 15, 2008 1:39 PM, Eqbal [EMAIL PROTECTED] wrote:
 Thanks Bill!
 Is there a bug report I can look at for this? I tried
 searching on the website but could not locate it.
 Also to which version should I upgrade, a minor
 upgrade or to major version 6?
 I am going to have a hard time upgrading as one of the
 third party proprietary package we use only supports
 this version. If I can find a documented bug report it
 may make it easier for me to go to the vendor and
 demand support for an upgraded tomcat.

 Thanks.

 --- Bill Barker [EMAIL PROTECTED] wrote:

 
  Eqbal [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi,
  
   I am noticing the in one of our webapps sessions
  are
   not getting cleaned up long after they have
  expired.
   Our session expiry time is set to 30 min. I am
  using
   lambdaprobe to monitor the sessions and it appears
   that all of these sessions contain one attribute,
   __lambda_probe_la_ip.
   I am using Tomcat 5.5.16
   This is happenning for just one of the webapp.
  There
   are few other webapps deployed where I do not see
  a
   problem.
  
   Can someone give me some pointers on how to
   troubleshoot this?
  
 
  There is a bug in that version that may cause
  sessions to never actually
  expire.  Upgrading should fix it.
 
   I think this may eventually lead to OutOfMemory
   exception after a number of days (its growing very
   slowly).
  
   Thanks.
  
  
  
  
 
 
   Be a better friend, newshound, and
   know-it-all with Yahoo! Mobile.  Try it now.
  
 
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
 
 -
   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]
 
 



   
 
 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]



-
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 configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread cuco2772

Just a follow up.  I copied the 2nd Context to META-INF/context.xml and it
worked !
It's kind of funny because I was saying to myself There is 0% chance this
is going to work  to prepare
myself for the usual failures and multitudes of tries it's taken to get
things to work up to now.
I guess I was surprised that things worked after only the third or 4th try.
Thanks David !


David Smith-2 wrote:
 
 Yes -- your on the right path now.  Your email seems to have crossed 
 with mine.  Take the Context   element for DBTest out of 
 conf/context.xml and put it in one of these two places -- 
 conf/Catalina/localhost/DBTest.xml or
 webapps/DBTest/META-INF/context.xml):
 
 All it needs to contain is:
 
  Context
   Resource name=jdbc/TestDB auth=Container
 type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=1
 username=javauser password=javadude
 driverClassName=com.mysql.jdbc.Driver
 
 url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/
 /Context
 
 --David
 
 cuco2772 wrote:
 I'm starting to think that putting that Context in the main
 conf/context.xml
 is not the way to go.
 It makes my other test webapp 'cucoweb' break. Should I put this Context
 in
 a context.xml within
 DBTest, ie, in the DBTest directory, or some subdirectory of it ?  Should
 I
 rename it to DBTest.xml ?
  


 cuco2772 wrote:
   
 This context.xml is the one in /conf. From what I understand (and
 according to the apache site) this
 is where you put stuff that you want to be loaded by all webapps.
 The /META-INF/context.xml would be for things that are more application
 specific.(I'm making an educated guess here).  Here is what my
 /conf/context.xml looks like:

 !-- The contents of this file will be loaded for each web application
 --
 Context

 !-- Default set of monitored resources --
 WatchedResourceWEB-INF/web.xml/WatchedResource

 !-- Uncomment this to disable session persistence across Tomcat
 restarts --
 !--
 Manager pathname= /
 --

 !-- Uncomment this to enable Comet connection tacking (provides
 events
  on session expiration as well as webapp lifecycle) --
 !--
 Valve
 className=org.apache.catalina.valves.CometConnectionManagerValve /
 --

 /Context

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

 !-- maxActive: Maximum number of dB connections in pool. Make sure
 you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --

 !-- maxIdle: Maximum number of idle dB connections to retain in
 pool.
  Set to -1 for no limit.  See also the DBCP documentation on
 this
  and the minEvictableIdleTimeMillis configuration parameter.
  --

 !-- maxWait: Maximum time to wait for a dB connection to become
 available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --

 !-- username and password: MySQL dB username and password for dB
 connections  --

 !-- driverClassName: Class name for the old mm.mysql JDBC driver is
  org.gjt.mm.mysql.Driver - we recommend using Connector/J
 though.
  Class name for the official MySQL Connector/J driver is
 com.mysql.jdbc.Driver.
  --

 !-- url: The JDBC connection url for connecting to your MySQL dB.
  The autoReconnect=true argument to the url makes sure that the
  mm.mysql JDBC Driver will automatically reconnect if mysqld
 closed the
  connection.  mysqld by default closes idle connections after 8
 hours.
  --

   Resource name=jdbc/TestDB auth=Container
 type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=javauser password=javadude
 driverClassName=com.mysql.jdbc.Driver
   
 url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/

 /Context

 I added the second Context element  and all the stuff within. 
 Originally
 it was just the first Context
 element, and the stuff there.

 Should I have put that second Context element in /META-IINF instead ?


 cuco2772 wrote:
 
 I set up the test app and the database as per the instructions provided
 on that link you gave me which
 I will reproduce here :

 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

 I put everything within the Context ... element (under heading
 2.Context
 Configuration) into 
 a separate Context element in conf/context.xml.  (Underneath the first
 one)

 Inside webapps I created a directory called DBTest for the webapp.
 Inside
 that I created a WEB-INF
 subdirectory, and put a web.xml with the contents of everything under 
 heading 3. web.xml configuration.  I added a subdirectory /lib to
 WEB-INF
 into which I copied
 both jstl.jar and 

Re: How can I preserve a directory on Deployment?

2008-01-15 Thread Greg Kontos

Thanks Filip.  I figured I'd check for other options before moving ahead

Filip Hanik - Dev Lists wrote:
you answered your own question, yes, move the directory external to 
the webapp


Filip

Greg Kontos wrote:

Hello,

  I have an application with an uploads directory located within the 
project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads )


  When I redeploy my .war file I want this upload directory to remain 
unchanged.  Is there a way for me to tell Tomcat to leave this 
directory unchanged when the .war file is unpacked?
  If not, I suppose I need to move my uploads directory to something 
like $TOMCAT_HOME/uploads ... or is there a better place for an 
upload folder to live on the server?


  Thanks for any help,

 G. Kontos

-
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: Problems with VirtualWebappLoader (Was RE: Tomcat 6.0.x Classloader sequence)

2008-01-15 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: Problems with VirtualWebappLoader (Was RE: Tomcat 
 6.0.x Classloader sequence)
 
 Following on an earlier thread: I am trying to place 
 the libraries common to a number of webapp contexts
 in a common directory (${catalina.home}/myapplib)

Have you thought about just configuring this in the shared classloader
in conf/catalina.properties?

 - 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: comet client doesn't receive server response

2008-01-15 Thread Peter Warren
What is interesting to me is that the exact same client code only
using a different url (i.e. to a normal http servlet, not a comet
servlet) succeeds.  Is there something in comet response headers that
an antivirus app or firewall would pick up on?  Why would a request to
a normal servlet succeed and a comet servlet fail?  Keep in mind the
comet servlet has been shown to be funtional on numerous other
machines.

I believe I disabled all firewalls and antivirus on the suspect
machine, but I will double-check.

Thanks for your response,
Peter

On Jan 15, 2008 9:37 AM, Leonardo Fraga
[EMAIL PROTECTED] wrote:
 Hello,

 I've had problems with long http responses and some kind of antiviruses
 and internet firewalls (avg family, basically).
 They put a hook on the winsocket stack for http connections and buffer
 everything you are receiving, until the end (or some high amount of
 data), to run the checks. In my case, this buffering lasts for minutes,
 with no byte sent back to the browser.

 I think this can be a simple point to check...

 Hugs,

 Leonardo Fraga
 Web Developer
 [EMAIL PROTECTED]


 Peter Warren wrote:

 I posted this question along with some others recently.  I'm
 re-posting it in its own thread with some additional information.
 
 I have a comet client app that works on all the machines I've tested
 except one.  The failing machine sends a comet request to the server
 and then waits indefinitely for the response, even though the server
 has sent the response and flushed the buffer.  I'm trying to figure
 out why the client doesn't receive the response and would really
 appreciate any tips.
 
 Server is latest from 6.0.x trunk and using nio connector.
 
 Failing machine info:
 - runs windows xp
 - windows firewall is turned off
 - fails on multiple networks, so it doesn't seem to be a router or
 firewall issue
 - computer has no problem with other network access
 - same test code pointed at a non-comet servlet (simply changing the
 url) succeeds!!!
 
 I used a socket monitoring tool to see if the client machine receives
 the response at all.  It doesn't appear to.  Below are traces from a
 successful machine and the failing machine.  I'm not a sockets expert,
 so I don't really know what to look for, but the two things that stand
 out to me are:
 - failing machine uses localhost ip instead of its LAN ip (which is
 192.168.1.102 according to ipconfig)
   - succeeding machine uses LAN ip
   - I don't understand why they're different
 - failing machine receives WSAEWOULDBLOCK error instead of server response
 
 I believe the WSAEWOULDBLOCK basically indicates that there's nothing
 on the socket to be read, which seems to indicate that the failing
 machine never receives the response at all.
 
 Is this a comet problem?  Is it a routing problem?  Anyone have any
 ideas for what the problem might be?  Any tips on what I should
 investigate next?
 
 Thanks,
 Peter
 
 SUCCEEDING MACHINE SOCKET TRACE
 =
 Connect 
 Address:   66.241.85.247:80
 Return Value:  0
 Error Code:0
 
 GetSockName 
 Address:   192.168.1.133:1104
 Return Value:  0
 Error Code:0
 
 SetSockOpt -
 Level: SOL_SOCKET
 Opt Name:  SO_KEEPALIVE
 Opt Len:   4
 Return Value:  0
 Error Code:0
 01 00 00 00 
 
 Send ---
 Address:   192.168.1.133:1104 = 66.241.85.247:80
 Flags: 0
 Return Value:  0
 Error Code:0
 Data:
 POST /servlet/Receive HTTP/1.1
 Host: www.seekspeak.com
 User-Agent: SeekSpeak
 Connection: keep-alive
 Content-Type: text/plain
 Transfer-Encoding: chunked
 
 2c
 source_chat_id=192.168.1.1%3A486547763981705
 
 
 Recv ---
 Address:   192.168.1.133:1104 = 66.241.85.247:80
 Flags: 0
 Return Value:  0
 Error Code:0
 Data:
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Set-Cookie: JSESSIONID=4618F4394D4924A5629628ED1CD2ADDE; Path=/
 Transfer-Encoding: chunked
 Date: Thu, 10 Jan 2008 07:55:05 GMT
 
 49
 OK
 COMMAND
 INVITATION_ACCEPTED
 tutorial_client
 Invitation accepted...
 
 
 FAILING MACHINE SOCKET TRACE
 =
 Connect 
 Address:   66.241.85.247:80
 Return Value:  0
 Error Code:0
 
 GetSockName 
 Address:   127.0.0.1:2085
 Return Value:  0
 Error Code:0
 
 SetSockOpt -
 Level: SOL_SOCKET
 Opt Name:  SO_KEEPALIVE
 Opt Len:   4
 Return Value:  0
 Error Code:0
 01 00 00 00 
 
 Send ---
 Address:   127.0.0.1:2085 = 66.241.85.247:80
 Flags: 0
 

How can I speed up and reduce load of initialization

2008-01-15 Thread Gavan Hood
I am running embedded debian linux on an xscale processor, I am running tomcat 
5.5 on java 1.4.2 as thats all that is supported. Tomcat runs fine as expected.
   
  My problem is the initialization. 
  When I start tomcat it takes about two minutes to complete initialization and 
pegs my little processor at times, often it keeps it around 80% untilized... 
This is not good for the rest of the system as it has work to do.
   
  I have used the minimalist server config file and only need to run http / 
servlets and file upload to clients.  Consequently apart from some simple 
virtual directory settings and mappings for urls everything is out of the box 
tomcat.
   
  Thanks for you help..
   

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: how to configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread cuco2772

A final note on this thread.  I'm wondering about the purpose of having both
a web.xml in 
DBTest/WEB-INF and a context.xml in DBTest/META-INF.  First of all, which
does tomcat look at first ?
If I had to guess I'd say it probably loads the web.xml first because of
this:

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

Then it looks for the definitions for the things referenced above  in
META-INF/context.xml, ie:

 Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=javauser password=javadude
driverClassName=com.mysql.jdbc.Driver
  
url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/

So I was under the impression that META-INF was more normally  used to place
.jars or .wars,
but I guess in this case it's ok for contexts too ?

And maybe I'm getting too much into the minuteia of this at the moment, but
what does the
'auth' attribute for ? Usually auth is short for authorization, or maybe
authority.
'auth=Container' doesn't make any sense to me. 
Thanks again for all the helpful replies.


cuco2772 wrote:
 
 Just a follow up.  I copied the 2nd Context to META-INF/context.xml and
 it worked !
 It's kind of funny because I was saying to myself There is 0% chance this
 is going to work  to prepare
 myself for the usual failures and multitudes of tries it's taken to get
 things to work up to now.
 I guess I was surprised that things worked after only the third or 4th
 try. Thanks David !
 
 
 David Smith-2 wrote:
 
 Yes -- your on the right path now.  Your email seems to have crossed 
 with mine.  Take the Context   element for DBTest out of 
 conf/context.xml and put it in one of these two places -- 
 conf/Catalina/localhost/DBTest.xml or
 webapps/DBTest/META-INF/context.xml):
 
 All it needs to contain is:
 
  Context
   Resource name=jdbc/TestDB auth=Container
 type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=1
 username=javauser password=javadude
 driverClassName=com.mysql.jdbc.Driver
 
 url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/
 /Context
 
 --David
 
 cuco2772 wrote:
 I'm starting to think that putting that Context in the main
 conf/context.xml
 is not the way to go.
 It makes my other test webapp 'cucoweb' break. Should I put this
 Context in
 a context.xml within
 DBTest, ie, in the DBTest directory, or some subdirectory of it ? 
 Should I
 rename it to DBTest.xml ?
  


 cuco2772 wrote:
   
 This context.xml is the one in /conf. From what I understand (and
 according to the apache site) this
 is where you put stuff that you want to be loaded by all webapps.
 The /META-INF/context.xml would be for things that are more application
 specific.(I'm making an educated guess here).  Here is what my
 /conf/context.xml looks like:

 !-- The contents of this file will be loaded for each web application
 --
 Context

 !-- Default set of monitored resources --
 WatchedResourceWEB-INF/web.xml/WatchedResource

 !-- Uncomment this to disable session persistence across Tomcat
 restarts --
 !--
 Manager pathname= /
 --

 !-- Uncomment this to enable Comet connection tacking (provides
 events
  on session expiration as well as webapp lifecycle) --
 !--
 Valve
 className=org.apache.catalina.valves.CometConnectionManagerValve /
 --

 /Context

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

 !-- maxActive: Maximum number of dB connections in pool. Make sure
 you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --

 !-- maxIdle: Maximum number of idle dB connections to retain in
 pool.
  Set to -1 for no limit.  See also the DBCP documentation on
 this
  and the minEvictableIdleTimeMillis configuration parameter.
  --

 !-- maxWait: Maximum time to wait for a dB connection to become
 available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --

 !-- username and password: MySQL dB username and password for dB
 connections  --

 !-- driverClassName: Class name for the old mm.mysql JDBC driver
 is
  org.gjt.mm.mysql.Driver - we recommend using Connector/J
 though.
  Class name for the official MySQL Connector/J driver is
 com.mysql.jdbc.Driver.
  --

 !-- url: The JDBC connection url for connecting to your MySQL dB.
  The autoReconnect=true argument to the url makes sure that the
  mm.mysql JDBC Driver will automatically reconnect if mysqld
 closed the
  

Re: sessions not cleaned up after expiry

2008-01-15 Thread Eqbal
Thank you for pointing me to this. Appreciate it very
much!
--- Len Popp [EMAIL PROTECTED] wrote:

 There was a bug fix in 5.5.21 that may be the same
 problem as yours.
 Changelog:

http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
 (scroll down to 5.5.21)
 Bugzilla:

http://issues.apache.org/bugzilla/show_bug.cgi?id=37356
 -- 
 Len
 
 
 On Jan 15, 2008 1:39 PM, Eqbal [EMAIL PROTECTED]
 wrote:
  Thanks Bill!
  Is there a bug report I can look at for this? I
 tried
  searching on the website but could not locate it.
  Also to which version should I upgrade, a minor
  upgrade or to major version 6?
  I am going to have a hard time upgrading as one of
 the
  third party proprietary package we use only
 supports
  this version. If I can find a documented bug
 report it
  may make it easier for me to go to the vendor and
  demand support for an upgraded tomcat.
 
  Thanks.
 
  --- Bill Barker [EMAIL PROTECTED] wrote:
 
  
   Eqbal [EMAIL PROTECTED] wrote in message
  
 news:[EMAIL PROTECTED]
Hi,
   
I am noticing the in one of our webapps
 sessions
   are
not getting cleaned up long after they have
   expired.
Our session expiry time is set to 30 min. I am
   using
lambdaprobe to monitor the sessions and it
 appears
that all of these sessions contain one
 attribute,
__lambda_probe_la_ip.
I am using Tomcat 5.5.16
This is happenning for just one of the webapp.
   There
are few other webapps deployed where I do not
 see
   a
problem.
   
Can someone give me some pointers on how to
troubleshoot this?
   
  
   There is a bug in that version that may cause
   sessions to never actually
   expire.  Upgrading should fix it.
  
I think this may eventually lead to
 OutOfMemory
exception after a number of days (its growing
 very
slowly).
   
Thanks.
   
   
   
   
  
 


Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
   
  
 

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
   
   
   
  
 

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


  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]
 
 
 

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



How can I get Administration-tool for tomcat 6?

2008-01-15 Thread higaki shoutarou
Hi,
How can I get Administration-tool for tomcat 6?

Although I found it for tomcat 5.5, I can't find one for tomcat 6 on
http://archive.apache.org/

Thanks for you help...



-
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 configure (server.xml) for mysql dev with tomcat/JDBC

2008-01-15 Thread Caldarale, Charles R
 From: cuco2772 [mailto:[EMAIL PROTECTED] 
 Subject: Re: how to configure (server.xml) for mysql dev with 
 tomcat/JDBC
 
 A final note on this thread.  I'm wondering about the purpose 
 of having both a web.xml in DBTest/WEB-INF and a context.xml
 in DBTest/META-INF.

Sounds like you need to become familiar with the servlet spec (JSR-154).
The syntax and semantics of web.xml are defined by the spec, but the
Context element is unique to Tomcat, defining container-specific items
not covered by the spec.

 First of all, which does tomcat look at first ?

Don't know, and I don't think it matters.  Both have to be examined.
The real question is which one overrides if there are conflicts between
the two; I can't answer it because I haven't looked at that portion of
the code.

 So I was under the impression that META-INF was more normally 
 used to place .jars or .wars,

That's completely wrong.  Jars go into WEB-INF/lib (as required by the
servlet spec); .war files are packaged webapps and must be placed in a
container specified deployment location.

 what does the 'auth' attribute for ?

It specifies whether the container or the webapp is responsible for any
authentication required to utilize the resource.  Again, read the
servlet spec.

 - 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: How can I get Administration-tool for tomcat 6?

2008-01-15 Thread Caldarale, Charles R
 From: higaki shoutarou [mailto:[EMAIL PROTECTED] 
 Subject: How can I get Administration-tool for tomcat 6?
 
 How can I get Administration-tool for tomcat 6?

The admin webapp was not ported to Tomcat 6 for a variety of reasons.
You can use Lambda Probe (www.lambdaprobe.org) for some of the
information, and JConsole to poke around inside the various MBeans
Tomcat has.  However, neither of these allow the dynamic reconfiguration
that the admin webapp attempted to provide.

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



Access a config file located outsite j2ee app [SEC=UNOFFICIAL]

2008-01-15 Thread timothy . fridey
Hi I'm wanting to store a config file for my J2ee app, somewhere on a 
tomcat server possibly inside the
conf/ directory so that I can update this config file without having to 
redeploy the j2ee app every time a change is made.
I've been told I can use JNDI to access this file, but I can't seem to 
find any examples or documentation on how I can do this.
I would appreciate any help, or suggestions.

So far I can access the file with this code:
Hashtable env = new Hashtable();
 env.put(Context.INITIAL_CONTEXT_FACTORY, 
com.sun.jndi.fscontext.RefFSContextFactory);
 
 try {
 Context ctx = new 
InitialContext(prop);
 
 // look up context for 
name
 
//env.put(Context.PROVIDER_URL, 
file:C:\\confluence\\confluence-2.5.1-std\\conf);
 File f = 
(File)ctx.lookup(/confluence/confluence-2.5.1-std/conf/test.txt);
catch {...}


My problems are:

1. The commented line 
env.put(Context.PROVIDER_URL, 
file:C:\\confluence\\confluence-2.5.1-std\\conf);

it says in examples that this should set the dir to look in to the conf 
dir but if i change the lookup value to just test.txt it cannot find it.

2. Can I somehow set the context to look into the conf directory of Tomcat 
without hard coding the path, as the path could change or be different on 
different machines??
**
IMPORTANT:  This e-mail is intended for the use of the addressee and may 
contain information that is confidential, commercially valuable or subject to 
legal or parliamentary privilege.  If you are not the intended recipient you 
are notified that any review, re-transmission, disclosure, use or dissemination 
of this communication is strictly prohibited by several Commonwealth Acts of 
Parliament.  If you have received this communication in error please notify the 
sender immediately and delete all copies of this transmission together with any 
attachments.
**



RE: Access a config file located outsite j2ee app [SEC=UNOFFICIAL]

2008-01-15 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: Access a config file located outsite j2ee app 
 [SEC=UNOFFICIAL]
 
 1. The commented line 
 env.put(Context.PROVIDER_URL, 
 file:C:\\confluence\\confluence-2.5.1-std\\conf);

Not sure this will work (or even if it's a good idea), but you might try
a relative path with forward slashes (which is what the JVM uses
internally anyway):
file:../conf

Since Tomcat's normal working directory is bin - at the same directory
level as conf - this may work.  

 2. Can I somehow set the context to look into the conf 
 directory of Tomcat without hard coding the path

You could set a context parameter or an environment entry:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html%20Context%20
Parameters
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html%20Environmen
t%20Entries
either in the Context element or in WEB-INF/web.xml, again using a
relative path.

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



Can we use the balance_members attribute

2008-01-15 Thread Mohan2005

Hello 
I saw this in http://people.apache.org/~mturk/docs/article/ftwai.html

But does not see the balance_members attribute in workers.properties
documentation.
Is it valid ?

 worker.node1.type=ajp13
worker.node1.host=10.0.0.10
worker.node1.lbfactor=1

worker.node2.type=ajp13
worker.node2.host=10.0.0.11
worker.node2.lbfactor=2

worker.node3.type=ajp13
worker.node3.host=10.0.0.12
worker.node3.lbfactor=1

worker.list=lbworker
worker.lbworker.type=lb
worker.lbworker.balance_members=node1,node2,node3

Thanks

Regards
Mohan
-- 
View this message in context: 
http://www.nabble.com/Can-we-use-the-balance_members-attribute-tp14871671p14871671.html
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]