Eclipse中使用JSP标记时的问题解决!

原创 2004年10月17日 15:47:00
环境:Eclipse3+Lomboz3+EMF2.0.0+GEF2.0.1+TomcatPlugin3

在保存带有<%@ taglib xxxx... 的JSP页面和修改时会出现两种错误:

1.!ENTRY org.eclipse.ui 2 0 十月 17, 2004 15:00:12.187
!MESSAGE Save Failed
!STACK 0
java.lang.NoClassDefFoundError
 at com.objectlearn.jasper.LombozOptions.getTldLocationsCache(LombozOptions.java:184)
 at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:523)
 at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1548)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:127)
 at com.objectlearn.jasper.LombozParserController.parse(LombozParserController.java:387)
 at com.objectlearn.jasper.LombozParserController.parse(LombozParserController.java:188)
 at com.objectlearn.jasper.LombozParserController.parse(LombozParserController.java:156)
 at com.objectlearn.jasper.LombozJspC.parseInternal(LombozJspC.java:179)
 at com.objectlearn.jasper.LombozJspC.parse(LombozJspC.java:124)
 at com.objectlearn.jdt.j2ee.core.Project.parseJSP(Project.java:754)
 at com.objectlearn.jdt.j2ee.editor.JspEditor.parseDocument(JspEditor.java:264)
 at com.objectlearn.jdt.j2ee.editor.JspContentOutlinePage$ContentProvider.inputChanged(JspContentOutlinePage.java:160)
 at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:234)
 at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1059)
 at com.objectlearn.jdt.j2ee.editor.JspContentOutlinePage.setViewerInput(JspContentOutlinePage.java:319)
 at com.objectlearn.jdt.j2ee.editor.JspContentOutlinePage.setInput(JspContentOutlinePage.java:293)
 at com.objectlearn.jdt.j2ee.editor.JspEditor.doSave(JspEditor.java:178)
 at org.eclipse.ui.internal.EditorManager$12.run(EditorManager.java:1160)
 at org.eclipse.ui.internal.EditorManager$10.run(EditorManager.java:1015)
 at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
 at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:588)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
 at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:585)
 at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1653)
 at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager.java:1021)
 at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1165)
 at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2539)
 at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2551)
 at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
 at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
 at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:141)
 at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:889)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:930)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:548)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:496)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:261)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
 at org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
 at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
 at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
 at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
 at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
 at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
 at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
 at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
 at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipse.core.launcher.Main.main(Main.java:628)

2.!ENTRY org.eclipse.ui 2 0 十月 17, 2004 14:42:58.734
!MESSAGE Save Failed
!STACK 0
org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed: ContentViewer must have a content provider when input is set.
 at org.eclipse.jface.util.Assert.isTrue(Assert.java:168)
 at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:229)
 at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1059)
 at com.objectlearn.jdt.j2ee.editor.JspContentOutlinePage.setViewerInput(JspContentOutlinePage.java:319)
 at com.objectlearn.jdt.j2ee.editor.JspContentOutlinePage.setInput(JspContentOutlinePage.java:293)
 at com.objectlearn.jdt.j2ee.editor.JspEditor.doSave(JspEditor.java:178)
 at org.eclipse.ui.internal.EditorManager$12.run(EditorManager.java:1160)
 at org.eclipse.ui.internal.EditorManager$10.run(EditorManager.java:1015)
 at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
 at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:588)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
 at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:585)
 at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1653)
 at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager.java:1021)
 at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1165)
 at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2539)
 at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2551)
 at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
 at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
 at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:141)
 at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:889)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:930)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:548)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:496)
 at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:261)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
 at org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
 at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
 at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
 at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
 at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
 at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
 at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
 at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
 at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipse.core.launcher.Main.main(Main.java:628)

在网上找了一大圈,未果。最后,将原来使用的Lomboz3替换成Lomboz3.0.1问题得到解决.

很奇怪的是这个project是一个tomcat项目而非lomboz项目,这也证明Lomboz会干扰Tomcat项目,寻找答案中。

MAVEN项目中JSP页面使用JSTL标签

1、在pom.xml文件中配置如下依赖: javax.servlet jstl 1.2 taglibs standard 1.1.2 2、在JSP文件开头文件声明标签库 ...
  • zxygww
  • zxygww
  • 2015年06月08日 13:44
  • 4376

Eclipse中使用JSP标记时的问题解决!

环境:Eclipse3+Lomboz3+EMF2.0.0+GEF2.0.1+TomcatPlugin3在保存带有1.!ENTRY org.eclipse.ui 2 0 十月 17, 2004 15:0...
  • freejet2k
  • freejet2k
  • 2004年10月17日 15:47
  • 1016

查找 标记时遇到意外的文件结尾

http://topic.csdn.net/u/20100323/18/d8e43d16-5884-4483-8928-5e3fb72988c2.html 我知道了,我拷贝代码的时候不小心嵌套了两个f...
  • xuqianghit
  • xuqianghit
  • 2010年07月29日 20:42
  • 903

JSP入门之自定义标签

第二部分简单讲解:主要讲解el表达式,核心标签库。本章主要讲解:自定义标签库;404页面,505页面,错误页面配置方法...
  • peace1213
  • peace1213
  • 2015年12月15日 10:16
  • 2888

s:action标签的使用方法

使用struts2的action标签时,可以在jsp页面直接调用Action,在调用Action的时候,可以指定Action的name和namespace,如果指定了executeResult参数的属...
  • zyk906705975
  • zyk906705975
  • 2012年07月25日 17:37
  • 11325

struts项目中jsp页面调试方法---debug标签

示例页面代码如下:
  • u012255097
  • u012255097
  • 2017年02月01日 12:55
  • 2977

Eclipse中使用JSP的Include指令的格式问题

关于JSP的Include指令的用法,一般是以下两种情况举个例子:第一种情况 第二种情况    当然了,include指令可以包含动态文件也可以包含静态文件,我们这里不讨论这些.我们会发现includ...
  • island20
  • island20
  • 2007年08月22日 16:14
  • 2617

CSS教程:1.4 复合选择器

一、“交集”选择器 二、“并集”选择器 三、后代选择器 上一节介绍了3种基本的选择器,以这3种基本选择器为基础,通过组合,还可以产生更多种类的选择器,实现更强、更方便的选择功能,复合选择器就...
  • w617280955
  • w617280955
  • 2011年11月16日 18:31
  • 412

struts2中的s标签解析

那就从简单的标签说起吧!1.x中常用的标签只有4中html、bean、logic、tiles 而struts2.0里的标签却没有分类,只用在jsp头文件加上      就能使用str...
  • ye1992
  • ye1992
  • 2012年12月19日 21:31
  • 19241

eclipse开发jsp

eclipse开发jsp一、准备安装程序1、JDK 1.5 安装程序下载 下载地址: https://jsecom15b.sun.com/ECom/EComActionServlet/Download...
  • network97
  • network97
  • 2008年01月23日 16:49
  • 2771
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Eclipse中使用JSP标记时的问题解决!
举报原因:
原因补充:

(最多只允许输入30个字)