实在没有找到是什么问题,请大神指点一下,
POM.XML 文件如下
xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0modelVersion>
<groupId>org.b3loggroupId>
<artifactId>symphonyartifactId>
<packaging>warpackaging>
<version>2.0.0version>
<name>Symphonyname>
<url>https://github.com/b3log/symphonyurl>
<description>
Sym Community: https://hacpai.com/about
description>
<inceptionYear>2012inceptionYear>
<properties>
<latke.version>2.3.8latke.version>
<servlet.version>3.1.0servlet.version>
<jetty.version>9.2.7.v20150116jetty.version>
<slf4j.version>1.7.7slf4j.version>
<mysql-connector-java.version>5.1.18mysql-connector-java.version>
<jsoup.version>1.10.1jsoup.version>
<pegdown.version>1.6.0pegdown.version>
<qiniu.version>7.0.4.1qiniu.version>
<jodd.version>3.6.6jodd.version>
<emoji-java.version>3.2.0emoji-java.version>
<user-agent-utils.version>1.20user-agent-utils.version>
<commons-codec.version>1.10commons-codec.version>
<maven-compiler-plugin.version>3.3maven-compiler-plugin.version>
<maven-resources-plugin.version>2.7maven-resources-plugin.version>
<maven-surefire-plugin.version>2.18.1maven-surefire-plugin.version>
<maven-license-plugin.version>1.9.0maven-license-plugin.version>
<testng.version>6.1.1testng.version>
<project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
properties>
<organization>
<name>B3logname>
<url>http://b3log.orgurl>
organization>
<licenses>
<license>
<name>GNU GENERAL PUBLIC LICENSEname>
<url>https://www.gnu.org/licenses/gpl.txturl>
license>
licenses>
<developers>
<developer>
<id>DL88250@gmail.comid>
<name>Liang Dingname>
<email>DL88250@gmail.comemail>
<url>http://88250.b3log.orgurl>
<roles>
<role>Leadrole>
<role>Initial Committerrole>
roles>
<organization>B3logorganization>
<organizationUrl>http://b3log.orgorganizationUrl>
<timezone>+8timezone>
developer>
<developer>
<id>LLY219@gmail.comid>
<name>Liyuan Liname>
<email>LLY219@gmail.comemail>
<url>http://vanessa.b3log.orgurl>
<roles>
<role>Committerrole>
roles>
<organization>B3logorganization>
<organizationUrl>http://b3log.orgorganizationUrl>
<timezone>+8timezone>
developer>
<developer>
<id>wmainlove@gmail.comid>
<name>Liceng Yaoname>
<email>wmainlove@gmail.comemail>
<url>http://love.b3log.orgurl>
<roles>
<role>Committerrole>
roles>
<organization>B3logorganization>
<organizationUrl>http://b3log.orgorganizationUrl>
<timezone>+8timezone>
developer>
developers>
<issueManagement>
<system>GitHub Issuessystem>
<url>https://github.com/b3log/symphony/issuesurl>
issueManagement>
<scm>
<url>https://github.com/b3log/symphonyurl>
scm>
<dependencies>
<dependency>
<groupId>org.slf4jgroupId>
<artifactId>slf4j-log4j12artifactId>
<version>${slf4j.version}version>
dependency>
<dependency>
<groupId>org.b3loggroupId>
<artifactId>latkeartifactId>
<version>${latke.version}version>
<exclusions>
<exclusion>
<groupId>com.h2databasegroupId>
<artifactId>h2artifactId>
exclusion>
<exclusion>
<groupId>org.jbossgroupId>
<artifactId>jboss-vfsartifactId>
exclusion>
exclusions>
dependency>
<dependency>
<groupId>org.freemarkergroupId>
<artifactId>freemarkerartifactId>
<version>2.3.23version>
dependency>
<dependency>
<groupId>javax.servletgroupId>
<artifactId>javax.servlet-apiartifactId>
<version>${servlet.version}version>
dependency>
<dependency>
<groupId>javax.websocketgroupId>
<artifactId>javax.websocket-apiartifactId>
<version>1.1version>
dependency>
<dependency>
<groupId>org.b3loggroupId>
<artifactId>latke-repository-mysqlartifactId>
<version>${latke.version}version>
dependency>
<dependency>
<groupId>mysqlgroupId>
<artifactId>mysql-connector-javaartifactId>
<version>${mysql-connector-java.version}version>
dependency>
<dependency>
<groupId>org.testnggroupId>
<artifactId>testngartifactId>
<version>${testng.version}version>
<scope>testscope>
dependency>
<dependency>
<groupId>org.jsoupgroupId>
<artifactId>jsoupartifactId>
<version>${jsoup.version}version>
dependency>
<dependency>
<groupId>org.pegdowngroupId>
<artifactId>pegdownartifactId>
<version>${pegdown.version}version>
dependency>
<dependency>
<groupId>com.qiniugroupId>
<artifactId>qiniu-java-sdkartifactId>
<version>${qiniu.version}version>
dependency>
<dependency>
<groupId>org.joddgroupId>
<artifactId>jodd-httpartifactId>
<version>${jodd.version}version>
dependency>
<dependency>
<groupId>com.vdurmontgroupId>
<artifactId>emoji-javaartifactId>
<version>${emoji-java.version}version>
<exclusions>
<exclusion>
<groupId>org.jsongroupId>
<artifactId>jsonartifactId>
exclusion>
exclusions>
dependency>
<dependency>
<groupId>eu.bitwalkergroupId>
<artifactId>UserAgentUtilsartifactId>
<version>${user-agent-utils.version}version>
dependency>
<dependency>
<groupId>commons-codecgroupId>
<artifactId>commons-codecartifactId>
<version>${commons-codec.version}version>
dependency>
<dependency>
<groupId>org.patchcagroupId>
<artifactId>patchcaartifactId>
<version>0.5.0version>
<scope>systemscope>
<systemPath>${project.basedir}/src/main/resources/lib/net/pusuo/patchca-0.5.0.jarsystemPath>
dependency>
dependencies>
<build>
<resources>
<resource>
<directory>src/main/resourcesdirectory>
<excludes>
<exclude>etc/exclude>
excludes>
resource>
resources>
<plugins>
<plugin>
<groupId>org.eclipse.jettygroupId>
<artifactId>jetty-maven-pluginartifactId>
<version>${jetty.version}version>
<configuration>
<httpConnector>
<port>8080port>
httpConnector>
<stopKey>stopstopKey>
<stopPort>4501stopPort>
<webAppConfig>
<contextPath>/contextPath>
webAppConfig>
<scanIntervalSeconds>1scanIntervalSeconds>
configuration>
plugin>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-resources-pluginartifactId>
<version>${maven-resources-plugin.version}version>
<configuration>
<encoding>UTF-8encoding>
configuration>
plugin>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-compiler-pluginartifactId>
<version>${maven-compiler-plugin.version}version>
<configuration>
<source>1.8source>
<target>1.8target>
<encoding>UTF-8encoding>
configuration>
plugin>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-surefire-pluginartifactId>
<version>${maven-surefire-plugin.version}version>
<configuration>
<skipTests>falseskipTests>
configuration>
plugin>
<plugin>
<groupId>com.mycila.maven-license-plugingroupId>
<artifactId>maven-license-pluginartifactId>
<version>${maven-license-plugin.version}version>
<configuration>
<basedir>${basedir}basedir>
<header>src/main/resources/etc/header.txtheader>
<quiet>falsequiet>
<failIfMissing>truefailIfMissing>
<aggregate>trueaggregate>
<strictCheck>truestrictCheck>
<includes>
<include>**/src/*/java/**/*.javainclude>
<include>**/src/*/webapp/js/*.jsinclude>
<include>**/src/*/webapp/css/*.cssinclude>
<include>**/src/*/webapp/scss/*.scssinclude>
<include>**/src/*/resources/*.propertiesinclude>
<include>**/src/*/webapp/WEB-INF/*.xmlinclude>
<include>**/src/*/webapp/*.xmlinclude>
<include>gulpfile.jsinclude>
includes>
<excludes>
<exclude>**/src/main/java/**/package-info.javaexclude>
<exclude>**/src/main/java/**/Pangu.javaexclude>
<exclude>**/src/*/webapp/js/lib/*.jsexclude>
<exclude>**/src/*/webapp/js/*.min.jsexclude>
<exclude>**/src/*/webapp/css/*.cssexclude>
excludes>
<useDefaultExcludes>trueuseDefaultExcludes>
<mapping>
<java>SLASHSTAR_STYLEjava>
<scss>SLASHSTAR_STYLEscss>
mapping>
<useDefaultMapping>trueuseDefaultMapping>
<properties>
<year>2012-2017year>
<devTeam>b3log.org & hacpai.comdevTeam>
properties>
<encoding>UTF-8encoding>
configuration>
<executions>
executions>
plugin>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-war-pluginartifactId>
<version>3.0.0version>
<configuration>
<webResources>
<resource>
<directory>${project.basedir}/src/main/resources/lib/net/pusuodirectory>
<targetPath>WEB-INF/libtargetPath>
<filtering>falsefiltering>
<includes>
<include>**/*.jarinclude>
includes>
resource>
webResources>
configuration>
plugin>
plugins>
<finalName>symphonyfinalName>
build>
<repositories>
<repository>
<id>aliyunid>
<url>http://maven.aliyun.com/nexus/content/groups/publicurl>
repository>
repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyunid>
<url>http://maven.aliyun.com/nexus/content/groups/publicurl>
pluginRepository>
pluginRepositories>
project>
运行环境
jdk1.8
tomcat9
macOS 10.x
报错如下:
[ERROR]-[2017-03-24 21:28:47]-[org.b3log.latke.servlet.AbstractServletListener:86]: Initializes request processors failed
java.io.IOException: invalid constant type: 18
at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
at javassist.bytecode.ConstPool.(ConstPool.java:149)
at javassist.bytecode.ClassFile.read(ClassFile.java:737)
at javassist.bytecode.ClassFile.(ClassFile.java:108)
at org.b3log.latke.ioc.config.Discoverer.discover(Discoverer.java:110)
at org.b3log.latke.servlet.AbstractServletListener.contextInitialized(AbstractServletListener.java:82)
at org.b3log.symphony.SymphonyServletListener.contextInitialized(SymphonyServletListener.java:92)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4744)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5206)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1439)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1439)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
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.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于