• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

JSP Servlet Error: "Cannot be resolved to a type"

Hi,

I'm working on a JSP page (search.jsp) using Tomcat 5.5 on Win XP and am wondering why I got this error:

[Error Message]
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /search.jsp
Generated servlet error:
Facade cannot be resolved to a type
[/Error Message]


Below is the search.jsp file:
<%@ page import="java.util.*,java.text.*, com.syslore.multicolumn.*" %>
<%
      // Create an mcorrection facade instance.
      Facade facade=new MCFacade();
%>


Below is the API documentation for Facade:
***************************
com.syslore.multicolumn
Interface Facade

All Known Implementing Classes:
    MCFacade
***************************


Below is the API documentation for MCFacade:
***************************
com.syslore.multicolumn
Class MCFacade

java.lang.Object
  |__com.syslore.multicolumn.MCFacade

All Implemented Interfaces:
    Facade
***************************

Why is this happening?  Any idea of how to make the search.jsp file working?

Thanks in advance!
0
SWB-Consulting
Asked:
SWB-Consulting
  • 2
1 Solution
 
jaggernatCommented:
try this

<%
     // Create an mcorrection facade instance.
     MCFacade facade=new MCFacade();
%>
0
 
SWB-ConsultingAuthor Commented:
Actually it's working now.

I don't know what I did, but I rearranged the jar files and reinstalled the jdk, etc, and then it worked after  tomcat is restarted.
0
 
jaggernatCommented:
good
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now