-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
/usr/java/default/bin/jar: No such file or directory #62
Comments
Update the git repo on your local computer. |
I also encountered the same problem,how to update git repo |
simply doing a >git pull |
same issue "/bin/sh: /usr/java/default/bin/jar: Not a directory" dockerfiles]$ git pull fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip: OKBuilding image 'oracle/weblogic:12.2.1-developer' ... |
Hi, any updates on this issue? I'm having the same problem using Ubuntu 14.04 when I tried to build the image using this command: ./buildDockerImage.sh -v 12.2.1 -d |
Please provide detailed information on how you built image oracle/jdk:8 |
Hi all, I pulled everything but I still have this error. That's how I built oracle/jdk:8 :
|
This is your problem. The .download file is NOT a tarball. It's a text file that tells you where to download the actual server-jre tarball from. View the file, go to the URL, download the binaries and then rebuild your image using the actual tarball itself. |
@dandan86 you should download server-jre-8u101-linux-x64.tar.gz from a URL, you can get it from server-jre-8u101-linux-x64.tar.gz.download |
@Djelibeybi @yxwzaxns thank you, indeed the problem was that one. |
I have downloaded the latest version still I am getting the error. |
@gunners1990 please read the README carefully :-) |
@brunoborges I will try once again. Thanks for the prompt response. |
Hi, You should check a jar in JRE directory. In my case, I got the same problem when I downloaded a server-jre-8u111-linux-x64.tar.gz which didn't include jar file |
I am Building the Image in Docker Toolbox $ sh buildDockerImage.sh -v 12.2.1 -d -s
|
This issue is closed. Please open a new issue. |
I tried to build the dockerImages but the script is enforcing the creation of a link ln -s /usr/java/$JAVA_FOLDER that on my mac is not allowed:
dockerfiles alagna>uname -a
Darwin Mac-Book-Pro3-AlbertoLagna.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
dockerfiles alagna>java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
What can I do to avoid the problem?
See attached complete log
ciao & thanks
Alberto
dockerfiles alagna>eval $(docker-machine env default)
dockerfiles alagna>printenv | grep DOCKER
DOCKER_HOST=tcp://192.168.99.100:2376
DOCKER_MACHINE_NAME=default
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/Users/alagna/.docker/machine/machines/default
dockerfiles alagna>sh buildDockerImage.sh -v 12.1.3 -s -d
Skipped MD5 checksum.
Building image 'oracle/weblogic:12.1.3-developer' ...
Sending build context to Docker daemon 430.7 MB
Step 1 : FROM oracle/oraclelinux:latest
latest: Pulling from oracle/oraclelinux
8d33cf3cb8b1: Pull complete
8b0a7d9c4e64: Pull complete
465df4f376b5: Pull complete
Digest: sha256:e531a1292086b72b9f9f2633faa25d6fdf1a4a2c629f9abadf36cff21dccd135
Status: Downloaded newer image for oracle/oraclelinux:latest
---> 465df4f376b5
Step 2 : MAINTAINER Bruno Borges bruno.borges@oracle.com
---> Running in 0fedfca7bc79
---> 284dd33eaaac
Removing intermediate container 0fedfca7bc79
Step 3 : ENV JAVA_PKG server-jre-8u65-linux-x64.tar.gz JAVA_FOLDER jdk1.8.0_65 FMW_PKG wls1213_dev_update3.zip JAVA_HOME /usr/java/default MW_HOME /u01/oracle ORACLE_HOME /u01/oracle CONFIG_JVM_ARGS "-Djava.security.egd=file:/dev/./urandom" JAVA_OPTIONS "-XX:+PrintCommandLineFlags -Djava.security.egd=file:/dev/./urandom" JAVA_OPTIONS $JAVA_OPTIONS PATH $PATH:/usr/java/default/bin:/u01/oracle/oracle_common/common/bin
---> Running in 85a0c46da037
---> 4a3970cbcd84
Removing intermediate container 85a0c46da037
Step 4 : COPY $FMW_PKG /u01/
---> 96e40d23626b
Removing intermediate container 8322d75cc0ad
Step 5 : ADD $JAVA_PKG /usr/java/
---> 5eace456b57a
Removing intermediate container 06e61ddba317
Step 6 : RUN chmod a+xr /u01 && useradd -b /u01 -m -s /bin/bash oracle && ln -s /usr/java/$JAVA_FOLDER /usr/java/default && ln -s /usr/java/$JAVA_FOLDER /usr/java/latest && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && mv wls12130/* /u01/oracle && rmdir wls12130 && cd /u01/oracle && sh configure.sh -silent && find /u01/oracle -name ".sh" -exec chmod a+x {} ; && rm /u01/$FMW_PKG && chown oracle:oracle -R /u01/oracle && rm -rf /var/cache/yum/
---> Running in 3914c033852a
/bin/sh: /usr/java/default/bin/jar: No such file or directory
Removing intermediate container 3914c033852a
The command '/bin/sh -c chmod a+xr /u01 && useradd -b /u01 -m -s /bin/bash oracle && ln -s /usr/java/$JAVA_FOLDER /usr/java/default && ln -s /usr/java/$JAVA_FOLDER /usr/java/latest && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && mv wls12130/* /u01/oracle && rmdir wls12130 && cd /u01/oracle && sh configure.sh -silent && find /u01/oracle -name ".sh" -exec chmod a+x {} ; && rm /u01/$FMW_PKG && chown oracle:oracle -R /u01/oracle && rm -rf /var/cache/yum/' returned a non-zero code: 127
There was an error building the image.
The text was updated successfully, but these errors were encountered: