用jetty启动项目报错

org.apache.shiro.config.ConfigurationException: Unable to instantiate class [com.jfinalshop.shiro.ShiroFormAuthenticationFilter] for object named 'authc'.  Please ensure you've specified the fully qualified class name correctly.
 at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:309)
 at org.apache.shiro.config.ReflectionBuilder$InstantiationStatement.doExecute(ReflectionBuilder.java:927)
 at org.apache.shiro.config.ReflectionBuilder$Statement.execute(ReflectionBuilder.java:887)
 at org.apache.shiro.config.ReflectionBuilder$BeanConfigurationProcessor.execute(ReflectionBuilder.java:765)
 at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:260)
 at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:167)
 at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:130)
 at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:108)
 at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:94)
 at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:46)
 at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
 at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)
 at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203)
 at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99)
 at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92)
 at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
 at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
 at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
 at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)
 at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
 at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:579)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:156)
 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1215)
 at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:548)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:348)
 at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:107)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
 at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.Server.doStart(Server.java:222)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
 at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:384)
 at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:320)
 at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205)
 at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.shiro.util.UnknownClassException: Unable to load class named [com.jfinalshop.shiro.ShiroFormAuthenticationFilter] from the thread context, current, or system/application ClassLoaders.  All heuristics have been exhausted.  Class could not be found.
 at org.apache.shiro.util.ClassUtils.forName(ClassUtils.java:152)
 at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:168)
 at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:302)
 ... 61 more
[ERROR] Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@34332b8d{/weishop-web,file:/D:/WEOPROJECT/WeiShop/Source/weishop-web/src/main/webapp/;jar:file:/D:/DevelopSoftware/mvnSpace/com/jfinalshop/weishop-api/1.0-SNAPSHOT/weishop-api-1.0-SNAPSHOT.war!/;}
org.apache.shiro.config.ConfigurationException: Unable to instantiate class [com.jfinalshop.shiro.ShiroFormAuthenticationFilter] for object named 'authc'.  Please ensure you've specified the fully qualified class name correctly.
 at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:309)
 at org.apache.shiro.config.ReflectionBuilder$InstantiationStatement.doExecute(ReflectionBuilder.java:927)
 at org.apache.shiro.config.ReflectionBuilder$Statement.execute(ReflectionBuilder.java:887)
 at org.apache.shiro.config.ReflectionBuilder$BeanConfigurationProcessor.execute(ReflectionBuilder.java:765)
 at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:260)
 at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:167)
 at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:130)
 at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:108)
 at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:94)
 at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:46)
 at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
 at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)
 at org.apache.shiro.web.env.IniWebEnvironment.createWebSecurityManager(IniWebEnvironment.java:203)
 at org.apache.shiro.web.env.IniWebEnvironment.configure(IniWebEnvironment.java:99)
 at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:92)
 at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
 at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
 at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
 at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)
 at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
 at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:579)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:156)
 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1215)
 at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:548)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:348)
 at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:107)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
 at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.Server.doStart(Server.java:222)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
 at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
 at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:384)
 at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:320)
 at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205)
 at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.shiro.util.UnknownClassException: Unable to load class named [com.jfinalshop.shiro.ShiroFormAuthenticationFilter] from the thread context, current, or system/application ClassLoaders.  All heuristics have been exhausted.  Class could not be found.
 at org.apache.shiro.util.ClassUtils.forName(ClassUtils.java:152)
 at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:168)
 at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:302)
 ... 61 more
[INFO] Started SelectChannelConnector@0.0.0.0:80
[INFO] Started Jetty Server

评论区

王波波61

2017-04-13 15:37

是不是缓存的原因呢?

热门反馈

扫码入社