Oracle Enterprise Pack for Eclipse 11g – WebLogic Interop Tip

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

Comments:

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

Posted by Brijesh on December 27, 2009 at 04:48 AM PST #

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

Posted by james.bayer on December 27, 2009 at 07:43 AM PST #

I just tried this. I ran out of PermGen space. Is there a way to make PermGen space bigger with JRockit?

Posted by John Carlson on June 17, 2010 at 07:30 AM PDT #

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

Posted by james.bayer on June 17, 2010 at 09:38 PM PDT #

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

Posted by John Carlson on June 18, 2010 at 08:37 AM PDT #

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?

Posted by Bruce Conrad on June 19, 2010 at 01:17 PM PDT #

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

Posted by james.bayer on July 02, 2010 at 05:36 AM PDT #

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

Posted by james.bayer on July 02, 2010 at 05:36 AM PDT #

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

Posted by andrew beechey on April 22, 2011 at 05:46 AM PDT #

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

Posted by james.bayer on April 22, 2011 at 06:02 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

James Bayer Image
I was formerly a Product Manager on the WebLogic Server team based out of Oracle HQ. You can find my new blog at http://iamjambay.com.
Follow Me on Twitter
Oracle WebLogic

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today