[oat-devel] build from git missing antlib.xml, grammar is not specified

Zhang, Lijuan lijuan.zhang at intel.com
Wed Jun 25 20:02:54 PDT 2014


Hi, Goldman

Xjc is used to  parse XSD Schema files to java code, it just depend on openjdk and 2 jars(jaxb-impl.jar, jaxb-xjc.jar) located in Source/Appraiser/lib.
>From your error, I think your openjdk exists issues from the following red mark, we can see the detected jdk and actual installed jdk are different.
So I suggest you to reinstall openjdk, and make sure the jaxb*.jar are existed in Source/Appraiser/lib.

Thanks
Emily


From: oat-devel [mailto:oat-devel-bounces at lists.01.org] On Behalf Of Kenneth Goldman
Sent: Thursday, June 26, 2014 3:45 AM
To: oat-devel
Subject: [oat-devel] build from git missing antlib.xml, grammar is not specified

I'm trying to build oat 1.6.0 from the git repository.  I'm stopped here.  There are several potential errors.  I can't tell which are informative and which are the real cause of the build error.

[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Property "classpath" has not been set
      [xjc] failure in the XJC task. Use the Ant -verbose switch for more details
/gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml:20: grammar is not specified
Caused by: com.sun.tools.xjc.BadCommandLineException: grammar is not specified

1 - Can anyone tell me what the error means?

2 - Are there any more detailed build instructions?  I'm finding lots of steps missing in the install pdf as well as bugs in the scripts.

~~~~~~~~~~  Here is a complete verbose output ~~~~~~~~~~~~~~

Source> ant -verbose -file ./HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml
Apache Ant version 1.7.1 compiled on April 26 2010
Buildfile: ./HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre
Detected OS: Linux
parsing buildfile /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml with URI = file:/gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml
Project base dir set to: /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Property "classpath" has not been set
dropping /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/${classpath} from path as it doesn't exist
Build sequence for target(s) `Build' is [Build]
Complete build sequence is [Build, ]

Build:
   [delete] Deleting directory /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/src
   [delete] Deleting directory /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/src
    [mkdir] Created dir: /gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/src
      [xjc] build id of XJC is 2.1.12-09/06/2013 03:15 PM(root)-ea
      [xjc] failure in the XJC task. Use the Ant -verbose switch for more details

BUILD FAILED
/gsa/yktgsa-h1/02/kgold/oat-git/OpenAttestation/Source/HisAppraiser/xml/Integrity_Report_Manifest_v1_0/build.xml:20: grammar is not specified
        at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:446)
        at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
        at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:369)
        at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: com.sun.tools.xjc.BadCommandLineException: grammar is not specified
        at com.sun.tools.xjc.Options.parseArguments(Options.java:795)
        at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:444)
        ... 20 more
--- Nested Exception ---
com.sun.tools.xjc.BadCommandLineException: grammar is not specified
        at com.sun.tools.xjc.Options.parseArguments(Options.java:795)
        at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:444)
        at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
        at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:369)
        at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 0 seconds

--
Ken Goldman   kgoldman at us.ibm.com<mailto:kgoldman at us.ibm.com>
914-945-2415 (862-2415)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.01.org/pipermail/oat-devel/attachments/20140626/a419abd0/attachment-0001.html>


More information about the oat-devel mailing list