Re: Problems with load balancing

2003-12-21 Thread javen fang
http://www.ubeans.com/tomcat/


--- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm running 2 Tomcats 4.1.27 on the same server I
 changed the server.xml in
 both of them, I erased the standalone and wrote this
   Engine jvmRoute=tc1 name=Standalone
 defaultHost=localhost debug=0
   Engine jvmRoute=tc2 name=Standalone
 defaultHost=localhost debug=0
 I changed the workers2.properties like this:
 [logger]
 level=DEBUG
 
 [config:]

file=C:/jakarta-tomcat-4.1.27/conf/workers2.properties
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=C:/jakarta-tomcat-4.1.27/logs/jk2.log
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and
 status with multiprocess
 servers
 file=C:/jakarta-tomcat-4.1.27/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 info=Default load balancer.
 debug=0
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=tc1
 lb_factor=1
 group=lb
 
 [channel.socket:localhost:8010]
 info=A second tomcat instance.
 debug=0
 tomcatId=tc2
 lb_factor=1
 group=lb
 disabled=0
 
 
 [status:]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus/*]
 info=Display status information and checks the
 config file for changes.
 group=status:
 
 [uri:/newer/*.do]
 info=Prefix mapping
 
 [uri:/newer/*.jsp]
 info=Extension mapping
 
 [uri:/newer/*]
 info=The Legacy webapp.
 debug=0
 
 But only the first tomcat serves the servlets, I
 don't get any error but the
 first refresh the 1st tomcat works and in the 2nd
 refresh nothing happen.
 
 Please advise,
 
 
 Regards,
 
 Yuval Zantkeren
 
 #25567;his email message and any attachments hereto
are
 intended only for use by
 the addressee(s) named above, and may contain
 legally privileged and/or
 confidential information. If you are not the
 intended addressee, you are
 hereby kindly notified that any dissemination,
 distribution or copying of
 this email and any attachments hereto is strictly
 prohibited. If you have
 received this email in error, kindly delete it from
 your computer system,
 and notify us at the telephone number or email
 address appearing above.
 Thank you
 
 
 

-
 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 uri map virtual host

2003-12-21 Thread javen fang
Can anybody help me?  

vhost map question.

thanks very much!

--- javen fang [EMAIL PROTECTED] wrote:
 Hi all:
 
 I configure iis5 + tomcat5, in workers2.properties :
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 tomcatId=localhost:8009
 host=localhost
 port=8009
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:/servlet-examples/*]
 group=ajp13:localhost:8009
 
 [uri:/displaytag/*.]
 context=/displaytag   ///default is localhost?
 group=ajp13:localhost:8009
 
 [uri:www.vhost1.com]
 group=ajp13:localhost:8009
 **here. how to config
 my win2000 server serve several virtual host. 
 tomcat
 port is 8080, iis port is 80. tomcat's defaultHost
 is
 localhost, and then have several virtual host.
 
 the sub context displaytag/servlet-examples visit
 successfully! And now I want to visit these hosts
 through iis. 
 
 
 Another Q is, I config
 [logger.file:5]
 level=DEBUG
 file=d:/tomcat50/logs/jk2.log
 why debug info have not inserted into this file.
 
 
 thanks!!!
 
 javen
 
 __
 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]
 


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



May I transfer to tomcat5.0 ???

2003-12-20 Thread javen fang
Hi all:

On this list, I have seen somebody said that we cannot
transfer to tomcat 5.0.

I have a win2000 server served by tomcat 4.1.  I want
to configure iis + tomcat by jk2, can give me any
suggestion ?

thanks!!!

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



how to uri map virtual host

2003-12-20 Thread javen fang
Hi all:

I configure iis5 + tomcat5, in workers2.properties :

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
host=localhost
port=8009

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/servlet-examples/*]
group=ajp13:localhost:8009

[uri:/displaytag/*.]
context=/displaytag   ///default is localhost?
group=ajp13:localhost:8009

[uri:www.vhost1.com]
group=ajp13:localhost:8009
**here. how to config
my win2000 server serve several virtual host.  tomcat
port is 8080, iis port is 80. tomcat's defaultHost is
localhost, and then have several virtual host.

the sub context displaytag/servlet-examples visit
successfully! And now I want to visit these hosts
through iis. 


Another Q is, I config
[logger.file:5]
level=DEBUG
file=d:/tomcat50/logs/jk2.log
why debug info have not inserted into this file.


thanks!!!

javen

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