You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Josh G <jo...@gfunk007.com> on 2002/09/02 04:52:43 UTC

One file not being compiled :'(

Hi, for some reason, one file in my project is not being compiled. All others 
in the directory are, but this one is not. I don't get any error messages, it 
just doesn't get compiled, javac doesn't even look at it. 

I'm building with ant. Anybody know what I've got wrong?

-- 
-Josh

And can you tell me, doctor, why I still can't get to sleep?
And why the Channel Seven chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only nineteen.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: One file not being compiled :'( - FIXED

Posted by Josh G <jo...@gfunk007.com>.
Gah never mind... my frigging editor (jedit) was displaying the type as .java, 
but it was .Java

-- 
-Josh


And can you tell me, doctor, why I still can't get to sleep?
And why the Channel Seven chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only nineteen.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


compilation error of Tomcat by tyrex

Posted by Andres Hernandez <ar...@ona.fi.umag.cl>.
this appear while i compile tomcat 4.0

 ----------------------------------------------------------------------

 build-main:

 [echo] ----- Java-utils -----

 [echo] -- puretls.present = ${puretls.present}

 [echo] -- jsse.present = true

 [echo] -- commons-logging = true

 [echo] -- jmx = true

 build-catalina:

 [javac] Compiling 3 source files to
 /usr/local/jakarta-tomcat-4.0/catalina/build/server/classes

 [javac] Note: sun.tools.javac.Main has been deprecated.

 [javac]

/usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T
 yrexDataSourceFactory.java:77: Class tyrex.jdbc.ServerDataSource not found
 in import.

 [javac] import tyrex.jdbc.ServerDataSource;

 [javac]               ^

 [javac]

/usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T
 yrexDataSourceFactory.java:78: Class tyrex.jdbc.xa.EnabledDataSource not
 found in import.

 [javac] import tyrex.jdbc.xa.EnabledDataSource;

 [javac]             ^

 [javac]

/usr/local/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/T
 yrexTransactionFactory.java:75: Class tyrex.tm.Tyrex not found in import.

 [javac] import tyrex.tm.Tyrex;

 [javac]             ^

 [javac] 3 errors, 1 warning

 BUILD FAILED

 /usr/local/jakarta-tomcat-4.0/catalina/build.xml:789: Compile failed,
 messages should have been provided.

 -----------------------------------------------------

 if you know the problem, please, tell me that solution.


 Best regards

 Andres Hernandez

 Chile



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by David Cassidy <da...@twocats.co.uk>.
really your cookie shouldn't change. ie you should stay
stuck to a given worker.

But it's sounding at least as though we going in the right direction :)

D


Luminous Heart wrote:

>Ok. I made the modifications you suggested. As you saw
>in my workers file I have 3 tcs; tc13, extra13, and
>intra13.
>I turned cookies on with IE. When I go to
>http://mySite.com I see a cookie being set by let us
>say tc13. Then I click on the link to my application
>on the front page and sometimes I get another cookie
>sent by tc13, other times by another worker. And of
>course I am using tc13 as an example, but I saw this
>behavior with the three.
>
>Does that mean I am in good shape now? Clustering is a
>great thing. I am thinking to move next to Oriely's
>memory space clustering model. Has anyone tried it?
>
>Thank, David, for your help.
>
>--- David Cassidy <da...@twocats.co.uk> wrote:
>  
>
>>helps only good if it works ...
>>
>>let us know if it does !
>>
>>you might want to see what jsessionid gets set to.
>>if the loadbalancer is working correctly it'll
>>append the servers name 
>>to the
>>jsessionid cookie.
>>
>>If you've got mozilla you can examine the cookies
>>easily
>>
>>D
>>
>>
>>Luminous Heart wrote:
>>
>>    
>>
>>>I will try your suggestion and hope it works for
>>>      
>>>
>>me.
>>    
>>
>>>Thanks a million for your help.
>>>
>>>--- David Cassidy <da...@twocats.co.uk> wrote:
>>> 
>>>
>>>      
>>>
>>>>I think i can see what it is :)
>>>>
>>>>Your workers.list defines for mod_jk what servers
>>>>        
>>>>
>>to
>>    
>>
>>>>use.
>>>>
>>>>In the case below it will use tc13 until it
>>>>        
>>>>
>>doesn't
>>    
>>
>>>>work / too overworked.
>>>>
>>>>Change the line so it's
>>>>
>>>>worker.list=loadbalancer
>>>>
>>>>Now your balanced_workers will work as the
>>>>loadbalancer is in control.
>>>>
>>>>worker.loadbalancer.balanced_workers=tc13,
>>>>        
>>>>
>>intra13,
>>    
>>
>>>>extra13
>>>>
>>>>Hope this works
>>>>
>>>>David
>>>>
>>>>
>>>>Luminous Heart wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Here is my workers file. Please notice that I
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>mounting
>>>>   
>>>>
>>>>        
>>>>
>>>>>tomcat context as such in my mod_jk.conf file:
>>>>> JkMount /* loadbalancer
>>>>> JkMount /servlet/* loadbalancer
>>>>>
>>>>>loadbalancer is defined in the following workers
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>file.
>>>>   
>>>>
>>>>        
>>>>
>>>>>Thank you in advance.
>>>>>
>>>>>=============== workers.properties =============
>>>>>workers.tomcat_home=/usr/local/tomcat
>>>>>workers.java_home=/usr/local/j2sdk1.4.0
>>>>>ps=/
>>>>>
>>>>>worker.list=tc13,intra13, extra13, loadbalancer
>>>>>
>>>>>worker.tc13.port=8039
>>>>>worker.tc13.host=localhost
>>>>>worker.tc13.type=ajp13
>>>>>worker.tc13.lbfactor=1
>>>>>
>>>>>worker.intra13.port=8049
>>>>>worker.intra13.host=localhost
>>>>>worker.intra13.type=ajp13
>>>>>worker.intra13.lbfactor=1
>>>>>
>>>>>worker.extra13.port=8059
>>>>>worker.extra13.host=localhost
>>>>>worker.extra13.type=ajp13
>>>>>worker.extra13.lbfactor=1
>>>>>
>>>>>worker.tc41Intra.port=9009
>>>>>worker.tc41Intra.host=localhost
>>>>>worker.tc41Intra.type=ajp13
>>>>>worker.tc41Intra.lbfactor=1
>>>>>
>>>>>
>>>>>worker.loadbalancer.type=lb
>>>>>worker.loadbalancer.balanced_workers=tc13,
>>>>>          
>>>>>
>>intra13,
>>    
>>
>>>>>extra13
>>>>>
>>>>>worker.inprocess.type=jni
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
>>>      
>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>worker.inprocess.cmd_line=start
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
>>>      
>>>
>>>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
>>>      
>>>
>>>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
>>>      
>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>============== End workers.properties ==========
>>>>>--- David Cassidy <da...@twocats.co.uk> wrote:
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>Would you like to post your workers file
>>>>>>
>>>>>>D
>>>>>>
>>>>>>
>>>>>>Luminous Heart wrote:
>>>>>>
>>>>>>  
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Greetings,
>>>>>>>
>>>>>>>I have a cluster of 3 tomcats running on linux
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>box.
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>    
>>>>>>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>I
>>>>>>  
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>have the three tc4.0.4 instances in a
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>loadbalancing
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>mode. The problem is when one fails none of the
>>>>>>>    
>>>>>>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>others
>>>>>>  
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>pick up and my app wont serve any requests
>>>>>>>              
>>>>>>>
>>untill
>>    
>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>I
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>shut the faulty tc. Only at that point one of
>>>>>>>              
>>>>>>>
>>the
>>    
>>
>>>>>>>other two will work. And if I restart the
>>>>>>>              
>>>>>>>
>>faulty
>>    
>>
>>>>>>>    
>>>>>>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>one
>>>>>>  
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>it will start working again.
>>>>>>>
>>>>>>>Should there be a failover behavior or
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>loadbalance
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>    
>>>>>>>              
>>>>>>>
>=== message truncated ===
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by Luminous Heart <lu...@yahoo.com>.
Ok. I made the modifications you suggested. As you saw
in my workers file I have 3 tcs; tc13, extra13, and
intra13.
I turned cookies on with IE. When I go to
http://mySite.com I see a cookie being set by let us
say tc13. Then I click on the link to my application
on the front page and sometimes I get another cookie
sent by tc13, other times by another worker. And of
course I am using tc13 as an example, but I saw this
behavior with the three.

Does that mean I am in good shape now? Clustering is a
great thing. I am thinking to move next to Oriely's
memory space clustering model. Has anyone tried it?

Thank, David, for your help.

--- David Cassidy <da...@twocats.co.uk> wrote:
> helps only good if it works ...
> 
> let us know if it does !
> 
> you might want to see what jsessionid gets set to.
> if the loadbalancer is working correctly it'll
> append the servers name 
> to the
> jsessionid cookie.
> 
> If you've got mozilla you can examine the cookies
> easily
> 
> D
> 
> 
> Luminous Heart wrote:
> 
> >I will try your suggestion and hope it works for
> me.
> >Thanks a million for your help.
> >
> >--- David Cassidy <da...@twocats.co.uk> wrote:
> >  
> >
> >>I think i can see what it is :)
> >>
> >>Your workers.list defines for mod_jk what servers
> to
> >>use.
> >>
> >>In the case below it will use tc13 until it
> doesn't
> >>work / too overworked.
> >>
> >>Change the line so it's
> >>
> >>worker.list=loadbalancer
> >>
> >>Now your balanced_workers will work as the
> >>loadbalancer is in control.
> >>
> >>worker.loadbalancer.balanced_workers=tc13,
> intra13,
> >>extra13
> >>
> >>Hope this works
> >>
> >>David
> >>
> >>
> >>Luminous Heart wrote:
> >>
> >>    
> >>
> >>>Here is my workers file. Please notice that I
> >>>      
> >>>
> >>mounting
> >>    
> >>
> >>>tomcat context as such in my mod_jk.conf file:
> >>>  JkMount /* loadbalancer
> >>>  JkMount /servlet/* loadbalancer
> >>>
> >>>loadbalancer is defined in the following workers
> >>>      
> >>>
> >>file.
> >>    
> >>
> >>>Thank you in advance.
> >>>
> >>>=============== workers.properties =============
> >>>workers.tomcat_home=/usr/local/tomcat
> >>>workers.java_home=/usr/local/j2sdk1.4.0
> >>>ps=/
> >>>
> >>>worker.list=tc13,intra13, extra13, loadbalancer
> >>>
> >>>worker.tc13.port=8039
> >>>worker.tc13.host=localhost
> >>>worker.tc13.type=ajp13
> >>>worker.tc13.lbfactor=1
> >>>
> >>>worker.intra13.port=8049
> >>>worker.intra13.host=localhost
> >>>worker.intra13.type=ajp13
> >>>worker.intra13.lbfactor=1
> >>>
> >>>worker.extra13.port=8059
> >>>worker.extra13.host=localhost
> >>>worker.extra13.type=ajp13
> >>>worker.extra13.lbfactor=1
> >>>
> >>>worker.tc41Intra.port=9009
> >>>worker.tc41Intra.host=localhost
> >>>worker.tc41Intra.type=ajp13
> >>>worker.tc41Intra.lbfactor=1
> >>>
> >>>
> >>>worker.loadbalancer.type=lb
> >>>worker.loadbalancer.balanced_workers=tc13,
> intra13,
> >>>extra13
> >>>
> >>>worker.inprocess.type=jni
> >>>      
> >>>
>
>>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
> >>    
> >>
> >>>worker.inprocess.cmd_line=start
> >>>      
> >>>
>
>>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
> >>
>
>>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
> >>
>
>>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
> >>    
> >>
> >>>============== End workers.properties ==========
> >>>--- David Cassidy <da...@twocats.co.uk> wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Would you like to post your workers file
> >>>>
> >>>>D
> >>>>
> >>>>
> >>>>Luminous Heart wrote:
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>Greetings,
> >>>>>
> >>>>>I have a cluster of 3 tomcats running on linux
> >>>>>          
> >>>>>
> >>box.
> >>    
> >>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>I
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>have the three tc4.0.4 instances in a
> >>>>>          
> >>>>>
> >>loadbalancing
> >>    
> >>
> >>>>>mode. The problem is when one fails none of the
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>others
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>pick up and my app wont serve any requests
> untill
> >>>>>          
> >>>>>
> >>I
> >>    
> >>
> >>>>>shut the faulty tc. Only at that point one of
> the
> >>>>>other two will work. And if I restart the
> faulty
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>one
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>it will start working again.
> >>>>>
> >>>>>Should there be a failover behavior or
> >>>>>          
> >>>>>
> >>loadbalance
> >>    
> >>
> >>>>>     
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by David Cassidy <da...@twocats.co.uk>.
helps only good if it works ...

let us know if it does !

you might want to see what jsessionid gets set to.
if the loadbalancer is working correctly it'll append the servers name 
to the
jsessionid cookie.

If you've got mozilla you can examine the cookies easily

D


Luminous Heart wrote:

>I will try your suggestion and hope it works for me.
>Thanks a million for your help.
>
>--- David Cassidy <da...@twocats.co.uk> wrote:
>  
>
>>I think i can see what it is :)
>>
>>Your workers.list defines for mod_jk what servers to
>>use.
>>
>>In the case below it will use tc13 until it doesn't
>>work / too overworked.
>>
>>Change the line so it's
>>
>>worker.list=loadbalancer
>>
>>Now your balanced_workers will work as the
>>loadbalancer is in control.
>>
>>worker.loadbalancer.balanced_workers=tc13, intra13,
>>extra13
>>
>>Hope this works
>>
>>David
>>
>>
>>Luminous Heart wrote:
>>
>>    
>>
>>>Here is my workers file. Please notice that I
>>>      
>>>
>>mounting
>>    
>>
>>>tomcat context as such in my mod_jk.conf file:
>>>  JkMount /* loadbalancer
>>>  JkMount /servlet/* loadbalancer
>>>
>>>loadbalancer is defined in the following workers
>>>      
>>>
>>file.
>>    
>>
>>>Thank you in advance.
>>>
>>>=============== workers.properties =============
>>>workers.tomcat_home=/usr/local/tomcat
>>>workers.java_home=/usr/local/j2sdk1.4.0
>>>ps=/
>>>
>>>worker.list=tc13,intra13, extra13, loadbalancer
>>>
>>>worker.tc13.port=8039
>>>worker.tc13.host=localhost
>>>worker.tc13.type=ajp13
>>>worker.tc13.lbfactor=1
>>>
>>>worker.intra13.port=8049
>>>worker.intra13.host=localhost
>>>worker.intra13.type=ajp13
>>>worker.intra13.lbfactor=1
>>>
>>>worker.extra13.port=8059
>>>worker.extra13.host=localhost
>>>worker.extra13.type=ajp13
>>>worker.extra13.lbfactor=1
>>>
>>>worker.tc41Intra.port=9009
>>>worker.tc41Intra.host=localhost
>>>worker.tc41Intra.type=ajp13
>>>worker.tc41Intra.lbfactor=1
>>>
>>>
>>>worker.loadbalancer.type=lb
>>>worker.loadbalancer.balanced_workers=tc13, intra13,
>>>extra13
>>>
>>>worker.inprocess.type=jni
>>>      
>>>
>>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
>>    
>>
>>>worker.inprocess.cmd_line=start
>>>      
>>>
>>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
>>
>>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
>>
>>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
>>    
>>
>>>============== End workers.properties ==========
>>>--- David Cassidy <da...@twocats.co.uk> wrote:
>>> 
>>>
>>>      
>>>
>>>>Would you like to post your workers file
>>>>
>>>>D
>>>>
>>>>
>>>>Luminous Heart wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Greetings,
>>>>>
>>>>>I have a cluster of 3 tomcats running on linux
>>>>>          
>>>>>
>>box.
>>    
>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>I
>>>>   
>>>>
>>>>        
>>>>
>>>>>have the three tc4.0.4 instances in a
>>>>>          
>>>>>
>>loadbalancing
>>    
>>
>>>>>mode. The problem is when one fails none of the
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>others
>>>>   
>>>>
>>>>        
>>>>
>>>>>pick up and my app wont serve any requests untill
>>>>>          
>>>>>
>>I
>>    
>>
>>>>>shut the faulty tc. Only at that point one of the
>>>>>other two will work. And if I restart the faulty
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>one
>>>>   
>>>>
>>>>        
>>>>
>>>>>it will start working again.
>>>>>
>>>>>Should there be a failover behavior or
>>>>>          
>>>>>
>>loadbalance
>>    
>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>on
>>>>   
>>>>
>>>>        
>>>>
>>>>>tc does not support that?
>>>>>
>>>>>Thank you.
>>>>>
>>>>>          
>>>>>
>>>>__________________________________________________
>>>>        
>>>>
>>>>>Do You Yahoo!?
>>>>>Yahoo! Finance - Get real-time stock quotes
>>>>>http://finance.yahoo.com
>>>>>
>>>>>--
>>>>>To unsubscribe, e-mail:  
>>>>>     
>>>>>
>>>>>          
>>>>>
>>><ma...@jakarta.apache.org>
>>>      
>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>For additional commands, e-mail:
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>><ma...@jakarta.apache.org>
>>>>   
>>>>
>>>>        
>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>To unsubscribe, e-mail:  
>>>>        
>>>>
>>><ma...@jakarta.apache.org>
>>>      
>>>
>>>>For additional commands, e-mail:
>>>><ma...@jakarta.apache.org>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Yahoo! Finance - Get real-time stock quotes
>>>http://finance.yahoo.com
>>>
>>>--
>>>To unsubscribe, e-mail:  
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>>For additional commands, e-mail:
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>> 
>>>
>>>      
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by Luminous Heart <lu...@yahoo.com>.
I will try your suggestion and hope it works for me.
Thanks a million for your help.

--- David Cassidy <da...@twocats.co.uk> wrote:
> I think i can see what it is :)
> 
> Your workers.list defines for mod_jk what servers to
> use.
> 
> In the case below it will use tc13 until it doesn't
> work / too overworked.
> 
> Change the line so it's
> 
> worker.list=loadbalancer
> 
> Now your balanced_workers will work as the
> loadbalancer is in control.
> 
> worker.loadbalancer.balanced_workers=tc13, intra13,
> extra13
> 
> Hope this works
> 
> David
> 
> 
> Luminous Heart wrote:
> 
> >Here is my workers file. Please notice that I
> mounting
> >tomcat context as such in my mod_jk.conf file:
> >   JkMount /* loadbalancer
> >   JkMount /servlet/* loadbalancer
> >
> >loadbalancer is defined in the following workers
> file.
> >
> >Thank you in advance.
> >
> >=============== workers.properties =============
> >workers.tomcat_home=/usr/local/tomcat
> >workers.java_home=/usr/local/j2sdk1.4.0
> >ps=/
> > 
> >worker.list=tc13,intra13, extra13, loadbalancer
> > 
> >worker.tc13.port=8039
> >worker.tc13.host=localhost
> >worker.tc13.type=ajp13
> >worker.tc13.lbfactor=1
> > 
> >worker.intra13.port=8049
> >worker.intra13.host=localhost
> >worker.intra13.type=ajp13
> >worker.intra13.lbfactor=1
> > 
> >worker.extra13.port=8059
> >worker.extra13.host=localhost
> >worker.extra13.type=ajp13
> >worker.extra13.lbfactor=1
> > 
> >worker.tc41Intra.port=9009
> >worker.tc41Intra.host=localhost
> >worker.tc41Intra.type=ajp13
> >worker.tc41Intra.lbfactor=1
> > 
> > 
> >worker.loadbalancer.type=lb
> >worker.loadbalancer.balanced_workers=tc13, intra13,
> >extra13
> > 
> >worker.inprocess.type=jni
>
>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
> >worker.inprocess.cmd_line=start
>
>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
>
>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
>
>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
> >
> >============== End workers.properties ==========
> >--- David Cassidy <da...@twocats.co.uk> wrote:
> >  
> >
> >>Would you like to post your workers file
> >>
> >>D
> >>
> >>
> >>Luminous Heart wrote:
> >>
> >>    
> >>
> >>>Greetings,
> >>>
> >>>I have a cluster of 3 tomcats running on linux
> box.
> >>>      
> >>>
> >>I
> >>    
> >>
> >>>have the three tc4.0.4 instances in a
> loadbalancing
> >>>mode. The problem is when one fails none of the
> >>>      
> >>>
> >>others
> >>    
> >>
> >>>pick up and my app wont serve any requests untill
> I
> >>>shut the faulty tc. Only at that point one of the
> >>>other two will work. And if I restart the faulty
> >>>      
> >>>
> >>one
> >>    
> >>
> >>>it will start working again.
> >>>
> >>>Should there be a failover behavior or
> loadbalance
> >>>      
> >>>
> >>on
> >>    
> >>
> >>>tc does not support that?
> >>>
> >>>Thank you.
> >>>
>
>>>__________________________________________________
> >>>Do You Yahoo!?
> >>>Yahoo! Finance - Get real-time stock quotes
> >>>http://finance.yahoo.com
> >>>
> >>>--
> >>>To unsubscribe, e-mail:  
> >>>      
> >>>
>
>><ma...@jakarta.apache.org>
> >>    
> >>
> >>>For additional commands, e-mail:
> >>>      
> >>>
> >><ma...@jakarta.apache.org>
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:  
>
>><ma...@jakarta.apache.org>
> >>For additional commands, e-mail:
> >><ma...@jakarta.apache.org>
> >>
> >>    
> >>
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Finance - Get real-time stock quotes
> >http://finance.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >  
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by David Cassidy <da...@twocats.co.uk>.
I think i can see what it is :)

Your workers.list defines for mod_jk what servers to use.

In the case below it will use tc13 until it doesn't work / too overworked.

Change the line so it's

worker.list=loadbalancer

Now your balanced_workers will work as the loadbalancer is in control.

worker.loadbalancer.balanced_workers=tc13, intra13, extra13

Hope this works

David


Luminous Heart wrote:

>Here is my workers file. Please notice that I mounting
>tomcat context as such in my mod_jk.conf file:
>   JkMount /* loadbalancer
>   JkMount /servlet/* loadbalancer
>
>loadbalancer is defined in the following workers file.
>
>Thank you in advance.
>
>=============== workers.properties =============
>workers.tomcat_home=/usr/local/tomcat
>workers.java_home=/usr/local/j2sdk1.4.0
>ps=/
> 
>worker.list=tc13,intra13, extra13, loadbalancer
> 
>worker.tc13.port=8039
>worker.tc13.host=localhost
>worker.tc13.type=ajp13
>worker.tc13.lbfactor=1
> 
>worker.intra13.port=8049
>worker.intra13.host=localhost
>worker.intra13.type=ajp13
>worker.intra13.lbfactor=1
> 
>worker.extra13.port=8059
>worker.extra13.host=localhost
>worker.extra13.type=ajp13
>worker.extra13.lbfactor=1
> 
>worker.tc41Intra.port=9009
>worker.tc41Intra.host=localhost
>worker.tc41Intra.type=ajp13
>worker.tc41Intra.lbfactor=1
> 
> 
>worker.loadbalancer.type=lb
>worker.loadbalancer.balanced_workers=tc13, intra13,
>extra13
> 
>worker.inprocess.type=jni
>worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
>worker.inprocess.cmd_line=start
>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
>worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
>worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
>
>============== End workers.properties ==========
>--- David Cassidy <da...@twocats.co.uk> wrote:
>  
>
>>Would you like to post your workers file
>>
>>D
>>
>>
>>Luminous Heart wrote:
>>
>>    
>>
>>>Greetings,
>>>
>>>I have a cluster of 3 tomcats running on linux box.
>>>      
>>>
>>I
>>    
>>
>>>have the three tc4.0.4 instances in a loadbalancing
>>>mode. The problem is when one fails none of the
>>>      
>>>
>>others
>>    
>>
>>>pick up and my app wont serve any requests untill I
>>>shut the faulty tc. Only at that point one of the
>>>other two will work. And if I restart the faulty
>>>      
>>>
>>one
>>    
>>
>>>it will start working again.
>>>
>>>Should there be a failover behavior or loadbalance
>>>      
>>>
>>on
>>    
>>
>>>tc does not support that?
>>>
>>>Thank you.
>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Yahoo! Finance - Get real-time stock quotes
>>>http://finance.yahoo.com
>>>
>>>--
>>>To unsubscribe, e-mail:  
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>>For additional commands, e-mail:
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>> 
>>>
>>>      
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by Luminous Heart <lu...@yahoo.com>.
Here is my workers file. Please notice that I mounting
tomcat context as such in my mod_jk.conf file:
   JkMount /* loadbalancer
   JkMount /servlet/* loadbalancer

loadbalancer is defined in the following workers file.

Thank you in advance.

=============== workers.properties =============
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/j2sdk1.4.0
ps=/
 
worker.list=tc13,intra13, extra13, loadbalancer
 
worker.tc13.port=8039
worker.tc13.host=localhost
worker.tc13.type=ajp13
worker.tc13.lbfactor=1
 
worker.intra13.port=8049
worker.intra13.host=localhost
worker.intra13.type=ajp13
worker.intra13.lbfactor=1
 
worker.extra13.port=8059
worker.extra13.host=localhost
worker.extra13.type=ajp13
worker.extra13.lbfactor=1
 
worker.tc41Intra.port=9009
worker.tc41Intra.host=localhost
worker.tc41Intra.type=ajp13
worker.tc41Intra.lbfactor=1
 
 
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tc13, intra13,
extra13
 
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

============== End workers.properties ==========
--- David Cassidy <da...@twocats.co.uk> wrote:
> Would you like to post your workers file
> 
> D
> 
> 
> Luminous Heart wrote:
> 
> >Greetings,
> >
> >I have a cluster of 3 tomcats running on linux box.
> I
> >have the three tc4.0.4 instances in a loadbalancing
> >mode. The problem is when one fails none of the
> others
> >pick up and my app wont serve any requests untill I
> >shut the faulty tc. Only at that point one of the
> >other two will work. And if I restart the faulty
> one
> >it will start working again.
> >
> >Should there be a failover behavior or loadbalance
> on
> >tc does not support that?
> >
> >Thank you.
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Finance - Get real-time stock quotes
> >http://finance.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >  
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat Clustering.

Posted by David Cassidy <da...@twocats.co.uk>.
Would you like to post your workers file

D


Luminous Heart wrote:

>Greetings,
>
>I have a cluster of 3 tomcats running on linux box. I
>have the three tc4.0.4 instances in a loadbalancing
>mode. The problem is when one fails none of the others
>pick up and my app wont serve any requests untill I
>shut the faulty tc. Only at that point one of the
>other two will work. And if I restart the faulty one
>it will start working again.
>
>Should there be a failover behavior or loadbalance on
>tc does not support that?
>
>Thank you.
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Tomcat Clustering.

Posted by Luminous Heart <lu...@yahoo.com>.
Greetings,

I have a cluster of 3 tomcats running on linux box. I
have the three tc4.0.4 instances in a loadbalancing
mode. The problem is when one fails none of the others
pick up and my app wont serve any requests untill I
shut the faulty tc. Only at that point one of the
other two will work. And if I restart the faulty one
it will start working again.

Should there be a failover behavior or loadbalance on
tc does not support that?

Thank you.

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: One file not being compiled :'(

Posted by da...@yahoo.com.
Umm... it is kind of hard to diagnose an ant build
file without being able to see it... maybe you should
post it and someone may be able to help you...

Thanks.

--- Josh G <jo...@gfunk007.com> wrote:
> 
> Hi, for some reason, one file in my project is not
> being compiled. All others 
> in the directory are, but this one is not. I don't
> get any error messages, it 
> just doesn't get compiled, javac doesn't even look
> at it. 
> 
> I'm building with ant. Anybody know what I've got
> wrong?
> 
> -- 
> -Josh
> 
> And can you tell me, doctor, why I still can't get
> to sleep?
> And why the Channel Seven chopper chills me to my
> feet?
> And what's this rash that comes and goes, can you
> tell me what it means?
> God help me, I was only nineteen.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>