新手问题,希望大姐大哥们帮帮忙,在线等
我运行一个简单的JSP的就可以,我把做好的项目放进去就不行了
错误提示如下:
type 异 常 报 告
信 息
描 述 服务器遇到内部错误,无法满足这个访问请求
异 常
org.apache.jasper.JasperException: 无法编译JSP
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.db.DBTools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.tools.StrTools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.tools.Tools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.page.PageManager resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.page.Page resolves to a package
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
DbHandler cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
DbHandler cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
Admin cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
Admin cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
AdminManager cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
AdminManager cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
起 因
org.apache.jasper.JasperException: 无法编译JSP
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.db.DBTools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.tools.StrTools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.tools.Tools resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.page.PageManager resolves to a package
Generated servlet error:
Only a type can be imported. com.xiaoxs.common.page.Page resolves to a package
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
DbHandler cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
DbHandler cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
Admin cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
Admin cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
AdminManager cannot be resolved to a type
An error occurred at line: 24 in the jsp file: /www/index.jsp
Generated servlet error:
AdminManager cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
注 意 完整的起因在Apache Tomcat/5.5.20里。
[解决办法]
没什么jsp页面写错了
[解决办法]
index.jsp错了吧
估计一些类没import
[解决办法]
JSP页面贴上来看一下
[解决办法]
(Only a type can be imported)库没有倒进去的原因,检查下com.xiaoxs.common这个包是不是真确的倒到工程里了