Configuraçao TomCat 6

3 respostas
furacao123

configurei o TomCat em ambiente Linux (Suse 11) mas estou tendo problemas para executar minha aplicaçao web no tomCat me gera o seguinte erro

org.apache.jasper.JasperException: Unable to compile class for JSP:

ja configurei as variaveis de ambiente do TomCat e do Java, gerei o .war pelo netbeans copiei no webapps descompactei pelo TomCat mas quando eu vou executar me gera esse erro

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 35 in the jsp file: /Comanda/index.jsp
AtendenteDAO cannot be resolved to a type
32: 
33:             <%
34:                session.invalidate();
35:                AtendenteDAO atendenteDAO = new AtendenteDAO();
36:                List<Atendente> atendente = atendenteDAO.getAtendentes();
37:                int idAtendente = request.getParameter("idAtendente") == null ? 0 : Integer.valueOf(request.getParameter("idAtendente"));
38:             %>


An error occurred at line: 35 in the jsp file: /Comanda/index.jsp
AtendenteDAO cannot be resolved to a type
32: 
33:             <%
34:                session.invalidate();
35:                AtendenteDAO atendenteDAO = new AtendenteDAO();
36:                List<Atendente> atendente = atendenteDAO.getAtendentes();
37:                int idAtendente = request.getParameter("idAtendente") == null ? 0 : Integer.valueOf(request.getParameter("idAtendente"));
38:             %>


An error occurred at line: 36 in the jsp file: /Comanda/index.jsp
Atendente cannot be resolved to a type
33:             <%
34:                session.invalidate();
35:                AtendenteDAO atendenteDAO = new AtendenteDAO();
36:                List<Atendente> atendente = atendenteDAO.getAtendentes();
37:                int idAtendente = request.getParameter("idAtendente") == null ? 0 : Integer.valueOf(request.getParameter("idAtendente"));
38:             %>
39:              <div align="center" >


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

o que esta acontecendo de errado

3 Respostas

pdioniziofilho

provavelmente está faltando o import de sua classe AtendenteDAO no seu jsp.

pdioniziofilho

pdioniziofilho:
provavelmente está faltando o import de sua classe AtendenteDAO no seu jsp.

e da classe Atendente tb …

vc colocou os imports necessarios?

furacao123

entao eu resolvi o problema

estava dando esse erro pois ele nao achava o JRE no Suse…coloquei no caminha certo restartei o TomCat e ta tudo blz agora

vlw

Criado 2 de junho de 2009
Ultima resposta 3 de jun. de 2009
Respostas 3
Participantes 2