SyntaxHighlighter JS

2013-11-24

WebLogic Server 12.1.2 and IntelliJ IDEA 11 not working

I performed a new install of WebLogic 12.1.2 on my Mac OSX. I could not get IntelliJ IDEA 11 to add it as a valid Application Server. The error I got was "Warning: Directory is not BEA home".

The new WebLogic 12.1.2 no longer creates registry.xml in the WebLogic home directory. This file had been created by WebLogic since at least version 8. Even WebLogic 12.1.1 created registry.xml.

To fix the WebLogic 12.1.2 and IDEA 11 incompatibility, I add the file registry.xml to the WebLogic home directory. (The WebLogic home directory is the one that contains the directory wlsserver)

The contents of registry.xml

<?xml version="1.0" encoding="UTF-8"?>
<bea-product-information>
  <host home="/Users/juttayaya/javadev/weblogic/wls12120" name="${env.HOST}">
    <product format="1.0" name="WebLogic Platform">
      <release level="12.1"
        ServicePackLevel="2" PatchLevel="0"
        Status="installed" BeaProgramGroup="BEA WebLogic Platform 12.1"
        StartMenu="" InstallTime="@INSTALL_TIME@"
        InstallDir="/Users/juttayaya/javadev/weblogic/wls12120/wlserver"
        JavaHome="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"
        JavaVersion="1.7.0" JavaVendor="@JAVA_VENDOR@">
        <component name="WebLogic Server" version="12.1.2.0">
          <component name="Server"/>
        </component>
     </release>
    </product>
    <java-installation Name="jdk170_45" JavaHome="@SUN_JAVA_HOME@" 
        JavaVersion="1.7.0" JavaVendor="Sun">
        <dependent-product Name="WebLogic Platform" Version="12.1.2.0"/>
    </java-installation>

 </host>
</bea-product-information>

1 comment:

  1. Hey Jirawat,

    Thanks a lot. This works also for IntelliJ 13.1.3

    ReplyDelete