Build failure

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Build failure

wsalesky
Hi all, 
I am attempting to build and deploy the develop branch from github. Following the instructions on github, I run into the following error when running ./build.sh (I am on a Mac running OS 10.12) I have also tried using one of the nightly builds and get an error there as well. Any tips for successfully building this branch would be appreciated, there are a number of new features I would like to test out for several projects.

Thanks, 
-Winona
 

Build error:

BUILD FAILED

/Users/wsalesky/exist/build/scripts/build-impl.xml:680: The following error occurred while executing this line:

/Users/wsalesky/exist/tools/yajsw/build.xml:77: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Library/Java/Extensions/saxonhe-9.2.1.5.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax

at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102)

at org.apache.tools.ant.taskdefs.XSLTProcess.init(XSLTProcess.java:1234)

at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:270)

at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:430)

at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)

at org.apache.tools.ant.Task.perform(Task.java:347)

at org.apache.tools.ant.Target.execute(Target.java:435)

at org.apache.tools.ant.Target.performTasks(Target.java:456)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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:435)

at org.apache.tools.ant.Target.performTasks(Target.java:456)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)

at org.apache.tools.ant.Project.executeTarget(Project.java:1376)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260)

at org.apache.tools.ant.Main.runBuild(Main.java:854)

at org.apache.tools.ant.Main.startAnt(Main.java:236)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)


------------------------------------------------------------------------------

_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Build failure

Joe Wicentowski
Hi Winona,

> I am attempting to build and deploy the develop branch from github.

Could you paste in the full output of `java -version`?

> I have also tried using one of the nightly builds and get an error there as well.

Is it the same error?  Can you say more about the steps that led to
this error with the nightly?

Joe

------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Build failure

wsalesky
Sure:
Java version:

java version "1.8.0_60"

Java(TM) SE Runtime Environment (build 1.8.0_60-b27)

Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


I downloaded several versions of the nightly build, today I tried the December 5th (I tried both the dmg and the jar version). 

For this version the error occurs after I deploy eXist. I get  the following error:

java.lang.RuntimeException: javax.servlet.ServletException: de.betterform.xml.config.XFormsConfigException: java.lang.reflect.InvocationTargetException

at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1546)

at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1601)

at org.eclipse.jetty.servlet.ServletHandler.addServletWithMapping(ServletHandler.java:1006)

at org.eclipse.jetty.servlet.ServletContextHandler.addServlet(ServletContextHandler.java:437)

at org.exist.jetty.JettyStart.run(JettyStart.java:269)

at org.exist.launcher.Launcher$2.run(Launcher.java:176)

Caused by: javax.servlet.ServletException: de.betterform.xml.config.XFormsConfigException: java.lang.reflect.InvocationTargetException

at de.betterform.agent.web.filter.XFormsFilter.init(XFormsFilter.java:76)

at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:856)

at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1542)

... 5 more

Caused by: de.betterform.xml.config.XFormsConfigException: java.lang.reflect.InvocationTargetException

at de.betterform.xml.config.Config.initSingleton(Config.java:132)

at de.betterform.xml.config.Config.getInstance(Config.java:166)

at de.betterform.agent.web.WebFactory.initConfiguration(WebFactory.java:153)

at de.betterform.agent.web.filter.XFormsFilter.init(XFormsFilter.java:68)

... 8 more

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at de.betterform.xml.config.Config.initSingleton(Config.java:129)

... 11 more

Caused by: java.lang.NoSuchMethodError: net.sf.saxon.dom.DocumentWrapper.wrap(Lorg/w3c/dom/Node;)Lnet/sf/saxon/dom/DOMNodeWrapper;

at de.betterform.xml.config.DefaultConfig.getDocumentElementContext(DefaultConfig.java:80)

at de.betterform.xml.config.DefaultConfig.<init>(DefaultConfig.java:49)

... 16 more


On Mon, Dec 5, 2016 at 2:21 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Winona,

> I am attempting to build and deploy the develop branch from github.

Could you paste in the full output of `java -version`?

> I have also tried using one of the nightly builds and get an error there as well.

Is it the same error?  Can you say more about the steps that led to
this error with the nightly?

Joe


------------------------------------------------------------------------------

_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Build failure

Dannes Wessels-3
In reply to this post by wsalesky

On 5 Dec 2016, at 20:03 , Winona Salesky <[hidden email]> wrote:

/Users/wsalesky/exist/build/scripts/build-impl.xml:680: The following error occurred while executing this line:

/Users/wsalesky/exist/tools/yajsw/build.xml:77: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Library/Java/Extensions/saxonhe-9.2.1.5.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax



It looks that you have a saxon jar installed in your system-wide extension directory. Mine is empty…..

cheers

Dannes



------------------------------------------------------------------------------

_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Build failure

Dannes Wessels-3
In reply to this post by wsalesky
Ah,,,

we depend on a specific Saxon version….. from our archive:

./lib/endorsed/Saxon-HE-9.6.0-7.jar

You have version 9.2.1.5 installed, an older version that is incompatible with the exist/betterform code.

I’d recommend te remove the /Library/Java/Extensions/saxonhe-9.2.1.5.jar file, unless you put it there for a reason….

cheers

Dannes


On 5 Dec 2016, at 20:27 , Winona Salesky <[hidden email]> wrote:

Caused by: java.lang.NoSuchMethodError: net.sf.saxon.dom.DocumentWrapper.wrap(Lorg/w3c/dom/Node;)Lnet/sf/saxon/dom/DOMNodeWrapper;

at de.betterform.xml.config.DefaultConfig.getDocumentElementContext(DefaultConfig.java:80)

at de.betterform.xml.config.DefaultConfig.<init>(DefaultConfig.java:49)



------------------------------------------------------------------------------

_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Build failure

wsalesky
Thank you, that solved the problem. 
-Winona


On Mon, Dec 5, 2016 at 3:43 PM, Dannes Wessels <[hidden email]> wrote:
Ah,,,

we depend on a specific Saxon version….. from our archive:

./lib/endorsed/Saxon-HE-9.6.0-7.jar

You have version 9.2.1.5 installed, an older version that is incompatible with the exist/betterform code.

I’d recommend te remove the /Library/Java/Extensions/saxonhe-9.2.1.5.jar file, unless you put it there for a reason….

cheers

Dannes


On 5 Dec 2016, at 20:27 , Winona Salesky <[hidden email]> wrote:

Caused by: java.lang.NoSuchMethodError: net.sf.saxon.dom.DocumentWrapper.wrap(Lorg/w3c/dom/Node;)Lnet/sf/saxon/dom/DOMNodeWrapper;

at de.betterform.xml.config.DefaultConfig.getDocumentElementContext(DefaultConfig.java:80)

at de.betterform.xml.config.DefaultConfig.<init>(DefaultConfig.java:49)




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open