NutzCN Logo
问答 Unable to instantiate class [cn.wizzer.common.shiro.realm.NutDaoRealm] for object named 'shiroDbReal
发布于 2592天前 作者 qq_54236a6e 3834 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

Unable to instantiate class [cn.wizzer.common.shiro.realm.NutDaoRealm] for object named 'shiroDbReal

6 回复

然后??? 一般是编译没搞定

这个咋决绝啊,大神

[INFO] Scanning for projects...
[WARNING] [WARNING] Some problems were encountered while building the effective model for com.bing.yi:distribution:war:3.3.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 392, column 12
[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 pay 3.3.0
[INFO] ------------------------------------------------------------------------
[INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ distribution ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ distribution ---
[INFO] Compiling 110 source files to D:\Users\ZHOU\distribution-pay\target\classes
[INFO] /D:/Users/ZHOU/distribution-pay/src/main/java/cn/wizzer/common/services/redis/RedisService.java: 某些输入文件使用或覆盖了已过时的 API。
[INFO] /D:/Users/ZHOU/distribution-pay/src/main/java/cn/wizzer/common/services/redis/RedisService.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[INFO] /D:/Users/ZHOU/distribution-pay/src/main/java/cn/wizzer/modules/controllers/platform/user/manage/UserManageController.java: 某些输入文件使用了未经检查或不安全的操作。
[INFO] /D:/Users/ZHOU/distribution-pay/src/main/java/cn/wizzer/modules/controllers/platform/user/manage/UserManageController.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ distribution ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Users\ZHOU\distribution-pay\src\test\resources
[INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ distribution ---
[INFO] Nothing to compile - all classes are up to date
[INFO] [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ distribution ---

-------------------------------------------------------

T E S T S

Running cn.wizzer.modules.SimpleTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.199 sec <<< FAILURE! - in cn.wizzer.modules.SimpleTest
cn.wizzer.modules.SimpleTest Time elapsed: 0.198 sec <<< ERROR!
java.lang.NoClassDefFoundError: cn/wizzer/common/core/Module
Caused by: java.lang.ClassNotFoundException: cn.wizzer.common.core.Module

Results :

Tests in error:
SimpleTest.cn.wizzer.modules.SimpleTest » NoClassDefFound cn/wizzer/common/cor...

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.266 s
[INFO] Finished at: 2017-02-22T16:35:03+08:00
[INFO] Final Memory: 33M/270M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project distribution: There are test failures.
[ERROR] [ERROR] Please refer to D:\Users\ZHOU\distribution-pay\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

嗷嗷嗷,你应该看看nutzwk的文档

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