Erro Aplicação Livro Java Para Web

3 respostas
O

Estou com problema abaixo;

Porém pelo oque vejo esta tudo ok com a classe, alguem sabe o que pode ser ?

No Console :

13/10/2012 15:22:50 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [FacesServlet] in context with path [/FinanceiroWeb] threw exception [Unresolved compilation problems: 
	The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
	Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
	String cannot be resolved to a type
	String cannot be resolved to a type
	String cannot be resolved to a type
	String cannot be resolved to a type
	The method getSenha() from the type Usuario refers to the missing type String
	String cannot be resolved to a type
	The constructor FacesMessage(String) refers to the missing type String
	The method addMessage(String, FacesMessage) from the type FacesContext refers to the missing type String
	String cannot be resolved to a type
	String cannot be resolved to a type
	String cannot be resolved to a type
	String cannot be resolved to a type
] with root cause

No Navegador:

HTTP Status 500 - Unresolved compilation problems: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor String cannot be resolved to a type String cannot be resolved to a type String cannot be resolved to a type String cannot be resolved to a type The method getSenha() from the type Usuario refers to the missing type String String cannot be resolved to a type The constructor FacesMessage(String) refers to the missing type String The method addMessage(String, FacesMessage) from the type FacesContext refers to the missing type String String cannot be resolved to a type String cannot be resolved to a type String cannot be resolved to a type String cannot be resolved to a type

Obrigado

3 Respostas

E

O stacktrace ao que parece está apontando erro de compilação, poste a classe tbem.

LPJava

esse livro tá cheio de problemas nas aplicações e tem que ir arrumando, infelizmente. Pois, tem uma boa grade de assunto.
Olhando por alto no erro postado, parece que está tendo problema no type String da variavel senha, dar uma revisada no que vc tem ai na classe, com o que mapeou e como ta seu banco.

Cledsonjr

Coloque as classes para facilitar a visualização do erro.

Criado 13 de outubro de 2012
Ultima resposta 17 de out. de 2012
Respostas 3
Participantes 4