Myeclipse下建立起来的工程,运行后进入了登录界面,输入用户名和密码后出现如下信息

[复制链接]
查看11 | 回复1 | 2010-5-23 13:52:18 | 显示全部楼层 |阅读模式
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.Error: Unresolved compilation problems:
The import sun.text.CompactShortArray cannot be resolved
TResourceId cannot be resolved to a type
TResourceId cannot be resolved to a type
The method setLocalname(String) is undefined for the type TResource
TResourceId cannot be resolved to a type
TResourceId cannot be resolved to a type
The method setLocalname(String) is undefined for the type TResource
The method setTClass(TClass) is undefined for the type TInstancevalueId
The method setDescriptions(String) is undefined for the type TInstancevalue
dao.TResourceServiceDAO.(TResourceServiceDAO.java:9)
com.yourcompany.struts.action.UserLoginAction.execute(UserLoginAction.java:96)
org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
________________________________________
Apache Tomcat/6.0.13
请高手指点!谢谢!
项目中,src中的com.yourcompany.struts标记有错,数据库连接的java文件中显示导入包import sun.text.CompactShortArray.Iterator;有错
我已将SQL Server 2000的驱动jar包放在webroot/web-inf下的lib中了,并且已升级到sp4

回复

使用道具 举报

千问 | 2010-5-23 13:52:18 | 显示全部楼层
这不是驱动的问题,你设置以下断点看到那里报错的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行