users@glassfish.java.net

LDAP error in Glassfishv3.1.1

From: <forums_at_java.net>
Date: Thu, 29 Dec 2011 01:07:54 -0600 (CST)

Hi,

Iam using JAAS LDAP authentication. It was working fine in SunAppserver and
now i deployed my application in Glassfish3.1.1 server. I have taken
login.conf file from Sunappserver and copied to Glassfish's config folder.
Iam using Struts framework. When i login it is giving below error. Can you
help me to resolve the problem. Thanks in advance.

[#|2011-12-28T16:56:49.744+0800|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=133;_ThreadName=Thread-2;|LDAPAuthentication:
java.util.MissingResourceException: Can't find resource for bundle
sun.security.util.AuthResources, key username:

at java.util.ResourceBundle.getObject(ResourceBundle.java:393)

at java.util.ResourceBundle.getString(ResourceBundle.java:353)

at
com.seagate.scss.auth.LdapLoginModule.getUsernamePassword(LdapLoginModule.java:953)

at
com.seagate.scss.auth.LdapLoginModule.attemptAuthentication(LdapLoginModule.java:724)

at com.seagate.scss.auth.LdapLoginModule.login(LdapLoginModule.java:546)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)

at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)

at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)

at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)

at javax.security.auth.login.LoginContext.login(LoginContext.java:594)

at
com.seagate.scss.auth.LDAPAuthentication.authenticate(LDAPAuthentication.java:78)

at com.seagate.scss.action.LoginAction.authenticate(LoginAction.java:126)

at com.seagate.scss.action.LoginAction.executeLogic(LoginAction.java:68)

at com.seagate.scss.action.LoginAction.execute(LoginAction.java:55)

at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:232)

at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)

at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)

at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)

at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

at java.lang.Thread.run(Thread.java:722)

 


--
[Message sent by forum member 'prashanth_java']
View Post: http://forums.java.net/node/878210