[JBossCache] - Transaction issue when using JBoss cache with Weblogic 8.1SP
by nan2k_sweety
Hi,
We are using JBoss Cache 1.4.1 with Weblogic 8.1SP4. Our application uses EJB Stateless session beans. We are facing the following exception. when replication is enabled. Please help us.
####<2007. 10. 11. ¿ÀÈÄ 6½Ã 59ºÐ 03ÃÊ KST> <m2p_was2> <ExecuteThread: '20' for queue: 'weblogic.kernel.Default'> <> <> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.skt.m2p.ba.svcmgmt.EUSMgmtBean.createDefaultEUSPage(com.skt.m2p.common.tray.RequestTray)],Xid=BEA1-0006A5DE4D0B18956CE6(28666635),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=SM),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@186b077,re-Registered = false),SCInfo[m2p+SM]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.skt.m2p.ba.svcmgmt.EUSMgmtBean.createDefaultEUSPage(com.skt.m2p.common.tray.RequestTray)], weblogic.jdbc=t3://127.0.0.1:8100, START_AND_END_THREAD_EQUAL=false}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=SM+127.0.0.1:8100+m2p+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl},NonXAResources={})],CoordinatorURL=SM+127.0.0.1:8100+m2p+t3+): weblogic.transaction.internal.AppSetRollbackOnlyException
at weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImpl.java:508)
at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1164)
at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1069)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:118)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1202)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2007)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:257)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:228)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:320)
at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObject.java:168)
at com.skt.m2p.ba.svcmgmt.EUSMgmt_uyv9e8_EOImpl.createDefaultEUSPage(EUSMgmt_uyv9e8_EOImpl.java:650)
at com.skt.m2p.ba.svcmgmt.EUSMgmt_uyv9e8_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Unknown reason - with nested exception:
[weblogic.transaction.internal.AppSetRollbackOnlyException]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1687)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:311)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:228)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:320)
at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObject.java:168)
at com.skt.m2p.ba.svcmgmt.EUSMgmt_uyv9e8_EOImpl.createDefaultEUSPage(EUSMgmt_uyv9e8_EOImpl.java:650)
at com.skt.m2p.ba.svcmgmt.EUSMgmt_uyv9e8_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
.>
We tried cache without replication and it works fine. This exception occurs only if the replication is enabled.
Please help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094318#4094318
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094318
18 years, 9 months
[Microcontainer] - Re: Unable to build the project
by genman
Okay, looks like something I was doing to reduce the dependency count ... Microcontainer it is not.
But I'm running into this now on JDK 1.6:
| 2007-10-11 16:02:49,640 WARN [Bootstrap] (main) Deployer validate failed
| java.lang.IllegalStateException: Incompletely deployed:
|
| *** DEPLOYMENTS IN ERROR: Name -> Error
| AspectManager -> java.lang.IllegalStateException: Class not found: [B
|
| *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
| InstallConfiguredCallback$AspectBinding -> AspectManager{Configured:**ERROR**}
| InstallConfiguredCallback -> AspectManager{Create:**ERROR**}, AspectManager{Start:**ERROR**}, Configurator{Instantiated:Installed}
|
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:260)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
| at com....mc.Bootstrap.run(Bootstrap.java:119)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094310#4094310
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094310
18 years, 9 months
[EJB 3.0] - Re: unable to find LoginModule class
by JPagera
thankx 4 reply
first i use JBoss 4.0.5 and im using EJB3 and no security restrictions on any EJB method
lokk this is my code ...
....................
String securityDomain = "JPassivateSecurityDomain";
CallbackHandler callbackHandler =
new JPageraCallbackHandler("name","pass");
try
{
LoginContext lc =
new LoginContext( securityDomain,
callbackHandler );
lc.login();
System.out.println("Subject : "+lc.getSubject());
Set seta_ = lc.getSubject().getPrincipals();
}
catch ( LoginException e )
{
e.printStackTrace();
}
...................................
look this code is working perfect .. but the problem is how can i get
the EJB session??
is there anyway to get The initialContext from logincontext??
cuz when im tryin to lookup in the teaditional way
.....................
Properties pro = new Properties();
pro.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
pro.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
pro.put(Context.PROVIDER_URL,"jnp://jpagera:1099");
pro.put(Context.SECURITY_PRINCIPAL,"name");
pro.put(Context.SECURITY_CREDENTIALS,"pass");
pro.put("java.security.auth.login.config","auth.conf");
return new InitialContext(pro);
...............................
it gave Exception
..........
javax.ejb.EJBAccessException: Authentication failure
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSe
curityException(Ejb3AuthenticationInterceptor.java:70)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
ationInterceptor.java:70)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth
enticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
ptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono
usInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessCo
ntainer.java:263)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.
java:58)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteP
roxy.java:102)
at $Proxy100.findAllUserTab(Unknown Source)
......................
thankx 4 u
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094305#4094305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094305
18 years, 9 months