[Clustering/JBoss] - Resource not available error when one of the server nodes is
by ragini
Hi,
I have configured jboss[4.0.2] clustering between 2 nodes node1 and node2. I am using sticky session and apache server2.2 is installed and is configured for load balancing. Due to sticky sessions the request are handled by only one node at a time. So when ever the node serving request is crashed/shutdown ideally request should be failed over to other node immediately. But this is not working still the request is sent to the node which is failed and on browser resource not available error is displayed.
After few seconds when the node shutting down is completely down when the page is refreshed the request is sent to the alive node.
The configuration in worker.properties is as follows:
# workers.properties
#
# Define the first node...
worker.node1.port=8109
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.local_worker=1
worker.node1.cachesize=10
worker.node1.redirect= node2
# ...and the second node.
worker.node2.port=8209
worker.node2.host=localhost
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.local_worker=1
worker.node2.cachesize=10
worker.node2.redirect=node1
# Now we define the load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=node1, node2
worker.loadbalancer.sticky_session=0
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer
can some one please resolve this issue? Or provide some useful information on this problem.
Thanks & Regards,
Ragini
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023551#4023551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023551
19Â years, 1Â month
[JBoss Seam] - Re: Back Button Problem
by h.cahyadi
Thanks for all your answer and help, I have trial and error some posibilities to solve this problem, i.e : play with pages.xml and faces-config.xml and also web.xml, but still can't fix this problem, finally I try to upgrade to myfaces 1.1.5 and this can solved my problem partialy, I mean that in some page the behaviour of the back button still not correct, but this better than before(when I use myfaces 1.1.4) I can do back button-ing at all :)
For mjek2, sorry for this time I can't so you the source, coz of my company policies, not permit this
Anyway thanx again for all...
If there is a new workaround or some sugestion, please be kind to post here
Thanx and Regards,
-haric-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023549#4023549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023549
19Â years, 1Â month
[JBoss jBPM] - Re: Problem with getting process instance's creator
by kot.filemon
"kukeltje" wrote : I do not see anything in the logging about the originator swimlane.. heck not even anything about the task in this start state (you could notice this to)
|
| Two things:
| - there is a whitespace between swimlane and = (swimlane ="originator" instead of swimlane="originator") don't know if it makes a difference, but I noticed it
| - tasks in the start state are not automatically created (afaik). Use taskMgmtInstance = processInstance.getTaskMgmtInstance();
| | taskMgmtInstance.createStartTaskInstance();
| |
1. seems like the whitespace doesn't matter.
2. following your suggestion I added
| TaskInstance task = taskMgmtInstance.createStartTaskInstance();
| task.start();
| task.end();
| context.save(task);
|
and now it works. Thank you ;)
"kukeltje" wrote :
| If you extend your tests (other words for ' making them better' ;-)) you would have had better insight in the creation of the tasks...
could you provide any tips?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023548#4023548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023548
19Â years, 1Â month
[JBoss Seam] - NPE in ConversationEntry with exceptions
by mariuszs
Seam 1.2.0, ICEFaces 1.5.3, JBoss 4.0.5
I have:
<exception class="javax.persistence.EntityNotFoundException">
| <redirect view-id="/error.jspx">
| <message>Not found</message>
| </redirect>
| </exception>
When exception happend I have error:
Caused by: javax.persistence.EntityNotFoundException:...
...
10:33:29,921 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
java.lang.NullPointerException
at org.jboss.seam.core.ConversationEntry.(ConversationEntry.java:44)
at org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:50)
at org.jboss.seam.core.Manager.createConversationEntry(Manager.java:649)
at org.jboss.seam.core.Manager.beforeRedirect(Manager.java:796)
at org.jboss.seam.core.Manager.redirect(Manager.java:982)
at org.jboss.seam.core.Navigator.redirect(Navigator.java:45)
at org.jboss.seam.exceptions.RedirectHandler.handle(RedirectHandler.java:45)
at org.jboss.seam.core.Exceptions.handle(Exceptions.java:70)
at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:91)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023540#4023540
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023540
19Â years, 1Â month