[Clustering] - Session replication in jBoss 5.1.0 GA
by KavithaAnbazhagan
Hi,
I am trying the clustering in jboss 5.1.0 installed in two different machines with Apache 2.2.8 and mod_jk-1.2.28-httpd-2.2.3. The loadbalacing is working. But when i shut down one server, then the session of that particular server is not being maintained and am getting 503 exception with the below exception in mod_jk.log
Exception:
[Wed Sep 02 14:51:35 2009][3060:3416] [debug] jk_lb_worker.c (950): searching worker for session route node1
[Wed Sep 02 14:51:35 2009][3060:3416] [info] jk_lb_worker.c (981): all workers are in error state for session YcpysrgSEAz5HMz+mXxp3A__.node1
[Wed Sep 02 14:51:35 2009][3060:3416] [info] jk_lb_worker.c (1453): All tomcat instances failed, no more workers left (attempt=1, retry=1)
[Wed Sep 02 14:51:35 2009][3060:3416] [info] jk_lb_worker.c (1464): All tomcat instances are busy or in error state
[Wed Sep 02 14:51:35 2009][3060:3416] [error] jk_lb_worker.c (1469): All tomcat instances failed, no more workers left
[Wed Sep 02 14:51:35 2009]router 10.68.200.122 2.390595
[Wed Sep 02 14:51:35 2009][3060:3416] [info] mod_jk.c (2615): Service error=0 for worker=router
Below are my configuration:
httpd.conf
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkMount /*.jsp router
JkMount /*.* router
JkMount /war31/* router
JkMount /mbankserver2/* router
JkMount /jmx-console/* router
JkRequestLogFormat "%w %V %T"
JkShmFile logs/jk.shm
<Location /jkstatus/>
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.0.0.1
workers.properties
worker.node1.port=8009
worker.node1.host=ip
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.cachesize=10
worker.node2.port=8009
worker.node2.host=ip
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.cachesize=10
worker.list=router,jkstatus
worker.router.type=lb
worker.router.balance_workers=node1,node2
worker.router.sticky_session=1
worker.jkstatus.type=status
In application
web.xml - Added the distributable tag
jboss-web.xml
<jboss-web>
<replication-config>
<replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
<replication-granularity>SESSION</replication-granularity>
<replication-field-batch-mode>true</replication-field-batch-mode>
</replication-config>
</jboss-web>
In both machine Jboss
1. Configured the jvmRoute in server.xml
2. Mentioned the path as SESSIONS.sar in context.xml
Starting the jboss with
run -c all -b ip
Please let me know if i am missing something in the configuration.
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253032#4253032
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253032
14 years, 8 months
[EJB 3.0 Users] - Cannot use @Depends in EJB depending on another EAR deployme
by dode
We have an @Service EJB3 deployed as EAR that does not only depend on a service, but also on classes provided by another EAR deployment.
We have declared the dependency using @Depends, but it seems that the annotation cannot take effect because already loading of the EJB class fails, since it uses classes provided by the other EAR which isn't deployed yet - a NoClassDefFoundError is thrown.
The only solution we have found so far is having the EJB EAR deployed after the other EAR by renaming it to something like "xxx...".
Is there another way to declare a dependency of an EJB3 to an EAR deployment than the @Depends annotation, i.e. by using some deployment descriptor like jboss.xml?
We actually tried the latter but failed on the fact that in EJB 2.1 there is nothing like a "service" enterprise bean.
We also tried to make the EJB an (X)MBean which has a dependency to the EAR deployment but that does not seem to affect the EJB - it is still deployed before the EAR it depends on.
Any ideas?
Cheers,
Torsten
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253030#4253030
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253030
14 years, 8 months
[jBPM Users] - Re: Deploying JBPM project created by Eclipse in Tomcat serv
by Nanaki
Thanks for the quick answer kukeltje !
For the story, I spent my times configuring all sort of possibilities using different version of jBPM and only a few of them "works" sucessfully.
So I explain what i did and where i am now:
I have followed this wiki few days ago:
anonymous wrote : http://www.jboss.org/community/wiki/JbpmOnTomcat
I sucessfully launched the jBPM-console with Apache Tomcat/6.0.20 and jBPM 3.2.GA (the same jBPM as the wiki).
So the example runs well, I can launch the jbpm-console via Apache Tomcat, play with some workflows inside, and it interacts well with the MySQL DB (login, update the workflow table when i play with it inside the application).
So now, I create a simple jBPM in eclipse, like the one shown in the jBoss jBPM demo here:
anonymous wrote : http://docs.jboss.com/jbpm/v3/demos/movies/jbpm-overview.htm
Like shown in the demo, to deploy the process, i click on the process, then go to the deployment tabs in Eclipse and launch the button "Deploy process archive ...".
A message saying that it was deployed sucessfully is diplayed.
I though, now i have configured jBPM using the Apache Tomcat server, that the project will be deploy directly in the webapps folder of Tomcat.
But no, and the problem is that I don't know where it is deployed (and so I don't know the URL adress of the project... Because generally, it is juste: http://localhost:8080/projectname , with projectname corresponding to the name of the folder deployed in webapps Tomcat).
The webapps folder doesn't contain the project deployed (and I really have no idea where it is).
Here's a screenshot describing what i said and some interrogations i have.
[img]http://img232.imageshack.us/img232/763/jbpm.png[/img]
http://img232.imageshack.us/img232/763/jbpm.png
Thanks for your help :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253011#4253011
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253011
14 years, 8 months