[Clustering/JBoss] - can deployment on 2nd instance cause a undeploy on the first
by rajeshchande
Hello,
JBoss: 4.0.3SP1
OS: Solaris 10
JDK: 5
I have two Jboss instances setup in a cluster fine in all respectes running fine. The farm deployment is working fine. But off late I observe one issue. The details of the issue are as follows. Whenever I deploy a WAR file on the first instance, it gets successfully deployed
Output from first instance after deployment of WAR file :
######################
2007/06/06 14:11:41 | 14:11:41,783 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' from JNDI name 'java:aaa'
| 2007/06/06 14:11:42 | 14:11:42,017 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' to JNDI name 'java:aaa'
| 2007/06/06 14:11:56 | 14:11:56,048 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp50909aaa.war/
| 2007/06/06 14:11:56 | 14:11:56,057 INFO [JBossCacheManager] Stopping JBossManager
| 2007/06/06 14:11:56 | 14:11:56,888 INFO [STDOUT] 14:11:56,888 DEBUG [Log4JServlet] Logging initialized
| 2007/06/06 14:11:57 | 14:11:56,906 INFO [[/]] No Configuration for this context. Initializing.
| 2007/06/06 14:11:57 | 14:11:56,906 INFO [[/]] configuring cewolf app..
| 2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] using storage class de.laures.cewolf.storage.TransientSessionStorage
| 2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] using overlibURL scripts/overlib.js
| 2007/06/06 14:11:57 | 14:11:56,912 INFO [[/]] debugging is turned on
| 2007/06/06 14:11:57 | 14:11:56,913 INFO [[/]] ...done.
| 2007/06/06 14:11:57 | 14:11:57,498 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
| 2007/06/06 14:11:57 | 14:11:57,530 INFO [JBossCacheManager] Starting JBossManager
| 2007/06/06 14:11:57 | 14:11:57,536 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve.######################
Output from second instance after deployment of WAR file :
######################
2007/06/06 14:12:42 | 14:12:42,645 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' from JNDI name 'java:aaa'
| 2007/06/06 14:12:43 | 14:12:43,259 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=aaa' to JNDI name 'java:aaa'
| 2007/06/06 14:17:43 | 14:17:43,019 INFO [FarmMemberService] farmDeployment(), deploy locally: farm/aaa.war
| 2007/06/06 14:17:57 | 14:17:57,029 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../tmp/deploy/tmp62007aaa.war/
| 2007/06/06 14:18:03 | 14:18:03,810 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp62009aaa.war/
| 2007/06/06 14:18:03 | 14:18:03,837 INFO [JBossCacheManager] Stopping JBossManager
| 2007/06/06 14:18:07 | 14:18:07,026 INFO [STDOUT] 14:18:07,026 DEBUG [Log4JServlet] Logging initialized
| 2007/06/06 14:18:07 | 14:18:07,063 INFO [[/]] No Configuration for this context. Initializing.
| 2007/06/06 14:18:07 | 14:18:07,064 INFO [[/]] configuring cewolf app..
| 2007/06/06 14:18:07 | 14:18:07,079 INFO [[/]] using storage class de.laures.cewolf.storage.TransientSessionStorage
| 2007/06/06 14:18:07 | 14:18:07,079 INFO [[/]] using overlibURL scripts/overlib.js
| 2007/06/06 14:18:07 | 14:18:07,080 INFO [[/]] debugging is turned on
| 2007/06/06 14:18:07 | 14:18:07,080 INFO [[/]] ...done.
| 2007/06/06 14:18:08 | 14:18:08,344 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
| 2007/06/06 14:18:08 | 14:18:08,436 INFO [JBossCacheManager] Starting JBossManager
| 2007/06/06 14:18:08 | 14:18:08,447 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve
######################
As soon as after the above output in the second instance, the first instance undeploys the WAR file deployed few minutes earlier with following output.
######################
2007/06/06 14:17:57 | 14:17:57,666 INFO [FarmMemberService] doUndeployment(), File: farm/aaa.war
| 2007/06/06 14:17:57 | 14:17:57,679 INFO [FarmMemberService] farmUndeployment(), removed file/apps/jboss/4.0.3sp1/server/devl-01/farm/aaa.war
| 2007/06/06 14:18:43 | 14:18:43,038 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=.../tmp/deploy/tmp50909aaa.war/
######################
Can anybody help me understand better, whats going on here? and how to avoid this undeployment?
Is the second instance triggering this undeployment? How to stop that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051694#4051694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051694
18Â years, 10Â months
[JBoss Seam] - Re: Seam + Maven + Richfaces + softeu
by maku01
"-Arthur-" wrote :
| Go to your maven repo and open yourRepoPath/jboss/seam/profiles/seam-ajax4jsf and open the pom.xml
|
| Here you find transitive artifacts.
| Comment out the ajax4jsf artifact.
|
| Now go to your projects pom and add the following:
|
| | <dependency>
| | <groupId>org.richfaces</groupId>
| | <artifactId>richfaces</artifactId>
| | <version>your version</version>
| | <exclusions>
| | <exclusion>
| | <groupId>org.ajax4jsf</groupId>
| | <artifactId>ajax4jsf</artifactId>
| | </exclusion>
| | </exclusions>
| | <dependency>
| |
| | <dependency>
| | <groupId>org.ajax4jsf</groupId>
| | <artifactId>ajax4jsf</artifactId>
| | <version>your version</version>
| | </dependency>
| |
|
| assuming you have installed ajax4jsf in your repository.
When I do it in this way I get the same error at startup.
When I use a richfaces dependency with no transitive artifacts I get an exception on first access to a page
| javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
| at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:107)
| at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:309)
| at org.ajax4jsf.framework.resource.InternetResourceBase.getUri(InternetResourceBase.java:211)
| at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:62)
| at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051692#4051692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051692
18Â years, 10Â months
[JBoss jBPM] - Request for comment: Whitespace and line-ending preservation
by estaub
I'm planning to JIRA this if no one has any counter-arguments.
The current Script implementation collapses script whitespace and eliminates line-endings in scripts - even when within a !CDATA. I believe this is often bad and never good, apart from trivial optimization.
Line-ending preservation is necessary for use of // comments.
Whitespace and line-ending preservation are useful for script compiler error messages that call out a line and column position of the error.
These positions are meaningless if space has been collapsed and line-endings removed.
I happen to be experimenting with using other script languages (especially Groovy) for which line endings are meaningful. You probably don't care about that, though!
The fix is easy: in Script.read(), replace both occurrences of getTextTrim() with getText().
Any thoughts?
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051689#4051689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051689
18Â years, 10Â months
[JBoss jBPM] - async pain
by ax666
I'm really about to throw it. I have a node with two timers, one to perform a check every x seconds and make a transition if a condition is met, and one to make a cancel transition after a certain timeout time. now if it happens that timer1 is checking for the condition and timer2 decides its time for timeout, of course there's a concurrency problem because both try to work with the same token! It's two different threads and the token is locked by the first timer and it's action, so the second timer (timeout) fails because the token is still locked.
to me that's a bug, but maybe I'm missing something? I wish jbpm would simply support async concurrent node execution...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051686#4051686
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051686
18Â years, 10Â months