JSP运行编译时找不到src中自己写的类,急等答案! 5
HTTPERROR500Problemaccessing/ManagerAndEmployee/register.jsp.Reason:ServerErrorCaused...
HTTP ERROR 500
Problem accessing /ManagerAndEmployee/register.jsp. Reason:
Server Error
Caused by:
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:51: cannot find symbol
symbol : class UserEntity
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:51: cannot find symbol
symbol : class UserEntity
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:68: cannot find symbol
symbol : class UserBusiness
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:68: cannot find symbol
symbol : class UserBusiness
location: class org.apache.jsp.register_jsp
其中UserEntity和UserBusiness是自己写的存放在src中的类,已确认在JSP中Ctrl点击该类名可以跳转到类页面,但不知为何在eclipse运行报这个错?另外还想问下如果我要把这个project发布到Tomcat,除了copy项目中webcontent下面的,对应上面两个类的class也要拷贝到JSP同级目录还是? 展开
Problem accessing /ManagerAndEmployee/register.jsp. Reason:
Server Error
Caused by:
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:51: cannot find symbol
symbol : class UserEntity
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:51: cannot find symbol
symbol : class UserEntity
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:68: cannot find symbol
symbol : class UserBusiness
location: class org.apache.jsp.register_jsp
PWC6197: An error occurred at line: 6 in the jsp file: /register.jsp
PWC6199: Generated servlet error:
string:///register_jsp.java:68: cannot find symbol
symbol : class UserBusiness
location: class org.apache.jsp.register_jsp
其中UserEntity和UserBusiness是自己写的存放在src中的类,已确认在JSP中Ctrl点击该类名可以跳转到类页面,但不知为何在eclipse运行报这个错?另外还想问下如果我要把这个project发布到Tomcat,除了copy项目中webcontent下面的,对应上面两个类的class也要拷贝到JSP同级目录还是? 展开
2个回答
2015-05-17
展开全部
上面的错误信息,都告诉了你哪文件、哪行出的错
追问
兄台,请直接揭晓谜底,以便给分,你这样回答,我没法给分,如果我能从log中直接看出来怎么改,还需要发到这里么?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询