[Installation, Configuration & DEPLOYMENT] - How to fix these exception ?
by magive249
I try to install JBoss 5 Beta 2, there are some exception when it is run like below. Can any body help me to fix it
--- > WARN [org.jboss.deployers.plugins.structure.vfs.explicit.DeclaredStructure] Error determining structure: jbossweb.deployer
org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/C:/Program%20Files/jboss-5.0.0.Beta2/server/default/deployers/jbossweb.deployer/META-INF/jboss-structure.xml
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)....[list=]
|
| --- > DEBUG [org.jboss.system.microcontainer.StartStopLifecycleAction] Error during stop for jboss.aop:service=AspectManager
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.stop(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:56)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107945#4107945
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107945
18 years, 5 months
[EJB 3.0] - EJB 3 + transaction propagation
by david81
Hi ,
I am stuck in an issue and need your help on it.
I have an ejb (Bean1) where in a transaction is started.
>From this ejb (Bean1) if I call another ejb(Bean2), and anything wrong happens in Bean2, whole of the transaction is rolled back.
This is controlled by the Jboss.
My query is..
If from Bean1, I make a call to some utility class which makes entires into DB and if an error happens in Bean1 , after utility class commits the DB changes. How can I rollback the changes made in utility class.
In short, how is the transaction in EJB3 propagated to utility class?
I am using hibernate in utility class and the application server used is JBoss4.
I set hibernate.transaction.manager_lookup_class
and set hibernate.transaction.factory_class to org.hibernate.transaction.JTATransactionFactory
My code in utility class..
UserTransaction tx = (UserTransaction)new InitialContext()
.lookup("java:comp/UserTransaction");
try {
tx.begin();
// Do some work
saved object using hibernate session
tx.commit();
}
catch (RuntimeException e) {
tx.rollback();
throw e; // or display error message
}
The logs show issue with tx.begin(); statement..
javax.transaction.NotSupportedException
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:79)
and on the screen I get error
java.lang.IllegalStateException: Wrong tx on thread: expected TransactionImple < ac, BasicAction: -3f5702b4:390d:474aea8d:77 status: ActionStatus.ABORTED >, actual null
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:162)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
Can you please tell what could be the problem?
Any help will be greatly appreciated.
Thanks,
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107936#4107936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107936
18 years, 5 months