Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker install broken #16

Open
douglundin opened this issue Apr 29, 2020 · 2 comments · May be fixed by douglundin/JavaVulnerableLab#1
Open

Docker install broken #16

douglundin opened this issue Apr 29, 2020 · 2 comments · May be fixed by douglundin/JavaVulnerableLab#1

Comments

@douglundin
Copy link

Everything seemed to be going ok (Windows 10 Pro) until the compilation phase.

Unfortunately, I'm not versed in Docker to be able to troubleshoot.

Downloaded from central: https://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar (640 kB at 1.1 MB/s)
[�[1;34mINFO�[m] Changes detected - recompiling the module!
[�[1;33mWARNING�[m] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[�[1;34mINFO�[m] Compiling 15 source files to /usr/local/tomcat/target/classes
[INFO] -------------------------------------------------------------
[ERROR�[m] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[�[1;34mINFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[�[1;34mINFO] ------------------------------------------------------------------------
[INFO] Total time: 12.798 s
[INFO] Finished at: 2020-04-29T14:55:00Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile�[m (default-compile) on project JavaVulnerableLab: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e�[m switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[�[1;31mERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
cp: cannot stat 'target/.war': No such file or directory
ERROR: Service 'javavulnlab' failed to build: The command '/bin/sh -c mvn clean package ; cp target/
.war /usr/local/tomcat/webapps/' returned a non-zero code: 1
PS C:\temp\JavaVulnerableLab-master>

@yinhuochong
Copy link

Use a specific old version of docker image instead of default version will solve this problem.

e.g.
Replace "FROM tomcat" to "FROM tomcat:8.5.55-jdk8-openjdk" in Dockerfile
Replace "image: mysql" to "image: mysql:5.7" in docker-compose.yml

@douglundin
Copy link
Author

That fixed it - I appreciate your help.

MyristicaFragrans added a commit to MyristicaFragrans/JavaVulnerableLab that referenced this issue Oct 5, 2022
MyristicaFragrans added a commit to MyristicaFragrans/JavaVulnerableLab that referenced this issue Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants