Eu tinha feito um supermecado on-line e funcionava perfeitamente. Zipei o diretório e tentei rodar em um outro computador. Mas não funciona!!! Aparece as seguinte mensagens de erro quando tento compilar o index.jsp:
_0002findex_0002ejspindex_jsp_0.java [77:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
Beans.Promocao_Bean item = null;
^
_0002findex_0002ejspindex_jsp_0.java [80:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
item= (Beans.Promocao_Bean)
^
_0002findex_0002ejspindex_jsp_0.java [85:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
item = (Beans.Promocao_Bean) Beans.instantiate(this.getClass().getClassLoader(), “Beans.Promocao_Bean”);
^
_0002findex_0002ejspindex_jsp_0.java [354:1] reference to Statement is ambiguous, both class java.sql.Statement in java.sql and class java.beans.Statement in java.beans match
Statement consulta = null;
^
_0002findex_0002ejspindex_jsp_0.java [383:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
out.print(JspRuntimeLibrary.toString((((Beans.Promocao_Bean)pageContext.findAttribute(“item”)).getId_produto())));
^
_0002findex_0002ejspindex_jsp_0.java [393:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
out.print(JspRuntimeLibrary.toString((((Beans.Promocao_Bean)pageContext.findAttribute(“item”)).getNome_produto())));
^
_0002findex_0002ejspindex_jsp_0.java [401:1] cannot resolve symbol
symbol : class Promocao_Bean
location: class java.beans.Beans
out.print(JspRuntimeLibrary.toString((((Beans.Promocao_Bean)pageContext.findAttribute(“item”)).getPreco())));
^
Note: c:JavaInnomjspworkTomcat+3.25b64e970_0002findex_0002ejspindex_jsp_0.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
7 errors
Errors compiling index.
Como se ele não encontrasse o Promocao_Bean, certo?! Mas o import tá certinho ele encontra a minha pasta Beans dentrto de Classes que fica dentro do WEB-INF. O que pode estar acontecendo?! Antes funcionava e agora não… o que tem de diferente?!
valeu moçada!