Tuesday, 3 August 2021

OUAF C2M 2.8.0.0 installation on Windows64

This blog is for anyone looking to install Oracle C2M 2.8.0.0.

In this blog I have mainly tried to highlight the areas where there are differences between the installation steps for C2M 2.8 and C2M 2.7. For more detailed steps for installation refer my earlier blog for C2M 2.7.0.3 installation.

http://myouafworld.blogspot.com/2020/06/ouaf-c2m-2703-installation-on-windows64.html


Database installation steps:

For C2M 2.8.0.0, use Oracle 19c database. Please check that the database version is different from the one used in C2m 2.7.0.3.

Add Listener:








Create Database:





Login to database as sys as SYSDBA

Run below db statements.

CREATE TABLESPACE CISTS_01 LOGGING DATAFILE 'C:/c2m/database/c2m2800/oradata/C2M2800/cists01.dbf' SIZE 1024M REUSE AUTOEXTEND ON NEXT 8192K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;


CREATE ROLE CIS_USER;

CREATE ROLE CIS_READ;

GRANT CREATE SYNONYM to CIS_USER;

GRANT CREATE SYNONYM to CIS_READ;


CREATE USER CISADM IDENTIFIED BY CISADM DEFAULT TABLESPACE CISTS_01 TEMPORARY TABLESPACE TEMP PROFILE DEFAULT;

GRANT UNLIMITED TABLESPACE TO CISADM WITH ADMIN OPTION;

GRANT SELECT ANY TABLE TO CISADM;

GRANT CREATE DATABASE LINK TO CISADM;

GRANT CONNECT TO CISADM;

GRANT RESOURCE TO CISADM;

GRANT DBA TO CISADM WITH ADMIN OPTION;

GRANT CREATE ANY SYNONYM TO CISADM;

GRANT SELECT ANY DICTIONARY TO CISADM;

CREATE USER CISUSER PROFILE DEFAULT IDENTIFIED BY CISUSER DEFAULT TABLESPACE CISTS_01 TEMPORARY TABLESPACE TEMP;

GRANT SELECT ANY TABLE TO CISUSER;

GRANT CIS_USER TO CISUSER;

GRANT CIS_READ TO CISUSER;

GRANT CONNECT TO CISUSER;

CREATE USER CISOPR PROFILE DEFAULT IDENTIFIED BY OPRPLUS DEFAULT TABLESPACE CISTS_01 TEMPORARY TABLESPACE TEMP;

GRANT CONNECT, RESOURCE, EXP_FULL_DATABASE TO CISOPR;

CREATE USER CISREAD IDENTIFIED BY CISREAD DEFAULT TABLESPACE CISTS_01 TEMPORARY TABLESPACE TEMP;

GRANT SELECT ANY TABLE TO CISREAD;

GRANT CIS_READ TO CISREAD;

GRANT CONNECT TO CISREAD;




Extending String Size:

This is the first change for C2M 2.8, the database needs to be updated for extending the string size for VarChar. Refer below steps for doing the same.



SHOW PARAMETER max_string_size;


NAME            TYPE   VALUE    

--------------- ------ -------- 

max_string_size string STANDARD


Refer below oracle link for more details:

MAX_STRING_SIZE (oracle.com)


Increasing the Maximum Size of VARCHAR2, NVARCHAR2, and RAW Columns in a Non-CDB

To increase the maximum size of VARCHAR2NVARCHAR2, and RAW columns in a non-CDB:

  1. Shut down the database.

  2. Restart the database in UPGRADE mode.

  3. Change the setting of MAX_STRING_SIZE to EXTENDED.

  4. Run the rdbms/admin/utl32k.sql script. You must be connected AS SYSDBA to run the script.

  5. Restart the database in NORMAL mode.

Note:

The utl32k.sql script increases the maximum size of the VARCHAR2NVARCHAR2, and RAW columns for the views where this is required. The script does not increase the maximum size of the VARCHAR2NVARCHAR2, and RAW columns in some views because of the way the SQL for those views is written.

  1. Run the rdbms/admin/utlrp.sql script to recompile invalid objects. You must be connected AS SYSDBA to run the script.

SQLplus commands for updating database to EXTENDED

Connect to sqlplus

Connect using sys as sysdba


Shutdown database

SHUTDOWN NORMAL


Start database in upgrade mode

STARTUP UPGRADE


Update value to EXTENDED

alter system set max_string_size='EXTENDED';


Run script

@C:/myfolder/OracleDownloads/OracleDatabase/Oracle19c/V982656-01/rdbms/admin/utl32k.sql


Restart DB in Normal Mode

SHUTDOWN

STARTUP


Run script

@C:/myfolder/OracleDownloads/OracleDatabase/Oracle19c/V982656-01/rdbms/admin/utlrp.sql



SQLPlus Output Log for reference

SQL*Plus: Release 19.0.0.0.0 - Production on Sat May 29 01:40:37 2021

Version 19.3.0.0.0


Copyright (c) 1982, 2019, Oracle.  All rights reserved.




Enter user-name: sys as sysdba

Enter password:


Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0


SQL> SHUTDOWN NORMAL

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> STARTUP UPGRADE

ORACLE instance started.


Total System Global Area 3841981992 bytes

Fixed Size                  9035304 bytes

Variable Size             738197504 bytes

Database Buffers         3087007744 bytes

Redo Buffers                7741440 bytes

Database mounted.

Database opened.

SQL> alter system set max_string_size='EXTENDED';


System altered.


SQL> @C:/myfolder/OracleDownloads/OracleDatabase/Oracle19c/V982656-01/rdbms/admin/utl32k.sql


Session altered.



Session altered.


DOC>#######################################################################

DOC>#######################################################################

DOC>   The following statement will cause an "ORA-01722: invalid number"

DOC>   error if the database has not been opened for UPGRADE.

DOC>

DOC>   Perform a "SHUTDOWN ABORT"  and

DOC>   restart using UPGRADE.

DOC>#######################################################################

DOC>#######################################################################

DOC>#


no rows selected


DOC>#######################################################################

DOC>#######################################################################

DOC>   The following statement will cause an "ORA-01722: invalid number"

DOC>   error if the database does not have compatible >= 12.0.0

DOC>

DOC>   Set compatible >= 12.0.0 and retry.

DOC>#######################################################################

DOC>#######################################################################

DOC>#


PL/SQL procedure successfully completed.



Session altered.



0 rows updated.



Commit complete.



System altered.



PL/SQL procedure successfully completed.



Commit complete.



System altered.



Session altered.



Session altered.



Table created.



Table created.



Table created.



Table truncated.



0 rows created.



PL/SQL procedure successfully completed.



STARTTIME

--------------------------------------------------------------------------------

05/29/2021 01:53:38.240000000



PL/SQL procedure successfully completed.


No errors.


PL/SQL procedure successfully completed.



Session altered.



Session altered.



0 rows created.



no rows selected



no rows selected


DOC>#######################################################################

DOC>#######################################################################

DOC>   The following statement will cause an "ORA-01722: invalid number"

DOC>   error if we encountered an error while modifying a column to

DOC>   account for data type length change as a result of enabling or

DOC>   disabling 32k types.

DOC>

DOC>   Contact Oracle support for assistance.

DOC>#######################################################################

DOC>#######################################################################

DOC>#


PL/SQL procedure successfully completed.



PL/SQL procedure successfully completed.



Commit complete.



Package altered.



Package altered.



Session altered.


SQL> SHUTDOWN

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> STARTUP

ORACLE instance started.


Total System Global Area 3841981992 bytes

Fixed Size                  9035304 bytes

Variable Size             738197504 bytes

Database Buffers         3087007744 bytes

Redo Buffers                7741440 bytes

Database mounted.

Database opened.


SQL> @C:/myfolder/OracleDownloads/OracleDatabase/Oracle19c/V982656-01/rdbms/admin/utlrp.sql


Session altered.



TIMESTAMP

--------------------------------------------------------------------------------

COMP_TIMESTAMP UTLRP_BGN              2021-05-29 01:59:41


DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid

DOC>   objects in the database. Recompilation time is proportional to the

DOC>   number of invalid objects in the database, so this command may take

DOC>   a long time to execute on a database with a large number of invalid

DOC>   objects.

DOC>

DOC>   Use the following queries to track recompilation progress:

DOC>

DOC>   1. Query returning the number of invalid objects remaining. This

DOC>      number should decrease with time.

DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);

DOC>

DOC>   2. Query returning the number of objects compiled so far. This number

DOC>      should increase with time.

DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;

DOC>

DOC>   This script automatically chooses serial or parallel recompilation

DOC>   based on the number of CPUs available (parameter cpu_count) multiplied

DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).

DOC>   On RAC, this number is added across all RAC nodes.

DOC>

DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel

DOC>   recompilation. Jobs are created without instance affinity so that they

DOC>   can migrate across RAC nodes. Use the following queries to verify

DOC>   whether UTL_RECOMP jobs are being created and run correctly:

DOC>

DOC>   1. Query showing jobs created by UTL_RECOMP

DOC>         SELECT job_name FROM dba_scheduler_jobs

DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>

DOC>   2. Query showing UTL_RECOMP jobs that are running

DOC>         SELECT job_name FROM dba_scheduler_running_jobs

DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>#


PL/SQL procedure successfully completed.



TIMESTAMP

--------------------------------------------------------------------------------

COMP_TIMESTAMP UTLRP_END              2021-05-29 02:00:02


DOC> The following query reports the number of invalid objects.

DOC>

DOC> If the number is higher than expected, please examine the error

DOC> messages reported with each object (using SHOW ERRORS) to see if they

DOC> point to system misconfiguration or resource constraints that must be

DOC> fixed before attempting to recompile these objects.

DOC>#


OBJECTS WITH ERRORS

-------------------

                  0


DOC> The following query reports the number of exceptions caught during

DOC> recompilation. If this number is non-zero, please query the error

DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors

DOC> are due to misconfiguration or resource constraints that must be

DOC> fixed before objects can compile successfully.

DOC> Note: Typical compilation errors (due to coding errors) are not

DOC>       logged into this table: they go into DBA_ERRORS instead.

DOC>#


ERRORS DURING RECOMPILATION

---------------------------

                          0



Function created.



PL/SQL procedure successfully completed.



Function dropped.



PL/SQL procedure successfully completed.


SQL>




Import Demo Database:


Check datapump dir location:

SELECT directory_name, directory_path FROM dba_directories where directory_name = 'DATA_PUMP_DIR';


DATA_PUMP_DIR C:\c2m\dbadmin\app\admin\c2m2800\dpdump/


Extract dmp file and place it in data pump directory




Before running import statement,

Login to sql developer with sys as sysdba and run below statement.

grant execute on dbms_rls to CISADM with grant option;




impdp directory=data_pump_dir dumpfile=exp_demo.dmp logfile=exp_demo.log schemas=CISADM








If you didn’t run the access statement for dbms_rls earlier before import, you will see that the Procedure W1_APPLY_VPD_POLICY has compilation errors as seen above. To resolve, do below steps,


Login to sql developer with sys as sysdba and run below statement.

grant execute on dbms_rls to CISADM with grant option;

Recompile the Procedure W1_APPLY_VPD_POLICY in error.



Creating Synonyms for CISUSER and CISREAD:

Extract the files in V1006660-01


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1006660-01\jarfiles



SET CLASSPATH=C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1006660-01\jarfiles\*


"%JAVA_HOME%"\bin\java -Xmx1500M com.oracle.ouaf.oem.install.OraGenSec -d CISADM,CISADM,jdbc:oracle:thin:@localhost:1523/C2M2800 -u CISUSER,CISREAD -r CIS_USER,CIS_READ -a A -p CISUSER,CISREAD -l output.log






Weblogic Installation:


Download steps:

Ensure you download version 12.2.1.4 or above of weblogic


Only below file ‘V983368-01.zip’ is needed for installation.



Installation steps:



Open command prompt, navigate to above location

Run below command


C:\c2m\java\jdk\bin\java –jar fmw_12.2.1.4.0_infrastructure.jar


Below screen opens up, follow the steps shown below.










Weblogic Installation completed.



Application Installation:


Below are the steps for C2M Application installation:

  1. Install Oracle Utilities Application Framework V4.4.0.3.0
  2. Update Keystore
  3. Install Oracle Utilities Application Framework V4.4.0.3.0 Prerequisite Single Fixes
  4. Install Oracle Utilities Customer Care and Billing V2.8.0.0.0
  5. Install Oracle Utilities Customer Care and Billing V2.8.0.0.0 Post-release Patches
  6. Install Oracle Utilities Meter Data Management V2.4.0.0.0
  7. Install Oracle Utilities Operational Device Management V2.3.0.0.0
  8. Install Oracle Utilities Customer To Meter V2.8.0.0.0
  9. Install Oracle Utilities Customer To Meter V2.8.0.0.0 Post-release Patches


Framework installation:


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1006661-01.zip



Copy the file FW-V4.4.0.3.0-MultiPlatform.jar from the delivered package to the

<TEMPDIR>

cd <TEMPDIR>


jar -xvf FW-V4.4.0.3.0-MultiPlatform.jar

Update the configuration values as shown below. You can modify the port number as needed.



************************************

* Environment Installation Options *

************************************


 1. Environment ID, Roles, Third Party Software Configuration

       Environment ID:                                    10432182

       Server Roles:                                      batch,online

       Oracle Client Home Directory:                      C:\myfolder\OracleDownloads\OracleDatabase\Oracle19c\V982656...

       Web Java Home Directory:                           C:\c2m\java\jdk

       Hibernate JAR Directory:                           C:\c2m\hibernate

       ONS JAR Directory:

       Web Application Server Home Directory:             C:/c2m/weblogic/12.2.1.4.0/Oracle/Middleware/Oracle_Home/wls...

       Additional JAR Directory:


 2. Keystore Options

       Import Keystore Directory:


50. Environment Installation Options

       Environment Mount Point:                           C:/c2m/ouaf

       Log Files Mount Point:                             C:/c2m/ouaf/sploutput

       Environment Name:                                  C2M2800

       Install Application Viewer Module:                 true

       Install Sample CM Source Code:                     true


Please Note*: Below highlighted config value for JNDI password has to be same when you enter the password for system user in native weblogic configuration.

Also set Deploy application viewer to false in case you don't need it. This reduces the ear build time during installation. You can set it to true later if you need it.




*************************************

* Environment Configuration C2M2800 *

*************************************


 1. Environment Description

       Environment Description:                           c2m2800


 2. Business Application Server Configuration

       Business Server Host:                              localhost

       Business Server Application Name:                  SPLService


 3. Web Application Server Configuration

       Web Server Host:                                   localhost

       WebLogic SSL Port Number:                          6701

       WebLogic Console Port Number:                      6700

       Web Context Root:                                  ouaf

       WebLogic JNDI User ID:                             system

       WebLogic JNDI Password:                            ENCKS(****)

       WebLogic Server Name:                              c2m2800server

       Web Server Application Name:                       SPLWeb

       Deploy Application Viewer Module:                  true

       Enable The Unsecured Health Check Service:         false

       MDB RunAs User ID:                                 SYSUSER

       Super User Ids:


 4. Database Configuration

       Application Server Database User ID:               CISADM

       Application Server Database Password:              ENCKS(****)

       XAI Database User ID:                              CISADM

       XAI Database Password:                             ENCKS(****)

       Batch Database User ID:                            CISADM

       Batch Database Password:                           ENCKS(****)

       Web JDBC DataSource Name:

       Database Name:                                     C2M2800

       Database Server:                                   localhost

       Database Port:                                     1523

       ONS Server Configuration:

       Database Override Connection String:

       Character Based Database:                          false

       Oracle Client Character Set NLS_LANG:              AMERICAN_AMERICA.AL32UTF8


 5. General Configuration Options

       Batch RMI Port:                                    6740

       RMI Port number for JMX Business:                  6750

       RMI Port number for JMX Web:                       6770

       JMX Enablement System User ID:                     system

       JMX Enablement System Password:                    ENCKS(****)

       Coherence Cluster Name:                            mycluster

       Coherence Cluster Address:                         localhost

       Coherence Cluster Port:                            6903

       Coherence Cluster Mode:                            dev


 6. OUAF TrustStore Options

       Import TrustStore Directory:


Each item in the above list should be configured for a successful install.


Choose option (1,2,3,4,5,6, <P> Process, <X> Exit):



Updating keystore:


Verify keystore files are present under ks folder





1. Using configureEnv.cmd, re-enter the menu passwords to encrypt the data.

2. Run initialSetup.cmd to update property files with the encrypted data.


Next navigate to %SPLEBASE%/bin folder


Run splenviron.cmd -e C2M2703


Navigate back to bin folder

Run following commands


perl run_java_standalone.plx com.splwg.shared.common.ResetCryptographyKey


invokeDBUpdatePatch.cmd


Verify that both commands ran successfully.

This completes the configuration of OUAF keystore part of the installation



Installing Oracle Utilities Application Framework V4.4.0.3.0 Prerequisite Single Fixes:


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008706-01.zip




Copy the file to temporary location

jar -xvf C2M-V28000-FW-PREREQ-MultiPlatform.jar


$SPLEBASE\bin\splenviron.cmd -e %SPLENVIRON%

Navigate to the <temp location>/FW-V4.4.0.3.0-Rollup/Application folder.

installSFgroup.cmd



Installing the Oracle Utilities Customer Care and Billing Application Component:

C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008715-01.zip




Copy the file CCB-V2.8.0.0.0-MultiPlatform.jar in the delivered package to a <TEMPDIR>.


cd <TEMPDIR>


jar -xvf CCB-V2.8.0.0.0-MultiPlatform.jar



$SPLEBASE\bin\splenviron.cmd -e %SPLENVIRON%


Change to the <TEMPDIR>/CCB.V2.8.0.0.0 directory.


install.cmd


Options will come up. Enter ‘P’ and click on enter. 



Installing Oracle Utilities Customer Care and Billing V2.8.0.0.0 Post-release Patches:


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008718-01.zip



Copy the CCB-V28000-Rollup-MultiPlatform.jar file in the delivered package to a <TEMPDIR>.

2. Unjar the file.


jar -xvf CCB-V28080-Rollup-MultiPlatform.jar



$SPLEBASE\bin\splenviron.cmd -e %SPLENVIRON%


Navigate to the <temp location>/CCB-V2.8.0.0.0-Rollup/Application folder.


installSFgroup.cmd



Installing Oracle Utilities Meter Data Management V2.4.0.0.0:


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008725-01.zip



Copy the MDM-V2.4.0.0.0-MultiPlatform.jar file in the delivered package to a <TEMPDIR>.

2. Unjar the file.



jar -xvf MDM-V2.4.0.0.0-MultiPlatform.jar


$SPLEBASE\bin\splenviron.cmd -e <ENV NAME>


Navigate to the <temp location>/MDM.V2.4.0.0.0 folder.


install.cmd


Choose option P to proceed with the installation.



Installing Oracle Utilities Operational Device Management V2.3.0.0.0:


C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008727-01.zip






Copy the WAM-V2.3.0.0.0-Multiplatform.jar file in the delivered package to a

<TEMPDIR> on your host server.

cd <TEMPDIR>

jar -xvf WAM-V2.3.0.0.0-Multiplatform.jar



splenviron.cmd -e <ENV NAME>

4. Change to the <TEMPDIR>/W1.V2.3.0.0.0 directory 


splenviron.cmd -e <ENV NAME>

install.cmd

Choose option P to proceed with the installation.




Installing Oracle Utilities Customer To Meter V2.8.0.0.0:

C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008730-01.zip


Copy the C2M.V2.8.0.0.0-MultiPlatform.jar file in the delivered package to a

<TEMPDIR> on your application server


cd <TEMPDIR>


jar -xvf C2M-V2.8.0.0.0-MultiPlatform.jar

splenviron.cmd -e <ENV NAME>

Change to the <TEMPDIR>/C2M.V2.8.0.0.0 directory.

install.cmd


Installing Oracle Utilities Customer To Meter V2.8.0.0.0 Post-release Patches:

C:\myfolder\OracleDownloads\C2M_2.8.0.0\V1008732-01.zip


Copy the C2M-V28000-Rollup-MultiPlatform.jar file in the delivered package to a

<TEMPDIR>.

Navigate to C:\temp2\C2M-V2.8.0.0.0-Rollup\Application

2. Unjar the file.

jar -xvf C2M-V28080-Rollup-MultiPlatform.jar


$SPLEBASE\bin\splenviron.cmd -e %SPLENVIRON%


Navigate to the <temp location>/C2M-V2.8.0.0.0-Rollup/Application folder.


installSFgroup.cmd

This completes the installation of C2M application.



Native installation of C2M 2.8.0.0 on Weblogic:

(Kindly also refer my latest blog for using WLST to do native installation on weblogic. It helps to reduce the time taken as well as reduces any errors. Link to blog: Native installation using WLST)

Refer below steps for deploying the C2M application on Weblogic in native mode

Ensure Oracle Restricted JRF is selected. This is need for help link to work on application.












For deploying the application on weblogic, refer the steps in my earlier blog for deploying SPLService, SPLWeb and ohelp ear files. Below is blog link for reference.

http://myouafworld.blogspot.com/2020/06/ouaf-c2m-2703-installation-on-windows64_5.html

One difference for the class path on 'Server Start' tab of c2m2800 server in weblogic admin fron end:

C:\c2m\ouaf\C2M2800\splapp\standalone\lib\antlr-2.7.7.jar;C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic_sp.jar;C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic.jar


Before deployment of ear files, ensure you do the below changes, the size of deployment files has increased in V2.8.0.0. Some configuration changes are needed before proceeding with deployment of SPLService and SPLWeb.



Navigate to 'C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\user_projects\domains\c2m2800_domain\bin'

Open below file

startWebLogic.cmd

Add below line in file. Refer screenshot below for location to update.

set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.deploy.MaxPostSize="2000000000"


(Max value allowed in this option is 21474836480 or 2GB)


If you don’t do above step, you might see below error when deploying SPLWeb ear file


<BEA-290076> <Total size of transferred files is "1.146" GB and it exceeded configured limit "1.074" GB.>

java.io.IOException: Posted content exceeds max post size





Also increase the heap size to 3 GB in same file.

set USER_MEM_ARGS=-Xms3072m -Xmx3072m -XX:PermSize=512m


After initial installation, you can move the heap size setting to setUserOverrides.cmd file. This is so that the heap size is applied only on the C2M server and not the weblogic admin server.

Below is step for it.

Add this file ‘setUserOverrides.cmd’ in “C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\user_projects\domains\c2m2800_domain\bin” location.

The sample file for ‘setUserOverrides.cmd’ is available in following location “C:\c2m\ouaf\C2M2800\tools\examples\bin”

setUserOverrides.cmd content for reference

@echo off

REM

REM This is a WebLogic domain customized domain overide utility to ensure the appropriate environmental values are set for the domain startup

REM

REM


echo %SPLEBASE%


if "%SERVER_NAME%"=="c2m2800server" (

set SPLEBASE=C:\c2m\ouaf\C2M2800

set USER_MEM_ARGS=-Xms3072m -Xmx3072m -XX:PermSize=512m

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7758 %JAVA_OPTIONS%

)



if "%SPLEBASE%" == "" (

   echo SPLEBASE needs to be set in environment

   exit /b 0

)


if "%TRUST_TYPE%" == "DEMO" (

   set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.security.TrustKeyStore=DemoTrust

)


if "%USER_MEM_ARGS%" == "" (

   set USER_MEM_ARGS=-Xms1024m -Xmx2048m

)


set JAVA_OPTIONS=-XX:CompileThreshold=8000 -Djava.security.auth.login.config=%SPLEBASE%\splapp\config\java.login.config -Dfile.encoding=UTF8 -Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl -Djavax.xml.soap.SOAPConnectionFactory=weblogic.wsee.saaj.SOAPConnectionFactoryImpl -Dcom.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace=false -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0 -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Dweblogic.security.SSL.ignoreHostnameVerification=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\temp -Djava.net.preferIPv4Stack=true %JAVA_OPTIONS%


REM set OUAF_DEBUG_PORT (E.g. set OUAF_DEBUG_PORT=6599) prior to starting to enable server debugging 

if DEFINED OUAF_DEBUG_PORT (

   set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%OUAF_DEBUG_PORT% %JAVA_OPTIONS%

)


echo SPLEBASE %SPLEBASE%

echo SERVER_NAME %SERVER_NAME%


This completes the steps to deploy the C2M application. You can start the C2M server and verify that it is running. Refer my earlier blog for the steps.


IWS Deployment

Added the steps for IWS deployment in weblogic native mode

Admin server and C2M server should be up and running.

In below command, 7010 port number is weblogic admin port number. Update the port number in the command with the port number configured in your system.

Connect to oracle database

Login as SYS user.
2. On the SQL prompt, run:
@?/rdbms/admin/userlock.sql
3. Grant permission.
grant execute on USER_LOCK to public;


Go to command prompt

Go to $WeblogicHome\oracle_common\common\bin

Run below commands

wlst.cmd
connect("weblogicuser","password","t3://localhost:weblogicAdminconsoleport")
storeUserConfig('$SPLBASE/etc/.wlsuserconfig',' $SPLBASE/etc/.wlsuserkey')


connect("weblogic","password","t3://localhost:7010")

storeUserConfig('C:/c2m/ouaf/C2M2800/etc/.wlsuserconfig','C:/c2m/ouaf/C2M2800/etc/.wlsuserkey')

Navigate to etc folder as shown below, you can see that the .wlsuserconfg and .wlsuserkey files have got created.



Navigate to “C:\c2m\ouaf\C2M2800\splapp\iws” and update below file

iws-build-WLS.xml

  <property name="web.admin.url"         value="t3://localhost:7010" />


Navigate to below file and do the highlighted updates for Heap size

iws-build-common.xml


  <target name="generate" depends="clean">

    <echo message="Running IWS generator. Please wait..." />

    <property name="logprop" value="${gen.home.dir}/config/log4j2.properties" />

    <echo file="${logprop}" append="false" message="status=error${nl}" />

    <echo file="${logprop}" append="true" message="name=PropertiesConfig${nl}" />

    <echo file="${logprop}" append="true" message="appender.A1.type=Console${nl}" />

    <echo file="${logprop}" append="true" message="appender.A1.name=A1${nl}" />

<echo file="${logprop}" append="true" message="appender.A1.layout.type=PatternLayout${nl}" />

<echo file="${logprop}" append="true" message="appender.A1.layout.pattern=%X{userId} - %X{transactionId} %d [%t] %-5p (%c{3}) %m%n${nl}" />

    <java classname="com.oracle.ouaf.ws.tools.artifactgen.InboundWebserviceGenerator" fork="true" failonerror="true">

      <jvmarg value="-Xmx2048m" />

      <jvmarg value="-Xms2048m" />


splenviron.cmd -e <ENV NAME>

Execute the following command in %SPLEBASE%\bin. Make sure the application

server is up and running.


iwsdeploy.cmd

Command should run successfully without any errors.

Next login to weblogic admin and go to deployments, you should see Webservice.ear fiel deployed and Active.


Testing Webservice with SOAPUI.

Refer below steps for testing webservice is working after deployment

Open below OOB webservice and open its wsdl

Click on the WSDL link and open below WSDL. Copy the WSDL url

https://localhost:6701/ouaf/webservices/D1-DeviceEventSeeder?WSDL


Open SOAP UI, open new SOAP project. Copy the WSDL url here.

Navigate to Request 1

Update the Request1 with below request xml

Sample xml below for reference

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:d1="http://ouaf.oracle.com/webservices/d1/D1-DeviceEventSeeder">

   <soapenv:Header/>

   <soapenv:Body>

      <d1:D1-DeviceEventSeeder>

         <d1:externalSenderId>SENSUS</d1:externalSenderId>

         <d1:deviceEventType>DEVICELOWBATTERY</d1:deviceEventType>

         <d1:eventDateTime>2020-05-29T10:20:15</d1:eventDateTime>

         <d1:deviceId>272059640649</d1:deviceId>

      </d1:D1-DeviceEventSeeder>

   </soapenv:Body>

</soapenv:Envelope>


Update the username and password in the request properties. Set WSS-Password Type to ‘PasswordText’ and set WSS TimeToLive to ‘72’


Now run the request, if the webservice deployment is proper, you should see a successful response as seen below.


108 comments:

  1. Hi shreenath,

    Thanks for your latest blog for C2M2.8

    I want to confirm that as in C2M 2.7 we used following jars for native installation. Are they same in 2.8 because I have found only 3 jars On linux machine
    C:\c2m\ouaf\C2M2703\splapp\standalone\lib\xalan-mod-2.7.1.jar;C:\c2m\ouaf\C2M2703\splapp\standalone\lib\serializer-2.7.1.jar;C:\c2m\ouaf\C2M2703\splapp\standalone\lib\antlr-2.7.6.jar;C:\c2m\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic_sp.jar; C:\c2m\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic.jar

    ReplyDelete
    Replies
    1. I had added these jars in the classpath box on Server start on the C2M server in weblogic for native installation.
      C:\c2m\ouaf\C2M2800\splapp\standalone\lib\antlr-2.7.7.jar;
      C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic_sp.jar;
      C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\wlserver\server\lib\weblogic.jar

      Delete
    2. Thanks for your quick response....Really Appreciate!!!

      Delete
  2. Hi Sreeneeth,

    I am doing the C2M 2.8 installation.
    After importing the demo database, it displayed below errors in the command prompt:

    Dependent object type INDEX:"CISADM"."XC306P0" skipped, base object type TABLE:"CISADM"."CI_ALG_PARM" creation failed.
    Dependent object type INDEX:"CISADM"."XC681P0" skipped, base object type TABLE:"CISADM"."CI_ZONE_PRM" creation failed.
    Dependent object type CONSTRAINT:"CISADM"."SYS_C0061778" skipped, base object type TABLE:"CISADM"."CI_ZONE_PRM" creation failed.
    Dependent object type CONSTRAINT:"CISADM"."SYS_C0062613" skipped, base object type TABLE:"CISADM"."CI_ALG_PARM" creation failed.

    Could you please suggest on this.

    Thanks!

    ReplyDelete
    Replies
    1. Ensure you have done the step for extending character size for database. After that try reimporting the tables in error again. There is an option on imp command to import specific tables.

      Delete
  3. For anyone facing following errors on artifact generation for SDK for C2M 2.8 (framework 4.4.0.3).
    ERROR StatusLogger Reconfiguration failed: No configuration found for '3cd1a2f1' at 'null' in 'null'
    ERROR StatusLogger Reconfiguration failed: No configuration found for 'Default' at 'null' in 'null'

    Do the following correction in the file 'C2M2800_Project/C2M2800_Project_CM Generate Artifacts.launch'
    correct the following line in the file. Remove the parameter for Dlog4j.configuration from the line.

        

    Corrected Line:

    ReplyDelete
    Replies
    1. Remove this line from the setting : -Dlog4j.configurationFile=file:/${resource_loc:/C2M2800_Project/_tools/aglog4j.properties}

      Delete
  4. Can you please provide installation steps for ormb 2.8
    i have installed ormb but at the time of importing data it is showing error
    data loss in character set
    If you have any idea please help

    thanks

    ReplyDelete
    Replies
    1. Hi, please check if you have followed the steps for 'Setting the MAX_STRING_SIZE Parameter to EXTENDED' before importing the demo database.

      The steps are same as mentioned in above blog for C2M.

      Delete
  5. Unrelated to IWS Deploy, do you have any experience with modifying the SOAP request to enable 1-time debug ? Documentation says to add it into the request but I cant figure out how.

    ReplyDelete
    Replies
    1. hey, you need to check the debug flag on the IWS. Check the below screenshot for reference.
      https://lh5.googleusercontent.com/R41bUckyOypHMc52QsDXAKWlYN-X0qw9uz7kxZs-diFFTDM8-NOqkxFHj4IfH4rhJzYhcxEGpEi3bvBnop2t2_UjXR9zvvgcP2KtAFRm3qoaVw1si3kpYoOPfSoX8bfOZq7LBHg

      Delete
    2. Hey thank you again, i was aware of the debug flag, i thought i read a way to add the flag within the SOAP request to debug that specific transaction, rather than turning it on for the entire IWS service. Thank you anyway and hope you are doing well! This site has taught me so much.

      Delete
  6. Hi Sreeneeth, I faced the following issue when excecute the command iwsdeploy.cmd:

    D:\c2m\ouaf2.8\C2M2800\splapp\iws\iws-build-common.xml:30: Java returned: -1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:577) ~[ant-1.10.9.jar:1.10.9]
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) ~[ant-1.10.9.jar:?]
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) ~[ant-1.10.9.jar:1.10.9]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_311]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_311]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_311]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_311]
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) ~[ant-1.10.9.jar:?]
    at org.apache.tools.ant.Task.perform(Task.java:350) ~[ant-1.10.9.jar:1.10.9]
    at org.apache.tools.ant.Target.execute(Target.java:449) ~[ant-1.10.9.jar:1.10.9]
    at org.apache.tools.ant.Target.performTasks(Target.java:470) ~[ant-1.10.9.jar:1.10.9]
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) ~[ant-1.10.9.jar:1.10.9]
    at org.apache.tools.ant.Project.executeTarget(Project.java:1374) ~[ant-1.10.9.jar:1.10.9]
    at com.splwg.base.domain.webservices.inbound.AntRunner.execute(AntRunner.java:64) [spl-base-4.4.0.3.0.jar:?]
    at com.splwg.base.domain.webservices.inbound.AntRunner.execute(AntRunner.java:17) [spl-base-4.4.0.3.0.jar:?]
    at com.splwg.base.support.context.SessionExecutable.doInCurrentSession(SessionExecutable.java:174) [spl-base-4.4.0.3.0.jar:?]
    at com.oracle.ouaf.ws.IwsDeploy$1.execute(IwsDeploy.java:120) [spl-iws-4.4.0.3.0.jar:?]
    at com.oracle.ouaf.ws.IwsDeploy$1.execute(IwsDeploy.java:109) [spl-iws-4.4.0.3.0.jar:?]
    at com.splwg.base.support.context.SessionExecutable.doInNewSession(SessionExecutable.java:65) [spl-base-4.4.0.3.0.jar:?]
    at com.oracle.ouaf.ws.IwsDeploy.run(IwsDeploy.java:132) [spl-iws-4.4.0.3.0.jar:?]
    at com.oracle.ouaf.ws.IwsDeploy.main(IwsDeploy.java:41) [spl-iws-4.4.0.3.0.jar:?]
    - 2022-01-31 17:06:28,040 [main] INFO (ouaf.iwsbuild.echo) BUILD FAILED
    - 2022-01-31 17:06:28,041 [main] INFO (ouaf.iwsbuild.echo) Total time: 251 seconds

    ReplyDelete
    Replies
    1. Hey, I have not faced this issue on my system. Though many people who tried installing IWS have faced this error. Have not been able to identify the root cause of issue. If you want we can do a screen share and have a look at it. My email id is sreeneeth@gmail.com.

      Delete
    2. Hi Sreeneeth, Has this issue been identified. Sometimes people get -1 and sometimes they get 1 as mentioned below,

      2022-03-29 09:32:47,734 [main] ERROR (webservices.inbound.AntRunner) Error executing build script /datadisk01/app/C2M/C2MDEV3/splapp/iws/iws-build-WLS.xml
      org.apache.tools.ant.ExitStatusException: The following error occurred while executing this line:
      D:\c2m\ouaf2.8\C2M2800\splapp\iws\iws-build-common.xml:95: Java returned: 1
      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:577) ~[ant-1.10.9.jar:1.10.9]
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) ~[ant-1.10.9.jar:?]
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) ~[ant-1.10.9.jar:?]
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) ~[ant-1.10.9.jar:1.10.9]
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) ~[?:?]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) ~[ant-1.10.9.jar:?]
      at org.apache.tools.ant.Task.perform(Task.java:350) ~[ant-1.10.9.jar:1.10.9]
      at org.apache.tools.ant.Target.execute(Target.java:449) ~[ant-1.10.9.jar:1.10.9]
      at org.apache.tools.ant.Target.performTasks(Target.java:470) ~[ant-1.10.9.jar:1.10.9]
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) ~[ant-1.10.9.jar:1.10.9]
      at org.apache.tools.ant.Project.executeTarget(Project.java:1374) ~[ant-1.10.9.jar:1.10.9]
      at com.splwg.base.domain.webservices.inbound.AntRunner.execute(AntRunner.java:64) [spl-base-4.4.0.3.0.jar:?]
      at com.splwg.base.domain.webservices.inbound.AntRunner.execute(AntRunner.java:17) [spl-base-4.4.0.3.0.jar:?]
      at com.splwg.base.support.context.SessionExecutable.doInCurrentSession(SessionExecutable.java:174) [spl-base-4.4.0.3.0.jar:?]
      at com.oracle.ouaf.ws.IwsDeploy$1.execute(IwsDeploy.java:120) [spl-iws-4.4.0.3.0.jar:?]
      at com.oracle.ouaf.ws.IwsDeploy$1.execute(IwsDeploy.java:109) [spl-iws-4.4.0.3.0.jar:?]
      at com.splwg.base.support.context.SessionExecutable.doInNewSession(SessionExecutable.java:65) [spl-base-4.4.0.3.0.jar:?]
      at com.oracle.ouaf.ws.IwsDeploy.run(IwsDeploy.java:132) [spl-iws-4.4.0.3.0.jar:?]
      at com.oracle.ouaf.ws.IwsDeploy.main(IwsDeploy.java:41) [spl-iws-4.4.0.3.0.jar:?]
      - 2022-03-29 09:32:47,748 [main] INFO (ouaf.iwsbuild.echo) BUILD FAILED
      - 2022-03-29 09:32:47,748 [main] INFO (ouaf.iwsbuild.echo) Total time: 411 seconds

      Delete
    3. Hey, not able to replicate it on my server so cant identify root cause. Can do screen share and debug if needed. My email is sreeneeth@gmail.com.

      Delete
    4. For this issue "com.oracle.ouaf.ws.ConfigurationError: Could not initialize 'Java System Compiler'". Verify that 'PATH' variable in system environment variables. Ensure that it has only one path to java.exe and that should be the one we are using in JAVA_HOME

      Delete
    5. Verify that the first java executable in the 'PATH' variable is pointing to the one set in 'JAVAHOME'

      Delete
    6. I encountered the same error. To fix it, I placed %JAVA_HOME%/bin as the first value on the Path environment variable.

      Delete
  7. Hi Sreeneeth,
    I have done all the steps mentioned, but while bringing up the application browser is not loading.
    I have verified the logs in the folder C:\C2M\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\c2m2800_domain2\servers\c2m2800server\logs
    Below is the screen

    aused By: javax.naming.AuthenticationException: [Security:090938]Authentication failure:
    The specified user failed to log in. javax.security.auth.login.FailedLoginException:
    [Security:090302]Authentication Failed: User specified user denied
    [Root exception is javax.security.auth.login.FailedLoginException:
    [Security:090938]Authentication failure: The specified user failed to log in.
    javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:48)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:969)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:853)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:609)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:418)
    at weblogic.jndi.Environment.getContext(Environment.java:353)
    at weblogic.jndi.Environment.getContext(Environment.java:322)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:131)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
    at javax.naming.InitialContext.init(InitialContext.java:244)
    at javax.naming.InitialContext.(InitialContext.java:216)
    at com.splwg.serviceclient.ServiceClientHelper.createContext(ServiceClientHelper.java:52)
    at com.splwg.serviceclient.ServiceClientHelper.getServiceBean(ServiceClientHelper.java:36)
    at com.splwg.serviceclient.RemotePageServiceDispatcherHelper.doIt(RemotePageServiceDispatcherHelper.java:17)
    at com.splwg.serviceclient.RemoteServiceDispatcher.readSystem(RemoteServiceDispatcher.java:51)
    at com.splwg.base.web.startup.PreloadLoginInfo.getMostPrevalentUserLanguage(PreloadLoginInfo.java:269)
    at com.splwg.base.web.startup.PreloadLoginInfo.initializeRequestContext(PreloadLoginInfo.java:220)
    at com.splwg.base.web.startup.PreloadLoginInfo.privateExecute(PreloadLoginInfo.java:70)
    at com.splwg.base.web.startup.PreloadLoginInfo.execute(PreloadLoginInfo.java:58)
    at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:71)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:719)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:344)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
    at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:251)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:204)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:189)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1929)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1864)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:919)
    at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)


    Could you let me know where to verify and where to change.

    ReplyDelete
    Replies
    1. Verify that the JNDI password is same as the password set on weblogic 'system' user
      WebLogic JNDI User ID: system
      WebLogic JNDI Password:

      Verify the user creation step for weblogic native installation.

      Delete
  8. Heelo Sreeneth,
    Thank you!!I identified its password issue and fixed it.
    Now i am able to access the application , but with "The server has encountered a problem. Please contact your system administrator." in the dashboard.
    Dashborad is not loading,even when i try to access any of the entities from Admin/Main menu same error "The server has encountered a problem. Please contact your system administrator."

    Could you let me know what is the issue.
    Are there any issues in connecting to DB?

    ReplyDelete
    Replies
    1. Check the log file for any error messages.

      Delete
    2. I have similar issue like, the server has encountered a problem,Please contact your system administrator. post clicking on login button

      Delete
    3. Check the server log files if there any errors visible.

      Delete
  9. I verified the logs, below are the issues

    Caused By: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:510)
    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:462)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1105)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:551)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:656)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:271)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:92)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:808)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1044)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1243)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3719)
    at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1427)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3766)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1168)
    at oracle.ucp.jdbc.proxy.oracle$1ucp$1jdbc$1proxy$1oracle$1StatementProxy$2oracle$1jdbc$1internal$1OraclePreparedStatement$$$Proxy.executeQuery(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
    at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
    at com.sun.proxy.$Proxy263.executeQuery(Unknown Source)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1962)
    at org.hibernate.loader.Loader.doQuery(Loader.java:829)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
    at org.hibernate.loader.Loader.doList(Loader.java:2447)
    at org.hibernate.loader.Loader.doList(Loader.java:2433)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2263)
    at org.hibernate.loader.Loader.list(Loader.java:2258)
    at org.hibernate.hql.internal.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:942)
    at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:196)
    at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1161)
    at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
    at com.splwg.base.support.impl.QueryImpl.list(QueryImpl.java:258)
    at com.splwg.base.support.impl.UnionQueryImpl.list(UnionQueryImpl.java:554)
    at com.splwg.base.domain.web.PortalZoneMetadataService.populateParameters(PortalZoneMetadataService.java:103)
    at com.splwg.base.domain.web.PortalZoneMetadataService.read(PortalZoneMetadataService.java:57)
    at com.splwg.base.support.pagemaintenance.AbstractPageMaintenance.readItem(AbstractPageMaintenance.java:91)
    at com.splwg.base.support.service.JavaPageReadService$1.execute(JavaPageReadService.java:31)
    at com.splwg.base.support.service.JavaPageReadService$1.execute(JavaPageReadService.java:26)
    at com.splwg.base.support.context.FlushDisabledExecutable.doWithFlushesDisabled(FlushDisabledExecutable.java:27)
    at com.splwg.base.support.service.JavaPageReadService.read(JavaPageReadService.java:35)
    at com.splwg.base.support.service.PageReadService.privateExecute(PageReadService.java:55)
    at com.splwg.base.support.service.PageReadService.execute(PageReadService.java:39)
    at com.splwg.base.api.service.ServiceDispatcher.readItemInSession(ServiceDispatcher.java:629)
    at com.splwg.base.support.service.ServiceReplayExecuter$1.execute(ServiceReplayExecuter.java:156)

    I am unable to find out why this issue has come up.

    ReplyDelete
    Replies
    1. Check the logs for the table name. Maybe the table was not imported correctly.

      Delete
  10. I verified the logs, below are the issues

    Caused By: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:510)
    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:462)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1105)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:551)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:656)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:271)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:92)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:808)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1044)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1243)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3719)
    at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1427)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3766)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1168)
    at oracle.ucp.jdbc.proxy.oracle$1ucp$1jdbc$1proxy$1oracle$1StatementProxy$2oracle$1jdbc$1internal$1OraclePreparedStatement$$$Proxy.executeQuery(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
    at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
    at com.sun.proxy.$Proxy263.executeQuery(Unknown Source)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1962)
    at org.hibernate.loader.Loader.doQuery(Loader.java:829)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
    at org.hibernate.loader.Loader.doList(Loader.java:2447)
    at org.hibernate.loader.Loader.doList(Loader.java:2433)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2263)
    at org.hibernate.loader.Loader.list(Loader.java:2258)
    at org.hibernate.hql.internal.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:942)
    at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:196)
    at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1161)
    at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
    at com.splwg.base.support.impl.QueryImpl.list(QueryImpl.java:258)
    at com.splwg.base.support.impl.UnionQueryImpl.list(UnionQueryImpl.java:554)
    at com.splwg.base.domain.web.PortalZoneMetadataService.populateParameters(PortalZoneMetadataService.java:103)
    at com.splwg.base.domain.web.PortalZoneMetadataService.read(PortalZoneMetadataService.java:57)
    at com.splwg.base.support.pagemaintenance.AbstractPageMaintenance.readItem(AbstractPageMaintenance.java:91)
    at com.splwg.base.support.service.JavaPageReadService$1.execute(JavaPageReadService.java:31)
    at com.splwg.base.support.service.JavaPageReadService$1.execute(JavaPageReadService.java:26)
    at com.splwg.base.support.context.FlushDisabledExecutable.doWithFlushesDisabled(FlushDisabledExecutable.java:27)
    at com.splwg.base.support.service.JavaPageReadService.read(JavaPageReadService.java:35)
    at com.splwg.base.support.service.PageReadService.privateExecute(PageReadService.java:55)
    at com.splwg.base.support.service.PageReadService.execute(PageReadService.java:39)
    at com.splwg.base.api.service.ServiceDispatcher.readItemInSession(ServiceDispatcher.java:629)
    at com.splwg.base.support.service.ServiceReplayExecuter$1.execute(ServiceReplayExecuter.java:156)

    I am unable to find out why this issue has come up.

    ReplyDelete
    Replies
    1. Is this resolved. Let me know if issue persists.

      Delete
    2. Hello,

      Yes the issue is resolved.Its DB issue.

      Thank you!!

      Delete
    3. Can you please paste the solution to resolve this issue ?

      Delete
    4. Hi, I already replied, kindly verify the log file created when importing the demo database. It should be present in the same folder as datapump directory. Verify if there were any errors for any tables when importing.

      Delete
  11. Hello,

    I have done C2M jars installation as well,
    After initialsetup is done,i have updated the SPLService and SPLWar in weblogic deployments,
    But while bringing up the application i see below error in file
    Caused By: java.lang.ClassNotFoundException: com.splwg.w1.api.lookup.MaintenanceObjectOptionTypeLookup
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
    at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:473)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal(GenericClassLoader.java:1113)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:1046)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1038)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
    at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:473)
    at com.splwg.base.common.ClassUtils.loadClass(ClassUtils.java:65)
    at com.splwg.base.common.ClassUtils.loadClass(ClassUtils.java:46)
    at com.splwg.base.support.context.RuntimeLookupCreator.writeDelegatingMethods(RuntimeLookupCreator.java:240)
    at com.splwg.base.support.context.RuntimeLookupCreator.createLookupGenClass(RuntimeLookupCreator.java:184)
    what might be the reason.

    ReplyDelete
    Replies
    1. Seems like installation is not done for ODM module. Check if spl-w1-2.3.0.0.0.jar file is present under $SPLEBASE\splapp\standalone\lib folder. If it is not present, check the steps for installing ODM. Either installation step was missed or there was some error during installation.

      Delete
  12. Hello Sreeneth,

    I have done ODM and C2M installation, all the issues are fixed.


    Thank you , for your continuous help on my queries.

    ReplyDelete
  13. Hi Sreeneeth,

    i have installed c2m2.8 by following your posts but when i try to deploy Splweb.ear getting failed with below errors

    error @Admin console:
    Message icon - Error Unable to access the selected application.
    Message icon - Error Apps tool failure: Check nested exception for details
    Message icon - Error Apps tool failure: Check nested exception for details
    Message icon - Error java.lang.NullPointerException

    @initial setup log
    No jar structure file for product cm

    error @managed log file
    - 2022-03-26 09:06:58,102 [[ACTIVE] ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (common.cache.CacheFlushJMSManager) (713294043) Could not start flush listener for ServiceCacheFlusher. Please check JMS configuration.
    javax.naming.NameNotFoundException: Unable to resolve 'jms.OUFlushResponseTopic'. Resolved 'jms'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1292) ~[com.oracle.weblogic.jndi.jar:12.2.1.4]
    FYI..
    -->CLASSPATH=/app/C2M/C2M2800/splapp/standalone/lib/antlr-2.7.7.jar:/app/Middleware/Oracle_Home/wlserver/server/lib/weblogic-spring.jar:/app/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar
    java=jdk1.8.0_321
    weblogic=12.2.1.4.0

    could you please help me on this ?

    ReplyDelete
    Replies
    1. Exact issue is not clear. Check the log files for any other errors. If you want you can email the log file to me (sreeneeth@gmail.com). I can have a look.

      Delete
  14. Thank you very much for your quick response.
    i have sent you logs to your gmail id

    ReplyDelete
  15. Hi,

    thanks for this article learned alot. can you please help tell how to activate REST inbound? i am getting {service.url} meaning it is inactivated.


    Thanks

    ReplyDelete
    Replies
    1. Please refer my blog for Rest Webservices. See if it helps you out. Let me know if you have any query.
      https://myouafworld.blogspot.com/2021/06/rest-based-webservices-in-ouaf-framework.html

      Delete
  16. Hello, I am facing problem while connecting to DB. Getting the following error:- Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=BrO4D78aSlijwQtJgnrd7w==). I have followed every step according to this blog.

    ReplyDelete
    Replies
    1. Let me know how you are connecting to the database. Are you using sqldeveloper?
      If yes, check if the listener and database service is started up in the windows services.

      Delete
    2. Yes I am using sqldeveloper. both the services are running.

      Delete
    3. Can you help me regarding this?

      Delete
    4. if you want we can do a screen sharing and check. My email id is sreeneeth@gmail.com

      Delete
    5. Yes, at what time should we connect?

      Delete
    6. Am available now. Send me a meeting request on my email id.

      Delete
  17. Hello Sreeneeth, The CCB jar is successfully installed and I am stuck at initialSetup.cmd. Yesterday also I stuck at one point for 3 hrs and today also the same. I am stuck at following point



    220421:105450 init:
    220421:105450
    220421:105450 SPLAppwar:
    220421:105450 [echo] ...Building SPLApp.war WAR file.
    220421:105456 [war] Building war: C:\c2m\OUAF\C2M2800\splapp\applications\SPLApp.war
    220421:105916 [echo] ...Finished building SPLApp.war WAR file.
    220421:105916
    220421:105916 XAIAppwar:
    220421:105916 [echo] ...Building XAIApp.war WAR file.
    220421:105916 [war] Building war: C:\c2m\OUAF\C2M2800\splapp\applications\XAIApp.war
    220421:105929 [echo] ...Finished building XAIApp.war WAR file.
    220421:105929
    220421:105929 appViewerwar:
    220421:105929 [echo] ...Building appViewer.war WAR file.
    220421:110110 [war] Building war: C:\c2m\OUAF\C2M2800\splapp\applications\appViewer.war


    ReplyDelete
    Replies
    1. set WEB_DEPLOY_APPVIEWER=false in $SPLBASE/etc/ENVIRON.INI file. Then rerun intialsetup. See if it works.

      Delete
  18. I have terminated the previous process and now getting like this :-
    220421:135351 [echo] ...Building appViewer.war WAR file.
    220421:135351 [war] error while reading original manifest in file: C:\c2m\OUAF\C2M2800\splapp\applications\appViewer.war due to error in opening zip file
    220421:135406 [war] Building war: C:\c2m\OUAF\C2M2800\splapp\applications\appViewer.war

    ReplyDelete
  19. Hi Sreeneeth, I am able to start weblogic as well as nodemanager, But while starting the application I am getting error as Caused By: javax.naming.AuthenticationException: [Security:090938]Authentication failure: The specified user failed to log in. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied [Root exception is javax.security.auth.login.FailedLoginException: [Security:090938]Authentication failure: The specified user failed to log in. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied] and also Error 404--Not Found

    ReplyDelete
  20. Hi Sreeneeth I am able to start weblogic as well nodemanager but while starting the application I am getting an error as Error 404--Not Found and also Caused By: javax.naming.AuthenticationException: [Security:090938]Authentication failure: The specified user failed to log in. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied [Root exception is javax.security.auth.login.FailedLoginException: [Security:090938]Authentication failure: The specified user failed to log in. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied]

    ReplyDelete
    Replies
    1. Verify that the password for 'system' user (Weblogic JNDI user) given when installing the application is same as that given for 'system' user in weblogic.

      Delete
    2. Still the same error, Can we connect once for this? Let me know your availability.

      Delete
    3. Little caught up today with work. Lets connect tomorrow.

      Delete
    4. Yes at what time?

      Delete
  21. Hi Sreeneeth, Thank you for the steps it helped me a lot i had done all the steps and had no issues but after deploying when i start the server SPLweb.ear is changing its state to failed and from your previous comments i understood that it might be because of JDNI password i Reconfigured installation setup and executed initialsetup.cmd and given same username and password even though i had the same issue even i am not getting any error while running weblogic server or Node manager. can you please help me on this taking remote it is very crucial for our business please. the issue is i didn't find any error messages but SPLweb.ear is failing or just help me finding the logs.

    ReplyDelete
    Replies
    1. Check log files under $weblogicHome\Oracle\Middleware\Oracle_Home\user_projects\domains\c2m2800_domain\servers\c2m2800server\logs. See if anything is coming in log file.

      Delete
  22. Hi Sreeneeth,

    I installed all the jar files into local and was proceeding with "Deployment of C2M product in Weblogic using Native Installation". So when I changed my cmd directory to C:\c2m\Oracle\Middleware\Oracle_Home\oracle_common\common\bin and fired config.cmd command, I am getting an error message saying " The system cannot find the path specified." Can you please help me out on how to resolve this.
    Thanks.

    ReplyDelete
    Replies
    1. Check the path where JDK is installed if it has any spaces in path.

      Delete
    2. Hi,
      Just checked. There are no spaces. I also reinstalled the Java.

      Delete
    3. Ok. Will have to check to identify issue. If you want you can share screen and show. My email is sreeneeth@gmail.com

      Delete
  23. Hi Sreeneeth

    I completed the whole process of installation. But the C2M app is not opening. This is the error message.
    <9 Jun, 2022 1:54:15,975 PM IST>
    - 2022-06-09 13:54:16,018 [[ACTIVE] ExecuteThread: '24' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the JMX Connectors...
    - 2022-06-09 13:54:16,019 [[ACTIVE] ExecuteThread: '24' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) JMX Connectors shutdown successfully
    - 2022-06-09 13:54:16,019 [[ACTIVE] ExecuteThread: '24' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the Application Context...
    <9 Jun, 2022 1:54:16,044 PM IST> <Unable to set the activation state to true for the application "SPLWeb".
    weblogic.application.ModuleException: javax.naming.NameNotFoundException: While trying to lookup 'ouaf.servicebean' didn't find subcontext 'ouaf'. Resolved ''; remaining name 'ouaf/servicebean'
    at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
    Truncated. see log file for complete stacktrace
    Caused By: javax.naming.NameNotFoundException: While trying to lookup 'ouaf.servicebean' didn't find subcontext 'ouaf'. Resolved ''; remaining name 'ouaf/servicebean'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1292)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:349)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:227)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:532)
    Truncated. see log file for complete stacktrace

    ReplyDelete
    Replies
    1. Check if there are any other errors visible in log file. I am caught up with work today. We can connect tomorrow if needed.

      Delete
    2. Yes please. Please let me know the timing such that I can host a google meet. Thanks

      Delete
    3. Keep it for 12pm tomorrow. Will update in case I am not able to join.

      Delete
    4. Hi, I encounter the same error. Have you fixed this one?

      Delete
    5. I think it was some weblogic cache issue. You can try clearing the weblogic cache or if that is not working. Create a new weblogic domain and try with same ear file.

      Delete
    6. I am also getting the same error and stuck with splWeb ear deployment

      Delete
    7. If it is not getting resolved, create a new weblogic domain and try again.

      Delete
  24. Hi Sreeneeth,
    I installed all the server nodes and set up my weblogic. But when I am trying to run startNodeManager.cmd ,its showing me this error:
    java.io.FileNotFoundException: C:\c2m\Oracle\Middleware\Oracle_Home\user_projects\domains\c2m2800_domain\servers\c2m2800server\logs\c2m2800server.out (The process cannot access the file because it is being used by another process)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.(FileOutputStream.java:213)
    at java.io.FileWriter.(FileWriter.java:107)
    at weblogic.nodemanager.server.InternalInstanceCustomizer.log(InternalInstanceCustomizer.java:77)
    at weblogic.nodemanager.server.WLSInstanceCustomizer.log(WLSInstanceCustomizer.java:23)
    at weblogic.nodemanager.server.ServerMonitor.log(ServerMonitor.java:773)
    at weblogic.nodemanager.server.ServerMonitor.log(ServerMonitor.java:777)
    at weblogic.nodemanager.server.ServerMonitor.info(ServerMonitor.java:782)
    at weblogic.nodemanager.server.ServerMonitor.runMonitor(ServerMonitor.java:531)
    at weblogic.nodemanager.server.ServerMonitor.run(ServerMonitor.java:487)
    at java.lang.Thread.run(Thread.java:748).

    And my server in weblogic is not starting. Can you please help me on this?

    ReplyDelete
    Replies
    1. This generally comes, if you had not shutdown the c2m managed server properly from weblogic console. Go to taskmanager, kill all java threads and try again.

      Delete
  25. Hi Sreeneeth ,
    220811:145356 jarproperties:
    220811:145356 [echo] ...Building tpw-properties.jar file.
    220811:145356 [jar] Building jar: C:\c2m\ouaf\C2M2800\etc\lib\tpw-properties.jar
    220811:145356 [echo] ...Finished tpw-properties.jar file.
    220811:145356
    220811:145356 all:
    220811:145356
    220811:145356 BUILD SUCCESSFUL
    220811:145356 Total time: 0 seconds
    220811:145356 Build was successful.
    220811:145356 All source jars verified.
    220811:145356 All source jars verified.
    220811:145356 All source jars verified.
    220811:145356 All source jars verified.
    220811:145356 All source jars verified.
    ERROR: cannot delete. Permission denied at C:\c2m\ouaf\C2M2800\bin\initialSetup.plx line 2512.
    main::delete_jars("C:\\c2m\\ouaf\\C2M2800\\structures\\FW_jars_structure.xml.processed") called at C:\c2m\ouaf\C2M2800\bin\initialSetup.plx line 2391
    main::distribute_jars() called at C:\c2m\ouaf\C2M2800\bin\initialSetup.plx line 539
    main::execute_tasks() called at C:\c2m\ouaf\C2M2800\bin\initialSetup.plx line 248

    I am getting this Error while running the initial Setup.cmd

    and 2 Error I am getting while trying to run iwsdeploy.cmd.

    File Not Found
    File Not Found
    Error: Could not find or load main class com.oracle.ouaf.ws.IwsDeploy

    ReplyDelete
    Replies
    1. Open the command prompt with 'Run as administrator' option for the 'Cannot delete' error. Try the iwsdeploy command again after this issue is resolved. Maybe it is related to first error.

      Delete
    2. Hi Sreeneeth,
      I am Executing the initialSetup.cmd command in Administrator mode only. But Still I am getting Error.

      Delete
    3. Ok. Would be difficult to figure just like that. If you want you can share screen and show. You can reach me on sreeneeth@gmail.com.

      Delete
    4. hi im having the same issue how is this resolved ?

      Delete
    5. Have you run splenviron command before running IWS deploy command

      Delete
  26. Hi Sreeneeth,
    I have done all the steps but while logging the application i can see the below error while traversing to multiple pages
    The server has encountered a problem. Please contact your system administrator.
    Please find the detailed logs below

    I have done all the steps but while logging the application i can see the below error while traversing to multiple pages
    The server has encountered a problem. Please contact your system administrator.

    Please find the detailed logs below
    Caused by: oracle.jdbc.OracleDatabaseException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:514) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:462) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1105) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:551) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:656) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:271) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:92) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:808) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1044) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1243) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3719) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1427) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3766) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1168) ~[ojdbc8dms.jar:19.3.0.0.0]
    at oracle.ucp.jdbc.proxy.oracle$1ucp$1jdbc$1proxy$1oracle$1StatementProxy$2oracle$1jdbc$1internal$1OraclePreparedStatement$$$Proxy.executeQuery(Unknown Source) ~[oracle.ucp.jar:19.3.0.0.0]
    at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_333]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_333]
    at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) ~[hibernate-core-4.1.0.Final.jar:4.1.0.Final]
    ... 140 more
    - 969725-1000-1 2022-08-25 19:57:47,885 [[ACTIVE] ExecuteThread: '36' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (api.service.ServiceExecutionPolicy) Rollback: Read failed
    - 969725-1000-1 2022-08-25 19:57:47,886 [[ACTIVE] ExecuteThread: '36' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (support.context.SessionExecutable) Caught exception from SessionExecutable.execute()
    - 969725-1000-1 2022-08-25 19:57:47,887 [[ACTIVE] ExecuteThread: '36' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (support.service.ServiceReplayExecuter) Exception occurred calling serviceName: PortalZoneMetadataService

    ReplyDelete
    Replies
    1. Check if there were any errors when importing demo database. Looks like some tables import had errors

      Delete
    2. Thanks for the quick response. Issue is resolved now . This was the database issue which got resolved on importing again the exp_demo file

      Delete
  27. HI , i am tring to run install.cmd command to install C2M , but i am facing some problem
    CMD logs attached below , pls help me how i can resolve the same


    C:\temp\FW-V4.4.0.3.0-SP3>install.cmd
    'perl' is not recognized as an internal or external command,
    operable program or batch file.
    'perl' is not recognized as an internal or external command,
    operable program or batch file.
    "ERROR - Detected while running install.plx."

    ReplyDelete
    Replies
    1. Verify that the PATH system variable contains the path to the perl executable 'ORACLE_CLIENT_HOME%\perl\bin'

      Delete
    2. after fix , it's shows like

      C:\temp\FW-V4.4.0.3.0-SP3>install.cmd
      Unable to find file C:\db_home\perl\bin\perl\bin\perl.exe
      Enter Oracle Client Home Directory (ENTER to quit):

      Delete
    3. after fixed the same , it's show like :

      C:\temp\FW-V4.4.0.3.0-SP3>install.cmd
      Unable to find file C:\db_home\perl\bin\perl\bin\perl.exe
      Enter Oracle Client Home Directory (ENTER to quit):

      Delete
    4. Verify that the Oracle client home variable is set to following: 'C:\app\virtual\product\12.2.0\dbhome_1'

      Delete
    5. Refer to this blog for environmental variables to set: https://myouafworld.blogspot.com/2020/06/ouaf-c2m-2703-installation-on-windows64.html?m=1

      Delete
    6. HI Sreeneeth , i am installing C2M 2.8 .. and i am following same document for 2.8 , now trying to run command install.cmd .... but it's now work it's show error like

      C:\Windows\system32>cd C:\temp\FW-V4.4.0.3.0-SP3
      C:\temp\FW-V4.4.0.3.0-SP3>install.cmd
      Unable to find file C:\db_home\perl\perl\bin\perl.exe
      Enter Oracle Client Home Directory (ENTER to quit):

      now path already set as show below :

      ORACLE_CLIENT_HOME : C:\db_home\perl
      path : %C:\c2m\java\jdk\bin;C:\c2m\java\jdk\lib;C:\db_home\bin;%ORACLE_CLIENT_HOME%\perl\bin;


      pls do needful

      Delete
  28. Hi , i am stuck on taht step loges show below , it's has more the 5 hours ... but not complete yet .. plg suggest

    221206:122528 221206:122528 appViewerwar:
    221206:122528 221206:122528 [echo] ...Building appViewer.war WAR file.
    221206:122528 221206:122528 [war] error while reading original manifest in file: C:\c2m\ouaf\C2M2800\splapp\applications\appViewer.war due to error in opening zip file
    221206:122541 221206:122541 [war] Building war: C:\c2m\ouaf\C2M2800\splapp\applications\appViewer.war

    ReplyDelete
  29. Deepa Nagendra Kulkarni22 December 2022 at 18:00

    I am facing this issue... Please could you help me in resolving this


    <22 Dec, 2022 5:04:34,343 PM IST>
    - 2022-12-22 17:04:34,398 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the JMX Connectors...
    - 2022-12-22 17:04:34,400 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) JMX Connectors shutdown successfully
    - 2022-12-22 17:04:34,400 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the Application Context...
    <22 Dec, 2022 5:04:34,417 PM IST>

    ReplyDelete
    Replies
    1. Check if there are any other errors in log file

      Delete
    2. Deepa Nagendra Kulkarni23 December 2022 at 10:14

      Sir i checked but There are no any other errors

      Delete
    3. Send me the log files on my email id sreeneeth@gmail.com. both .log and .out file

      Delete
    4. Seems like a weblogic cache issue. Try creating a new weblogic domain and redeploy the application in the new domain.

      Delete
  30. Deepa Nagendra Kulkarni22 December 2022 at 18:09

    Facing this issue ... Please could you help me to resolve this

    <22 Dec, 2022 5:04:34,343 PM IST>
    - 2022-12-22 17:04:34,398 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the JMX Connectors...
    - 2022-12-22 17:04:34,400 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) JMX Connectors shutdown successfully
    - 2022-12-22 17:04:34,400 [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (web.startup.SPLWebStartup) Shutting Down the Application Context...
    <22 Dec, 2022 5:04:34,417 PM IST>

    ReplyDelete
  31. Hi Sreeneth, trying to reach through Gmail also. While trying to access the C2M application I am getting the following error pls help :

    ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <1677684554783> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] >
    #### <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <1677684554783> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] >
    #### <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <1677684554789> <[severity-value: 64] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] >
    #### <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <1677684554791> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <Unable to set the activation state to true for the application "SPLWeb".
    weblogic.application.ModuleException: java.lang.ClassNotFoundException: com.splwg.w1.api.lookup.ParentOwnerLookup


    ReplyDelete
    Replies
    1. Hi, seems the WAM part of the installation was not proper or was missed. Kindly reinstall the WAM part of the installation.

      Delete
  32. Hi Sreeneeth,

    As to class path on server start, there is no weblogic_sp.jar in FMW 12.2.1.4

    ReplyDelete
    Replies
    1. That's fine. You can remove the path to weblogic_sp.jar

      Delete
  33. Hello Sreeneeth, While starting the C2M managed server I am getting following error. Will you please help here. Thanks

    C:\Windows\System32>cd C:\c2m\Oracle\Middleware\Oracle_Home\user projects\domains\c2m2800_domain\bin

    C:\c2m\Oracle\Middleware\Oracle_Home\user projects\domains\c2m2800_domain\bin>startNodeManager.cmd
    NODEMGR_HOME is already set to C:\c2m\Oracle\MIDDLE~1\ORACLE~1\USERPR~1\domains\C2M280~1\NODEMA~1
    CLASSPATH=.;C:\c2m\java\jdk\lib\tools.jar;C:\c2m\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic.jar;C:\c2m\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\thirdparty\ant-contrib-1.0b3.jar;C:\c2m\Oracle\MIDDLE~1\ORACLE~1\wlserver\modules\features\oracle.wls.common.nodemanager.jar;;C:\c2m\Oracle\MIDDLE~1\ORACLE~1\wlserver\modules\features\oracle.wls.common.grizzly.jar;C:\c2m\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jps\jps-manifest.jar

    C:\c2m\Oracle\MIDDLE~1\ORACLE~1\USERPR~1\domains\C2M280~1\NODEMA~1>"C:\c2m\java\jdk\bin\java.exe" -server -Xms32m -Xmx200m -Djdk.tls.ephemeralDHKeySize=2048 -Dcoherence.home=C:\c2m\Oracle\MIDDLE~1\ORACLE~1\coherence -Dbea.home=C:\c2m\Oracle\MIDDLE~1\ORACLE~1 -Doracle.security.jps.config=C:\c2m\Oracle\Middleware\Oracle_Home\user projects\domains\c2m2800_domain\config\fmwconfig\jps-config-jse.xml -Dcommon.components.home=C:\c2m\Oracle\Middleware\Oracle_Home\oracle_common -Dopss.version=12.2.1.3 -Dweblogic.RootDirectory=C:\c2m\Oracle\MIDDLE~1\ORACLE~1\USERPR~1\domains\C2M280~1 -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader "-Djava.security.policy=C:\c2m\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic.policy" "-Dweblogic.nodemanager.JavaHome=C:\c2m\java\jdk" weblogic.NodeManager -v
    Error: Could not find or load main class projects\domains\c2m2800_domain\config\fmwconfig\jps-config-jse.xml
    ( was unexpected at this time.

    ReplyDelete
  34. Hi Sreeneeth, I have a C2M 28000 that is already working but the framework prerequisite single patches were not included during installation. How do I install them? Do I have to repeat the installation from the start?

    ReplyDelete
    Replies
    1. Not sure about that.. you can try following the steps for installing them on top of existing installation.

      Delete
  35. I'm deploying C2M 2.8.0.0 in linux environment getting following error on deployment of SPLWeb.ear and it failed:

    ERROR (shared.environ.ApplicationProperties) Illegal attempt to reset override properties directory
    com.splwg.shared.common.LoggedException: Illegal attempt to reset override properties directory
    at com.splwg.shared.common.LoggedException.raised(LoggedException.java:67) [spl-shared-4.4.0.3.0.jar:?]
    at com.splwg.shared.environ.ApplicationProperties.setOverridePropsDir(ApplicationProperties.java:894) [spl-shared-4.4.0.3.0.jar:?]
    at com.splwg.ejb.service.impl.ServiceBeanContext.initializeApplicationMode(ServiceBeanContext.java:67) [spl-servicebean-4.4.0.3.0.jar:?]
    at com.splwg.ejb.service.impl.ServiceBeanContext.initialize(ServiceBeanContext.java:45) [spl-servicebean-4.4.0.3.0.jar:?]
    at com.splwg.ejb.service.impl.ServiceBeanContext.(ServiceBeanContext.java:37) [spl-servicebean-4.4.0.3.0.jar:?]
    at com.splwg.ejb.service.impl.ServiceBean.initializeContext(ServiceBean.java:88) [spl-servicebean-4.4.0.3.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_381]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_381]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_381]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_381]
    at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:388) [com.bea.core.repackaged.springframework.pitchfork.jar:12.2.1.4]
    at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethods(Jsr250Metadata.java:363) [com.bea.core.repackaged.springframework.pitchfork.jar:12.2.1.4]
    at com.oracle.pitchfork.intercept.InterceptionMetadata.invokeLifecycleMethods(InterceptionMetadata.java:498) [com.bea.core.repackaged.springframework.pitchfork.jar:12.2.1.4]
    at com.oracle.pitchfork.intercept.LifecycleEventCallbackInvocationContext.proceed(LifecycleEventCallbackInvocationContext.java:128) [com.bea.core.repackaged.springframework.pitchfork.jar:12.2.1.4]
    at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73) [org.jboss.weld.weld-core.jar:2.3.2.Final]

    ReplyDelete
  36. Hi Sreeneeth,

    i have installed c2m2.8 by following your posts but when i try to deploy SPLWeb.ear getting failed with below errors



    Please advice.

    ReplyDelete
    Replies
    1. Errors are not visible in your query. Let me know what errors you are seeing.

      Delete

OUAF Oracle Utilities WAM / ODM 2.4.0.0 installation on Windows

  This blog is for anyone looking to install Oracle Utilities WAM or ODM 2.4.0.0 (Oracle Utilities Workflow and Asset Management) or (Orac...