Topic: 无奈的问题,请高手指点,先谢了!

  Print this page

1.无奈的问题,请高手指点,先谢了! Copy to clipboard
Posted by: jokehan
Posted on: 2005-10-27 13:55

错误页面如下:
--------------------------------------------------------------------------------------------------------------
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

Generated servlet error:
Only a type can be imported. public.DBM resolves to a package

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:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
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)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.

--------------------------------------------------------------------------------

Apache Tomcat/5.5.12
--------------------------------------------------------------------------------------------------------------
我把JSWDK中的论坛移植到TOMCAT上,出现了上面的问题,public包是在E:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\bbs路径下的,该设置的该配置的都做了,无奈了,请高手指点!

2.Re:无奈的问题,请高手指点,先谢了! [Re: jokehan] Copy to clipboard
Posted by: jsmile
Posted on: 2005-10-27 21:38

It's due to your import statement error, change the import in your jsp to public.DBM.* or a specific class.

3.Re:无奈的问题,请高手指点,先谢了! [Re: jokehan] Copy to clipboard
Posted by: jokehan
Posted on: 2005-10-28 09:16

谢谢楼上的朋友!
public.DBM;这里DBM就是我所需的类,语法都没错误,在JSWDK环境下运行正常!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923