Menu

Login error

Somjeed
2014-04-08
2014-04-09
  • Somjeed

    Somjeed - 2014-04-08

    Hello I need you to help. After I install and config openppm step by step in manual, I test accessed system, the system return this message

    Login error
    You have entered invalid name and password

    And I had changed file setenv.bat:
    set JAVA_OPTS=%JAVA_OPTS% -Djava.security.auth.login.config="%CATALINA_HOME%/conf/jaas.config"
    set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"

    and Tomcate log(I used Tomcate 6.0 and all system run local host and used windowsserver 2008r2 os)
    Apr 8, 2014 2:45:06 PM org.apache.catalina.realm.JAASRealm authenticate
    SEVERE: Unexpected error
    java.lang.SecurityException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at javax.security.auth.login.Configuration$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.Configuration.getConfiguration(Unknown Source)
    at javax.security.auth.login.LoginContext$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.init(Unknown Source)
    at javax.security.auth.login.LoginContext.<init>(Unknown Source)
    at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:393)
    at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:334)
    at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:261)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:454)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(Unknown Source)
    ... 26 more</init></init>

     
  • Joan Barceló

    Joan Barceló - 2014-04-08

    Hi Somjeed,

    If you have installed Apache Tomcat as a windows service, you must configure the "jaas.config" in Apache Tomcat Properties dialog -> "Java" tab -> "Java Options" sections, and include the text:
    -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\jaas.config
    (check if your path is the same)

    Please, make sure that you have installed Tomcat 6.0.35. You can download it from: http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.35/bin/

    Kind Regards!
    Joan

     
  • Somjeed

    Somjeed - 2014-04-09

    thank you very much ^__^

     

Log in to post a comment.

MongoDB Logo MongoDB