[Security & JAAS/JBoss] - Portal Login Problems
by ch33zm0ng3r
I am using Jboss/portal bundle 2.6. I have configured portal to authenticate through JOSSO and I am getting some odd results. Users are able to log in, however, when logged in as a normal authenticated user the dashboard link throws a 403 error. I can't figure out why the user credentials are not being passed along. Also, when logged in as a user with the 'Admin' role the user portlet shows all of the correct options, yet the header still only shows the 'login' link. Does anyone have a clue as to why the header wouldn't pick up on the correct user credentials? From what I understand since JOSSO uses the JAAS stack that these operations should be handled fairly transparently in the bacground. It seems odd that it would detect the user in one instance but not in another. I'll keep hacking at it and keep you posted. Any ideas are much appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064671#4064671
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064671
18Â years, 12Â months
[JBoss Seam] - System generated event to continue a business process
by karl.martens
Is there a way to have a system generated event continue a business processes?
Situation
=======
I have a Seam page flow that create a business process as the last step in the page flow. The business process immediately begins processing the request but as part of the process submits a request to third party vendor that may take several days to complete. Once the vendor completes the task our system will be notified.
I've tried modeling this situation as a wait state but I cannot find any documentation on how to continue the business process. There are references to the @StartTask and @EndTask for user generated continuations that use a request parameter TaskID. Is there something similar for system events that an EJB could initiate (I'm hoping without an http request and creating a system user)?
I've attempted starting the process using the technique described in the JBpm documentation.
JbpmContext context = JbpmConfiguration.getInstance().createJbpmContext();
try {
GraphSession session = context.getGraphSession();
ProcessDefinition processDefinition = session.findLatestProcessDefinition("myProcess");
ProcessInstance processInstance = new ProcessInstance(processDefinition);
ContextInstance contextInstance = processInstance.getContextInstance();
contextInstance.createVariable("param1", paramInstance.getId());
Token token = processInstance.getRootToken();
token.signal();
context.save(processInstance);
} finally {
context.close();
}
This results in the exception
java.lang.IllegalStateException: No application context active
at org.jboss.seam.Component.forName(Component.java:1577)
at org.jboss.seam.Component.getInstance(Component.java:1627)
at org.jboss.seam.Component.getInstance(Component.java:1610)
I believe this is a result of the seam context not properly being initialized.
Configuration
===========
I'm using seam version 1.2.1 with JBoss 4.0.5 with EJB3.0
Any assistance would greatly be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064664#4064664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064664
18Â years, 12Â months
[JBoss/Spring Integration] - Using JBoss TransactionManager with Spring-Hibernate using h
by quinnJohn58
I am trying to use the hilo generator class with hibernate.
I have the following configuration for the sessionFactory, but it ends up giving me a class cast exception in hibernate 3.2.4 (JBoss 4.0.5.GA) because Hibernate is expecting a javax.transaction.TransactionManager and JBoss is giving back the JBoss TxManager. Is there a way around this, or can I not use the hilo generator in hibernate when using a datasource in JBoss?
| <bean id="tariffSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
| <property name="dataSource"><ref bean="dataSourceWrapper"/></property>
| <property name="mappingResources">
| <list>
| <value>com/dpl/tariff/domain/GlobalFactor.hbm.xml</value>
| <value>com/dpl/tariff/domain/GlobalFactorValue.hbm.xml</value>
| <value>com/dpl/tariff/domain/Rate.hbm.xml</value>
| <value>com/dpl/tariff/domain/RatePeriod.hbm.xml</value>
| <value>com/dpl/tariff/domain/Component.hbm.xml</value>
| <value>com/dpl/tariff/domain/RelativeComponent.hbm.xml</value>
| <value>com/dpl/tariff/domain/ChargeType.hbm.xml</value>
| </list>
| </property>
| <property name="hibernateProperties">
| <props>
| <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
| <prop key="hibernate.show_sql">true</prop>
| <prop key="hibernate.jndi.class">org.jnp.interfaces.NamingContextFactory</prop>
| <prop key="hibernate.jndi.url">jnp://localhost:1099</prop>
| <prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</prop>
| <prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</prop>
| <prop key="hibernate.cglib.use_reflection_optimizer">${hibernate.cglib.use_reflection_optimizer}</prop>
| <prop key="hibernate.connection.autocommit">false</prop>
| <prop key="hibernate.max_fetch_depth">3</prop>
| <!-- prop key="hibernate.hbm2ddl.auto">update</prop-->
| <prop key="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</prop>
| </props>
| </property>
| </bean>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064659#4064659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064659
18Â years, 12Â months