NutzCN Logo
问答 项目启动报错404,报错内容如下
发布于 14天前 作者 qq_609b0389 98 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

七月 08, 2018 10:47:23 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:czxq_hj' did not find a matching property.
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.86
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Apr 9 2018 20:16:54 UTC
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.86.0
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 7
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.1
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jre1.8.0_171
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_171-b11
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\下载\apache-tomcat-7.0.86
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\下载\apache-tomcat-7.0.86
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\下载\apache-tomcat-7.0.86\endorsed
七月 08, 2018 10:47:23 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
七月 08, 2018 10:47:23 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_171\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_171/bin/server;C:/Program Files/Java/jre1.8.0_171/bin;C:/Program Files/Java/jre1.8.0_171/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\app\Administrator\product\11.2.0\dbhome_3\bin;D:\下载\Toad for Oracle 12.1;C:\Program Files\Java\jdk1.7.0_80\bin;C:\Program Files\Java\jdk1.7.0_80\jre\bin;D:\下载\eclipse;;.
七月 08, 2018 10:47:24 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
七月 08, 2018 10:47:24 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
七月 08, 2018 10:47:24 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1311 ms
七月 08, 2018 10:47:24 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
七月 08, 2018 10:47:24 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.86
七月 08, 2018 10:47:28 上午 org.apache.catalina.startup.TldConfig execute
信息: 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.
七月 08, 2018 10:47:28 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [589] milliseconds.
七月 08, 2018 10:47:33 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://velocity.apache.org/velocity-view is already defined
七月 08, 2018 10:47:33 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://velocity.apache.org/velocity-view is already defined
七月 08, 2018 10:47:34 上午 org.apache.catalina.startup.TldConfig execute
信息: 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.
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: $Id: GZIPFilter.java,v 1.15 2005/03/12 01:52:29 mike Exp $
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: GZIPFilter.Enabled: false
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: GZIPFilter.LogStats: false
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: $Id: CacheHeaderFilter.java,v 1.10 2005/03/12 01:52:28 mike Exp $
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: CacheFilter: true
七月 08, 2018 10:47:34 上午 org.apache.catalina.core.ApplicationContext log
信息: CacheFilter.ExpirationMinutes: -1
2018-07-08 10:47:34,142 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2018-07-08 10:47:34,609 [DEBUG][org.nutz.resource.Scans] - Locations for Scans:
[JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\resources.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jce.jar], JarResourceLocation [jarPath=D:\下载\apache-tomcat-7.0.86\bin\bootstrap.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\rt.jar], JarResourceLocation [jarPath=D:\下载\apache-tomcat-7.0.86\bin\tomcat-juli.jar], FileSystemResourceLocation [root=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\classes], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jfr.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\charsets.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jsse.jar], FileSystemResourceLocation [root=D:\下载\eclipse], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\nutz-1.r.57.r3.jar]]
2018-07-08 10:47:35,278 [DEBUG][org.nutz.resource.Scans] - Locations for Scans:
[JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\lucene-analyzers-3.6.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\ojdbc14.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\ueditor-1.1.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\ezmorph-1.0.6.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-beanutils-1.7.0.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\slf4j-log4j12-1.6.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\poi-3.2-FINAL-20081019.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\apache-solr-solrj-3.6.1.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jfr.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-lang-2.2.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\apache-solr-core-3.6.1.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jsse.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\quartz-2.2.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\velocity-tools-2.0.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\thumbnailator-0.4.8.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\druid-1.0.22.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-fileupload-1.2.2.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\jce.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-validator-1.3.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\json.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\velocity-1.7.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\rt.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\slf4j-api-1.6.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-io-2.4.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\log4j-1.2.17.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\nutz-1.r.57.r3.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-chain-1.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-codec-1.9.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\charsets.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\mysql-connector-java-5.1.14.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-logging-1.1.jar], JarResourceLocation [jarPath=D:\下载\apache-tomcat-7.0.86\bin\bootstrap.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\sigar-1.6.4.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\json-lib-2.4-jdk15.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\nutz-1.r.57.r3-sources.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\lucene-highlighter-3.6.1.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\tk-filters.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-collections-3.2.jar], FileSystemResourceLocation [root=D:\下载\eclipse], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\lucene-core-3.6.1.jar], JarResourceLocation [jarPath=D:\下载\apache-tomcat-7.0.86\bin\tomcat-juli.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\jxl.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\mailapi.jar], JarResourceLocation [jarPath=C:\Program Files\Java\jre1.8.0_171\lib\resources.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\velocity-tools-generic-2.0.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\gson-2.3.1.jar], FileSystemResourceLocation [root=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\classes], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\commons-digester-1.8.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\velocity-tools-view-2.0.jar], JarResourceLocation [jarPath=D:\Users\Administrator.XTM-01702051609\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\czxq_hj\WEB-INF\lib\sqljdbc4.jar]]
2018-07-08 10:47:35,309 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.r.57.r3
2018-07-08 10:47:35,310 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2018-07-08 10:47:35,364 [DEBUG][org.nutz.resource.Scans] - Found 3 resource by src( config ) , regex( ^(.+[.])(js|json)$ )
2018-07-08 10:47:35,371 [ERROR][org.nutz.mvc.impl.NutLoading] - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ioc.loader.json.JsonLoader'
by args: [
@(config)] becasue:
org.nutz.json.JsonException: Unexpect EOF
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.(ComboIocLoader.java:80)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
at org.nutz.mvc.ActionHandler.(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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4981)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5683)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
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: Unexpect EOF
at org.nutz.json.impl.JsonTokenScan.nextChar(JsonCompileImplV2.java:362)
at org.nutz.json.impl.JsonTokenScan.nextToken(JsonCompileImplV2.java:132)
at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:176)
at org.nutz.json.impl.JsonTokenScan.readObject(JsonCompileImplV2.java:233)
at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:188)
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:40)
at org.nutz.json.Json.fromJson(Json.java:130)
at org.nutz.ioc.loader.json.JsonLoader.loadFromReader(JsonLoader.java:62)
at org.nutz.ioc.loader.json.JsonLoader.(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
七月 08, 2018 10:47:35 上午 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)] becasue:
org.nutz.json.JsonException: Unexpect EOF
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:169)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:134)
at org.nutz.mvc.ActionHandler.(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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4981)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5683)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
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)] becasue:
org.nutz.json.JsonException: Unexpect EOF
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.(ComboIocLoader.java:80)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:383)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:102)
... 15 more
Caused by: org.nutz.json.JsonException: Unexpect EOF
at org.nutz.json.impl.JsonTokenScan.nextChar(JsonCompileImplV2.java:362)
at org.nutz.json.impl.JsonTokenScan.nextToken(JsonCompileImplV2.java:132)
at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:176)
at org.nutz.json.impl.JsonTokenScan.readObject(JsonCompileImplV2.java:233)
at org.nutz.json.impl.JsonTokenScan.readMap(JsonCompileImplV2.java:188)
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:40)
at org.nutz.json.Json.fromJson(Json.java:130)
at org.nutz.ioc.loader.json.JsonLoader.loadFromReader(JsonLoader.java:62)
at org.nutz.ioc.loader.json.JsonLoader.(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

七月 08, 2018 10:47:35 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
七月 08, 2018 10:47:35 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/czxq_hj] startup failed due to previous errors
七月 08, 2018 10:47:35 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
七月 08, 2018 10:47:35 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
七月 08, 2018 10:47:35 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 11097 ms

8 回复

config目录里面有格式非法的json/js文件

var ioc = {
dataSource:{
type:"com.alibaba.druid.pool.DruidDataSource",
events:{
depose:"close"
},
fields:{
url:"jdbc:oracle:thin:@localhost:1521:orcl",
username:"szrx_cztc",
password:"pass",
initialSize: 2,
maxActive:20,
testWhileIdle:true,
validationQuery:'SELECT COUNT(*) FROM SYS_DBTEST',
removeAbandoned:true ,
removeAbandonedTimeout:18000,
filters:"stat",
defaultAutoCommit : false // 鎻愰珮fastInsert鐨勬�鑳� }
},
dao : {
type : "org.nutz.dao.impl.NutDao",
args : [{refer:'dataSource'}]
},
dataSource2:{
type:"com.alibaba.druid.pool.DruidDataSource",
events:{
depose:"close"
},
fields:{
url:"jdbc:oracle:thin:@36.111.195.5:1521:orcl",
username:"szrx_czfy",
password:"pass",
initialSize: 2,
maxActive:20,
testWhileIdle:true,
validationQuery:'SELECT COUNT(*) FROM SYS_DBTEST',
removeAbandoned:true ,
removeAbandonedTimeout:18000,
filters:"stat",
maxWait: 15000, // 鑻ヤ笉閰嶇疆姝ら」,濡傛灉鏁版嵁搴撴湭鍚姩,druid浼氫竴鐩寸瓑鍙敤杩炴帴,鍗′綇鍚姩杩囩▼,
defaultAutoCommit : false // 鎻愰珮fastInsert鐨勬�鑳� }
},
ctiDao : {
type : "org.nutz.dao.impl.NutDao",
args : [{refer:'dataSource2'}]
}
}

没看到 插入代码 按钮?

var ioc = {
	dataSource:{
		type:"com.alibaba.druid.pool.DruidDataSource",
		events:{
			depose:"close"
		},
		fields:{
			url:"jdbc:oracle:thin:@localhost:1521:orcl",
			username:"szrx_cztc",
			password:"pass",
			initialSize: 2,
			maxActive:20,  
			testWhileIdle:true,
			validationQuery:'SELECT COUNT(*) FROM SYS_DBTEST',
			removeAbandoned:true ,
			removeAbandonedTimeout:18000,
			filters:"stat",
			defaultAutoCommit : false // 鎻愰珮fastInsert鐨勬�鑳�		}
	},
	dao : {
		type : "org.nutz.dao.impl.NutDao",
		args : [{refer:'dataSource'}]
	},
	dataSource2:{
		type:"com.alibaba.druid.pool.DruidDataSource",
		events:{
			depose:"close"
		},
		fields:{
			url:"jdbc:oracle:thin:@36.111.195.5:1521:orcl",
			username:"szrx_czfy",
			password:"pass",
			initialSize: 2,
			maxActive:20,  
			testWhileIdle:true,
			validationQuery:'SELECT COUNT(*) FROM SYS_DBTEST',
			removeAbandoned:true ,
			removeAbandonedTimeout:18000,
			filters:"stat",
			maxWait: 15000, // 鑻ヤ笉閰嶇疆姝ら」,濡傛灉鏁版嵁搴撴湭鍚姩,druid浼氫竴鐩寸瓑鍙敤杩炴帴,鍗′綇鍚姩杩囩▼,
			defaultAutoCommit : false // 鎻愰珮fastInsert鐨勬�鑳�		}
	},
	ctiDao : {
		type : "org.nutz.dao.impl.NutDao",
		args : [{refer:'dataSource2'}]
	}
}

项目编码没设置好? 做了什么修改之后报这个的

项目编码是utf-8,内容没修改,项目导入之后就直接运行的

项目导入?这编码明显不是utf8,导致下面这行后面的括号被吃掉了

defaultAutoCommit : false // 鎻愰珮fastInsert鐨勬�鑳�		},

可以了,谢了

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