Sitemap

Amicuk Programming Answers

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

-0001-11-30   Views:6

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
My 4th gen iPod touch says iOS 6.1.3 is the latest version of software. I've been updating it wirelessly for a while so I know that isn't the problem & I know I'm connected to the Internet; I typed & submitted it on my iPod. Please help/explain wh [More]
When I use the Google search box, I would like the search results to open in a new tab instead of the current tab.It turns out there is an about:config setting just for this purpose. Toggle browser.search.openintab to 'true', and all is well. RickRea [More]
I am unable to access my gmail account on my iPhone or my iPad three. I get an error message saying that either my user name or password is incorrect. I have deleted my account and restarted my iPad or iPhone but it still will not work. Can anybody h [More]
Are custom queries supported in BO XI R2. What are the possible issues that may come up when a BO 6.5 report with custom query is migrated to BO XI R2.If you are working with BOE and .NET, please post the query to the ".NET Development - BusinessObje [More]
Hi all, How to get the Header data in the report after executing CS11 transaction. Thanks & Regards Piyush SharmaHi, CS11 report itself the Header details like the Header material, plant and usage and the component details will be generated. This is [More]
whenever somebody calls me on ichat the green light appears but i cannot see anyone, whenever somebody calls me on ichat the green light appears but i cannot see anyoneHi, Are you seeing an Invite Window ? Video Invites are normally top centre of you [More]
Hi, i done a report on Daily/monthy Sales and the results are not matching with standard SD sales reports (MCTE,MCTG etc). On analysis i found few materials which are actually billed is not considered by the Standard reports. Those materials belongs [More]
I think my MBP is running fine, but I have normally run a small fan around my PCs just to stir the air. In looking at my MBP I see the big opening at the back under the display. I have a small desk fan that I would like to use, just don't know the be [More]
Hi all, Am I missing something blatantly obvious??  I've just unwrapped my new 5310, plugged in a standard set of headphones (not the nokia ones) - but no sound comes out of them, just through the phone speaker Should it work with any headphones, or [More]
I have been advised to "set iTunes to multiple speakers" for internet radio playback to avoid dropouts. When I look at the iTunes window all I see at the bottom is either "computer" or the "airport express network". Where is [More]