[JBoss Portal Users] - Bug handling user names with Kerberos
by javaspack
First, I know this most likely won't ever be fixed because it has been end of lifed, but the Gatein project is still in Beta, as thus not a viable alternative.
Anyway, I have been having problems where my Single Sign-On users can't access their dashboard after login. I have tracked the problem down to Kerberos users having a realm (ssoUser@REALM). If I just use ssoUser, then everything works fine.
In reviewing the code, I find that after logging in as ssoUser@REALM, that the code in PageCustomizerInterceptor:197
User user = controllerCtx.getUser();
only returns ssoUser, not ssoUser@REALM.
This is the username that is used for checking my security level in the PortalObjectPermission:295-299
Principal user = (Principal)i.next();
String userName = user.getName();
//
return userName.equals(i2.next());
This evaluates to ssoUser(a)REALM.equals(ssoUser), since the Principal still has the correct user@REALM, but i2.next() is taken from the 'path:/username', which is dashboard:/ssoUser.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269658#4269658
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269658
14 years, 11 months
[jBPM Users] - Examples do not work?
by jensaug
Hello,
Should not all the provided examples be executable?
When deploying the examples in jbpm 4.2, 20 out of 37 are excluded in the build.xml file.
Simply including all of them again crashes the jbpm console (exceptions due to errors in process files). Also java src files are included in the business archive, java classes cannot be updated since ther're already in the jbpm/userlibs-folder etc.
Including only the task/swimlane example is kind of confusing, no exceptions but process does not appear in console?
I run the "demo.setup.jboss" environment (nice job btw!)
Should a "Cleanup examples" JIRA be created perhaps? Cannot find any related to this currently.
br,
Jens
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269629#4269629
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269629
14 years, 11 months
[Clustering] - Re: FirstAvailable LBP is sticky when not serialized
by fuzzy333
The test bean I'm using to setup this scenario is an EJB3 bean. Here it is for reference:
package com.foo.session;
|
| import javax.ejb.Remote;
| import javax.ejb.Stateful;
|
| import org.apache.log4j.Logger;
| import org.jboss.annotation.ejb.Clustered;
| import org.jboss.ha.framework.interfaces.FirstAvailable;
|
| @Stateful
| @Clustered(loadBalancePolicy=FirstAvailable.class)
| @Remote( value= Test2.class )
| public class Test2Bean implements Test2 {
|
| private final static Logger log = Logger.getLogger( Test2Bean.class );
|
| private int count;
|
| public void setCount( int count ) {
| log.info( "setCount( " + count + " )" );
| this.count = count;
| }
|
| public void printCount() {
| log.info( "count=" + count );
| }
| }
The load balance policy is only ever instantiated once. I copied the code from the FirstAvailable LBP to add some traces a few days ago to get a better idea of what's going on, and the constructor only ever got called once, during the app's initialization.
11:17:58,312 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=testEAR.ear,jar=testEJB.jar,name=Test2Bean,service=EJB3 with dependencies:
| 11:17:58,375 INFO [EJBContainer] STARTED EJB: com.foo.session.Test2Bean ejbName: Test2Bean
| 11:17:58,406 INFO [MyLBPolicy] LOAD BALANCE POLICY CONSTRUCTOR CALLED
I had already removed the IsLocal interceptor after having pulled most of my hair out ;) Thanks for mentioning it though.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269620#4269620
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269620
14 years, 11 months
[jBPM Users] - Re: async fork
by nizzy
Bump
Has there been any further work on this, I too am seeing the SOE
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#740]
| at org.hibernate.persister.entity.AbstractEntityPersister.forceVersionIncrement(AbstractEntityPersister.java:1235)
| at org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:82)
| at org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:64)
| at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:584)
| at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:576)
| at org.jbpm.graph.node.Join.execute(Join.java:116)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
I have a process with a fork, under which there are 3 sub-processes.
I have updated to 3.2.6.SP1 as suggested in previous post.
3.2.6.SP1
Oracle 10g XE
Jboss 4.2.3
Any help appreciated!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269614#4269614
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269614
14 years, 11 months