Sitemap

Amicuk Programming Answers

Invoke bpel from java - Failed to create "ejb/collaxa/system/DeliveryBean

-0001-11-30   Views:4

Advertisement

Hi, I have a very simple java class to invoke CreditRatingProcess sample: String ssn = null; if (ssn == null) ssn = "123-12-1234"; String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";

Hi,
I have a very simple java class to invoke CreditRatingProcess sample:
String ssn = null;
if (ssn == null)
ssn = "123-12-1234";
String xml =
"<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
Locator locator = new Locator("default", "oc4jadmin", "localhost");
IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload", xml);
NormalizedMessage res =
deliveryService.request("CreditRatingService", "process", nm);
Map payload = res.getPayload();
System.out.println("BPELProcess CreditRatingService executed!<br>");
System.out.println("Credit Rating is " + payload.get("payload"));
When I try to execute, I have the following error:
java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
     at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
     at javax.naming.InitialContext.lookup(InitialContext.java:351)
     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
     at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
     at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
     at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
     at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
     at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
     at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
I use SOA suite 10.1.3 Developer Preview and JDeveloper 10.1.3
Can you help me?
Cyryl
Message was edited by:
cbalmati
Message was edited by:
cbalmati

The replay answer
Advertisement
Hi,
Thanks fro your answer. But it does not work ...
My demo runs on my laptop (SOA10.1.3 DP / JDeveloper 10.1.3)
This is my code:
public void test() {
String xml = "<name xmlns=\"http://samples.otn.com/helloworld\">" + "test" + "</name>";
Hashtable jndi = null;
jndi = new Hashtable();
// Change the PROVIDER_URL to your BPEL PM host...
jndi.put(Context.PROVIDER_URL, "ormi://localhost/orabpel");
jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put(Context.SECURITY_PRINCIPAL, "admin");
jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
jndi.put("dedicated.connection", "true");
Locator locator = null;
try {
locator = new Locator("default","bpel", jndi);
} catch (ServerException e) {
e.printStackTrace();
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
System.out.println(xml);
nm.addPart("payload" , xml );
try {
deliveryService.post("HelloWorld", "initiate", nm);
} catch (ServerException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
and that's my error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
     at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
     at docsdemo.ui.XMLMessageHelper.test(XMLMessageHelper.java:62)
     at docsdemo.ui.tests.Tests.<init>(Tests.java:15)
     at docsdemo.ui.tests.Tests.main(Tests.java:20)
I don't understand because I created a simple JSP to invoke helloWorld process (same code), it's works !!
Any suggestion?
Cyryl

Go to See the other 3 answers

Invoke bpel from java - Failed to create "ejb/collaxa/system/DeliveryBean

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a very simple java class to invoke CreditRatingProcess sample: String ssn = null; if (ssn == null) ssn = "123-12-1234"; String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";[More]

Oracle BPEL PM API : Failed to create "ejb/collaxa/system/ServerBean"

Category:DefaultRelease time:-0001-11-30Views:130

I am getting the following error when I try to use the Oracle BPEL PM API : java.lang.Exception: Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.NoInitialContextException: Need to specify class na[More]

Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported i

Category:DefaultRelease time:-0001-11-30Views:130

I am unable to invoke BPEL service from an OA framework page. I am getting following error when I am trying to Invoke. oracle.apps.fnd.framework.OAException: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception[More]

Ejb/collaxa/system/DeliveryBean not found   :(

Category:DefaultRelease time:-0001-11-30Views:130

Hi All I have tried all the possible solutions given on this forum to get rid of "ejb/collaxa/system/DeliveryBean not found" Exception when trying to call CreditRatingService from a JSP as given in the tutorial. Pls tell me how to resolve this i[More]

Invoking BPEL process from Servlet : ejb/collaxa/system/DeliveryBean error

Category:DefaultRelease time:2015-10-11Views:130

Hi All, My requirement is as below: Servlet will receive the delimited HTTP request and convert it into XML. The xml payload will be used to invoke the BPEL Process deployed on Weblogic 10.3 (SOA-INFRA) using Idelivery Class Method. The problem I am[More]

Javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not fou

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I'm trying to run an esb process that invokes a bpel process but I'm getting the following error invoking bpel: oracle.tip.esb.server.common.exceptions.BusinessEventFatalException: Se ha devuelto una excepción no tratada en el sistema ESB. La exc[More]

LoanFlowUI error: ejb/collaxa/system/DomainManagerBean

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have deployed the LoanFlowUI.ear file out to a 10g midtier OC4J container and added the relevant paths to the BPEL library files. When I access the LoanFlowUI page on http://machine:port/LoanFlowUI/Homepage.html I get the following error return[More]

Invoke BPEL from Java for 11g

Category:DefaultRelease time:-0001-11-30Views:130

I searched the forum and here's the code for 10g Trying to Invoke BPEL from JAVA I'm using 11g, do you know if the way to invoke BPEL is the same as 10g? If not, do you know what the differences are? Thanks, AndyI got the below errors when I try to c[More]

Zones not booting - failed to create devlinks: Interrupted system call

Category:DefaultRelease time:-0001-11-30Views:130

I just installed the latest 10_Recommended cluster with 118833-36 kernel patch and now my zones won't boot. I get the error: (root)Yes Master?> zoneadm list -iv ID NAME STATUS PATH 0 global running / - samba installed /export/home/zones/samba - web i[More]

How to Invoke BPEL through JAVA

Category:DefaultRelease time:-0001-11-30Views:130

I am struggling since last 4-5 days to invoke BPEL process through java. So can any one provide me with full code. I want any java code like jsp,core java,servlets etc. Here is my jsp code with which I am trying to invoke my BPEL process named 'invok[More]

[HELP] How to invoke BPEL from JAVA program via calling WSDL?

Category:DefaultRelease time:-0001-11-30Views:130

Dear all, Customer want to invoke BPEL process in their Java program by calling BPEL WSDL, but not successfully. Does BPEL support this calling way? If so, would pls give a sample? BTW, they do not want to use API of OraBPEL.jar. Thanks in advance.Kr[More]

Hot
in erxcise invoice i ve made settings as per the sap best practices then also the excise invoice is not saved and not generated also please help me to solve the problem the error is coming like this Error in allocating Excise invoice number Interval [More]
Hello everybody, First let me say that issue I'm experiencing is caused by hardware malfunction I need help diagnosing. Since it has nothing to do with Arch (or any other OS for that matter), I hope this is the right place to post. Now, let's get to [More]
I just purchased a network drive that moves files on a website. In order to use the Drag and Drop feature, the instructions say I need Java Plugin Version 1.5 on my browser. I have both the most recent versions of Safari and Firefox.  Neither allows [More]
Hi, I've have configured three domains of WLS8.1sp4 on unique ports namely 6001, 7001 & 8001 but only one domain can be started on the port 7001 but there is a problem starting the other ports. All the three domains WLS were able to be started withou [More]
How do I fix error 5000? I am trying to update the OS and get this message when iTunes starts the backup.See this thread https://discussions.apple.com/message/16693349#16693349Read other 2 answers [More]
Hello, I work with Oracle Database XE and Application Express 3.0.1, I created a table named ORDERS: CREATE TABLE "ALMACEN"."ORDERS" (     "COMPRA_COD" NUMBER(15,0) NOT NULL ENABLE,      "PROVEEDOR_COD" NUMBER(10,0) [More]
Hello, I need some help. I currently have CS 5 and 5.5 installed across 7 PCs and 1 MAC within the marketing department in my company. What would be the best option for upgrading all of them to CS 6 Master Collection. (how many PCs can I use a licens [More]
Here is sample Intenral table Columnname-C01 / C02 / C03 Value-123 / 456 /789 I would like to search value of the internal table according to dynamic value given by the code. i.e. read table ITAB with key <Dynamic Value> index 1.Hi, Apart from read, [More]
when will the shared memory for intel HD graphics processor can be increase more than 256MB? some motherboard with some brand can assign until 1GB of RAM to the integrated graphic. future BIOS development should focus on this matter.  thank you azuan [More]
Hi, My issue: A popup contains data larger that the screen size, it therefore maximizes itself, meaning that it sets its WIDTH to 100%. But this is most unfortunate as WD does not recognise its own scrollbar as the end of the available screen and now [More]