Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

Please follow the below instructions to resolve the problem.

  • Stop Applicare and the WebLogic server.

  • Create WebLogic full client jar using the following steps:

    To create a wlfullclient.jar file when using JDK 1.6:

    i. On the WebLogic server change directories to the server/lib directory:

cd WL_HOME/server/lib
   ii.      Use the following command to create **wlfullclient.jar** in this directory:
java -jar wljarbuilder.jar

Use the following steps to create a wlfullclient.jar file when using JDK 1.5:

   i.      On the WebLogic server change directories to the **server/lib** directory:
cd WL_HOME/server/lib
   ii.     Use the following command to create **wlfullclient.jar** in this directory:
java -jar wljarbuilder.jar -profile wlfullclient5

Please refer the following link if you need any clarification.

http://docs.oracle.com/cd/E12840_01/wls/docs103/client/jarbuilder.html

  • Start the WebLogic server.
  • Make sure that the SSL listening port is enabled for the server.
  • Disable Host Name Verification from the Admin Console.

Screenshot 1 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

  • Obtain a WebLogic SSL certificate by accessing the Admin console using Mozilla Firefox. Please refer the following screenshot.

Step 1: Access the Admin console URL from Mozilla Firefox. Click on the lock symbol then click on More Information.

Screenshot 2 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Step 2: Click on View Certificate.

Screenshot 3 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Step 3: From the details tab click on Export.

Screenshot 4 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Step 4: Save the certificate as servercert.der.

Screenshot 5 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Step 5: Stop the Weblogic server.

You have now obtained the server certificate which needs to be added to the Java trust store.

  • Identify the location of the JDK used by running Applicare. Please refer to the following screenshot.

Screenshot 6 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

  • Stop Applicare.
  • From the command prompt change the directory to the JDK\bin directory identified in the above step.
  • Execute the following command to add the server certificate to the Java truststore. Please note that servercert.der is the certificate file obtained from the Mozilla Firefox browser.
keytool -importcert -keystore "<Path to JDK used by Applicare>\jre\lib\security\cacerts"
-storepass changeit -file "C:\servercert.der"

You will be asked to trust the certificate when you execute the above command, enter yes.

Please refer the following screenshot for help.

Screenshot 7 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

You have now added the obtained certificate to the JDK's trust store.

  • Open <Applicare Dir>/server/bin/catalina.bat/sh.
  • Find the following line in the file:
set JAVA_OPTS=%JAVA_OPTS% -Xmx500m -Dserver.name=ApplicareAdmin -Dapplicare.admin=true

Append following two parameters to the line:

-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.SSL.enforceConstraints=off

Save the catalina.bat/sh file.

Now you need to modify the WebLogic startup script.

a. If you are using startup scripts to start Weblogic server, you need to edit the startWebLogic.cmd/sh script from your domain's bin directory. Add the following lines right after the @REM START WEBLOGIC or # START WEBLOGIC line and replace <APPLICARE DIR PATH> with actual values as per your environment:

ARCTURUS_HOME=<APPLICARE DIR PATH>
export ARCTURUS_HOME

CLASSPATH=$ARCTURUS_HOME/applicare-aspects.jar:$CLASSPATH:
export CLASSPATH

JAVA_OPTIONS="$JAVA_OPTIONS
-javaagent:$ARCTURUS_HOME/applicare-aspects.jar=verbosity=0,logfile=false,norestart-intellitrace=false
-Darcturus_home=$ARCTURUS_HOME "
export JAVA_OPTIONS

b. If you are using Node manager to start the server, add the following arguments to the server start configuration and replace the values in bold with actual values as per your environment:

i. On Windows Systems

Class Path:

<Applicare Dir>\applicare-aspects.jar;<WL Dir>\server\lib\weblogic_sp.jar;
<WL Dir>\server\lib\weblogic.jar

Arguments:

-javaagent:<Applicare Dir>\applicare-aspects.jar=verbosity=0,logfile=false
-Darcturus_home=<Applicare Dir> -Djava.library.path=<Applicare Dir>\bin;<WL DIR>\server\native\win\32

ii. On Unix Systems

Class Path:

<Applicare Dir>/applicare-aspects.jar:<WL Dir>/server/lib/weblogic_sp.jar:
<WL Dir>/server/lib/weblogic.jar

Arguments:

-javaagent:<Applicare Dir>/applicare-aspects.jar=verbosity=0,logfile=false
-Darcturus_home=<Applicare Dir>
  • Add the wlfullclient.jar file to the CLASSPATH.
  • Start Applicare.
  • Start the Weblogic server.
  • Deploy applicare_agent.jar from <Applicare Dir>/agent/WebLogic.
  • Add the Weblogic domain to Applicare.

Screenshot 8 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

  • Provide the IP and port the Weblogic server is listening to, select the appropriate protocol (HTTP/HTTPS) and click save. If the server appears in the auto detected server list, you can click the Add button next to the server instead of entering the details manually.

Screenshot 9 — Adding a Weblogic Domain with 'Admin Port Enabled' to Applicare

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support