Eclipse - How to add OC4J as an Eclipse server

Card Puncher Data Processing

Introduction

The Eclipse Web Tools Platform project release 1.0 M8 has added support for deploying Web Applications to the Oracle Application Server Containers for J2EE (OC4J).

This tutorial will step you through the details of configuring the Oracle Application Server Container for J2EE (OC4J) (Embedded in OBIEE) as an Eclipse Server

Configuration

First, we must configure the OC4J Server Runtime Environment. Go to Menu/Windows/Preference and select the Server/Runtime Environment Node.

Oc4j Eclipse Serverruntimeenvironnement

Click Next :

Oc4j Eclipse Serverruntimeenvironnement 2

The jdk_bi have the same jdk and default VMArgument from the file OracleBI_Home\oc4j_bi\bin\OC4J.cmd.

-Djava.library.path=C:\OracleBI\server\Bin;C:\OracleBI\web\bin -DSAROOTDIR=C:\OracleBI -DSADATADIR=C:\OracleBIData -XX:MaxPermSize=128m -Xmx512m

And add the location from the J2ee Home (OracleBI_HOME/oc4j_bi/j2ee/home).

You have to add the OC4J server to the project from the perspective view to have access to the configuration windows below

  • Menu > Windows > Show View > Server
  • Right click in the server view and selection New Server :

Oc4j Eclipse Newserver

Select the OC4J Server and check if the server runtime Environment is Oracle C4J standalone predefined in the past step. Click next.

Oc4j Eclipse Newserver Page2

Change :

  • the password to your oc4j password
  • the http to 9703

The admin port (23791) is good normally.

Oc4jstandaloneconfig

In the next frame, add your project and click finish. You are done !

Support

Project facet Java version 6.0 is not supported

Change in the Projects Facet from the project properties the version from 6 to 5. See picture below :

Projectfacetproperties

Unable to find the file wsdl.jar

Change in the directory ORACLE_BI_HOME\oc4j_bi\webservices\lib, the name from the file orawsdl.jar to wsdl.jar

Documentation / Reference





Discover More
Eclipse Wtp Installation Update
Eclipse - How to consume a web service (OBIEE) with WTP ?

The aim of this article is to show how with WTP, the Web Tools Platform Plugin of Eclipse, you can consume a web service. All the details the Web Service Subproject can be found on this page....
Card Puncher Data Processing
Oracle Containers for J2EE (OC4J)

OC4J is a Java application server. It's composed with , so a lot of configuration for are the same for . This Java application server is a slimmed-down version of the better-known Oracle Application...



Share this page:
Follow us:
Task Runner