Re: Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Caldarale, Charles R wrote:
Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the environment variable name).  The default for Linux systems is /usr/lib:/lib (for UNIX, it's just /usr/lib), so you could put the .so file there.
I tried putting all of the files there but still get the same 
java.lang.UnsatisfiedLinkError when trying to invoke the method. When 
issuing the command 
System.out.println(System.getProperties().get("java.library.path"));
right before the error occurs I can see the correct folders there. Is 
there anything else that would differ between running this through 
tomcat than from prompt?

I think you have to be careful about where the System.loadLibrary() call is issued, since a native library can only be loaded for one class loader.  This has implications for sharing the code across applications and for redeploying applications.
I never use System.loadLibrary() in the javacode that does work (outside 
tomcat), do I have to?

--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Rejected client certificate by the server

2005-01-26 Thread Bob Feretich
I was hoping someone more knowledgeable would address your question, but 
I didn't see a response, so I'll try. I just worked through a week of 
"SSL hell" trying to get my Tomcat Application to act as an SSL client 
to another server that performed client certificate authentication.

I am using Tomcat 4.1.x, which does not support OpenSSL key formats.
So again, there may be some difference due to that.
The Java JSSE documentation distinguishes between KeyStores and 
TrustStores. The KeyStore contains your private key and your certificate 
/public key. The TrustStore contains trusted root certificates. If a 
certificate that is submitted to your server is chained to one of the 
certificates in your TrustStore, it will be accepted.  The TrustStore 
and KeyStore may be in one physical file (keystore file).

From your e-mail you do not state that Apache is brokering your Tomcat 
requests. If it then this answer will not apply, because Apache will be 
handling your SSL connection, not Tomcat.

During the SSL handshake Tomcat will send your certificate/public key to 
the client. If the browser client does not trust your certificate (by 
tracing its chain back to a trusted root) it will typically pop up a 
window asking you whether it should be accepted or not.

If "client authentication" is turned on, a request for the client 
certificate is attached to the transmission of your certificate/public 
key. The browser should then transmit the client certificate/client 
public key. When Tomcat receives it, it looks in the TrustStore (same 
file as its KeyStore) to see if the certificate is chained to a trusted 
certificate.

It seems that your error message is stating that Tomcat is not finding 
the trusted root in its keystore file. Since your e-mail doesn't state 
that you imported the client certificate into your Tomcat keystore file, 
this is the likely cause.

To fix it, import your client certificate into your Tomcat TrustStore 
(keystore file).

Note that the J2SDK is shipped with a keystore file that contains all of 
the major CA roots. ($java_home/lib/security/cacerts)
For production, you may need to merge your keys and certificates with 
the ones in this file.
Also note that the Verisign certificates in many the early 1.4.x JREs 
have expired. Download the latest cacerts file for production.

Hope this helped.
Regards,
Bob Feretich
Subject: Rejected client certificate by the server
From: Carlos Bracho <[EMAIL PROTECTED]>
Date: Wed, 26 Jan 2005 14:49:24 -0400
To: tomcat-user@jakarta.apache.org
Hello everyone.
I writing you because a I have a big problem using ssl and client authenticate.
I created a connector for the client connections:

keystoreFile="C:/WINDOWS/security/server.ks"
keystorePass="*"
   enableLookups="false" disableUploadTimeout="true"
   acceptCount="100" debug="0" scheme="https" secure="true"
   clientAuth="true" sslProtocol="SSL" />

As it is for educational proposes, I created my own self-signed CA
using openssl and generate a certificate request for the
web server and then I signed with the self-signed CA.
Then I created a client certificate and I signed with the self-signed
CA, I import the self-signed CA in firefox as a
certificate authority and the client certificate as a client
certificate, but when I try to establish a connection I got this
error message: "Could not establish an encrypted connection because
your certificate was rejected by agatha. Error Code -12271"
(agatha is the apache server).
I got a openssl manual and I saw I followed the right steps to create
the CA and the client certificate, I also read that the
common name of the client must match an entry in tomcat-users.xml, I
created an entry with this common name and
the error message still appears.
When I use Internet Explorer I get a error page with this title: The
page cannot be displayed
I opened the stdout.log file and there is a exception repeated 5 times:
NotifyUtil::java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at 
org.netbeans.modules.web.monito

Chirag: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-01-26 Thread Chirag
Software
jakarta-tomcat-5.5.2
JDK 1.5
MS Access 2000

Requirements
Connection Pooling in Tomcat

Problem

I inserted a resource Tag in server.xml file


  
   maxWait   5000  
   maxActive   4  
   password   password  
   url   jdbc:odbc:aaa  
   driverClassName   
sun.jdbc.odbc.JdbcOdbcDriver 
maxIdle   2 
username   username  


I also inserted the following line in web.xml.


  aaa  
javax.sql.DataSource  Container   



After that I tried to access the java.sql.Connection Object by the following 
code in JSP


javax.naming.Context initContext = new 
javax.naming.InitialContext();javax.naming.Context envContext = 
(javax.naming.Context)initContext.lookup("java:/comp/env");javax.sql.DataSource 
ds = (javax.sql.DataSource)envContext.lookup("aaa");java.sql.Connection conn = 
ds.getConnection();System.out.println(conn);conn.close();


The following Exception occured

HTTP Status 500 -  

 type Exception report message  description The server encountered an internal 
error () that prevented it from fulfilling this request. exception  
javax.servlet.ServletException: Cannot create JDBC driver of class '' for 
connect URL 'null'  
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
   
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
 
org.apache.jsp.B2bSite.test_jsp._jspService(org.apache.jsp.B2bSite.test_jsp:105)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)  
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
temp.loginServlet.doFilter(loginServlet.java:34)  root cause  
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'  
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
  
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 
org.apache.jsp.B2bSite.test_jsp._jspService(org.apache.jsp.B2bSite.test_jsp:88) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)  
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
temp.loginServlet.doFilter(loginServlet.java:34)  note The full stack trace of 
the root cause is available
 in the Apache Tomcat/5.5.2 logs.  

 Apache Tomcat/5.5.2


Thanks in advance

CSJakharia



 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

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

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Re: Session replication not working

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Session replication not working

2005-01-26 Thread Nic Holbrook
This should work.  Your linux boxes won't route multicast without the 
entry in the routing table.  I found this out while trying to debug 
clustering with jboss and it fixed all my issues.  Also make sure any 
routers on your network will route multicast.

Edmon Begoli wrote:
Since you are on RedHat you have to do these steps to enable multicast 
on your machines:

assign an IP to a host
ifconfig eth0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
Regards,
Edmon
Simon Whiteside wrote:
Hi Filip,
are you running iptables firewall?

no. The servers are inside a hardware firewall.
that might also be blocking your multicast.
I do suggest you get a little utility that tests your multicast.
 

Can you suggest one?
Regards,
Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: RE: Jboss vs. tomcat with IIS

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: Jboss vs. tomcat with IIS

2005-01-26 Thread Caldarale, Charles R
> From: Warron French [mailto:[EMAIL PROTECTED]
> Subject: RE: Jboss vs. tomcat with IIS
> 
> But if I want to cover all types of Java applications I could 
> essentially go with an overkill method and use the JBoss application?

You should be aware that JBoss uses an embedded Tomcat as its web server and 
servlet container.  If you want to implement a full J2EE setup use JBoss; if 
all you need is servlets and JSPs, use Tomcat.  JBoss is quite a bit more 
"interesting" to configure.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using digital signatures to log into admin webapp

2005-01-26 Thread Edmon Begoli
Thank you very much. Since this is a quite an advanced feature I will 
try this, nicely document it and submit it to tomcat
documentation. I am sure someone else will need this as well (in a high 
security apps).

Thanks again,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software/
Mark Thomas wrote:
Edmon Begoli wrote:
Hi,
Is it possible to enable digital certs as a authentication method for 
the admin app. and if yes - please tell me how.

Yes. You'll need to edit the web.xml for the admin app to change the 
login method.

1. Re-configure the admin app to use BASIC auth.
2. Test new config.
3. Configure the app to require SSL for everything (add a transport 
guarantee of CONFIDENTIAL)
4. Again, test it.
5. Change to use CLIENT-CERT rather than BASIC.

You'll need to add you user certs to the user database. If you were 
using tomcat-users.xml then each entry would look something like:



Mark
Thank you,
Edmon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5 *NOTE TO LIST ADMINISTRATOR*

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5 *NOTE TO LIST ADMINISTRATOR*

2005-01-26 Thread Brad Cobb
It's Dutch, and an auto-generated email.
 
"
The e mail address you used is no longer active. You can send your email to 
[EMAIL PROTECTED] to report this problem.
Thanks for your cooperation
"
 
(or something like that)
The Tomcat User List Administrator should be removing the user from the list, 
eventually... 
 
Brad

-Original Message- 
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Sent: Thu 27/01/2005 8:45 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: JK, Session Replication/Clustering, SSL and failover in 
Tomcat 5



I have no idea - but it is not English. It looks like someone's
autoresponder is set to reply to each new thread in the list. I've had
to setup a filter to eliminate them from my inbox.

Is there a better solution (i.e. does anyone know this guy so they can
phone him and tell him to quit it?).

  - Richard

-Original Message-
From: Punit Duggal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 26, 2005 5:19 PM
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover in
Tomcat 5


What language is this ??

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: tomcat-user@jakarta.apache.org
>Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover
in
>Tomcat 5
>Date: 26 Jan 2005 23:13:47 -
>
>Geachte relatie,
>
>Het door u gebruikte e-mailadres is niet meer actief. U kunt uw
>e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht
>beantwoorden.
>
>Bedankt voor uw medewerking,
>
>Met vriendelijke groet,
>
>ATP Hypotheken
>Het Spoor 40
>3994 AK Houten
>
>Tel. 030 750 25 33
>Fax. 030 750 25 88
>[EMAIL PROTECTED]
>
>  -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Express yourself instantly with MSN Messenger! Download today - it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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




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





Re: Session replication not working

2005-01-26 Thread Edmon Begoli
Since you are on RedHat you have to do these steps to enable multicast 
on your machines:

assign an IP to a host
ifconfig eth0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
Regards,
Edmon
Simon Whiteside wrote:
Hi Filip,
are you running iptables firewall?
no. The servers are inside a hardware firewall.
that might also be blocking your multicast.
I do suggest you get a little utility that tests your multicast.
 

Can you suggest one?
Regards,
Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread Richard Mixon (qwest)
I have no idea - but it is not English. It looks like someone's
autoresponder is set to reply to each new thread in the list. I've had
to setup a filter to eliminate them from my inbox.

Is there a better solution (i.e. does anyone know this guy so they can
phone him and tell him to quit it?).

  - Richard

-Original Message-
From: Punit Duggal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 26, 2005 5:19 PM
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover in
Tomcat 5


What language is this ??

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: tomcat-user@jakarta.apache.org
>Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover
in
>Tomcat 5
>Date: 26 Jan 2005 23:13:47 -
>
>Geachte relatie,
>
>Het door u gebruikte e-mailadres is niet meer actief. U kunt uw
>e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht
>beantwoorden.
>
>Bedankt voor uw medewerking,
>
>Met vriendelijke groet,
>
>ATP Hypotheken
>Het Spoor 40
>3994 AK Houten
>
>Tel. 030 750 25 33
>Fax. 030 750 25 88
>[EMAIL PROTECTED]
>
>  -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Express yourself instantly with MSN Messenger! Download today - it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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




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



Re: RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread Richard Mixon (qwest)
Filip,

Pen does not really help me out.

My problem is JK I am pretty sure.  It is appending ".srv1" to the
session. When srv1 is stopped, it detects this on the next request and
routes the request to srv2. However I notice in the JK output that it
now has ".srv2" appended to the session, which of course does not exist,
and I get prompted to re-logon.

Below is the debug output from JK showing the failover attempt.

Any other suggestion?

Thank you - Richard

[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/stars/gridAction.do' from 1 maps
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context
URI '/stars/*'
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match
loadbalancer -> /stars/
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug] jk_handler::mod_jk.c
(1715): Into handler jakarta-servlet worker=loadbalancer r->proxyreq=0
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
wc_get_worker_for_name::jk_worker.c (92): found a worker loadbalancer
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug] init_ws_service::mod_jk.c
(479): agsp=443 agsn=redfishsoftware.swamp.home
hostn=redfishsoftware.swamp.home shostn=redfishsoftware.swamp.home
cbsport=0 sport=0 claport=443
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug] service::jk_lb_worker.c
(465): service sticky_session=1
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_most_suitable_worker::jk_lb_worker.c (372): total sessionid is
EE9EF7748256B50E03C48A3F3735DE59.srv1.
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_most_suitable_worker::jk_lb_worker.c (383): searching worker for
partial sessionid EE9EF7748256B50E03C48A3F3735DE59.srv1.
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_suitable_worker::jk_lb_worker.c (275): searching for sticky worker
(srv1)
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_suitable_worker::jk_lb_worker.c (282): found candidate worker srv1
(0) for match with sticky (srv1)
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_suitable_worker::jk_lb_worker.c (290): found candidate worker srv1
(0) with previous load 100 in search with sticky (srv1)
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
get_suitable_worker::jk_lb_worker.c (343): found worker srv1 with new
load 100 in search with sticky (srv1)
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
ajp_get_endpoint::jk_ajp_common.c (2016): time elapsed since last
request = 76 seconds
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug] service::jk_lb_worker.c
(482): service worker=srv1 jvm_route=srv1 rc=1
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp marshaling done
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
ajp_service::jk_ajp_common.c (1594): processing with 3 retries
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (883): sending to ajp13
pos=4 len=611 max=8192
[Wed Jan 26 17:15:57 2005] [6040:2256] [error]
ajp_connection_tcp_send_message::jk_ajp_common.c (902): sendfull
returned -3 with errno=54
[Wed Jan 26 17:15:57 2005] [6040:2256] [error]
ajp_send_request::jk_ajp_common.c (1158): Error sending request try
another pooled connection
[Wed Jan 26 17:15:57 2005] [6040:2256] [debug]
jk_open_socket::jk_connect.c (159): try to connect socket = 700 to
127.0.0.1:8009
[Wed Jan 26 17:15:58 2005] [6040:2256] [debug]
jk_open_socket::jk_connect.c (177): after connect ret = -1
[Wed Jan 26 17:15:58 2005] [6040:2256] [info]
jk_open_socket::jk_connect.c (183): connect() failed errno = 61
[Wed Jan 26 17:15:58 2005] [6040:2256] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (862): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (127.0.0.1:8009). Failed errno = 61
[Wed Jan 26 17:15:58 2005] [6040:2256] [info]
ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat
process.
[Wed Jan 26 17:15:58 2005] [6040:2256] [info]
ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed,
recoverable operation attempt=0
[Wed Jan 26 17:15:58 2005] [6040:2256] [debug]
jk_open_socket::jk_connect.c (159): try to connect socket = 700 to
127.0.0.1:8009
[Wed Jan 26 17:15:59 2005] [6040:2256] [debug]
jk_open_socket::jk_connect.c (177): after connect ret = -1
[Wed Jan 26 17:15:59 2005] [6040:2256] [info]
jk_open_socket::jk_connect.c (183): connect() failed errno = 61
[Wed Jan 26 17:15:59 2005] [6040:2256] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (862): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (127.0.0.1:8009). Failed errno = 61
[Wed Jan 26 17:15:59 2005] [6040:2256] [info]
ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat
process.
[Wed Jan 26 17:15:59 2005] [6040:2256] [info]
ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed,
recoverable operation attempt=1
[Wed

Re: Re: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread Punit Duggal
What language is this ??
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover in 
Tomcat 5
Date: 26 Jan 2005 23:13:47 -

Geachte relatie,
Het door u gebruikte e-mailadres is niet meer actief. U kunt uw 
e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht 
beantwoorden.

Bedankt voor uw medewerking,
Met vriendelijke groet,
ATP Hypotheken
Het Spoor 40
3994 AK Houten
Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]
 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread Filip Hanik - Dev
try with a regular tcp loadbalancer like pen (http://siag.nu/) first, otherwise 
you are debugging a whole stack at once.

so use pen, and your two tomcats, try failover and go from there.
also, enable debugging for your logging, and a lot more will be spit out in the 
logs

Filip

- Original Message - 
From: "Richard Mixon (qwest)" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, January 26, 2005 4:37 PM
Subject: JK, Session Replication/Clustering, SSL and failover in Tomcat 5


I am trying to get JK 1.2.8 (within Apache 2.0.52 SSL build) to fail
over to my remaining Tomcat 5.5.7 instance when the first instance is
brought down (e.g. for maintenance or due to an actual failure).

The application uses container managed authentication (CMA) and
obviously sessions.

I have two questions/problems. Thanks so much for any ideas/help you can
provide.

1) If I set sticky_session=True then the loadbalancer worker distributes
requests among the two workers just fine. If I shut down one Tomcat
instance, it redirects me to the second - but I am prompted to login
again. This makes me think that session replication is not occurring.
How can I check that session replication is happening (is there a log
settings)?

I thought it must be at first as I was getting the following in my
tomcat logs:

>From srv1:

INFO main org.apache.coyote.http11.Http11Protocol - Initializing Coyote
HTTP/1.1 on http-8080
 INFO main org.apache.catalina.startup.Catalina - Initialization
processed in 875 ms
 INFO main org.apache.catalina.core.StandardService - Starting service
Catalina
 INFO main org.apache.catalina.core.StandardEngine - Starting Servlet
Engine: Apache Tomcat/5.5.7
 INFO main org.apache.catalina.core.StandardHost - XML validation
disabled
 INFO main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster is
about to start
 INFO main org.apache.catalina.cluster.mcast.McastService - Sleeping for
2000 secs to establish cluster membership
 INFO main org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster
FarmWarDeployer started.
 INFO main org.apache.coyote.http11.Http11Protocol - Starting Coyote
HTTP/1.1 on http-8080
 INFO main org.apache.jk.common.ChannelSocket - JK2: ajp13 listening on
/0.0.0.0:8009
 INFO main org.apache.jk.server.JkMain - Jk running ID=0 time=0/31
config=null
 INFO main org.apache.catalina.storeconfig.StoreLoader - Find registry
server-registry.xml at classpath resource
 INFO main org.apache.catalina.startup.Catalina - Server startup in 6016
ms
 INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.140:
4002,192.168.1.140,4002, alive=16]

>From srv2:

INFO main org.apache.coyote.http11.Http11Protocol - Initializing Coyote
HTTP/1.1 on http-9080
 INFO main org.apache.catalina.startup.Catalina - Initialization
processed in 1250 ms
 INFO main org.apache.catalina.core.StandardService - Starting service
Catalina
 INFO main org.apache.catalina.core.StandardEngine - Starting Servlet
Engine: Apache Tomcat/5.5.7
 INFO main org.apache.catalina.core.StandardHost - XML validation
disabled
 INFO main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster is
about to start
 INFO main org.apache.catalina.cluster.mcast.McastService - Sleeping for
2000 secs to establish cluster membership
 INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.140:
4001,192.168.1.140,4001, alive=5578]
 INFO main org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster
FarmWarDeployer started.
 INFO main org.apache.coyote.http11.Http11Protocol - Starting Coyote
HTTP/1.1 on http-9080
 INFO main org.apache.jk.common.ChannelSocket - JK2: ajp13 listening on
/0.0.0.0:9009
 INFO main org.apache.jk.server.JkMain - Jk running ID=0 time=0/31
config=null
 INFO main org.apache.catalina.storeconfig.StoreLoader - Find registry
server-registry.xml at classpath resource
 INFO main org.apache.catalina.startup.Catalina - Server startup in 6313
ms


2) If I set sticky_session=False I am unable to login, failing with an
HTTP Status 408. Here's the sequence:
  a) Issue a request to a protected resource that will trigger
form-based authentication (CMA). JK worker loadbalancer sends this
request to the first worker, "srv1".
  b) After I fill in the authentication/login form I press submit. Now
JK worker loadbalancer send this request to worker "srv2" and I end up
with this error respons: HTTP Status 408 - The time allowed for the
login process has been exceeded...

Here are my configuration files (or pieces):

FILE: piece form httpd.conf


JkWorkersFile conf/workers.properties

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkLogFile logs/mod_jk.log

# Log level to be used by mod_jk: debug, info, warn error or trace
JkLogLevel debug

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkExt

Re: Re: loadbalancing with mod_jk 1.2.8

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



Re: loadbalancing with mod_jk 1.2.8

2005-01-26 Thread Graham Bleach
On Wed, Jan 26, 2005 at 01:41:25PM -0500, John Smith wrote:
>  Is there any way to make the connector at run time to NOT send NEW
> connections to one the tomcat instances being used for loadbalancing, and
> then reload this TC instances once all sessions to it have timed out?

If you stop the tomcat instance with the command 
$CATALINA_HOME/bin/catalina.sh stop

I believe tomcat waits for threads to finish what they are doing
before it actually terminates.


G
-- 
Privacy is a transient notion. It started when people stopped believing
that God could see everything and stopped when governments realised there
was a vacancy to be filled.
-- Roger Needham

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



Re: RE: Jboss vs. tomcat with IIS

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



RE: Jboss vs. tomcat with IIS

2005-01-26 Thread Warron French
But if I want to cover all types of Java applications I could essentially go 
with an overkill method and use the JBoss application?


Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 26, 2005 5:41 PM
To: Tomcat Users List
Subject: Re: Jboss vs. tomcat with IIS


No, tomcat is a jsp/servlet container.  JBoss is a full blown application 
server.  Tomcat doesn't support EJBs  JBoss does.  If all you want is 
JSP/Servlets and a webserver, tomcat will work.

-Original Message-
From: Warron French <[EMAIL PROTECTED]>
Sent: Jan 26, 2005 2:36 PM
To: "User Tomcat (E-mail)" 
Subject: Jboss vs. tomcat  with IIS

Can I do everything with JBoss that I can with Tomcat?

I heard from a developer that JBoss is better than tomcat because tomcat can 
not handle as many users at the same time.  Is this a true statement?  Is it 
relevant to what web service (IIS vs Apache) is being used?




Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374


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



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


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



Re: Jboss vs. tomcat with IIS

2005-01-26 Thread John Najarian
No, tomcat is a jsp/servlet container.  JBoss is a full blown application 
server.  Tomcat doesn't support EJBs  JBoss does.  If all you want is 
JSP/Servlets and a webserver, tomcat will work.

-Original Message-
From: Warron French <[EMAIL PROTECTED]>
Sent: Jan 26, 2005 2:36 PM
To: "User Tomcat (E-mail)" 
Subject: Jboss vs. tomcat  with IIS

Can I do everything with JBoss that I can with Tomcat?

I heard from a developer that JBoss is better than tomcat because tomcat can 
not handle as many users at the same time.  Is this a true statement?  Is it 
relevant to what web service (IIS vs Apache) is being used?




Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374


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



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



Jboss vs. tomcat with IIS

2005-01-26 Thread Warron French
Can I do everything with JBoss that I can with Tomcat?

I heard from a developer that JBoss is better than tomcat because tomcat can 
not handle as many users at the same time.  Is this a true statement?  Is it 
relevant to what web service (IIS vs Apache) is being used?




Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374


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



JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-26 Thread Richard Mixon (qwest)
I am trying to get JK 1.2.8 (within Apache 2.0.52 SSL build) to fail
over to my remaining Tomcat 5.5.7 instance when the first instance is
brought down (e.g. for maintenance or due to an actual failure).

The application uses container managed authentication (CMA) and
obviously sessions.

I have two questions/problems. Thanks so much for any ideas/help you can
provide.

1) If I set sticky_session=True then the loadbalancer worker distributes
requests among the two workers just fine. If I shut down one Tomcat
instance, it redirects me to the second - but I am prompted to login
again. This makes me think that session replication is not occurring.
How can I check that session replication is happening (is there a log
settings)?

I thought it must be at first as I was getting the following in my
tomcat logs:

>From srv1:

INFO main org.apache.coyote.http11.Http11Protocol - Initializing Coyote
HTTP/1.1 on http-8080
 INFO main org.apache.catalina.startup.Catalina - Initialization
processed in 875 ms
 INFO main org.apache.catalina.core.StandardService - Starting service
Catalina
 INFO main org.apache.catalina.core.StandardEngine - Starting Servlet
Engine: Apache Tomcat/5.5.7
 INFO main org.apache.catalina.core.StandardHost - XML validation
disabled
 INFO main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster is
about to start
 INFO main org.apache.catalina.cluster.mcast.McastService - Sleeping for
2000 secs to establish cluster membership
 INFO main org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster
FarmWarDeployer started.
 INFO main org.apache.coyote.http11.Http11Protocol - Starting Coyote
HTTP/1.1 on http-8080
 INFO main org.apache.jk.common.ChannelSocket - JK2: ajp13 listening on
/0.0.0.0:8009
 INFO main org.apache.jk.server.JkMain - Jk running ID=0 time=0/31
config=null
 INFO main org.apache.catalina.storeconfig.StoreLoader - Find registry
server-registry.xml at classpath resource
 INFO main org.apache.catalina.startup.Catalina - Server startup in 6016
ms
 INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.140:
4002,192.168.1.140,4002, alive=16]

>From srv2:

INFO main org.apache.coyote.http11.Http11Protocol - Initializing Coyote
HTTP/1.1 on http-9080
 INFO main org.apache.catalina.startup.Catalina - Initialization
processed in 1250 ms
 INFO main org.apache.catalina.core.StandardService - Starting service
Catalina
 INFO main org.apache.catalina.core.StandardEngine - Starting Servlet
Engine: Apache Tomcat/5.5.7
 INFO main org.apache.catalina.core.StandardHost - XML validation
disabled
 INFO main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster is
about to start
 INFO main org.apache.catalina.cluster.mcast.McastService - Sleeping for
2000 secs to establish cluster membership
 INFO Cluster-MembershipReceiver
org.apache.catalina.cluster.tcp.SimpleTcpCluster - Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.140:
4001,192.168.1.140,4001, alive=5578]
 INFO main org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster
FarmWarDeployer started.
 INFO main org.apache.coyote.http11.Http11Protocol - Starting Coyote
HTTP/1.1 on http-9080
 INFO main org.apache.jk.common.ChannelSocket - JK2: ajp13 listening on
/0.0.0.0:9009
 INFO main org.apache.jk.server.JkMain - Jk running ID=0 time=0/31
config=null
 INFO main org.apache.catalina.storeconfig.StoreLoader - Find registry
server-registry.xml at classpath resource
 INFO main org.apache.catalina.startup.Catalina - Server startup in 6313
ms


2) If I set sticky_session=False I am unable to login, failing with an
HTTP Status 408. Here's the sequence:
  a) Issue a request to a protected resource that will trigger
form-based authentication (CMA). JK worker loadbalancer sends this
request to the first worker, "srv1".
  b) After I fill in the authentication/login form I press submit. Now
JK worker loadbalancer send this request to worker "srv2" and I end up
with this error respons: HTTP Status 408 - The time allowed for the
login process has been exceeded...

Here are my configuration files (or pieces):

FILE: piece form httpd.conf


JkWorkersFile conf/workers.properties

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkLogFile logs/mod_jk.log

# Log level to be used by mod_jk: debug, info, warn error or trace
JkLogLevel debug

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkExtractSSL on
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT



FILE: workers.properties
# workers.properties -
#
workers.tomcat_home=c:/jakarta-tomcat-5.5.7
workers.java_home=C:/jdk1.5.0_01
ps=/

#
# Define one worker for each tomcat instance, plus one
# to handle the load balancing.
#
worker.list=loadbalancer

worker.srv1.port=8009
worker.srv1.host=localhost
worker.srv1.type=ajp13
worker.srv1.lbf

Re: Realms getting confused in context reload

2005-01-26 Thread Brandon Goodin
Here is what solved this. My web.xml in the admin and in the customer
app were defined as follows:


BASIC
Order Inquiry


Apparently in tomcat you cannot have two contexts with a web.xml that
shares the the same login-config/realm-name. The behavior is VERY
bizarre. It would seem that the right way to deal with this would be
to identify the realms based on context. So, if i use the same realm
name in my web.xml it is totally irrelevant, because the realm is
scoped in the context.

Is this a bug?

Brandon


On Wed, 26 Jan 2005 11:51:54 -0700, Brandon Goodin
<[EMAIL PROTECTED]> wrote:
> I have some strange behavior showing up with Tomcat 5.0.30.
> 
> I have a host configured with two contexts. The contexts are deployed
> as wars. But, they have configuration information in the server.xml.
> Each context has it's own realm defined within the context tag. The
> contexts are named "/admin" and "/customer". The "/customer" context
> is configured to use a DatasourceRealm for authentication. The
> "/admin" is configured to use a custom realm called
> ReverseProxyRealm5. Both contexts share a jndi datasource resource
> defined in the DefaultContext tag.
> 
> The odd behavior that i am experiencing happens during an auto reload
> of the context after both of the war files have been changed. Once the
> contexts have reloaded and the new war files have been autoDeployed I
> lose the use of my ReverseProxyRealm5 on the admin context.  But, not
> only do i lose it, it also switches to using the DatasourceRealm as
> defined in the customer context.
> 
> After i  stop and start tomcat everything is fine again. I have tested
> this out running Tomcat from the command line and within eclipse with
> the same resulting behavior.
> 
> I deleted the  /conf/Catalina directory and the /work/Catalina
> directory for good  measure. But, all the behavior continues.
> 
> Attached is my server.xml host file without the sensitive info.
> 
>  appBase="D:\myappbase\projects\oi\dist\war">
> 
>  directory="logs" prefix="orderinquiry_log." suffix=".txt"
> timestamp="true" />
> 
> 
>  type="javax.sql.DataSource" />
> 
> 
> 
> factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
> 
> driverClassName
> com.ibm.as400.access.AS400JDBCDriver
> 
> 
> url
> 
> jdbc:as400://some.url.here.org;naming=system;date 
> format=iso
> 
> 
> 
> username
> dudesusername
> 
> 
> password
> dudespassword
> 
> 
> maxActive
> 20
> 
> 
> maxIdle
> 10
> 
> 
> maxWait
> -1
> 
> 
> validationQuery
> SELECT 0 FROM qsqptabl
> 
> 
> 
> 
>  reloadable="true" crossContext="false">
> 
>  debug="0" dataSourceName="jdbc/orderinquiry"
> localDataSource="true" userTable="UTABLE"
> userNameCol="UNAMECOL" userCredCol="PAZZWORD"
> userRoleTable="UTABLERL" roleNameCol="UROLE" />
> 
> 
> 
>  reloadable="true" crossContext="false">
> 
>  className="com.plumcreek.commons.security.ReverseProxyRealm5" />
> 
> 
> 
> 
> 
> Thanks,
> Brandon
>

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



Re: Using digital signatures to log into admin webapp

2005-01-26 Thread Mark Thomas
Edmon Begoli wrote:
Hi,
Is it possible to enable digital certs as a authentication method for 
the admin app. and if yes - please tell me how.
Yes. You'll need to edit the web.xml for the admin app to change the 
login method.

1. Re-configure the admin app to use BASIC auth.
2. Test new config.
3. Configure the app to require SSL for everything (add a transport 
guarantee of CONFIDENTIAL)
4. Again, test it.
5. Change to use CLIENT-CERT rather than BASIC.

You'll need to add you user certs to the user database. If you were 
using tomcat-users.xml then each entry would look something like:



Mark
Thank you,
Edmon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Session replication not working

2005-01-26 Thread Simon Whiteside
Hi Filip,
are you running iptables firewall? 

no. The servers are inside a hardware firewall.
that might also be blocking your multicast.
I do suggest you get a little utility that tests your multicast.
 

Can you suggest one?
Regards,
Simon
--
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


Re: Session replication not working

2005-01-26 Thread Filip Hanik - Dev
are you running iptables firewall? that might also be blocking your multicast.
I do suggest you get a little utility that tests your multicast.

Filip
- Original Message - 
From: "Simon Whiteside" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, January 26, 2005 3:49 PM
Subject: Re: Session replication not working


Hi Filip,

here's my ifconfig-a:

eth0  Link encap:Ethernet  HWaddr 00:11:43:CD:CD:AE
  inet addr:10.0.0.51  Bcast:10.0.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:43287835 errors:0 dropped:0 overruns:0 frame:0
  TX packets:39407994 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:1830030116 (1745.2 Mb)  TX bytes:219053949 (208.9 Mb)
  Base address:0xece0 Memory:fe1e-fe20

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:6653357 errors:0 dropped:0 overruns:0 frame:0
  TX packets:6653357 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:490863662 (468.1 Mb)  TX bytes:490863662 (468.1 Mb)


Regards,

Simon

-- 
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside




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

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



Re: Dynamic Connection

2005-01-26 Thread David Smith
A JNDI lookup isn't the only way to get a DataSource.  You can just call 
new on your favorite database's implementation of DataSource, set the 
appropriate attributes and cast it to javax.sql.DataSource for generic 
use.  For instance:

com.mysql.jdbc.DataSource mysqlDS = new com.mysql.jdbc.DataSource() ;
// set attributes according to MySQL's javadocs.
javax.sql.DataSource ds = (javas.sql.DataSource)mysqlDS ;
// Do something with the datasource.
In all reality, that's essentially what tomcat is doing when it makes a 
pooled connection available.  They're just reading your parameters from 
the context.xml, instantiating a new DataSource (specifically 
BasicDataSource from the DBCP project), and putting it into a read-only 
JNDI context for you to find later.  I'm suggesting you drop the JNDI 
stuff and place a new DataSource in the session as soon as you know what 
the parameters are.

--David
micky none wrote:
Thanks David,
I am already using the Datasource class to vreate a connection.For eg.
Context ctx = (Context) init.lookup("java:comp/env");
ds = (DataSource) ctx.lookup("jdbc/abc");
The problem is that to know which database is selected I am trying to do 
exactly what the BasicDataSource class does,if that's possible.Is there any way 
by which I can read the environment variables that TOMCAT has setplease 
help.
On Thu, 27 Jan 2005 David Smith wrote :
 

Sounds like you can just about totally abandon the idea of using any pooling 
functions provided by DBCP.  If I were designing, I'd construct an object that 
implements javax.sql.DataSource and store it in the session as soon as you know 
what db is being used.  Then on each request, get the DS from the session and 
use it as needed.  Just be sure you only store the DS in the session -- don't 
store the connections.
I'm sure there are other ideas out there as well.
--David
micky none wrote:
   

Hi Friends,
I want to dynamically configure the database,username and password 
settings,instead of putting them in conf/server.xml.In other words,I dont know 
beforehand which database to use,
with which username and password.It all depends upon the person and the machine 
from which it tries to make a connection.In yet another words,I just need to do 
what the BasicDataSource is doing i.e get the connection details before making 
a connection.I am not quite sure if you got my point,but this is what i've been 
asked to do and I have no clue as to where to go or what to do.If anyone of you 
got my point,please help me.
Thanks
 

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

 

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


Re: Session replication not working

2005-01-26 Thread Simon Whiteside
Hi Filip,
here's my ifconfig-a:
eth0  Link encap:Ethernet  HWaddr 00:11:43:CD:CD:AE
 inet addr:10.0.0.51  Bcast:10.0.0.255  Mask:255.255.255.0
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:43287835 errors:0 dropped:0 overruns:0 frame:0
 TX packets:39407994 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:1830030116 (1745.2 Mb)  TX bytes:219053949 (208.9 Mb)
 Base address:0xece0 Memory:fe1e-fe20
loLink encap:Local Loopback
 inet addr:127.0.0.1  Mask:255.0.0.0
 UP LOOPBACK RUNNING  MTU:16436  Metric:1
 RX packets:6653357 errors:0 dropped:0 overruns:0 frame:0
 TX packets:6653357 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:490863662 (468.1 Mb)  TX bytes:490863662 (468.1 Mb)
Regards,
Simon
--
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


Re: Session replication not working

2005-01-26 Thread Filip Hanik - Dev
ifconfig -a

multihomed simply means there is more than one network card

ping doesn't verify UDP and multicast. 

Filip

- Original Message - 
From: "Simon Whiteside" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, January 26, 2005 3:43 PM
Subject: Re: Session replication not working


Hi Filip,

I've just done:

route -n

on one of the servers and got:

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse 
Iface
10.0.0.00.0.0.0 255.255.255.0   U 0  00 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00 eth0
10.0.0.010.0.0.1255.0.0.0   UG0  00 eth0
0.0.0.0 10.0.0.100  0.0.0.0 UG0  00 eth0

Does this suggest the box is multihomed?


Regards,

Simon

-- 
Simon Whiteside
Lateral Arts Limited

Clients include:
Tunetribe.com, The Times and Sunday Times Newspapers,
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ
Registered in England and Wales. Company Number: 3055039
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside




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

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

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



Re: Session replication not working

2005-01-26 Thread Simon Whiteside
Hi Filip,
I've just done:
route -n
on one of the servers and got:
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse 
Iface
10.0.0.00.0.0.0 255.255.255.0   U 0  00 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00 eth0
10.0.0.010.0.0.1255.0.0.0   UG0  00 eth0
0.0.0.0 10.0.0.100  0.0.0.0 UG0  00 eth0

Does this suggest the box is multihomed?
Regards,
Simon
--
Simon Whiteside
Lateral Arts Limited
Clients include:
Tunetribe.com, The Times and Sunday Times Newspapers,
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com
Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ
Registered in England and Wales. Company Number: 3055039
http://www.larts.co.uk
Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


Re: Session replication not working

2005-01-26 Thread Simon Whiteside
Hi Filip,
you haven't mentioned anything about your environment. but my guess is that you might have linux and those boxes are multihomed. if
this is the case, its a little tricky to enable multicasting, there is a property "mcastBindAddr" to set the actual interface that
sends and receives the multicasting data.
 

the boxes are Dells running Redhat Enterprise 3. How do I tell if 
they're multihomed?

I would start by working out how to enable multicasting between your servers, 
start by googling, also this list has some emails in
the archives.
 

I thought that the pinging I did to 228.0.0.4 which had response:  
(these are the two servers) showed that multicasting is working...

64 bytes from 10.0.0.52: icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from 10.0.0.51: icmp_seq=0 ttl=64 time=0.490 ms (DUP!)
Regards,
Simon
--
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


ClassLoader question

2005-01-26 Thread Li Ma
Hi there,

I embedded Tomcat Embedded edition into my app. Here's a brief folder
structureof my app:

/
lib
bin
Tomcat
lib
webapps
myapp
WEB-INF
lib

I create a classloader to automatically load jars from lib, bin and
Tomcat/lib. But after myapp is started, it complains that class
org/apache/commons/logging/LogFactory is not found. I'm sure the class is in
/lib/commons-logging.jar which should be loaded by my classloader. 

I think it might have something to do with Tomcat's classloader hierarchy. I
read the related article a few times, didn't find any solution for my
problem. Since my app needs about 100 jars to start, a customized
classloader will help a lot for easy deployment. Anybody has similar
experience?

Thanks!


Li Ma
Ideal Technologies Inc.




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



Re: Session replication not working

2005-01-26 Thread Filip Hanik - Dev
you haven't mentioned anything about your environment. but my guess is that you 
might have linux and those boxes are multihomed. if
this is the case, its a little tricky to enable multicasting, there is a 
property "mcastBindAddr" to set the actual interface that
sends and receives the multicasting data.

I would start by working out how to enable multicasting between your servers, 
start by googling, also this list has some emails in
the archives.

Filip

- Original Message -
From: "Simon Whiteside" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, January 26, 2005 3:23 PM
Subject: Re: Session replication not working


Hi Filip,

>the tomcat clustering code and the PersistentManager are not supposed to work 
>together.
>
>
>
does it matter if they're both switched on?

>>No members active in cluster group.
>>
>>
>
>means that your multicast discovery isn't working
>
>
>
>
can you suggest a way to resolve this?

Regards,

Simon

--
Simon Whiteside
Lateral Arts Limited

Clients include:
Tunetribe.com, The Times and Sunday Times Newspapers,
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ
Registered in England and Wales. Company Number: 3055039
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside




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


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



Re: Session replication not working

2005-01-26 Thread Simon Whiteside
Hi Filip,
the tomcat clustering code and the PersistentManager are not supposed to work 
together.
 

does it matter if they're both switched on?
No members active in cluster group.
   

means that your multicast discovery isn't working
 

can you suggest a way to resolve this?
Regards,
Simon
--
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


Re: Session replication not working

2005-01-26 Thread Filip Hanik - Dev
the tomcat clustering code and the PersistentManager are not supposed to work 
together.

>No members active in cluster group.

means that your multicast discovery isn't working

Filip



- Original Message - 
From: "Simon Whiteside" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, January 26, 2005 2:52 PM
Subject: Session replication not working


Hi!

I'm trying to get two tomcat servers to replicate their sessions with 
each other.

We have a BigIP load balancer connecting to two Redhat Linux Enterprise 
3 servers running Tomcat only (no Apache).

I've uncommented the Cluster and Replication valve sections in 
server.xml, added  to my web.xml and ensured that all 
session variables implement java.io.Serializable.

I've also configured a PersistentManager to store Sessions via JDBCStore 
in a database.

Here are the relevent configuration bits:

from server.xml:

   












Here is the PersistentManager in the server.xml like this:




I am able to ping 228.0.0.4 with the response:

64 bytes from 10.0.0.52: icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from 10.0.0.51: icmp_seq=0 ttl=64 time=0.490 ms (DUP!)

10.0.0.52 and 10.0.0.51 are the two servers running Tomcat.

However, when I start the servers, I get the following message in 
catalina.out for both servers.

Creating ClusterManager for context /tunetribe using class 
org.apache.catalina.cluster.session.DeltaManager
26-Jan-2005 19:13:29 org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager...:/tunetribe
26-Jan-2005 19:13:29 org.apache.catalina.cluster.session.DeltaManager start
INFO: Manager[/tunetribe], skipping state transfer. No members active in 
cluster group.

I get no further messages after this, the sessions are not replicating 
correctly.

The session ids are being correctly picked up, and when the sessions get 
loaded from the database they are in sync, but when they are modified in 
memory and not yet saved, they are different on each server.

Can anyone suggest how I can get the servers to recognise each other?

Regards,

Simon

-- 
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside




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

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



Session replication not working

2005-01-26 Thread Simon Whiteside
Hi!
I'm trying to get two tomcat servers to replicate their sessions with 
each other.

We have a BigIP load balancer connecting to two Redhat Linux Enterprise 
3 servers running Tomcat only (no Apache).

I've uncommented the Cluster and Replication valve sections in 
server.xml, added  to my web.xml and ensured that all 
session variables implement java.io.Serializable.

I've also configured a PersistentManager to store Sessions via JDBCStore 
in a database.

Here are the relevent configuration bits:
from server.xml:
  

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

   
   
   
className="org.apache.catalina.cluster.tcp.ReplicationListener"
   tcpListenAddress="auto"
   tcpListenPort="4001"
   tcpSelectorTimeout="100"
   tcpThreadCount="6"/>

   
   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
   replicationMode="pooled"/>

   
  
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>

   
 tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
 watchDir="/tmp/war-listen/"
 watchEnabled="false"/>
   

Here is the PersistentManager in the server.xml like this:


driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://10.0.0.24/tomcat?user=x&password=x"
sessionTable="tomcat_sessions"
sessionIdCol="session_id"
sessionValidCol="valid_session"
sessionMaxInactiveCol="max_inactive"
sessionLastAccessedCol="last_access"
sessionAppCol="app_name"
sessionDataCol="session_data"
checkInterval="60"
debug="99" />

I am able to ping 228.0.0.4 with the response:
64 bytes from 10.0.0.52: icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from 10.0.0.51: icmp_seq=0 ttl=64 time=0.490 ms (DUP!)
10.0.0.52 and 10.0.0.51 are the two servers running Tomcat.
However, when I start the servers, I get the following message in 
catalina.out for both servers.

Creating ClusterManager for context /tunetribe using class 
org.apache.catalina.cluster.session.DeltaManager
26-Jan-2005 19:13:29 org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager...:/tunetribe
26-Jan-2005 19:13:29 org.apache.catalina.cluster.session.DeltaManager start
INFO: Manager[/tunetribe], skipping state transfer. No members active in 
cluster group.

I get no further messages after this, the sessions are not replicating 
correctly.

The session ids are being correctly picked up, and when the sessions get 
loaded from the database they are in sync, but when they are modified in 
memory and not yet saved, they are different on each server.

Can anyone suggest how I can get the servers to recognise each other?
Regards,
Simon
--
Simon Whiteside  
Lateral Arts Limited

Clients include: 
Tunetribe.com, The Times and Sunday Times Newspapers, 
Incisive Media, Wigmore Hall, Photobox.com, SOSplc.com

Registered Office: 19 Allenby Road, Forest Hill, London SE23 2RQ 
Registered in England and Wales. Company Number: 3055039 
http://www.larts.co.uk

Blog: http://miro.larts.co.uk/blog
Skype: callto://swhiteside

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


Re: Re: Dynamic Connection

2005-01-26 Thread micky none
Thanks David,
I am already using the Datasource class to vreate a connection.For eg.
Context ctx = (Context) init.lookup("java:comp/env");
ds = (DataSource) ctx.lookup("jdbc/abc");
The problem is that to know which database is selected I am trying to do 
exactly what the BasicDataSource class does,if that's possible.Is there any way 
by which I can read the environment variables that TOMCAT has setplease 
help.


On Thu, 27 Jan 2005 David Smith wrote :
>Sounds like you can just about totally abandon the idea of using any pooling 
>functions provided by DBCP.  If I were designing, I'd construct an object that 
>implements javax.sql.DataSource and store it in the session as soon as you 
>know what db is being used.  Then on each request, get the DS from the session 
>and use it as needed.  Just be sure you only store the DS in the session -- 
>don't store the connections.
>
>I'm sure there are other ideas out there as well.
>
>--David
>
>micky none wrote:
>
>>Hi Friends,
>>I want to dynamically configure the database,username and password 
>>settings,instead of putting them in conf/server.xml.In other words,I dont 
>>know beforehand which database to use,
>>with which username and password.It all depends upon the person and the 
>>machine from which it tries to make a connection.In yet another words,I just 
>>need to do what the BasicDataSource is doing i.e get the connection details 
>>before making a connection.I am not quite sure if you got my point,but this 
>>is what i've been asked to do and I have no clue as to where to go or what to 
>>do.If anyone of you got my point,please help me.
>>Thanks
>>  
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Dynamic Connection

2005-01-26 Thread David Smith
Sounds like you can just about totally abandon the idea of using any 
pooling functions provided by DBCP.  If I were designing, I'd construct 
an object that implements javax.sql.DataSource and store it in the 
session as soon as you know what db is being used.  Then on each 
request, get the DS from the session and use it as needed.  Just be sure 
you only store the DS in the session -- don't store the connections.

I'm sure there are other ideas out there as well.
--David
micky none wrote:
Hi Friends,
I want to dynamically configure the database,username and password settings,instead of putting them in conf/server.xml.In other words,I dont know beforehand which database to use,
with which username and password.It all depends upon the person and the machine from which it tries to make a connection.In yet another words,I just need to do what the BasicDataSource is doing i.e get the 
connection details before making a connection.I am not quite sure if you got my point,but this is what i've been asked to do and I 
have no clue as to where to go or what to do.If anyone of you got my point,please help me.
Thanks
 

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


Re: Long running requests and timeouts...resolved...

2005-01-26 Thread Andrzej Jan Taramina
Just FYI to those that were following this thread, this was a Cocoon (2.1.5) 
issue that caused this, not Tomcat.

Turns out that the Cocoon 2.1.5 ResourceReader sets some response headers 
willy nilly. 

If you have another component that uses a resolver to access a pipeline that 
uses the reader (eg. using the cocoon: pseudo protocol, in our case it was a 
custom PDF concatenation serializer that called out to a sub-pipeline to get 
a separator page pdf), then the reader sets the Content-Length http reponse 
header in the original response object.  If the originating 
component/pipeline generates output that is longer than what the reader 
grabbed, then it gets truncated.  Not sure why Cocoon doesn't create a new 
response object when you try to resolve a local "cocoon:/" resource, but it 
doesn't.

Creating a customized ResourceReader with all response header setting 
commented out resolved the issue for me.

Andrzej


> I have a situation where some requests that get sent to Tomcat are very long
> running (basically batch operations).  I've been testing with a request that
> takes just over 7 minutes to process and returns and XML document as a
> response.
> 
> The problem I'm having is that the response gets truncated.  It's always
> truncated at a consistent spot.  It always sends back exactly 3207 characters
> in the response body and this is consistent using Firefox or a commons-
> httpClient based script.
> 
> Shorter running requests don't truncate anything, regardless of how long the
> response might be.
> 
> I'm running Tomcat 5.0.28 and my Connector in the Tomcat server.xml file looks
> like:
> 
> maxThreads="150" 
> minSpareThreads="25" 
> maxSpareThreads="75"
>enableLookups="false" 
> redirectPort="8443" 
> acceptCount="100"
>debug="0" 
> disableUploadTimeout="true"
>  tcpNoDelay="true"
> connectionLinger="-1"
> connectionTimeout="600"
> connectionUploadTimeout="600"
> keepAlive="true"
> maxKeepAliveRequests="-1"
>  serverSocketTimeout="0"/>
> 
> I've tried all sorts of timeout values in the aboveincluding zero values,
> but the behaviour is consistent. Long running invocations truncate the
> response body to 3207 characters.  I've also tried changing the client side
> timeout values, but again, to no avail.
> 
> I'm kinda stumped as to what might cause this, especially given the very
> consistent response body length that is always returned.  Almost seems like
> some strange buffering issue that is timer-related.
> 
> Any ideas?


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread Ben Souther
Das,

Two things:

First, whenever writing to the list, please start a new thread instead
of just clicking 'reply' from another message.  To those of us using
treaded mail clients, you've just hijacked someone else's thread.

Second, it looks like the sample war file on the jakarta site is
corrupted. For now, can download a working version here:
http://issues.apache.org/bugzilla/attachment.cgi?id=13534

The url to run it will be: http://localhost:8080/myapp
If you've reconfigured your port, etc.. change the url accordingly.

-Ben


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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Caroline,
Thanks for the instant mail.  It is amazing to find
that the support is almost instantaneous for Tomcat
Jakarta Webserver.

I solved the problem by shutting down my IIS admin
service which was occupying the 8080 port

thanks again for the link
http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat



regards,
Das

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread Caroline Jen
Please take a look at 

http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat

It gives instructions on the installation of Tomcat
and compiling and testing simple Servlets and JSPs.  

Please let us know if you still run into problems.
--- K thiruthuvadas <[EMAIL PROTECTED]> wrote:

> Dear Friends,
> i want to subscribe to the mailing list of tomcat.
>  
>  I have a doubt here
>  
>  i successfully installed tomcat 5.x in my windows
>  server
>  
>  but when i tried to run my first sample application
>  i
>  caould not succeed
>  
>  i downloaded the sample file and placed it in the
>  webapps folder.
>  
>  But when i access the http://localhost:8080/sample
>  link the browser asks for network user name and
>  password
>  
>  I could not run my first application with the help
>  available inthe tomcat website
> 
> It shows when Tomcat starts, that port 8080 is in
> use,
> it throws a java.net.bind exception 
>  regards,
>  Das
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile
> phone. 
> http://mobile.yahoo.com/maildemo 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Friends,
i want to subscribe to the mailing list of tomcat.
 
 I have a doubt here
 
 i successfully installed tomcat 5.x in my windows
 server
 
 but when i tried to run my first sample application
 i
 caould not succeed
 
 i downloaded the sample file and placed it in the
 webapps folder.
 
 But when i access the http://localhost:8080/sample
 link the browser asks for network user name and
 password
 
 I could not run my first application with the help
 available inthe tomcat website

It shows when Tomcat starts, that port 8080 is in use,
it throws a java.net.bind exception 
 regards,
 Das




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Dynamic Connection

2005-01-26 Thread micky none
Hi Friends,
I want to dynamically configure the database,username and password 
settings,instead of putting them in conf/server.xml.In other words,I dont know 
beforehand which database to use,
with which username and password.It all depends upon the person and the machine 
from which it tries to make a connection.In yet another words,I just need to do 
what the BasicDataSource is doing i.e get the 
connection details before making a connection.I am not quite sure if you got my 
point,but this is what i've been asked to do and I 
have no clue as to where to go or what to do.If anyone of you got my 
point,please help me.
Thanks

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2005-01-26 Thread Tim Funk
 - is not part of the servlet spec. It will not appear in tomcat.
-Tim
Mark wrote:
run-at is 2.4 spec and I think Tomcat 4 _IS_NOT_ Servlet 2.4 spec
My guess it will work in Tomcat 5.0.X and above.
Comments?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2005-01-26 Thread Mark
run-at is 2.4 spec and I think Tomcat 4 _IS_NOT_ Servlet 2.4 spec

My guess it will work in Tomcat 5.0.X and above.
Comments?

Mark.


--- Dwayne Ghant <[EMAIL PROTECTED]> wrote:

> Have fun I hope this helps!!! It should.
> 
> 
> 
>   servlet-class='test.HelloWorld'>
>   
> 
> 
> 
> 
> The value is a list of 24-hour times when the servlet should be 
> automatically executed. To run the servlet every 6 hours, you could
> use:
> 
> 
> 
>   0:00, 6:00, 12:00, 18:00
> 
> 
> 
> 
> Frank W. Zammetti wrote:
> 
> > Your just lending weight to what I said... Don't play with
> threads in 
> > a servlet contain unless your really sure you have to and are
> really 
> > sure you can do it safely :)
> >
> > (I'm not sure I knew init() could be called more than once,
> certainly 
> > I didn't remember when I wrote that, so excellent point)
> >
> 
> 
> -- 
> 
> Dwayne A. Ghant
> Application Developer
> Temple University
> 215.204.
> [EMAIL PROTECTED]
> 
>  
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



RE: Deploying a Servlet to Tomcat 5.0

2005-01-26 Thread Ben Souther
The invoker servlet is no longer active by default in Tomcat.
See: http://jakarta.apache.org/tomcat/faq/misc.html#evil
Core Servlets (1st Edition) is a bit out of date in this respect.

You'll need to map your servlet in your web.xml file.
If you want an example, I've published some war files that you can just
drop into your webapps directory and run.
http://simple.souther.us

SimpleServlet has a web.xml file with a servlet mapping in it.





On Wed, 2005-01-26 at 13:44, Anil Philip wrote:
> See http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Download-Tomcat
> 
> 
> -Original Message-
> From: Harsha perera [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 25, 2005 12:04 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Deploying a Servlet to Tomcat 5.0
> 
> Hi,
> 
> I have been trying to deploy a simple servlet to
> Tomcat 5.0. Tomcat is installed on WIndows XP.
> 
> This is what I did:
> 1. Created a directory structure under 
>$TOMCAT_HOME\webapps as follows:
>ROOT\WEB-INF\classes
> 
> 2. Moved the class(HelloServlet.class) to the
>above created directory.
> 
> 3. Bounced Tomcat.
> 
> 4. Attempting to access the class as 
>http://localhost:8080/servlet/HelloServlet gives 
>me the error:
>HTTP Status 404 - /servlet/HelloServlet
> 
> 
> 
> 
> type Status report
> 
> message /servlet/HelloServlet
> 
> description The requested resource
> (/servlet/HelloServlet) is not available.
> 
> 
> Please advise on how I should be deploying this simple
> servlet. 
> 
> The servlet is code is given below:
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> /** Simple servlet used to test server.
>  *  
>  *  Taken from Core Servlets and JavaServer Pages 2nd
> Edition
>  *  from Prentice Hall and Sun Microsystems Press,
>  *  http://www.coreservlets.com/.
>  *  © 2003 Marty Hall; may be freely used or
> adapted.
>  */
> 
> public class HelloServlet extends HttpServlet {
>   public void doGet(HttpServletRequest request,
> HttpServletResponse response)
>   throws ServletException, IOException {
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
> String docType =
>   " +
>   "Transitional//EN\">\n";
> out.println(docType +
> "\n" +
> "Hello\n"
> +
> "\n" +
> "Hello\n" +
> "");
>   }
> }
> 
> 
> 
> Regards
> Harsha
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Realms getting confused in context reload

2005-01-26 Thread Brandon Goodin
I have some strange behavior showing up with Tomcat 5.0.30.

I have a host configured with two contexts. The contexts are deployed
as wars. But, they have configuration information in the server.xml.
Each context has it's own realm defined within the context tag. The
contexts are named "/admin" and "/customer". The "/customer" context
is configured to use a DatasourceRealm for authentication. The
"/admin" is configured to use a custom realm called
ReverseProxyRealm5. Both contexts share a jndi datasource resource
defined in the DefaultContext tag.

The odd behavior that i am experiencing happens during an auto reload
of the context after both of the war files have been changed. Once the
contexts have reloaded and the new war files have been autoDeployed I
lose the use of my ReverseProxyRealm5 on the admin context.  But, not
only do i lose it, it also switches to using the DatasourceRealm as
defined in the customer context.

After i  stop and start tomcat everything is fine again. I have tested
this out running Tomcat from the command line and within eclipse with
the same resulting behavior.

I deleted the  /conf/Catalina directory and the /work/Catalina
directory for good  measure. But, all the behavior continues.

Attached is my server.xml host file without the sensitive info.










factory

org.apache.commons.dbcp.BasicDataSourceFactory



driverClassName
com.ibm.as400.access.AS400JDBCDriver


url

jdbc:as400://some.url.here.org;naming=system;date format=iso



username
dudesusername


password
dudespassword


maxActive
20


maxIdle
10


maxWait
-1


validationQuery
SELECT 0 FROM qsqptabl


















Thanks, 
Brandon

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



Rejected client certificate by the server

2005-01-26 Thread Carlos Bracho
Hello everyone.

I writing you because a I have a big problem using ssl and client authenticate.
I created a connector for the client connections:



As it is for educational proposes, I created my own self-signed CA
using openssl and generate a certificate request for the
web server and then I signed with the self-signed CA.
Then I created a client certificate and I signed with the self-signed
CA, I import the self-signed CA in firefox as a
certificate authority and the client certificate as a client
certificate, but when I try to establish a connection I got this
error message: "Could not establish an encrypted connection because
your certificate was rejected by agatha. Error Code -12271"
(agatha is the apache server).
I got a openssl manual and I saw I followed the right steps to create
the CA and the client certificate, I also read that the
common name of the client must match an entry in tomcat-users.xml, I
created an entry with this common name and
the error message still appears.
When I use Internet Explorer I get a error page with this title: The
page cannot be displayed

I opened the stdout.log file and there is a exception repeated 5 times:


NotifyUtil::java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at 
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)


:'(

What is happening??? is there something wrong??

-- 
--
Carlos J, Bracho M.  
--
e-mail:  [EMAIL PROTECTED]
MSN:[EMAIL PROTECTED]
+58 416 409 21 75  
--

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



AW: Tomcat belches out megabytes of white space during log rotation

2005-01-26 Thread Steffen Heil
Hi

> I have this weird problem with an instance of tomcat 4.1.30 
> running on Windows Server 2003. Tomcat output (log messages) 
> is directed into CATALINA_HOME/logs/catalina.out. Every 4 
> hours a little log rotation script runs while tomcat is 
> active. It zips catalina.out into an archived logs folder and 
> then truncates it. All this seems to work ok and you end up 
> with a small 1KB file. 
> 
> The problem is that the next log entry to catalina.out (from the next
> request) is preceded by around 9MB of white space! After 
> heaving this load it settles down and writes log messages 
> normally. Until the next rotation that is. Then the same 
> thing happens. At the first http request to the server after 
> catalina.out is trucated, boom, around 9 more MB of white 
> space is dumped into it. Not the exact same amount as before.
> Actually, the amount has been going on for several months and 
> the actual amount of white space spew has been increasing. It 
> started out around 4MB.

You simply may not modify files, which are in use by other processes.
In fact, you may not modify the log at all, while the jvm has an open handle
on it.

I assume, that the whitespace is the result of truncating the log file.
I assume there are as many spaces in the new log as characters in the old
log.

Simple lesson: Don't do it.
Use another logging mechanism, which has build in rotation support.

I'd also assume the same problem to be present on linux.
It is not surprising that this does not work on windows, it is more
surprising that it works on linux.

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


RE: Deploying a Servlet to Tomcat 5.0

2005-01-26 Thread Anil Philip
See http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Download-Tomcat


-Original Message-
From: Harsha perera [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 12:04 AM
To: tomcat-user@jakarta.apache.org
Subject: Deploying a Servlet to Tomcat 5.0

Hi,

I have been trying to deploy a simple servlet to
Tomcat 5.0. Tomcat is installed on WIndows XP.

This is what I did:
1. Created a directory structure under 
   $TOMCAT_HOME\webapps as follows:
   ROOT\WEB-INF\classes

2. Moved the class(HelloServlet.class) to the
   above created directory.

3. Bounced Tomcat.

4. Attempting to access the class as 
   http://localhost:8080/servlet/HelloServlet gives 
   me the error:
   HTTP Status 404 - /servlet/HelloServlet




type Status report

message /servlet/HelloServlet

description The requested resource
(/servlet/HelloServlet) is not available.


Please advise on how I should be deploying this simple
servlet. 

The servlet is code is given below:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
 *  
 *  Taken from Core Servlets and JavaServer Pages 2nd
Edition
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.coreservlets.com/.
 *  © 2003 Marty Hall; may be freely used or
adapted.
 */

public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String docType =
  "\n";
out.println(docType +
"\n" +
"Hello\n"
+
"\n" +
"Hello\n" +
"");
  }
}



Regards
Harsha

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


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



loadbalancing with mod_jk 1.2.8

2005-01-26 Thread John Smith
 Is there any way to make the connector at run time to NOT send NEW
connections to one the tomcat instances being used for loadbalancing, and
then reload this TC instances once all sessions to it have timed out?

 Are there hooks for this in the mod_jk 1.2.8 Aprotocol?


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



Tomcat belches out megabytes of white space during log rotation

2005-01-26 Thread Cervenka, Tom
I have this weird problem with an instance of tomcat 4.1.30 running on
Windows Server 2003. Tomcat output (log messages) is directed into
CATALINA_HOME/logs/catalina.out. Every 4 hours a little log rotation
script runs while tomcat is active. It zips catalina.out into an
archived logs folder and then truncates it. All this seems to work ok
and you end up with a small 1KB file. 

 

The problem is that the next log entry to catalina.out (from the next
request) is preceded by around 9MB of white space! After heaving this
load it settles down and writes log messages normally. Until the next
rotation that is. Then the same thing happens. At the first http request
to the server after catalina.out is trucated, boom, around 9 more MB of
white space is dumped into it. Not the exact same amount as before.
Actually, the amount has been going on for several months and the actual
amount of white space spew has been increasing. It started out around
4MB.

 

Has anyone seen this or something similar? I don't see this behavior on
Linux servers. The same script works fine. I feel I should also mention
that this server is configured to reply to SSL (https:) requests
although I'm not sure this is relevant info.

 

-Tom Cervenka



RE: ant install fails

2005-01-26 Thread Anil Philip
Has no one encountered this problem before?

-Original Message-
From: Anil Philip [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 24, 2005 9:46 AM
To: tomcat-user@jakarta.apache.org
Subject: ant install fails

Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

   localWar="file://${build.home}"/>

 

Following the "development processes" Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudre&war=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

C:\CRUDRE>ant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

[mkdir] Created dir: C:\CRUDRE\build

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

 [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

[javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 

=== tomcat-users.xml===





  

  

  

  

  

  

  

  



=application-dir\build.properties===



  http://localhost:80/manager"/>

  

===

 

 

Any help, appreciated.

Thanks,

Anil Philip

 



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



Tomcat 5.0: Configuring default directory property

2005-01-26 Thread Shailesh Kochhar
Hi,

I'm running Tomcat 5.0.28 on Win2K and I'm trying to set the default
directory that Tomcat uses when creating/reading files.

I have some dll files that need to be loaded by my webapp and need to
be present in the default directory. I created a jsp page to figure
out what the directory was, and it turns out that it's
C:\WINNT\System32 which is obviously a bad place to put app specific
dlls.

I've tried setting the workDir for both the Host (localhost) and the
Context (foo) in server.xml and placing my dlls there, but with no
luck.

I also tried placing the dlls in
$CATALINA_HOME\work\Catalina\localhost\foo - but that didn't work
either. It seems that my app works only when the dlls are in
C:\WinNT\System32 and I really don't want to leave them there.

Thanks,

  - Shailesh

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



Re: How to suggest the name of file - sorry this is offtopic

2005-01-26 Thread Dola Woolfe
Thanks!

--- Tim Funk <[EMAIL PROTECTED]> wrote:

>
http://jakarta.apache.org/tomcat/faq/misc.html#saveas
> 
> -Tim
> 
> Dola Woolfe wrote:
> 
> > Hi,
> > 
> > I apologize for what is probably an offtopic
> question.
> > 
> > 
> > I have a jsp (MyPage.jsp) that produces a text
> file
> > (contentType="text/text" ).
> > 
> > How can I make it so that when the user chooses to
> > Save the file rather than Open it, that a name
> such as
> > "SomeFileName.txt" is the default. Unfortunately,
> IE
> > defaults to "MyPage.jsp".
> >  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: Jakarta Tomcat Connector - Load Balancing

2005-01-26 Thread Mladen Turk
Derek Greer wrote:
I'm trying to use the Tomcat Connector to do load balancing through the 
IIS filter, however the sessions do not seem to be '"sticky".  According 
to the documentation, the session is set to sticky by default.  Even so, 
after seeing non-sticky behavior I set my lb worker explicitly (i.e. 
worker.lbworker.sticky_session=1).  Why is this not working?

Could be various reasons, but the first one is:
Did you set the jvmRoute to match the worker names?
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question: how to limit one webapp to secured connection another with none-secured?

2005-01-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#https
-Tim
Li Ma wrote:
I have two webapps, one is for system admin, let's call it myadmin. To use
this app, I want user always use secured connection; Another is myapp, which
only allows none-secured conneciton.
Now I want the two apps run in the same Tomcat server. I surely can install
two connectors(one secured, another not). But if I install the unsecured
connector, user can always use it to access myadmin app, which is not good. 

Any idea to resolve my problem?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question: how to limit one webapp to secured connection another with none-secured?

2005-01-26 Thread Li Ma
I have two webapps, one is for system admin, let's call it myadmin. To use
this app, I want user always use secured connection; Another is myapp, which
only allows none-secured conneciton.

Now I want the two apps run in the same Tomcat server. I surely can install
two connectors(one secured, another not). But if I install the unsecured
connector, user can always use it to access myadmin app, which is not good. 

Any idea to resolve my problem?

Thanks!

Li Ma
Ideal Technologies Inc.




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



Jakarta Tomcat Connector - Load Balancing

2005-01-26 Thread Derek Greer
I'm trying to use the Tomcat Connector to do load balancing through the 
IIS filter, however the sessions do not seem to be '"sticky".  According 
to the documentation, the session is set to sticky by default.  Even so, 
after seeing non-sticky behavior I set my lb worker explicitly (i.e. 
worker.lbworker.sticky_session=1).  Why is this not working?

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


RE: Using native and ld_library_path

2005-01-26 Thread Caldarale, Charles R
> From: Andreas Andersson [mailto:[EMAIL PROTECTED]
> Subject: Re: Using native and ld_library_path
> 
> Could I do something like
> java -DLD_LIBRARY_PATH=/path/to/so-file ?

Yes, except the property name is java.library.path (LD_LIBRARY_PATH is only the 
environment variable name).  The default for Linux systems is /usr/lib:/lib 
(for UNIX, it's just /usr/lib), so you could put the .so file there.

I think you have to be careful about where the System.loadLibrary() call is 
issued, since a native library can only be loaded for one class loader.  This 
has implications for sharing the code across applications and for redeploying 
applications.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Ben Souther wrote:
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat
startup time?
I have tried to export the value (export 
LD_LIBRARY_PATH=/path/to/so-file) in both catalina.sh and 
/etc/init.d/tomcat4. Is there any other way to do it?

Could I do something like
java -DLD_LIBRARY_PATH=/path/to/so-file ?
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using native and ld_library_path

2005-01-26 Thread Ben Souther
Have you tried setting LD_LIBRARY_PATH as a java option at Tomcat
startup time?


On Wed, 2005-01-26 at 10:00, Andreas Andersson wrote:
> Hi!
> 
> My application needs to use a native share library. When running normal 
> java program from the commandline it works if I just set LD_LIBRARY_PATH 
> to point to the .so-file. But since tomcat runs as suid (I guess thats 
> why) LD_LIBRARY_PATH is ignored. What can I do instead? Is there any way 
> I can set this parameter in tomcat?
> 
> I've turned of security to see if that could be the error but it wasn't.
> 
> Any help is welcome :)
> 


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



Using native and ld_library_path

2005-01-26 Thread Andreas Andersson
Hi!
My application needs to use a native share library. When running normal 
java program from the commandline it works if I just set LD_LIBRARY_PATH 
to point to the .so-file. But since tomcat runs as suid (I guess thats 
why) LD_LIBRARY_PATH is ignored. What can I do instead? Is there any way 
I can set this parameter in tomcat?

I've turned of security to see if that could be the error but it wasn't.
Any help is welcome :)
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Apache JK2 negative match

2005-01-26 Thread Cox, Charlie
Jk2 is deprecated, so you may want to switch to mod_jk 1.2.8 which now
has all the jk2 features. Since that can be rather involved for some
people, you can use PCRE in Apache 2.x.

I haven't tried this, but it should work.


This definitely works for leading path negative matches on /css and
/images:
 

now you can work on switching to tomcat ;)

Charlie

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of John Patterson
> Sent: Wednesday, January 26, 2005 4:34 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Apache JK2 negative match
> 
> Hi,
> 
> I am trying to get Apache 2.0 to forward all requests to a load
balanced Jetty
> pair via mod_jk2 EXCEPT static resources such as .jpg files.
> 
> Has anyone done this?
> 
> What I would like is some kind of negative match
> 
> 
>   JkUriSet group ajp13:localhost:8009
> 
> 
> Of course this syntax does not exist!  But how else can I do it?
> 
> Thanks,
> 
> John
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: the default name of the local data source

2005-01-26 Thread Parsons Technical Services
I know there is a way to read in the name but am unsure how to do it at this 
point. But there is a logistic issue with it. What if there is more than 
one?

You could do one of three things.
Either:
On startup read in the ds and store it. Then have each class simple grab the 
ds each time.

Or:
Use a properties file to store the name. It is read in during startup and 
stored. Each envCtx.lookup will then use the static variable in place of the 
name.

Or:
On startup create a static class to hold data. Have the variable initialized 
to the name. Then all classes ref this variable.

It depends on if you want to change it without editing the war.
Doug
- Original Message - 
From: "Philippe Mathieu" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, January 26, 2005 2:36 AM
Subject: the default name of the local data source


I am using Tomcat 5.0.28 and my WAR uses a ConnectionPool defined in the 
application context (localDataSource).

To access it, the doc says that we must use these 3 lines in JSP's.
 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup("java:comp/env");
 DataSource ds = (DataSource) envCtx.lookup("mypool");
 Connection con = ds.getConnection();
The disaventage is that if there are many WAR with the same 
localDataSource name, i will have to edit all the JSP/Beans to change the 
localDataSourceNames.

Is there any way to avoid saying the ressource name and for example 
telling that i want to use the localDataSource (without its name) ?

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


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


Re: blank page

2005-01-26 Thread Parsons Technical Services
Please describe environment more. Such as: Are Tomcat and IIS on the same 
machine? Are any firewalls running? What OS? Differences between production 
and development setup?

Doug
- Original Message - 
From: "Pablo Carretero Sánchez" <[EMAIL PROTECTED]>
To: 
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 26, 2005 4:16 AM
Subject: blank page


Hi all,
I have a problem in my production environment and I cann't reproduce this 
in
develop one.

I'm using Tomcat 5.0.27, IIS 6 and Isapi_redirect 1.0.
When I ask on jsp or servlet I get blank page. I review the looger but I 
don't
see any error. Only in the IIS connector I can see entries like:

---
[Wed Jan 19 10:53:23 2005]  [jk_isapi_plugin.c (586)]: 
jk_ws_service_t::write,
WriteClient failed
[Wed Jan 19 10:53:23 2005]  [jk_ajp_common.c (1052)]: ERROR sending data 
to
client. Connection aborted or network problems
[Wed Jan 19 10:53:23 2005]  [jk_ajp_common.c (1303)]: ERROR: Client 
connection
aborted or network problems
---

Any help will be appreciate.
Best regards
--
__
Pablo Carretero Sánchez
Cygnux
Arquitecto de Software
Pintor Velazquez nº 3 Esc Izq 7º B
28932 – Móstoles (Madrid)
Movil: +34 699929150
[EMAIL PROTECTED]

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


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


Re: tomcat

2005-01-26 Thread Parsons Technical Services
Closest thing I could find:
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk2/vhosthowto.html
Doug
Yes the request is being handled by Apache and then
being handed off to Tomcat. I am using Tomcat 5.0 with
jk2 and Apache 2.0.52.
Many thanks
Dave.
--- Parsons Technical Services
<[EMAIL PROTECTED]> wrote:
Need to have you clarify a few things please.
Are the request being handled by Apache and then
handed off to Tomcat?
Are you using jk, jk2 or mod_proxy?
Which version of Tomcat 5.0.x or 5.5.x?
Sorry to ask, but it is necessary to know in order
to give a proper answer.
Doug
- Original Message - 
From: "David Harland" <[EMAIL PROTECTED]>
To: "Tomcat Users List"

Sent: Tuesday, January 25, 2005 6:26 AM
Subject: RE: tomcat

> Hi,
>
> I am using Apache 2x and Tomcat 5x. How do I set a
> virual host to have it default to a specific web
app
> under tomcat. What is the easiest way to do this.
eg
>
> www.test.com
>
> virtualhost default page to /test/index.jsp under
> tomcat.
>
> www.test2.com
>
> virtualhost default page to /test2/index.jsp under
> tomcat.
>
> Many thanks
>
> Dave.
>
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage
less.
> http://info.mail.yahoo.com/mail_250
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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


Re: How to suggest the name of file - sorry this is offtopic

2005-01-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#saveas
-Tim
Dola Woolfe wrote:
Hi,
I apologize for what is probably an offtopic question.
I have a jsp (MyPage.jsp) that produces a text file
(contentType="text/text" ).
How can I make it so that when the user chooses to
Save the file rather than Open it, that a name such as
"SomeFileName.txt" is the default. Unfortunately, IE
defaults to "MyPage.jsp".
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache JK2 negative match

2005-01-26 Thread John Patterson
Hi,

I am trying to get Apache 2.0 to forward all requests to a load balanced Jetty
pair via mod_jk2 EXCEPT static resources such as .jpg files.

Has anyone done this?  

What I would like is some kind of negative match


  JkUriSet group ajp13:localhost:8009


Of course this syntax does not exist!  But how else can I do it?

Thanks,

John


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



Re: blank page

2005-01-26 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



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



blank page

2005-01-26 Thread Pablo Carretero Sánchez
Hi all,

I have a problem in my production environment and I cann't reproduce this in
develop one.

I'm using Tomcat 5.0.27, IIS 6 and Isapi_redirect 1.0.

When I ask on jsp or servlet I get blank page. I review the looger but I don't
see any error. Only in the IIS connector I can see entries like:

---
[Wed Jan 19 10:53:23 2005]  [jk_isapi_plugin.c (586)]: jk_ws_service_t::write,
WriteClient failed
[Wed Jan 19 10:53:23 2005]  [jk_ajp_common.c (1052)]: ERROR sending data to
client. Connection aborted or network problems
[Wed Jan 19 10:53:23 2005]  [jk_ajp_common.c (1303)]: ERROR: Client connection
aborted or network problems
---

Any help will be appreciate.

Best regards

-- 
__
Pablo Carretero Sánchez
Cygnux

Arquitecto de Software
Pintor Velazquez nº 3 Esc Izq 7º B
28932 – Móstoles (Madrid)
Movil: +34 699929150
[EMAIL PROTECTED]




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