NutzCN Logo
问答 nutzWk 3.0 启动报错
发布于 2827天前 作者 hanang128 2205 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

nutzWk 3.0 启动报错
错误日志如下:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer:nutzwk:war:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 316, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building NutzWk 2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) @ nutzwk >>>
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ nutzwk ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ nutzwk ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) @ nutzwk <<<
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ nutzwk ---
[INFO] Running war on http://localhost:8000/nutzwk
[INFO] Using existing Tomcat server configuration at D:\JAVA_OA\NutzWk\target\tomcat
[INFO] create webapp with contextPath: /nutzwk
七月 01, 2016 10:56:22 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8000"]
七月 01, 2016 10:56:22 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
七月 01, 2016 10:56:22 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
七月 01, 2016 10:56:27 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://shiro.apache.org/tags is already defined
七月 01, 2016 10:56:27 上午 org.apache.catalina.core.ApplicationContext log
信息: 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.
七月 01, 2016 10:56:27 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener
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.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

七月 01, 2016 10:56:27 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
七月 01, 2016 10:56:27 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzwk] startup failed due to previous errors
七月 01, 2016 10:56:27 上午 org.apache.catalina.core.ApplicationContext log
信息: Cleaning up Shiro Environment
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/nutzwk] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/nutzwk] registered the JDBC driver [com.alibaba.druid.mock.MockDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/nutzwk] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/nutzwk] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/nutzwk] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 01, 2016 10:56:27 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/nutzwk] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
七月 01, 2016 10:56:27 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8000"]
8 回复

打包成war启动的? 看上去没用包含资源目录下的文件

Eclipse里mvn tomcat7:run 运行的

试试这样

mvn jetty:run-exploded

[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.tomcat.maven, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (D:\Maven\repo), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

那就打包成war试试吧

@Wizzercn 补充一下部署说明嘛

mvn jetty:run-war 可以打包resources运行
jetty:run的话我把pom.xml中build resource 包含所有配置文件excludes exclude 改成 includes include 可以运行


src/main/resources

**/*

true

 <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>

@luspariott 可以在项目上发issue 这样更好fixed

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