我在Server Tomcat 8.5上运行我的项目,并获得标题的统一名。 我曾经成功测试过几次。编辑xml文件并再次运行后,出现此错误。
我立即将xml文件返回到同一文件,但是当我再次运行该项目时,仍然出现该错误。这是控制台:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/home/hulk/apache-tomcat-8.5.40/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
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
似乎我不小心用文件夹“ Tomcat v8.5 Server at localhost-config”创建了一个名为“ Servlet”的项目,其中包括文件:
catalina.policy
catalina.properties
context.xml
server.xml
tomcat-users.xml
web.xml
如果删除此文件夹,然后再次运行项目,则会出现此错误:
Resource'/Server' does not exist.
这张照片是我所描述的全部!