X
  • March 25, 2009

Oracle Enterprise Pack for Eclipse 11g – WebLogic Interop Tip

Guest Author

OEPE 11g is out I had to rush out and try it.  I used the full install from OTN.  I assume most users of OEPE 11g will also be WebLogic users.  Out of the box, Workspaces are not pre-configured with a WTP Server Runtime or WebLogic Shared Libraries because OEPE doesn’t know where WebLogic is installed or which version you want to use if you have multiple installations.  There is a simple way to enable this by specifying your WebLogic home in the eclipse.ini file.  I added the following line (substitute your path to WLS):

-Dweblogic.home=C:/Oracle/wls10gR3/wlserver_10.3

Now your Workspaces (existing and new) should become populated with a WebLogic Server Runtime of the version you specified with WebLogic Shared Libraries.  Ah, but there is another gotcha!  In order for this to work with WLS 10gR3 Eclipse needs to be started with a JDK6 JVM.  In my case,  my system’s default JVM was JDK5, so I had to explicitly tell OEPE 11g to start with JDK 6 by specifying the JVM in eclipse.ini.  If you use JRockit instead of Sun you may want to make other adjustments such as making the min/max memory the same and not configuring PermSize at all, but those are just extra tweaks. Again, specify your specific path, but here is mine:

-vm
C:/Oracle/wls10gR3/jrockit_160_05/jre/bin/javaw.exe

Using Windows->Preferences you should be able to see the end result when you launch Eclipse.  Be sure to check out the OEPE 11g tutorials for some great examples.

runtime

libs

Join the discussion

Comments ( 10 )
  • Brijesh Sunday, December 27, 2009
    Hi,
    I used oepe-galileo-plugins.zip for linux 32 bit in my kubuntu 9.10.I followed the instructions from your blog...everything went right...now when I try to add server..the buttons are not sensitive and I cant proceed further...any clue??
    Brijesh
  • james.bayer Sunday, December 27, 2009
    Brijesh,
    I haven't tried OEPE on Linux before, I recommend you post a detailed description of your issue in the OEPE OTN forum. Several of the developers respond to the questions directly.
    http://forums.oracle.com/forums/forum.jspa?forumID=578
    Here's a thread with an issue similar to yours:
    http://forums.oracle.com/forums/thread.jspa?threadID=953464&tstart=0
    Good luck, James
  • John Carlson Thursday, June 17, 2010
    I just tried this. I ran out of PermGen space. Is there a way to make PermGen space bigger with JRockit?
  • james.bayer Friday, June 18, 2010
    John,
    JRockit does not have PermGen - so it's likely that you may still be using Hotspot because of your environment settings even though you are intending to use JRockit.
    In addition to eclipse.ini changes, I also have been doing this lately to ensure I use JRockit. Instead of launching eclipse.exe directly, I've been using a .cmd script with contents like this:
    set PATH=\jrockit_160_17_R28.0.0-679\bin
    start \oepe_11gR1PS2\eclipse.exe
    You can validate which JVM was used in Eclipse by doing Help->About->Installation Details->Configuration tab
    Then look at the java.vm.name, mine looks like:
    java.vm.name=Oracle JRockit(R)
    Good luck,
    James
  • John Carlson Friday, June 18, 2010
    The other things I did were to change all installed/targeted jre's/jdk's etc to jrockit inside eclipse, then James recommended putting the following in setDomainEnv.cmd (in weblogic folder).
    set JAVA_VENDOR=Oracle
  • Bruce Conrad Saturday, June 19, 2010
    James,
    Perhaps you can help me with a problem I am having deploying to Weblogic using OEPE. I can deploy a simple project ok. I have another project which consists of four eclipse projects; web, domain, ear, and parent. When I deploy the complex (4part) project, I get an error telling me that the application.xml built by the plugin for the auto generated ear is missing the module tag. And it is.
    For the simple project I see:
    <application ...>
    <display-name>_auto_generated_ear_</display-name>
    <module>
    <web>
    <web-uri>SimpleWebProject.war</web-uri>
    <context-root>simpleWeb</context-root>
    </web>
    </module>
    </application>
    When I deploy the bigger project I see that the module tag is missing:
    <application ...>
    <display-name>_auto_generated_ear_</display-name>
    </application>
    So the question is how is the module tag getting built? I can't tell if it's something in web.xml, some eclipse file, or which project. It used to work but I'm not sure what I might have changed to stop it from working. Any ideas?
  • james.bayer Friday, July 2, 2010
    Bruce,
    Are you still impacted by this? It's probably something to do with your project references. I'm not sure what you mean by parent. The highest level type of deployment that OEPE can handle to WebLogic is an EAR project. All the web and ejb projects referenced by the EAR project should be bundled as modules while Java and Utility projects would get bundled as jars inside the EAR.
    Thanks, James
  • james.bayer Friday, July 2, 2010
    Bruce,
    Are you still impacted by this? It's probably something to do with your project references. I'm not sure what you mean by parent. The highest level type of deployment that OEPE can handle to WebLogic is an EAR project. All the web and ejb projects referenced by the EAR project should be bundled as modules while Java and Utility projects would get bundled as jars inside the EAR.
    Thanks, James
  • andrew beechey Friday, April 22, 2011
    Dear James
    I've tried your suggestions to pre configure a server runtime environment for weblogic, however i just cannot get it to work
    my eclipse.ini file is shown below
    the version of oepe i used was oepe-indigo-all-in-one-11.1.1.7.2.201104061504-win32.zip
    i would be very grateful if you could assist me in highlighting where i have gone wrong
    warm regrads
    Andy
    -vm
    C:\Program Files\Java\jdk1.6.0_24\bin
    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110124-0830.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20101220
    -showsplash
    org.eclipse.platform
    --launcher.defaultAction
    openFile
    -vmargs
    -Xms40m
    -Xmx512m
    -XX:MaxPermSize=256m
    -Dsun.lang.ClassLoader.allowArraySyntax=true
    -Dweblogic.home=J:\weblogic\V16484-01\wlserver_10.0
  • james.bayer Friday, April 22, 2011
    Andrew, I just found out from the OEPE team this week that we do not support any form of runtime pre-configuration any longer. The -Dweblogic.home used to be supported by Workshop, but has been discontinued in OEPE a while ago due to it complicating some use cases like Workspace upgrade from one release to the other. I lobbied them to add it back to the roadmap. You can give them feedback in the OEPE OTN forum.
    Thanks, James
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.