Dentaku
  1. Dentaku
  2. DENTAKU-21

repository.getExtent error for all other than maven build

    Details

    • Type: Task Task
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Example Model
    • Labels:
      None
    • Environment:
      W2K Server JDK 1.4.2_06
    • Number of attachments :
      0

      Description

      No matter what method you use to build example-modle or example-summit-webapp from inside Eclipse an error occurs. Using mevenide to launch it from within Eclispe works, but does not allow debug. I have tried a JUnit test and a straight class with main. Each one gets the following exception.

      If I run 'maven' from dos command line it works, the only problem is that I cannot debug anything. Be interested to know if this is the same on IDEA. Here is the exception

      21-Jan-2005 16:59:14 org.dentaku.services.metadata.nbmdr.MagicDrawRepositoryReader getModel
      INFO: creating repository
      java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      at org.netbeans.mdr.storagemodel.BootReader.parse(BootReader.java:111)
      at org.netbeans.mdr.storagemodel.BootReader.read(BootReader.java:126)
      at org.netbeans.mdr.NBMDRepositoryImpl.createBootMOF(NBMDRepositoryImpl.java:1360)
      at org.netbeans.mdr.NBMDRepositoryImpl.installFakeMof(NBMDRepositoryImpl.java:1315)
      at org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1299)
      at org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:733)
      at org.netbeans.mdr.NBMDRepositoryImpl.getExtent(NBMDRepositoryImpl.java:298)
      at org.dentaku.services.metadata.nbmdr.MagicDrawRepositoryReader.getModel(MagicDrawRepositoryReader.java:112)
      at org.dentaku.services.metadata.JMIMetadataProviderBase.getModel(JMIMetadataProviderBase.java:86)
      at org.dentaku.services.metadata.JMIMetadataProviderBase.<init>(JMIMetadataProviderBase.java:41)
      at org.dentaku.services.metadata.JMIUMLMetadataProvider.<init>(JMIUMLMetadataProvider.java:31)
      at com.stpenable.dentaku.SummitWebappTest.setUp(SummitWebappTest.java:62)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

      here is the code in the JUnit test setup()

      String filename = "example-summit-webapp/src/uml/SummitTestModel.xml.zip";
      RepositoryReader rr = null;
      try

      { rr = new MagicDrawRepositoryReader(Utils.checkURL(new File(Utils.getRootDir(), filename).toURL())); }

      catch (MalformedURLException e)

      { // TODO Auto-generated catch block e.printStackTrace(); }

      JMICapableMetadataProvider mp = new JMIUMLMetadataProvider(rr);

      I cannot fix my plugins until I can debug. Things have thus ground to a halt again. Ideas?

        Activity

        No changes have yet been made on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Wynter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: