facebook

jsp editor doesnt colorise

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #217747 Reply

    glurps
    Member

    after reinstalling (a new version of) eclipse and myeclipse the myeclipse jsp editor doesnt display jsp documents (using xml-syntax) properly anymore.

    <jsp:..> elements are still colorised but the rest reamains black.

    edit: since i updated the projects deployed from myeclipse dont work anymore. the files get deployed but when i try to view the page i get the error “The requested resource (/tagdevelopment/index.jspx) is not available.”

    tomcat5 works fine otherwise. the provided examples work.

    thx

    #217782 Reply

    Scott Anderson
    Participant

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #217815 Reply

    glurps
    Member

    sorry.

    here is the information:

    os: linux (gentoo)
    eclipse: Version: 3.0.1 Build id: 200409161125
    – fresh install, no other plugins
    – org.eclipse.pde.* : 7
    myeclipse: 3.8.2
    – sun-jdk-1.4.2_r05
    tomcat 5.0.27-r4
    – sun-jdk-1.4.2_r05

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)

    the log is very long and quite a lot seams to have gone wrong. i will try to reinstall everything again tomorrow. heres par of the log:

     * Starting Tomcat...
    !SESSION Sep 19, 2004 14:39:12.44 ----------------------------------------------
    eclipse.buildId=I200406251208
    java.version=1.4.2_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.44
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/css_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.108
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/forms_lists_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.126
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/htmlform_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.153
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/html_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.185
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/javascript_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.216
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/jsf_f_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.266
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/jsf_h_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.300
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/struts_bean_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.343
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/struts_html_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.381
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/struts_logic_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Sep 19, 2004 14:39:12.423
    !MESSAGE Installed snippet library: /usr/local/bin/myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.1/snippets/struts_tiles_snippets.xml
    !SESSION Sep 19, 2004 16:54:35.423 ---------------------------------------------
    eclipse.buildId=I200406251208
    java.version=1.4.2_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    
    !ENTRY org.eclipse.core.runtime 4 2 Sep 19, 2004 16:54:35.424
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.ui.internal.ViewFactory.destroyView(ViewFactory.java:397)
            at org.eclipse.ui.internal.ViewFactory.releaseView(ViewFactory.java:484)
            at org.eclipse.ui.internal.ViewFactory$1.run(ViewFactory.java:320)
            at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
            at org.eclipse.core.runtime.Platform.run(Platform.java:747)
            at org.eclipse.ui.internal.ViewFactory.busyRestoreView(ViewFactory.java:259)
            at org.eclipse.ui.internal.ViewFactory$2.run(ViewFactory.java:516)
            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
            at org.eclipse.ui.internal.ViewFactory.restoreView(ViewFactory.java:514)
            at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1583)
            at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:774)
            at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:754)
            at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3008)
            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
            at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3005)
            at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2985)
            at org.eclipse.ui.internal.ShowViewMenu.showOther(ShowViewMenu.java:204)
            at org.eclipse.ui.internal.ShowViewMenu$2.run(ShowViewMenu.java:68)
            at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    

    if that is not enough.. as i said i try again and if the problem reamains i will say so.

    still open for any suggestions.

    thanks so far

    jonas

    #217816 Reply

    Riyad Kalla
    Member

    Jonas,
    If you right click on the JSP fiel, and go to “Open With”, are you sure the “MyEclipse JSP Editor” is the default editor? I’m not farmiliar with this problem… its possible you might be opening the file in our XML editor or something like that?

    #217828 Reply

    glurps
    Member

    okay i made a clean install of everything (tomcat, eclipse, myeclipse)

    tomcat: used gentoo ebuild
    eclipse, myeclipse: as normaluser
    – eclipse is in /usr/local/lib/eclipse
    – myeclipse in ~/.myeclipse.d

    MyEclipse_Enterprise_Workbench_v3.8.2_InstallLog.log ends with:

    Install Action:           RPMSpecFile
                              Status: ERROR
                              Additional Notes: ERROR - There was a problem creating the RPM package. You may not be running as root or may not have installed RPM Builder correctly.
                                                ERROR - java.lang.NullPointerException
    

    and yes i was not root and dont habe rpm installed at all. what confuces me is that it is the very last entry in the log. might be a coincidence or maybe installation was aborded at this point (?). Or did you even exspect an error at this point and therefor but it last?

    after installing eclipse and myeclipse, starting eclipse, and registering workspace/.metadata/.log looks like this

    !SESSION Oct 16, 2004 13:10:54.499 ---------------------------------------------
    eclipse.buildId=M200409161125
    java.version=1.4.2_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.500
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/css_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.577
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/forms_lists_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.596
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/htmlform_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.625
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/html_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.653
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/javascript_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.706
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/jsf_f_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.755
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/jsf_h_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.928
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/struts_bean_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:54.972
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/struts_html_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:55.09
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/struts_logic_snippets.xml
    
    !ENTRY com.genuitec.eclipse.wizards 1 1 Oct 16, 2004 13:10:55.50
    !MESSAGE Installed snippet library: /home/jrb/.myeclipse.d/eclipse/plugins/com.genuitec.eclipse.wizards_3.8.2/snippets/struts_tiles_snippets.xml

    no problems this time.

    but then i got this error while doing one of the following (but which?):
    – create webproject
    – create jsp
    – open external file (probalby this)
    i tried to reproduce the error but it didnt happen a secound time.

    !ENTRY com.ibm.sse.editor 4 4 Oct 16, 2004 13:21:59.613
    !MESSAGE problem trying to configure after model change
    !STACK 0
    java.lang.NullPointerException
            at com.ibm.sse.editor.internal.reconcile.AbstractStructuredTextReconcilingStrategy.getAnnotationModel(Unknown Source)
            at com.ibm.sse.editor.internal.reconcile.AbstractStructuredTextReconcilingStrategy.getAllAnnotationsToRemove(Unknown Source)
            at com.ibm.sse.editor.internal.reconcile.AbstractStructuredTextReconcilingStrategy.setDocument(Unknown Source)
            at com.ibm.sse.editor.StructuredTextReconciler.setReconcilingStrategy(Unknown Source)
            at com.ibm.sse.editor.jsp.StructuredTextViewerConfigurationJSP.getReconciler(Unknown Source)
            at com.ibm.sse.editor.StructuredTextViewer.configure(Unknown Source)
            at com.ibm.sse.editor.StructuredTextEditor$InternalModelStateListener.modelReinitialized(Unknown Source)
            at com.ibm.sse.model.AbstractStructuredModel.fireModelReinitialized(Unknown Source)
            at com.ibm.sse.model.AbstractStructuredModel.modelReinitialized(Unknown Source)
            at com.ibm.sse.model.AbstractStructuredModel.reinit(Unknown Source)
            at com.ibm.sse.model.AbstractStructuredModel.changedModel(Unknown Source)
            at com.ibm.sse.model.xml.internal.document.XMLModelImpl.changedModel(Unknown Source)
            at com.ibm.sse.model.jsp.document.PageDirectiveAdapterImpl.modelReinitNeeded(Unknown Source)
            at com.ibm.sse.model.jsp.document.PageDirectiveAdapterImpl.setCachedContentType(Unknown Source)
            at com.ibm.sse.model.jsp.document.PageDirectiveAdapterImpl.changedContentType(Unknown Source)
            at com.ibm.sse.model.jsp.document.PageDirectiveWatcherImpl.<init>(Unknown Source)
            at com.ibm.sse.model.jsp.document.PageDirectiveWatcherFactory.createAdapter(Unknown Source)
            at com.ibm.sse.model.AbstractAdapterFactory.adaptNew(Unknown Source)
            at com.ibm.sse.model.AbstractAdapterFactory.adapt(Unknown Source)
            at com.ibm.sse.model.xml.internal.propagate.PropagatingAdapterImpl.adaptOnCreate(Unknown Source)
            at com.ibm.sse.model.xml.internal.propagate.PropagatingAdapterImpl.propagateTo(Unknown Source)
            at com.ibm.sse.model.xml.internal.propagate.PropagatingAdapterImpl.propagateToChildren(Unknown Source)
            at com.ibm.sse.model.xml.internal.propagate.PropagatingAdapterImpl.propagateTo(Unknown Source)
            at com.ibm.sse.model.xml.internal.propagate.PropagatingAdapterImpl.notifyChanged(Unknown Source)
            at com.ibm.sse.model.AbstractNotifier.notify(Unknown Source)
            at com.ibm.sse.model.xml.internal.document.XMLModelNotifierImpl.notify(Unknown Source)
            at com.ibm.sse.model.xml.internal.document.XMLModelNotifierImpl.notifyDeferred(Unknown Source)
            at com.ibm.sse.model.xml.internal.document.XMLModelNotifierImpl.endChanging(Unknown Source)
            at com.ibm.sse.model.xml.internal.document.XMLModelImpl.nodesReplaced(Unknown Source)
            at com.ibm.sse.model.internal.text.BasicStructuredDocument._fireEvent(Unknown Source)
            at com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(Unknown Source)
            at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown Source)
            at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown Source)
            at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601)
            at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
            at org.eclipse.swt.custom.StyledText.paste(StyledText.java:5638)
            at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3417)
            at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:757)
            at com.ibm.sse.editor.StructuredTextViewer.doOperation(Unknown Source)
            at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
            at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
            at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
            at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:143)
            at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:453)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:871)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:912)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:530)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:478)
            at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:243)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
            at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1006)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:953)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:978)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:963)
            at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:2347)
            at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1826)
            at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:440)
            at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1207)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:3098)
            at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method)
            at org.eclipse.swt.widgets.Display.eventProc(Display.java:879)
            at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2297)
            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(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)
    

    while opening the external jsp-document i was warned that i cant use the jsp editor so it opened in standart xml editor.
    in this editor (its source view) the coloring problem was the same as in jsp editor.
    by the way: i am using the jsp-editor for .jsp and .jspx i am quite sure. i even made sure by explisitly choosing that editor when opening files.

    edit: the file associations are correctly set for .jspx also. question: where are these settings stored? i remember that i originally had to set this but after my reinstalles the .jspx-entrie wasn’t gone as i expected. i thought eclipse keeps all its file in its home directory.

    before i used the open-external-file i opened one of the .jspx from my old project with emacs and noticed some ^M characters

    [...]
    ^M
            <inv:head />^M
    
            <body>
    
                    test
    
            </body>^M
    ^M
    </html>
    

    i cant see this characters in eclipse. after i removed them with emacs still no color in eclipse.

    i might add that jsp files, that such in old syntax not xml are in full color.

    jonas

    #217831 Reply

    Scott Anderson
    Participant

    jonas,

    Can you send us an example of one of the JSP’s you’re having a problem with to support@genuitec.com? That will allow us to see if this is a bug or installation issue. Also, please include a reference to this URL so that whomever receives it can route it properly internally.

    #217872 Reply

    Riyad Kalla
    Member

    Jonas,
    This is a bug that snuck in somehow but we are investigating it with the help of your sample page and a few others to figure out how it got introduced.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: jsp editor doesnt colorise

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