问题描述
我在Weblogic中将JWSC ant任务用于Web服务。 (用于构建耳朵)我们在JDK 1.7中使用了12c。那个时候运行良好。但是12c已升级,我们需要使用JDK 1.8。但是之后构建失败。
我遇到以下错误:
:\ata-uje_prod_nettime_4.0.9-ConfigLog\workspace1\nettimej\buildFedexNetoneservice.xml:34: java.lang.LinkageError: loader constraint violation: when resolving method "com.sun.tools.javac.api.JavacTool.getTask(Ljava/io/Writer;Ljavax/tools/JavaFileManager;Ljavax/tools/DiagnosticListener;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/sun/source/util/JavacTask;" the class loader (instance of java/net/urlclassloader) of the current class,com/bea/util/jam/internal/javadoc/JavadocclassBuilder,and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class,com/sun/tools/javac/api/JavacTool,have different Class objects for the type com/sun/source/util/JavacTask used in the signature
at com.bea.util.jam.internal.javadoc.JavadocclassBuilder.getImports(JavadocclassBuilder.java:212)
at com.bea.util.jam.internal.javadoc.JavadocclassBuilder.build(JavadocclassBuilder.java:140)
at com.bea.util.jam.provider.CompositeJamClassBuilder.build(CompositeJamClassBuilder.java:51)
at com.bea.util.jam.internal.JamClassLoaderImpl.loadClass(JamClassLoaderImpl.java:128)
at com.bea.util.jam.internal.JamServiceImpl.getAllClasses(JamServiceImpl.java:65)
at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:168)
at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:136)
at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader.java:187)
at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75)
at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:680)
at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:481)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:306)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:242)
at org.apache.tools.ant.UnkNownElement.execute(UnkNownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(UnkNown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.dispatchUtils.execute(dispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.UnkNownElement.execute(UnkNownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(UnkNown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.dispatchUtils.execute(dispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)