Olá amigos, boa tarde,
seguinte, estou com um problema muito grande aqui. Já varri infinitos sites na web, mas não consegui encontrar como configurar uma simples aplicação web utilizando o glassfish. Eu criei uma aqui, indo em create Dinamic project, ele cria o web.xml, o faces-config. Porém ao criar o arquivo index.jsp na mão, e colocar apenas uma frase para ser mostrada nele, é como se o glassfish nao conseguisse enxergá-lo.
Meu web.xml está bem básico:
<?xml version=“1.0” encoding=“UTF-8”?>
<web-app xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns=“http://java.sun.com/xml/ns/javaee” xmlns:web=“http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” xsi:schemaLocation=“http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” id=“WebApp_ID” version=“2.5”>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>
e minha página jsp assim:
<?xml version=“1.0” encoding=“ISO-8859-1” ?>
<jsp:root xmlns:jsp=“http://java.sun.com/JSP/Page” version=“2.0”>
<jsp:directive.page language=“java”
contentType=“text/html; charset=ISO-8859-1” pageEncoding=“ISO-8859-1” />
<jsp:text>
<![CDATA[ ><?xml version=“1.0” encoding=“ISO-8859-1” ?> ]]>
</jsp:text>
<jsp:text>
<![CDATA[ ><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> ]]>
</jsp:text>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=ISO-8859-1” />
<title>Insert title here</title>
</head>
<body>
Jsp
</body>
</html>
</jsp:root>
Porém recebo a seguinte mensagem:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(2,66) PWC6226: Could not add one or more tag libraries.
note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.
Estou utilizando a versão 3 do glassfish, e já cheguei a utilizar a 2.1, porém naquela versão tinha uma mensagem de nullpointer, sendo que as mesmas configurações acima estavam sendo utilizadas.
Alguem poderia me dar uma ajuda, ou teria um projeto bem simples rodando que poderia me passar?
Meu e-mail: lessandronp@hotmail.com
Desde já agradeço, e acho que seria interessante estarem colocando essas respostas aqui, para outras pessoas assim como eu que estão passando pelo mesmo problema, consigam levar em frente a criação de um projeto web.
Agradeço a todos,
Att,
Lessandro