[Design of Messaging on JBoss (Messaging/JBoss)] - JBM 2.0 new Security Manager
by ataylor
Ive created a new Security manager for JBM 2.0. Instead of the security store talking direct to the Jboss AuthenticationManager it uses a new interface JBMSecurityManager. There are 2 implementations of this interface, JAASSecuritymanager, which basically does what the old security store does and delegates to the JAAS AuthenticationManager and a simple implementation that can be used for standalone or embedded purposes, or even with the App server if the user so wishes.
Ive also added a SecurityManager Deployer that will load users and roles from an xml file (jbm-security.xml) into the Simple SecurityManager.
The old tests still use a JAAS based Authentication, however any new style tests that create a MessagingServer dynamically will use the Simple one, because of this the simple SecurityManager automatically adds a guest user so the tests still pass.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140970#4140970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140970
18 years
[Design of JBossXB] - Re: jbossxb 1.0.0.SP2
by alex.loubyansky@jboss.com
Would these be complaint with Branch_4_2?
<dependencies>
| <dependency>
| <groupId>jboss.common</groupId>
| <artifactId>jboss-common</artifactId>
| <version>1.2.1.GA-brew</version>
| <scope>compile</scope>
| </dependency>
| <dependency>
| <groupId>apache-log4j</groupId>
| <artifactId>log4j</artifactId>
| <version>1.2.14</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>apache-slide</groupId>
| <artifactId>webdavlib</artifactId>
| <version>2.0</version>
| <scope>compile</scope>
| </dependency>
| <dependency>
| <groupId>sun-jaf</groupId>
| <artifactId>activation</artifactId>
| <version>1.0.2</version>
| <scope>compile</scope>
| </dependency>
| <dependency>
| <groupId>apache-xerces</groupId>
| <artifactId>xercesImpl</artifactId>
| <version>2.7.1</version>
| <scope>compile</scope>
| </dependency>
| <dependency>
| <groupId>wutka-dtdparser</groupId>
| <artifactId>dtdparser121</artifactId>
| <version>1.2.1</version>
| <scope>compile</scope>
| </dependency>
| <dependency>
| <groupId>junit</groupId>
| <artifactId>junit</artifactId>
| <version>3.8.1</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>jboss-test</artifactId>
| <version>1.0.0.GA</version>
| <scope>test</scope>
| <exclusions>
| <exclusion>
| <groupId>jboss</groupId>
| <artifactId>jboss-logging-spi</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
| </dependencies>
Note, the xerces version is the one that we switched from in JBoss-5 since it didn't pass the test in XB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140964#4140964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140964
18 years
[Design of JCA on JBoss] - JBAS-5278 Errors .
by vickyk
I have been seeing the following error in org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase testcase .
2008-04-01 17:58:53,658 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:59944]) commit problem:
| org.jboss.resource.JBossResourceException: Could not commit LocalTransaction; - nested throwable: (javax.jms.TransactionInProgressException: Cannot call commit on an XA session)
| at org.jboss.resource.adapter.jms.JmsLocalTransaction.commit(JmsLocalTransaction.java:60)
| at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:990)
| at com.arjuna.ats.internal.jta.resources.arjunacore.XAOnePhaseResource.commit(XAOnePhaseResource.java:110)
| at com.arjuna.ats.arjuna.LastResourceRecord.topLevelPrepare(LastResourceRecord.java:170)
| at com.arjuna.ats.arjuna.coordinator.AbstractRecord.topLevelOnePhaseCommit(AbstractRecord.java:441)
| at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2639)
| at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1784)
| at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
| at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1390)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
| at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
| at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.setupQueue(ExecuteJMSDuringRollbackStressTestCase.java:262)
| at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.testExecuteJMSDuringRollback(ExecuteJMSDuringRollbackStressTestCase.java:72)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
These details I have found from the server log .
I am not sure why this is failing here .
What could be the problem ?
I made changes in the test-jms-local-ds.xml at tx-connection-factory
<xa-transaction/>
This got me the rid of the above exception but the test failed with this error details
Expected one text message: null
| java.lang.RuntimeException: Expected one text message: null
| at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.checkQueue(ExecuteJMSDuringRollbackStressTestCase.java:280)
| at org.jboss.test.jca.test.ExecuteJMSDuringRollbackStressTestCase.testExecuteJMSDuringRollback(ExecuteJMSDuringRollbackStressTestCase.java:99)
Any inputs here ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140910#4140910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140910
18 years