• Post Reply Bookmark Topic Watch Topic
  • New Topic

Security Exception  RSS feed

 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
iam trying to implement JAAS for an application running on tomcat.its throwing an exception

java.lang.SecurityException: Configuration Error:
Line 3: expected 'controlFlag', found 'null'
at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.java:221)
at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
at com.db.ta.security.LoginUtil.login(LoginUtil.java:100)
at com.db.ac.mccTracking.services.register.RegisterBean.processBean(RegisterBean.java:67)
at p_00025blic.jsp._0002fpublic_0002fjsp_0002fETRegisterCtrl_0002ejspETRegisterCtrl_jsp_0._jspService(_0002fp
ublic_0002fjsp_0002fETRegisterCtrl_0002ejspETRegisterCtrl_jsp_0.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



whats this control flag and what is that needs to be changed in configuration. Response highly appreciated.

Rgds,
Raj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!