登陆问题

08-12-23 wxx1984

我刚注册了一个账户,注册成功了,然后用它登陆(密码和用户名都没错误),显示如下异常:

2008-12-23 4:59:13 org.apache.catalina.realm.JAASRealm authenticate

严重: Unexpected error

java.lang.SecurityException: 无法定位登录配置

at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:355)

at java.lang.Class.newInstance(Class.java:308)

at javax.security.auth.login.Configuration$3.run(Configuration.java:246)

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

at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:241)

at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)

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

at javax.security.auth.login.LoginContext.init(LoginContext.java:234)

at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)

at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:344)

at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)

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

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

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

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

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

Caused by: java.io.IOException: 无法定位登录配置

at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)

at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)

... 24 more

看了一下日志,没有任何异常

2008-12-23 05:18:27,046 [main] DEBUG com.jdon.container.pico.PicoContainerWrapper - [JdonFramework]Not find the component in container :AppConfigureFiles

2008-12-23 05:18:27,046 [main] DEBUG com.jdon.container.pico.PicoContainerWrapper - [JdonFramework]registe: name=AppConfigureFiles class=com.jdon.container.config.app.AppConfigureCollection

2008-12-23 05:18:27,078 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.model.models.xml

2008-12-23 05:18:27,078 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.dao.daos.xml

2008-12-23 05:18:27,078 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.manager.managers.xml

2008-12-23 05:18:27,078 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.repository.repository.xml

2008-12-23 05:18:27,078 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.service.services.xml

2008-12-23 05:18:27,218 [main] INFO com.jdon.container.builder.DefaultContainerBuilder - [JdonFramework]found jdonframework configuration=com.jdon.jivejdon.auth.auths.xml

2008-12-23 05:18:35,765 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework]enter LoginServlet

2008-12-23 05:18:35,765 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework] check cookie

2008-12-23 05:18:35,765 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework]get username from cookie username=terry

2008-12-23 05:18:35,765 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework] forward /jdonforum/j_security_check?j_username=terry&j_password=hest

2008-12-23 05:18:39,500 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework]enter LoginServlet

2008-12-23 05:18:39,500 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework] username and password is not null

2008-12-23 05:18:39,500 [http-8080-1] DEBUG com.jdon.jivejdon.presentation.LoginServlet - [JdonFramework] forward /jdonforum/j_security_check?j_username=t&j_password=t

麻烦老师解答一下,到底什么问题啊

banq
2008-12-24 08:36

权限配置不太正确

建议看看安装指南文档