Error in GWT compilation - gwt

I am compiling my project in GWT with any target . I get the following error on Linux and Solaris . I can compile the Samples which came with GWT but get this error .
I am using GWT 2.0.3 and JDK 1.6.17
[java] Compiling module com.calix.ex1.webgui.ex1embeddedclient.Ex1EmbeddedGui
[java] [ERROR] Unexpected
[java] java.lang.NullPointerException
[java] at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit(JdtCompiler.java:179)
[java] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1253)
[java] at org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:478)
[java] at org.eclipse.jdt.internal.compiler.ast.ReturnStatement.traverse(ReturnStatement.java:262)
[java] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:239)
[java] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1350)
[java] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1223)
[java] at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
[java] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:158)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:467)
[java] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:142)
[java] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:281)
[java] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:182)
[java] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:159)

Maybe an answer here : GWT Issue 4552
If you neglect to add an import for an
anonymous class like so:
FocusPanel dropdown = new FocusPanel();
dropdown.addClickHandler(new BloggiDiBlook() {});
where class BloggiDiBlook is neither
in the enclosing class's package, nor
imported in the enclosing class's
.java file. There ought to be an
appropriate "Class not found" or
similar compiler error. Instead, the
JDT Compiler throws the following
NullPointerException

Related

Facing issue compiling GWT after upgrading java to java11

Getting following exception after upgrading java. I am using gwt 2.9 libraries and ant in our project.
[java] Ignored 37 units with compilation errors in first pass.
[java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[java] Resolving com.google.gwt.cell.client.FieldUpdater
[java] Found type 'com.google.gwt.cell.client.FieldUpdater'
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] Resolving com.google.gwt.cell.client.ValueUpdater
[java] Found type 'com.google.gwt.cell.client.ValueUpdater'
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] Resolving com.google.gwt.core.client.AsyncProvider
[java] Found type 'com.google.gwt.core.client.AsyncProvider'
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] Resolving method get
[java] Found type 'com.google.gwt.core.client.Callback'
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
[java] [ERROR] Unable to find class java/lang/Object
If something as fundamental as java.lang.Object is not available to the GWT compiler, it sounds like the gwt-user dependency is not available to the compiler. This jar library contains the JRE emulation classes.
Make sure gwt-user-2.9.0.jar is on the classpath when ant runs the GWT compiler.
Latest gwt libraries (gwt-user-2.9.0.jar,gwt-dev-2.9.0.jar,gwt-servlet-2.9.0.jar) depends on following jars. After adding these jars in project issue got fixed.
ant.jar
colt-1.2.0.jar
asm-7.1.jar
jsinterop-annotations-2.8.2-v20191108.jar
base-1.0.0-beta-2.jar
tapestry-util-text-4.0.2.jar

How to add a plugin jar into the DITA OT classpath?

I am writing a plugin for DITA-OT PDF2. In this plugin I need to define extension functions for Saxon XSLT. I followed the tutorials from the dita-ot website:
https://www.dita-ot.org/3.3/topics/implement-saxon-extension-functions.html
and
https://www.dita-ot.org/3.3/topics/plugin-javalib.html
Note: I am using DITA OT 3.3.1
I have this feature in my plugin, pointing to the jar that contains my extension functions:
<feature extension="dita.conductor.lib.import" file="./xslt-extension.jar"/>
I get this error:
transform.topic2fo.main:
[pipeline] Static error in {ftd:lastApplicability()} in expression in xsl:variable/#select on line 30 column 79 of applicability.xsl:
[pipeline] XPST0017: Cannot find a 0-argument function named {https://orlandotechpubs.com/}lastApplicability()
[pipeline] Static error near {...eApplicability($applicabili...} in expression in xsl:value-of/#select on line 99 column 69 of applicability.xsl:
[pipeline] XPST0017: Cannot find a 1-argument function named {https://orlandotechpubs.com/}writeApplicability()
BUILD FAILED
C:\Users\d_bo\Desktop\test-dita-ot-pdf\test\sample_pdf.xml:9: The following error occurred while executing this line:
C:\Users\d_bo\Desktop\test-dita-ot-pdf\dita-ot-3.3.1\plugins\org.dita.base\build.xml:31: The following error occurred while executing this line:
C:\Users\d_bo\Desktop\test-dita-ot-pdf\dita-ot-3.3.1\plugins\org.dita.pdf2\build.xml:151: The following error occurred while executing this line:
C:\Users\d_bo\Desktop\test-dita-ot-pdf\dita-ot-3.3.1\plugins\org.dita.pdf2\build.xml:291: java.lang.RuntimeException: Failed to compile stylesheet 'C:\Users\d_bo\Desktop\test-dita-ot-pdf\dita-ot-3.3.1\plugins\org.dita.pdf2.axf\xsl\fo\topic2fo_shell_axf.xsl': net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at org.dita.dost.module.XsltModule.execute(XsltModule.java:108)
at org.dita.dost.ant.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:182)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor7.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:1388)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor7.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:1388)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor7.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:1388)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
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:1388)
at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:834)
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)
Caused by: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:158)
at org.dita.dost.module.XsltModule.execute(XsltModule.java:106)
... 56 more
Caused by: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:742)
at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:155)
... 57 more
Caused by: net.sf.saxon.trans.XPathException: Errors were reported during stylesheet compilation
at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:260)
at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:739)
... 58 more
I double checked everything and my extension functions are correctly defined. So I did some tests and apparently my jar is never added to the classpath. I created a simple ant target and launched again:
<target name="testJava">
<java classname="com.infotel.ftd.MyTest">
</java>
</target>
Here is what I get:
[java] Could not find com.infotel.ftd.MyTest. Make sure you have it in your classpath
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:141)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:861)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:498)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[java] at org.apache.tools.ant.Task.perform(Task.java:350)
[java] at org.apache.tools.ant.Target.execute(Target.java:449)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
[java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
[java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:498)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[java] at org.apache.tools.ant.Task.perform(Task.java:350)
[java] at org.apache.tools.ant.Target.execute(Target.java:449)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
[java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:498)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[java] at org.apache.tools.ant.Task.perform(Task.java:350)
[java] at org.apache.tools.ant.Target.execute(Target.java:449)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:834)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
[java] Java Result: -1
How can I debug dita OT to see what is wrong with my configuration?
I finally nailed what was wrong with my DITA OT configuration.
I was using an ant build script to run DITA OT and when doing this, the plugin JARs are not automatically added to the classpath.
I switched to using the DITA OT command line. Now my JARs are seen by the ant scripts and my extension functions are accessible from the XSLT.
In addition, if someone else has a classpath problem like this, you can also check the file [DITA-OT]/config/env.bat (env.sh for lunix users). After installing a plugin that provides its own JAR libraries, the JAR files shall be present in this file:
set "CLASSPATH=%CLASSPATH%;%DITA_HOME%\plugins\org.dita.pdf2\lib\fo.jar"
set "CLASSPATH=%CLASSPATH%;%DITA_HOME%\plugins\com.infotel.orlando.pdf\.\xslt-extension.jar"
set "CLASSPATH=%CLASSPATH%;%DITA_HOME%\plugins\org.dita.eclipsehelp\lib\eclipsehelp.jar"
...

Caused by: java.lang.ClassNotFoundException: weblogic.application.descriptor.MungerLogger

I am deploying in Weblogic but I got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/application/descriptor/MungerLogger
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:823)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:413)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:779)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:792)
[java] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:142)
[java] at weblogic.servlet.jsp.jspc20.initDescriptors(jspc20.java:537)
[java] at weblogic.servlet.jsp.jspc20.runBody(jspc20.java:273)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.jspc.main(jspc.java:22)
[java] Caused by: java.lang.ClassNotFoundException: weblogic.application.descriptor.MungerLogger
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[java] ... 10 more
deploying with the free Oracle WebLogic Server 12c (12.1.3)
I have no idea from where I can get this class from
First you need to download the jar which contains MungerLogger. In pom.xml add dependency:
com.common
jarName
x.x
Then you need to tell Weblogic to load the jar which contains the MungerLogger. Add this script into weblogic.xml or weblogic-application.xml:
the package contain MungerLogger such as com.common.
the package contain MungerLogger such as com.common.
Use this on top of weblogic.xml:
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">

gwt - java.lang.NoClassDefFoundError: com/google/gwt/dev/js/JsKeywords

I am trying to compile gwt module. This error is generated , env has gwt-log-3.1.8 and gwtsdk-2.4.0. Any idea why this is happening. It used work earlier in different project.
Error :
[java] Loading inherited module 'com.allen_sauer.gwt.log.gwt-log-OFF'
[java] Loading inherited module 'com.allen_sauer.gwt.log.gwt-log-impl'
[java] [ERROR] Line 87: Unexpected exception while processing element 'property-provider'
[java] java.lang.NoClassDefFoundError: com/google/gwt/dev/js/JsKeywords
[java] at com.google.gwt.dev.js.ast.JsScope.maybeMangleKeyword(JsScope.java:56)
[java] at com.google.gwt.dev.js.ast.JsScope.declareName(JsScope.java:75)
[java] at com.google.gwt.dev.js.JsParser.mapVar(JsParser.java:1229)
[java] at com.google.gwt.dev.js.JsParser.map(JsParser.java:324)
[java] at com.google.gwt.dev.js.JsParser.mapStatement(JsParser.java:1026)
[java] at com.google.gwt.dev.js.JsParser.mapStatements(JsParser.java:1046)
[java] at com.google.gwt.dev.js.JsParser.mapBlock(JsParser.java:442)
[java] at com.google.gwt.dev.js.JsParser.mapFunction(JsParser.java:718)
[java] at com.google.gwt.dev.js.JsParser.map(JsParser.java:296)
JsKeywords class is part of gwt-dev.jar. Make sure that this jar is in classpath.

PDE Headless Build (Feature-based) and Missing Required Plug-ins

When attempting to perform a PDE headless build, I am finding the eclipse.buildScript step to display the following:
[java] generateScript:
[java] [eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.oda.design.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design_[3.0.4,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.consumer_[3.1.1,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.oda.profile:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.consumer_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.connectivity.ui.templates:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui.templates_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.jdt.classpath:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.ws.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.enablement.oda.xml.ui_[1.1.0,2.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.ws:
[java] [eclipse.buildScript] Another singleton version selected: org.eclipse.datatools.enablement.oda.ws_1.1.2.v200812171046
[java] [eclipse.buildScript] Optional plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.4,4.0.0) is not available.
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.datatools.connectivity.oda.design.ui_[3.0.6,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.datatools.enablement.oda.xml:
[java] [eclipse.buildScript] Another singleton version selected: org.eclipse.datatools.enablement.oda.xml_1.1.2.v200902111040
[java] [eclipse.buildScript] Optional plug-in org.eclipse.datatools.connectivity.oda.profile_[3.0.4,4.0.0) is not available.
[java] [eclipse.buildScript] Bundle org.eclipse.jdt.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.help_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.expressions_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.resources_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.variables_[3.2.200,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.search_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.core_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.compare_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.ui_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.core_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jface.text_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.console_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.ide_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.views_[3.3.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.editors_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.core.runtime_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.core.refactoring_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.ui.refactoring_[3.4.100,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.forms_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.navigator_[3.3.200,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.navigator.resources_[3.4.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core.manipulation_[1.3.0,2.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.pde.ui.templates:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.ui_[3.3.0,4.0.0).
[java] [eclipse.buildScript] Bundle org.eclipse.pde.ui:
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.core_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jface.text_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui.workbench.texteditor_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.debug.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.debug.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.pde.build_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.search_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.team.core_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ui_[3.5.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ant.ui_[3.1.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.compare_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.ltk.ui.refactoring_[3.2.0,4.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.ui_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.metadata_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.engine_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.core_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.director_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.artifact.repository_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.metadata.repository_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.frameworkadmin_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.frameworkadmin.equinox_[1.0.100,2.0.0).
[java] [eclipse.buildScript] Missing required plug-in org.eclipse.equinox.p2.repository_[1.0.0,2.0.0).
[java] [eclipse.buildScript] Unsatisfied import package org.eclipse.jdt.debug.core_0.0.0.
I understand that these bundles / plug-ins are missing required and / or optional dependencies. what I do not understand is how certain plug-ins are NOT found.
For example, there are many org.eclipse.XXXXX plug-ins listed, which I believe would be resolved through the use of the baseLocation property, which I have set as follows:
<full_path_from_root>\pdebuild\target\eclipse
Where eclipse is my target to build against and has all of my third-party dependencies.
In addition, I also have a separate eclipse install that serves as the version initiating the build (e.g., version 3.5.2 with PDE build files). The "plugins" sub-folder in this eclipse does have the missing dependencies listed above.
Thus, when attempting resolve missing dependencies, be they either required or optional, how are they resolved during a headless PDE build? I find it odd that I would have to copy the missing plug-ins from the eclipse used to initiate the headless PDE build over into the target\eclipse\plugins sub-folder, just to attempt to resolve this issue. When I do this though, I receive even more "missing required plug-in" messages. Maybe this just boils down to me having to continue copying the libraries over into my target\eclipse\plugins sub-folder until the messages disappear.
Many thanks to those who can offer any advice or suggestions as to how best to resolve this issue.
When you specify the base location, either using an eclipse install as your target or a set of p2 repos, that defines what PDE build will build against. The eclipse used to initiate your build using ant (we refer to that as the basebuilder) has no effect on what is being built.
But if your baseLocation points to a complete eclipse install that contains all of the plugins, it should work. Is your baseLocation a valid eclipse install, or just a dumping ground for plugins and features?