Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

weblogic.Deployer location

I'm using WebLogic Server version 10.3.6.0 and have been tasked with writing some scripts to automatically deploy Java applications.

I'm looking at the documentation for weblogic.Deployer but when I try and run it, I get the following error:

Error: Could not find or load main class weblogic.Deployer

I have run the setWLSEnv.sh script in server/bin of the Server's installation directory, which sets PATH and CLASSPATH environment variables. My understanding was that weblogic.Deployer was part of server/lib/weblogic.jar, and that is being set in the script as part of the CLASSPATH variable.

How could I find out where the weblogic.Deployer class is located?

Thanks in advance for any assistance.

like image 923
GarlicBread Avatar asked Oct 21 '13 00:10

GarlicBread


People also ask

Where can I find WebLogic deployer?

cmd script, located in the server/bin subdirectory of the WebLogic Server installation directory, to set the environment. If you are connecting to an Administration Server via a configured Administration channel, you must also configure SSL on the machine on which you run weblogic. Deployer .

Where is the war file deployed in WebLogic?

Typically, if you deploy a war/ear, then WebLogic will place them in the $WEBLOGIC_HOME/application directory. WebLogic will then explode your ear/war into a separate wl_stage folder that will be under your managedServer directory.

How do I find the WebLogic path in Linux?

For a Linux operating system, run the config.sh file from the WebLogic Server installed directory, %MW_HOME%/oracle_common/common/bin/config.sh . Ensure that Create a New Domain is selected, and then select the folder for the new domain. The default folder is %MW_HOME%\user_projects\domains\base_domain .

How do I change the deployment path in WebLogic?

In the Deployments list, check the checkbox for your Studio deployment. Click the Update button. Click the Redeploy this application using the following deployment files radio button. Under Deployment plan path, click the Change Path button.


2 Answers

And the $CLASSPATH is where your weblogic.jar is located:

~/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar

(replace ~ with your machine path)

So the whole code will be something like this:

>java -cp ~/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -adminurl ...

Alternatively add ~/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar in your CLASSPATH variable inside the ENVIRONMENT parameters. In case it doesn't exist create one. And then just execute the command:

>java weblogic.jar weblogic.Deployer -adminurl ...

By adding it permanently into CLASSPATH we can use the help option of the command as below:

>>java weblogic.Deployer -help
like image 191
Kamiel Ahmadpour Avatar answered Oct 09 '22 14:10

Kamiel Ahmadpour


Got it - just need to specify the classpath variable when executing the script:

java -cp $CLASSPATH weblogic.Deployer
like image 31
GarlicBread Avatar answered Oct 09 '22 15:10

GarlicBread