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
The salesperson for my iphone 4 said on Christmas morning we could go to our online account, select my number, select to change my SIM card, and enter the ICCID number so that I'd be able to use my iphone 4 today instead of my old phone (not an iphon [More]
I have movies on my Hard drive that I would like to add to my iPad how do I get them into iTunes to download to my iPad?READ the article from which the question was posted.  Then follow the instructions for importing content to iTunes on the computer [More]
Hi I have a submit button which submits to email then clears the form.  I use "Submit a form" and "Reset a form".  Id like to check for required fields and prompt the user to complete any which are required.  Does anyone know how to st [More]
Hi friends I am in the midst of providing GL accounts for MM Integration.  I am slightly confused about what type of GL I should create for the transaction keys.  For example, for GBB (Offsetting posting for inventory), I am not sure what type of GL [More]
Gurus, I search the documentation and this forum and haven't found a solution to my issue yet... I am not expert of SQL*Loader. I have used SQL*Loader to copy from one file to a table many times. But I have not copied multiple files into one table es [More]
When saving files (e.g. a stored procedure definition) in "File ... Save As", the default directory is always "C:\windows\system32\config\systemprofile". That's stupid and senseless. What's worse is that a changed directory isn't remem [More]
When capturing a clip, I keep getting a dialog box saying: An error occured finding one or more of specified capture scratch volumes. Verify that both audio and video scratch disks are set in Preferences. I've been capturing now for about an hour, wi [More]
Hi, Just wondering if there is a way through here to get my profile reset? 1. Best Effort Test:  -provides background information. Download  Speed 3.88 Mbps 0 Mbps 4 Mbps Max Achievable Speed  Download speedachieved during the test was - 3.88 Mbps  F [More]
Wasn't sure whether to post in this or the "expanding your Mac" forum so if anyone knows the answer please post. I have a few My Book Premium external HDDs and wanted to add another when I spotted this new gigabit NAS model. http://www.wdc.com/e [More]
I'm sick en tierd of copy pasting text and get another output of my fontsize. For example: I copy a text with a font sz of 16 px, that size become 15.98px. What's the problem with Photoshop CS6? I only have this problem since i've updated my software [More]