在tomcat下找不到包是怎么回事?急急急急急急急急!!

shhhl 2004-03-16 10:46:11
我已开始做网站的时候是在Resin环境下制作的,并调试一切正常,但是上传到服务器以后,却告知找不到包,对方服务器使用的是tomcat5.0。我没有过tomcat,不知道该怎么办,是不是要在web-inf目录下写入一个web.xml的配置文件,但是这个文件我不会写。有没有人能够告知如何解决。错误提示如下:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /index.jsp

Generated servlet error:
[javac] Compiling 1 source file
[javac] /usr/local/tomcat5/work/Catalina/www.ycepa.com/_/org/apache/jsp/index_jsp.java:53: package mypackage does not exist
[javac] mypackage.dbconn nn = null;
[javac] ^



An error occurred at line: 4 in the jsp file: /index.jsp

Generated servlet error:
[javac] /usr/local/tomcat5/work/Catalina/www.ycepa.com/_/org/apache/jsp/index_jsp.java:55: package mypackage does not exist
[javac] nn = (mypackage.dbconn) _jspx_page_context.getAttribute("nn", PageContext.PAGE_SCOPE);
[javac] ^



An error occurred at line: 4 in the jsp file: /index.jsp

Generated servlet error:
[javac] /usr/local/tomcat5/work/Catalina/www.ycepa.com/_/org/apache/jsp/index_jsp.java:57: package mypackage does not exist
[javac] nn = new mypackage.dbconn();
[javac] ^
[javac] Note: /usr/local/tomcat5/work/Catalina/www.ycepa.com/_/org/apache/jsp/index_jsp.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 3 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)
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:29)
...全文
62 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
Building 2004-03-16
没把类放对位置吧?
回复
凋零的老树 2004-03-16
那边服务器没有把包的路径加到classpath中
回复
shhhl 2004-03-16
没有人帮我吗。救命呀
回复
shhhl 2004-03-16
顶以下。大家帮帮忙!
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2004-03-16 10:46
社区公告
暂无公告