安装jivejdon报错,其他jdon.com里下载的也是,请问什么原因?Unable to scan directory of protocol: jndi

13-02-25 mickeycn
2013-2-25 10:50:56 org.apache.catalina.core.ApplicationContext log

信息: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)

java.io.IOException: Unable to scan directory of protocol: jndi

at com.jdon.util.scanAnnotation.IteratorFactory.create(IteratorFactory.java:52)

at com.jdon.util.scanAnnotation.ScanAnnotationDB.scanArchives(ScanAnnotationDB.java:49)

at com.jdon.container.annotation.type.AnnotationScaner$1.call(AnnotationScaner.java:56)

at com.jdon.container.annotation.type.AnnotationScaner$1.call(AnnotationScaner.java:51)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at com.jdon.container.annotation.type.AnnotationScaner.startScan(AnnotationScaner.java:63)

at com.jdon.container.annotation.ContainerLoaderAnnotation.startScan(ContainerLoaderAnnotation.java:37)

at com.jdon.container.factory.ContainerBuilderFactory.createContainerBuilder(ContainerBuilderFactory.java:54)

at com.jdon.container.startup.ContainerSetupScript.initialized(ContainerSetupScript.java:51)

at com.jdon.container.startup.ContainerSetupScript.prepare(ContainerSetupScript.java:73)

at com.jdon.strutsutil.InitPlugIn.init(InitPlugIn.java:78)

at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)

at javax.servlet.GenericServlet.init(GenericServlet.java:212)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:578)

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:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

mickeycn
2013-02-25 22:31
这个问题调试好了,又有个新问题登录报错,不知道哪里没配好。

严重: 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:345)

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:286)

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

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

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

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

banq
2013-03-13 08:27
2013-02-25 22:31 "@mickeycn

"的内容

java.lang.SecurityException: ...

凡是有关安全登陆的都是tomcat有关容器JAAS配置不对。

1.确保jaas.config配置在JAVA_OPTS环境中

2.确保conf/server.xml已经配置jivejdon loginModule

猜你喜欢