Wednesday, September 13, 2017

Remote debugging in Cordys using eclipse

1. Add the below mentioned parameters in the JRE Configurations of the service container as shown below.

-Xnoagent
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,address=8090,suspend=n



2. Go the Eclipse - > Run - > Debug Configurations - > Create new configurations as shown below.

Specify the server name and port name as shown below. If you are working on local specify Host as localhost and port no to the one specified in the container level.



-- Narasimha Reddy

Tuesday, September 12, 2017

Monitor service not starting - > com.eibus.management.rmiregistry.port=1099 this port is already in use.

//PROBLEM//

Monitor service not starting - > com.eibus.management.rmiregistry.port=1099 this port is already in use.

//SOLUTION//

You can find this in wcp.properties in the following path:

C:\Program Files\OpenText\ProcessPlatform\Instance \config\wcp.properties.

Find the port 1099 if being used in any other tasks 

-Kill that task and try running monitor.


//Alternatively//

Goto 

Cordys Management Console -> Platform Properties -> Search and edit the property "com.eibus.management.rmiregistry.port"  and change the port number. Once done click onthe save option.


-- Narasimha Reddy, Lomadi



CARS not starting - Event Viewer error as -> "No Environment returned from jwrGetJNIEnvForCallingThread()"

//PROBLEM//
CARS not starting - Event Viewer error as -> "No Environment returned from jwrGetJNIEnvForCallingThread()"

//SOLUTION//

1. Take backup of OpenText CARS database
Example

C:\Program Files\OpenText\OpenText CARS\openldap\bin>slapd.exe -T"cat" -f slapd.conf -l backup.ldif

54c0d343 hdb_db_open: database "o=opentext.net": unclean shutdown detected; attempting recovery.
54c0d343 hdb_db_open: database "o=opentext.net": recovery skipped in read-only mode. Run manual recovery if errors are encountered.
54c0d343 hdb_monitor_db_open: monitoring disabled; configure monitor database to enable

2.Recover the OpenText CARS database
Example

C:\Program Files\OpenText\OpenText CARS\openldaptest\bin>db_recover.exe -v -h "C:\Program Files\OpenText\OpenText CARS\openldaptest\bdb"

BDB2526 Finding last valid log LSN: file: 7 offset 5437111
BDB1518 Recovery complete at Thu Jan 22 16:04:41 2015
BDB1519 Maximum transaction ID 0 recovery checkpoint [7][5437055]

3. Remove alock file in the OpenText CARS database directory
From the \bdb folder, delete the file named alock.

4.Start OpenText CARS from Windows services or execute service using the net start command.

-- Narasimha Reddy, Lomadi

Start & Stop Cordys Services though a batch file

If at all Cordys has been installed on your local machine then abnormal termination of  system always leads to getting crash of your CARS / Monitor, to come out of this you can always create a batch file to start/stop cordys services

To start the Services
======================================================
@ECHO OFF
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Started all services
PAUSE

To Stop the Servics
=======================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
ECHO Stopped all services
PAUSE

To restart
====================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Restarted all services
PAUSE


-- Narasimha Reddy, Lomadi

Generating a CSR with Java keytool , deploying the certificates in keystore and configuring the same in the tomEE server.

  Deploying security certificates is a three-step process in general 1. CSR Generation 2. Importing the certificatates into the keystore 3. ...