Hi,
I setted up Xvfb in the OS and as well as a plugin to be use in the Jenkins job that runs ZAP.
It logs to set up fine:
Initializing The Online menu links ------- END Prebuild ------- Xvfb starting$ /usr/bin/Xvfb :0 -screen 0 -fbdir /var/lib/jenkins/xvfb-64-2135511072779214556.fbdir Perform ZAProxy Skip loadSession
But I am still getting the following error:
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
at com.crawljax.core.CrawlController.call(CrawlController.java:65)
at com.crawljax.core.CrawljaxRunner.call(CrawljaxRunner.java:37)
at org.zaproxy.zap.extension.spiderAjax.SpiderThread.run(SpiderThread.java:193)
at java.lang.Thread.run(Thread.java:745)
53785 [Thread-4] WARN org.zaproxy.zap.extension.spiderAjax.SpiderThread - Failed to start browser firefox
com.google.inject.ProvisionException: Guice provision errors:
1) Error in custom provider, org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
Error: no display specified
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'localhost.localdomain', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.12.1.el6.x86_64', java.version: '1.7.0_91'
Driver info: driver.version: FirefoxDriver
at com.crawljax.di.ConfigurationModule.configure(ConfigurationModule.java:47)
while locating com.crawljax.browser.EmbeddedBrowser
for parameter 0 at com.crawljax.core.CrawlerContext.<init>(CrawlerContext.java:32)
while locating com.crawljax.core.CrawlerContext
for parameter 0 at com.crawljax.core.Crawler.<init>(Crawler.java:73)
while locating com.crawljax.core.Crawler
for parameter 2 at com.crawljax.core.CrawlTaskConsumer.<init>(CrawlTaskConsumer.java:30)
while locating com.crawljax.core.CrawlTaskConsumer
1 error
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
at com.crawljax.core.CrawlController.call(CrawlController.java:65)
at com.crawljax.core.CrawljaxRunner.call(CrawljaxRunner.java:37)
at org.zaproxy.zap.extension.spiderAjax.SpiderThread.run(SpiderThread.java:193)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
Error: no display specified
Any hint of what could be the fix?