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

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 facing is :
that while servlet calls the BPEL process it gives "ejb/collaxa/system/DeliveryBean" not created error. javax.naming.exception. The name "ejb" is reloved but subcontext "collaxa/system/DeliveryBean" not resolved.
Please let me know whether I am missing any step.
This is urgent. Please suggest.
Thanks.

Please make sure that your bpel connectivity properties are correct.
This error ll come only if host bpel pm server is not visible to your servlet.
So please make sure all your parameters are correct.
example, server IP / host name, port number,
Properties props = new Properties();
props.put("orabpel.platform", "ias_10g");
props.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
props.put("java.naming.provider.url","opmn:ormi://server_name/IP_Address:Port_NO:Instance_name/orabpel");
props.put("java.naming.security.principal", "oc4jadmin");
props.put("java.naming.security.credentials", "welcome1");
Locator locator = new Locator("default","welcome1",props);
Regards
Rajesh

Similar Messages

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

    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

    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

  • Invoking BPEL Process from a JSP Page 500 Internal Server Error

    Hi,
    I try to invoke a BPEL Process from a JSP Page and receive the following error. I just pasted the example from the Oracle PM Developer's Guide tutorial. Previously I deployed the CreditRatingService BPEL Process.
    Can anyone help me, please?
    D.
    Here is a sequence from my JSP / and the error I get:
    String ssn = request.getParameter("ssn");
    if(ssn == null)
    ssn = "123-12-1234";
    String xml = "<ssn xmlns=\"http://services.otn.com\">"
    + ssn + "</ssn>";
    Locator locator = new Locator("default","welcome1");
    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();
    out.println( "BPELProcess CreditRatingService executed!<br>" );
    out.println( "Credit Rating is " + payload.get("payload") );
    500 Internal Server Error
    java.lang.Exception: Erstellen von "ejb/collaxa/system/DeliveryBean"-Bean nicht erfolgreich. Es wurde folgende Exception gemeldet: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:257)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ApplicationContext.lookup(ApplicationContext.java:197)
         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 _InvokeBP._jspService(_InvokeBP.java:65)
         [InvokeBP.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180

    Here is the solution:
    Properties props = new Properties();
    props.setProperty("orabpel.platform", "oc4j_10g");
    props.setProperty("java.naming.factory.initial",
    "com.evermind.server.rmi.RMIInitialContextFactory");
    props.setProperty("java.naming.provider.url", "ormi://localhost/orabpel");
    props.setProperty("java.naming.security.principal", "oc4jadmin");
    props.setProperty("java.naming.security.credentials", "welcome1");
    and several jars have to be added to the project:
    Orabpel.jar , Orabpel-common.jar, oc4j*.jar,
    %ANT_HOME%\lib\ant.jar;
    %ANT_HOME%\lib\xercesImpl.jar;
    %ANT_HOME%\lib\xml-apis.jar;
    %AXIS_HOME%\lib\axis.jar;
    %AXIS_HOME%\lib\axis-ant.jar;
    %AXIS_HOME%\lib\commons-discovery.jar;
    %AXIS_HOME%\lib\commons-logging.jar;
    %AXIS_HOME%\lib\jaxrpc.jar;
    %AXIS_HOME%\lib\log4j-1.2.8.jar;
    %AXIS_HOME%\lib\saaj.jar;
    %AXIS_HOME%\lib\wsdl4j.jar;

  • Invoking BPEL process from a jsp

    Hi,
    I am invoking a synchronous BPEL process from a jsp.
    The jsp I am using is pasted below for your reference.
    createWorkOrderFFA.jsp invokes another jsp invokeWorkOrderFFA.jsp which inturn calls the BPEL process.
    The code is given below.
    -----------------createWorkOrderFFA.jsp starts-----------
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <html>
    <head>
    <title>Work Order Creation </title>
    <meta http-equiv="PRAGMA" content="NO-CACHE" />
    <meta http-equiv="EXPIRES" content="-1" />
    <SCRIPT LANGUAGE="JavaScript">
    function setfocus(){
    document.generatePO.technicianName.focus();
    function mypopup()
    mywindow = window.open ("totalWODetails.jsp","mywindow","scrollbars=1,width=600,height=500");
    mywindow.moveTo(50,50);
    function DoTheCheck()
              if((document.generatePO.repair.checked != true) && (document.generatePO.replacement.checked != true) &&(document.generatePO.emergency.checked != true))
                             alert('Please select atleast one task type for Work Order');
                             return false;
                             document.generatePO.submit();
              return true;
    function chkvalues(){
    if( document.generatePO.additionalInfo.value == "")
    alert(" Please provide additional information for tasks assigned");
    document.generatePO.additionalInfo.focus();
    return false;
    return true;
    </SCRIPT>
    </head>
    <body bgcolor = "#E9C2A6">
    <br>
    <tr cellspacing="0" cellpadding="0">
    <td width="30%" align=left ><b><h2><font color="#3333CC">  </font></b></h2> </td>
    </tr>
    <!-- <h1 align='center'> Work Order Creation </h1> -->
    <table border="1" cellspacing="0" cellpadding="0" width="80%" align=center>
    <tr bgcolor=#A68064 valign=center > </tr>
    <tr bgcolor=#A68064 valign==center><td valign=center > <h2 align='center'> <font COLOR="#CDCDCD" SIZE=5 FACE="sans-serif"> Field Force Automation - Work Order Creation </font></h2></td></tr>
    <tr><td align=center>
    <table border="0" cellspacing="0" cellpadding="0" width="100%" >
    <form name="generatePO" action="./invokeWorkOrderFFA.jsp" onSubmit="return DoTheCheck()">
    </tr>
    <tr >
    <br>
    <td width="40%" align="right" > <b> <font color="black" SIZE=2 FACE="sans-serif" align="right"> Interface Type: </font> </b>           </td>
    <!-- <td width="2%">:</td><td><input type="text" name="SSN" maxlength=10 size=10></td> -->
    <td width="60%" colspan = "2">
    <SELECT NAME="interfaceType">
    <OPTION VALUE="Batch"> Batch </OPTION>
    <OPTION VALUE="Near Real Time"> Near Real Time </OPTION>
    <OPTION VALUE="Automatic"> Automatic </OPTION>
    </SELECT >   
    </td>
    </tr>
    <tr>
    <td width="40%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    <tr>
    <td width="40%" align=middle><b><font color="black" SIZE=2 FACE="sans-serif" align="right">                Work Order Tasks *  : </font> </b></td>
    <td width="20%"><b>Maintenance</b><br>
         <INPUT TYPE=CHECKBOX NAME="repair" value="repair" >repair<P>
         <INPUT TYPE=CHECKBOX NAME="replacement" value="replacement">replacement<P>
    </td>
    <td width="20%" align=left></td></td>
    </tr>
    </tr>
    <tr> <td width="20%">
    <td width="40%" align=left> <b>Emergency</b><br><INPUT TYPE=CHECKBOX NAME="gasEmergency" value="gasEmergency">Gas Emergency<P>
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    <tr>
    <td width="40%" align=middle><b><font color="black" SIZE=2 FACE="sans-serif" align="right">              Additional Information: </font> </b></td>
    <td width="20%"><TEXTAREA NAME="additionalInfo" COLS=40 ROWS=6></TEXTAREA>
    </td>
         <td width="20%" align=left> 
    </td>
    <td width="20%" align=left> 
    </td>
    </tr>
    </tr>
    <tr bgcolor=#A68064>
    <td width="40%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    </tr>
    <tr bgcolor=#A68064 ><td width="100%" colspan=4 align=center bgcolor=#A68064>  
    <input type="submit" name="submit" value="Submit Order" style="background-color: #E9C2A6;">    
    <input type="reset" name="reset" value="Reset Values" style="background-color: #E9C2A6;" >     
    <input type="button" name="btn" value=" WO Error Report" onClick="javascript: mypopup()" style="background-color:#E9C2A6;" >     
    </td>
    </tr>
    <tr bgcolor=#A68064>
    <td width="40%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    <td width="20%" align=left bgcolor=#A68064> 
    </td>
    </tr>
    <tr bgcolor=#A68064>
    <td width="50%" colspan = "4" align=left bgcolor="#A68064">    <font color="#CDCDCD"> * Indicates Mandatory fields </font>
    </td>
    </tr>
    <tr bgcolor=#A68064> </tr>
    </form>
    </table>
    </td></tr></table>
    </table>
    <br>
    <!-- <marquee> <b>Wipro Technologies</b>, <br> Disclaimer : This is only a prototype model and used only for testing. </marquee> -->
    <script language="JavaScript">
    </Script>
    </body>
    </html>
    -----------------createWorkOrderFFA.jsp ends-------------
    -----------------invokeWorkOrderFFA.jsp starts-----------
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <html>
    <head>
    <title>Invoke WorkOrderService </title>
    </head>
    <body>
    <%
    String interfaceType = request.getParameter("interfaceType");
         String repair = request.getParameter("repair");
              System.out.println("repair repair---------------------->");
         String replacement = request.getParameter("replacement");
    String gasEmergency = request.getParameter("gasEmergency");
    String additionalInfo = request.getParameter("additionalInfo");
         String woType1="Maintenance";
         String woType2="Emergency";
         System.out.println("before xml---------------------->");
    String xml = "<hostWOApplication xmlns=\"http://services.otn.com\">"
              +"<interfaceType>" + interfaceType + "</interfaceType>"
                   +"<Maintenance>"
                   +"<repair>" + repair + "</repair>"
                   +"<replacement>" + replacement + "</replacement>"
                                  +"</Maintenance>"
                   +"<Emergency>"
              + "<gasEmergency>" + gasEmergency + "</gasEmergency>"
                   +"</Emergency>"
                   + "<additionalInfo>" + additionalInfo + "</additionalInfo>"
              + "</hostWOApplication>";
    System.out.println("Payload data ----------------------------------------->"+xml);
    Locator locator = new Locator("default","bpel");
    System.out.println("Before Idelivery service--------------->");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    System.out.println("After IDeliveryService data----------------------->");
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    System.out.println("Before process service--------------->");
    deliveryService.request("A2", "process", nm);
    System.out.println("After process service--------------->");
    out.println( "<b><Font Face=Arial color=red>Work Order has been initiated!</font></b>" );
    %>
         <table bgColor="#E9C2A6" border="1" cellpadding="0">
         <tr ><td width="100%" colspan=4 align=center >
    <b>The Work Order Details could be found at this link:
    <Font Face=Arial color=red><italic>Work Order Creation Details<italic></Font><b>
         </tr>
    </table>
    </body>
    </html>
    -----------------invokeWorkOrderFFA.jsp ends-----------
    I am getting the following error:
    ----------------error desc starts----------------------
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize for the inconvenience. Please open a TAR in http://metalink.oracle.com if you are our customers. Otherwise, you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 2.2
    Build: 1361
    Build time: Thu Mar 17 15:51:23 PST 2005
    Build type: release
    Source tag: BPELPM_10_1_2_beta3_branch
    Exception Message:
    [java.lang.Exception]
    Invalid Login. Domain not specified.
    Exception Trace:
    java.lang.Exception: Invalid Login. Domain not specified.
         at com.collaxa.cube.fe.util.ServletUtils.getLocator(ServletUtils.java:80)
         at displayInstance.jspService(_displayInstance.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:89)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ----------------error desc ends----------------------

    hey mgrovr..
    how to ensure that my jsps are under orabpel. i m getting a javax.naming.NameNotFoundException: ejb/collaxa/system/DomainManagerBean not found exception wile invoking bpel process from jsp. I have created the jsps in Jdeveloper and i'm running it from there only.
    Can u tell me a way to keep me application under orabpel

  • Problem in invoking BPEL process from jsp

    Dear Experts,
    I am trying to invoke BPEL process from simple JSP form, with guide lines of http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm. But I'm receiving the following error
    Error: JSP files must reside in the server root directory or a subdirectory beneath it
    Note: I having my JSP page inside my project folder-->output_html--> myfile.jsp
    Thanks,
    Rajesh

    Hi Rajesh,
    Please refer \bpel\samples\tutorials\102.InvokingProcesses\jsp.
    BPEL Tutorial 7: Invoking BPEL Processes through SOAP and Java : Reference: 2004/06/14/orabpel/d5/1.0
    Hope this helps!
    Regards
    Anirudh Pucha

  • How to invoke BPEL process from JAVA API

    Hi Guys
    Any idea if you can tell me how to invoke BPEL process from JAVA API ?
    What to do in BPEL process manager to achieve that?
    Regards
    Deepak

    See http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm#sthref1373 and the JavaDocs http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm.

  • Ejb/collaxa/system/DeliveryBean not found   :(

    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 issue.
    09/02/17 18:53:43.203 InvokingProcessesUI: Servlet error
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.lookup(ApplicationContext.java:196)
         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:299)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at _invokeHelloWorld._jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:94)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:303)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at invokeHelloWorld.jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.lookup(ApplicationContext.java:196)
         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:299)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at _invokeHelloWorld._jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:299)
         ... 17 more
    naveen
    Edited by: user640347 on Feb 17, 2009 5:30 AM

    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 issue.
    09/02/17 18:53:43.203 InvokingProcessesUI: Servlet error
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.lookup(ApplicationContext.java:196)
         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:299)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at _invokeHelloWorld._jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:94)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:303)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at invokeHelloWorld.jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.ApplicationContext.lookup(ApplicationContext.java:196)
         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:299)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:194)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:169)
         at _invokeHelloWorld._jspService(_invokeHelloWorld.java:62)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:299)
         ... 17 more
    naveen
    Edited by: user640347 on Feb 17, 2009 5:30 AM

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

    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 excepción mostrada es: "java.lang.Exception: Fallo al crear el bean "ejb/collaxa/system/DeliveryBean"; la excepción mostrada es: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         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.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:158)
         at oracle.tip.esb.server.service.impl.bpel.BPELService.processBusinessEvent(BPELService.java:342)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:106)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:85)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1416)
         at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:105)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:273)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
         at oracle.tip.esb.server.dispatch.DeferredEventDispatcher.processSubscriptions(DeferredEventDispatcher.java:150)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
         at oracle.tip.esb.server.dispatch.DeferredEventDispatcher.dispatch(DeferredEventDispatcher.java:67)
         at oracle.tip.esb.server.dispatch.agent.JavaDeferredMessageHandler.handleMessage(JavaDeferredMessageHandler.java:115)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.java:162)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.run(ESBWork.java:120)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)
         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:158)
         at oracle.tip.esb.server.service.impl.bpel.BPELService.processBusinessEvent(BPELService.java:342)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:106)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:85)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1416)
         at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:105)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:273)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
         at oracle.tip.esb.server.dispatch.DeferredEventDispatcher.processSubscriptions(DeferredEventDispatcher.java:150)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
         at oracle.tip.esb.server.dispatch.DeferredEventDispatcher.dispatch(DeferredEventDispatcher.java:67)
         at oracle.tip.esb.server.dispatch.agent.JavaDeferredMessageHandler.handleMessage(JavaDeferredMessageHandler.java:115)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.jav
    I know that the processes work fine because I have deployed them in another server and they are working fine. The esb process invokes the bpel without problems.
    I have read some threads in this forum where this error appears, but they are related to jsps, and the solution given doesn't apply.
    I really appreciate any help. Thanks in advance,
    Zaloa

    here is the detailed properties.
    properties.put("java.naming.factory.initial",                         "com.evermind.server.rmi.RMIInitialContextFactory");
                   properties.put("java.naming.provider.url", "ormi://localhost");
                   properties.put("java.naming.security.principal",
                             "admin");
                   properties.put("java.naming.security.credentials",
                             "welcome"

  • Invoking BPEL process from Java servlet with org.w3c.dom.Element as payload

    Hello,
    I'm trying to initiate a BPEL process from my servlet running under Tomcat. When I create the NormalizedMessage passing the XML as a String everything works fine. But if I use an org.w3c.domElement the BPEL server doesn't react at all (even on DEBUG log level there are no outputs).
    This works:
    NormalizedMessage message = new NormalizedMessage();
    message.addPart("payload", "<foo></foo>");
    This doesn't work:
    org.w3c.dom.Element elem;
    oracle.xml.parser.v2.XMLDocument xmlDocument;
    NormalizedMessage message = new NormalizedMessage();
    Element elem = xmlDocument.createElement("foo");
    message.addPart("payload", elem);
    Is there a known problem with payloads using Element or did I get something completely wrong? Thanks in advance,
    Hans.

    Hello,
    I'm trying to initiate a BPEL process from my servlet running under Tomcat. When I create the NormalizedMessage passing the XML as a String everything works fine. But if I use an org.w3c.domElement the BPEL server doesn't react at all (even on DEBUG log level there are no outputs).
    This works:
    NormalizedMessage message = new NormalizedMessage();
    message.addPart("payload", "<foo></foo>");
    This doesn't work:
    org.w3c.dom.Element elem;
    oracle.xml.parser.v2.XMLDocument xmlDocument;
    NormalizedMessage message = new NormalizedMessage();
    Element elem = xmlDocument.createElement("foo");
    message.addPart("payload", elem);
    Is there a known problem with payloads using Element or did I get something completely wrong? Thanks in advance,
    Hans.

  • Invoking Bpel Process from JAVA

    Hi I am new to BPEl.
    I am trying to Invoke Bpel From Java client provided in samples...
    i am getting
    java.lang.NullPointerException
    at this line..
    Map payload = res.getPayload();
    The Bpel Process is on my local machine...
    i kept the properties file as it is....
    Can any one Respond please.....

    Hi
    now i am getting this exception
    java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean" bean; exception reported is: "javax.naming.NamingException: Lookup error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext; nested exception is:
         java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext [Root exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext]
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:218)
         at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:83)
         at com.oracle.bpel.client.Locator.<init>(Locator.java:140)
         at com.oracle.bpel.client.Locator.<init>(Locator.java:111)
         at com.otn.samples.RMIClient.main(RMIClient.java:49)
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
         at java.lang.Class.getDeclaredMethod(Class.java:1262)
         at java.io.ObjectInputStream$1.run(ObjectInputStream.java:1198)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.io.ObjectInputStream.auditSubclass(ObjectInputStream.java:1190)
         at java.io.ObjectInputStream.verifySubclass(ObjectInputStream.java:1171)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:248)
         at com.evermind.io.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.java:16)
         at com.evermind.server.ejb.EJBInputStream.<init>(EJBInputStream.java:35)
         at com.evermind.server.rmi.RMIInputStream.<init>(RMIInputStream.java:20)
         at com.evermind.server.rmi.RMIConnection.createInputStream(RMIConnection.java:2417)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2555)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2361)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1800)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:676)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         ... 6 more
    can you say how to fix this...

  • ERROR: Invoking BPEL PROCESS FROM ADF APP

    hi guys ,
    I have made a simple bpel process with invokes a webservice (This service only gets a string and returns the string).
    I have tested this bpel process and web service it works fine. when tested with bpel console.
    I copied the wsdl of bpel and created the datacontrol.
    the problem is that when i hit start the process from ADF App. it raises the error
    Sep 7, 2009 1:24:49 PM oracle.wsm.common.logging.WsmMessageLogger logSevere
    SEVERE: Failure in looking up EJB component PolicyAccessService#oracle.wsm.policymanager.ejb.IStringPolicyAccessServiceRemote.
    Sep 7, 2009 1:24:49 PM oracle.wsm.common.logging.WsmMessageLogger logSevere
    SEVERE: Failure in looking up EJB component PolicyAccessService#oracle.wsm.policymanager.ejb.IStringPolicyAccessServiceRemote.
    Sep 7, 2009 1:24:49 PM oracle.adf.model.connection.webservice.impl.WebServiceConnectionMessages debugExecuteFailure
    SEVERE: Failed to execute a SAAJ interaction.
    javax.xml.ws.WebServiceException: oracle.fabric.common.PolicyEnforcementException
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:741)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97)
         at oracle.adf.model.connection.webservice.impl.SaajInteractionImpl.execute(SaajInteractionImpl.java:87)
         at oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider.execute(SOAPProvider.java:323)
         at oracle.adfinternal.model.adapter.webservice.WSDataControl.invokeOperation(WSDataControl.java:251)
         at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:427)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:256)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
         at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:464)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:217)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.fabric.common.PolicyEnforcementException
         at oracle.integration.platform.common.InterceptorChainImpl.createPolicyEnforcementException(InterceptorChainImpl.java:161)
         at oracle.integration.platform.common.InterceptorChainImpl.processRequest(InterceptorChainImpl.java:97)
         at oracle.integration.platform.common.mgmt.InterceptorChainManager.processRequest(InterceptorChainManager.java:216)
         at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.handleRequest(SuperClientInterceptorPipeline.java:96)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:524)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:508)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:693)
         ... 64 more
    Caused by: java.lang.NullPointerException
         at oracle.j2ee.ws.rm.interceptor.WSRMClientInterceptor.processRequest(WSRMClientInterceptor.java:169)
         at oracle.integration.platform.common.InterceptorChainImpl.processRequest(InterceptorChainImpl.java:89)
         ... 69 more
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://xmlns.oracle.com/SOAApp1/Project1/BPELProcess1"><env:Header/><env:Body><ns1:process><ns1:input>Shakeel Anjum</ns1:input></ns1:process></env:Body></env:Envelope>
    Kindly help
    Regards,
    Tariq

    Hi,
      Check if your wsdl endpoint can accessed properly. If yes, check the soap-binding address is properly pointing to the server hosting the webservice.
    Regards,
    Harikiran.

  • Simple invoking BPEL process from JSP not working

    Hello Everybody,
    I'm trying to invoke a BPEL process from a client JSP. I'm following the tutorial 7 Invoking the BPEL processes.
    I'm trying to use the same tutorial for a different application.
    Here is my WSDL snippet.
    <types>
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://www.arcwebservices.com/v2006"
    xmlns="http://www.w3.org/2001/XMLSchema">
              <element name="SpatialQueryRequest" type="s1:SpatialQueryRequestType"/>
              <element name="SpatialQueryResponse" type="s1:SpatialQueryResponseType"/>
              <complexType name="SpatialQueryRequestType">
              <sequence>
                   <element name="username" type="string"/>
                   <element name="password" type="string"/>
              </sequence>
              </complexType>
              <complexType name="SpatialQueryResponseType">
              <sequence>
                   <element name="token" type="string"/>
              </sequence>
              </complexType>
         </schema>
    </types>
    <message name="SpatialQueryRequestMessage">
    <part name="payload" element="s1:SpatialQueryRequest"/>
    </message>
    <message name="SpatialQueryResponseMessage">
    <part name="payload" element="s1:SpatialQueryResponse"/>
    </message>
    <portType name="SpatialQuery">
    <operation name="initiate">
    <input message="tns:SpatialQueryRequestMessage"/>
    </operation>
    </portType>
    <!-- portType implemented by the requester of SpatialQuery BPEL process
    for asynchronous callback purposes
    -->
    <portType name="SpatialQueryCallback">
    <operation name="onResult">
    <input message="tns:SpatialQueryResponseMessage"/>
    </operation>
    </portType>
    The JSP code is:
    <%
    String ssn = request.getParameter("ssn");
    //if(ssn == null)
    // ssn = "123-12-1234";
         String username = "jaweed";
         String password = "ibrahim";
    //String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
         //String xml = "<UserName xmlns="http://www.arcwebservices.com/v2006">" + username + "</UserName><Password xmlns="http://www.arcwebservices.com/v2006">" + password + "</Password>";
         String xml = "<UserName xmlns=\"http://www.arcwebservices.com/v2006\">" + username + "</UserName><Password xmlns=\"http://www.arcwebservices.com/v2006\">" + password + "</Password>";
    Locator locator = new Locator("default","bpel");
    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("SpatialQuery", "initiate", nm);
    Map payload = res.getPayload();
    //out.println( "BPELProcess CreditRatingService executed!<br>" );
    out.println( "Token is " + payload.get("payload") );
    %>
    com.oracle.bpel.client.ServerException: IDeliveryService.request() invoked for one-way operation 'initiate'. This method can only be used to invoke two-way operations which return an output message. Please check the WSDL which defines this operation and use the method IDeliveryService.post() to invoke a one-way operation
    But I'm getting an exception. I'm in deep trouble please help me. Urgent

    Yeah ..This is my final project for my masters degree.
    I'm integrating BPEL with GIS(Geographic Information System) webservices provided by ESRI(Arcweb services). My main BPEL process that I built follows this sample example. The problem is that I need to show a working client application within 2 days or else my project is termed as incomplete and my graduation will be postponed to next semester. :(
    I tried your advice, as soon as I add a Java code to my BPEL process, the application is taking longer time to execute in the BPEL console itself.
    <bpelx:exec xmlns:bpelx="http://schemas.oracle.com/bpel/extension" language="java" version="1.4" name="exec-1">
    <![CDATA[setConversationId("output");]]>
    </bpelx:exec>
    So after the thread sleep the webservice is not ready to give its output.
    Just a quick thought, I assumed that if I attach the output of the my Invoke(Client) to a Reply activity,which will make it a two way operation.
    Then I could use,
    NormalizedMessage res = deliveryService.request("SpatialQuery", "initiate", nm);
    will work.
    I assigned the ouput of the Invoke(Client) to the variable in Reply activity.
    But my reply activity is throwing a NULL pointer exception.
    This is my BPEL code:
    <sequence name="main">
              <receive name="receiveInput" partnerLink="client" portType="tns:InvokeTest" operation="initiate" variable="input" createInstance="yes"/>
              <assign name="assign-1">
                   <copy>
                        <from variable="input" part="payload" query="/nsxml0:InvokeTestRequest/nsxml0:username"></from>
                        <to variable="IsaInput" part="parameters" query="/nsxml0:getToken/nsxml0:username"/>
                   </copy>
                   <copy>
                        <from variable="input" part="payload" query="/nsxml0:InvokeTestRequest/nsxml0:password"></from>
                        <to variable="IsaInput" part="parameters" query="/nsxml0:getToken/nsxml0:password"/>
                   </copy>
              </assign>
              <invoke name="invoke-1" partnerLink="Authentication" portType="nsxml0:IAuthentication" operation="getToken" inputVariable="IsaInput" outputVariable="IsaOutput"/>
              <assign name="assign-2">
                   <copy>
                        <from variable="IsaOutput" part="parameters" query="/nsxml0:getTokenResponse/nsxml0:Result"></from>
                        <to variable="output" part="payload" query="/nsxml0:InvokeTestResponse/nsxml0:token"/>
                   </copy>
              </assign>
              <reply name="reply-2" partnerLink="client" portType="tns:InvokeTest" operation="initiate" variable="output"/>     </sequence>
    I really appreciate your patience and help.

  • How to invoke Bpel process  from java using 'bpel process WSDL'

    I want to call bpel process from java using bpel wsdl.
    could any one point me to any url/sample.
    Thanks
    Nagajyothy

    Hi Seshagiri,
    Thanks for providing links and initial steps to create web service proxy(using Jdeveloper 11g).
    I created a web service proxy.
    provided the needed inputs.
    when I ran the client app, bpel process(has a human task) got invoked but faulted with exception as below
    Operation 'initiateTask' failed with exception 'EJB Exception: : java.lang.ExceptionInInitializerError[[
         at oracle.tip.pc.services.common.ServiceFactory.getAuthorizationServiceInstance(ServiceFactory.java:147)
         at oracle.bpel.services.workflow.task.impl.TaskService.initiateTask(TaskService.java:1159)
         at oracle.bpel.services.workflow.task.impl.TaskService.initiateTask(TaskService.java:502)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    please help me in solving the above problem.
    Thanks
    Nagajyothy

  • TNS:Operation Timed Out error while trying to invoke BPEL Process from sql

    Hi,
    I am trying to invoke a BPEL Process from PL/sql code. When i try to invoke the process, I am getting the following error message
    ORA-29273 HTTP Request Failed
    ORA:06512: at SYS.UTH_HTTP at line 1029
    ORA:12535: TNS:Operation Timed Out
    ORA:06512: at line 18
    I have the SOA suite installed on my local machine...and the BPEL process that i am trying to invoke is deployed their.
    Any idea what could be wrong..following is the code piece
    soap_request:='<?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/Test">
    <ns1:TesProcessRequest><ns1:input>is1_1land</ns1:input></ns1:TesProcessRequest>
    </soap:Body>
    </soap:Envelope>';
    dbms_output.put_line('soap_request: '||soap_request);
    utl_http.set_proxy('3.209.30.25:80', '3.209.32.149:8888');
    http_req:= utl_http.begin_request('http://3.209.32.149:8888/orabpel/default/Tes/1.0 '
                   ,'POST'
                                  ,'HTTP/1.1');
    dbms_output.put_line('after Begin Request' );
    utl_http.set_header(http_req, 'Content-Type', 'text/xml') ;
    Please advise

    you are right the file adapter doesnt invoke any bpel
    process, instead it is polling the file from
    directory location?If it is polling for new files, shouldn't it create a new instance of the BPEL process automatically the moment it finds a new file? In other words, should a new file trigger an instance of the BPEL process rather than being started from PL/SQL?
    Can this file adapter not be invoked as bpel process
    in that case?The file adapter is part of a BPEL process. The BPEL process can be invoked from e.g. PL/SQL.
    In this case this file adapeter return to an RECEIVE
    activity...I think this receive cannot be invoked as
    a BPEL process rite?Can you explain what you mean with this?
    Also , will all synchronous request return "TIMEOUT"
    error, if tried to invoke from pl/sql?Only if the synchronous process instance takes more time to complete (and thus to return) than the value specified for a time-out to occur. If the instance completes in for example 10 ms and the time-out time is specified as 30 seconds, no time-out will occur.
    Regards, Ronald

  • Problem while invoking Bpel Process from Browser

    server WSDL
    <definitions
         name="getOpenInvoicesService"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
         xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
        >
        <types>
          <schema xmlns="http://www.w3.org/2001/XMLSchema" >
            <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService" schemaLocation="getOpenInvoicesService.xsd" />
          </schema>
        </types>
        <message name="getOpenInvoicesServiceInput_msg">
            <part name="getOpenInvoicesServiceInput_msg" element="db:getOpenInvoicesServiceInput"/>
        </message>
        <message name="getOpenInvoicesServiceOutputCollection_msg">
            <part name="getOpenInvoicesServiceOutputCollection" element="db:getOpenInvoicesServiceOutputCollection"/>
        </message>
        <portType name="getOpenInvoicesService_ptt">
            <operation name="getOpenInvoicesService">
                <input message="tns:getOpenInvoicesServiceInput_msg"/>
                <output message="tns:getOpenInvoicesServiceOutputCollection_msg"/>
            </operation>
        </portType>
        <binding name="getOpenInvoicesService_binding" type="tns:getOpenInvoicesService_ptt">
        <jca:binding  />
            <operation name="getOpenInvoicesService">
          <jca:operation
              SqlString=" SELECT distinct aps.trx_number TrxNumber,       ra.purchase_order PurchaseOrder,       rl.sales_order OrderNumber,       ra.interface_header_attribute2 OrderType,       hc.account_number CustomerNumber,        rt.name TrxType,       aps.acctd_amount_due_remaining AmmountDue,       aps.trx_date TrxDate,        aps.due_date TrxDueDate    FROM ra_customer_trx_all ra     ,   ra_customer_trx_lines_all rl     ,   ar_payment_schedules_all aps     ,   ra_cust_trx_types_all rt         ,   hz_cust_accounts hc              ,   hz_parties hp                    ,   hz_cust_acct_sites_all hcasa_bill,   hz_cust_site_uses_all hcsua_bill ,   hz_party_sites hps_bill          ,   ra_cust_trx_line_gl_dist_all rct   WHERE 1                        = 1 AND ra.customer_trx_id           = rl.customer_trx_id AND ra.customer_trx_id           = aps.customer_trx_id AND ra.org_id                    = aps.org_id AND rct.customer_trx_id          = aps.customer_trx_id AND rct.customer_trx_id          = ra.customer_trx_id AND rct.customer_trx_id          = rl.customer_trx_id AND rct.customer_trx_line_id     = rl.customer_trx_line_id AND ra.complete_flag             = &apos;Y&apos; AND rl.line_type                IN (&apos;FREIGHT&apos;, &apos;LINE&apos;) AND ra.cust_trx_type_id          = rt.cust_trx_type_id AND ra.bill_to_customer_id       = hc.cust_account_id AND hc.status                    = &apos;A&apos; AND hp.party_id                  = hc.party_id AND hcasa_bill.cust_account_id   = ra.bill_to_customer_id AND hcasa_bill.cust_acct_site_id = hcsua_bill.cust_acct_site_id AND hcsua_bill.site_use_code     = &apos;BILL_TO&apos; AND hcsua_bill.site_use_id       = ra.bill_to_site_use_id AND hps_bill.party_site_id       = hcasa_bill.party_site_id AND hcasa_bill.status            = &apos;A&apos; AND hcsua_bill.status            = &apos;A&apos; AND aps.amount_due_remaining    &lt;&gt; 0 AND aps.status                   = &apos;OP&apos; AND hc.account_number= ?"
              InteractionSpec="oracle.tip.adapter.db.DBPureSQLInteractionSpec" >
          </jca:operation>
                <input/>
                <output/>
            </operation>
        </binding>
        <service name="getOpenInvoicesService">
            <port name="getOpenInvoicesService_pt" binding="tns:getOpenInvoicesService_binding">
    <!--Your runtime connection is declared in
    J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
    These mcf properties here are from your design time connection and
    save you from having to edit that file and restart the application server
    if eis/DB/sfh is missing.
    These mcf properties are safe to remove.-->
          <jca:address location="eis/DB/sfh" UIConnectionName="sfh"
              ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
              mcf.DriverClassName="oracle.jdbc.OracleDriver"
              mcf.PlatformClassName="oracle.toplink.internal.databaseaccess.Oracle9Platform"
              mcf.ConnectionString="jdbc:oracle:thin:@localhost:1526:xxxx"
              mcf.UserName="apps"
              mcf.Password="53CB0F044A0D3DD2C063679F18F89870" />
            </port>
        </service>
      <plt:partnerLinkType name="getOpenInvoicesService_plt" >
        <plt:role name="getOpenInvoicesService_role" >
          <plt:portType name="tns:getOpenInvoicesService_ptt" />
        </plt:role>
      </plt:partnerLinkType>
    </definitions>
    client.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
         name="getOpenInvoices"
         targetNamespace="http://xmlns.oracle.com/getOpenInvoices"
         xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
         xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:client="http://xmlns.oracle.com/getOpenInvoices"
         xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
        <types>
            <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/getOpenInvoices" xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="getOpenInvoicesProcessResponse">
            <complexType>
            <sequence>
            <element name="result" type="string"/>
            </sequence>
            </complexType>
            </element>
            <element name="getOpenInvoicesProcessRequest">
            <complexType>
            <sequence>
            <element name="accountNumber" type="string"/>
            </sequence>
            </complexType>
            </element>
            </schema>
        </types>
        <message name="getOpenInvoicesRequestMessage">
            <part name="payload" element="client:getOpenInvoicesProcessRequest"/>
        </message>
        <message name="getOpenInvoicesResponseMessage">
            <part name="payload" element="client:getOpenInvoicesProcessResponse"/>
        </message>
        <portType name="getOpenInvoices">
            <operation name="OpenInvoices">
                <input message="client:getOpenInvoicesRequestMessage"/>
                <output message="client:getOpenInvoicesResponseMessage"/>
            </operation>
        </portType>
        <binding name="OpenInvoicebindings" type="client:getOpenInvoices">
        <http:binding verb="GET"/>
        <operation name="OpenInvoices">
        <http:operation location="/OpenInvoices"/>
        <input>
        <http:urlEncoded/>
        </input>
        <output>
        <mime:mimeXml part="Body"/>
        </output>
        </operation>
        </binding>
        <service name="OpenInvoiceService">
        <port binding="client:OpenInvoicebindings" name="OpenInvoicesport">
        <http:address location="http://sys0004:8889/httpbinding/default/getOpenInvoices"/>
        </port>
        </service>
        <plnk:partnerLinkType name="getOpenInvoices">
            <plnk:role name="getOpenInvoicesProvider">
                <plnk:portType name="client:getOpenInvoices"/>
            </plnk:role>
        </plnk:partnerLinkType>
    </definitions>
    bpel process
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Tue Jul 13 11:05:51 IST 2010
      Author: 
      Purpose: Synchronous BPEL Process
    -->
    <process name="getOpenInvoices"
             targetNamespace="http://xmlns.oracle.com/getOpenInvoices"
             xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService/"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
             xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/getOpenInvoicesService"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:client="http://xmlns.oracle.com/getOpenInvoices"
             xmlns:ora="http://schemas.oracle.com/xpath/extension"
             xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
      <!--
          PARTNERLINKS                                                     
          List of services participating in this BPEL process              
      -->
      <partnerLinks>
        <!--
          The 'client' role represents the requester of this service. It is
          used for callback. The location and correlation information associated
          with the client role are automatically set using WS-Addressing.
        -->
        <partnerLink name="client" partnerLinkType="client:getOpenInvoices"
                     myRole="getOpenInvoicesProvider"/>
        <partnerLink name="getOpenInvoicesService"
                     partnerRole="getOpenInvoicesService_role"
                     partnerLinkType="ns1:getOpenInvoicesService_plt"/>
      </partnerLinks>
      <!--
          VARIABLES                                                       
          List of messages and XML documents used within this BPEL process
      -->
      <variables>
        <!-- Reference to the message passed as input during initiation -->
        <variable name="inputVariable"
                  messageType="client:getOpenInvoicesRequestMessage"/>
        <!-- Reference to the message that will be returned to the requester-->
        <variable name="outputVariable"
                  messageType="client:getOpenInvoicesResponseMessage"/>
        <variable name="Invoke_1_getOpenInvoicesService_InputVariable"
                  messageType="ns1:getOpenInvoicesServiceInput_msg"/>
        <variable name="Invoke_1_getOpenInvoicesService_OutputVariable"
                  messageType="ns1:getOpenInvoicesServiceOutputCollection_msg"/>
      </variables>
      <!--
         ORCHESTRATION LOGIC                                              
         Set of activities coordinating the flow of messages across the   
         services integrated within this business process                 
      -->
      <sequence name="main">
        <!-- Receive input from requestor. (Note: This maps to operation defined in getOpenInvoices.wsdl) -->
        <receive name="receiveInput" partnerLink="client"
                 portType="client:getOpenInvoices" operation="OpenInvoices"
                 variable="inputVariable" createInstance="yes"/>
        <!-- Generate reply to synchronous request -->
        <assign name="Assign_1">
          <copy>
            <from variable="inputVariable" part="payload"/>
            <to variable="Invoke_1_getOpenInvoicesService_InputVariable"
                part="getOpenInvoicesServiceInput_msg"/>
          </copy>
        </assign>
        <invoke name="Invoke_1" partnerLink="getOpenInvoicesService"
                portType="ns1:getOpenInvoicesService_ptt"
                operation="getOpenInvoicesService"
                inputVariable="Invoke_1_getOpenInvoicesService_InputVariable"
                outputVariable="Invoke_1_getOpenInvoicesService_OutputVariable"/>
        <assign name="Assign_2">
          <copy>
            <from variable="Invoke_1_getOpenInvoicesService_OutputVariable"
                  part="getOpenInvoicesServiceOutputCollection"/>
            <to variable="outputVariable" part="payload"/>
          </copy>
        </assign>
        <reply name="replyOutput" partnerLink="client"
               portType="client:getOpenInvoices" operation="OpenInvoices"
               variable="outputVariable"/>
      </sequence>
    </process>the above is the server and client wsdls and Bpel process. i have created the wsdl so as to call from HTTP calling, means process is been called from Browser .... but i can't see the result ...
    http://sys0004:8889/httpbinding/default/getOpenInvoices/OpenInvoices?accountNumber=1608
    above is the link called from browser
    output in the browser ::: <getOpenInvoicesProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/getOpenInvoices" />
    actually it has to fetch data from DB and show in xml format can anyone assist me where i am going wrong

    Hi Rajesh,
    Please refer \bpel\samples\tutorials\102.InvokingProcesses\jsp.
    BPEL Tutorial 7: Invoking BPEL Processes through SOAP and Java : Reference: 2004/06/14/orabpel/d5/1.0
    Hope this helps!
    Regards
    Anirudh Pucha

Maybe you are looking for

  • Reinstalling iphoto?

    I couldn't open iphoto earlier and got this message: "you can't open your current photo library using this version of iphoto. You have made changes to your photo library using a newer version of iphoto. Please quit and use the latest version of iphot

  • How to reference /inherit property class in form in oracle apps

    Hi I had a Form which is register in the oracle apps but now i have another requirement to create a tab canvas put all fields of pervoius form(content form) into new tab page canvas now i want to know how i can reference/inherit the pervious conent f

  • Having problem with my FaceTime.

    Having problem with my Face Time.Can get through but cannot answer.The other party also cannot answer,keep on stating on other device.

  • MBA not talking to iMac 24"

    Hi everyone, I'm trying to set up my new MBA by migrating things from my 24" iMac. I followed all the instructions in the manual, but no luck. So i continued the setup and tried to use the migration assistant, still no luck. I tried to go on the net

  • Erratic Recording Levels

    I am having difficulty with erratic recording levels in SB 2.01. The sound card is an Andrea USB pod. This is what happens: I will record a 20 second sound clip, stop recording and copy and paste the clip into another file. I will then record the ano