NutzCN Logo
问答 Rk_Cms没跑起来,是配置错误还是缺少文件了?
发布于 2748天前 作者 JunL 1835 次浏览 复制 上一个帖子 下一个帖子
标签:

MySql已经建好数据库, 只修改了db登录密码.下面是日志片段

2017-05-15 17:40:32,862 [INFO][org.apache.shiro.web.env.EnvironmentLoader] - Starting Shiro environment initialization.
2017-05-15 17:40:33,053 [INFO][org.apache.shiro.config.IniSecurityManagerFactory] - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.
2017-05-15 17:40:33,056 [INFO][org.apache.shiro.web.env.EnvironmentLoader] - Shiro environment initialized in 193 ms.
2017-05-15 17:40:33,090 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2017-05-15 17:40:33,439 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.r.59 
2017-05-15 17:40:33,439 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2017-05-15 17:40:33,499 [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: [
  @(com/rekoe/mvc/view)
  @(/ioc)] because:
org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char 'A'], reason: 'Unexpect String = AbstractCaptchaEngine.class
GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class
'
	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:4958)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1863)
	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:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
	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:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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:498)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
Caused by: org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char 'A'], reason: 'Unexpect String = AbstractCaptchaEngine.class
GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class
'
	at org.nutz.json.impl.JsonTokenScan.readObject(JsonCompileImplV2.java:297)
	at org.nutz.json.impl.JsonTokenScan.read(JsonCompileImplV2.java:354)
	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.<init>(JsonLoader.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
	... 58 more
15 回复

搜索js及json文件,看看哪个文件里面有GMailEngine.class字样

captcha.js

var ioc = {
	fastHashMapCaptchaStore : {
		type : "com.octo.captcha.service.captchastore.FastHashMapCaptchaStore"
	},
	mailEngine : {
		type : "com.rekoe.mvc.view.GMailEngine",
		args : [ "com/rekoe/cms/captcha" ]
	},
	imageCaptchaService : {
		type : "com.octo.captcha.service.image.DefaultManageableImageCaptchaService",
		args : [ {
			refer : "fastHashMapCaptchaStore"
		}, {
			refer : "mailEngine"
		}, 180, 100000, 75000 ]
	}
};

找到了一个, 然后我查看了下这个com.rekoe.mvc.view.GMailEngine路径下面的文件, AbstractCaptchaEngine.class, GMailEngine.class, JPEGView.class, JPEGViewMaker.class, JspSupportServlet.class. 这5个文件是有的.

是这个字符串

GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class

有个js或者json文件里面有上述字符串,导致加载出错,很奇怪

把日志设置为DEBUG看看

@wendal

五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.77
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Mar 28 2017 16:01:48 UTC
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.77.0
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Mac OS X
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.12.4
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          x86_64
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_131-b11
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         /Users/hrfangfang/Library/Caches/IntelliJIdea2016.3/tomcat/Unnamed_rk_cms
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         /Users/hrfangfang/Library/Tomcat7
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=/Users/hrfangfang/Library/Caches/IntelliJIdea2016.3/tomcat/Unnamed_rk_cms/conf/logging.properties
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50663,suspend=y,server=n
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=/Users/hrfangfang/Library/Tomcat7/endorsed
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=/Users/hrfangfang/Library/Caches/IntelliJIdea2016.3/tomcat/Unnamed_rk_cms
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/Users/hrfangfang/Library/Tomcat7
五月 15, 2017 6:56:42 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=/Users/hrfangfang/Library/Tomcat7/temp
五月 15, 2017 6:56:42 下午 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: /Users/hrfangfang/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
五月 15, 2017 6:56:43 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
五月 15, 2017 6:56:43 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
五月 15, 2017 6:56:43 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 415 ms
五月 15, 2017 6:56:43 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
五月 15, 2017 6:56:43 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.77
五月 15, 2017 6:56:43 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
五月 15, 2017 6:56:43 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
五月 15, 2017 6:56:43 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 45 ms
Connected to server
[2017-05-15 06:56:43,495] Artifact rk_cms:war exploded: Artifact is being deployed, please wait...
五月 15, 2017 6:56:43 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(/Users/hrfangfang/IdeaProjects/Rk_Cms-master/target/rk_cms/WEB-INF/lib/javax.servlet-3.0.0.v201112011016.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
五月 15, 2017 6:56:44 下午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://shiro.apache.org/tags is already defined
五月 15, 2017 6:56:44 下午 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.
log4j:ERROR Could not find value for key log4j.appender.Console
log4j:ERROR Could not instantiate appender named "Console".
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.
2017-05-15 18:56:44,861 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2017-05-15 18:56:45,212 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.r.59 
2017-05-15 18:56:45,212 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2017-05-15 18:56:45,270 [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: [
  @(com/rekoe/mvc/view)
  @(/ioc)] because:
org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char 'A'], reason: 'Unexpect String = AbstractCaptchaEngine.class
GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class
'
	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:4958)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1863)
	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:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
	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:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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:498)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
Caused by: org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char 'A'], reason: 'Unexpect String = AbstractCaptchaEngine.class
GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class
'
	at org.nutz.json.impl.JsonTokenScan.readObject(JsonCompileImplV2.java:297)
	at org.nutz.json.impl.JsonTokenScan.read(JsonCompileImplV2.java:354)
	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.<init>(JsonLoader.java:49)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
	... 58 more
五月 15, 2017 6:56:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
五月 15, 2017 6:56:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
[2017-05-15 06:56:45,297] Artifact rk_cms:war exploded: Error during artifact deployment. See server log for details.
五月 15, 2017 6:56:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /Users/hrfangfang/Library/Tomcat7/webapps/manager
五月 15, 2017 6:56:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /Users/hrfangfang/Library/Tomcat7/webapps/manager has finished in 116 ms

话说, 你干脆把项目删了,重新下, 不改数据库密码,看看报啥

我总觉得你把其他东西给改了...

@wendal 还是那个字符串, 奇怪

reason: 'Unexpect String = AbstractCaptchaEngine.class
GMailEngine.class
JPEGView.class
JPEGViewMaker.class
JspSupportServlet.class

重现了, 待我查查哦

本人也遇到了这个问题。
解决方法如下,供参考。
Rk_Cms-master\src\main\java\com\rekoe\mvc\view\captcha.js文件位于src目录,默认不会编译进war包。
因此maven中要设置包含.js文件进jar包。

修改前配置:

org.apache.maven.plugins
maven-war-plugin
2.3

true
WEB-INF/web.xml
game.html



src/main/resources
WEB-INF/classes

**





修改后配置:

org.apache.maven.plugins
maven-war-plugin
2.3

true
WEB-INF/web.xml
game.html



src/main/resources
WEB-INF/classes

**



src/main/java
WEB-INF/classes

**/*.js





@wendal github建议受控,我就不提pr了。

//修改前配置
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.3</version>
				<configuration>
					<archiveClasses>true</archiveClasses>
					<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
					<warSourceExcludes>game.html</warSourceExcludes>
					<!--<warSourceExcludes>WEB-INF/classes/com/**</warSourceExcludes>-->
					<webResources>
						<resource>
							<directory>src/main/resources</directory>
							<targetPath>WEB-INF/classes</targetPath>
							<includes>
								<include>**</include>
							</includes>
						</resource>
					</webResources>
				</configuration>
			</plugin>
//修改后配置:
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.3</version>
				<configuration>
					<archiveClasses>true</archiveClasses>
					<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
					<warSourceExcludes>game.html</warSourceExcludes>
					<!--<warSourceExcludes>WEB-INF/classes/com/**</warSourceExcludes>-->
					<webResources>
						<resource>
							<directory>src/main/resources</directory>
							<targetPath>WEB-INF/classes</targetPath>
							<includes>
								<include>**</include>
							</includes>
						</resource>
						<resource>
							<directory>src/main/java</directory>
							<targetPath>WEB-INF/classes</targetPath>
							<includes>
								<include>**/*.js</include>
							</includes>
						</resource>
					</webResources>
				</configuration>
			</plugin>
添加回复
请先登陆
回到顶部