[Security & JAAS/JBoss] - Re: Authentification problems in Jboss 5
by tgueze
Thanks for the response ragavgomatam but it didn't work.
I'm using the Jboss 5 RC2 version and I have the same trouble.
Same configuration : a login module performing the authentification on the client side, the ClientLoginModule on the server side.
I'm using EJB 3 stateless session beans.
So a user is logged perform some operations on the beans, then it log out and log an different user and it perform some operations too. I have run these steps in debug mode, and the login is committed, so I assume my new user is logged.
In the server side, when I retrieve the caller name in the beans, I get the old user name.
The first user is also the first caller of the beans.
I setted the cache to 0 and set the multi-threaded and restore-login-identity to true but it had no effect.
Any idea?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177646#4177646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177646
17 years, 10 months
[EJB 3.0] - no currentsessioncontext configured
by AJanz
i got some trouble deploying jbpm enterprise on jboss 4.2.2 ga with seam.
i removed jbpm-jpdl.jar from the jbpm-enterprise.ear and put it in the servers lib
now class loadings seems no problem any more.
but now i got No CurrentSessionContext configured!
stacktrace
| 13:55:12,707 ERROR [LogInterceptor] TransactionRolledbackException in method: pu
| blic abstract java.lang.Object org.jbpm.ejb.RemoteCommandService.execute(org.jbp
| m.command.Command) throws java.rmi.RemoteException, causedBy:
| org.hibernate.HibernateException: No CurrentSessionContext configured!
| at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactor
| yImpl.java:542)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
| Service.java:105)
| at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis
| tenceService.java:345)
| at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
| at org.jbpm.command.GetProcessDefinitionsCommand.execute(GetProcessDefin
| itionsCommand.java:30)
| at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:
| 146)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
| tatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
| ke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
| elessSessionInstanceInterceptor.java:169)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
| Interceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
| rceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
| torCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
| 81)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
| java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
| ryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
| 48)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
| lInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
|
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
| r.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
| a:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
| java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
| 0)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
| onInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy124.execute(Unknown Source)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177642#4177642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177642
17 years, 10 months
[JBoss jBPM] - No CurrentSessionContext configured!
by AJanz
i got some trouble deploying jbpm enterprise on jboss 4.2.2 ga with seam.
i removed jbpm-jpdl.jar from the jbpm-enterprise.ear and put it in the servers lib
now class loadings seems no problem any more.
but now i got No CurrentSessionContext configured!
stacktrace
| 13:55:12,707 ERROR [LogInterceptor] TransactionRolledbackException in method: pu
| blic abstract java.lang.Object org.jbpm.ejb.RemoteCommandService.execute(org.jbp
| m.command.Command) throws java.rmi.RemoteException, causedBy:
| org.hibernate.HibernateException: No CurrentSessionContext configured!
| at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactor
| yImpl.java:542)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
| Service.java:105)
| at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis
| tenceService.java:345)
| at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
| at org.jbpm.command.GetProcessDefinitionsCommand.execute(GetProcessDefin
| itionsCommand.java:30)
| at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:
| 146)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
| tatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
| ke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
| elessSessionInstanceInterceptor.java:169)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
| Interceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
| rceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
| torCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
| 81)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
| java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
| ryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
| 48)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
| lInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
|
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
| r.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
| a:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
| java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
| 0)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
| onInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy124.execute(Unknown Source)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177641#4177641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177641
17 years, 10 months
[Beginners Corner] - Re: java.lang.NoClassDefFoundError exception when starting 4
by Vijay_javaoca
Hi,
I have downloaded the latest version jboss Application server (jboss-4.2.3.GA-jdk6.zip) and unzipped.
But when I start the server I see many errors stack trace on the server console, specified below.
C:\>DevEnv\jboss-4.2.3.GA1\bin\run.bat -c all
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\DevEnv\jboss-4.2.3.GA1
JAVA: C:\Java\jdk1.5.0_16\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Java\jdk1.5.0_16\lib\tools.jar;C:\DevEnv\jboss-4.2.3.GA1\bin\run
.jar
===============================================================================
12:07:42,609 INFO [Server] Starting JBoss (MX MicroKernel)...
12:07:42,609 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
JBoss_4_2_3_GA date=200807181439)
12:07:42,609 INFO [Server] Home Dir: C:\DevEnv\jboss-4.2.3.GA1
12:07:42,609 INFO [Server] Home URL: file:/C:/DevEnv/jboss-4.2.3.GA1/
12:07:42,609 INFO [Server] Patch URL: null
12:07:42,609 INFO [Server] Server Name: all
12:07:42,609 INFO [Server] Server Home Dir: C:\DevEnv\jboss-4.2.3.GA1\server\al
l
12:07:42,609 INFO [Server] Server Home URL: file:/C:/DevEnv/jboss-4.2.3.GA1/ser
ver/all/
12:07:42,609 INFO [Server] Server Log Dir: C:\DevEnv\jboss-4.2.3.GA1\server\all
\log
12:07:42,609 INFO [Server] Server Temp Dir: C:\DevEnv\jboss-4.2.3.GA1\server\al
l\tmp
12:07:42,609 INFO [Server] Root Deployment Filename: jboss-service.xml
12:07:43,171 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
12:07:43,171 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02
,Sun Microsystems Inc.
12:07:43,171 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
12:07:44,500 INFO [Server] Core system initialized
12:07:50,125 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
/
12:07:50,125 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:jboss-log4j.xml
12:07:51,093 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
version) - JBoss Inc.
12:07:51,093 INFO [TransactionManagerService] Setting up property manager MBean
and JMX layer
12:07:51,531 INFO [TransactionManagerService] Starting recovery manager
12:07:51,703 INFO [TransactionManagerService] Recovery manager started
12:07:51,703 INFO [TransactionManagerService] Binding TransactionManager JNDI R
eference
12:07:58,687 INFO [EJB3Deployer] Starting java:comp multiplexer
12:08:01,578 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 127.0.0.1:4166
-------------------------------------------------------
12:08:03,609 INFO [TreeCache] viewAccepted(): [127.0.0.1:4166|0] [127.0.0.1:416
6]
12:08:03,640 INFO [TreeCache] TreeCache local address is 127.0.0.1:4166
12:08:03,640 INFO [TreeCache] State could not be retrieved (we are the first me
mber in group)
12:08:03,640 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
12:08:04,828 ERROR [MainDeployer] Could not initialise deployment: file:/C:/DevE
nv/jboss-4.2.3.GA1/server/all/deploy/jbossws.sar/
java.lang.NoClassDefFoundError: javax/ejb/Stateless
at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
And once I try to access the URL http://localhost:8080/ Iâm not getting any thing displayed. Even though I see this on the server console:
12:12:52,859 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
12:12:52,937 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
12:12:52,953 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
s_4_2_3_GA date=200807181439)] Started in 5m:10s:344ms
Can any one please help me out with a solution?
Many Thanks,
Vijay G
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177631#4177631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177631
17 years, 10 months
[Management, JMX/JBoss] - some problem with webservices and Mbeans kidly help
by yaragalla_murali
I have implemented the webservices for the first time in JBoss. After implementation I am getting the following error. please kindly help me in this.
MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=DeliverableReleaseWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=DeliverableWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=InputDependsOnWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=InputWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=MilestoneWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PoPWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
Depends On Me:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PublishRuleWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
Depends On Me:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=DeliverableReleaseWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=DeliverableWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=InputDependsOnWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=InputWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=MilestoneWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PoPWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PublishRuleWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=UserWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=WaterholeWorkflowImpl,service=EJB3
ObjectName: jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PublishRuleWorkflowImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PoPWorkflowImpl,service=EJB3
jboss.j2ee:ear=mypopprojectEAR.ear,jar=mypopprojectEJB.jar,name=PrivilegeWorkflowImpl,service=EJB3
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177619#4177619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177619
17 years, 10 months