OJET Deploy WebLogic Server Using NetBeans Oracle Fusion Part 1
OJET Configure weblogic Netbeans and Deploy to WebLogic Server Oracle Fusion Part 1

Refer the path of the web Logic server where you installed the weblogic on your local machine.

Enter the User Name and Password of the weblogic server.

Start the WebLogic Server from NetBeans

Navigate to your Project --> /scrtipts/hooks/after_build.js

Edit the after_build.js javascript file and include the below code.

Save the Project
Using the Node.js command prompt release the project using the below release command.
ojet build –release
Once Released, you will get the "Files were Successfully Archived".


Download and Install weblogic server using the below oracle link
Once installed Navigate to -- Services -- Servers -- Right Click on servers -- Add Server and Choose Oracle WebLogic Server.
Refer the path of the web Logic server where you installed the weblogic on your local machine.
Enter the User Name and Password of the weblogic server.
Start the WebLogic Server from NetBeans
Generate a war file
This image shows a WAR file in the root folder of an Oracle JET web application. The WAR file is generated by the after_build.js hook script that you create to archive the contents of the web application's /web folder.
Navigate to your Project --> /scrtipts/hooks/after_build.js
Edit the after_build.js javascript file and include the below code.
/**
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
The Universal Permissive License (UPL), Version 1.0
*/
'use strict';
const fs = require('fs');
const archiver = require('archiver');
module.exports = function (configObj) {
return new Promise((resolve, reject) => {
console.log("Running after_build hook.");
//change the extension of the my-archive.xxx file from .war to .zip as needed
const output = fs.createWriteStream('my-archive.war');
//leave unchanged, compression is the same for WAR or Zip file
const archive = archiver('zip');
output.on('close', () => {
console.log('Files were successfully archived.');
//resolve();
resolve(configObj);
});
archive.on('warning', (error) => {
console.warn(error);
});
archive.on('error', (error) => {
reject(error);
});
archive.pipe(output);
archive.directory('web', false);
archive.finalize();
});
};
Save the Project
Using the Node.js command prompt release the project using the below release command.
ojet build –release
Once Released, you will get the "Files were Successfully Archived".
Use the below link Part 2 for Deploying the OJET Project in WebLogic Server
Comments
Post a Comment