2
respostas

WARNING: An illegal reflective access operation has occurred (Erro 404 no navegadr

Ocorre o seguinte erro quando subo o Tomcat:

"INFO: Initializing Spring FrameworkServlet 'dispatcher'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$2 (file:/C:/Users/Julio%20Leal/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/casadocodigo/WEB-INF/lib/spring-core-4.1.0.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$2
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
Jan 13, 2020 9:51:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jan 13, 2020 9:51:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Jan 13, 2020 9:51:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [11,030] milliseconds"

Ai quando chamo a url no navegador a resposta é:

"HTTP Status 404 – Não Encontrado Type Status Report

Message /casadocodigo/WEB-INF/views/home.jsp

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."

Alguem pode me ajudar?

2 respostas

Oi Julio, tudo bem?

Pela mensagem de erro, o diretório onde está o seu arquivo home.jsp está errado. O correto seria "/casadocodigo/src/main/webapp/WEB-INF/views/", mas no seu caso está "/casadocodigo/WEB-INF/views/home.jsp".

Fala Otavio, obrigado pela ajuda, então, o arquivo esta em "/casadocodigo/src/main/webapp/WEB-INF/views/home.jsp" porem o erro continua aparecendo. Tentei modificar a classe "AppWebConfiguration" inserindo "resolver.setPrefix("/src/main/webapp/WEB-INF/views/");" , porem o erro persistiu agora mostrando no navegador : "Type Status Report

Message /casadocodigo/src/main/webapp/WEB-INF/views/home.jsp

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists." O erro não pode esta ligado ao : "WARNING: An illegal reflective access operation has occurred" que aparece quando subo o tomcat?