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
Hey guys. I just recently installed the stand alone AS forms and reports server 10.1.2.0.2.. the reporting functionality is not working... basically the application uses the reports engine to create a PDF file which is then read by the web.show_docum [More]
When I open FF4 I get the following message: "TypeError: Components.classes [componentid] is undefined." I click on "OK" and FF opens up with no problem. When I close it I get this message: "ReferenceError: m_caFXTBobj is not defi [More]
ITunes 11.0.1 will not sync either my iPhone 5 or ipad.  After a sync attempt, a box appears which says the device cannot be read or written to.Launch the Console application in any of the following ways: ☞ Enter the first few letters of its name int [More]
Dear Guru's, Presently we are using new version 6.0, in that i am facing a problem in the report "s_alr_87012277",This is for G/L account balances.   when they are 2 values for one g/l account with separate business area,their total should be ca [More]
Hi guys, I am trying to assign a button in mainstage to turn my delay plug-in on and off. But i can't get it to do that. I can get it to bypass the delay, but i want it to start off and then when i hit the button, turn on. This is probably the stupid [More]
I seriuosly need help here. My Blackberry 9220 keeps on rebooting.  It happens everytime. And now, my phone doesn't open up already. Whenever I put the battery back on, the LED light just keeps on blinking. I don't know what to do. HELP!!!Hey jhack02 [More]
I want a clarification. I am doing the EBRS.  For cheque payment clearing transactions, I have used the algorithm of reference document number search.  Here the user is issuing manual cheque and later on assigning the cheque to the document through F [More]
Hi Experts, I am loding to the data to ODS,When i am loding data to ODS It's Showing below given error Record mode 1 unknown data record , activation failed,Please give him to suggestion so that i am go throw that your suggetion please help me. Regar [More]
HELLO CAN ANYONE TELL ME PLEASE HOW TO SYOP MY INTERNET CONNECTION IN NOKIA C2-02. I WANT TO DISCONNECT MY INTEERNET CONNECTION WHENEVER I AM NOT USING ANY NET RELATED APPLICATION. PLEASE HELP ME AS PER. THANK YOUHi gaurang_v, Thank you for your firs [More]
Hi, I have downloaded Solaris 10 x86 DVD. Planning to install it inside VMWare. Kindly let me know if there is any native clustering , multipathing and volume management software thats pre bundled with Solaris 10 or is it paid? I am a storage admin a [More]