Wednesday, April 17, 2013

How to configure/integrate Weblogic8.1 in MyEclipse 5.5.1 GA

Integrating weblogic in MyEclipse is quite easy but before beginning you should be familiar with Weblogic
Server concepts and installation location details.


Properties :-


1)BEA Home Directory Path to BEA home directory. WebLogic consults this directory for its license and registry files. eg. C:\bea (considering that weblogic is installed in C:\ directory)

2)Weblogic installation directory Path to WebLogic Server installation directory. (eg. C:\bea\weblogic81)


3)Administration Username The name of the WebLogic system admin user.


4)AdministrationPassword The password of the WebLogic system admin user.


5)Execution Domain Root Directory that contains the execution domain directory.( eg. C:\bea\user_projects\mydomain)


6)Execution Domain Name The name of the WebLogic domain to execute under the root directory.( e.g. mydomain)


7)Execution Server Name The name of the WebLogic server that runs the domain. The server name is specified within the domain’s config.xml file. (eg. myserver)


8)Hostname:Number The hostname: portnumber of WebLogic server instance.(eg. localhost:7001)


9)Security Policy File The location of the security file used by WebLogic(eg. C:\bea\weblogic81\server\lib\weblogic.policy)


10)JAAS Login Configuration File This is not compulsary parameter It is required when the login configuration path is not specified in the security policy file or the user’s home directory for WLS 6.x.



Steps to integrate webogic8.1 :-1. Begin by clicking on the icon in the MyEclipse toolbar for configuring servers


2. Select the option "configure server"


3. select Application Servers -> Weblogic -> Weblogic 8.x

4. Fill all the required parameters as specified below. The parameters in this example are filled by considering that the weblogic server is installed in C:\ directory i.e the BEA Home directory is C:\bea





Steps to Configure JDK properties:-
The picture below defines the Java JDK preferences for an application server connector. The connector will use these parameters to determine the Java Virtual Machine and commandline arguments in the launch phase of an application server connector's life-cycle.


NOTE: The JDK Name value must identify a full Java JDK install. Do not specify a JRE. Doing so will result in launch failures of your server connector.



Steps to configure Launch properties:-Launch Mode defines if the mode in which the server connector will launch an instance. Debug mode enables uses of Eclipse/MyEclipse Java and JSP debugging capabilities such as breakpoints, inspectors, and hot-swap code changes. Run mode disables use of debugging features but offers better performance.



Steps for Configuring Paths:-There are three parameters to be provided and none of them is compulsary so you can leave them blank.

a)Prepend to classpath:-
Browse to and select the JAR and ZIP archives and the class directories you wish to have added to the beginning of the server connector JVM's classpath. Additions will be loaded by the Java VM before the web-server core classes.

b)Append to classpath:-
Browse to and select the JAR and ZIP archives and the class directories you wish to have added to the end of the server connector JVM's classpath. Additions will be loaded by the Java VM after the web-server core classes.

c)Append to library path:-
Browse to and select the platform-specific native libraries to be appended to the java.library.path.


So all the required configuration is done. Now just start the server and deploy your projects.

Done !!!

1 comment :