[Clustering/JBoss] - Re: Could not crate JMS_MESSAGE table
by mpogra
Yes they are logged at DEBUG. Below is extract form logs
2007-05-30 19:08:37,239 DEBUG [org.jboss.system.ServiceController] starting service jboss.mq:service=PersistenceManager
2007-05-30 19:08:37,239 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting jboss.mq:service=PersistenceManager
2007-05-30 19:08:37,239 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Creating Schema
2007-05-30 19:08:37,239 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
Means i can safly ignore error. But still i wnt to know where can i set DB related information like(userid,drivers,service name etc)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049759#4049759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049759
17 years, 6 months
[Clustering/JBoss] - WARN in sever.log abt localhost
by mpogra
Hi
i have installed jboss-4.0.3SP1 and trying to understand the clustring.
i have done nacessary setups in cluster-services.xml(MOST OF THEM ARE DEFAULT). i have used mcast option to detect other nodes in cluster. currently i have only my machine in cluster.
i have used command line option -g to set the partion name and it's working but i m seeing below warings in server.log file
2007-05-30 19:08:40,744 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was localhost:35394 (additional data: 14 bytes)
2007-05-30 19:08:44,092 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was localhost:32808 (additional data: 14 bytes)
2007-05-30 19:08:45,265 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was XXXX-739:1677 (additional data: 18 bytes)
2007-05-30 19:09:01,365 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was XXXX-668:1677 (additional data: 18 bytes)
2007-05-30 19:09:02,304 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was localhost:35394 (additional data: 14 bytes)
2007-05-30 19:09:05,871 WARN [org.jgroups.protocols.UDP] discarded message from different group (DefaultPartition). Sender was
Here all other senders do not belongs to my partition but why i m seeing that localhost means my server is also sending data to join the partition using "DefaultPartition", however my partition name is other then default partition name.
Is there any other setting that i have to do?
Please advise.
Mahesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049758#4049758
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049758
17 years, 6 months
[Security & JAAS/JBoss] - Re: Complete set of example snippets of JAAS + LDAP code and
by illipilla
1. Add the following snippet to the conf/login-config.xml. You want modify the basefilter and rolefilter as per your needs.
<!-- LDAP Integration Details-->
<application-policy name = "testLDAP">
<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://LDAPSERVER:389</module-option>
<module-option name="bindDN">uid=adminuser,ou=admin,ou=corporate,dc=company,dc=com</module-option>
<module-option name="bindCredential">xxxxxxxx</module-option>
<module-option name="baseCtxDN">dc=company,dc=com</module-option>
<module-option name="baseFilter">(uid={0})</module-option>
<module-option name="rolesCtxDN">dc=company,dc=com</module-option>
<module-option name="roleFilter">(uniquemember={1})</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="roleAttributeID">cn</module-option>
<!-- need to understand the impact of enabling roleRecursion -->
<module-option name="roleRecursion">0</module-option>
<module-option name="searchScope">SUBTREE_SCOPE</module-option>
</login-module>
</application-policy>
2. A sample web.xml snippet that secures some webpages with roles
<security-constraint>
<!-- all the pages in this webapp are secured -->
<web-resource-collection>
<web-resource-name>SecuredPages</web-resource-name>
<url-pattern>/index.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>WebAccessRole</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>WebAccessRole</role-name>
</security-role>
3. Edit the jboss specific web descriptor jboss-web.xml to configure jboss application to use the configured IPlanet LDAP as security domain for authentication purposes. Please add the below lines.
<security-domain>java:/jaas/testLDAP</security-domain>
<security-role>
<role-name>WebAccessRole</role-name>
<principal-name>yourLDAPGroup</principal-name>
</security-role>
4. 5. To retrieve the roles gathered by the container as part of authentication use the below code snippet.
//Get the Authenticated Subject
Subject subject = (Subject) PolicyContext.getContext("javax.security.auth.Subject.container");
//out.println(subject+"");
//Now look for a Group called Roles
Set principals = subject.getPrincipals(Principal.class);
Iterator iter = principals.iterator();
while(iter.hasNext())
{
Principal p = (Principal)iter.next();
out.println("Principals: "+p+"");
if(p instanceof SimpleGroup)
{
SimpleGroup sg = (SimpleGroup)p;
if("Roles".equals(sg.getName())) {
System.out.println(sg.toString()+"");
//Do anything with role here
}
}
}
5. Restart the jboss process
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049757#4049757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049757
17 years, 6 months