Hi All,

I am trying to upgrade jboss  from existing 3.2.1 to 4.0.3SP1 in my application.
I am using win-XP-SP2, openLDAP 1.8.8.7, jdk 1.4.1_02, junit-3.8.1
openLDAP is used to authenticate users. 
After moving to new jboss the following exception is generated on first ejb 
call. 
Also the users are not getting authenticated. The following exception is 
generated.

org.jboss.security.auth.spi.LdapLoginModule Failed to validate password
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:389)
        at 
org.jboss.security.auth.spi.LdapLoginModule.createLdapInitContext(LdapLoginModule.java:292)
        at 
org.jboss.security.auth.spi.LdapLoginModule.validatePassword(LdapLoginModule.java:224)
        at 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:186)
        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:324)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
        at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
        at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:572)
        at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:506)
        at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:315)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:196)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:120)
        at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
        at 
org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
        at org.jboss.ejb.Container.invoke(Container.java:894)
        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:324)
        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.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
        at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
        at 
org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
        at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
        at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
        at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
        at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
        at $Proxy192.create(Unknown Source)

The login-conf.xml entry for ldap looks like

<application-policy name="LDAPModule">
  
  <login-module flag="required" 
code="org.jboss.security.auth.spi.LdapLoginModule">
  <module-option 
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
  <module-option 
name="java.naming.provider.url">ldap://localhost:389</module-option>
  <module-option 
name="java.naming.security.authentication">simple</module-option>
  .
  .
  .
  .
  .
  </login-module>
  
  </application-policy>

Is someone having any idea as to what is happening here ? 

Thanks,
Amar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916619#3916619

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916619


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to