Re[8]: Tomcat/4.1.31 - SSL Troubles

2005-04-14 Thread Andrey
Hello,

Wednesday, April 13, 2005, 11:19:00 PM, you wrote:



 Well so far that is normal, what isn't normal is that the browser
 isn't sending another GET request for https://62.86.16.101/index.jsp
 what happens if you request that URL directly?

 Hang on you know what is happening? I bet HTTP/1.1 isn't enabled in
 the browser, I had the exact same problem the other day...

 Tools / Internet Options, Advanced, HTTP/1.1 Settings: enable both of
 those for some reason the Proxy one still seems to effect things even
 when you tell IE to not use the proxy for the site you are accessing.

 Regards,

I can POST more...   It's loop. .. if i use non-https connection all
work fine. (https is configured on 443 port now .. no difference)


GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101/
Content-Length: 0
Date: Thu, 14 Apr 2005 06:42:27 GMT
Server: Apache-Coyote/1.1





-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



Re: port number

2005-04-14 Thread t.n.a.
Magnotta, Salvatore wrote:
I think what he is saying is sending the requests to the AJP12 and AJP13 
workers.  Look in your Tomcat workers.properties file and make sure you load 
the mod_jk in your Apache httpd config file.
-Original Message-
From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 12:00 PM
To: Tomcat Users List
Subject: Re: port number

Look for mod_jk how to.
It's a connector that can send .jsp or servlets requests from apache to tomcat.

Viorel Dragomir
 

You're both right: maybe I wasn't precise enough when I described what I 
needed, but the connector should do the trick judging by what you've 
told me. I'll give it a go and see what I come up with, thanks.

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


Tomcat 4 issue help HTTP 404

2005-04-14 Thread Manoj Thomas
Getting HTTP 404 error while trying to run a servlet.
It says resourse not found
Please help!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: port number

2005-04-14 Thread t.n.a.
Tim Funk wrote:
You need let apache forward the appropriate requests to tomcat. The 
different ways you can do that can be found here:

http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim

Thank you for the informative link: I'll try to set up such a 
configuration and see what happens.

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


Precompilation of tag files

2005-04-14 Thread Bernhard Slominski
Hi,

after getting the jsp precompilation finally working, I want also want to do
the precompliation for tag files.
I'm using tomcat 5.5.7 on both Windows 2000 and Sun Solaris.
So something like this:
%@ taglib prefix=mytag tagdir=/WEB-INF/tags %
mytag:header/

The precompilation task generates servlets and servlet mappings in the
web.xml.
The jasper2 task also creates the servlet and even the class file for the
tag file.
But I don't see a chance to do the mapping to the compiled tag file servlet
in the web.xml.

Any ideas about this?

Thanks

Bernhard




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



Why does this JkCoyoteHandler message appears?

2005-04-14 Thread Zsolt Koppany
Hi,

The message below appears very often. How can I fix it?

Apr 13, 2005 11:54:24 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited

TC-5.0.27

Zsolt


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



Re: Tomcat 4x - Delayed Startup when connected to network

2005-04-14 Thread Shimon_Crown

I found the problem here. Using the -debug startup option I saw that Tomcat
was hanging on the line
Loading startup class.

Immediately after this the Catalina classloader is called to create a
class. The problem was that we use security profiles located on a remote
computer. For some reason this computer was switched off so there was no
access to these files. The classloader tries to access all the profiles to
check security. I guess that the classloader in Tomcat 5.x is more
intelligent here.

Once I turned on the remote computer the problem was solved.



Shimon Crown
Software Development
MKS Instruments
Control and Information Technology Division




   
  [EMAIL PROTECTED] 
   
  nst.com  To:   
tomcat-user@jakarta.apache.org
   cc:  
   
  04/13/2005 06:03 Subject:  Tomcat 4x - Delayed 
Startup when connected to network 
  PM
   
  Please respond to 
   
  Tomcat Users 
   
  List 
   

   

   




Tomcat 4,1  (we have tried the latest 31 build and an earlier 24 build) on
Windows XP.

When Tomcat starts it  hangs for an awfully long time (2 or 3 minutes)
before it prints the init line and tells me that it is initializing coyote.
This only happens when the host computer is connected to the network (i.e.
if the network cable is pulled out the Tomcat starts immediately). I guess
it is trying to connect to something on the network which is taking a long
time.  I have tried setting the verbosity (or is it Verbosity?) setting for
the loggers to see what it is doing but I don't think I have the correct
syntax for this (Verbosity=99 or verbosity=99) are not helpful. How can
I get some useful information before it prints out

Apr 13, 2005 5:56:34 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone

This problem only started yesterday. We have been using Tomcat 4.1 for as
long as it has been out.

For the record this problem doesn't occur with the latest Tomcat 5 release.
Unfortunately we can't upgrade to this yet.


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




This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential information.  Any review,
dissemination, copying, printing or other use of this e-mail by persons or
entities other than the addressee is prohibited. If you have received this
e-mail in error, please contact the sender immediately and delete the
material from any computer.



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



Re[9]: Tomcat/4.1.31 - SSL Troubles

2005-04-14 Thread Andrey
Hello,

HTTPS:

GET /application/index.html HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8443
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101:8443/
Content-Length: 0
Date: Thu, 14 Apr 2005 09:17:36 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8443
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101:8443/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 09:17:36 GMT
Server: Apache-Coyote/1.1

GET /index.jsp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8443
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101:8443/
Content-Length: 0
Date: Thu, 14 Apr 2005 09:17:36 GMT
Server: Apache-Coyote/1.1

GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8443
Connection: Keep-Alive

HTTP/1.1 302 Moved Temporarily
Location: https://62.86.16.101:8443/index.jsp
Content-Length: 0
Date: Thu, 14 Apr 2005 09:17:36 GMT
Server: Apache-Coyote/1.1

and again and again..
--

But for HTTP:

GET /application/index.html HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8080
Connection: Keep-Alive

HTTP/1.1 200 OK
ETag: W/735-1088131466000
Last-Modified: Fri, 25 Jun 2004 02:44:26 GMT
Content-Type: text/html
Content-Length: 735
Date: Thu, 14 Apr 2005 09:33:40 GMT
Server: Apache-Coyote/1.1

GET /application/subdirectory/main.html HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
Referer: http://62.86.16.101:8080/application/index.html
Accept-Language: lv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322)
Host: 62.86.16.101:8080
Connection: Keep-Alive

HTTP/1.1 200 OK
ETag: W/364-108813149
Last-Modified: Fri, 25 Jun 2004 02:44:50 GMT
Content-Type: text/html
Content-Length: 364
Date: Thu, 14 Apr 2005 09:33:40 GMT
Server: Apache-Coyote/1.1



-- 
Best regards,
Andrey
[EMAIL PROTECTED]


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



clustering without loadbalancing

2005-04-14 Thread Gaurav Bansal
I want to form a two node cluster of Tomcat servers which can failover but 
there should be no load balancing. But it should support session replication. 
This should be in such a way that all request are coming to one server(active 
one) and other is completely free(passive one). so if this active server fails 
it should be able to make the failover to the other passive server with session 
replication. I wan't to do it on linux. 

Yahoo! India Matrimony: Find your life partneronline.

clustering without loadbalancing

2005-04-14 Thread Gaurav Bansal
I want to form a two node cluster of Tomcat servers
which can failover but there should be no load
balancing. But it should support session replication.
This should be in such a way that all request are
coming to one server(active one) and other is
completely free(passive one). so if this active server
fails it should be able to make the failover to the
other passive server with session replication. I wan't
to do it on linux. 

P.S.-sorry for the last HTML msg.

Gaurav Bansal



Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



Re: clustering without loadbalancing

2005-04-14 Thread David Rees
On 4/14/05, Gaurav Bansal [EMAIL PROTECTED] wrote:
 I want to form a two node cluster of Tomcat servers which can failover but 
 there should be no 
 load balancing. But it should support session replication.

I assume that you want to do it with Apache and have mod_jk handle the
distribution of requests to Tomcat as well?

-Dave

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



RE: How do I restrict access to webapps applications from browser users?

2005-04-14 Thread Darryl Wilburn
Another option would be the BadInputFilterValve.  I
can't really speak to that option as I have not used
it.  But, maybe someone else has?

Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: ThreadPool logFull

2005-04-14 Thread David Rees
On 4/13/05, Patty O'Reilly [EMAIL PROTECTED] wrote:
 
 I'm running tomcat 5.0.30.
 
 After running for a week or so the server begins to slow down and
 finally crashes because it is out of threads. I can see the java
 processes accumulating day by day.

Send the process a -QUIT signal if on Linux, do the equivalent on
Windows and you can get stack traces showing where each thread is
getting stuck instead of returning to the thread pool for new
processing.

 I'm pretty new to tomcat. Not sure if the error is in my apache
 server's workers.properties, or the tomcat servers server.xml, or

It's probably not a Tomcat issue, but your something in your
application which is getting hung up.

-Dave

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



RES: RES: How can I create a digest password - digest.bat is the key!

2005-04-14 Thread Paulo Alvim
Thank you...

My English is not so good...but what I'd like to say is that if these
admins and webadmins guys are editing the configuration files and typing
the passwords as they are...it's easier for an internal observer racker.
If the pass would be encrypted it would be 'a little' more difficult...



-Mensagem original-
De: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 14 de abril de 2005 00:58
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!


Dejavu

In a properly configured system, if the attacker can read the server.xml or
context element then he has OWNED your system and has free reign.

If secured on windows then only two groups should have access, admins and
the webadmins. If either of those have been compromised you got big issues.

What exactly do you mean by watch clean passwords?

Doug


- Original Message -
From: Paulo Alvim [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 7:00 PM
Subject: RES: RES: How can I create a digest password - digest.bat is the
key!


 Ok, thank you,

 I didn't think that it would be the only solution...but it would make
 things
 a little more difficult and our customers don't like the idea of to watch
 clean passwords because they don't do it to create Windows Services or
 Oracle users.

 We know that these softwares have proprietary databases to store that
 pass -
 but I was wondering what could be done in the Tomcat Open-Source
 context...do you think that the only approach would be to protect the
 folders/files - file system level security? What are you guys doing?

 -Mensagem original-
 De: Mark Thomas [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 13 de abril de 2005 18:16
 Para: Tomcat Users List
 Assunto: Re: RES: How can I create a digest password - digest.bat is the
 key!


 Paulo,

 I am pretty sure this won't work. Tomcat can't calculate the real
 password (required by the database) from the hash. The key feature of a
 hash is its one way nature.

 Also, if Tomcat could get the password from the hash so could any
 attacker.

 Mark

 Paulo Alvim wrote:
 Lorenzo,

 Are you using the DBCP JDBC connection pooling (with that configuration
 files in the conf/catalina/localhost)?

 We'd like to know if your approach could be used to change the JDBC pool
 configuration files from:

   ResourceParams name=jdbc/jcompanyadmseg
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@x:1521:oraplcdb/value
 /parameter
 parameter
   nameusername/name
   valuedemo3/value
 /parameter
 parameter
   namepassword/name
   valuemypass/value
 /parameter
(...)
   /ResourceParams

 ...to something like (pass encrypted):

 ResourceParams name=jdbc/jcompanyadmseg
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@x:1521:oraplcdb/value
 /parameter
 parameter
   nameusername/name
   valuedemo3/value
 /parameter
 parameter
   namepassword/name
   value%$#I(#)$/value
 /parameter
(...)
   /ResourceParams


 -Mensagem original-
 De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 13 de abril de 2005 17:13
 Para: Tomcat Users List
 Assunto: RE: How can I create a digest password - digest.bat is the key!
 Prioridade: Alta


 Dear Paulo:

 Thanks for your comments.

 What we want is to have minimum exposure to hacking.

 We found out that, in the context.xml, we can specify the users.xml file,
 and the digest method. So now it is possible to have a different user and
 password for admin and manager, and in a separate location where
 hackers -hopelly- cannot get thru.

 Also in the net we found that we can generate the MD5 password using
 digest.bat that is in the tomcat/bin directory. This worked perfectly!

 Thanks again,
 Regards,

 Lorenzo Jimenez



 -Original Message-
 From: Paulo Alvim [mailto:[EMAIL PROTECTED]
 Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
 To: Tomcat Users List
 Subject: [SPAM2] - RES: How can I create a digest password - another
 error -
 Found word(s) list error in the Text body

 Hi,

 I don't know if it's your objective but is it possible to use MD5 to
 encode
 passwords in the DBCP conf files?

 Is there any documentation about how could we avoid to have the real
 passwords in these files?

 Thanks in advance!

 Alvim

 -Mensagem original-
 De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 13 de abril de 2005 15:04
 Para: Tomcat Users List
 Assunto: RE: How can I create a digest password - another error
 Prioridade: Alta



 Dear Jerry:

 Thanks for the advice.

 I follow your advice but 

Re: clustering without loadbalancing

2005-04-14 Thread Gaurav Bansal
is apache necessary for this and where can i get the
details regarding this becoz i m new to tomcat

--- David Rees [EMAIL PROTECTED] wrote:
 On 4/14/05, Gaurav Bansal [EMAIL PROTECTED]
 wrote:
  I want to form a two node cluster of Tomcat
 servers which can failover but there should be no 
  load balancing. But it should support session
 replication.
 
 I assume that you want to do it with Apache and have
 mod_jk handle the
 distribution of requests to Tomcat as well?
 
 -Dave



Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



RE: clustering without loadbalancing

2005-04-14 Thread Peter Crowther
 From: Gaurav Bansal [mailto:[EMAIL PROTECTED] 
 is apache necessary for this

No - in fact, it merely introduces another single point of failure,
which I assume is what you want to avoid.  However, you need *something*
that will choose whether the primary or standby instance receives any
given request from the user.  You could use any appropriate approach -
changing IP addresses, one or more front-end gateways that detect failed
requests, whatever meets your requirements.

- Peter

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



RE: apache + tomcat + JK connector configuration

2005-04-14 Thread Trung Nguyen
Are you using load balance in your app?  If not, you probably don't need this 
line:

worker.worker1.lbfactor=50

Try to use this configuration in the server.xml

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=6969 minProcessors=5 maxProcessors=75
enableLookups=false acceptCount=10 debug=0/

Hope this helps...


-Original Message-
From: Delphine Lê [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 6:41 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: apache + tomcat + JK connector configuration


thank you, but it's got them:

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=6969
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300


 Post the workers.properties file.  You probably need to include these
 lines in that file:

 worker.list=worker1
 worker.worker1.port=6969



 -Original Message-
 From: Delphine Lê [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 2:01 PM
 To: tomcat-user@jakarta.apache.org
 Subject: apache + tomcat + JK connector configuration


 Hello,



 Has anyone had any success in configuring Apache (2.0.53) with Tomcat
 (4.1.29) in Windows XP, using a recent JK connector ?

 We have a server running with the JK2 connector and I'm trying to
 replace it with the latest JK connector (JK-1.2.10), the reason being
 that JK2 is officially unsupported as of 15 Nov 2004 and we're
 experiencing a problem with truncated requests due to this connector.



 In Apache, I configured a worker called worker1 and I send everything
 from context /examples to this worker following
 http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

 The configuration looks fine, since I can see in the following lines in
 mod_jk.log:



 [Wed Apr 13 18:49:13 2005] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
 /examples=worker1 was added

 [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
 creating worker worker1

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
 about to create instance worker1 of ajp13

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
 about to validate and init worker1

 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
 worker worker1 contact is 'localhost:6969'



 However, if I send a request, it doesn't get through and I get an error
 message in the browser.

 The log shows:

 [Wed Apr 13 18:50:16 2005] [info]
 ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong
 host/port (127.0.0.1:6969). Failed errno = 61

 [Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
 (1227): Error connecting to the Tomcat process.



 What should I change in Tomcat configuration to have it work with JK
 instead of JK2 ?

 It is of course started and listening on port 6969. The configuration in
 server.xml looks like this:



 Connector className=org.apache.ajp.tomcat4.Ajp13Connector

 port=6969 minProcessors=5 maxProcessors=75 enableLookups=true
 redirectPort=8443 acceptCount=100 debug=0
 connectionTimeout=2 useURIValidationHack=false
 disableUploadTimeout=true/



 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]


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



RE: Apache Tomcat JK Mod

2005-04-14 Thread Phillip Qin
JkMount /context/* worker1
JkMount /context worker1

-Original Message-
From: Geoff Wiggs [mailto:[EMAIL PROTECTED] 
Sent: April 13, 2005 8:16 PM
To: tomcat-user@jakarta.apache.org
Subject: Apache Tomcat  JK Mod


I know this question has probably been asked 1000 times, but here I go
again.
 
I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
correctly (i.e. www.server.com/context/) my jsp's and servlets come up
just fine.  Now I want to serve my home page (www.server.com
http://www.server.com/ ) as a JSP.  My context is /home.  If I hit
www.server.com/home the JSP comes up just the way I want it.
 
How can I make the connection between the request for www.servername.com
http://www.servername.com/  and the correct context
www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine, I
am just having a problem making the connection between the three work the
way I need.  
 
Regards,
 
Geoff 
[EMAIL PROTECTED]
 


!DSPAM:425db628239247680086418!


RE: Why does this JkCoyoteHandler message appears?

2005-04-14 Thread Phillip Qin
Check your code. Various reasons will cause this INFO.

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 4:52 AM
To: Tomcat Users List
Subject: Why does this JkCoyoteHandler message appears?


Hi,

The message below appears very often. How can I fix it?

Apr 13, 2005 11:54:24 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited

TC-5.0.27

Zsolt


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


!DSPAM:425e3c6a284981253566427!


RE: Apache Tomcat JK Mod

2005-04-14 Thread Geoff Wiggs

I tried this, but I still get sent to the Tomcat splash page.  The url I am
trying to translate to is www.orcastech.com/home/ .  Any more clues?

VirtualHost *
ServerName www.servername.com
RewriteEngine On
RewriteRule (.*) /home$1
JkMount /home/* worker1
JkMount /emba48wiki*worker1
JkMount /admin  worker1
JkMount /managerworker1
JkMount /*  worker1
/VirtualHost

Geoff Wiggs
Orcas Technologies, Inc
[EMAIL PROTECTED]
650-520-1121
 
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:11 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat  JK Mod

Geoff Wiggs wrote:
 I know this question has probably been asked 1000 times, but here I go
 again.


OK. Once for all :)

RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]



 I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
 correctly (i.e. www.server.com/context/) my jsp's and servlets come up
 just fine.  Now I want to serve my home page (www.server.com
 http://www.server.com/ ) as a JSP.  My context is /home.  If I hit
 www.server.com/home the JSP comes up just the way I want it.
  
 How can I make the connection between the request for www.servername.com
 http://www.servername.com/  and the correct context
 www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine,
I
 am just having a problem making the connection between the three work the
 way I need.  
  

I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.

Regards,
Mladen.



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



RE: Apache Tomcat JK Mod

2005-04-14 Thread Phillip Qin
Is there an index.jsp in your context?

-Original Message-
From: Geoff Wiggs [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 10:37 AM
To: 'Mladen Turk'
Cc: tomcat-user@jakarta.apache.org
Subject: RE: Apache Tomcat  JK Mod



I tried this, but I still get sent to the Tomcat splash page.  The url I am
trying to translate to is www.orcastech.com/home/ .  Any more clues?

VirtualHost *
ServerName www.servername.com
RewriteEngine On
RewriteRule (.*) /home$1
JkMount /home/* worker1
JkMount /emba48wiki*worker1
JkMount /admin  worker1
JkMount /managerworker1
JkMount /*  worker1
/VirtualHost

Geoff Wiggs
Orcas Technologies, Inc
[EMAIL PROTECTED]
650-520-1121
 
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:11 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat  JK Mod

Geoff Wiggs wrote:
 I know this question has probably been asked 1000 times, but here I go 
 again.


OK. Once for all :)

RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]



 I have Apache / Tomcat and jk_mod all running correctly.  If I hit the 
 URL correctly (i.e. www.server.com/context/) my jsp's and servlets 
 come up just fine.  Now I want to serve my home page (www.server.com 
 http://www.server.com/ ) as a JSP.  My context is /home.  If I hit 
 www.server.com/home the JSP comes up just the way I want it.
  
 How can I make the connection between the request for 
 www.servername.com http://www.servername.com/  and the correct 
 context www.servername.com/home?  Apache, jk_mod or Tomcat options 
 would be fine,
I
 am just having a problem making the connection between the three work 
 the way I need.
  

I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.

Regards,
Mladen.



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


!DSPAM:425e801d311201629985329!


session-timeout

2005-04-14 Thread Cédric Buschini
Hi every,
from web.xml:
   session-config
   session-timeout30/session-timeout
   /session-config
Does the session-timeout refer to an idle session or an active session ?
Thk in advance
Cedric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: session-timeout

2005-04-14 Thread Tim Funk
If more than idle for 30 minutes.
-Tim
Cédric Buschini wrote:
Hi every,
from web.xml:
   session-config
   session-timeout30/session-timeout
   /session-config
Does the session-timeout refer to an idle session or an active session ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: session-timeout

2005-04-14 Thread Jay Burgess
Think of the timeout as a 30 minute countdown timer.  Every time there is any
session activity, like a page request, the timers starts over.  If the timer
ever gets to 0, then the session times out.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 10:13 AM
To: Tomcat Users List
Subject: Re: session-timeout

If more than idle for 30 minutes.

-Tim

Cédric Buschini wrote:
 Hi every,
 
 from web.xml:
session-config
session-timeout30/session-timeout
/session-config
 
 Does the session-timeout refer to an idle session or an active session ?
 

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

2005-04-14 Thread Cédric Buschini
thank you !!
Jay Burgess wrote:
Think of the timeout as a 30 minute countdown timer.  Every time there is any
session activity, like a page request, the timers starts over.  If the timer
ever gets to 0, then the session times out.
Jay
Vertical Technology Group
http://www.vtgroup.com/
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 10:13 AM
To: Tomcat Users List
Subject: Re: session-timeout

If more than idle for 30 minutes.
-Tim
Cédric Buschini wrote:
 

Hi every,
from web.xml:
  session-config
  session-timeout30/session-timeout
  /session-config
Does the session-timeout refer to an idle session or an active session ?
   

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


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

 

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


Re: Tomcat memory alert

2005-04-14 Thread Ronaldo Arrudas
Hi carlos:
I think a nice way is to deploy a simple TimerTask inside any webapp to 
do this work. You could use anything like the following to help you:

import java.util.*;
public class MemoryWatchDog extends TimerTask{
   private static Timer currentTimer = null;
   public static void startTimer() {
   if(currentTimer != null)
   return;
   int seconds = 60;
   Timer timer = new Timer();
   timer.scheduleAtFixedRate(new WatchDog(), 1, (seconds * 1000));
   currentTimer = timer;
   }
   }
   public static void stopTimer() {
   if(currentTimer == null)
   return;
   currentTimer.cancel();
   currentTimer = null;
   }
   private WatchDog() {
   // Just for hide the constructor
   }
   public void run() {
   int long lowMemory = 5242880; // 5Mb
   if(Runtime.getRuntime().freeMemory()  = lowMemory){
   // Using Jakarta Commons-Email to do the hard work...
   SimpleEmail email = new SimpleEmail();
   email.setHostName(mail.myserver.com);
   email.addTo([EMAIL PROTECTED],John Doe);
   email.setFrom([EMAIL PROTECTED], Tomcat);
   email.setSubject(Warning!!!);
   email.setMsg(Look at me! I won't have enough memory in few 
seconds!!!
  + \n Free memory (bytes): 
  + Runtime.getRuntime().freeMemory());
   email.send();
   }
   }
}

[]'s
Ronaldo Arrudas
[EMAIL PROTECTED]
Carlos Rule wrote:
Hello all, newbie here.
Does anyone know if there is a reliable way of setting up an alert to tell
me whenever the Tomcat (5.0.25) process reaches a certain level of memory
usage? 

Many thanks!
Carlos

 



smime.p7s
Description: S/MIME Cryptographic Signature


Off-topic question: Does Hibernate have a mailing list?

2005-04-14 Thread Behrang Saeedzadeh
Hi all

Does anyone know if Hibernate have a mailing list or not? The
Hibernate's forum is very quiet...

Best Regards,
-- 

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

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



RE: Off-topic question: Does Hibernate have a mailing list?

2005-04-14 Thread Guy Katz
try http://www.hibernate.org/20.html

-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 7:01 PM
To: Tomcat Users List
Subject: Off-topic question: Does Hibernate have a mailing list?


Hi all

Does anyone know if Hibernate have a mailing list or not? The
Hibernate's forum is very quiet...

Best Regards,
-- 

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

-
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: Off-topic question: Does Hibernate have a mailing list?

2005-04-14 Thread Behrang Saeedzadeh
Thanks for the reply. But is the development mailing list for users
of Hibernate or its CVS developers? Does it have a mailing list for
users?

Best Regards,
Behi

On 4/14/05, Guy Katz [EMAIL PROTECTED] wrote:
 try http://www.hibernate.org/20.html
 
 -Original Message-
 From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 14, 2005 7:01 PM
 To: Tomcat Users List
 Subject: Off-topic question: Does Hibernate have a mailing list?
 
 Hi all
 
 Does anyone know if Hibernate have a mailing list or not? The
 Hibernate's forum is very quiet...
 
 Best Regards,
 --
 
 Behrang Saeedzadeh
 http://www.jroller.com/page/behrangsa
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

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



Re: Off-topic question: Does Hibernate have a mailing list?

2005-04-14 Thread Christoph Kutzinski
Why is the forum quiet? I count more than 30 new posts today.
Guy Katz wrote:
try http://www.hibernate.org/20.html
-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 7:01 PM
To: Tomcat Users List
Subject: Off-topic question: Does Hibernate have a mailing list?
Hi all
Does anyone know if Hibernate have a mailing list or not? The
Hibernate's forum is very quiet...
Best Regards,
 


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


Re: ThreadPool logFull

2005-04-14 Thread Patty O'Reilly
I did the thread dump. Cool.

There are 25 threads that look like this:

http-8100-Processor13 daemon prio=1 tid=0x083c6090 nid=0x99a in Object.wait() 
[bcdff000..bcdff8d0]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x33feebc0 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:429)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
   - locked 0x33feebc0 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:534)

There is 1 thread that look like this:

http-8100-Processor25 daemon prio=1 tid=0x084badf8 nid=0x9a6 runnable 
[bb5ff000..bb5ff8d0]
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
   - locked 0x33ef71f0 (a java.net.PlainSocketImpl)
   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
   at java.net.ServerSocket.accept(ServerSocket.java:419)
   at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:534)

There are 102 of these runnable processes and two waiting:

TP-Processor39 daemon prio=1 tid=0x0809de40 nid=0x35d0 runnable 
[b53ff000..b53ff8d0]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
   - locked 0x3449e188 (a java.io.BufferedInputStream)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:598)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:535)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:534)

The total number of processes is now at 143 for this tomcat instance.
Yesterday evening it was at around 95. Most of the hits are the result of
our monitoring system.

I don't know how to make sense of the thread dumps. The application was
written by one of our developers. It performs a simple export compliance
task. The app simply grabs the user's name and checks to see if it is in
a database, if it isn't, the app displays an agreement, which the users
either accepts or rejects. If the user accepts the agreement, their name
is added to the database. After that, the user is redirected to either a
logout page if they don't accept the agreement, or they are redirected
to another server, if their name appears in the database.

Can you help with the tread dump?

--patty

On Thu, 14 Apr 2005, David Rees wrote:

 Date: Thu, 14 Apr 2005 04:56:17 -0700
 From: David Rees [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org,
  David Rees [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: ThreadPool logFull

 On 4/13/05, Patty O'Reilly [EMAIL PROTECTED] wrote:
 
  I'm running tomcat 5.0.30.
 
  After running for a week or so the server begins to slow down and
  finally crashes because it is out of threads. I can see the java
  processes accumulating day by day.

 Send the process a -QUIT signal if on Linux, do the equivalent on
 Windows and you can get stack traces showing where each thread is
 getting stuck instead of returning to the thread pool for new
 processing.

  I'm pretty new to tomcat. Not sure if the error is in my apache
  server's workers.properties, or the tomcat servers server.xml, or

 It's probably not a Tomcat issue, but your something in your
 application which is getting hung up.

 -Dave

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



JULI and logging

2005-04-14 Thread Tran Hung-Phu-r50825
For tomcat 5.5.9.  the default setting logs to both
Catalina.out and Catalina.-mm-dd.log files

My question are:
1) how to channel all startup messages to one file?

2) how to disable JULI (on by default)?

thanks



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



Duplicate configuration file

2005-04-14 Thread Vy Ho
Please tell me if this is a bug in Tomcat.
I just ran into this problem.  It would help someone running into a same 
issue.

I deploy a webapp with datasource configured through ROOT.xml (inside 
conf/Catalina/localhost/ROOT.xml).  The data source was not found when I 
run the webapp.  So, I check the admin, and the database source is there 
under /.  The error was that the connection fail because of the driver 
class '' and the url string null.  After awhile, I found out that there 
is another file under conf/Catalina/localhost named .xml.  So this one 
override the another.  The problem is that admin picks up the ROOT.xml, 
while the engine picks up .xml. I am not sure what the spec says about 
this, but this seems really fishy.


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


graph.jsp exception non-j2sdk as JAVA_HOME

2005-04-14 Thread mel kravitz
Hi,
On alpha arch- debian-unstable , 2.6.10 kernel, there is no j2sdk port 
to this arch, using sablevm.org
java -version:
SableVM version 1.11.3
- compile date and time: 2005-03-31 19:12:02 UTC
- gcc version: 3.3.5 (Debian 1:3.3.5-8)
- 'real life brokenness' features enabled
- signal based exception detection
- copying garbage collection
- bidirectional object layout
- direct-threaded interpreter
javac -version:
Jikes Compiler - Version 1.22 - 3 October 2004
Copyright (C) IBM Corporation 1997-2003, 2004.
- Licensed Materials - Program Property of IBM - All Rights Reserved.
Originally written by Philippe Charles and David Shields of IBM Research,
Jikes is now maintained and refined by the Jikes Project at:
http://ibm.com/developerworks/opensource/jikes
Please consult this URL for more information and for reporting problems.
--- --
with jakarta-tomcat-5.0.19, sh catalina.sh run starts server all is 
well, my application uses mysql-connector for database use, i have one 
problem with graphing encoder -graph.jsp call to sun :
jakarta log:
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=3/307  
config=/home/mel/jakarta-tomcat-5.0.19/conf/jk2.p roperties
[INFO] Catalina - -Server startup in 100482 ms
[ERROR] Compiler - -Error compiling file: 
/home/mel/jakarta-tomcat-5.0.19/work/Catalina/localh 
ost/_//org/apache/jsp/prodGraph_jsp.java [javac] Since compiler 
setting isn't classic or m odern,ignoring fork setting.
[javac] Compiling 1 source file
[javac] Since compiler setting isn't classic or modern,ignoring fork 
setting.

[javac] Found 3 semantic errors compiling 
/home/mel/jakarta-tomcat-5.0.19/work/Catalina/l 
ocalhost/_/org/apache/jsp/prodGraph_jsp.java:

[javac]  9. import com.sun.image.codec.jpeg.*;
[javac]^--^
[javac] *** Semantic Error: You need to modify your classpath, 
sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find 
package com.sun.image.codec.jpeg in:
[javac] /usr/local/share/sablevm-classpath
[javac] 
/usr/local/share/sablevm-classpath/libclasspath.jar
[javac] /usr/local/share/sablevm-classpath/resources.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/bin/bootstrap.jar
[javac] 
/home/mel/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
[javac] /usr/local/lib/sablevm/jre/lib/rt.jar
..etc error continues.
any help here welcome.., any recommendations on a 'free encoder' to call 
in my graph_jsp.java that will compile with my javac? seems that this 
will be a 'bigger' problem with free (non-sun) compilers.
Best -Mel

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


Redirect to https://

2005-04-14 Thread Darryl Wilburn
Where would I configure a context to automatically
redirect to https?  So when a user types
http://host/application, it would automatically
redirect them to https://host/application where a
index.jsp may be a login form that I'd like to have
the username and password encrypted.  I assume it goes
in web.xml, but is it in the web.xml of the context
itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



finding context's jar file

2005-04-14 Thread Altu B. Altnta
I need to find which jar files are being used in one context,
for example below code can give me some information about  
sun.boot.class.path

html
%
  String classpath = System.getProperty(sun.boot.class.path);
  out.println(  + classpath);   
%
/html


Is there anything like that :
html
%
  String classpath = System.getProperty(tomcat.context.class.path);
  out.println(  + classpath);   
%
/html

Any idea ?
Regards.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Redirect to https://

2005-04-14 Thread Phillip Qin
Can you do it in apache httpd.conf?

RewriteRule ^/host/application(.*) https://host/application [R]

-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 4:00 PM
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://


Where would I configure a context to automatically
redirect to https?  So when a user types http://host/application, it would
automatically redirect them to https://host/application where a index.jsp
may be a login form that I'd like to have the username and password
encrypted.  I assume it goes in web.xml, but is it in the web.xml of the
context itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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


!DSPAM:425ecbb615383665362806!


RE: Redirect to https://

2005-04-14 Thread Lorenzo Jiménez
I have done that yesterday and it is pretty simple.

Just look this web.xml:

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
session-config
session-timeout
30
/session-timeout
/session-config

!-- Automatic redirection to SSL 
Remember to have SSL active
 --

security-constraint
web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

welcome-file-list
welcome-file
index.jsp
/welcome-file
welcome-file
index.html
/welcome-file
welcome-file
index.htm
/welcome-file
/welcome-file-list
/web-app


Lorenzo


-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 14 de Abril de 2005 02:00 p.m.
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://

Where would I configure a context to automatically
redirect to https?  So when a user types
http://host/application, it would automatically
redirect them to https://host/application where a
index.jsp may be a login form that I'd like to have
the username and password encrypted.  I assume it goes
in web.xml, but is it in the web.xml of the context
itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



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



RE: Redirect to https://

2005-04-14 Thread Darryl Wilburn
Not using Apache as a front end.  Straight Tomcat
5.5.7 with Coyote HTTP.

Darryl



__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

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



Re: JULI and logging

2005-04-14 Thread Jonathan Eric Miller
I haven't tried it yet, but, I noticed that catalina.sh/bat, looks for a jar 
file named tomcat-juli.jar and if it's present, it adds a 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager to 
JAVA_OPTS. I think if you rename or remove that jar file, it will disable it 
(haven't tried it, just a guess).

What I did was change my common/classes/logging.properties file to the 
following. With this setup, everything goes into catalina.out. Note, I found 
that if JULI is enabled, it appears to ignore the 
java.util.logging.config.file property if you passed it in as a system 
property.

handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
Jon
- Original Message - 
From: Tran Hung-Phu-r50825 [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, April 14, 2005 11:59 AM
Subject: JULI and logging


For tomcat 5.5.9.  the default setting logs to both
Catalina.out and Catalina.-mm-dd.log files
My question are:
1) how to channel all startup messages to one file?
2) how to disable JULI (on by default)?
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: Way to specify SingleSignOn session timeout?

2005-04-14 Thread Jonathan Eric Miller
After looking at the code, it looks like the SSO session doesn't go away 
until all other sessions for the user have expired. So, as far as I can 
tell, the SSO session doesn't have it's own session timeout as far as I can 
tell.

Jon
- Original Message - 
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 11:00 AM
Subject: Re: Way to specify SingleSignOn session timeout?


Thanks, but, I know how to set it for a given application. I want to know 
how to set it or at least find out what the default value is for the 
global session. I've noticed that there are two cookies. One is JSESSIONID 
which is for the application session. The other is JSESSIONSSO is is 
presumably for the global session.

Jon
- Original Message - 
From: Peter Rossbach [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 12, 2005 10:56 PM
Subject: Re: Way to specify SingleSignOn session timeout?


Look inside conf/web.xml
 !-- created sessions by modifying the value --
   session-config
   session-timeout30/session-timeout
   /session-config
Peter
Jonathan Eric Miller schrieb:
I'm using the SingleSignOn valve with Tomcat 5.5.9. Does anyone know 
what the default session timeout is set to? Is there a way to specify 
this timeout?

I'm finding that sometimes my session will timeout within an 
application, but, it doesn't redisplay the login page. I want to try to 
set it up so that the session timeout period is the same for all my 
applications (and the same for the global one) and that whenever the 
session times out, the login page is displayed.

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


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

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

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


Re: Way to specify SingleSignOn session timeout?

2005-04-14 Thread Jonathan Eric Miller
After looking at the code, it looks like the SSO session doesn't go away 
until all other sessions for the user have expired. So, as far as I can 
tell, the SSO session doesn't have it's own session timeout as far as I can 
tell.

Jon
- Original Message - 
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 11:00 AM
Subject: Re: Way to specify SingleSignOn session timeout?


Thanks, but, I know how to set it for a given application. I want to know 
how to set it or at least find out what the default value is for the 
global session. I've noticed that there are two cookies. One is JSESSIONID 
which is for the application session. The other is JSESSIONSSO is is 
presumably for the global session.

Jon
- Original Message - 
From: Peter Rossbach [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 12, 2005 10:56 PM
Subject: Re: Way to specify SingleSignOn session timeout?


Look inside conf/web.xml
 !-- created sessions by modifying the value --
   session-config
   session-timeout30/session-timeout
   /session-config
Peter
Jonathan Eric Miller schrieb:
I'm using the SingleSignOn valve with Tomcat 5.5.9. Does anyone know 
what the default session timeout is set to? Is there a way to specify 
this timeout?

I'm finding that sometimes my session will timeout within an 
application, but, it doesn't redisplay the login page. I want to try to 
set it up so that the session timeout period is the same for all my 
applications (and the same for the global one) and that whenever the 
session times out, the login page is displayed.

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


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

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

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


Re: JULI and logging

2005-04-14 Thread Remy Maucherat
On 4/14/05, Jonathan Eric Miller [EMAIL PROTECTED] wrote:
 What I did was change my common/classes/logging.properties file to the
 following. With this setup, everything goes into catalina.out. Note, I found
 that if JULI is enabled, it appears to ignore the
 java.util.logging.config.file property if you passed it in as a system
 property.

It does not ignore it, but virtually no logging will go to the root logger.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Way to specify SingleSignOn session timeout?

2005-04-14 Thread Remy Maucherat
On 4/14/05, Jonathan Eric Miller [EMAIL PROTECTED] wrote:
 After looking at the code, it looks like the SSO session doesn't go away
 until all other sessions for the user have expired. So, as far as I can
 tell, the SSO session doesn't have it's own session timeout as far as I can
 tell.

Indeed.

OTOH, if one of the sessions is explicitely invalidated, the SSO will
go away right away. I think that's the most appropriate behavior, but
changing it is very easy using a little code hacking.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



RE: Apache Tomcat JK Mod

2005-04-14 Thread Geoff Wiggs

Yes - there is an index.jsp in the context /home/
(\\server\c\Apache\Tomcat\webapps\home) directory.

Is there some way to tell how the rewrite is being processed?  My rewrite
log is blank.  

Geoff 
 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 7:46 AM
To: 'Tomcat Users List'
Subject: RE: Apache Tomcat  JK Mod

Is there an index.jsp in your context?

-Original Message-
From: Geoff Wiggs [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 10:37 AM
To: 'Mladen Turk'
Cc: tomcat-user@jakarta.apache.org
Subject: RE: Apache Tomcat  JK Mod



I tried this, but I still get sent to the Tomcat splash page.  The url I am
trying to translate to is www.orcastech.com/home/ .  Any more clues?

VirtualHost *
ServerName www.servername.com
RewriteEngine On
RewriteRule (.*) /home$1
JkMount /home/* worker1
JkMount /emba48wiki*worker1
JkMount /admin  worker1
JkMount /managerworker1
JkMount /*  worker1
/VirtualHost

Geoff Wiggs
Orcas Technologies, Inc
[EMAIL PROTECTED]
650-520-1121
 
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 10:11 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat  JK Mod

Geoff Wiggs wrote:
 I know this question has probably been asked 1000 times, but here I go 
 again.


OK. Once for all :)

RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]



 I have Apache / Tomcat and jk_mod all running correctly.  If I hit the 
 URL correctly (i.e. www.server.com/context/) my jsp's and servlets 
 come up just fine.  Now I want to serve my home page (www.server.com 
 http://www.server.com/ ) as a JSP.  My context is /home.  If I hit 
 www.server.com/home the JSP comes up just the way I want it.
  
 How can I make the connection between the request for 
 www.servername.com http://www.servername.com/  and the correct 
 context www.servername.com/home?  Apache, jk_mod or Tomcat options 
 would be fine,
I
 am just having a problem making the connection between the three work 
 the way I need.
  

I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.

Regards,
Mladen.



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


!DSPAM:425e801d311201629985329!



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



[ANNOUNCE] JSP 2.1 and Faces 1.2 Public Review

2005-04-14 Thread Jan Luehe
We are pleased to announce the availability of the Public Review
of the next versions of the specification for JavaServer Pages (JSP)
and JavaServer Faces (Faces).  JSP 2.1 is developed under JSR-245 and
Faces 1.2 is developed under JSR-252.  The two expert groups are working
ogether to improve the alignment between these two powerful web
presentation
technologies.

Building on the work that was accomplished with the Early Draft
Review, this Public Review covers two additional areas that required
better integration between JSP and Faces:

- Tree Creation and Content Interweaving
- Deferred expressions nested within iteration tags

Please see Appendix E of the JSP spec and the
Preface of the Faces spec to see details of what's changed.

To access the specifications:

   JSP 2.1 PR (JSR-245)
 http://jcp.org/aboutJava/communityprocess/pr/jsr245/

   Faces 1.2 PR (JSR-252)
 http://jcp.org/aboutJava/communityprocess/pr/jsr252/

Sincerely,

The JSR-245 and JSR-252 Expert Groups


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



RE: apache + tomcat + JK connector configuration

2005-04-14 Thread Delphine Lê
I tried this, but it didn't help unfortunately
Thank you

 Are you using load balance in your app?  If not, you probably don't need
 this line:

 worker.worker1.lbfactor=50

 Try to use this configuration in the server.xml

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=6969 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=10 debug=0/

 Hope this helps...


 -Original Message-
 From: Delphine Lê [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 6:41 PM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: apache + tomcat + JK connector configuration


 thank you, but it's got them:

 # Define 1 real worker using ajp13
 worker.list=worker1
 # Set properties for worker1 (ajp13)
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=6969
 worker.worker1.lbfactor=50
 worker.worker1.cachesize=10
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.reclycle_timeout=300


 Post the workers.properties file.  You probably need to include these
 lines in that file:

 worker.list=worker1
 worker.worker1.port=6969



 -Original Message-
 From: Delphine Lê [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 2:01 PM
 To: tomcat-user@jakarta.apache.org
 Subject: apache + tomcat + JK connector configuration


 Hello,



 Has anyone had any success in configuring Apache (2.0.53) with Tomcat
 (4.1.29) in Windows XP, using a recent JK connector ?

 We have a server running with the JK2 connector and I'm trying to
 replace it with the latest JK connector (JK-1.2.10), the reason being
 that JK2 is officially unsupported as of 15 Nov 2004 and we're
 experiencing a problem with truncated requests due to this connector.



 In Apache, I configured a worker called worker1 and I send everything
 from context /examples to this worker following
 http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

 The configuration looks fine, since I can see in the following lines in
 mod_jk.log:



 [Wed Apr 13 18:49:13 2005] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
 /examples=worker1 was added

 [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
 creating worker worker1

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
 about to create instance worker1 of ajp13

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
 about to validate and init worker1

 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
 worker worker1 contact is 'localhost:6969'



 However, if I send a request, it doesn't get through and I get an error
 message in the browser.

 The log shows:

 [Wed Apr 13 18:50:16 2005] [info]
 ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong
 host/port (127.0.0.1:6969). Failed errno = 61

 [Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
 (1227): Error connecting to the Tomcat process.



 What should I change in Tomcat configuration to have it work with JK
 instead of JK2 ?

 It is of course started and listening on port 6969. The configuration in
 server.xml looks like this:



 Connector className=org.apache.ajp.tomcat4.Ajp13Connector

 port=6969 minProcessors=5 maxProcessors=75 enableLookups=true
 redirectPort=8443 acceptCount=100 debug=0
 connectionTimeout=2 useURIValidationHack=false
 disableUploadTimeout=true/



 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]


 -
 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: clustering without loadbalancing

2005-04-14 Thread hang zhao
I am using mod_jk2, and in its workers2.properties
file, you can specify level attribute for
channel.socket

quote from
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk2/configwebcom.html
as description to level attribute:

Worker Priority. Valid values are 0-3. The
functioning workers with the lowest level will be
checked for the lowest lb_value, and if found will be
run. The upper level workers are only checked upon
failure of all workers on ALL of the levels below
them. This is very useful for implementing failover
withing a cluster. You could set the tomcat server
local on the same machine as the apache instance to
level 0 and all of the other workers to level 1. This
would cause apache to only use the external tomcats
when the local tomcat is down.

Basically, something like:
[channel.socket:machineone:8009]
port=8009
host=xxx.xxx.xxx.xxx
level=1

[channel.socket:machinetwo:8009]
port=8009
host=xxx.xxx.xxx.xxx
level=2

in your workers2.properties file
all quest will go to machineone unless it is not
availuable, then all request will go to machinetwo.

Cheers

Hang

--- Gaurav Bansal [EMAIL PROTECTED] wrote:
 I want to form a two node cluster of Tomcat servers
 which can failover but there should be no load
 balancing. But it should support session
 replication.
 This should be in such a way that all request are
 coming to one server(active one) and other is
 completely free(passive one). so if this active
 server
 fails it should be able to make the failover to the
 other passive server with session replication. I
 wan't
 to do it on linux. 
 
 P.S.-sorry for the last HTML msg.
 
 Gaurav Bansal
 
 


 Yahoo! India Matrimony: Find your life partner
 online
 Go to: http://yahoo.shaadi.com/india-matrimony
 

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



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



How do I Logout using JAAS

2005-04-14 Thread Scot Meyer
I have JAAS implemented and working properly.  Except
when I attempt to invalidate the session it keeps me
logged in.  Is this because of SSO?  What do I need to
do to Logout the user in question.

Thanks
Scotchy



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Directory listing

2005-04-14 Thread dummy

How can I disable both the apache and tomcat 5.5 from displaying the
directory of my web application ?



Re: Directory listing

2005-04-14 Thread Richard Reyes
What I do is put an access denied index.jsp on every subdirectories
inside the specific webapp folder.

heres my acc. deny index.jsp...

html
head
titleAccess Denied/title
/head
bodyh1Access Denied/h1/body
/html

hth.
richard

On 4/15/05, dummy [EMAIL PROTECTED] wrote:
 
 How can I disable both the apache and tomcat 5.5 from displaying the
 directory of my web application ?
 


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