facebook

JSP Validation Not Working (MyEclipse 3.8.4)

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #227323 Reply

    JSP validation is not working for some of our developers. Oddly, it does for me with the identical projects and preferences.

    We have an invalid JSP which uses a bean clean that does not exist. If you look at the jsp in the editor, it shows the red box in the right margin with the correct error message. However, there are no problems listed in the Problems view and that view is setup to show all issues.

    We have global prerferences for MyEclipse validation to validate DTDs and JSPs (not HTML or XML). We are running on Windows XP using…

    Eclipse Platform

    Version: 3.0.1
    Build id: 200409161125

    MyEclipse Help Documentation

    Version: 3.8.4
    Build id: 200501171200-3.8.4

    I have noticed that for everyone else they have a error in their log file about “Problem during external library taglib search.” See listing below.

    I found another thread that seemed relevant
    (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-6550-highlight-jsp+compilation+error.html).
    However, the resolution about locating javac does not seem applicable. The Java compiler is on the system PATH and there are no errors related to javac in the log file.

    Please help! I have been tearing out my hair. Thanks…
    Dorothy

    ———————————–

    !ENTRY com.genuitec.eclipse.j2eedt.core 1 1 Mar 29, 2005 17:26:04.719
    !MESSAGE Problem during external library taglib search.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.taglib.WebTaglibRegistry.processDirectory(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.ā(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.refresh(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.<init>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.WebTaglibRegistry.<init>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager.createNewRegistry(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager.getTaglibRegistry(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.J2EEProjectUtil.getTaglibURIStream(Unknown Source)
    at com.genuitec.eclipse.integration.Integrator.projectResolver_NA1(Unknown Source)
    at com.ibm.sse.model.util.ProjectResolver.getURIStream(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager.loadTaglib(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager.getCMDocument(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.enableTaglibFromURI(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processTaglib(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processTaglib(Unknown Source)
    at com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.nodeParsed(Unknown Source)
    at com.ibm.sse.model.xml.internal.parser.XMLSourceParser.fireNodeParsed(Unknown Source)
    at com.ibm.sse.model.jsp.parser.JSPSourceParser.parseNodes(Unknown Source)
    at com.ibm.sse.model.xml.internal.parser.XMLSourceParser.getDocumentRegions(Unknown Source)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.setText(Unknown Source)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.set(Unknown Source)
    at com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.setDocument(Unknown Source)
    at com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.processPostModelEvent(Unknown Source)
    at com.ibm.sse.model.LifecycleNotificationManager.signalLifecycleEvent(Unknown Source)
    at com.ibm.sse.model.AbstractStructuredModel.signalLifecycleEvent(Unknown Source)
    at com.ibm.sse.model.AbstractStructuredModel.setStructuredDocument(Unknown Source)
    at com.ibm.sse.model.xml.internal.document.XMLModelImpl.setStructuredDocument(Unknown Source)
    at com.ibm.sse.model.AbstractModelLoader.load(Unknown Source)
    at com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
    at com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
    at com.ibm.sse.model.ModelManagerImpl.getModelForEdit(Unknown Source)
    at com.ibm.sse.editor.FileModelProvider.selfCreateModel(Unknown Source)
    at com.ibm.sse.editor.FileModelProvider.createModelInfo(Unknown Source)
    at com.ibm.sse.editor.FileModelProvider.createElementInfo(Unknown Source)
    at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:397)
    at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:2869)
    at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:173)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1073)
    at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:287)
    at com.ibm.sse.editor.StructuredTextEditor.doSetInput(Unknown Source)
    at com.ibm.sse.editor.jsp.StructuredTextEditorJSP.doSetInput(Unknown Source)
    at org.eclipse.ui.texteditor.AbstractTextEditor$15.run(AbstractTextEditor.java:2233)
    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.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2247)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2265)
    at com.ibm.sse.editor.StructuredTextEditor.init(Unknown Source)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:117)
    at com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createSourcePage(Unknown Source)
    at com.genuitec.eclipse.webdesigner.jspeditor.JSPMultiPageEditorPart.createSourcePage(Unknown Source)
    at com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createPages(Unknown Source)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)
    at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:133)
    at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:939)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
    at org.eclipse.ui.internal.EditorStack.setSelection(EditorStack.java:196)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1020)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:290)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:121)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:59)
    at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:266)
    at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:694)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:683)
    at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:779)
    at org.eclipse.ui.internal.EditorManager.access$12(EditorManager.java:763)
    at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:948)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.ui.internal.EditorManager.busyRestoreEditor(EditorManager.java:922)
    at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:915)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.EditorManager.restoreEditor(EditorManager.java:911)
    at org.eclipse.ui.internal.EditorManager.restoreEditorState(EditorManager.java:1487)
    at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:874)
    at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2470)
    at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1372)
    at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1224)
    at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1185)
    at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1096)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1029)
    at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:167)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:652)
    at org.eclipse.ui.internal.Workbench.init(Workbench.java:819)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    #227325 Reply

    Scott Anderson
    Participant

    Dorothy,

    The exception in the log is unrelated to validation; it’s would affect taglib autocompletion in the JSP editor if anything. One thing I’d check is the JDK that you use to launch Eclipse. It should be printed in the log file each time Eclipse is opened. Please be sure you’re using a full JDK, and that the directory containing javac is at the front of the PATH, as in the thread you referenced as this will surely affect validation. Additionally, please ensure you’re using a Sun 1.4.2 JDK (not IBM or BEA). Also, can you try creating a small test project and seeing if validation works in it properly or is project-specific? How about in another workspace?

    #227329 Reply

    Hi –

    Thanks for the quick response. Unfortunately, no solution yet.

    – we use the Sun JDK 1.4.2_03 (the full JDK). I have also tried JDK 1.4.2_05. Here is the startup messages from the log.

    !SESSION Mar 29, 2005 20:42:47.828 ———————————————
    eclipse.buildId=M200409161125
    java.version=1.4.2_03
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    – I have the %JAVA_HOME%\bin on the front my system path. I have verified that we have javac.exe on the system path and from the correct location.

    – I have tried creating a small test project with the same JSP validation problem. I put the test war project into the same Eclipse workspace that is not correctly validating JSP and the validation works! Somehow, this is problem is related to my project. Note: sometime my project does validate but only on a few Windows systems. Both project do not override the MyEclipse validation settings. The global MyEclipse validation settings are set for DTD and JSP validation.

    – I have tried creating different Eclipse workspace but still it does not validate.

    Any further suggestions would be greatly appreciated. Thanks!
    Dorothy

    #227336 Reply

    I have managed to fix the problem. I have a 3rdparty project with several jars exported. When my web project Java Build Path depends on the 3rdparty project, the validation of JSP does not work. When 3rdparty is removed, the jsp validation works. I do not understand why.

    Now that JSP validation is working, it takes a little more than an hour to validate 88 JSPs.

    While validating, my laptop’s CPU is pegged at 100%. The javaw.exe of Eclipse is using ~380M of the 650M allowed. My machine has 2GB of RAM.

    Is this expected performance? Thanks…
    Dorothy

    #228305 Reply

    Brett Connor
    Member

    I get the same error dealing with taglibs. I’m trying to use MyEclipse on an existing project set, where the project containing the JSPs also contains java and depends on other projects including one that exports jars. Is the conclusion that the MyEclipse JSP editor cannot be used as a JSP editor if the project depends on other projects that contain jars? Is there any other workaround?
    Regards
    Brett

    #228320 Reply

    Riyad Kalla
    Member

    Brett,

    Is the conclusion that the MyEclipse JSP editor cannot be used as a JSP editor if the project depends on other projects that contain jars? Is there any other workaround?

    This is not the case, please start a new thread with all the information we ask for in the posting guidelines as well as a description of your problem. Information about the dependent projects and what is being exported will be helpful as well. We have had people have problems with JSP validation when adding the Jasper JARS in their build path, because we use them internally for validation.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSP Validation Not Working (MyEclipse 3.8.4)

You must be logged in to post in the forum log in