I am trying to deploy the war(any war file, later on, we can deploy our p6war) using the Docker WebLogic. But I am facing some issues in to deployment. So I am giving a detailed description of what I did to run WebLogic and deployment process.
Created a Docker image for Oracle-12.2.1.2.0 image created successfully and running also on https://localhost:9002/console.
Now I want to deploy my war in this container, using following commands inside the container for that -
java weblogic.Deployer -adminurl t3://localhost:9002 -username weblogic -
password weblogic1 -deploy -name Demo-Web -targets AdminServer -source
D:\Demo-Web.war
got issue like
Error: Could not find or load main class weblogic.Deployer
same issue coming outside the container also, so i added -cp $CLASSPATH
java -cp $CLASSPATH weblogic.Deployer -adminurl t3://localhost:9002 -
username weblogic -password weblogic1 -deploy -name Demo-Web -targets
AdminServer -source D:\Demo-Web.war
old issue got resolved but following issues started coming -
Unrecognized option: -adminurl
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I used following link to get help.
https://docs.oracle.com/cd/E13222_01/wls/docs90/deployment/wldeployer.html#1003708
I am using windows machine as host to deploy and creating images.