[Clustering/JBoss] - TCP Clustering problem
by somejunk
Hi
I have two instances of JBoss 4.0.2 running on two different machines in a cluster. One node is automatically detecting the other node if I use UDP stack. If I use TCP stack, they are not communicating. I am getting the following messages frequently.
2006-11-01 16:41:04,975 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 31s:439ms
2006-11-01 16:41:31,413 WARN [org.jgroups.protocols.TCP] discarded message from different group (sb1585). Sender was APP2:7800 (additional data: 20 bytes)
2006-11-01 16:41:37,476 WARN [org.jgroups.protocols.TCP] discarded message from different group (tomcat=sb1585). Sender was APP2:7810
2006-11-01 16:41:42,757 WARN [org.jgroups.protocols.TCP] discarded message from different group (sb1585). Sender was APP2:7800 (additional data: 20 bytes)
2006-11-01 16:41:47,789 WARN [org.jgroups.protocols.TCP] discarded message from different group (tomcat=sb1585). Sender was APP2:7810
2006-11-01 16:41:54,523 WARN [org.jgroups.protocols.TCP] discarded message from different group (sb1585). Sender was APP2:7800 (additional data: 20 bytes)
2006-11-01 16:41:59,664 WARN [org.jgroups.protocols.TCP] discarded message from different group (tomcat=sb1585). Sender was APP2:7810
2006-11-01 16:42:04,492 WARN [org.jgroups.protocols.TCP] discarded message from different group (sb1585). Sender was APP2:7800 (additional data: 20 bytes)
I have changed UDP to TCP in both cluster-service.xml and tc5-cluster-service.xml.
Here is the TCP stack for node1 and node 2 in cluster-service.xml
<TCP bind_addr="100.10.2.80" start_port="7800" loopback="false"/>
<TCPPING initial_hosts="100.10.2.80[7800],100.10.2.90[7800]" port_range="3" timeout="3500"
num_initial_members="3" up_thread="true" down_thread="true"/>
<MERGE2 min_interval="5000" max_interval="10000"/>
<FD shun="true" timeout="2500" max_tries="5" up_thread="true" down_thread="true" />
<VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
<pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
retransmit_timeout="3000"/>
<pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
print_local_addr="true" down_thread="true" up_thread="true"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
I am using the port 7810 for the TCP stack in tc5-cluster-service.xml. Please help me in resolving this. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982497#3982497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982497
19Â years, 6Â months
[Security & JAAS/JBoss] - Re: Deploying issue with SSO
by sohil.shahï¼ jboss.com
Nipun try your sso.cfg.xml to be look something like this from provisioning tag perspective:
| <?xml version='1.0' encoding='ISO-8859-1'?>
|
| <jboss-sso>
| <!--
| identity management related configuration, this is the LDAP based module
| Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
| -->
| <identity-management>
| <login>
| <provider id="si:jboss-sso:ldap:login" class="org.jboss.security.idm.ldap.LDAPIdentityProvider">
| <property name="connectionURL">
| jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&secure:=false&concat_atts:=true&size_limit:=10000000
| </property>
| <property name="username">cn=Admin,dc=jboss,dc=com</property>
| <property name="password">jbossrocks</property>
| <property name="identityOu">jbosssso</property>
| <property name="roleOu">role</property>
| </provider>
| </login>
| <provisioning>
| </provisioning>
| </identity-management>
|
|
| <!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
| the next version of this processor will use the latest SAML specification
| -->
| <sso-processor>
| <processor class="org.jboss.security.saml.JBossSingleSignOn">
| <property name="trustServer">http://node1.jboss.com:8080/federate/trust</property>
| </processor>
| </sso-processor>
| </jboss-sso>
|
Thanks
Sohil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982495#3982495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982495
19Â years, 6Â months
[Security & JAAS/JBoss] - Re: Deploying issue with SSO
by nipunbatra
Again the same problem
I hope this time it will work < and > brackets are replaced by --
--?xml version='1.0' encoding='ISO-8859-1'?--
--jboss-sso--
--!--
identity management related configuration, this is the LDAP based module
Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
----
--identity-management--
--login--
--provider id="si:jboss-sso:test:login" class="com.coremetrics.sso.DemoLoginProvider"--
--property name="connectionURL"--
jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&secure:=false&concat_atts:=true&size_limit:=10000000
--/property--
--property name="username"--cn=Admin,dc=jboss,dc=com--/property--
--property name="password"--jbossrocks--/property--
--property name="identityOu"--jbosssso--/property--
--property name="roleOu"--role--/property--
--/provider--
--/login--
--/identity-management--
--!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
the next version of this processor will use the latest SAML specification
----
--sso-processor--
--processor class="org.jboss.security.saml.JBossSingleSignOn"--
--property name="trustServer"--http://sd1nbatra.core.coremetrics.com:8080/federate/trust--/property--
--/processor--
--/sso-processor--
--/jboss-sso--
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982494#3982494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982494
19Â years, 6Â months
[Security & JAAS/JBoss] - Re: Deploying issue with SSO
by nipunbatra
Thanks for your response Sohil
As you suggested I removed the entry of provisioning but I am not getting Null Pointer Exception
This is how my sso-cfg file looks like
<?xml version='1.0' encoding='ISO-8859-1'?>
<jboss-sso>
<!--
identity management related configuration, this is the LDAP based module
Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
-->
<identity-management>
jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&secure:=false&concat_atts:=true&size_limit:=10000000
cn=Admin,dc=jboss,dc=com
jbossrocks
jbosssso
role
</identity-management>
<!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
the next version of this processor will use the latest SAML specification
-->
<sso-processor>
http://sd1nbatracore.coremetrics.com:8080/federate/trust
</sso-processor>
</jboss-sso>
And this is my class DemoLoginProvider
package com.coremetrics.sso;
import java.security.Principal;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.jboss.security.idm.Identity;
import org.jboss.security.idm.IdentityException;
import org.jboss.security.idm.LoginProvider;
public class DemoLoginProvider implements LoginProvider {
private String id = null;
public DemoLoginProvider(String id,Properties properties)
{
this.id = id;
}
public Identity read(Principal principal) throws IdentityException{
return this.read(principal.getName());
}
public Identity read(String username) throws IdentityException{
Identity identity = new Identity();
identity.setFullName("Nick");
identity.setUserName("Nick");
return identity;
}
public boolean exists(Principal principal) throws IdentityException{
return this.exists(principal.getName());
}
public boolean exists(String username) throws IdentityException{
if(username.equals("Nick"))
return true;
else
return false;
}
public boolean login(Principal principal,byte[] password) throws IdentityException{
return this.login(principal.getName(),password);
}
public boolean login(String username,byte[] password) throws IdentityException{
if(username.equals("Nick")){
return true;
}
else{
return false;
}
}
public Collection readAllRoles() throws IdentityException{
List roleMap = new ArrayList();
return roleMap;
}
public String getId() throws IdentityException{
return this.id;
}
}
Exception is
15:31:13,984 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
15:31:14,468 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo
ss.net.sockets.DefaultSocketFactory@ad093076
15:31:18,390 ERROR [IdentityManager] org.jboss.security.idm.IdentityManager
java.lang.NullPointerException
at org.jboss.security.idm.IdentityManager.loadProvisioningProviders(IdentityManager.java:286)
at org.jboss.security.idm.IdentityManager.loadConfiguration(IdentityManager.java:239)
at org.jboss.security.idm.IdentityManager.start(IdentityManager.java:193)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982491#3982491
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982491
19Â years, 6Â months