Thursday, November 18, 2010

Ant Installation

Follow the below steps:
  1. Download: Download the binary distribution from here
  2. Installation: Unzip the downloaded the binary distribution, say C:\apache-ant-1.7.1
  3. Configuration: It's time to set up the environment variables,
    1. JAVA_HOME: make sure to set this up  to the installed JDK path
    2. ANT_HOME : C:\apache-ant-1.7.1
    3. PATH: %ANT_HOME%\bin\; (append this to the exisitng path so that we can run ant from command line. Make sure not to include any blank spaces in the path)
  4. Test: Test the complete setup by entering ant on command line
    1. Success if you get this error msg - Buildfile: build.xml doesn't exist! Build failed (since no build.xml file exists in the current directory)
    2. Failure if not. Check the paths once again in step 3.
  5. Note: Don't ever set CLASSPATH. Ant does not need it, it only causes confusion and breaks things

Monday, November 1, 2010

How to add Weblogic server 8.1 in eclipse galileo


If you don't see the required version of weblogic in the server configuration wizard on eclipse galileo, don't panic. Just follow the below steps. It worked for me.
  1. Browse the eclipse configuration settings (C:\eclipse\eclipse.ini) 
    • update its memory settings to -Xmx768m -Xms256m  
    • Check for the allowArraySyntax. -Dsun.lang.ClassLoader.allowArraySyntax=true  Add the line if its not there
  2. Start Eclipse
  3. Make sure to have your Weblogic server configured in "Development" mode
  4. Go to Window -> Preferences -> Server -> Runtime Environments -> Add ->  
    • click on download additional server adapters hyperlink
    • select "Oracle Web Logic Server Tools" and install it
  5. As an alternative, you can add http://download.oracle.com/otn_software/oepe/galileo as updated site in Eclipse and install the Eclipse pack from Oracle.
  6.  Restart Eclipse
  7. Browse to the server configuration wizard, your WL8.1 adapter will be there now 
    • Window -> Show View -> Servers
    • Right click add -> server -> Oracle - choose the required WL version
  8. In the next screen, select your JRE and Weblogic installation directory ..\bea\weblogic
  9. Click next
  10. Provide the Weblogic domain directory ..\bea\weblogic\myproj\domains\myd, provide the Weblogic port e.g. 7001 and user id/password for the Weblogic server.
  11. Click finish.
  12. Double click on the server; it will open server details in the editor. Make sure to publish automatically check box is check. If not checked, check it, save and close it.
  13. You can notice the new configured Weblogic server in server pane.
  14. Select the server, rightclick and add/remove projects from your workspace to this server.

My First Post

Whoo... hoo... time to fly !!! :)
I am quite excited to see my first blog.