NutzCN Logo
问答 nutzwk用tomcat启动报错Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
发布于 2536天前 作者 bendan 2921 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
十二月 06, 2017 3:19:18 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:wk-web' did not find a matching property.
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.43
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Mar 28 2017 14:42:59 UTC
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.43.0
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 10
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.0
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\Program Files\Java\jre1.8.0_151
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_151-b12
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\Program Files (x86)\work\apache-tomcat-8.0.43
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\Program Files (x86)\work\apache-tomcat-8.0.43
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files (x86)\work\apache-tomcat-8.0.43
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files (x86)\work\apache-tomcat-8.0.43
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files (x86)\work\apache-tomcat-8.0.43\endorsed
十二月 06, 2017 3:19:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
十二月 06, 2017 3:19:18 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.
十二月 06, 2017 3:19:18 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
十二月 06, 2017 3:19:19 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2k  26 Jan 2017)
十二月 06, 2017 3:19:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8899"]
十二月 06, 2017 3:19:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8008"]
十二月 06, 2017 3:19:19 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2048 ms
十二月 06, 2017 3:19:19 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 06, 2017 3:19:19 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.43
十二月 06, 2017 3:19:23 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
十二月 06, 2017 3:19:24 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Shiro environment
2017-12-06 15:19:24,160 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [shiro.ini]
2017-12-06 15:19:24,174 org.apache.shiro.config.Ini.load(Ini.java:342) DEBUG - Parsing [main]
2017-12-06 15:19:24,181 org.apache.shiro.config.Ini.load(Ini.java:342) DEBUG - Parsing [urls]
2017-12-06 15:19:24,188 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=main,urls]
2017-12-06 15:19:25,447 org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:138) INFO  - An instance with name 'authc' already exists.  Redefining this object as a new instance of type cn.wizzer.app.web.commons.shiro.filter.PlatformAuthenticationFilter
2017-12-06 15:19:25,623 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$cacheManager'.  Looking up object with id 'cacheManager'
2017-12-06 15:19:25,650 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$sessionDAO'.  Looking up object with id 'sessionDAO'
2017-12-06 15:19:25,692 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$sessionManager'.  Looking up object with id 'sessionManager'
2017-12-06 15:19:25,700 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$sessionIdCookie'.  Looking up object with id 'sessionIdCookie'
2017-12-06 15:19:25,719 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$rememberMeCookie'.  Looking up object with id 'rememberMeCookie'
2017-12-06 15:19:25,775 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$sha256Matcher'.  Looking up object with id 'sha256Matcher'
2017-12-06 15:19:25,775 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$shiroDbRealm'.  Looking up object with id 'shiroDbRealm'
2017-12-06 15:19:25,776 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$shiroDbRealm'.  Looking up object with id 'shiroDbRealm'
2017-12-06 15:19:25,788 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$authcStrategy'.  Looking up object with id 'authcStrategy'
2017-12-06 15:19:25,789 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$cacheManager'.  Looking up object with id 'cacheManager'
2017-12-06 15:19:25,789 org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:234) DEBUG - No authorizationCache instance set.  Checking for a cacheManager...
2017-12-06 15:19:25,792 org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:242) DEBUG - CacheManager [org.apache.shiro.cache.ehcache.EhCacheManager@240e804a] has been configured.  Building authorization cache named [shiroDbRealm.authorizationCache]
2017-12-06 15:19:25,818 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [ehcache.xml]
2017-12-06 15:19:26,783 org.apache.shiro.config.ReflectionBuilder.resolveReference(ReflectionBuilder.java:238) DEBUG - Encountered object reference '$rememberMeManager'.  Looking up object with id 'rememberMeManager'
2017-12-06 15:19:26,837 org.apache.shiro.config.IniSecurityManagerFactory.isAutoApplyRealms(IniSecurityManagerFactory.java:112) INFO  - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.
2017-12-06 15:19:26,841 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:122) DEBUG - Creating instance from Ini [sections=main,urls]
2017-12-06 15:19:26,876 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[nutz] starting ...
2017-12-06 15:19:27,009 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) INFO  - [loc=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes]not exist
2017-12-06 15:19:27,015 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) INFO  - [loc=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes]not exist
2017-12-06 15:19:27,021 org.nutz.resource.Scans.<init>(Scans.java:509) DEBUG - Locations for Scans:
[Dir[path=D:\Program Files (x86)\work\eclipse\eclipse], Jar[path=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-1.r.60.jar], ErrorResourceLocation [loc=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes], Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\bootstrap.jar], Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\tomcat-juli.jar]]
2017-12-06 15:19:27,863 org.nutz.resource.Scans.init(Scans.java:105) DEBUG - Locations for Scans:
{D:\Program Files (x86)\work\eclipse\eclipse=Dir[path=D:\Program Files (x86)\work\eclipse\eclipse], D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-1.r.60.jar], D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes=ErrorResourceLocation [loc=D:\Program%20Files%20(x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes], D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\bootstrap.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\bootstrap.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\tomcat-juli.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\bin\tomcat-juli.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes=Dir[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\classes], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\beetl-2.5.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\beetl-2.5.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-email-1.4.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-email-1.4.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jcommander-1.48.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jcommander-1.48.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\json-lib-2.4-jdk15.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\json-lib-2.4-jdk15.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-sfntly-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-sfntly-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-lang3-3.4.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-lang3-3.4.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\core-3.2.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\core-3.2.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-web-1.2.5.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-web-1.2.5.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-integration-quartz-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-integration-quartz-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-views-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-views-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\simplecaptcha-1.2.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\simplecaptcha-1.2.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\c3p0-0.9.1.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\c3p0-0.9.1.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-lang-2.6.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-lang-2.6.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\socialauth-4.12.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\socialauth-4.12.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-databind-2.8.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-databind-2.8.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-core-1.2.5.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-core-1.2.5.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-ehcache-1.3.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\shiro-ehcache-1.3.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-beanutils-core-1.8.3.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-beanutils-core-1.8.3.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-annotations-2.8.0.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-annotations-2.8.0.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\emoji-java-3.1.3.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\emoji-java-3.1.3.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\quartz-2.2.3.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\quartz-2.2.3.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\slf4j-log4j12-1.7.21.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\slf4j-log4j12-1.7.21.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-logging-1.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-logging-1.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-core-2.8.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jackson-core-2.8.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\ehcache-2.10.3.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\ehcache-2.10.3.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jtds-1.3.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jtds-1.3.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\activation-1.1.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\activation-1.1.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\antlr4-runtime-4.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\antlr4-runtime-4.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\org.abego.treelayout.core-1.0.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\org.abego.treelayout.core-1.0.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\servlet-api-2.3.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\servlet-api-2.3.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-daocache-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutz-plugins-daocache-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\icu4j-4.8.1.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\icu4j-4.8.1.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\ezmorph-1.0.6.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\ezmorph-1.0.6.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-collections-3.2.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-collections-3.2.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\javax.mail-1.5.5.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\javax.mail-1.5.5.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\mysql-connector-java-5.1.39.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\mysql-connector-java-5.1.39.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jedis-2.9.0.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jedis-2.9.0.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\slf4j-api-1.7.21.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\slf4j-api-1.7.21.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\javase-3.2.1.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\javase-3.2.1.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\json-20160212.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\json-20160212.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutzwx-1.r.60.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\nutzwx-1.r.60.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\wk-framework-4.0.1-SNAPSHOT.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\wk-framework-4.0.1-SNAPSHOT.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\antlr4-annotations-4.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\antlr4-annotations-4.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-pool2-2.4.2.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-pool2-2.4.2.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\log4j-1.2.17.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jjwt-0.6.0.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\jjwt-0.6.0.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\druid-1.0.28.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\druid-1.0.28.jar], D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-beanutils-1.8.0.jar=Jar[path=D:\Program Files (x86)\work\apache-tomcat-8.0.43\wtpwebapps\wk-web\WEB-INF\lib\commons-beanutils-1.8.0.jar]}
2017-12-06 15:19:28,076 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2017-12-06 15:19:28,126 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-12-06 15:19:28,131 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.60 
2017-12-06 15:19:28,131 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-12-06 15:19:28,131 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-12-06 15:19:28,133 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2017-12-06 15:19:28,133 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : D:\Program Files (x86)\work\eclipse\eclipse\.
2017-12-06 15:19:28,133 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_151
2017-12-06 15:19:28,134 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-12-06 15:19:28,134 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-12-06 15:19:28,134 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 10 amd64
2017-12-06 15:19:28,134 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.0.43
2017-12-06 15:19:28,134 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2017-12-06 15:19:28,135 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : /nutzwk-ql
2017-12-06 15:19:28,135 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : D:\Program Files (x86)\work\apache-tomcat-8.0.43\work\Catalina\localhost\nutzwk-ql
2017-12-06 15:19:28,135 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : cn.wizzer.app.web.commons.core.Module
2017-12-06 15:19:28,138 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) DEBUG - >> app.root = D:/Program Files (x86)/work/apache-tomcat-8.0.43/wtpwebapps/wk-web
2017-12-06 15:19:28,141 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*json", "config/ioc/", "*anno", "cn.wizzer", "*tx", "*quartz", "*async"],init=[])
2017-12-06 15:19:28,208 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 5 resource by src( config/ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-12-06 15:19:28,214 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [dao.json]
2017-12-06 15:19:28,224 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
 by args: [
  @(config/ioc/)] because:
org.nutz.json.JsonException: !Json syntax error nearby [row:2,col:37 char ','], reason: 'Unexpect Char'
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:21)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:126)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:80)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:384)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.json.JsonException: !Json syntax error nearby [row:2,col:37 char ','], reason: 'Unexpect Char'
	at org.nutz.json.impl.JsonTokenScan.unexpectChar(JsonCompileImplV2.java:433)
	at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:186)
	at org.nutz.json.impl.JsonTokenScan.read(JsonCompileImplV2.java:335)
	at org.nutz.json.impl.JsonCompileImplV2.parse(JsonCompileImplV2.java:26)
	at org.nutz.json.Json.fromJson(Json.java:42)
	at org.nutz.json.Json.fromJson(Json.java:144)
	at org.nutz.ioc.loader.json.JsonLoader.loadFromReader(JsonLoader.java:62)
	at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
	... 22 more
十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
 by args: [
  @(config/ioc/)] because:
org.nutz.json.JsonException: !Json syntax error nearby [row:2,col:37 char ','], reason: 'Unexpect Char'
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:197)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
 by args: [
  @(config/ioc/)] because:
org.nutz.json.JsonException: !Json syntax error nearby [row:2,col:37 char ','], reason: 'Unexpect Char'
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:21)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:126)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:80)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:384)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
	... 15 more
Caused by: org.nutz.json.JsonException: !Json syntax error nearby [row:2,col:37 char ','], reason: 'Unexpect Char'
	at org.nutz.json.impl.JsonTokenScan.unexpectChar(JsonCompileImplV2.java:433)
	at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:186)
	at org.nutz.json.impl.JsonTokenScan.read(JsonCompileImplV2.java:335)
	at org.nutz.json.impl.JsonCompileImplV2.parse(JsonCompileImplV2.java:26)
	at org.nutz.json.Json.fromJson(Json.java:42)
	at org.nutz.json.Json.fromJson(Json.java:144)
	at org.nutz.ioc.loader.json.JsonLoader.loadFromReader(JsonLoader.java:62)
	at org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
	... 22 more

十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/nutzwk-ql] startup failed due to previous errors
十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.ApplicationContext log
信息: Cleaning up Shiro Environment
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\docs
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\docs has finished in 83 ms
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\examples
十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十二月 06, 2017 3:19:28 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\examples has finished in 489 ms
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\host-manager
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\host-manager has finished in 41 ms
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\manager
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\manager has finished in 53 ms
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\ROOT
十二月 06, 2017 3:19:28 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files (x86)\work\apache-tomcat-8.0.43\webapps\ROOT has finished in 28 ms
十二月 06, 2017 3:19:28 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8899"]
十二月 06, 2017 3:19:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8008"]
十二月 06, 2017 3:19:29 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 9184 ms

14 回复

几个json文件报错:Expected value at 1:0。
但是那几个配置文件我都几乎没改过
这是其中一个:
var ioc={
"org.apache.commons.mail.DefaultAuthenticator",[
{
"$conf.get('mail.UserName')"
},
{
"$conf.get('mail.Password')"
}
]
},
htmlEmail : {
type : "org.apache.commons.mail.ImageHtmlEmail",
singleton : false,
fields : {
hostName : {java:"$conf.get('mail.HostName')"},
smtpPort : {java:"$conf.get('mail.SmtpPort')"},
authenticator : {refer:"emailAuthenticator"},
SSLOnConnect : {java:"$conf.get('mail.SSLOnConnect')"},
from : {java:"$conf.get('mail.From')"}
}
}
};

2017-12-06 15:19:28,214 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [dao.json]

贴dao.js

确定没改动过任何文件?

别人电脑上都可以,跑我这里就挂了。。。

var ioc = {
	"org.nutz.ioc.impl.PropertiesProxy",{
		"config/custom/"]
	}
},
	    dataSource : {
			factory : "$conf#make",
			args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
	        type : "com.alibaba.druid.pool.DruidDataSource",
	        events : {
	        	create : "init",
	            depose : 'close'
	        }
	    },
		dao : {
			type : "org.nutz.dao.impl.NutDao",
			args : [{refer:"dataSource"}],
			fields : {
				executor : {refer:"cacheExecutor"}
			}
		},
		cacheExecutor : {
			type : "org.nutz.plugins.cache.dao.CachedNutDaoExecutor",
			fields : {
				cacheProvider : {refer:"cacheProvider"},
				cachedTableNames : ["sys_user", "sys_role", "sys_menu"]//缓存数据库表
			}
		},
		/*
		// 基于内存的简单LRU实现
		cacheProvider : {
			type : "org.nutz.plugins.cache.dao.impl.provider.MemoryDaoCacheProvider",
			fields : {
				cacheSize : 10000 // 缓存的对象数
			},
			events : {
				create : "init"
			}
		}
		*/
		// 基于Ehcache的DaoCacheProvider
		cacheProvider : {
			type : "org.nutz.plugins.cache.dao.impl.provider.EhcacheDaoCacheProvider",
			fields : {
				cacheManager : {refer:"cacheManager"} // 引用ehcache.json中定义的CacheManager
			},
			events : {
				create : "init"
			}
		}
};

你改过

var ioc = {
	"org.nutz.ioc.impl.PropertiesProxy",{  // 这里少了很多东西
		"config/custom/"]
	}
},
别人机子上能跑,我电脑上就不行了,这个是别人给我的

不管是谁给你的, 这个配置缺了几行

正常应该是这样

var ioc = {
		conf : {
			type : "org.nutz.ioc.impl.PropertiesProxy",
			fields : {
				paths : ["config/custom/"]
			}
		},

哎,那我去问问他们,谢啦

把第二行补上,应该就能跑

哦,不对, 完全乱套了...

只是我这里不能跑,别人那里就行,也不报错,是同一个文件啊,什么都是一样的,整个项目都是一样的

亏大了亏大了,又能跑了。。。。

我找到原因了,是我给json文件编码的问题,之前是GBK,我给它编成utf-8了。。。。。

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