[Security & JAAS/JBoss] - Re: JBoss 4.0.5.GA LdapLoginModule - terminology confusion
by matteg
It's unfortunate no one was able to suggest using an undocumented version of LdapLoginModule - I found the LdapExtLoginModule by searching the jboss source code. Once I found that, a search of the wikis led me to the excellent posting http://wiki.jboss.org/wiki/Wiki.jsp?page=LdapExtLoginModule and the problem was resolved within hours.
For the benefit of others trying to use Ldap, don't waste time with the LdapLoginModule described in the Application Server Guide. Go directly to the LdapExtLoginModule for terminology and searching that more closely aligns with LDAP terminology and concepts.
Below is the login-config.xml that works with my OpenLDAP:
<!-- GM: Sept 27 2007 - A configuration for webapps using an OpenLDAP running on this server. -->
<application-policy name="localhostLDAP">
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://127.0.0.1:389/</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindDN">cn=administrator,dc=saanich,dc=ca</module-option>
<module-option name="bindCredential">admin1</module-option>
<module-option name="baseCtxDN">ou=People,dc=saanich,dc=ca</module-option>
<module-option name="baseFilter">(cn={0})</module-option>
<module-option name="rolesCtxDN">ou=Webapp-Roles,ou=Groups,dc=saanich,dc=ca</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="uidAttributeID">member</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
</login-module>
</application-policy>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089560#4089560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089560
18 years, 7 months
[Clustering/JBoss] - Re: HA-JMS
by ratrask
Hi Brian,
I'm sleep deprived and having a very hard time so please excuse me if I sound like an idiot, but I really need some help.
What you describe here does not seem to happen by default, and I can't figure out how to make it so.
I have a 4.2.1 cluster, using MySQL as the DefaultDS. the configuration for all nodes is identical. (did one coppied the rest). Everything works fine when the first node comes up the queues are deployed and there are no exceptions. When the second & subsequent nodes come up the original node receives a stop from the BarrierController, and undeploys the queues. The second node does not start up the queues neither do subsequent nodes. Which ever is the last node to get shut down will bring back the queues.
This behavior is easy to replicate, just bring up 2 virgin installation Jboss nodes with configuration -c all
Your email indicates that the answer may lie with the Jgroups documentation but if you can point me in the right direction that would be greatly appreciated.
Ron
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089550#4089550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089550
18 years, 7 months
[JBoss jBPM] - named catch branch on scope throws exception
by meghanai_99
I have a fault handler on scope. The BPEL snippet looks like this -
| <scope name="Scope">
| <faultHandlers>
| <catch faultName="GetQuoteFault" faultVariable="StockQuote-GetQuoteFault">
| <sequence>
| <assign name="Calculate3">
| <copy>
| <from expression="'updated from catch handler'" />
| <to part="parameters" query="/ns9:UpdateItem/ns9:item/ns9:title" variable="aewebservices70_UpdateItem-UpdateItem" />
| </copy>
| </assign>
| </sequence>
| </catch>
| </faultHandlers>
|
where variable is declared globally as
| <variable name="StockQuote-GetQuoteFault" messageType="ns10:GetQuoteFault" />
|
The wsdl message is defined as
| <wsdl:fault name="GetQuoteFault">
| <soap:fault use="literal" name="GetQuoteFault"/>
| </wsdl:fault>
|
However when it reaches to finding the messageType in ImportDefinition class I get following error -
| Caused by: org.hibernate.WrongClassException: Object with id: 3571 was not of th
| e specified subclass: org.jbpm.bpel.variable.def.MessageType (loaded object was
| of wrong class class org.jbpm.bpel.variable.def.SchemaType)
| at org.hibernate.loader.Loader.instanceAlreadyLoaded(Loader.java:1234)
| at org.hibernate.loader.Loader.getRow(Loader.java:1186)
| at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
| at org.hibernate.loader.Loader.doQuery(Loader.java:689)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
| ader.java:224)
| at org.hibernate.loader.Loader.loadCollection(Loader.java:1918)
| at org.hibernate.loader.collection.CollectionLoader.initialize(Collectio
| nLoader.java:36)
| at org.hibernate.persister.collection.AbstractCollectionPersister.initia
| lize(AbstractCollectionPersister.java:565)
| at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onIn
| itializeCollection(DefaultInitializeCollectionEventListener.java:60)
| at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:
| 1716)
| at org.hibernate.collection.AbstractPersistentCollection.initialize(Abst
| ractPersistentCollection.java:344)
| at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPe
| rsistentCollection.java:86)
| at org.hibernate.collection.AbstractPersistentCollection.readElementByIn
| dex(AbstractPersistentCollection.java:161)
| at org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
| at org.jbpm.bpel.graph.def.ImportDefinition.getMessageType(ImportDefinit
| ion.java:270)
|
I see while debugging that when it is inside the scope the 'messageTypes' map member is null however when it is on global scope, that member has number of QNames for my webservices.
Is named catch supposed to work? Please let me know if I am doing something wrong. I would appreciate if someone knows a workaround if this is a bug.
Thank you,
Meghana.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089549#4089549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089549
18 years, 7 months