[Clustering/JBoss] - Issue with Session Replication in JBOSS clustered Environmen
by skm2008
Hi ,
I have successfully set up with the jboss clustered environment locally for 2 nodes, node1 and node2. I m trying to do the session replication for one of my app. I did the following things :
JBOSS version :4.3.0.GA
Apache HTTP server: 2.0
web.xml: entry of
jboss-web.xml : <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>
problem : I did the following:
1) Open the browser and hitting the appache web server : http://127.0.0.1:8888/appname
2) This will hit either node1 or node2 cluster environment and make the app up.
3) From the jk status i found that the request hit the node1.
4) I then clicked some link in web app and mean time i tried to shutdown the node1.
5) In this case sometimes the pages hangs and sometimes page can't be displayed comes.
6) Seems once the request submits to node1 and it was down after that, the response part won't migrate to the node2.
For this case, can anyone help me. Please let me know if any more information i can provide.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236004#4236004
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236004
16 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Hibernate Generic JDBC Exception
by gbansal80
We are using JBoss v4.2.3.ga.jdk6 and Hibernate 3.
For one of database table column, we have unique constraint. Now whenever records having same column value are inserted by application, we observe org.hibernate.exception.GenericJDBCException exception rather than
org.hibernate.exception.ConstraintViolationException.
I came across this http://opensource.atlassian.com/projects/hibernate/browse/HHH-1599?page=c..., and in this seems to be a hibernate bug.
However, if I replace the jboss-common-jdbc-wrapper.jar available with open-source JBoss v4.2.3.ga.jdk6, with the one available with JBoss EAP 4.3.CP02, the application receives org.hibernate.exception.ConstraintViolationException and application logic work perfectly fine.
Is there different in version of jboss-common-jdbc-wrapper.jar available with open source and subscription version. If yes, where can I get the latest jboss-common-jdbc-wrapper.jar
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235988#4235988
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235988
16 years, 10 months
[Security & JAAS/JBoss] - NPE in FlaggedPolicyModule.toString on redeploy
by lelleh
JBoss 5.0.1.GA and 5.1.0.GA.
I have an ear with a war, and the latter has a file WEB-INF/fsws-db-login-jboss-beans.xml with the following
<?xml version="1.0" encoding="UTF-8"?>
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
|
| <application-policy xmlns="urn:jboss:security-beans:1.0" name="fsws">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag = "required">
| <module-option name="dsJndiName">java:jdbc/FSWS_AUTH</module-option>
| <module-option name="principalsQuery">SELECT passord FROM wsbruker WHERE navn=?</module-option>
| <module-option name="rolesQuery">SELECT rolle, 'Roles' FROM wsbruker_roller WHERE navn=?</module-option>
| <module-option name="hashAlgorithm">SHA-1</module-option>
| <module-option name="unauthenticatedIdentity">guest</module-option>
|
| </login-module>
| </authentication>
| </application-policy>
|
| </deployment>
|
(I have had this working with the older DynamicLoginConfig-approach, deployed in a file which was not part of the ear or war.)
I wonder what I do wrong, because hot deployment of my ear does not work with this, as it is not cleanly uninstalled:
anonymous wrote :
| 09:03:33,471 WARN [AbstractKernelController] Error uninstalling from Configured: name=fsws$AuthenticationPolicy$Module0 state=Configured
| java.lang.NullPointerException
| at org.jboss.security.microcontainer.beans.FlaggedPolicyModule.toString(FlaggedPolicyModule.java:110)
| at java.lang.String.valueOf(String.java:2827)
| at org.jboss.util.JBossStringBuilder.append(JBossStringBuilder.java:114)
| at org.jboss.dependency.plugins.AbstractControllerContext.toString(AbstractControllerContext.java:362)
| at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.toString(AbstractKernelControllerContext.java:174)
| at org.jboss.util.JBossObject.toStringImplementation(JBossObject.java:232)
| at org.jboss.util.JBossObject.toString(JBossObject.java:161)
| at java.lang.String.valueOf(String.java:2827)
| at java.lang.StringBuilder.append(StringBuilder.java:115)
| at org.jboss.kernel.plugins.dependency.ConfigureAction.uninstallActionInternal(ConfigureAction.java:62)
| ...
| 09:03:33,472 ERROR [BeanMetaDataDeployer] Error during undeploy: fsws$AuthenticationPolicy$Module0
| java.lang.Error: INTERNAL ERROR: context not found in previous state Configured context=name=fsws$AuthenticationPolicy$Module0 state=Configured
| at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1171)
| ...
|
The offending line in FlaggedPolicyModule.toString() goes:
| for (Map.Entry<String, Object> entry : super.options.entrySet())
|
On server shutdown I also see the same warning/error pair for messaging$AuthenticationPolicy$Module0
anonymous wrote :
| WARN [AbstractKernelController] Error uninstalling from Configured: name=messaging$AuthenticationPolicy$Module0 state=Configured
| java.lang.NullPointerException
| at org.jboss.security.microcontainer.beans.FlaggedPolicyModule.toString(FlaggedPolicyModule.java:110)
| ...
| ERROR [BeanMetaDataDeployer] Error during undeploy: messaging$AuthenticationPolicy$Module0
| java.lang.Error: INTERNAL ERROR: context not found in previous state Configured context=name=messaging$AuthenticationPolicy$Module0 state=Configured
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235901#4235901
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235901
16 years, 10 months