BPEL vs. Java
Hi,
Can somebody tell me the advantage of BPEL compared to Java?
We can implement all BPEL Process also in Java.
1. in Java it is cheaper, because we need only JVM or Java Application Server
2. Most people know Java and Java can do more than BPEL
So I just want to know when we use BPEL?
Maybe somebody can tell about success story of BPEL in his project or his company.
Regards,
Steve
Advantages of BPEL:
- you do not need to kown JavaBut I need to know BPEL. And I think Java programmer is cheaper than BPEL programmer, because there are already so many Java programmer
- you can "draw" your codeYou mean "draw" using Oracle JDev. But that is the feature of JDev, not from BPEL. Some UML Editor can also generate Java Code from sequence diagram.
- you can easier review your codeIt depends, who review the code. Java programmer can faster review Java code. And BPEL programmer can faster review BPEL code.
- it is for some kind of business modelers and not
for developers...I know.....
I'm not on Java side or BPEL side. But the main idea is BPEL Engine maybe costs ,about 50.000$. And BPEL programmer is maybe more expensive.
Technicaly Java is the language that implements BPEL Engine. So I'm sure that Java is technicaly greater than BPEL. But I'm sure in some points is better to use BPEL.
That's why, I want to know the success story of projects that use BPEL, because the problem can be solved with BPEL better. Or maybe there are also some projects that prefer to use Java, because the problem can be solved with Java better and faster.
steve
Similar Messages
-
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 call a composite in 11g. I wrote it in a simple java program and run it within jdeveloper. I'm using the adf binding. When I passed in an empty NormalizedMessage object then it worked fine. But when I passed in the payload data then I got the errors below. It did create an instance on my soa server but the instance did not call the pbel process. Do you have any ideas?
StringBuffer inputPayload = new StringBuffer();
inputPayload.append("<ns1:process xmlns:ns1=\"http://xmlns.oracle.com/BPELScheduler/LineItemProcessEventList\">");
inputPayload.append("<ns1:input>test</ns1:input>");
inputPayload.append("</ns1:process>");
Locator locator = LocatorFactory.createLocator(jndiProps);
Composite composite = locator.lookupComposite("default/BPELScheduler!1.0");
Service service = composite.getService("lineitemprocesseventlist_client_ep_java");
NormalizedMessage input = new NormalizedMessageImpl();
input.getPayload().put("payload",inputPayload);
service.post("process",input);
============ ERROR ========================================
oracle.fabric.common.FabricInvocationException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:106)
at com.masyc.scheduler.BPELDriver.callBpel(BPELDriver.java:54)
at com.masyc.scheduler.BPELDriver.main(BPELDriver.java:24)
Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1031_WLStub.executeServiceMethod(Unknown Source)
at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:875)
at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:98)
... 2 more
Caused by: java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:866)
at sun.reflect.GeneratedMethodAccessor2796.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy238.executeServiceMethod(Unknown Source)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.java:1610)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.fabric.common.FabricInvocationException
at oracle.fabric.CubeServiceEngine.post(CubeServiceEngine.java:538)
at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:142)
at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:194)
at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:204)
at sun.reflect.GeneratedMethodAccessor1043.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy195.post(Unknown Source)
at oracle.integration.platform.blocks.sdox.JavaEntryBindingComponent.post(JavaEntryBindingComponent.java:250)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:864)
... 30 more
Edited by: user8742475 on Nov 10, 2009 1:39 PM -
Trying to Invoke BPEL from JAVA
Hi
I want to invoke a bpel process deployed on 10.1.3.X SOA Server from my java program.
I have inculded a properties file which have following details:
orabpel.platform=ias_10g
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=opmn:ormi://adc60009rems.us.oracle.com:6083:oc4j_soa/orabpel
java.naming.security.principal=oc4jadmin
java.naming.security.credentials=welcome1
JAVA Code is:
Locator locator = new Locator("default","bpel",props);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml );
System.out.println(nm);
deliveryService.post("FixXREF", "initiate", nm);
where xml is the soap message.
The problem is, BPEL process is getting invoked but not with the given xml.
Input to BPEL is empty.
Can someone please let me know, what I am missing or what is the correct process to call a BPEL from Java.
Thanks
SushamaHi,
how does your payload (xml) looks like? I would recommend you to start a Process using the BPEL Console and then compare both payloads. Maybe you are missing some namespaces. -
Error while calling the BPEL from java program
Hello All,
I am tring to call the Synchronous BPEL process from the following code:
package callbpelfromjava;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.delivery.IDeliveryService;
import java.util.Map;
import java.util.Properties;
import oracle.xml.parser.v2.XMLElement;
public class BPELCaller {
public static void main(String args[]){
String input = "krrish";
String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
try{
Properties props=new Properties();
props.setProperty("orabpel.platform","ias_10g");
props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
props.setProperty("java.naming.provider.url","opmn:ormi://192.168.137.40:6004/home/orabpel");
props.setProperty("java.naming.security.principal","oc4jadmin");
props.setProperty("java.naming.security.credentials","welcome1");
props.setProperty("dedicated.rmicontext", "true");
Locator locator = new Locator("default", "bpel", props);
System.out.println("After creating the locator object......");
IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
System.out.println("Befor creating the NormalizedMessage object......");
NormalizedMessage nm = new NormalizedMessage();
System.out.println("After creating the NormalizedMessage object.*.*.*...");
nm.addPart("payload", xmlInput);
System.out.println("Before creating response object......");
NormalizedMessage res = deliveryService.request("AccessDBBPEL", "process", nm);
System.out.println("After calling the AccessDBBPEL .*.*.*...");
Map payload = res.getPayload();
System.out.println("BPEL called");
XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
String replyText=xmlEl.getText();
System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
catch (Exception e) {
e.printStackTrace();
I Included the following jar files:
Orabpel-ant.jar
Orabpel.jar
Orabpel-common.jar
Orabpel-boot.jar
Xmlparserv2.jar
Ejb30.jar
and getting the exception:
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.request(DeliveryService.java:83)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
at callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
Am I doing any thing wrong ?
Thanks
KrrishHello Marc,
Thank you for the reply.
I could not find some of the jar files in my Jdeveloper 10.1.3.1.0
../lib/olite40.jar
../lib/wsclient_extended.jar
../lib/log4j-1.2.14.jar
could you please help me locating these jars.
or If possible, could you mail me those jars at [email protected]
I have included all other jar files you have listed and getting the following errror:
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.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.request(DeliveryService.java:83)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
at callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
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 callbpelfromjava.BPELCaller.main(BPELCaller.java:39)
Thanks
Krrrish -
Calling a web service from BPEL using java web methods
Hello everyone,
I have an application my BPEL process should connect to. The application which is a web service needs to be called using pre defined web methods defined in java from my bpel process using Jdev 10g. Any suggestions in how I can go about doing that? Please I really need helpHi there,
If you have defined already your partner links to the service you can use the BPEL API to invoke them from RMI. See this blog entry
http://technology.amis.nl/2006/06/08/oracle-bpel-pm-invoking-a-remote-bpel-service-from-java-using-rmi/
It'd be also good if you post the question on the bpel forum BPEL
Thanks,
JC -
Error while invoking bpel through java
when i was using java to invoke iam getting an exception
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.
when iam using html the bpel works fine.
But when i use java with IDeliveryService.post() it is giving error in Bpel flow by saying
exception on JaxRpc invoke:
start fault message:
Internal Server Error (Caught exception while handling request: oracle.forms.jdapi.JdapiException: '' does not have an extension)
:end fault message.
Please help me in this issue.try as follows
Invoking a one-way operation via Java API The procedure for invoking a one-way BPEL operation via the Java API is very similar, except that you will use the IDeliveryService.post() method (which is also overloaded). These methods invoke a one-way operation on a BPEL process and thus return void since a response is not expected (at least not a synchronous response). In the code example shown here, the post method used is exactly the same as the request() shown above, except that it returns void: From JavaDoc for com.oracle.bpel.client.dispatch.IDeliveryService <br><br>
public void post(java.lang.String processId, java.lang.String operationName, NormalizedMessage message) throws java.rmi.RemoteException <br>
<br><br>Selected JSP source:<br><br>
<%@page import="com.oracle.bpel.client.Locator" %> <br>
<%@page import="com.oracle.bpel.client.NormalizedMessage" %> <br>
<%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %> ... <br>Locator locator = new Locator("default", "bpel", null); <br>
... NormalizedMessage nm = new NormalizedMessage( ); <br>
nm.addPart("payload" , xml ); <br>
deliveryService.post("HelloWorld", "initiate", nm); <br>
out.println( "BPELProcess HelloWorld initiated!" ); %> -
BPEL Server java.lang.NullPointerException
I have been getting a java.lang.NullPointerException after I try to add a Database adapter to a BPEL process. I get the exception even after I delete everything I added before I got the exception. Here is the text from the screen that the BPEL Console puts up:
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 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 10.1.2.0.0
Build: 1442
Build time: Fri Apr 29 16:59:32 PDT 2005
Build type: release
Source tag: BPELPM_10_1_2_release_branch
Exception Message:
[java.lang.NullPointerException]
null
Exception Trace:
java.lang.NullPointerException
at com.collaxa.cube.engine.deployment.ProcessRevisionRegistry$RevisionTable.remove(ProcessRevisionRegistry.java:296)
at com.collaxa.cube.engine.deployment.ProcessRevisionRegistry.delete(ProcessRevisionRegistry.java:112)
at com.collaxa.cube.engine.deployment.CubeProcessLoader.destroy(CubeProcessLoader.java:596)
at com.collaxa.cube.engine.deployment.CubeProcessHolder.reload(CubeProcessHolder.java:972)
at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:922)
at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:787)
at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:765)
at com.collaxa.cube.engine.deployment.CubeProcessHolder.getStatus(CubeProcessHolder.java:211)
at com.collaxa.cube.engine.deployment.DeploymentHelper.lookupProcessStatus(DeploymentHelper.java:301)
at com.collaxa.cube.ejb.impl.FinderBean.lookupProcess(FinderBean.java:86)
at IFinderBean_StatelessSessionBeanWrapper42.lookupProcess(IFinderBean_StatelessSessionBeanWrapper42.java:228)
at com.oracle.bpel.client.Locator.lookupProcess(Locator.java:245)
at displayProcess.jspService(_displayProcess.java:88)
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.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:138)
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:192)
at java.lang.Thread.run(Thread.java:534)
Please let me know if I am doing anything wrong.
Thanks,
JeffA follow on to the last post, after I stopped and then restarted the BPEL Server, the process loaded correctly and the error did not reappear.
-
Error Launching BPEL Console - java.lang.NoClassDefFoundError
Hi All,
After Installed standard SOA Basic install
I am able to launch the below consoles
- Application Server
- ESB
- Rules Author
- Web Services Manager
but when i launch the BPEL console i get the below error
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 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 10.1.3.1.0
Build: 0
Build time: Mon Oct 09 08:44:49 PDT 2006
Build type: release
Source tag: PCBPEL_10.1.3.1.0_GENERIC_061009.0802
Exception Message:
[java.lang.NoClassDefFoundError]
org/apache/log4j/Category
Exception Trace:
java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at org.collaxa.thirdparty.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
at org.collaxa.thirdparty.apache.axis.encoding.TypeMappingImpl.(TypeMappingImpl.java:68)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTypes(TypeSoapRegistry.java:251)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegistry.java:79)
at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:126)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:613)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:474)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:1111)
at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.java:924)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:111)
at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:254)
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:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at ServerBean_RemoteProxy_4bin6i8.init(Unknown Source)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:60)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
at com.evermind.server.http.HttpApplication.(HttpApplication.java:738)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:545)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2450)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:998)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
at java.lang.Thread.run(Thread.java:595)
any pointers in how to resolve the issue or what is causing it ?
thanksone way of overcoming the error is to include the below entry in server.xml
<code-source path="D:\product\10.1.3.1\OracleAS_1\bpel/lib/orabpel-thirdparty.jar"/> -
Trouble to invoke BPEL from Java Client following rmi example
I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi .
I created my Java class within NetBeans IDE. And the following line of code return null for url,
java.net.URL url = ClassLoader.getSystemResource("context.properties");
I think that I need to have SystemResource set up somewhere, how should I do that?if you using oc4j.. then please make a small change in oc4j_context.properties
from
java.naming.provider.url=[java.naming.provider.url]
to
java.naming.provider.url=ormi://hostname/orabpel
And please make sure the context.properties file which gets copied to classes/context.properties has this above entry. For more details please refer to build.xml under rmi folder.
Please do let me know if you face any issue. -
Exception while calling BPEL from Java Class
Hi All,
I am trying to call BPEL from my Java Code. but i am getting following exception.
java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DomainManagerBean 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.lookupDomainManagerBean(BeanRegistry.java:218)
at com.oracle.bpel.client.Locator.getDomainAuth(Locator.java:975)
at com.oracle.bpel.client.Locator.<init>(Locator.java:73)
at callbpel.CallBPEL.main(CallBPEL.java:40)
at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:232)
at com.oracle.bpel.client.Locator.getDomainAuth(Locator.java:975)
at com.oracle.bpel.client.Locator.<init>(Locator.java:73)
at callbpel.CallBPEL.main(CallBPEL.java:40)
Process exited with exit code 0.
Following is my java code.
package callbpel;
import com.collaxa.cube.util.GUIDGenerator;
import com.collaxa.xml.XMLHelper;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.delivery.IDeliveryService;
import java.util.Hashtable;
import java.util.Map;
import com.oracle.bpel.client.ServerException;
import java.rmi.RemoteException;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.w3c.dom.Element;
public class CallBPEL {
public CallBPEL() {
public static void main(String[] args) {
CallBPEL callBPEL = new CallBPEL();
Hashtable env;
try {
env = callBPEL.getInitialContext();
String xml = "<ssn xmlns=\"http://services.otn.com\">" + "1234" + "</ssn>";
Locator locator = new Locator("default",env);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload", xml);
try {
deliveryService.post("JavaCallingBPEL", "initiate", nm);
System.out.println("BPELProcess HelloWorld executed!<br>");
} catch (ServerException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
} catch (NamingException e) {
e.printStackTrace();
} catch (ServerException e) {
e.printStackTrace();
private static Hashtable getInitialContext() throws NamingException {
Hashtable env = new Hashtable();
env.put("orabpel.platform","ias_10g");
env.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
env.put("java.naming.provider.url","opmn:ormi://localhost:6004:oc4j_soa/orabpel");
env.put("java.naming.security.principal","oc4jadmin");
env.put("java.naming.security.credentials","welcome1");
return env;
I am breaking my head since last two days. i dont know whats the problem. i have included almost all the jars in class path.
Can anybody help me in this.
any help is appreciated.
Thanks,
NimishaHi all,
I have solved above problem but run into some other exception below
Dec 22, 2008 12:51:34 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
com.evermind.server.rmi.RMIConnectionException: Disconnected: com.oracle.bpel.client.AbstractIdentifier; local class incompatible: stream classdesc serialVersionUID = 3174123903773674079, local class serialVersionUID = -4389351842028223514
at com.evermind.server.rmi.RmiCallQueue.notifyQueuedThreads(RmiCallQueue.java:70)
at com.evermind.server.rmi.RMIClientConnection.notifyQueuedThreads(RMIClientConnection.java:154)
at com.evermind.server.rmi.RMIClientConnection.resetState(RMIClientConnection.java:128)
at com.evermind.server.rmi.RMIConnection.receiveDisconnect(RMIConnection.java:233)
at com.evermind.server.rmi.RMIClientConnection.receiveDisconnect(RMIClientConnection.java:140)
at com.evermind.server.rmi.RMIConnection.handleOrmiCommand(RMIConnection.java:208)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:222)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
at java.lang.Thread.run(Thread.java:595)
Any Idea?
Thanks,
Nimisha
Edited by: user649974 on Jan 6, 2009 10:50 AM -
BPEL from Java working;but not from jsp
Hi
I am trying to invoke the my BPEL process through a simple java class;It was working fine. When I run the same BPEL process from jsp, I get the following error:
500 Internal Server Error
java.lang.ExceptionInInitializerError at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMICall.throwRecordedException(RMICall.java:125) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43) at __Proxy1.request(Unknown Source) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:104) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53) at invokeOrderCapture.jspService(_invokeOrderCapture.java:88) [invokeOrderCapture.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) 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) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:534)Caused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:807) at java.util.ResourceBundle.getBundle(ResourceBundle.java:701) at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142) at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.handleCommand(RMIConnection.java:152) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.run(RMIConnection.java:107) ... 2 more
I have added all the required list of jars to my web application class path.
What could be the problem?
please give me list of jars for the web-to-BPEL applications.
Thanks
INDIACaused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:807) at java.util.ResourceBundle.getBundle(ResourceBundle.java:701) at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142) at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)[/i]
leads me to missing orabpel.jar / orabpel.common.jar ??
/clemens -
[HELP] How to invoke BPEL from JAVA program via calling WSDL?
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.Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java. -
How to Invoke BPEL through JAVA
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 'invoke'.which has just one input parameter 'InvokeProcessRequest'.
The error is 500 internal server error.
also,
I want to know,
what parameter to write in Locator class.
whether we have to make in changes in any xml file or so.
<%@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>InvokeBPEL</title>
</head>
<body>
<%
String Payload = request.getParameter("Payload");
%>
<!-- Construct HTML form here -->
<h3>Invoke</h3>
<h4>Application Form</h4>
<form>
<table>
<tr>
<td>Payload</td>
<td><input type="text" name="Payload" value="123456789"></td>
</tr>
<tr>
<td>InvokeProcessRequest</td>
<td><input type="text" name="InvokeProcessRequest" value="invoke"></td>
</tr>
</table>
<input type="submit" value="Send Application">
</form>
<%
// 1. Get form fields
String InvokeProcessRequest = request.getParameter("InvokeProcessRequest");
// 2. Create loan application XML document
String xml = "<invoke xmlns=\"http://www.w3.org/2001/XMLSchema\">"
+ "<Payload>" + Payload + "</Payload>"
+ "<InvokeProcessRequest>" + InvokeProcessRequest + "</InvokeProcessRequest>"
+ "</invoke>";
// 3. Initiate the BPEL process here
// Connect to Oracle BPEL server
Locator locator = new Locator("default","bpel");
IDeliveryService deliveryService = (IDeliveryService)
locator.lookupService(IDeliveryService.SERVICE_NAME );
// Construct a normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload", xml);
// Initiate the BPEL process
deliveryService.post("invoke", "initiate", nm);
%> <p>BPEL Process <code>MyLoanFlow</code> initiated
with a loan application containing Payload=<%= Payload %></p>
<p>Please refer to the
<a href="/BPELConsole/displayInstance.jsp">BPEL Console</a>
to see the status of the initiated MyLoanFlow BPEL Process.</p>
<%
%>
</body>
</html>Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java. -
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:
cbalmatiHi,
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 -
BPEL initiateTask java.lang.NoClassDefFoundError
Hi,
I have a process in BPEL PM. When it tries to initiate a user task (initiateTask step) , it failes with java.lang.NoClassDefFoundError.
The process works well in our development environment. The development and the production environment is very similar (the hw differs):
- Business Intelligence Mid Tier 10.1.2.0.2
- BPEL 10.1.2.0.2
- Solaris 9
The detailed error message in $ORACLE_HOME/opmn/logs/ is at the end of the post.
Any idea?
Csaba Bonifert
<2006-02-08 15:43:53,920> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> invoke failed
org.collaxa.thirdparty.apache.wsif.WSIFException: Operation failed!; nested exception is:
java.lang.NoClassDefFoundError
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1318)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1910)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem(CubeEngineBean.java:345)
at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.handleWorkItem(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:1429)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle(PerformMessageHandler.java:45)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NoClassDefFoundError
at oracle.tip.pc.services.hw.task.impl.TaskManager.validateUser(TaskManager.java:3300)
at oracle.tip.pc.services.hw.task.impl.TaskManager.validateTaskAssignment(TaskManager.java:3258)
at oracle.tip.pc.services.hw.task.impl.TaskManager.initiateTask(TaskManager.java:262)
at oracle.tip.pc.services.hw.task.impl.TaskManagerProxy.initiateTask(TaskManagerProxy.java:55)
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:324)
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1022)
... 24 more
<2006-02-08 15:43:53,926> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened
java.lang.NoClassDefFoundError
at oracle.tip.pc.services.hw.task.impl.TaskManager.validateUser(TaskManager.java:3300)
at oracle.tip.pc.services.hw.task.impl.TaskManager.validateTaskAssignment(TaskManager.java:3258)
at oracle.tip.pc.services.hw.task.impl.TaskManager.initiateTask(TaskManager.java:262)
at oracle.tip.pc.services.hw.task.impl.TaskManagerProxy.initiateTask(TaskManagerProxy.java:55)
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:324)
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1022)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1910)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem(CubeEngineBean.java:345)
at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.handleWorkItem(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:1429)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle(PerformMessageHandler.java:45)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
<2006-02-08 15:43:53,932> <DEBUG> <default.collaxa.cube.engine> <bpel.p0.BPEL_BIN$$BPELC_BpInv1::perform> error thrown
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{summary=<summary>Operation failed!; nested exception is:
java.lang.NoClassDefFoundError</summary>, detail=<detail>java.lang.NoClassDefFoundError</detail>}}
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:580)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1910)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem(CubeEngineBean.java:345)
at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.handleWorkItem(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:1429)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle(PerformMessageHandler.java:45)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
<2006-02-08 15:43:53,934> <DEBUG> <default.collaxa.cube.engine> <SensorManager::doCallback> queried map w/key initiateTask
<2006-02-08 15:43:53,934> <DEBUG> <default.collaxa.cube.engine> <SensorManager::doCallback> queried map w/key {http://schemas.oracle.com/bpel/extension}bindingFault
<2006-02-08 15:43:53,935> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::performActivity> Is performer 601-BpInv1-BpSeq4.14-2 idempotent? true
<2006-02-08 15:43:53,935> <DEBUG> <default.collaxa.cube.engine> <CubeEngine::checkBlockConditions> Workitem '601-BpInv1-BpSeq4.14-2' has been marked as completeone way of overcoming the error is to include the below entry in server.xml
<code-source path="D:\product\10.1.3.1\OracleAS_1\bpel/lib/orabpel-thirdparty.jar"/> -
Unable to deploy BPEL with java embedding
Hi ,
I have created a simple BPEL Process with java embedding for over ruling the BPELinstance name in it .But I am unable to deploy as Jdeveloper is showing that jar files should be included in the classpath ,though I had included in the class path. Below are my code and the error which is shown by the Jdeveloper.
<bpelx:exec name="JavaSetTitle" language="java" version="1.4">
<![CDATA[
Element inVarElem = (Element)getVariableData("inputVariable"
, "payload"
, "/client:HelloWorldProcessRequest/client:input");
try
String inputdata = inVarElemOrpsId.getNodeValue();
String title = "HelloWorld " + inputdata;
setTitle(title);
addAuditTrailEntry("New Title is: >" + title + "<");
catch (Exception ex)
ex.printStackTrace();
}]]>
</bpelx:exec>
Error:
Error: Java compilation failed.
Failed to compile file(s) "TestBPEL.bpel".
Exception reported is: TestBPEL.bpel:64: Class bpel.testbpel.Element not found.
Element inVarElem = (Element)getVariableData("inputVariable"
^
TestBPEL.bpel:64: Class bpel.testbpel.Element not found.
Element inVarElem = (Element)getVariableData("inputVariable"
^
TestBPEL.bpel:69: Undefined variable or class name: inVarElemOrpsId
String inputdata = inVarElemOrpsId.getNodeValue();
^
3 errors
Please verify that file TestBPEL.bpel is valid java file or if all required libraries are included in your classpath.
classpath: ..\..\..\classes;..\..\ide\lib\javax-ide.jar;..\..\ide\lib\javatools.jar;..\..\ide\lib\ide.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\jlib\help4.jar;..\..\jlib\inspect4.jar;..\..\lib\xmlparserv2.jar;..\..\jdbc\lib\orai18n.jar;..\lib\jdev-ep.jar;..\..\jdk\lib\tools.jar;..\..\jdk\lib\dt.jar;..\lib\ext\jaxen-1.1-beta-4.jar;..\extensions\oracle.ide.10.1.3.jar;..\..\jlib\ojmisc.jar;..\extensions\oracle.jdeveloper.10.1.3.jar;..\lib\jdev.jar;..\lib\ojc.jar;..\..\jlib\regexp.jar;..\..\ant\lib\ant.jar;..\..\ant\lib\ant-..................Or try removing the client: from your original code
<bpelx:exec name="JavaSetTitle" language="java" version="1.4">
<![CDATA[
Element inVarElem = (Element)getVariableData("inputVariable"
, "payload"
, "/HelloWorldProcessRequest/input");
try
String inputdata = inVarElemOrpsId.getNodeValue();
String title = "HelloWorld " + inputdata;
setTitle(title);
addAuditTrailEntry("New Title is: >" + title + "<");
catch (Exception ex)
ex.printStackTrace();
}]]>
</bpelx:exec>cheers
James
Maybe you are looking for
-
Magic Mouse Disconnecting After every computer close
Every time I close my laptop screen, even without restarting or shutting down the computer, the Magic Mouse is no longer working when I open up the laptop screen again. It wasn't doing this until I replaced the batteries when the batteries that were
-
Ipod not bieng reconized by the comp, but is still charging
my brother has a nano which has suddenly been unable to be recognized by the computer, i tried it out on another computer, which it works on. any advice would be appreciated. thnks!
-
Is it possible to take songs off of your ipod and put it them on itunes
by accident i permanately deleted all my songs off my computer and cant get them back ,,,trust me i tried everything. im wondering is possible to take songs from your ipod and put them on your itunees library?
-
What is the difference between "refurbished" and "reconditioned?"
I have seen "refurbished" laptops available on the Apple site and "reconditioned" laptops available on Woot. What, if anything, is the difference? Thanks!
-
Iphone 5 not showing up in iPhoto source list
When I plug in my phone to download photos to iphoto iphone doesn't show up as device in iphoto source list-it does appear in itunes