· Checking your weblogic server mode:
When the server is running in production mode than you should be missing security folder in the location. It contains the weblogic server username and password (boot.properties) file and because this file is missing whenever you start the server it asks you to enter username and password for weblogic.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\security
· Usually the content of the file are encrypted as below
· To convert your server to development mode follow the below steps.
· Start you admin server and access the admin console
· Go to base domain from left menu and click Lock and Edit and in general tab unchecked Production Mode, save than Activate Changes from top left menu.
· Create the security folder and create the boot.properties file inside all your servers (admin and Managed Server). In password and username field you can write your server password and username in plain text. On the server start it will be encrypted.
· Now when you start your server it should not ask for username and password.
· Now configure Debug mode with eclipse. To do that follow the below steps.
· First thing to do, is to enable Debugging with Oracle Weblogic Server. Look out for the startWeblogic.cmd.
· Add below lines at the beginning of the file. Here I am selecting port 4000, you can give your own port no.
Windows:
set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
Linux:
JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server
The –Xdebug parameter enables debugging . The –Xnoagent parameter disables the default sun.tools.debug agent. The –Xrunjdwp parameter loads the JPDA reference implementation of JDWP.
· After this start the Weblogic Server using startWebLogic.cmd or sh script.
· Now configure the remote Debug in the eclipse debug mode.
· And you are done J
No comments:
Post a Comment