I have updated OdeBpelEngine to the last release (512225) and now I can successfully deploy a Service Assembly in OpenESB with OdeBpelEngine as Bpel Service Engine instead com.sun.bpelse.
As you noticed, Netbeans doesn't generate a deploy.xml descriptor, so I included it manually into SynchronousSample.jar Service Unit. OpenESB requires a jbi.xml descriptor too, so in the Service Unit exists both descriptors.... However when I send a soap message to the endpoint, I get a fault message like this: [EMAIL PROTECTED]:/opt/ode/examples$ sendsoap.sh http://localhost:18181/SynchronousSample test.soap <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Unable to located activated endpoint for service connection {http://localhost/SynchronousSample/SynchronousSample}service1 port1.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> DEPLOY.XML: <deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd" xmlns:pns="urn:/SynchronousSample.bpel" xmlns:sns="urn:/SynchronousSample.wsdl" > <process name="pns:SynchronousSample"> <active>true</active> <provide partnerLink="SynchronousSample"> <service name="sns:service1" port="port1"/> </provide> </process> </deploy> SYNCHRONOUSSAMPLE.WSDL: <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SynchronousSample" targetNamespace="http://localhost/SynchronousSample/SynchronousSample" xmlns:tns="http://localhost/SynchronousSample/SynchronousSample" xmlns:ns="http://xml.netbeans.org/schema/SynchronousSample" xmlns:plink="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"> <types> <xsd:schema targetNamespace="http://localhost/SynchronousSample/SynchronousSample"> <xsd:import namespace="http://xml.netbeans.org/schema/SynchronousSample" schemaLocation="SynchronousSample.xsd"/> </xsd:schema> </types> <message name="requestMessage"> <part name="inputType" element="ns:typeA"/> </message> <message name="responseMessage"> <part name="resultType" element="ns:typeA"/> </message> <portType name="portType1"> <operation name="operation1"> <input name="input1" message="tns:requestMessage"/> <output name="output1" message="tns:responseMessage"/> </operation> </portType> <binding name="binding1" type="tns:portType1"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="operation1"> <input name="input1"> <soap:body use="literal"/> </input><output name="output1"> <soap:body use="literal"/> </output> </operation> </binding> <service name="service1"> <port name="port1" binding="tns:binding1"> <documentation/> <soap:address location="http://localhost:18181/SynchronousSample"/> </port> </service> <plink:partnerLinkType name="partnerlinktype1"> <plink:role name="partnerlinktyperole1" portType="tns:portType1"/> </plink:partnerLinkType> </definitions> SYNCHRONOUSSAMPLE.BPEL: <?xml version="1.0" encoding="UTF-8"?> <process name="SynchronousSample" targetNamespace="http://enterprise.netbeans.org/bpel/SynchronousSample/SynchronousSample_1" xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:wsdlNS="http://enterprise.netbeans.org/bpel/SynchronousSample/SynchronousSample_1" xmlns:ns1="http://localhost/SynchronousSample/SynchronousSample"> <import location="SynchronousSample.xsd" importType="http://www.w3.org/2001/XMLSchema" namespace="http://xml.netbeans.org/schema/SynchronousSample"/> <import namespace="http://localhost/SynchronousSample/SynchronousSample" location="SynchronousSample.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="SynchronousSample" partnerLinkType="ns1:partnerlinktype1" myRole="partnerlinktyperole1"/> </partnerLinks> <variables> <variable name="outputVar" messageType="ns1:responseMessage"/> <variable name="inputVar" messageType="ns1:requestMessage"/> </variables> <sequence> <receive name="start" partnerLink="SynchronousSample" operation="operation1" portType="ns1:portType1" variable="inputVar" createInstance="yes"/> <assign name="Assign1"> <copy> <from>$inputVar.inputType/paramA</from><to>$outputVar.resultType/paramA</to> </copy> </assign> <reply name="end" partnerLink="SynchronousSample" operation="operation1" portType="ns1:portType1" variable="outputVar"/> </sequence> </process> Alex Boisvert wrote: > > Another important thing I should mention... Ode currently requires a > custom > deployment descriptor (deploy.xml) to bind process endpoints. NetBeans > does not generate this file so I believe you'll have to create it yourself > and add it to your service units. > > There an example here: > > http://svn.apache.org/repos/asf/incubator/ode/trunk/distro-jbi/src/examples/HelloWorld2/HelloWorld2-process/ > > I think we should make it so that Ode does not require this file in a JBI > environment, relying instead on JBI wiring or interface-based routing. > Guillaume has done some work recently in this area but I'm not sure where > we > stand. > > cheers, > alex > > > > On 2/22/07, Alex Boisvert <[EMAIL PROTECTED]> wrote: >> >> Hi Manu, >> >> The root error is most likely in the server-side log file. Can you set >> your logging configuration at DEBUG for "org.apache.ode" and see if you >> get better diagnosis information? >> >> Also, I've just committed a fix for the surface error you encountered. >> Ode was returning a status code "FAILURE" instead of "FAILED", as defined >> by >> the JBI spec. >> >> I'm happy to hear you got this far with Sun's OpenESB! We try to make >> Ode JBI standard-compliant so this is great news. >> >> cheers, >> alex >> >> >> >> On 2/22/07, Manu Lopez <[EMAIL PROTECTED]> wrote: >> > >> > Hello, I'm trying to use ApacheODE as Service Engine in OpenESB instead >> > com.sun.bpelse. >> > >> > Using Netbeans 5.5 EntPack, I have been able to successfully install >> and >> > start OdeBpelEngine component. >> > Next step is to use this component as service unit in a JBI Service >> > Assembly. I create a new Compossite Application >> > (SynchronousSampleApplication). In the Bpel Module, I specify in >> > "Proyect SE Type (prefix)" field "OdeBpelEngine" instead >> "com.sun.bpelse". >> > >> > >> > Now in SynchronousSampleApplication properties, in Packaging Project I >> > choose OdeBpelEngine in Deployment Target Component list. >> > Finally I try to deploy SynchronousSampleApplication in OpenESB, but >> the >> > deployment fails: >> > >> > Failed execution of Deploy >> > ERROR: (JBIMA1001) An internal error in the system prevented the >> Service >> > Assembly SynchronousSampleApplication from being deployed Please see >> the >> > server log file for more details. >> > ERROR: (JBIMA0000) cvc-enumeration-valid: Value 'FAILURE' is not >> > facet-valid with respect to enumeration '[SUCCESS, FAILED]'. It must be >> > a value from the enumeration. >> > ERROR: (JBIMA1007) The Service Assembly SynchronousSampleApplication >> > could not be deployed. >> > >> > >> /home/mlopez/workspace/SynchronousSample/SynchronousSampleApplication/nbproject/build- >> > impl.xml:214: >> > Service assembly deployment failed. >> > BUILD FAILED (total time: 3 seconds) >> > >> > >> > The server (SJSAS 9.1) log shows next errors: >> > >> > Retrieving document at >> > >> > >> '/home/intecna/OpenESB/domains/domain1/jbi/system/deployment/SynchronousSampleApplication/com.sun.httpsoapbc- >> > >> 1.0-2_SynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/SynchronousSample.wsdl'. >> > Retrieving schema at 'SynchronousSample.xsd', relative to >> > >> > >> 'file:/home/intecna/OpenESB/domains/domain1/jbi/system/deployment/SynchronousSampleApplication/com.sun.httpsoapbc- >> > >> 1.0-2_SynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/SynchronousSample.wsdl'. >> > XmlReader: Error: org.xml.sax.SAXParseException: cvc-enumeration-valid: >> > Value 'FAILURE' is not facet-valid with respect to enumeration >> > '[SUCCESS, FAILED]'. It must be a value from the enumeration. >> > org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'FAILURE' >> is >> > not facet-valid with respect to enumeration '[SUCCESS, FAILED]'. It >> must >> > be a value from the enumeration. >> > at >> > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException >> > (Unknown >> > Source) >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown >> > Source) >> > at org.apache.xerces.impl.XMLErrorReporter.reportError (Unknown >> > Source) >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError >> > (Unknown >> > Source) >> > at >> > org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType >> > (Unknown >> > Source) >> > at >> > >> org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) >> > at >> > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch >> > (Unknown >> > Source) >> > at >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument >> > (Unknown >> > Source) >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >> > Source) >> > at org.apache.xerces.parsers.XML11Configuration.parse (Unknown >> > Source) >> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >> > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse (Unknown >> > Source) >> > at >> > >> > >> com.sun.jbi.management.internal.support.XmlReader.validateManagementMessage >> > (XmlReader.java:375) >> > at >> > com.sun.jbi.management.system.DeploymentService.buildResponse( >> > DeploymentService.java :957) >> > at >> > com.sun.jbi.management.system.DeploymentService.deploy( >> > DeploymentService.java:404) >> > at >> > >> com.sun.jbi.management.system.EsbDeploymentAdapter.deployServiceAssembly >> > (EsbDeploymentAdapter.java :98) >> > 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.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( >> > StandardMetaDataImpl.java:414) >> > at >> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke (MetaDataImpl.java:220) >> > at >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke( >> > DefaultMBeanServerInterceptor.java:815) >> > at >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java :784) >> > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) >> > at >> > sun.reflect.DelegatingMethodAccessorImpl.invoke( >> > DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke (Method.java:585) >> > at >> > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java >> > :77) >> > at $Proxy1.invoke(Unknown Source) >> > at >> > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke ( >> > SunoneInterceptor.java:297) >> > at >> > javax.management.MBeanServerInvocationHandler.invoke( >> > MBeanServerInvocationHandler.java:201) >> > at $Proxy19.deployServiceAssembly(Unknown Source) >> > at >> > >> > >> com.sun.jbi.management.system.EsbDeployment.deployServiceAssemblyToInstance( >> > EsbDeployment.java:1298) >> > at >> > >> > >> com.sun.jbi.management.system.EsbDeployment.deployServiceAssemblyToTargetInstances >> > (EsbDeployment.java:1427) >> > at >> > com.sun.jbi.management.system.EsbDeployment.deployServiceAssembly ( >> > EsbDeployment.java:511) >> > 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.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( >> > StandardMetaDataImpl.java:414) >> > at >> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke (MetaDataImpl.java:220) >> > at >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke( >> > DefaultMBeanServerInterceptor.java:815) >> > at >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java :784) >> > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) >> > at >> > sun.reflect.DelegatingMethodAccessorImpl.invoke( >> > DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke (Method.java:585) >> > at >> > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java >> > :77) >> > at $Proxy1.invoke(Unknown Source) >> > at >> > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke ( >> > SunoneInterceptor.java:297) >> > at >> > >> > >> com.sun.jbi.esb.ui.admin.runtime.mbeans.AbstractUIMBeanESBImpl.invokeMBeanOperation >> > (AbstractUIMBeanESBImpl.java:182) >> > at >> > >> > >> com.sun.jbi.esb.ui.admin.runtime.mbeans.AbstractUIMBeanESBImpl.invokeMBeanOperation( >> > AbstractUIMBeanESBImpl.java:232) >> > at >> > >> > >> com.sun.jbi.esb.ui.admin.runtime.mbeans.JBIAdminCommandsUIMBeanCASImpl.deployServiceAssembly >> > (JBIAdminCommandsUIMBeanCASImpl.java:538) >> > 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.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke( >> > StandardMetaDataImpl.java:414) >> > at >> javax.management.StandardMBean.invoke(StandardMBean.java:323) >> > >> > at >> > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke( >> > DynamicMetaDataImpl.java:213) >> > at >> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) >> > at >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke ( >> > DefaultMBeanServerInterceptor.java:815) >> > at >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) >> > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) >> > at >> > sun.reflect.DelegatingMethodAccessorImpl.invoke( >> > DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:585) >> > at >> > >> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77) >> > at $Proxy1.invoke(Unknown Source) >> > at >> > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke( >> > SunoneInterceptor.java:297) >> > at >> > com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call ( >> > InvokeCaller.java:56) >> > at >> > >> > >> com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle >> > (MBeanServerRequestHandler.java:142) >> > at >> > >> > >> com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest( >> > RemoteJmxConnectorServlet.java:109) >> > at >> > >> > >> com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost >> > (RemoteJmxConnectorServlet.java:180) >> > at javax.servlet.http.HttpServlet.service >> (HttpServlet.java:727) >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> > at >> > org.apache.catalina.core.ApplicationFilterChain.servletService( >> > ApplicationFilterChain.java:397) >> > at >> > org.apache.catalina.core.StandardWrapperValve.invoke( >> > StandardWrapperValve.java:278) >> > at >> > >> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java >> > :566) >> > at >> > org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java >> > :536) >> > at >> > org.apache.catalina.core.StandardContextValve.invokeInternal( >> > StandardContextValve.java:240) >> > at >> > org.apache.catalina.core.StandardContextValve.invoke( >> > StandardContextValve.java :179) >> > at >> > >> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java >> > :566) >> > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java >> > :73) >> > at >> > org.apache.catalina.core.StandardHostValve.invoke ( >> > StandardHostValve.java:182) >> > at >> > >> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java >> > :566) >> > at >> > com.sun.enterprise.web.VirtualServerPipeline.invoke( >> > VirtualServerPipeline.java:120) >> > at >> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) >> > at >> > org.apache.catalina.core.StandardEngineValve.invoke( >> > StandardEngineValve.java:137) >> > at >> > org.apache.catalina.core.StandardPipeline.doInvoke ( >> > StandardPipeline.java:566) >> > at >> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java >> > :536) >> > at >> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) >> > at >> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) >> > at >> > com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdap >> > ter(ProcessorTask.java:667) >> > at >> > >> com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked( >> > ProcessorTask.java:574) >> > at >> > com.sun.enterprise.web.connector.grizzly.ProcessorTask.process( >> > ProcessorTask.java:844) >> > at >> > com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask( >> > ReadTask.java :287) >> > at >> > com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java >> > :212) >> > at >> > >> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) >> > at >> > com.sun.enterprise.web.connector.grizzly.WorkerThread.run ( >> > WorkerThread.java:75) >> > Note: An invalid jbi.xml file found. >> > .............................. >> > .............................. >> > and more.......... >> > >> > >> > >> > >> > Is possible to achieve what I'm trying? Is ApacheODE compatible with >> > other JBI containers besides Servicemix ? Don't should be all JBI >> > components standard? >> > >> > Thanks >> > (sorry for my english) >> > >> > >> > >> > > -- View this message in context: http://www.nabble.com/ApacheODE-as-Service-Engine-in-OpenESB-tf3273448.html#a9180793 Sent from the Apache Ode User mailing list archive at Nabble.com.