日期:2014-05-18  浏览次数:20539 次

Myeclipse开发Struts遇到错误
我用myeclipse实验《JSP开发应用详解》上ch17的struts简单应用。

我的环境:
 
jdk   1.5  
Eclipse   3.1(已汉化)
myeclipse   4.1.1   GA
书上stuts应用应该是1.1的
tomcat   5.5

我配置完struts-config.xml   在server.xml设置了数据库源,开启Sql   Server   2000   。

--------------------------
但在将项目文件拖入ch17这个项目时候出现错误,随后jsp文件什么的都打不开了:

由于发生内部错误而无法创建此部件。产生该故障的原因是:An   error   has   occurred   when   initializing   the   input   for   the   the   editor 's   source   page.

An   error   has   occurred   when   initializing   the   input   for   the   the   editor 's   source   page.
at   com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:275)
at   org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)

..........................................................(省略)

在Eclipse里“问题”中这样写的:

Run-time   exception   java.lang.InternalError   occurred   during   validation.   The   validator   being   run   was   JSP   Validator   and   the   message   thrown   was   jzentry   ==   0,
  jzfile   =   79651040,
  total   =   389,
  name   =   d:\workspace\ch17\WebRoot\WEB-INF\lib\standard.jar,
  i   =   78,
  message   =   invalid   LOC   header   (bad   signature).

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

我在实验JSTL项目的时候也发生过类似错误,实在搞不懂,望高人指教!

------解决方案--------------------
汉化版的经常会有问题,建议用英文版