OJET Deploy WebLogic Server Using NetBeans Oracle Fusion Part 1

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

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

Popular posts from this blog

Run BI Report Web Service Multiple Parameter date format Oracle Fusion BI Report xmlpserver/services/v2/ReportService WSDL

Programmatically Create/Update User and assign roles in oracle Fusion using the REST Web Services Part 1

Oracle Fusion Multiple attachment for an Employee for a Single Document type HDL - HCM Data Loader