Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to Use / Configure Eclipse Ganymede to use OC4J in SOA / OAS
How to Use / Configure Eclipse Ganymede to use OC4J in SOA / OAS [message #269906] Thu, 02 April 2009 11:12
George Badu is currently offline George BaduFriend
Messages: 13
Registered: July 2009
Junior Member
Hi all

Just wanted to share this with you all,

For quite a while now I've been trying to get eclipse to add applications
and delopy applications to the OC4J embedded in the OAS/SOA but found very
little help out there but I seem to have found a work around

I know that I could have used the OC4J standalone but we needed to use the
one in the SOA

Note that the OC4J found in OAS/SOA components is managed by OPMN so you
cannot stop or start it from eclipse however you can deploy applications
and BPEL processes to it from eclipse. You can also associate applications
with the oc4j in the OAS in your eclipse project. If you need to stop and
start OC4J in the OAS, then use opmnctl.

The reason eclipse will not use OC4J in the SOA/OAS is because eclipse
tries to start the OC4J but seeing as that is managed by opmn, it fails
but if you had a way of telling eclipse that it it did not need to start
the OC4J (it has already been started), then eclipse will use it happily
without trying to start it

Here goes

Start the SOA/OAS Components using opmnctl startall from command prompt

In Eclipse Goto Window > Show View> Other > Server > Server

The Server View should now open up

Right Click > New > Select your version of the OC4J > Click Next > Point
the Oracle J2EE Home to OAS_HOME\j2ee\home > Click Next > Fill in Details
as they apply to you > Next > Select Any applications(If any )that you
want associated with the OC4J and click Finsh

The the server state should say “stopped”

Close Eclipse

For (OEPE i.e. Oracle Enterprise Pack for Eclipse)
Open the plugin.xml file found at
ECLIPSE_HOME\dropins\wtp\eclipse\plugins\org.eclipse.jst.ser ver.generic.oc4j_1.5.205.v200805140145\plugin.xml

If you don’t have the above folder structure, then you maybe using the
Standard version of Eclipse Ganymede in which case it may be @
ECLIPSE_HOME
\plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805 140145\plugin.xml

Search for the following String "<extension
point="org.eclipse.wst.server.core.serverTypes">"

Make sure the id attribute for the serverType element corresponds to your
version of the OC4J in the OAS i.e.
id="org.eclipse.jst.server.generic.oracle10131". This corresponds to
10.1.3.x i.e. 10.1.3.1 and above

Either change the value of the initialState attribute to
initialState="started" ot remove the initialState="stopped"

Save the file

If you are using OEPE, then there is a further step, you need to open
%ECLIPSE_HOME%\ configuration\org.eclipse.core.runtime and delete
mainData.1. It will be recreated once eclipse starts up again

It seems that OEPE writes server information to this file and will not
read the plugin.xml if this file exists. This rule applies to every change
that you make to
\plugins\org.eclipse.jst.server.generic.oc4j_1.5.205.v200805 140145\plugin.xml

Startup eclipse

The server state should now say “started” i.e. if you used
initialState="started"

You should now be able to deploy your BPEL Process or Other application to
the OC4J in the OAS

This workaround is only valid if the SOA Components are running

Happy programming

NOTE. If you need to Stop and Start the OC4J, you will need to use opmnctl
from outside eclipse. Trying to stop and start the OC4J from eclipse will
fail as OC4J in the OAS is managed by OPMN.


Hope this helps someone out there!!
Previous Topic:[OS X] SWT-Browser ignores the script-tag
Next Topic:Starting Eclipse issues.
Goto Forum:
  


Current Time: Thu Jul 04 19:22:19 GMT 2024

Powered by FUDForum. Page generated in 0.05820 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top