从SVN上导入的项目直接运行报错
我调用login文件会报如下错误,调用logon文件就能正常显示画面,但是登录的话还是会报类似的错误,我的tomcat是加载在eclipse上的插件,6.0版本的,请问如...
我调用login文件会报如下错误,调用logon文件就能正常显示画面,但是登录的话还是会报类似的错误,我的tomcat是加载在eclipse上的插件,6.0版本的,请问如何解决
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.mngsvr.usermng.UserInfo resolves to a package
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
11:
12: <frameset name="rootframe" rows="*,0" frameborder="no" border="0" framespacing="0">
13: <%
14: UserInfo ui = (UserInfo) session.getAttribute("UserInfo");
15: if (ui == null){
16: %>
17: <frame src="logon.jsp" name="loginTFrame" noresize="noresize" />
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
11:
12: <frameset name="rootframe" rows="*,0" frameborder="no" border="0" framespacing="0">
13: <%
14: UserInfo ui = (UserInfo) session.getAttribute("UserInfo");
15: if (ui == null){
16: %>
17: <frame src="logon.jsp" name="loginTFrame" noresize="noresize" />
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.29 展开
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.mngsvr.usermng.UserInfo resolves to a package
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
11:
12: <frameset name="rootframe" rows="*,0" frameborder="no" border="0" framespacing="0">
13: <%
14: UserInfo ui = (UserInfo) session.getAttribute("UserInfo");
15: if (ui == null){
16: %>
17: <frame src="logon.jsp" name="loginTFrame" noresize="noresize" />
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
11:
12: <frameset name="rootframe" rows="*,0" frameborder="no" border="0" framespacing="0">
13: <%
14: UserInfo ui = (UserInfo) session.getAttribute("UserInfo");
15: if (ui == null){
16: %>
17: <frame src="logon.jsp" name="loginTFrame" noresize="noresize" />
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.29 展开
4个回答
展开全部
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.mngsvr.usermng.UserInfo resolves to a package
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
UserInfo 有没有在导入到页面?
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.mngsvr.usermng.UserInfo resolves to a package
An error occurred at line: 14 in the jsp file: /mngsvr/login.jsp
UserInfo cannot be resolved to a type
UserInfo 有没有在导入到页面?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
如果不是类名写错了,应该是工作区的问题 把项目的BuildPath设置下 你发布到tomcat里应该没有把类包发不上去 当然找不到
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
关注中。。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
怎么都喜欢把代码写在jsp里面?不觉得那样代码很乱吗.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询