1
resposta

Erro 404 ao chamar /casadocodigo

Olá, Boa noite,

Estou tentou inicializar o projeto da casa do código, porem retorna apenas 404. Segue o log:

24-Apr-2021 18:36:30.973 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$2 (file:/Users/brunofreitas/.m2/repository/org/springframework/spring-core/4.1.0.RELEASE/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

24-Apr-2021 18:36:35.256 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

24-Apr-2021 18:36:35.266 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/casadocodigo] startup failed due to previous errors

24-Apr-2021 18:36:35.276 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [casadocodigo] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

24-Apr-2021 18:36:35.287 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [9825] milliseconds

Poderiam me ajudar?

Muito obrigado.

1 resposta

Boa noite pessoal,

Podem desconsiderar. O erro real era "Illegal reflective access by org.springframework.cglib.core.ReflectUtils". Consegui resolvê-lo colocando a dependencia abaixo:

    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.3.0</version>
    </dependency>

Após isso era retornado erro 500 por erro na conexão com o mysql. Corrigi alterando a versão do mysql no pom.xml para a mesma versão que tenho no meu computador.

Obrigado.