`
忘忧鸟
  • 浏览: 142118 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

打开Struts配置文件报错myeclipse struts config editor

阅读更多


用MyEclipse struts config editor 编辑器编辑Struts的配置文件错误:

org.eclipse.ui.PartInitException: Project fuNan_eAdmin is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-action.xml. The default XML Editor has been used to open the file instead.
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.init(StrutsConfigEditor.java:475)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:794)
at org.eclipse.ui.internal.EditorReference.createPartHelper.....
解决方法:
方法1.在项目上点击右键,选择“myeclipe”下的“add struts capabilities”即可解决

方法2.若方法一不能解决,则找到项目所在目录,找到.project文件。在<natures>节点中添加<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,重新打开项目问题即可解决。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics