[JBoss Portal] - How to cofigure 2 Independent LDAP integration with 1 JBOSS portal instance
by Ramendra Shekhawat
Ramendra Shekhawat [http://community.jboss.org/people/friendrss] created the discussion
"How to cofigure 2 Independent LDAP integration with 1 JBOSS portal instance"
To view the discussion, visit: http://community.jboss.org/message/548267#548267
--------------------------------------------------------------
In my jboss portal application I have 1 JBOSS application instance which is integrated with 2 LDAP setup with different- different user schema. I am able to configure one LDAP within jboss but not both the LDAPs.
My ldap_identity-config.xml looks like this after entering both the ldaps-
<identity-configuration>
<datasources>
<datasource>
<name>LDAP</name>
<config>
<option>
<name>host</name>
<value>ldap.mydomain.com</value>
</option>
<option>
<name>port</name>
<value>5389</value>
</option>
<option>
<name>adminDN</name>
<value>cn=Directory Manager</value>
</option>
<option>
<name>adminPassword</name>
<value>password</value>
</option>
<!--<option>
<name>protocol</name>
<value>ssl</value>
</option>-->
</config>
</datasource>
<datasource>
<name>LDAP1</name>
<config>
<option>
<name>host</name>
<value>ldap.mydomain.com</value>
</option>
<option>
<name>port</name>
<value>6389</value>
</option>
<option>
<name>adminDN</name>
<value>cn=Directory Manager</value>
</option>
<option>
<name>adminPassword</name>
<value>password</value>
</option>
<!--<option>
<name>protocol</name>
<value>ssl</value>
</option>-->
</config>
</datasource>
</datasources>
Error Log:
--- MBeans waiting for other MBeans ---
ObjectName: portal:service=Module,type=IdentityServiceController
State: FAILED
Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
Please find the atatched zip file for complete configuration setting that is done in ldap_identity-config.xml and standardidentity-config.xml.
Now anyone has any idea how to configure both the LDAP in single JBOSS instance for authentication as both the LDAPs having different – different users.
Any help in this regard is appreciated.
-- Ramendra
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/548267#548267]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
[JBoss Web Services] - building a WS Client with WS-Security
by juan pablo
juan pablo [http://community.jboss.org/people/jplistero] created the discussion
"building a WS Client with WS-Security"
To view the discussion, visit: http://community.jboss.org/message/548245#548245
--------------------------------------------------------------
Hi all,
I' am trying to build a web service client and sing the soap message.
I 'am using jbossws-cxf to generate the Stubs with wsconsume tool.
My first problem is to build the jboss-wsse-client.xml ...
I have my private key, my sing cert and the CA root for the server (I havent access to the server)
to build a keystore I use:
openssl pkcs12 -export -chain -in mySing.crt -CAfile root.cer -inkey myPrivate.key -out keystore.pkcs12
(I made a client with a soapui tool, and the keystore works fine)
so ... my jboss-wsse-client.xml:
*<jboss-ws-security xmlns=" http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/config"*
*xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"*
*xsi:schemaLocation=" http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/config*
* http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">*
*<config>*
*<sign type="x509v3" alias="1" />*
*<requires>*
*<signature />*
*</requires>*
*</config>*
*</jboss-ws-security>*
And in my Client, this is my code:
*System.setProperty("org.jboss.ws.wsse.keyStore","/home/jp/tmp/keystore.pkcs12");*
** *System.setProperty("org.jboss.ws.wsse.keyStorePassword", "12345");*
*System.setProperty("org.jboss.ws.wsse.keyStoreType", "pkcs");*
*SomeService service = new SomeService();
SomePort port = service.getPort();
URL securityURL = new File("/home/jp/workspace1/myProject/src/META-INF/jboss-wsse-client.xml").toURL();
((StubExt) port).setSecurityConfig(securityURL.toExternalForm());
((StubExt) port).setConfigName("Standard WSSecurity Client","/home/jp/workspace1****/myProject*/src/META-INF/jboss-wsse-client.xml");
also I add reference to jboss-AS-5.1/lib/endoresed and jboss-AS-5.1/client
Someone known what is Wrong ? the jboss-wsse-client.xml ? the Client ? the references jars ?
now I'am having this exception
******java.lang.reflect.UndeclaredThrowableException
*
*
*
*
*
*** *at $Proxy21.setConfigName(Unknown Source)*
** *at otroMain.Client.llamadoEstatica(Client.java:57)*
** *at otroMain.Client.main(Client.java:42)*
*Caused by: java.lang.reflect.InvocationTargetException*
** *at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
** *at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
** *at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
** *at java.lang.reflect.Method.invoke(Method.java:597)*
** *at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:111)*
** *... 3 more*
*Caused by: org.jboss.ws.WSException: Invalid config namespace: http://www.jboss.com/ws-security/config*
** *at org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfigFactory.java:94)*
** *at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:151)*
** *at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfigMetaData(EndpointMetaData.java:923)*
** *at org.jboss.ws.metadata.umdm.EndpointMetaData.createEndpointConfigMetaData(EndpointMetaData.java:889)*
** *at org.jboss.ws.metadata.umdm.ClientEndpointMetaData.createEndpointConfigMetaData(ClientEndpointMetaData.java:83)*
** *at org.jboss.ws.metadata.umdm.FeatureAwareClientEndpointMetaDataAdapter.createEndpointConfigMetaData(FeatureAwareClientEndpointMetaDataAdapter.java:120)*
** *at org.jboss.ws.core.jaxws.client.ClientImpl.setConfigName(ClientImpl.java:492)*
thanks,
jp
*
*
*
*
*
*
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/548245#548245]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
Re: [jboss-user] [jBPM] - How do I turn off jBPM 4.3 transactional persistence?
by Chris Toomey
Chris Toomey [http://community.jboss.org/people/cntoomey] replied to the discussion
"How do I turn off jBPM 4.3 transactional persistence?"
To view the discussion, visit: http://community.jboss.org/message/548243#548243
--------------------------------------------------------------
Hi, I'm evaluating jBPM for use in controlling the processing of a single HTTP request to a web application (we want to have configurable bucket testing of different request-processing flows), so I'm also interested in how to disable persistence. It seems that even persisting to an in-memory database would involve a fair bit of needless (in my case) overhead to read/write execution state through layers of jbpm, jdbc, and hsqldb on every transition in the workflow.
Is it definitely not possible to disable this altogether, even when using the low-level client API? If it can be disabled, where specifically in jbpm.default.cfg.xml or included files is this done?
Also, if it's not possible to disable DB persistence in jbpm4, is it in jbpm3? How / where in the config. file?
thx much,
Chris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/548243#548243]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
Re: [jboss-user] [EJB 3.0] - Communication between EJBs across 2 ears
by Wolfgang Knauf
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion
"Communication between EJBs across 2 ears"
To view the discussion, visit: http://community.jboss.org/message/548229#548229
--------------------------------------------------------------
Hi,
don't combine "@EJB" annotation and manual lookup, use only one way ;-).
If you want to do the lookup yourself:
How did you declare the environment naming context (ENC)? You need a JBoss specific file to do so. If you want to access the ENC from another session bean, you probably have to add a "jboss.xml" file to your project. In "ejb-jar.xml", you need an "ejb-ref" element, and "jboss.xml" also needs this element and points to the global JNDI name of the bean.
Lookup will also work if you use the global JNDI name of your bean. This defaults to "earname/MyBean/local" for the local interface and "earname/MyBean/remote" for the Remote interface. In your sample, it should be "svc/Role/remote".
Did you verify that the Role bean is bound to the JNDI names you expect (use the "JNDIView" mbean to check those bindings)?
Hope this helps
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/548229#548229]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
Re: [jboss-user] [JBoss Microcontainer Development] - Endless loop at AS server startup
by Thomas Diesler
Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] replied to the discussion
"Endless loop at AS server startup"
To view the discussion, visit: http://community.jboss.org/message/548223#548223
--------------------------------------------------------------
I can't say that I understand the issue fully. When the AbstractDependencyInfo returns it's unresolved requirements - it is an unordered set. So the order of the requirements is not deterministic.
In AS we currently distribute these bundles
jboss-osgi-blueprint.jar
jboss-osgi-common-core.jar
jboss-osgi-common.jar
jboss-osgi-http.jar
jboss-osgi-husky.jar
jboss-osgi-jaxb.jar
jboss-osgi-jmx.jar
jboss-osgi-jndi.jar
jboss-osgi-reflect.jar
jboss-osgi-webapp.jar
jboss-osgi-webconsole.jar
jboss-osgi-xerces.jar
jboss-osgi-xml-binding.jar
org.apache.aries.jmx.jar
org.apache.aries.util.jar
org.apache.felix.eventadmin.jar
org.apache.felix.log.jar
org.osgi.compendium.jar
They come with mandatory/optional and of course dynamic requirements. One possibility could be to add a few "special" log messages that write an audit log to a dedicated appender. The test case could extract the module + caps + reqs topology from the log and build up the metadata from it.
I believe, it is a resolve time problem only - so there should be no actual class load needed.
The standalone Runtime BTW resolves these bundles in a timely manner even without the cache. One reason could be that the compendium and a few other key bundles are installed/resolved first before the others come in. Another reason is that we only deal with OSGi modules, which is unlike in AS where we have very many modules with an unknown set of caps/reqs.
I might also add, that I'm sure that the algorithm (without the cache) does not run into an endless loop after all. I'm fairly sure that the cache would prevent that.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/548223#548223]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months