NutzCN Logo
问答 nutzwk环境配置错误
发布于 3207天前 作者 汉歌 2305 次浏览 复制 上一个帖子 下一个帖子
标签:


------------------------------------------------------------------------ Building NutzWk 2.0-SNAPSHOT ------------------------------------------------------------------------ >>> jetty-maven-plugin:9.3.7.v20160115:run (default-cli) @ nutzfw >>> --- maven-resources-plugin:2.6:resources (default-resources) @ nutzfw --- Using 'UTF-8' encoding to copy filtered resources. Copying 0 resource --- maven-compiler-plugin:2.5.1:compile (default-compile) @ nutzfw --- Nothing to compile - all classes are up to date --- maven-resources-plugin:2.6:testResources (default-testResources) @ nutzfw --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory E:\hange\NutzWk\src\test\resources --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ nutzfw --- No sources to compile <<< jetty-maven-plugin:9.3.7.v20160115:run (default-cli) @ nutzfw <<< --- jetty-maven-plugin:9.3.7.v20160115:run (default-cli) @ nutzfw --- 2016-03-13 11:53:31.724:INFO::main: Logging initialized @2747ms Configuring Jetty for project: NutzWk webAppSourceDirectory not set. Trying src\main\webapp Reload Mechanic: automatic Classes = E:\hange\NutzWk\classes Context path = / Tmp directory = E:\hange\NutzWk\target\tmp Web defaults = org/eclipse/jetty/webapp/webdefault.xml Web overrides = none web.xml file = file:///E:/hange/NutzWk/src/main/webapp/WEB-INF/web.xml Webapp directory = E:\hange\NutzWk\src\main\webapp 2016-03-13 11:53:31.802:INFO:oejs.Server:main: jetty-9.3.7.v20160115 2016-03-13 11:53:33.287:INFO:/:main: Initializing Shiro environment log4j:WARN No appenders could be found for logger (org.apache.shiro.web.env.EnvironmentLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2016-03-13 11:53:33.287:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@1a2e2935{/,file:///E:/hange/NutzWk/src/main/webapp/,STARTING}{file:///E:/hange/NutzWk/src/main/webapp/} org.apache.shiro.config.ConfigurationException: Shiro INI configuration was either not found or discovered to be empty/unconfigured. at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:87) 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.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:534) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1379) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:323) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1341) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:263) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:517) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:398) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:405) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:372) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:460) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 2016-03-13 11:53:33.552:INFO:oejs.ServerConnector:main: Started ServerConnector@1d01dfa5{HTTP/1.1,[http/1.1]}{0.0.0.0:9090} 2016-03-13 11:53:33.552:INFO:oejs.Server:main: Started @4579ms Started Jetty Server
3 回复
mvn package jetty:run-exploded

@wendal mvn package jetty:run-exploded 谢谢兽总,OK了

添加回复
请先登陆
回到顶部