我需要一些帮助。当我在tomcat上部署我的Spring应用程序时,我得到以下异常:
17-Mar-2019 12:50:21.482 INFORMAZIONI [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Users\vince\develop\apache-tomcat-8.5.38\webapps\reportingsystem.war]
17-Mar-2019 12:50:22.013 GRAVE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/reportingsystem]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: net/bytebuddy/dynamic/loading/ClassLoadingStrategy
at com.vaadin.flow.server.startup.ApplicationRouteRegistry.createRegistry(ApplicationRouteRegistry.java:361)
at com.vaadin.flow.server.startup.ApplicationRouteRegistry.getInstance(ApplicationRouteRegistry.java:211)
at com.vaadin.flow.server.startup.RouteRegistryInitializer.onStartup(RouteRegistryInitializer.java:43)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5272)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: java.lang.ClassNotFoundException: net.bytebuddy.dynamic.loading.ClassLoadingStrategy
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1364)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1185)
... 15 more
17-Mar-2019 12:50:22.013 GRAVE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [C:\Users\vince\develop\apache-tomcat-8.5.38\webapps\reportingsystem.war]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/reportingsystem]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
17-Mar-2019 12:50:22.029 INFORMAZIONI [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Users\vince\develop\apache-tomcat-8.5.38\webapps\reportingsystem.war] has finished in [547] ms
17-Mar-2019 12:50:22.029 INFORMAZIONI [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
17-Mar-2019 12:50:22.045 INFORMAZIONI [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
17-Mar-2019 12:50:22.045 INFORMAZIONI [main] org.apache.catalina.startup.Catalina.start Server startup in 619 ms
这是我的身材。gradle文件:
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'java'
id 'net.researchgate.release' version '2.6.0'
id 'war'
}
war {
enabled = true
}
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'net.researchgate.release'
apply plugin: 'war'
repositories {
mavenCentral()
maven {
url 'http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts'
}
}
sourceSets {
main {
resources {
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-cache' //NO
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // SI
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'//NO
implementation 'org.springframework.boot:spring-boot-starter-security' //NO
implementation 'org.springframework.boot:spring-boot-starter-web' //NO
implementation platform(group: "com.vaadin", name: "vaadin-bom", version: bomVersions_vaadin)
implementation 'com.vaadin:vaadin-spring-boot-starter' // SI
implementation 'io.springfox:springfox-swagger2:2.9.2' //SI
implementation 'io.springfox:springfox-swagger-ui:
implementation 'net.sf.jasperreports:jasperreports:6.7.1'
implementation ('net.sf.jasperreports:jasperreports-fonts:6.0.0')
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'mysql:mysql-connector-java'
runtimeOnly 'com.h2database:h2:1.4.196'
compileOnly 'org.projectlombok:lombok:1.18.6'
annotationProcessor 'org.projectlombok:lombok:1.18.6'
runtimeOnly group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
我的申请。属性文件:
## Logging
logging.level.org.springframework.web=INFO
logging.level.org.springframework.ws.client.MessageTracing.sent=trace
logging.level.org.springframework.ws.client.MessageTracing.received=TRACE
# Naming strategy
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.show-sql=false
spring.jpa.generate-ddl=false
spring.jpa.hibernate.ddl-auto=none
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
#spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true
spring.jmx.default-domain=reportingsystem
#useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
## LOCAL DB
spring.datasource.url=jdbc:mysql://localhost:3306/develop?useSSL=false&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&useJDBCCompliantTimezoneShift=true
spring.datasource.username=user
spring.datasource.password=pass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
# Hikari Datasource
spring.datasource.hikari.maximum-pool-size=20
spring.datasource.hikari.connection-timeout=5000
spring.datasource.hikari.minimum-idle=15
spring.datasource.hikari.pool-name=HikariConnectionPool
spring.jpa.properties.hibernate.connection.charSet=UTF-8
spring.jpa.properties.hibernate.hbm2ddl.import_files_sql_extractor=org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor
spring.profiles.active=local
security.basic.enabled=false
security.ignored=/**
我还注意到net/bytebuddy/dynamic/loading/ClassLoadingStrategy出现在不同的模块中,例如我在io中发现的。springfox:springfox-swagger2:2.9.2',org。springframework。启动:spring启动程序数据jpa和com。瓦丁:瓦丁Spring启动。我试图把它排除在他们之外,但什么也没发生,我也得到了同样的例外。
能帮帮我吗?提前感谢。
堆栈跟踪告诉您com。瓦丁。流服务器创业。ApplicationRouterRegistry
类未能加载所需的net。拜特巴迪。动态加载。ClassLoadingStrategy
class。
仅仅根据你的build.gradle
很难判断发生了什么。将Vaadin与Spring Boot集成有一些已知的问题,例如:Spring引导覆盖ByteBuddy版本。
您必须找到哪个依赖项提供了Application ationRoute注册表
和:
pom.xml
。Description You can choose which functionalities to include by selecting a set of modules. A module will be compiled as a Dynamic Shared Object (DSO) that exists from the main tengine binary. So you d
加载提示的过渡效果。 支持 安装 $ npm install universal-loading --save 方法 show(options) 显示 loading 提示框。 参数 属性 类型 默认值 必选 描述 支持 content String √ 提示中的文字内容 delay Number 0 x 延迟显示,单位 ms mask Boolean false x 是否显示透明蒙层,防止触摸穿
简介 <loading> 为容器提供上拉加载功能。 注意 <loading> 是 <scroller>、<list>、<waterfall> 的子组件,只能在被它们包含时才能被正确渲染。 <scroller> <div v-for="num in lists"> <text>{{num}}</text> </div> <loading> <text>Loading<
加载,提供了可自定义大小的加载动画。 示例 图标大小 默认大小为24px,可通过size属性配置 <cube-loading></cube-loading> <cube-loading :size="28"></cube-loading> <cube-loading :size="40"></cube-loading> Props 配置 参数 说明 类型 默认值 size 加载图标的大小,单位p
我有很多Web服务在普通JDK上运行,我需要截取所有公共方法来做一些事情。有些方法正在使用@WebParam注释。用ByteBuddy子类化WebService会从覆盖方法中删除@WebParam注释,服务不再按预期工作。 这是签名样本 下面是我如何使用ByteBuddy 我知道有一种注释参数的方法,但是它需要关于方法参数的特殊知识(因为只有一些参数被注释)。我想做的只是要求ByteBuddy以与
Weex 加载提示组件 规则 让用户知道页面正在加载 在某些特定场景下,提供有意义的文案,帮助用户明白哪个任务正在进行中 局部 Loading 不建议设置太大 Demo 使用方法 <template> <div> <wxc-loading :show="isShow" type="trip"></wxc-loading> <wxc-part-loading