question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest owasp/zap2docker-stable can't find Java 11

See original GitHub issue

Describe the bug

Using the image owasp/zap2docker-stable and running zap-api-scan.py results in the following error:

Exiting: ZAP requires a minimum of Java 11 to run, found 

Steps to reproduce the behavior

The full command that we run is:

zap-api-scan.py -I -d -r owasp_report.html -J owasp_report.json -t ${openapi_target} -f openapi -O ${docker_service}:${docker_port} -c api-scan-config.conf

Expected behavior

We would expect the ZAP container to start correctly, but it doesn’t and times out after a while.

Software versions

owasp/zap2docker-stable:latest

Screenshots

No response

Errors from the zap.log file

No response

Additional context

No response

Would you like to help fix this issue?

  • Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
r8yguncommented, Oct 31, 2022

The fix is update Docker to a newer version. adoptium/containers#215 (comment)

The same thing works with tag 2.11.1.

ZAP is using a different/newer base image in 2.12 images (still there’s no issue in ZAP’s images).

Yep, this is the one. Moving to docker-engine 20.10.10+ fixed this for us.

1reaction
kingthorincommented, Oct 31, 2022

Thanks for letting us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java won't run on latest zap2docker in concourse #7496 - GitHub
Describe the bug We run a baseline scan in our CI/CD pipeline (concourse-ci) and use the owasp/zap2docker-weekly:latest The current version ...
Read more >
Problem starting OWASP ZAP with OpenJDK 11 installed
Solution: Installing OpenJDK with the msi file. The installer has an option "JavaSoft (Oracle) registry keys" ...
Read more >
owasp/zap2docker-stable:2.11.0 - Docker Hub
ENV PATH=/usr/lib/jvm/java-11-openjdk-amd64//bin:/zap/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. 0 B. 19. ENV ZAP_PATH=/zap/zap.sh.
Read more >
Release 2.10.0 - OWASP ZAP
Update Webswing to latest version (20.2.1) to work with newer Java versions. Update Java in stable image to version 11. Add support for...
Read more >
getuniqueinstance(gethibernatetemplate().find java - You.com
java - Using Spring Hibernate getHibernateTemplate().find to to select . ... zaproxy/zaproxyLatest owasp/zap2docker-stable can't find Java 11#7556.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found