Showing posts with label weblogic. Show all posts
Showing posts with label weblogic. Show all posts

Friday, September 17, 2021

Previously reported error [NoSuchMethodError in o.j.java.locator.JarURLClassLocator:533]; SEVERE: Uncaught Exception java.lang.NoSuchMethodError: ADF; Oracle

Error Message:

 oracle.ideimpl.feedback2.client.FeedbackManagerImpl uncaughtException SEVERE: Uncaught Exception java.lang.NoSuchMethodError: oracle.ide.net.JarIndex.getInstance(Ljava/net/URL;Z)Loracle/ide/net/JarIndex;



Solution:


CHANGES

 You've recently applied a patch.

CAUSE

In this case, the issue was seen after applying a new ADF Bundle Patch.  The issue is not seen after applying the previous ADF BUNDLE PATCH 12.2.1.3.190924 (30347629) and only occurs with ADF BUNDLE PATCH 12.2.1.3.0.200311 (31021968) and up.

It's assumed that one of the fixes included in the newer ADF Bundle Patches requires a clean restart of JDeveloper, even though the patch readme does not include this step.

SOLUTION

Clear the JDeveloper cache.  To do this, start JDeveloper using the "-clean" option. 
For example, in a Linux development environment, the steps are like:

  1. Open a terminal window and navigate to the JDeveloper executable directory (in the below command, replace the value of <ORACLE_HOME> with the path to your JDeveloper install directory).
    [oracle@machine ~]$ cd <ORACLE_HOME>/jdeveloper/jdev/bin
  2. Start JDeveloper.
    [oracle@machine bin]$ jdev -clean

https://community.oracle.com/tech/developers/discussion/4198273/severe-performance-issues-with-jdeveloper-12-2-1-3











Wednesday, September 1, 2021

Log output on a managed Server; WebLogic


dev_server1.out would have the logs for the managed server @

 /application/app/oracle/product/12.2.1.4/user_projects/domains/base_domain/servers/dev_server1/logs/

Wednesday, August 25, 2021

The server Managed_Server is in an incompatible state; WebLogic

 Delete the managed_server1.state file @ /appName/app/oracle/product/12.2.1.4/user_projects/domains/base_domain/servers/managed_server1/data/nodemanager/ 

and restart the admin and node manager to fix this issue.

https://ruleoftech.com/2014/weblogic-12c-and-managed-server-in-incompatible-state

Setup load balancer on WebLogic Server using Proxy App;

Here are the steps:

1. Setup cluster environment with managed server.
2. Add Load Balancer standalone server listening to port 9999.
3. Deploy an app with web.xml and weblogic.xml settings. All the http requests to port 9999 will be redirected to managed servers on cluster. 

Update the myloadbal.war with respective managed server addresses and create a war to deploy to the load balancer server - port 9999. 

All apps (Java and ADF apps) should be deployed to the cluster environment. myloadbal.war would act as proxy to the cluster environment.


benefits.war is deployed to the cluster environment and can be accessed from load balancer port. 

itsp11648:9999 would open the welcome.html page.



 jar -xvf benefits.war
Above command extracts the contents of the file.

https://stackoverflow.com/questions/7882745/how-to-extract-war-files-in-java-zip-vs-jar


Below command is used to create a war file:

 jar -cvf myloadbal.war *


Helpful links:
https://www.ateam-oracle.com/using-weblogic-as-a-load-balancer
Oracle support documents: Note 1382494.1 and 1269410.1 

Tuesday, June 29, 2021

Start or Stop Managed Server in WebLogic box;

 WebLogic way to start or stop managed server:


Enterprise console way to  start or stop managed server:




Monday, May 11, 2020

SSL Certificate renewal & Setting up the certificate on WebLogic server;

Goal is to renew SSL certificate and link it to WebLogic server.

Identify current environment, keystore and SSL configuration on the server.





On the unix box where WebLogic server is installed; get to $cd $JAVA_HOME/bin; >> $jdk1.7.0_79/bin/bin

Below command has to happen as a single line cmd; Don't copy as is


  1. keytool -genkey -alias bravo -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -validity <no of days to get certificate for> -keypass <enter private password here> -keystore identity.jks -storepass <enter public password here>


e.g: keytool -genkey -alias bravo -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -validity 824 -keypass app123 -keystore identity.jks -storepass app123

Above command creates identity.jks file.

Below command creates a csr file; which can be supplied to 3rd party to get it signed.

           2. keytool -keystore identity.jks -certreq -alias <alias_name> -ext SAN=dns:<!--Enter Server                   Name--> -keyalg rsa -file <!--ServerName.csr-->>

Answer the questions to get the CSR for. (First and Last Name: itwasea897.vs.com)

e.g: keytool -keystore identity.jks -certreq -alias appName -ext SAN=dns:itwasea897.vs.com -keyalg rsa -file itwasea897.csr 


--> After signing 3rd party software would give us a cer file. itwasea897.cer .

Below command imports intermediate & root certificates to trust.jks 


  • keytool -import -alias inter -file intermediate_3rd_party.cer -keystore trust.jks




  • keytool -import -alias root  -file root_3rd_party.cer -keystore trust.jks


Finally import


  • keytool -import -alias appName -file itwasea897.cer -keystore trust.jks




Below command imports intermediate & root certificates to identity.jks 


  • keytool -import -alias inter -file intermediate_3rd_party.cer -keystore identity.jks




  • keytool -import -alias root  -file root_3rd_party.cer -keystore identity.jks



Finally import


  • keytool -import -alias appName -file itwasea897.cer -keystore identity.jks



Make sure to update the WebLogic settings to read from latest trust & identity keystore and restart WebLogic server.


Intermediate & Root certificates are shown in below example -











Thursday, November 21, 2019

Caused By: java.lang.AssertionError: Mismatched uuid ; WebLogic ; ADF

After restoring the database to its original state, Weblogic was throwing Caused By: java.lang.AssertionError: Mismatched uuid error with 4 other errors.

Previous Weblogic startup failed with Password mismatch error. Deleting the DAT files in the folder below and restarting the server fixed the issue.

/APP/WL1213/app/oracle/product/fmw12cr3/user_projects/domains/ADFdomain/servers/AdminServer/data/store/diagnostics/


http://www.ibrahimcengiz.com/2018/11/server-subsystem-failed-reason.html

Thursday, December 14, 2017

create Environmental variable on weblogic




Get the value by System.getProperty("var");



https://stackoverflow.com/questions/23620163/best-way-to-set-environmental-variables-in-weblogic-startup



Tuesday, December 5, 2017

ADF JDeveloper 12.2.1 new feature - Remote Taskflows ;

ADF JDeveloper 12.2.1 new feature - Remote Taskflows ; Now JSF page from One Application can point to Taskflow in another application. There is no need to create a shared library and make it dependent to main application



Demo video from Shay Shmeltzer's  Weblog


Wednesday, March 1, 2017

NullPointerException at a UIComponent.encodeAll .. Weblogic/ADF

Please make sure the tag libraries for jsff or jspx pages are valid

e.g

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                xmlns:f="http://java.sun.com/jsf/core" xmlns:tr="http://myfaces.apache.org/trinidad">

the one in red could be the reason
   

intermittent issue like below might occur

oracle.adfinternal.view.faces.renderkit.rich.PanelCollectionRenderer$PanelCollectionHelper._renderAutoSizedContent(PanelCollectionRenderer.java:751)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelCollectionRenderer$PanelCollectionHelper._encodeAll(PanelCollectionRenderer.java:949)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelCollectionRenderer$PanelCollectionHelper.access$600(PanelCollectionRenderer.java:634)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelCollectionRenderer.encodeAll(PanelCollectionRenderer.java:495)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1308)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddleForFlowing(PanelStretchLayoutRenderer.java:659)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanesFlowing(PanelStretchLayoutRenderer.java:523)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:359)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:315)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

Saturday, June 4, 2016

Use standalone adf jar to Weblogic Server ADF Shared Library

http://rohanwalia.blogspot.sg/2015/02/adf-shared-library-deploy-adf-library.html



Use SharedLibrary in an ADF Application
https://drive.google.com/drive/folders/0Bx_TOu5KSyYrNnVoY25lVDFlMnM?usp=sharing