|
Java学習者论坛
各位高手,我是个初学Zhe,现在我把yuan有的系統(win2000 server,tomcat4.1.27.exe,j2sdk1.3-win.exe,NT系统服务启动tomcat,tomcat端口为80)升級为win2000server,tomcat5.0.19.exe,j2sdk1.5-bate-windows-586.exe.可是我安装完成之后,按照以前系统的配置方法(环境变量配置正确,把应用Web程序放在webapps\ROOT下。自己写的lei(MyExecSQL,checkInputData等)放在webapps\ROOT\WEB-INF\classes\下)配置了tomcat5.0.19之后,我原先自己做De东西跑不qi来。 (不放入自己的ROOT的话,啟动tomcat5能出现欢迎登录tomcat的界面。)当我登录(http://192.168.1.101.CPSC.JSP)之后chu现输ru用户名和密码的登陆框,可是輸入完相应的信息之后就出現http500错誤,在本论坛上所shuoDe我baj2sdk1.5和tomcat5.0.19重装(自己机器和在别人的从没裝過j2sdk1.xx和tomcatx.xx的机器上)了n遍,就是出现如下所示的错误:
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: -1 in the jsp file: null
Generated Servlet error:
[javac] Compiling 1 source file
E:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\DengLu_jsp.java:6: '.' expected
import MyExecSQL;
E:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\DengLu_jsp.java:7: '.' expected
import checkInputData;
^2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
MyExecSQL,checkInputDatadeng是我写的class.我单独编译都没问题,可升级后的系统就是跑不起来。是不是我还需要配置什么?把我自己的class文件放在什么目录下?或者環境变量需要在加什么东西?我在这四周找遍了網上各ge论坛,就是mei有解决这问題,我在这里求救、懇求ge位高手大哥men了!!谢謝!!
欢迎来到Java学习者论坛,转载请zhu明地址:http://www.javaxxz.com. |
|