我已经为我的pom添加了以下依赖项
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.9</version>
</dependency>因为java 11需要单独的依赖项,但是当我构建我的项目并启动tomcat时,它不会在下面一行之后启动。
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/C:/Users/Manoj/Music/tritium-tomcat-9-java-11/lib/ext/xstream-1.3.1.jar) to field java.util.Properties.defaults
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release流提供了依赖关系,当我从war tomcat start中删除我的Jax依赖关系时,它是正常的,同时也提供了上述警告,那么我可以做些什么来解决这个问题呢?
发布于 2020-07-17 23:53:10
我为这个问题找到了一个解决方案,因为我使用了XStream和Jax依赖war相同的war文件,所以它用类重写,我删除了xstream,并在标识问题之后使用了替代方法。
https://stackoverflow.com/questions/61882330
复制相似问题