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)
>
>
>

Reply via email to