[JBoss AS 7 Development] - To use LdapExtLoginModule with JaasSecurityDomain mbean - encode64 operation
by veenaonnet
veenaonnet [https://community.jboss.org/people/veenaonnet] created the discussion
"To use LdapExtLoginModule with JaasSecurityDomain mbean - encode64 operation"
To view the discussion, visit: https://community.jboss.org/message/790033#790033
--------------------------------------------------------------
Hi,
I am trying to port security code which was running on jboss4 to jboss7. As a part of it I need to encode the bindCredentials.
Previously I defined a bean in jboss-service.xml and was using it in code to encode the bindCredentials before writing it to a file - login-config.xml.
I have done other changes and using standalone-full.xml. However not able to achieve this encoding part because of which it gives the error - Incorrect password on login.
ObjectName jaasSecurityDomain = new ObjectName("jboss.security:domain=jmx-console,service=JaasSecurityDomain");
Object[] params = {Base64.decode(getBindCredential())};
String[] signature = {byte[].class.getName()};
setBindCredential((String)server.invoke(jaasSecurityDomain, "encode64", params, signature));
Is there equivalent service & operation in JBoss7. Tried to google but could not find the required information. Does picketBox jar provides any such facility?
Please let me know how to achieve it.
Regards,
Veena
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/790033#790033]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[JBoss AS 7 Development] - Need help to migrate JBOSS-Cache to Infinispan 5.1.x
by seyed z
seyed z [https://community.jboss.org/people/seyed.z] created the discussion
"Need help to migrate JBOSS-Cache to Infinispan 5.1.x"
To view the discussion, visit: https://community.jboss.org/message/788980#788980
--------------------------------------------------------------
I am in process of migrating my application from AS-5.1.0 GA to 7.1.1. I have gone (at least it think I have) through all steps defined in the migration documentation. The only part I am having issue is porting from jboss-cache to infispan. What I have is a JMX based cache defined in my-jboss-beans.xml as such:
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_2_0.xsd"
xmlns="urn:jboss:bean-deployer:2.0">
<bean name="AppCacheFactory" class="org.jboss.cache.DefaultCacheFactory"/>
<bean name="DefaultCacheConfig" class="org.jboss.cache.config.Configuration">
<!-- Externally injected services -->
<property name="runtimeConfig">
<bean class="org.jboss.cache.config.RuntimeConfig">
<property name="transactionManager">
<inject bean="jboss:service=TransactionManager" property="TransactionManager"/>
</property>
</bean>
</property>
<property name="lockAcquisitionTimeout">15000</property>
<property name="exposeManagementStatistics">true</property>
<property name="evictionConfig">
<bean class="org.jboss.cache.config.EvictionConfig">
<property name="wakeupInterval">5000</property>
<!-- Overall default -->
<property name="defaultEvictionRegionConfig">
<bean class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/</property>
<property name="evictionAlgorithmConfig">
<bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
<!-- Evict LRU node once we have more than this number of nodes -->
<property name="maxNodes">10000</property>
<!-- And, evict any node that hasn't been accessed in this many seconds -->
<property name="timeToLiveSeconds">1000</property>
<!-- Don't evict a node that's been accessed within this many seconds.
Set this to a value greater than your max expected transaction length. -->
<property name="minTimeToLiveSeconds">120</property>
</bean>
</property>
</bean>
</property>
<property name="evictionRegionConfigs">
<list>
<!-- Don't ever evict modification timestamps -->
<bean class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/TS</property>
<property name="evictionAlgorithmConfig">
<bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
</property>
</bean>
</list>
</property>
</bean>
</property>
</bean>
<bean name="AppCacheJmxWrapper" class="org.jboss.cache.jmx.CacheJmxWrapper">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="MyApp.cache:name=xyz",exposedInterface=org.jboss.cache.jmx.CacheJmxWrapperMBean.class,registerDirectly=true)</annotation>
<constructor>
<parameter>
<bean class="org.jboss.cache.Cache">
<constructor factoryMethod="createCache">
<factory bean="AppCacheFactory"/>
<parameter class="org.jboss.cache.config.Configuration">
<inject bean="DefaultCacheConfig"/>
</parameter>
<parameter>true</parameter>
</constructor>
</bean>
</parameter>
</constructor>
</bean>
</deployment>
Can somebody point me in the right direction on this. How the above is acheived in AS-7.x? Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788980#788980]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM Development] - JBPM 5 clustering
by Sachin Chandra
Sachin Chandra [https://community.jboss.org/people/chandrasachin16] created the discussion
"JBPM 5 clustering"
To view the discussion, visit: https://community.jboss.org/message/789717#789717
--------------------------------------------------------------
Hi All ,
I have been trying load balancing with JBoss AS 7 and achieved it using mod_jk using a simple servlet application. I tried to do the same with JBPM 5.2 but unfotunately came up with some error.I was able to launch the jbpm console but after logging in, it showed me a blank screen . The error log in the server is given below-
14:57:48,654 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-console].[ErraiServlet]] (http-localhost-127.0.0.1-8080-12) Servlet.service() for servlet ErraiServlet threw exception: java.lang.IllegalArgumentException: clusteredSession.setAttribute.iae
at org.jboss.as.web.session.ClusteredSession.setAttribute(ClusteredSession.java:808) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.errai.bus.server.HttpSessionProvider.getSession(HttpSessionProvider.java:46) [errai-bus-1.1-Final.jar:]
at org.jboss.errai.bus.server.HttpSessionProvider.getSession(HttpSessionProvider.java:33) [errai-bus-1.1-Final.jar:]
at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:71) [errai-bus-1.1-Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:123) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:89) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:88) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
Can anybody throw some light on this.
Regards
Sachin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/789717#789717]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[JBoss AS 7 Development] - my application does not see the oracle classes even if the driver is defined.
by Dursun KOC
Dursun KOC [https://community.jboss.org/people/dursunkoc] created the discussion
"my application does not see the oracle classes even if the driver is defined."
To view the discussion, visit: https://community.jboss.org/message/789240#789240
--------------------------------------------------------------
I have created the oracle module at
$JBOSS_HOME/modules/com/oracle/ojdbc14/main
module.xml
ojdbc14.jar
ojdbc14.jar.index
the content of the module.xml is as follows.
<module xmlns="urn:jboss:module:1.0" name="com.oracle.ojdbc14">
<resources>
<resource-root path="ojdbc14.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
when I run my web application
it fails with the following exception;
[Server:comet_i5] 06:02:44,883 ERROR [stderr] (http--0.0.0.0-8100-2) Caused by: java.lang.ClassNotFoundException: oracle.sql.BLOB from [Module "deployment.Aragorn.war:main" from Service Module Loader]
[Server:comet_i5] 06:02:44,884 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[Server:comet_i5] 06:02:44,884 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[Server:comet_i5] 06:02:44,886 ERROR [stderr] (http--0.0.0.0-8100-2) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
should I also add the ojcdb14.jar into the WEB/lib of my war.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/789240#789240]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months