我的原始需求是:部署 eova-eova-V1.6-beta4 使用自带的 Maven-Windows-Run-Eova.bat 启动。
实现过程中遇到的问题:启动报错,具体错误信息如下:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building eova 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ eova-oss ---
[INFO] Deleting D:\Dev_code\eova\eova\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ eova-oss ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ eova-oss ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 25 source files to D:\Dev_code\eova\eova\target\classes
[WARNING] 未与 -source 1.7 一起设置引导类路径
[WARNING] 来自注释处理程序 'org.antlr.v4.runtime.misc.NullUsageProcessor' 的受支持 source 版本 'RELEASE_6' 低于 -source '1.7'
[INFO]
[INFO] >>> jetty-maven-plugin:8.1.8.v20121106:start (default-cli) > validate @ eova-oss >>>
[INFO]
[INFO] <<< jetty-maven-plugin:8.1.8.v20121106:start (default-cli) < validate @ eova-oss <<<
[INFO]
[INFO] --- jetty-maven-plugin:8.1.8.v20121106:start (default-cli) @ eova-oss ---
[INFO] Configuring Jetty for project: eova
[INFO] webAppSourceDirectory not set. Defaulting to D:\Dev_code\eova\eova\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\Dev_code\eova\eova\target\classes
[INFO] Context path = /
[INFO] Tmp directory = D:\Dev_code\eova\eova\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/D:/Dev_code/eova/eova/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = D:\Dev_code\eova\eova\src\main\webapp
2018-03-08 20:42:07.724:INFO:oejs.Server:jetty-8.1.8.v20121106
2018-03-08 20:42:08.646:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2018-03-08 20:42:10.777:WARN:oeja.AnnotationParser:Problem processing jar entry sun/applet/AppletPanel.class
java.lang.ArrayIndexOutOfBoundsException: 30305
at org.objectweb.asm.ClassReader.readClass(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:888)
at org.eclipse.jetty.annotations.AnnotationParser$2.processEntry(AnnotationParser.java:846)
at org.eclipse.jetty.webapp.JarScanner.matched(JarScanner.java:161)
at org.eclipse.jetty.util.PatternMatcher.matchPatterns(PatternMatcher.java:100)
at org.eclipse.jetty.util.PatternMatcher.match(PatternMatcher.java:82)
at org.eclipse.jetty.webapp.JarScanner.scan(JarScanner.java:84)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:858)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:873)
at org.eclipse.jetty.annotations.AnnotationConfiguration.parseWebInfLib(AnnotationConfiguration.java:412)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:114)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:466)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1245)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:277)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
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:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Null identity service, trying login service: null
Finding identity service: null
2018-03-08 20:42:12.164:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/D:/Dev_code/eova/eova/src/main/webapp/},file:/D:/Dev_code/eova/eova/src/main/webapp/
2018-03-08 20:42:12.166:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/D:/Dev_code/eova/eova/src/main/webapp/},file:/D:/Dev_code/eova/eova/src/main/webapp/
2018-03-08 20:42:12.167:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/D:/Dev_code/eova/eova/src/main/webapp/},file:/D:/Dev_code/eova/eova/src/main/webapp/
Config Constants Starting...
03-08 20:42:12[INFO]app.config
03-08 20:42:12[INFO]domain.config
03-08 20:42:12[INFO]eova.config
03-08 20:42:12[INFO]jdbc.config
03-08 20:42:12[INFO]默认配置加载成功:(resources/default)
Load Page Const Starting:
Config Plugins Starting...
03-08 20:42:12[INFO]load data source:jdbc:mysql://127.0.0.1:3306/eova?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull > root
03-08 20:42:12[INFO]load data source:jdbc:mysql://127.0.0.1:3306/demo?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull > root
03-08 20:42:13[INFO]{dataSource-1} inited
03-08 20:42:14[INFO]{dataSource-2} inited
Sql: select * from eova_task
03-08 20:42:14[INFO]com.oss.job.EveryMinJob.com.oss.job.EveryMinJob loading and exp: 0 0/1 * * * ?
03-08 20:42:14[INFO]com.oss.job.EveryHourJob.com.oss.job.EveryHourJob loading and exp: 0 0 0/1 * * ?
03-08 20:42:14[INFO]com.oss.job.EveryDayJob.com.oss.job.EveryDayJob loading and exp: 59 59 23 * * ?
Config Routes Starting...
Config Interceptors Starting...
Config Handlers Starting...
JFinal Started
Load Cost Time:2137ms
Sql: select value from eova_dict where object = ? and field = ?
2018-03-08 20:42:14.534:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:80
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 5 seconds.
我觉得这个问题的原因是:不清楚啊!