My files are located at:
tomcat/webapps/ROOT/temp.jsp
tomcat/webapps/ROOT/WEB-INF/classes/tempbeans/TempBean.class
Expand|Select|Wrap|Line Numbers
- <%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %><%@ page import="tempbeans.*" %>
- <% TempBean bean = new TempBean(); %>
Expand|Select|Wrap|Line Numbers
- package tempbeans;
- public class TempBean
- {
- public TempBean()
- {
- }
- }
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 3 in the jsp file: /temp.jsp
TempBean cannot be resolved to a type
1: <%@ page import="tempbeans.*" %>
2:
3: <% TempBean bean = new TempBean(); %>
An error occurred at line: 3 in the jsp file: /temp.jsp
TempBean cannot be resolved to a type
1: <%@ page import="tempbeans.*" %>
2:
3: <% TempBean bean = new TempBean(); %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateCla ss(JDTCompiler.java:457)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:374)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:352)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:339)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:601)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:344)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
The code runs on my local Eclipse set-up? Is there something wrong with my remote set-up?
Any help is greatly appreciated!!