I have a BPEL process that I am deploying to an embedded OC4j (lightweight) that is available with the default install of BPEL Process Mgr developer version using JDeveloper. In that BPEL process I have a BPEL-exec (java embeding) that tries to invoke an EJB running in a separate Oracle Application Server instance (in the same box).
My BPEL process is unable to find the optic.jar support classes that is needed for a client to lookup the remote EJB. It needs the opticexception classes etc..
My settings in the Java standalone program that is being invoked via bpel-exec include:
private String initialContextFactory = "com.evermind.server.rmi.RMIInitialContextFactory";
//private String initialContextFactory = "com.evermind.server.ApplicationClientInitialContextFactory";
private String providerUrl = "opmn:ormi://10.14.2.2:6003:home/Sanity";
private String urlPkgPrefixes = "";
private String mapEjbJndiName = "Redlands";
public String getDefaultMapName() {
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory());
env.put(Context.PROVIDER_URL, getProviderUrl());
if (getUrlPkgPrefixes() != null && !getUrlPkgPrefixes().equals(""))
env.put(Context.URL_PKG_PREFIXES, getUrlPkgPrefixes());
env.put(Context.SECURITY_PRINCIPAL,"admin");
env.put(Context.SECURITY_CREDENTIALS,"welcome");
env.put("dedicated.connection", "true");
context = new InitialContext(env);
I even tried including all the needed jars in the BPEL-INF\lib directory, but still I see these messages in the BPEL console (unable to find the needed classes). How can I solve this?
Here is the error message I get:
05/12/27 11:30:48 java.lang.NoClassDefFoundError: oracle/ias/opmn/optic/OpticExc
eption
05/12/27 11:30:48 at com.evermind.server.rmi.RMIInitialContextFactory.getI
nitialContext(RMIInitialContextFactory.java:275)
05/12/27 11:30:48 at javax.naming.spi.NamingManager.getInitialContext(Nami
ngManager.java:662)
05/12/27 11:30:48 at javax.naming.InitialContext.getDefaultInitCtx(Initial
Context.java:243)