Preciso de ajuda pessoal, pesquisei no google e muito , as explicações que encontrei não foram suficientes, uso o java jdk1.6.0, Jboss4.2.1-ga, Hibernate, EJB3.
e ocorre o erro abaixo, não reconhece tipos.
abaixo a configuração do eclipse para vcs. darem uma olhada, e está apontando para o jdk 1.6 e mesmo assim continua o erro gostaria de um auxílio OBRIGADÃO!!
DETALHE: NO ECLIPSE COMPILA NORMALMENTE, O ERRO OCORRE QUANDO EXECUTO UM MÉTODO QUE TEM lIST<>, ARAYLIST, DENTRO DO JBOSS, JÁ NO SERVIDOR.
NO ECLIPSE
*Meu projeto >Properties>Java Comiler----- está assialado apra 6.0
*WINDOW>PREFERENCES>JAVA>JRESINSTALED … APONTA PARA JDK1.6.0
que é meu java instalado.
ERRO DO LOG.
An error occurred at line: 15 in the jsp file: /busca.jsp
Syntax error, parameterized types are only available if source level is 5.0
12: Iterator itm;
13: %>
14: <%
15: Hashtable<String, String> t = new Hashtable<String, String>();
16:
17: t.put(Context.INITIAL_CONTEXT_FACTORY,“org.jnp.interfaces.NamingContextFactory”);
18: t.put(Context.PROVIDER_URL, “localhost:1099”);
An error occurred at line: 84 in the jsp file: /busca.jsp
itm cannot be resolved
81: <%
82: try {
83: MarcSession marcs = (MarcSession) ctx.lookup(“Ecomerce/MarcaSession/local”);
84: itm = marcs.buscaTodas().iterator();
85: if(itm.hasNext()) {
86:
87: }
An error occurred at line: 85 in the jsp file: /busca.jsp
itm cannot be resolved
82: try {
83: MarcSession marcs = (MarcSession) ctx.lookup(“Ecomerce/MarcaSession/local”);
84: itm = marcs.buscaTodas().iterator();
85: if(itm.hasNext()) {
86:
87: }
88: while(itm.hasNext()) {
An error occurred at line: 88 in the jsp file: /busca.jsp
itm cannot be resolved
85: if(itm.hasNext()) {
86:
87: }
88: while(itm.hasNext()) {
89: marc =(Marca)itm.next(); %>
90: <option value=<%=marc.getId()%>><%=marc.getNome()%>
91: <%}
An error occurred at line: 89 in the jsp file: /busca.jsp
itm cannot be resolved
86:
87: }
88: while(itm.hasNext()) {
89: marc =(Marca)itm.next(); %>
90: <option value=<%=marc.getId()%>><%=marc.getNome()%>
91: <%}
92: }
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jsp.indexmarc_jsp._jspService(indexmarc_jsp.java:115)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)