按照說明http://wiki.hl7.org/index.php?title=FHIR_Build_Process我的FHIR構建失敗。我修改了publish.bat以確保它使用正確的JDK。在帶有JDK 1.6的Windows 7 64位計算機上運行它(也嘗試過JDK 1.7),並且都出現相同的錯誤。FHIR編譯失敗,出現NoSuchMethodError錯誤:net.sf.saxon.Configuration.newConfiguration()
看起來像一些撒克遜JAR地獄的地方。有任何想法嗎?
...validate v2-tables 441sec 755MB
...validate v3-codesystems 443sec 889MB
Reference Platform Validation. 447sec 1067MB
...test adversereaction-example 447sec 1067MB
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.saxon.Configuration.newConfiguration()Lnet/sf/saxon/Configuration
;
at net.sf.saxon.xpath.XPathFactoryImpl.<init>(XPathFactoryImpl.java:33)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.xpath.XPathFactoryFinder.loadFromService(XPathFactoryFinder.java:401)
at javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:222)
at javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:143)
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:185)
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:99)
at org.hl7.fhir.tools.publisher.Publisher.testSearchParameters(Publisher.java:2796)
at org.hl7.fhir.tools.publisher.Publisher.testSearchParameters(Publisher.java:2785)
at org.hl7.fhir.tools.publisher.Publisher.validateRoundTrip(Publisher.java:2759)
at org.hl7.fhir.tools.publisher.Publisher.validateXml(Publisher.java:2656)
at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:378)
at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:281)
是,SAXON罐子地獄。仍試圖整理出來。我不知道我更討厭什麼。 Java的。或撒克遜。 :-( –
Lol,我能夠從Eclipse內部運行它,我確實注意到,當我拉入項目時,Eclispe項目中的saxon9he.jar引用是c:\ work \的絕對路徑。而所有其他人都從.. \進口中抓取,所以我調整了它,並從Eclipse裏面運行,並且運行完成,我將嘗試按照說明構建工具包,然後看看現在是否可以使用。 –
嗯,重建來自源代碼的發佈者工具jar解決了我從命令行構建的問題,也許在我從SVN下拉的那個jar裏面出現了錯誤, –