<bdo id='Z7L0h'></bdo><ul id='Z7L0h'></ul>
    1. <legend id='Z7L0h'><style id='Z7L0h'><dir id='Z7L0h'><q id='Z7L0h'></q></dir></style></legend>

      <small id='Z7L0h'></small><noframes id='Z7L0h'>

      1. <i id='Z7L0h'><tr id='Z7L0h'><dt id='Z7L0h'><q id='Z7L0h'><span id='Z7L0h'><b id='Z7L0h'><form id='Z7L0h'><ins id='Z7L0h'></ins><ul id='Z7L0h'></ul><sub id='Z7L0h'></sub></form><legend id='Z7L0h'></legend><bdo id='Z7L0h'><pre id='Z7L0h'><center id='Z7L0h'></center></pre></bdo></b><th id='Z7L0h'></th></span></q></dt></tr></i><div id='Z7L0h'><tfoot id='Z7L0h'></tfoot><dl id='Z7L0h'><fieldset id='Z7L0h'></fieldset></dl></div>
        <tfoot id='Z7L0h'></tfoot>
      2. Eclipse 4.12 - java.lang.ClassNotFoundException:com.sun.xml.

        时间:2023-08-21

            1. <small id='SvhnI'></small><noframes id='SvhnI'>

              <legend id='SvhnI'><style id='SvhnI'><dir id='SvhnI'><q id='SvhnI'></q></dir></style></legend>
              <i id='SvhnI'><tr id='SvhnI'><dt id='SvhnI'><q id='SvhnI'><span id='SvhnI'><b id='SvhnI'><form id='SvhnI'><ins id='SvhnI'></ins><ul id='SvhnI'></ul><sub id='SvhnI'></sub></form><legend id='SvhnI'></legend><bdo id='SvhnI'><pre id='SvhnI'><center id='SvhnI'></center></pre></bdo></b><th id='SvhnI'></th></span></q></dt></tr></i><div id='SvhnI'><tfoot id='SvhnI'></tfoot><dl id='SvhnI'><fieldset id='SvhnI'></fieldset></dl></div>
                <tbody id='SvhnI'></tbody>

                • <bdo id='SvhnI'></bdo><ul id='SvhnI'></ul>

                  <tfoot id='SvhnI'></tfoot>
                  本文介绍了Eclipse 4.12 - java.lang.ClassNotFoundException:com.sun.xml.internal.bind.v2.ContextFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  运行 Eclipse 插件时出现以下错误.Eclipse 使用 4.12 和 java11.它曾经在 eclipse 4.6.3 + java8 中运行良好.

                  I am getting below error while running my eclipse plugin. Eclipse used 4.12 with java11. It used to work fine in eclipse 4.6.3 + java8.

                  javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory not found
                   - with linked exception:
                  [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory cannot be found by com.my.cep.studio.cluster.topology_0.0.0]
                  
                  !ENTRY com.my.cep.diagramming 4 0   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146)
                      at javax.xml.bind.ContextFinder.find(ContextFinder.java:289)
                      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412)
                      at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375)
                      at com.my.cep.studio.cluster.topology.editors.ClusterTopologyDiagramManager.parseFile(ClusterTopologyDiagramManager.java:193)
                      at com.my.cep.studio.cluster.topology.editors.ClusterTopologyDiagramManager.openModel(ClusterTopologyDiagramManager.java:175)
                      at com.my.cep.diagramming.drawing.BaseDiagramManager.createDrawingCanvas(BaseDiagramManager.java:233)
                      at com.my.cep.diagramming.drawing.DiagramManager$2.run(DiagramManager.java:259)
                      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
                      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
                      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
                      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
                      at java.base/java.security.AccessController.doPrivileged(Native Method)
                      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
                      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
                      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
                      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
                      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
                      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
                      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
                      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
                  Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory cannot be found by com.my.cep.studio.cluster.topology_0.0.0
                      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:512)
                      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
                      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
                      at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
                      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
                      at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:480)
                      at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:112)
                  

                  推荐答案

                  Sun 人已经在 java 11 中移除了对 jaxb 包的直接访问.
                  这些依赖将代替它起作用.如果您面临休眠 NullPointerException 问题,同样的修复.

                  Sun people have remove directly access to jaxb package in java 11.
                  These dependency will work instead of it. Same fix if you are facing hibernate NullPointerException issue.

                  <dependency>
                      <groupId>com.sun.xml.bind</groupId>
                      <artifactId>jaxb-core</artifactId>
                      <version>2.3.0.1</version>
                  </dependency>
                  <dependency>
                      <groupId>javax.xml.bind</groupId>
                      <artifactId>jaxb-api</artifactId>
                      <version>2.3.1</version>
                  </dependency>
                  <dependency>
                      <groupId>com.sun.xml.bind</groupId>
                      <artifactId>jaxb-impl</artifactId>
                      <version>2.3.1</version>
                  </dependency>
                  <dependency>
                      <groupId>org.javassist</groupId>
                      <artifactId>javassist</artifactId>
                      <version>3.25.0-GA</version>
                  </dependency>
                  

                  这篇关于Eclipse 4.12 - java.lang.ClassNotFoundException:com.sun.xml.internal.bind.v2.ContextFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Eclipse 中编写 JavaScript 下一篇:PyDev for Eclipse - 解决 Python 依赖项(未解决的导入)

                  相关文章

                  <tfoot id='wVZuz'></tfoot>

                        <bdo id='wVZuz'></bdo><ul id='wVZuz'></ul>
                      <i id='wVZuz'><tr id='wVZuz'><dt id='wVZuz'><q id='wVZuz'><span id='wVZuz'><b id='wVZuz'><form id='wVZuz'><ins id='wVZuz'></ins><ul id='wVZuz'></ul><sub id='wVZuz'></sub></form><legend id='wVZuz'></legend><bdo id='wVZuz'><pre id='wVZuz'><center id='wVZuz'></center></pre></bdo></b><th id='wVZuz'></th></span></q></dt></tr></i><div id='wVZuz'><tfoot id='wVZuz'></tfoot><dl id='wVZuz'><fieldset id='wVZuz'></fieldset></dl></div>

                      <small id='wVZuz'></small><noframes id='wVZuz'>

                      <legend id='wVZuz'><style id='wVZuz'><dir id='wVZuz'><q id='wVZuz'></q></dir></style></legend>