Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Servidor redireciona img/imagem.png para img/index.jsp

Olá,

Estou com o seguinte problema ao tentar importar qualquer arquivo dentro do jsp:

Informações:   Usuario <deslogado> acessando /Projeto/img/logo_branco.png
Informações:   Usuario <deslogado> acessando /Projeto/img/index.jsp
Grave:   PWC6117: File "null" not found

Ao tentar acessar qualquer imagem, folha de estilo ou script ele tenta procurar o index.jsp dentro da pasta img ao invés de retornar a imagem em si. No JSP (/Projeto/index.jsp) há apenas uma tag img:

<body>
  <img src="img/logo_branco.png" alt=""/>
</body>

O meu web.xml está desta forma:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <display-name>Projeto</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>

Estou usando o NetBeans com o GlassFish Server.

Alguém sabe o que pode ser?

1 resposta
solução!

Consegui resolver o problema... Eu estava colocando a servlet Home com a urlPatterns = ("/")

@WebServlet(urlPatterns = "/")
public class Home extends HttpServlet {