Poderiam me ajudar com este erro???
eclipse 3.3.2
Tomcat - apache-tomcat-6.0.14
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 8 in the jsp file: /mostramsg.jsp
MostraMsg cannot be resolved to a type
5: <html>
6:
7: <%
8: MostraMsg mmsg = new MostraMsg();
9: mmsg.mostra();
10: %>
11:
An error occurred at line: 8 in the jsp file: /mostramsg.jsp
MostraMsg cannot be resolved to a type
5: <html>
6:
7: <%
8: MostraMsg mmsg = new MostraMsg();
9: mmsg.mostra();
10: %>
11:
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:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 8 in the jsp file: /mostramsg.jsp
MostraMsg cannot be resolved to a type
5: <html>
6:
7: <%
8: MostraMsg mmsg = new MostraMsg();
9: mmsg.mostra();
10: %>
11:
An error occurred at line: 8 in the jsp file: /mostramsg.jsp
MostraMsg cannot be resolved to a type
5: <html>
6:
7: <%
8: MostraMsg mmsg = new MostraMsg();
9: mmsg.mostra();
10: %>
11:
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:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
Minha Pagina [code]
<%@ page
import=“java.util.,br.teste.” %>
<%
MostraMsg mmsg = new MostraMsg();
mmsg.mostra();
%>
<%
MostraMsg mmsg = new MostraMsg();
mmsg.mostra();
%>
Meu programa
package br.teste;
public class MostrarMsg {
public void mostra() {
System.out.println("Mensagem");
}
}
package br.teste;
public class MostrarMsg {
public void mostra() {
System.out.println("Mensagem");
}
}
Minha Pagina
Projects\jspteste\web\mostramsg.jsp
Meus .class
Projects\jspteste\web\WEB-INF\classes\br\teste