Tag Archives: eclipse

How to setup Eclipse WLST plugin

The WebLogic Scripting Tool or in short WLST, is a command-line tool that you can use to automate Weblogic server installs and configuration of domains. This post will explain how to setup your Eclipse WLST development environment so you can write the scripts with code completion.

WLST scripting environment

The WLST scripting environment is based on the Java scripting interpreter, Jython. To get access to the WebLogic scripting functions from your Eclipse IDE you’ll have to install the plugins Oracle has made available.

What Does WLST Do?

WLST lets you perform the following tasks:

  • Retrieve and edit domain configuration and runtime information.
  • Automate domain configuration tasks and application deployment.
  • Control and manage the server life cycle.
  • Access the Node Manager and start, stop, and suspend server instances remotely or locally

Eclipse WLST configuration

  1. Install Eclipse Kepler release with the Oracle Enterprise Pack for Eclipse (WTP) from http://download.oracle.com/otn_software/oepe/kepler/wtp/
  2. Create a Weblogic Server runtime via Window -> Show View -> Servers
  3. Click this link to create a new Server
  4. Choose Oracle WebLogic Server 12c (12.1.2)
  5. Enter the following parameters:
    • Weblogic Home: <BEA_HOME>\wlserver
    • Java Home: <JAVA_HOME>
    • Domain: <WEBLOGIC_DOMAIN_DIR>

Verifying Eclipse WLST installation

  1. Create a new Facet Project in Eclipse
  2. Add the Facet Weblogic Scripting Tools (WLST)
  3. Click on Further configuration required, click OK
  4. If you go to Window -> Preferences -> PyDev -> Interpreter Jython, you should now see something similar as below:

weblogic-wlst-interpreter

How to install Flex3 builder in RAD7

The IBM Rational Application Developer 7 (RAD 7) IDE, based on Eclipse 3.3 doesn’t work out-of-the-box with Flex Builder 3. This is due to the IBM Java SDK using a different Xerces version then the one Flex Builder needs.

You’ll likely receive the following error:

java.lang.IllegalAccessError:
org.apache.xerces.util.XMLAttributesImpl$Attribute

Here is an easy guide to get you up and running quickly:

  1. Install RAD7
  2. Install Flex Builder 3
  3. At the end of the install, the installer will complain about not being able to automatically setup an Extension Location. Be sure to execute the given instructions manually
  4. Quit RAD7 if running
  5. Edit the eclipse.ini file in c:\Program Files\IBM\SDP70 (directory where you installed RAD7)
  6. Add the following line on a new line at the end of the file:
-Xbootclasspath/a:c:\progra~1\adobe\flexbu~1\sdks\3.0.0\lib\xercesImpl.jar

Restart RAD7 and open the Flex Development perspective to start developing the next-gen Flex app :-)