Announcement Announcement Module
Collapse
No announcement yet.
error with springIDE 1.2.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • error with springIDE 1.2.5

    I've just updated springIDE to v 1.2.5
    And now, starting Eclipse (3.1.1, WTP 1.0, Spring 1.2.6 jars) I get this log, and in the Spring View, I can't display the Beans Graph.
    I had no trouble with 1.2.4

    !SESSION 2006-01-12 14:22:35.796 -----------------------------------------------
    eclipse.buildId=M20050929-0840
    java.version=1.4.2_10
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.ui.workbench 4 2 2006-01-12 14:22:40.578
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
    at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionReader.loadBeanDefinit ions(EventBeanDefinitionReader.java:110)
    at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionRegistry.loadBeanDefin itions(EventBeanDefinitionRegistry.java:51)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.readConfig(BeansConfig.java:30 9)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.getBeans(BeansConfig.java:184)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfigSet.getBeansMap(BeansConfigSet. java:176)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfigSet.getBeans(BeansConfigSet.jav a:135)
    at org.springframework.ide.eclipse.beans.ui.graph.edi tor.GraphEditorInput.createBeansMap(GraphEditorInp ut.java:188)
    at org.springframework.ide.eclipse.beans.ui.graph.edi tor.GraphEditorInput.<init>(GraphEditorInput.java: 172)
    at org.springframework.ide.eclipse.beans.ui.graph.edi tor.GraphEditorInputFactory.createElement(GraphEdi torInputFactory.java:48)
    at org.eclipse.ui.internal.EditorReference.getRestore dInput(EditorReference.java:325)
    at org.eclipse.ui.internal.EditorReference.getEditorI nput(EditorReference.java:288)
    at org.eclipse.ui.internal.EditorReference.createPart Helper(EditorReference.java:546)
    at org.eclipse.ui.internal.EditorReference.createPart (EditorReference.java:384)
    at org.eclipse.ui.internal.WorkbenchPartReference.get Part(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibl eEditor(EditorAreaHelper.java:258)
    at org.eclipse.ui.internal.EditorManager.setVisibleEd itor(EditorManager.java:1221)
    at org.eclipse.ui.internal.EditorManager$5.run(Editor Manager.java:949)
    at org.eclipse.core.internal.runtime.InternalPlatform .run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:783)
    at org.eclipse.ui.internal.EditorManager.restoreState (EditorManager.java:944)
    at org.eclipse.ui.internal.WorkbenchPage.restoreState (WorkbenchPage.java:2576)
    at org.eclipse.ui.internal.WorkbenchWindow.restoreSta te(WorkbenchWindow.java:1819)
    at org.eclipse.ui.internal.Workbench.doRestoreState(W orkbench.java:2566)
    at org.eclipse.ui.internal.Workbench.access$14(Workbe nch.java:2515)
    at org.eclipse.ui.internal.Workbench$19.run(Workbench .java:1514)
    at org.eclipse.ui.internal.Workbench$16.run(Workbench .java:1263)
    at org.eclipse.jface.operation.ModalContext.runInCurr entThread(ModalContext.java:346)
    at org.eclipse.jface.operation.ModalContext.run(Modal Context.java:291)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.ru n(ProgressMonitorDialog.java:447)
    at org.eclipse.ui.internal.Workbench.runStartupWithPr ogress(Workbench.java:1258)
    at org.eclipse.ui.internal.Workbench.restoreState(Wor kbench.java:1512)
    at org.eclipse.ui.internal.Workbench.access$12(Workbe nch.java:1491)
    at org.eclipse.ui.internal.Workbench$17.run(Workbench .java:1374)
    at org.eclipse.core.internal.runtime.InternalPlatform .run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:783)
    at org.eclipse.ui.internal.Workbench.restoreState(Wor kbench.java:1318)
    at org.eclipse.ui.internal.WorkbenchConfigurer.restor eState(WorkbenchConfigurer.java:183)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWi ndows(WorkbenchAdvisor.java:700)
    at org.eclipse.ui.internal.Workbench.init(Workbench.j ava:1034)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:1636)
    at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDE Application.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivato r$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.invokeFramework(Mai n.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java: 278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.eclipse_main(Main.j ava:948)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.m7.installer.util.NitroxMain$1.run(NitroxMain. java:29)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:179)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 478)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:100)

    !ENTRY org.eclipse.ui 4 4 2006-01-12 14:23:32.812
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-01-12 14:23:32.812
    !MESSAGE org/w3c/dom/DOMError
    !STACK 0
    java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
    at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionReader.loadBeanDefinit ions(EventBeanDefinitionReader.java:110)
    at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionRegistry.loadBeanDefin itions(EventBeanDefinitionRegistry.java:51)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.readConfig(BeansConfig.java:30 9)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.getBeans(BeansConfig.java:184)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.toString(BeansConfig.java:228)
    at org.springframework.ide.eclipse.beans.ui.model.Con figNode.toString(ConfigNode.java:165)
    at java.lang.String.valueOf(String.java:2131)
    at java.lang.StringBuffer.append(StringBuffer.java:37 0)
    at java.util.AbstractMap.toString(AbstractMap.java:58 9)
    at java.lang.String.valueOf(String.java:2131)
    at java.lang.StringBuffer.append(StringBuffer.java:37 0)
    at org.springframework.ide.eclipse.beans.ui.model.Pro jectNode.toString(ProjectNode.java:229)
    at org.springframework.ide.eclipse.beans.ui.views.Bea nsView$2.compare(BeansView.java:142)
    at org.eclipse.jface.viewers.ViewerSorter$1.compare(V iewerSorter.java:177)
    at java.util.Arrays.mergeSort(Arrays.java:1278)
    at java.util.Arrays.sort(Arrays.java:1219)
    at org.eclipse.jface.viewers.ViewerSorter.sort(Viewer Sorter.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.getSort edChildren(StructuredViewer.java:909)
    at org.eclipse.jface.viewers.AbstractTreeViewer.updat eChildren(AbstractTreeViewer.java:1707)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inter nalRefreshStruct(AbstractTreeViewer.java:1268)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inter nalRefresh(AbstractTreeViewer.java:1245)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inter nalRefresh(AbstractTreeViewer.java:1201)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inter nalRefresh(AbstractTreeViewer.java:1188)
    at org.eclipse.jface.viewers.StructuredViewer$7.run(S tructuredViewer.java:1264)
    etc, etc .......

  • #2
    Originally posted by dombat1
    java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
    The class "org.w3c.dom.DOMError" belongs to the "xml-apis.jar" from Xerces 2.7 which ships with Spring IDE's "org.springframework.ide.eclipse.core" plugin. Maybe the update to Spring IDE 1.2.5 wasn't successfully or your Eclipse installation is messed up. Please check your Eclipse configuration (menu item "Help" -> "About Eclipse SDK" -> Button "Configuration Details") for the following lines:
    Code:
    org.springframework.ide.eclipse (1.2.5) "Spring IDE" [Resolved]
    org.springframework.ide.eclipse.beans.core (1.2.5) "Spring IDE Beans Core" [Active]
    org.springframework.ide.eclipse.beans.ui (1.2.4) "Spring IDE Beans UI" [Active]
    org.springframework.ide.eclipse.beans.ui.doc (1.2.1) "Spring IDE Beans Documentation" [Resolved]
    org.springframework.ide.eclipse.beans.ui.editor (1.0.0) "Spring IDE Beans Config Editor" [Active]
    org.springframework.ide.eclipse.beans.ui.graph (1.2.2) "Spring IDE Beans Graph" [Active]
    org.springframework.ide.eclipse.core (1.2.5) "Spring IDE Core" [Active]
    org.springframework.ide.eclipse.core.doc (1.2.6) "Spring Framework Reference Documentation" [Resolved]
    org.springframework.ide.eclipse.ui (1.2.2) "Spring IDE UI" [Active]

    Comment


    • #3
      i had the same problem. doesn't look like that jar was included with the upgrade. when i added xml-apis.jar to the core directory everything was fine.

      Comment


      • #4
        Bugfix available

        Originally posted by daveqr1
        doesn't look like that jar was included with the upgrade. when I added xml-apis.jar to the core directory everything was fine.
        Yes, that's the reason for the NoClassDefFoundError. During upgrading Xerces from 2.4 to 2.7 I forgot to change the core plugin's "build.properties" accordingly (xmlParserAPIs.jar was renamed to xml-apis.jar). So the xml-apis.jar wasn't packaged with the core plugin during build.

        During our tests we didn't experience this error because we're running JDK 1.5 where Xerces 2.7 is part of the JDK. So all users with JDK 1.4.x will run into this problem :-(

        This is fixed and a new version of the core plugin with including "xml-apis.jar" is available on the updatesite. Another bugfix is included as well.

        So you have to re-install Spring IDE 1.2.5 from the updatesite.

        Sorry for this inconvenience.
        Torsten

        Comment


        • #5
          Java 1.5 issue?

          When I try to load a bunch of spring config files using spring ide 1.2.5, I get the following exception in the eclipse logs.

          Upon further investigation it turns out that this method relies upon the xml apis in Java 1.5 while I am running 1.4 (The exact issue is that the class org/w3c/dom/UserDataHandler is missing in JRE 1.4.2)

          Do I have to use spring ide 1.2.5 with Java 1.5 or is there a way I can use it with 1.4?

          !ENTRY org.eclipse.ui 4 0 Feb 21, 2006 17:15:07.873
          !MESSAGE org/apache/xerces/dom/NodeImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandlerLjava/lang/Object;
          !STACK 0
          java.lang.NoSuchMethodError: org/apache/xerces/dom/NodeImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandlerLjava/lang/Object;
          at org.springframework.ide.eclipse.core.io.xml.LineNu mberPreservingDOMParser.addLineNumberToCurrentNode (LineNumberPreservingDOMParser.java:98)
          at org.springframework.ide.eclipse.core.io.xml.LineNu mberPreservingDOMParser.startElement(LineNumberPre servingDOMParser.java:85)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.startEl ement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anStartElement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NS ContentDispatcher.scanRootElementHook(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionReader.loadBeanDefinit ions(Unknown Source)
          at org.springframework.ide.eclipse.beans.core.interna l.parser.EventBeanDefinitionRegistry.loadBeanDefin itions(Unknown Source)
          at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.readConfig(Unknown Source)
          at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig.getException(Unknown Source)
          at org.springframework.ide.eclipse.beans.ui.model.Con figNode.createBeans(Unknown Source)
          at org.springframework.ide.eclipse.beans.ui.model.Con figNode.getBeans(Unknown Source)
          at org.springframework.ide.eclipse.beans.ui.views.Bea nsViewContentProvider.getChildren(Unknown Source)
          at org.eclipse.jface.viewers.AbstractTreeViewer.getRa wChildren(Unknown Source)
          at org.eclipse.jface.viewers.StructuredViewer.getFilt eredChildren(Unknown Source)
          at org.eclipse.jface.viewers.StructuredViewer.getSort edChildren(Unknown Source)
          at org.eclipse.jface.viewers.AbstractTreeViewer$1.run (Unknown Source)
          at org.eclipse.swt.custom.BusyIndicator.showWhile(Unk nown Source)
          at org.eclipse.jface.viewers.AbstractTreeViewer.creat eChildren(Unknown Source)
          at org.eclipse.jface.viewers.AbstractTreeViewer.handl eTreeExpand(Unknown Source)
          at org.eclipse.jface.viewers.AbstractTreeViewer$4.tre eExpanded(Unknown Source)
          at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
          at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
          at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
          at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
          at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
          at org.eclipse.swt.widgets.Tree.wmNotifyChild(Unknown Source)
          at org.eclipse.swt.widgets.Control.WM_NOTIFY(Unknown Source)
          at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Unknow n Source)
          at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
          at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
          at org.eclipse.swt.internal.win32.OS.CallWindowProcW( Native Method)
          at org.eclipse.swt.internal.win32.OS.CallWindowProc(U nknown Source)
          at org.eclipse.swt.widgets.Tree.callWindowProc(Unknow n Source)
          at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Unknow n Source)
          at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
          at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
          at org.eclipse.swt.internal.win32.OS.DispatchMessageW (Native Method)
          at org.eclipse.swt.internal.win32.OS.DispatchMessage( Unknown Source)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Unk nown Source)
          at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
          at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Unknown Source)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Un known Source)
          at org.eclipse.ui.internal.ide.IDEApplication.run(Unk nown Source)
          at org.eclipse.core.internal.runtime.PlatformActivato r$1.run(Unknown Source)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:273)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:129)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:85)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:58)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:60)
          at java.lang.reflect.Method.invoke(Method.java:391)
          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)

          !ENTRY org.eclipse.ui 4 4 Feb 21, 2006 17:15:08.686
          !MESSAGE Unhandled event loop exception

          Comment


          • #6
            Originally posted by shar_deo
            When I try to load a bunch of spring config files using spring ide 1.2.5, I get the following exception in the eclipse logs.

            Upon further investigation it turns out that this method relies upon the xml apis in Java 1.5 while I am running 1.4 (The exact issue is that the class org/w3c/dom/UserDataHandler is missing in JRE 1.4.2)

            Do I have to use spring ide 1.2.5 with Java 1.5 or is there a way I can use it with 1.4?
            No, you don't need Java 1.5 to run Spring IDE. Spring IDE ships with it's own version of Apache Xerces (which is the one from Java 1.5 :-).

            It seems that you have a problem with your Eclipse / Spring IDE installation. The core plugin from Spring IDE 1.2.5 (containing Xerces) is not referenced correctly. Please delete all plugins / features of Spring IDE from your Eclipse installation and re-install Spring IDE via Eclipse update manager.

            Torsten

            Comment


            • #7
              did not work...

              I tried unistall, cleaning up and re-installing the plugin from the update site and it did not work.
              One more thing, I am using RSA 6.0.1 and not eclipse. Could that be the problem?

              But 1.2.4 seems to work.

              Comment


              • #8
                Originally posted by shar_deo
                I am using RSA 6.0.1 and not eclipse. Could that be the problem?
                No. Unless RSA 6.0.1 ships with it's own version of JDK (e.g. IBM's one) with an older version of Xerces replacing Sun's buggy Crimson XML parser (which is shipped with Sun's JDK). Spring IDE requires Xerces 2.7.x due to DOM Level 3 support (user data).

                Originally posted by shar_deo
                But 1.2.4 seems to work.
                Ok, then let's check your Eclipse installation a bit:

                1. Post your system configuration (Menu "Help / About / Configuration Details"

                2. Check the contents of the directory assigned to the system property "java.endorsed.dirs" (see "Configuration Details") -> no XML stuff should be here -> this is replacing Sun's Crimson XML parser which is shipped with Sun's JDK 1.4.2

                3. Check the arguments of your startup icon of RSA for the stuff mentioned here -> http://www.eclipse.org/emf/downloads-xerces.php

                4. Double-check that Spring IDE's core plugin contains both XML parser libraries (xml-apis.jar and xercesImpl.jar).


                If 2. or 3. are true then load the latest version of Apache Xerces and replace the old libraries in the mentioned endorsed directory with the 2 new libraries (the same ones shipped with Spring IDE's core plugin). You can copy the XML parser libraries from Spring IDE's core plugin too (it's shipping with the latest version 2.7.1).

                Hope this helps.
                Torsten
                Last edited by Torsten Juergeleit; Feb 23rd, 2006, 04:26 PM.

                Comment


                • #9
                  Attached is my Configuration Details. I can't find a property for java.endorsed.dirs

                  Since I am running RSA, I don't have any startup vm args (I am just executing the rationalsdp.exe file). Is there somewhere else I can look for the vm args are?

                  I am also convinced that the problem is with IBM's JRE.
                  Can you tell me which folder I would have to replace the jars? I am running pretty much the standard RSA installation and haven't mucked much with the default settings.

                  Thanks

                  Comment


                  • #10
                    Originally posted by shar_deo
                    Attached is my Configuration Details. I can't find a property for java.endorsed.dirs
                    Me too :-) Sorry, I don't know anything about IBM's JREs.

                    Originally posted by shar_deo
                    Since I am running RSA, I don't have any startup vm args (I am just executing the rationalsdp.exe file). Is there somewhere else I can look for the vm args are?
                    Maybe rationalsdp.exe is the same launcher as eclipse.exe. In this case you can add the required arguments here. Anyway, rationalsdp.exe must provide a way to let you specify the memory settings for your JVM.

                    Originally posted by shar_deo
                    I am also convinced that the problem is with IBM's JRE.
                    Can you tell me which folder I would have to replace the jars?
                    As I already said, I know nothing about IBM's JREs. But I would look for a directory named "endorsed" in "C:\RSA6.0\eclipse\jre\lib\".

                    Hope this helps.
                    Torsten

                    Comment


                    • #11
                      UserDataHandler in jre 1.4 vs 1.5

                      I did some research and found the following.

                      The following line was causing the exception:
                      xerces 2.7.1 org.apache.xerces.dom.NodeImpl (line 1774) is:

                      public Object setUserData(String key,
                      Object data,
                      UserDataHandler handler) {
                      return ownerDocument().setUserData(this, key, data, handler);
                      }

                      and line 24 is:

                      import org.w3c.dom.UserDataHandler;

                      The problem is that JRE 1.4 does not have a org.w3c.dom.UserDataHandler at all.
                      In JRE 1.4 the UserDataHandler class was in package org.apache.xerces.dom3.UserDataHandler. This both for Sun Java and IBM Java. In fact, if I download the xerces 2.7.1 source, it will not compile with java 1.4 for this reason.

                      It is only in Java 1.5 that org.w3c.dom.UserDataHandler exists.

                      Can you confirm this? If so, how has anyone been able to run the spring IDE plugin in a pure 1.4 environment with no 1.5 libraries in the classpath?

                      Comment


                      • #12
                        Originally posted by shar_deo
                        The problem is that JRE 1.4 does not have a org.w3c.dom.UserDataHandler at all.
                        Yes, that's true.

                        Originally posted by shar_deo
                        In JRE 1.4 the UserDataHandler class was in package org.apache.xerces.dom3.UserDataHandler. This both for Sun Java and IBM Java.
                        Hhm, IMHO Sun's JRE 1.4 ships with Sun's buggy Crimson XML parser not Apache's Xerces. So no package 'org.apache.xerces.' should be available in a plain JRE 1.4.

                        Originally posted by shar_deo
                        In fact, if I download the xerces 2.7.1 source, it will not compile with java 1.4 for this reason.
                        You need the separate library "xml-apis.jar" with W3C's latest DOM API. This library ships with Spring IDE's core plugin. But this library's classes seem to be shadowed by your JRE's library "xmlParserAPIs.jar" which belongs to an older version of Xerces.

                        Originally posted by shar_deo
                        It is only in Java 1.5 that org.w3c.dom.UserDataHandler exists.
                        No, it's available in "xml-apis.jar" which is part of Xerces 2.7.1 binary dist.

                        Originally posted by shar_deo
                        Can you confirm this? If so, how has anyone been able to run the spring IDE plugin in a pure 1.4 environment with no 1.5 libraries in the classpath?
                        Maybe they are not running IBM's J9 with an outdated Xerces (the one which uses "org.apache.xerces.dom3.UserDataHandler" instead of "org.w3c.dom.UserDataHandler") in their "endorsed" lib ;-)

                        Sorry, maybe you should try a different JRE or find and remove / replace the old Xerces libs ("xmlParserAPIs.jar" and "xercesImpl.jar") from your JDK or RSA installation.

                        BTW the access logs of Spring IDE's update site indicate that a few users downloaded Spring IDE v1.2.5 (in February more than 16.000 ;-).

                        Torsten

                        Comment

                        Working...
                        X