help debug cluster error --java.net.BindException: Cannot assign requested address
Hello, I have two centos servers running tomcat 5.5 (yeah i know its old) one of the servers died and i had to rebuild from scratch. Everything is working but the clustering. is there anything between the cluster configs that needs to be different? I just copied one to the other. I had it working ok before server 2 crashed, so i know server 1 is configured ok and that is what i copied from when i start tomcat i get SEVERE: Unable to start cluster listener. java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120) at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394) at java.lang.Thread.run(Thread.java:595) when i created the new server i just copied the tomcat dir and placed it on the rebuild server. in my server.xml(see below) i put an ip in tcpListenAddress instead of auto because i have muiltiple IPS any suggestions on how to debug this? thanks for any help Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 recoveryEnabled=true mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: help debug cluster error --java.net.BindException: Cannot assign requested address
Pid so tcpListenAddress should be the IP of the machine correct? thanks thats probably it On Thu, Feb 2, 2012 at 5:28 AM, Pid p...@pidster.com wrote: On 02/02/2012 10:17, Randy Paries wrote: Hello, I have two centos servers running tomcat 5.5 (yeah i know its old) one of the servers died and i had to rebuild from scratch. Everything is working but the clustering. is there anything between the cluster configs that needs to be different? I just copied one to the other. I had it working ok before server 2 crashed, so i know server 1 is configured ok and that is what i copied from when i start tomcat i get SEVERE: Unable to start cluster listener. java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120) at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394) at java.lang.Thread.run(Thread.java:595) when i created the new server i just copied the tomcat dir and placed it on the rebuild server. in my server.xml(see below) i put an ip in tcpListenAddress instead of auto because i have muiltiple IPS any suggestions on how to debug this? thanks for any help Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 recoveryEnabled=true mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Is the IP address above correct (192.168.0.203) for this server? You stated that you 'just copied it' - if you didn't change the IP, it's probably not correct. p Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- [key:62590808] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: session problems between www.domain.com and domain.com
On Tue, Dec 2, 2008 at 10:03 AM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Randy, Randy Paries wrote: I am having problems with my web app the problem is that http://www.mydomain.com and http://mydomain.com [do not share cookies?] I am using apache-tomcat-5.5.15 is there somewhere that i can override the jsessionid cookie and make the cookie domain wide? www.mydomain.com and mydomain.com are not the same domain. This is behavior caused by your browser and not by Tomcat. Someone adapted an old TC4 hack for TC5.5. Perhaps it could help you: http://www.esus.be/blog/?p=3 (BTW, I found this by googling for tomcat cookie domain. Amazing what's out there). Thanks that is what i was looking for. (BTW, I love arrogant dicks that can't just help) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session problems between www.domain.com and domain.com
Hello, I am having problems with my web app the problem is that http://www.mydomain.com and http://mydomain.com I am using apache-tomcat-5.5.15 is there somewhere that i can override the jsessionid cookie and make the cookie domain wide? Thanks Randy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat, vista , symbolic link does not work
Hello, My development env is running tomcat 5 on a windoze vista vista now supports symbolic links, but it seems that tomcat does not, or is it something i have to set up in tomcat. for example i have a file, the virt path is localhost:8080/mydir/user.css the file c:\bunchOfStuff\webapp\mydir\user.css is a symlink back to c:\bunchOfStuff\webapp\css\user.css so the OS, seems to recognize this fine, but if i put in the URL http://localhost:8080/mydir/user.css all i get is a blank page. but for example if i open it from a file exploder it opens the correct css Thanks for any insight Randy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with apache mod-rewrite and modjk
On Fri, Mar 28, 2008 at 3:39 AM, Rainer Jung [EMAIL PROTECTED] wrote: Hello Randy, Randy Paries schrieb: Hello, i am running apache-tomcat-5.5.15 on a FC4 box First i need to explain a little how my site is set up.. We have 1000's of users that have their own document directory So for example a users URL is http://www.mydomain.com/randy their document root is /home/users/r/randy as another example http://www.mydomain.com/fred would be their doc root would be /home/users/f/fred currently they go to http://www.mydomain.com/fred/index.html and i want to replace index.html with index.jsp So if i do http://www.mydomain.com/fred/index.jsp , i get: 404 - message /fred/index.jsp description The requested resource (/fred/index.jsp) is not available. i do not want my users to have to do http://www.mydomain.com/f/fred/index.jsp I did find an article that suggested making sure to load mod_jk before mod_rewrite Are you only talking about mod_jk, because it was in the article? mod_jk is used to connect Apache httpd to Tomcat. I didn't see httpd mentioned above. So if you don't use it, I expect that you find a solution to your problem without introducing it here. The term on the Tomcat side is the welcome file list (element welcome-file-list in web.xml). It's a standardized terminology for Java webapps. Talking about welcome files (like index.html or index.jsp) you need to distinguish between the URLs the user should know/use/send, and the local objects that actually get send back. If you use welcome files like index.html or index.jsp, then usually the URL the user send does not include it and magically he gets back the file instead of a directory index or an error page. He could call the welcome file directly with a URL, but then it's just used as a simple file like all others. S which URLs should your users be able to send, and which file should they get back? And what does already work, and what should work after fixing your problem? Regards, Rainer But i am not sure what else i Need to do Any Suggestions? or is this even possible? Thanks Randy Rainer, thanks for the response... sorry, i should have mentioned that i am using apache 2 and mod_jk. apache 2 is taking care of all the images and static content. so currently http://www.mydomain.com/randy works cause there is an index.html in that users dir /home/users/r/randy/index.html. what i was trying to figure out was how to replace the index.html with index.jsp. I have modified the httpd.conf to recognize the index.jsp I hope that clarifies alittle more Thanks Randy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with apache mod-rewrite and modjk
Hello, i am running apache-tomcat-5.5.15 on a FC4 box First i need to explain a little how my site is set up.. We have 1000's of users that have their own document directory So for example a users URL is http://www.mydomain.com/randy their document root is /home/users/r/randy as another example http://www.mydomain.com/fred would be their doc root would be /home/users/f/fred currently they go to http://www.mydomain.com/fred/index.html and i want to replace index.html with index.jsp So if i do http://www.mydomain.com/fred/index.jsp , i get: 404 - message /fred/index.jsp description The requested resource (/fred/index.jsp) is not available. i do not want my users to have to do http://www.mydomain.com/f/fred/index.jsp I did find an article that suggested making sure to load mod_jk before mod_rewrite But i am not sure what else i Need to do Any Suggestions? or is this even possible? Thanks Randy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering problem with one box out of three
Filip thanks for the help. I am not familiar with how to run route. (sorry just a small business admin hack) could you please suggest the command thanks Randy On Feb 5, 2008 2:16 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: the broadcast happens on the 228.0.0.9 address. however, if you're boxes have multiple nics, the system will pick one to send out the info. you should be able to add an entry to your routing table to force it to send the 228.0.0.9 broadcasts over the nic you designate. Filip Randy Paries wrote: Hello, I have posted this problem before , but have made some headway but i am still having problems. I will try to describe this a briefly as possible but give enough info needed to help Some basic info: 3 Linux boxes Tomcat 5.5.15 jdk1.5.0_11 Box1 and Box2 are one public Class C Box3 is on a seperate Class C all three are on the same lan. Each have two nic cards. All three are connected via a GB network with 192.168.0.x ips It seems that only the boxes that are on the same class C can see each other. Before last night Box2 and Box3 were on the same C class and Box1 would get the message INFO: Manager []: skipping state transfer. No members active in cluster group. So last night i had to move Box2 to the same Class C as Box1 , so now Box1 and Box2 are seeing each other and now Box3 is getting the message INFO: Manager []: skipping state transfer. No members active in cluster group. All three Boxes have the following in the server.xml Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.159 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ So this is why i am confused. Does this not make the server broadcast and listen on the 198??? what is more confusing is in the log files of one of the working boxes i see INFO: Send stats from [192.168.0.159:4,001], Nr of bytes sent=45,888,271 over 36,700 = 1,250 bytes/request, processing time 0 msec, avg processing time 0 msec So i assume it is broadcasting on the 192.168 network. Also just for fun, i installed a UDP-ping and made sure i could udp-ping everybody So i am at a complete loss. Any ideas? Sorry for such a long post Randy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One of my boxes, the cluster is not working anymore
Filip So here is what i do not understand , and i appreciate your help. 1) I have completely swapped out the hardware. Entirely new box. 2) completely new OS, FC4 to centos 5 3) same version of tomcat and same config files. 4) tried two different switches. 5) no fw or iptables currently running. that is what is so confusing . The other servers seem to bee running fine. Randy On Jan 15, 2008 12:27 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: question is, why are you using tcpdump, when you need to track down UDP packets :) the reason there is no membership established is because the machine is not receiving multicast packets (UDP), so that's what you need to track down Filip Randy Paries wrote: On Jan 7, 2008 2:49 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: easiest way to see your packets fly by, is to use wireshark and just sniff UDP packets Filip Randy Paries wrote: On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. this indicates that the box not working, is not receiving multicast messages from the other nodes. you'd need to look into the multicasting configuration in server.xml and also on your box/network Filip Randy Paries wrote: Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. ///Stuff Deleted --- Filip, thanks for responding. All three boxes have this in the server.xml Any ideas on how to test to see if this one box is recieving multicast messages? Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Hello, So here is an update, still struggling with this problem. if I do a tcpdump port 4001, i can see lots of traffic on box2 and box3 but none on box 1 so tonight i swapped out eth1 (i was told that maybe a nic card could not transmit UDP) i also went into the server.xml and forced tcpListenAddress to eth1 on each box. tcpdump port 4001 -i eth1 gives me traffic on box2 and box3 but not box1 i am no longer getthing the exception on boot up, all get now is: INFO: Cluster is about to start Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager start
getting WARNING: Error sending end packet in my catalina.out file
Hello, Just built a new box. it is Centos 5 Apache/2.2.3 tomcat-5.5.15 mod_jk-1.2.23-apache-2.2.x-linux-x86_64.so i am getting tons of these in my log file: I would appreciate any help in debugging this thanks Jan 10, 2008 6:19:50 AM org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Jan 10, 2008 6:19:50 AM org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
created new box, can not see Cluster
hello, Just build a new box on Centos 5, i have two other boxes on FC4 they are all running jdk1.5.0_11 tomcat-5.5.15 I can not get the new server to join the cluster. this is from the logfile: Jan 10, 2008 7:39:46 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 10, 2008 7:39:46 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 10, 2008 7:39:46 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 10, 2008 7:39:48 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 10, 2008 7:39:48 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 10, 2008 7:39:49 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager to cluster element Host with name localhost Jan 10, 2008 7:39:49 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at Jan 10, 2008 7:39:49 AM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. All three boxes have the same cluster config in the server.xml Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Thanks for any help - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One of my boxes, the cluster is not working anymore
On Jan 7, 2008 2:49 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: easiest way to see your packets fly by, is to use wireshark and just sniff UDP packets Filip Randy Paries wrote: On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. this indicates that the box not working, is not receiving multicast messages from the other nodes. you'd need to look into the multicasting configuration in server.xml and also on your box/network Filip Randy Paries wrote: Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. ///Stuff Deleted --- Filip, thanks for responding. All three boxes have this in the server.xml Any ideas on how to test to see if this one box is recieving multicast messages? Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Hello, So here is an update, still struggling with this problem. if I do a tcpdump port 4001, i can see lots of traffic on box2 and box3 but none on box 1 so tonight i swapped out eth1 (i was told that maybe a nic card could not transmit UDP) i also went into the server.xml and forced tcpListenAddress to eth1 on each box. tcpdump port 4001 -i eth1 gives me traffic on box2 and box3 but not box1 i am no longer getthing the exception on boot up, all get now is: INFO: Cluster is about to start Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 8, 2008 11:06:08 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 8, 2008 11:06:10 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager to cluster element Host with name localhost Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at Jan 8, 2008 11:06:11 PM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
One of my boxes, the cluster is not working anymore
Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. == Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 4:01:01 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://xxx.xxx.190.3:4001,catalina,xxx.xxx.190.3,4001, alive=432223] Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. this is from the catalina.out on the broken Box. == Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager to cluster element Host with name localhost Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. Jan 7, 2008 12:24:33 PM org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761) at java.io.ObjectInputStream.init(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.init(CustomObjectInputStream.java:57) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361) at org.apache.catalina.session.StandardManager.load(StandardManager.java:320) at org.apache.catalina.session.StandardManager.start(StandardManager.java:636) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:403) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4111) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at
Re: One of my boxes, the cluster is not working anymore
On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. this indicates that the box not working, is not receiving multicast messages from the other nodes. you'd need to look into the multicasting configuration in server.xml and also on your box/network Filip Randy Paries wrote: Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. ///Stuff Deleted --- Filip, thanks for responding. All three boxes have this in the server.xml Any ideas on how to test to see if this one box is recieving multicast messages? Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
my webapp is crashing the JVM intermittently
Hello, I am not sure if this is the right place to post this , but if not maybe someone can point me in a correct direction. I have just pushed a new version of my web app to production. which is apache-tomcat-5.5.15 with apache and fedora core 4 I am running this same app one 3 different boxes on two of them it has crashed the JVM. The only reason i say this, is because it probably rules out hardware i box crashes 1 every 2 or 3 days and the other 1 in the last week I will give you a part of the log file of the crash. if there is more that i can provide please let me know. Any help would be really appreciated: = # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb7a5e650, pid=18291, tid=1847487408 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # V [libjvm.so+0x466650] # --- T H R E A D --- Current thread (0x099aedf8): GCTaskThread [id=18292] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x18181824 Registers: EAX=0x18181818, EBX=0xb7ba37f0, ECX=0xab774708, EDX=0x18181820 ESP=0x6e1e60b0, EBP=0x6e1e6128, ESI=0xaf4c9fb4, EDI=0xaf4d23e8 EIP=0xb7a5e650, CR2=0x18181824, EFLAGS=0x00010293 Top of Stack: (sp=0x6e1e60b0) 0x6e1e60b0: 099a4050 1004 b7b8e1ac b7a5e630 0x6e1e60c0: 099a4068 b7b96ac0 0001 b7ba37f0 0x6e1e60d0: 823db790 823b38e0 6e1e6118 b7ba37f0 0x6e1e60e0: 0006 18181818 0x6e1e60f0: 000c 0001 af4d2398 0x6e1e6100: af4d2258 1000 af4c8730 b7839ef1 0x6e1e6110: af4aa1e8 1000 6e1e6188 b7ba37f0 0x6e1e6120: af4c9fb4 af4d23e8 6e1e6168 b783a00c Instructions: (pc=0xb7a5e650) 0xb7a5e640: 8b 4d 0c c7 45 bc 00 00 00 00 8b 41 04 8d 50 08 0xb7a5e650: 8b 4a 04 89 4d b8 85 c9 0f 8e f2 04 00 00 8b 45 Stack: [0x6e166000,0x6e1e7000), sp=0x6e1e60b0, free space=512k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x466650] V [libjvm.so+0x24200c] V [libjvm.so+0x466471] V [libjvm.so+0x468862] V [libjvm.so+0x2094cf] V [libjvm.so+0x424338] C [libpthread.so.0+0x5bd4] \snipped\\\ VM Arguments: jvm_args: -Xms256m -Xmx1024m -Djava.awt.headless=true -Dfile.encoding=ISO-8859-1 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/java/jakarta-tomcat/conf/logging.properties -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -D catalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp java_command: org.apache.catalina.startup.Bootstrap start start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/java/jdk1.5.0_06 CLASSPATH=:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0_06/bin:/usr/java/jdk1.5.0_06 LD_LIBRARY_PATH=/usr/java/jdk1.5.0_06/jre/lib/i386/server:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386 SHELL=/bin/bash Signal Handlers: SIGSEGV: [libjvm.so+0x4fd530], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGBUS: [libjvm.so+0x4fd530], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGFPE: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGPIPE: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGILL: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGUSR1: SIG_DFL, sa_mask[0]=0x, sa_flags=0x SIGUSR2: [libjvm.so+0x424bb0], sa_mask[0]=0x, sa_flags=0x1004 SIGHUP: [libjvm.so+0x4245e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGINT: SIG_IGN, sa_mask[0]=0x, sa_flags=0x SIGQUIT: [libjvm.so+0x4245e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 SIGTERM: [libjvm.so+0x4245e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x1004 --- S Y S T E M --- OS:Fedora Core release 4 (Stentz) uname:Linux 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 libc:glibc 2.3.6 NPTL 2.3.6 rlimit: STACK 10240k, CORE 0k, NPROC 32750, NOFILE 1024, AS infinity load average:0.31 0.21 0.20 CPU:total 2 family 47, cmov, cx8, fxsr, mmx, sse, sse2, ht Memory: 4k page, physical 506k(14k free), swap 625k(625k free) vm_info: Java HotSpot(TM) Server VM (1.5.0_06-b05) for linux-x86, built on Nov 10 2005 10:56:33 by java_re with gcc 3.2.1-7a (J2SE release) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat , wondoze , Unable to find a javac compiler;
unfortuntaly i have to setup tomcat on windoze. i have it working on tons of linux boxs, and this has been a royle pain. Ok enough whinning. so when i try to display a jsp is get the error Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK in the tomcat monitor i have Use default selected in the XP env vars i have CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04 so what have i missed Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat , wondoze , Unable to find a javac compiler;
Barry Adding to the path did not make a difference but here is where i am confused. the java_home is set in the system env vars as well as the path and classpath(although i guess that is not needed but here is what i do not understand and may be causing my problems. Notice the version diffs between java -version and set paths C:\Documents and Settings\pariesjava -version java version 1.5.0_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) === C:\Documents and Settings\pariesset ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\paries\Application Data CLASSPATH=C:\Program Files\Java\jdk1.5.0_04\lib ComSpec=C:\WINDOWS\system32\cmd.exe HOMEDRIVE=C: HOMEPATH=\Documents and Settings\paries JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04 NUMBER_OF_PROCESSORS=2 OS=Windows_NT Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\Sony\AppMonUtil\;C:\Program Files\Microsoft S QL Server\80\Tools\Binn\;C:\Program Files\Common Files\Adobe\AGL;C:\Program File s\Java\jdk1.5.0_04\bin;C:\Program Files\SSH Communications Security\SSH Secure S hell PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0e08 ProgramFiles=C:\Program Files PROMPT=$P$G SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\paries\LOCALS~1\Temp TMP=C:\DOCUME~1\paries\LOCALS~1\Temp USERPROFILE=C:\Documents and Settings\paries windir=C:\WINDOWS On 7/27/06, Propes, Barry L [EMAIL PROTECTED] wrote: make the PATH (not classpath) point to: C:\Program Files\Java\jdk1.5.0_04\bin -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 1:19 PM To: users@tomcat.apache.org Subject: tomcat , wondoze , Unable to find a javac compiler; unfortuntaly i have to setup tomcat on windoze. i have it working on tons of linux boxs, and this has been a royle pain. Ok enough whinning. so when i try to display a jsp is get the error Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK in the tomcat monitor i have Use default selected in the XP env vars i have CLASSPATH = C:\Program Files\Java\jdk1.5.0_04\lib JAVA_HOME = C:\Program Files\Java\jdk1.5.0_04 so what have i missed Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with Clusters or apache connector not sure which one
hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
Thanks for your help I already have localhost set in my workers.properties file Randy On 2/13/06, Antony Riley [EMAIL PROTECTED] wrote: I thought you said tomcat ran on 3 different boxes and it was a cluster ? java.io.IOException: Connection reset by peer This means that the tcp connection was severed somehow, this is typically caused by a firewall dropping idle TCP connections, or someone unplugging a network cable, or someone restarting something somewhere. You may want to configure apache to connect to 127.0.0.1 via the workers.properties file if you haven't already, as this will rarely never be firewalled, won't be subject to any link detection scripts, which may mark the interface as down when the link is severed, etc. etc. That's my two cents -Antony On 13/02/06, Randy Paries [EMAIL PROTECTED] wrote: i am the IT, the admin everything. I am a small business owner and i do everything. the apache server and tomcat are on the same box, and there is no firewall involved Is there something that is cluing you into the network problem? Something i should look for? Thanks Randy On 2/13/06, Duan, Nick [EMAIL PROTECTED] wrote: It looks like a network problem to me. Is there any firewall between the apache and your tomcat server? Or did your IT dept reconfigure the network recently? ND -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:27 AM To: Tomcat Users List Subject: problems with Clusters or apache connector not sure which one hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep licationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT hread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - 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: problems with Clusters or apache connector not sure which one
Filip The Both the apache and tomcat are on the same server and the workers.properties connects via localhost Thanks On 2/13/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Hi Randy, if Apache cannot talk to Tomcat, then its not because of the clustering. The first error in catalina.out, is just a result of replication keep alive sessions getting closed, I will fix the code that generates that error so that it doesn't log as an error. do you have a firewall or anything of that kind between apache and tomcat? Filip Randy Paries wrote: hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - 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]
concerned who is creating my logs
Hello, I am running apache-tomcat-5.5.15 I start tomcat under the user apache what concerns me is that when i look at my logs in $TOMCAT/logs the catalina logs (currently and rotated) are owned by apache, But the admin, host-manager and manager rotated logs are owned by root. Does this mean these servers are running as root?(thats not cool) Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem with special characters
i ending up modifying the startup to include -Dfile.encoding=ISO-8859-1 On 2/13/06, Pulkit Singhal [EMAIL PROTECTED] wrote: Hi I think there were a few posts earlier regarding consistent UTF-8 encoding in tomcat. If I remember correctly, this was resolved by setting some flags in a few files. I know I'm being awfully vague :( but I know its there. Cheers, - Pulkit On 2/7/06, Randy Paries [EMAIL PROTECTED] wrote: Hello, Please help I have to tomcat servers. Same version of OS fedora 4 and apache-tomcat-5.5.15 this is driving me crazy i am in a form, it calls a servlet and the servlet writes a file the character i am trying to write is £ on one machine it writes a £ but on the other machine it writes a £ the form posts directly to the servlet any ideas. not sure even where to start Thanks Randy - 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]
A question about log rotation
Hello, I have a tomcat apache-tomcat-5.5.15 running on RH9 i am having this wierd problem. I think it is log rotation I start getting exceptions in the catalina.out that it can not access a log file . permission denied I have tomcat running as user apache. But when the logs are rotated, they are create by root, what rotates the logs and where do change the settings. Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having problem with special characters
Hello, Please help I have to tomcat servers. Same version of OS fedora 4 and apache-tomcat-5.5.15 this is driving me crazy i am in a form, it calls a servlet and the servlet writes a file the character i am trying to write is £ on one machine it writes a £ but on the other machine it writes a £ the form posts directly to the servlet any ideas. not sure even where to start Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with clustering
hello Problems with my cluser I am using apache-tomcat-5.5.15 each server has this in the server.xml I have a couple of questions 1) these two machines are connected two different ways a) routable/public IPS 100M connection b) non routeable 192.169 Gigabit connection When i look at the log files, I see entries like INFO: Send stats from [66.123.123.180:4,001], Nr of bytes sent=1,182,166 over 900 = 1,313 bytes/request, processing time 0 msec, avg processing time 0 msec Feb 6, 2006 11:52:00 AM org.apache.catalina.cluster.tcp.ReplicationValve updateStats Is there a way to configure it so the syncing goes over the GigaBit Links??? Thanks Randy == Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=35/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
moving from tomcat 5.0.24 to 5.5.15, haviing problems with root app
Hello, I have been running 5.0.24 forever and it has been running fine, so i have not touched it I need to upgrade to 5.5.15 I got to be missing something simple. my server.xml is pretty as left as is (will inlcude if requested) then in /usr/java/jakarta-tomcat/conf/Catalina/localhost i have 3 xml files host-manager.xml manager.xml unitnet.xml cat unitnet.xml Context path= docBase=/home/unitnet crossContext=true allowLinking=true debug=0 reloadable=false /Context So before when i would go to http://mydomain.com:8080 i would get the index page located at /home/unitnet but now i see the tomcat index page I thought all i needed to add was the unitnet.xml, but i am missing some step in the process Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please help, i have to be missing something very simple
Hello, I am moving an App from a devel server to a production server When i run the app everything works fine except the new stuff (of course) in my servlet i am calling Color bgcolor = new Color( Integer.parseInt(album.getBGcolor().substring(1), 16) ) ; and as soon as i do i get Class not found FYI i am using tomcat-5.0.24 ./catalina.sh run Using CATALINA_BASE: /usr/java/jakarta-tomcat Using CATALINA_HOME: /usr/java/jakarta-tomcat Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp Using JAVA_HOME: /usr/java/j2sdk1.4.2_04 classpath=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/j2sdk1.4.2_04:/usr/java/j2sdk1.4.2_04/lib path=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_04/bin:/root/bin java_home=/usr/java/j2sdk1.4.2_04 Any ideas what i am overlooking. It has to be simple == StandardWrapperValve[galleryPubServlet]: Servlet.service() for servlet galleryPubServlet threw exception java.lang.NoClassDefFoundError at galleryPubServlet.startUpload(galleryPubServlet.java:245) at galleryPubServlet.MYdoGet(galleryPubServlet.java:156) at galleryPubServlet.doGet(galleryPubServlet.java:101) at galleryPubServlet.doPost(galleryPubServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help, i have to be missing something very simple
I created a little test program(see below), and i get the following error java com.unitnet.utils.testcolor Just Before Exception in thread main java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1437) at java.awt.Toolkit.clinit(Toolkit.java:1458) at java.awt.Color.clinit(Color.java:250) at com.unitnet.utils.testcolor.main(testcolor.java:13) yet ls -ls /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so 2972 -rwxr-xr-x 1 root bin 3034008 Feb 24 2004 /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so package com.unitnet.utils; import java.awt.*; public class testcolor { public static void main (String[] args){ try{ System.out.println( Just Before ); Color bgcolor = new Color( 1 , false ) ; System.out.println( Just After ); }catch (Exception ex){ ex.printStackTrace(); } } } === On 1/6/06, Mike Sabroff [EMAIL PROTECTED] wrote: Do you have a package statement in your servlet? You should Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:24 PM To: users@tomcat.apache.org Subject: Please help, i have to be missing something very simple Hello, I am moving an App from a devel server to a production server When i run the app everything works fine except the new stuff (of course) in my servlet i am calling Color bgcolor = new Color( Integer.parseInt(album.getBGcolor().substring(1), 16) ) ; and as soon as i do i get Class not found FYI i am using tomcat-5.0.24 ./catalina.sh run Using CATALINA_BASE: /usr/java/jakarta-tomcat Using CATALINA_HOME: /usr/java/jakarta-tomcat Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp Using JAVA_HOME: /usr/java/j2sdk1.4.2_04 classpath=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/jakarta-tomcat /bin/bootstrap.jar:/usr/java/j2sdk1.4.2_04:/usr/java/j2sdk1.4.2_04/lib path=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin :/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_04/bi n:/root/bin java_home=/usr/java/j2sdk1.4.2_04 Any ideas what i am overlooking. It has to be simple == StandardWrapperValve[galleryPubServlet]: Servlet.service() for servlet galleryPubServlet threw exception java.lang.NoClassDefFoundError at galleryPubServlet.startUpload(galleryPubServlet.java:245) at galleryPubServlet.MYdoGet(galleryPubServlet.java:156) at galleryPubServlet.doGet(galleryPubServlet.java:101) at galleryPubServlet.doPost(galleryPubServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:102
question about ugrading
hello, Currently i am running tomcat 5.0.24 I am seeing lots of WARNING: Wasn't able to read acknowledgement from server[192.168.0.203:4001] in 15000 ms. Disconnecting socket, and trying again. So i was going to try to upgrade to the latest of tomcat. I just saw that the latest 5.5.x needs jre 5.0. I have not tested my stuff against 5.0 Could anyone tell me that is the best version to go to for tomcat that does not need 5.0. And does anyone think that will help my other problem(as mentioned about) Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]