| | |
Java EE problem
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2007
Posts: 59
Reputation:
Solved Threads: 3
Hi, I'v been trying to write a simple Java EE app, which deals with car renting. The entity beans and session beans are ready, so I've created a JSP for representation. It contains a single method, for init:
My business package contains the interface UserSessionInterface, UserSessionBean and some other classes. When I'm trying to run the application, the following error apears (instead of hello world message):
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:13: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:17: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:18: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
Please help me solve this.
Thanks in advance
JSP Syntax (Toggle Plain Text)
<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page import="javax.naming.*, business.*, entities.*" %> <%!private UserSessionInterface user = null; public void jspInit() { try { InitialContext ic = new InitialContext(); user = (UserSessionInterface)ic.lookup (UserSessionInterface.class.getName()); } catch (Exception e) { System.out.println("Exception error!"); } } public void jspDestroy() { user = null; } %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h2>Hello World!</h2> </body> </html>
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:13: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:17: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
PWC6197: An error occurred at line: 5 in the jsp file: /login.jsp
PWC6199: Generated servlet error:
string:///login_jsp.java:18: cannot find symbol
symbol : class UserSessionInterface
location: class org.apache.jsp.login_jsp
Please help me solve this.
Thanks in advance
![]() |
Similar Threads
- Front-end Java Software Engineer for Digital Video/Media Market Leader - Los Angeles (Software Development Job Offers)
- Front-end Java Software Engineer for Digital Video/Media Market Leader (Software Development Job Offers)
- Java Problem with running program (Java)
- Java problem in IE (Web Browsers)
- String Class Of Java (Java)
- Ginormous Problem With XP (Windows NT / 2000 / XP)
- Problem with JAVA and XP & a few missing choices. *bangs head on desk* (Web Browsers)
Other Threads in the JSP Forum
- Previous Thread: Java web proxy server development
- Next Thread: how to get the id in an input element?
| Thread Tools | Search this Thread |
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write





