Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize remote debugging Weblogic operation based on IDEA

Shulou Source: shulou.com Published: 2022-06-03 15:07:38 09月21日 Update

This article will explain in detail how to achieve remote debugging Weblogic operation based on IDEA. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Background

IDEA can debug remotely without source code. Just add the class file or jar package of the program to the project dependency to debug some unopen source Java programs or large middleware remotely.

Operation procedure docker related configuration

Enter the weblogic specified file of vulhub and modify docker-compose.yml. Just map the data to local port 8453.

Add on the last line

-"8453 8453"

View container information

Docker ps

Enter the command docker-compose up-d to start the container

Enter the container

Docker exec-it [Container name] / bin/bashdocker exec-it 56 / bin/bash

Modify the setDomainEnv.sh configuration file to add two lines of code

EbugFlag= "true" export debugFlag

Restart docker. Need to be under the root view of linux

Sudo service docker restartdocker-compose up-ddocker exec-it 56 / bin/bash

Package compressed module and wlserver_10.3 files

Tar-zcvf modules.tar.gz modules/tar-zcvf wlserver_10.3.tar.gz wlserver_10.3/

Copy the above compressed files to the / home/ubuntu directory of the Linux machine

Docker cp 56:/root/Oracle/Middleware/modules.tar.gz / home/ubuntu/docker cp 56:/root/Oracle/Middleware/wlserver.tar.gz / home/ubuntu/IDEA related configuration

Download modules and wlserver, both of which are jar packages

Open the above two folders with IDEA, and then add as Librery (add dependencies)

Then click add Configuration

On "how to achieve IDEA-based remote debugging Weblogic operation" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Tags: File container article configuration code more program good practical one line two middleware information content just available in command situation data folder Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MySQL Xiaomi Microsoft Shulou Tech Info