Boa noite,
Por favor preciso de ajuda…
Seguinte:
Adicionei o glassfish 3.0, e estou tentando criar um projeto com JSF 2.0.
Porem, toda vez que inicio um projeto e tento publica-lo no servidor acontece o mesmo erro.
[img]Publishing failed
Could not publish to the server.
java.lang.NullPointerException
cannot Deploy NovoProjetoJSF
Deployment Error for module: NovoProjetoJSF: Exception while deploying the app : java.io.IOException: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name ‘javaee:web-appType’ to a(n) ‘type definition’ component.
Testando, percebi que não acontece erro ao publicar quando apago alguma das linhas a seguir no web.xml:
<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_3_0.xsd" version="3.0">
alguma ideia do que pode ser?