错误SpringApplication IllegalAccessError尝试访问方法org.springframework.beans.PropertyEditorRegistrySupport.getDefaultEditor

时间:2019-12-28 13:48:50

标签: spring-boot maven pom.xml

我一直在尝试在tomcat服务器上部署SpringBoot项目,在本地运行maven成功

enter image description here

但是,我一直在尝试导出.war文件,并在tomcat上部署时出现错误。

  

ValidatorFactory范围的脚本评估程序工厂。   20:10:54.170 [http-nio-8080-exec-13]错误org.springframework.boot.SpringApplication-应用程序运行失败   java.lang.IllegalAccessError:尝试访问方法org.springframework.beans.PropertyEditorRegistrySupport.getDefaultEditor(Ljava / lang / Class;)Ljava / beans / PropertyEditor;从类org.springframework.boot.context.properties.bind.BindConverter $ TypeConverterConverter       在org.springframework.boot.context.properties.bind.BindConverter $ TypeConverterConverter.getPropertyEditor(BindConverter.java:239)       在org.springframework.boot.context.properties.bind.BindConverter $ TypeConverterConverter.matches(BindConverter.java:224)       在org.springframework.core.convert.support.GenericConversionService $ ConvertersForPair.getConverter(GenericConversionService.java:669)       在org.springframework.core.convert.support.GenericConversionService $ Converters.getRegisteredConverter(GenericConversionService.java:566)       在org.springframework.core.convert.support.GenericConversionService $ Converters.find(GenericConversionService.java:550)       在org.springframework.core.convert.support.GenericConversionService.getConverter(GenericConversionService.java:260)       在org.springframework.core.convert.support.GenericConversionService.canConvert(GenericConversionService.java:145)       在org.springframework.boot.context.properties.bind.BindConverter $ TypeConverterConversionService.canConvert(BindConverter.java:201)       在org.springframework.boot.convert.DelimitedStringToArrayConverter.matches(DelimitedStringToArrayConverter.java:51)       在org.springframework.core.convert.support.GenericConversionService $ ConvertersForPair.getConverter(GenericConversionService.java:669)       在org.springframework.core.convert.support.GenericConversionService $ Converters.getRegisteredConverter(GenericConversionService.java:566)       在org.springframework.core.convert.support.GenericConversionService $ Converters.find(GenericConversionService.java:550)       在org.springframework.core.convert.support.GenericConversionService.getConverter(GenericConversionService.java:260)       在org.springframework.core.convert.support.GenericConversionService.canConvert(GenericConversionService.java:145)       在org.springframework.boot.context.properties.bind.BindConverter $ TypeConverterConversionService.canConvert(BindConverter.java:201)       在org.springframework.boot.context.properties.bind.BindConverter $ CompositeConversionService.convert(BindConverter.java:163)       在org.springframework.boot.context.properties.bind.BindConverter.convert(BindConverter.java:96)       在org.springframework.boot.context.properties.bind.IndexedElementsBinder.convert(IndexedElementsBinder.java:142)       在org.springframework.boot.context.properties.bind.IndexedElementsBinder.bindValue(IndexedElementsBinder.java:95)       在org.springframework.boot.context.properties.bind.IndexedElementsBinder.bindIndexed(IndexedElementsBinder.java:83)       在org.springframework.boot.context.properties.bind.IndexedElementsBinder.bindIndexed(IndexedElementsBinder.java:71)       在org.springframework.boot.context.properties.bind.ArrayBinder.bindAggregate(ArrayBinder.java:46)       在org.springframework.boot.context.properties.bind.AggregateBinder.bind(AggregateBinder.java:56)       在org.springframework.boot.context.properties.bind.Binder.lambda $ bindAggregate $ 3(Binder.java:388)       在org.springframework.boot.context.properties.bind.Binder $ Context.withIncreasedDepth(Binder.java:543)       在org.springframework.boot.context.properties.bind.Binder $ Context.access $ 200(Binder.java:486)       在org.springframework.boot.context.properties.bind.Binder.bindAggregate(Binder.java:388)       在org.springframework.boot.context.properties.bind.Binder.bindObject(Binder.java:349)       在org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:293)       在org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:281)       在org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:211)       在org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:172)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.getProfiles(ConfigFileApplicationListener.java:604)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.lambda $ asDocuments $ 11(ConfigFileApplicationListener.java:577)       在java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)       在java.util.Collections $ 2.tryAdvance(Collections.java:4717)       在java.util.Collections $ 2.forEachRemaining(Collections.java:4725)       在java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)       在java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)       在java.util.stream.ReduceOps $ ReduceOp.evaluateSequential(ReduceOps.java:708)       在java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)       在java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.asDocuments(ConfigFileApplicationListener.java:578)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.loadDocuments(ConfigFileApplicationListener.java:563)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.load(ConfigFileApplicationListener.java:518)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.loadForFileExtension(ConfigFileApplicationListener.java:494)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.load(ConfigFileApplicationListener.java:464)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.lambda $ null $ 7(ConfigFileApplicationListener.java:443)       在java.lang.Iterable.forEach(Iterable.java:75)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.lambda $ load $ 8(ConfigFileApplicationListener.java:443)       在java.lang.Iterable.forEach(Iterable.java:75)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.load(ConfigFileApplicationListener.java:440)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.lambda $ load $ 0(ConfigFileApplicationListener.java:335)       在org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54)       在org.springframework.boot.context.config.ConfigFileApplicationListener $ Loader.load(ConfigFileApplicationListener.java:323)       在org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:214)       在org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:198)       在org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:188)       在org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:176)       在org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)       在org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)       在org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)       在org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)       在org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)       在org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)       在org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345)       在org.springframework.boot.SpringApplication.run(SpringApplication.java:308)       在org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)       在org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)       在org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)       在org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)       在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)       在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)       在org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1309)       在org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:665)       在org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:211)       在javax.servlet.http.HttpServlet.service(HttpServlet.java:661)       在javax.servlet.http.HttpServlet.service(HttpServlet.java:742)       在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)       在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)       在org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)       在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)       在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)       在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)       在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)       在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)       在org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)       在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)       在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)       在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)       在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)       在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:595)       在org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:348)       在org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:52)       在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)       在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)       在org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)       在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)       在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)       在org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)       在org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)       在org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:868)       在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1459)       在org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)       在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)       在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)       在java.lang.Thread.run(Thread.java:748)

这是pom.xml

<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.3.RELEASE</version>
    <relativePath />
</parent>
<groupId>xxx.xxxx</groupId>
<artifactId>xxx</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
    <java.version>1.8</java.version>
</properties>

<dependencies>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.thailife</groupId>
        <artifactId>queueman</artifactId>
        <scope>system</scope>
        <version>1.0</version>
        <systemPath>${basedir}/src/main/resources/lib/queueman.jar</systemPath>
    </dependency>
</dependencies>
<build>
    <finalName>${artifactId}</finalName>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

谢谢。

0 个答案:

没有答案