Hello,

this is mostly because of missing some dependencies in jbi-karaf.
You can add them as needed.
In your stacktrace exmaple, please add
axiom-api-1.2.7.jar
axiom-dom-1.2.7.jar
axiom-impl-1.2.7.jar

to jbi-karaf/src/main/resources/features.xml
to ode-core-deps.

Following is full list of dependencies to use:

ant-1.6.5.jar
axiom-api-1.2.7.jar
axiom-dom-1.2.7.jar
axiom-impl-1.2.7.jar
axion-1.0-M3-dev.jar
backport-util-concurrent-3.1.jar
commons-beanutils-1.8.2.jar
commons-codec-1.3.jar
commons-collections-3.2.1.jar
commons-dbcp-1.2.1.jar
commons-lang-2.4.jar
commons-pool-1.4.jar
commons-primitives-1.0.jar
derby-10.5.3.0_1.jar
geronimo-connector-2.0.1.jar
geronimo-ejb_2.1_spec-1.1.jar
geronimo-j2ee-connector_1.5_spec-1.0.jar
geronimo-jpa_3.0_spec-1.0.jar
geronimo-jta_1.1_spec-1.1.jar
geronimo-spec-jms-1.1-rc4.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
geronimo-transaction-2.0.1.jar
howl-1.0.1-1.jar
jaxen-1.1.1.jar
log4j-1.2.13.jar
ode-agents-1.3.5-SNAPSHOT.jar
ode-bpel-api-1.3.5-SNAPSHOT.jar
ode-bpel-api-jca-1.3.5-SNAPSHOT.jar
ode-bpel-compiler-1.3.5-SNAPSHOT.jar
ode-bpel-connector-1.3.5-SNAPSHOT.jar
ode-bpel-dao-1.3.5-SNAPSHOT.jar
ode-bpel-epr-1.3.5-SNAPSHOT.jar
ode-bpel-obj-1.3.5-SNAPSHOT.jar
ode-bpel-ql-1.3.5-SNAPSHOT.jar
ode-bpel-runtime-1.3.5-SNAPSHOT.jar
ode-bpel-schemas-1.3.5-SNAPSHOT.jar
ode-bpel-store-1.3.5-SNAPSHOT.jar
ode-dao-hibernate-1.3.5-SNAPSHOT.jar
ode-dao-jpa-1.3.5-SNAPSHOT.jar
ode-jacob-1.3.5-SNAPSHOT.jar
ode-jacob-ap-1.3.5-SNAPSHOT.jar
ode-jbi-1.3.5-SNAPSHOT.jar
ode-jca-ra-1.3.5-SNAPSHOT.jar
ode-jca-server-1.3.5-SNAPSHOT.jar
ode-scheduler-simple-1.3.5-SNAPSHOT.jar
ode-utils-1.3.5-SNAPSHOT.jar
openjpa-1.2.1.jar
persistence-api-1.0.jar
saxon-9.1.0.8.jar
saxon-dom-9.1.0.8.jar
saxon-xpath-9.1.0.8.jar
saxon-xqj-9.1.0.8.jar
serializer-2.7.1.jar
serp-1.13.1.jar
tranql-connector-1.1.jar
wsdl4j-1.6.2.jar
xalan-2.7.1.jar
xercesImpl-2.9.0.jar
xml-apis-1.3.04.jar
xmlbeans-2.3.0.jar
xstream-1.2.jar

2010/5/19 Agustín Gañán <[email protected]>:
> Hi again,
>
> I'm still facing this problem but now I've a little more information.
>
> 1.- The two "differents" classNotFound errors posted before are not
> different at all. The second missing class (SafeXMLStreamReader [1])
> extends the first (StreamReaderDelegate[2]) so I think that the first
> try is load the "father" and the following looks for the "son" (maybe
> this is not correct but I'm not an expert in classloading issues)
>
> 2.- Debuggins SMX I can see that the response to the listAllProcess
> invocation is succesfully retrieved and the error cames in the calling
> to the convertToOM. Exactly in the calling to newInputStream method
> (c&p from the source code):
>
> org.apache.ode.il.DynamicService (line 159)
> ================================
> return new
StAXOMBuilder(((XmlObject)obj).newInputStream()).getDocumentElement();
>
> 3.- I don't know if this has any relevance but I've noticed that ODE
> uses the xmlbeans 2.3.0 version but in SMX 4.2 the version is 2.4.0
> (exactly 2.4.0_3).
>
> Does anyone has an idea about it?
>
> [1]
http://ws.apache.org/commons/axiom/apidocs/org/apache/axiom/om/impl/builder/SafeXMLStreamReader.html
> [2]
http://java.sun.com/javase/6/docs/api/javax/xml/stream/util/StreamReaderDelegate.html
>
>
> El día 18 de mayo de 2010 15:54, Agustín Gañán <[email protected]>
escribió:
>> Hi Daniel,
>>
>> Thank you very much for your point, but my need is to publish the ODE
>> Management API as web services.
>>
>> Regards
>>
>> Agus
>>
>> 2010/5/18 Daniel Dominguez <[email protected]>:
>>> Hi Augustin,
>>>
>>> I contributed a set of Karaf commands for this, the initial contribution
is
>>> committed to the jbi-karaf-commands module. (See ODE-706).  There was an
>>> additional contriubtion (ODE-739) which apparently has not been
committed
>>> yet.  These commands were shipped with the FUSE 4.2 release.
>>>
>>> Regards,
>>> Daniel
>>>
>>> On 05/18/2010 05:01 AM, Agustín Gañán wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm trying a different approach ant now I'm having a different error
>>>> (at least is not the same before, :-D)
>>>>
>>>> I've built a bundle wich expose cxf-bc endpoints (sprint app context
>>>> at [1]) to access de ProcessManagement and InstanceManagement
>>>> implementation.
>>>> The WS are published but when I invoke the listAllProcess operation I
>>>> get (full stacktrace at [2]):
>>>>
>>>> 13:45:05,682 | ERROR | pool-7-thread-6  |
>>>> DynamicMessageExchangeProcessor  | jbi.BaseMessageExchangeProcessor
>>>> 91 | Unexpected error invoking ODE.
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/axiom/om/impl/builder/SafeXMLStreamReader
>>>>
>>>> The ode-jbi bundle is importing this package so I'm a little lost at
this
>>>> point.
>>>>
>>>> Any help will be aprreciated...
>>>>
>>>> Regards,
>>>>
>>>> Agus
>>>>
>>>> [1]
>>>> Spring app context
>>>> ==================================
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <beans xmlns="http://www.springframework.org/schema/beans";
>>>>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>                xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
>>>>                xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0";
>>>>                xmlns:odepmapi="http://www.apache.org/ode/pmapi";
>>>>
>>>>  xsi:schemaLocation="http://www.springframework.org/schema/beans
>>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>>>>
>>>>  http://servicemix.apache.org/cxfse/1.0
>>>> http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd
>>>>
>>>>  http://servicemix.apache.org/cxfbc/1.0
>>>> http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd";>
>>>>
>>>>        <!-- Consumer para los WS del API de gestión de ODE     -->
>>>>
>>>>        <cxfbc:consumer wsdl="classpath:pmapi.wsdl"
>>>>
>>>>  endpoint="ProcessManagementBCEndpoint"
>>>>
>>>>  targetService="odepmapi:ProcessManagementService"
>>>>
>>>>  useJBIWrapper="false"
>>>>
>>>>  useSOAPEnvelope="false"
>>>>
>>>>  targetEndpoint="ProcessManagementPort"/>
>>>>        <cxfbc:consumer wsdl="classpath:pmapi.wsdl"
>>>>
>>>>  endpoint="InstanceManagementPortBCEnpoint"
>>>>
>>>>  targetService="odepmapi:InstanceManagementService"
>>>>
>>>>  useJBIWrapper="false"
>>>>
>>>>  useSOAPEnvelope="false"
>>>>
>>>>  targetEndpoint="InstanceManagementPort"/>
>>>>
>>>>     <!-- use this special class to register the endpoints with the NMR
-->
>>>>     <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
>>>>
>>>> </beans>
>>>>
>>>> [2]
>>>> 13:45:05,671 | DEBUG | pool-7-thread-6  | DynamicService
>>>>     | org.apache.ode.il.DynamicService   65 | Invoke: operation
>>>> listAllProcesses on class
>>>> org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl:
>>>> <pmap:listAllProcesses xmlns:pmap="http://www.apache.org/ode/pmapi"/>
>>>> 13:45:05,671 | DEBUG | pool-7-thread-6  | SimpleScheduler
>>>>     | scheduler.simple.SimpleScheduler  275 | Beginning a new
>>>> transaction
>>>> 13:45:05,673 | DEBUG | pool-7-thread-6  | BpelManagementFacadeImpl
>>>>     | ProcessAndInstanceManagementImpl  823 | Filling process info for
>>>> {http://es.myapp/}BaseProcess-0
>>>> 13:45:05,674 | DEBUG | pool-7-thread-6  | BpelManagementFacadeImpl
>>>>     | ProcessAndInstanceManagementImpl  840 |  package name:
>>>> myapp-bpel-su
>>>> 13:45:05,680 | DEBUG | pool-7-thread-6  | SimpleScheduler
>>>>     | scheduler.simple.SimpleScheduler  289 | Commiting on
>>>>
>>>>
org.apache.servicemix.transaction.geronimoplatformtransactionmana...@db8335.
..
>>>> 13:45:05,680 | DEBUG | pool-7-thread-6  | MTOMXMLStreamWriter
>>>>     | xiom.om.impl.MTOMXMLStreamWriter  166 | Calling
>>>> MTOMXMLStreamWriter.flush
>>>> 13:45:05,681 | DEBUG | pool-7-thread-6  | DynamicService
>>>>     | org.apache.ode.il.DynamicService   75 | Invoke: operation
>>>> listAllProcesses on class
>>>> org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl:
>>>> <pmap:listAllProcesses xmlns:pmap="http://www.apache.org/ode/pmapi"/>
>>>>
OM:org.apache.axiom.om.impl.llom.factory.omlinkedlistimplfact...@1a4ccdc
>>>> namespace:org.apache.axiom.om.impl.omnamespacei...@aace25b0
>>>> 13:45:05,682 | ERROR | pool-7-thread-6  |
>>>> DynamicMessageExchangeProcessor  | jbi.BaseMessageExchangeProcessor
>>>> 91 | Unexpected error invoking ODE.
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/axiom/om/impl/builder/SafeXMLStreamReader
>>>>        at
>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.initParser(StAXBuilder.java:151)
>>>>        at
>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:128)
>>>>        at
>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:160)
>>>>        at
>>>>
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:130)
>>>>        at
>>>>
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:146)
>>>>        at
>>>> org.apache.ode.il.DynamicService.convertToOM(DynamicService.java:159)
>>>>        at
org.apache.ode.il.DynamicService.invoke(DynamicService.java:78)
>>>>        at
>>>>
org.apache.ode.jbi.DynamicMessageExchangeProcessor.invoke(DynamicMessageExchangeProcessor.java:61)
>>>>        at
>>>>
org.apache.ode.jbi.BaseMessageExchangeProcessor.onJbiMessageExchange(BaseMessageExchangeProcessor.java:83)
>>>>        at
>>>>
org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange(JbiMessageExchangeEventRouter.java:50)
>>>>        at org.apache.ode.jbi.Receiver$1.run(Receiver.java:179)
>>>>        at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>        at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>        at
>>>>
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>        at
>>>>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>
>>>>
>>>> El día 18 de mayo de 2010 12:14, Agustín Gañán<[email protected]>
>>>>  escribió:
>>>>
>>>>>
>>>>> Hi again,
>>>>>
>>>>> I've built the branch succesfully (test skippping for a faster build)
>>>>> and deploy it correctly in SMX 4.2 via features:
>>>>>
>>>>> ka...@root>features:addUrl
>>>>> mvn:org.apache.ode/ode-jbi-karaf/1.3.4rc1/xml/features
>>>>> ka...@root>features:install ode
>>>>>
>>>>> When I deploy de pmapi SA in the [SMX_HOME]/deploy the SA start
>>>>> correctly and I can see the ProcessManagement and InstanceManagement
>>>>> WSDL, but when I call the listAllProcesses operations (via SOAPUi), I
>>>>> got a ClassNotFound error (full stack trace in [1]:
>>>>>
>>>>> java.lang.ClassNotFoundException:
>>>>> javax.xml.stream.util.StreamReaderDelegate
>>>>>
>>>>> This package is exported by the Apache ServiceMix Specs :: STAX API
>>>>> 1.0 but the SA is not a bundle so this doesn't solve the problem.
>>>>>
>>>>> Any idea?
>>>>>
>>>>> [1]     ... 25 more
>>>>> 11:57:52,641 | WARN  | 5...@qtp-31909534-0 | jetty
>>>>>    | service.jetty.internal.JCLLogger  115 |
>>>>> /ode/processes/ProcessManagement/
>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>> javax/xml/stream/util/StreamReaderDelegate
>>>>>        at
>>>>>
org.apache.ode.jbi.BaseMessageExchangeProcessor.onJbiMessageExchange(BaseMessageExchangeProcessor.java:92)
>>>>>        at
>>>>>
org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange(JbiMessageExchangeEventRouter.java:50)
>>>>>        at org.apache.ode.jbi.Receiver$1.run(Receiver.java:179)
>>>>>        at
>>>>>
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>        at
>>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>>        at
>>>>>
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>        at
>>>>>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>> javax/xml/stream/util/StreamReaderDelegate
>>>>>        at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>>>>>        at
>>>>>
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1872)
>>>>>        at
>>>>>
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
>>>>>        at
>>>>> org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
>>>>>        at
>>>>>
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
>>>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>>>        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
>>>>>        at
>>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.initParser(StAXBuilder.java:151)
>>>>>        at
>>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:128)
>>>>>        at
>>>>>
org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:160)
>>>>>        at
>>>>>
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:130)
>>>>>        at
>>>>>
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:146)
>>>>>        at
>>>>> org.apache.ode.il.DynamicService.convertToOM(DynamicService.java:159)
>>>>>        at
org.apache.ode.il.DynamicService.invoke(DynamicService.java:78)
>>>>>        at
>>>>>
org.apache.ode.jbi.DynamicMessageExchangeProcessor.invoke(DynamicMessageExchangeProcessor.java:61)
>>>>>        at
>>>>>
org.apache.ode.jbi.BaseMessageExchangeProcessor.onJbiMessageExchange(BaseMessageExchangeProcessor.java:83)
>>>>>        ... 8 more
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> javax.xml.stream.util.StreamReaderDelegate
>>>>>        at
>>>>>
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
>>>>>        at
>>>>> org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
>>>>>        at
>>>>>
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
>>>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>>>        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
>>>>>        ... 25 more
>>>>>
>>>>> El día 18 de mayo de 2010 10:44, Agustín Gañán<[email protected]>
>>>>>  escribió:
>>>>>
>>>>>>
>>>>>> Ok, I'll checkout the branch, built it (maven2 and Java 6) and post
my
>>>>>> results
>>>>>>
>>>>>> 2010/5/18 Rafal Rusin<[email protected]>:
>>>>>>
>>>>>>>
>>>>>>> You can try 1.3.4rc1 OSGi from here
>>>>>>> http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.3.4.X/
>>>>>>> and give your results. We're planning a release soon, so feedback is
>>>>>>> appreciated.
>>>>>>>
>>>>>>> 2010/5/18 Agustín Gañán<[email protected]>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Thanks!!
>>>>>>>>
>>>>>>>> I' try it now!
>>>>>>>>
>>>>>>>> 2010/5/18 Rafal Rusin<[email protected]>:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> you can try pmapi SA from here:
>>>>>>>>>
>>>>>>>>
>>>>>>>> http://markmail.org/message/ghigpzcpt2j3qnoo
>>>>>>>>
>>>>>>>>>
>>>>>>>>> It's not SMX4 way, but you can put it in deploy and it should
work.
>>>>>>>>>
>>>>>>>>> 2010/5/18 Agustín Gañán<[email protected]>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> I've deployed de ode-jbi-karaf bundle in SMX 4.2 succesfully but
now
>>>>>>>>>> I
>>>>>>>>>> would like to do some admin operatios (view deployed process,
>>>>>>>>>> process
>>>>>>>>>> info, ..)
>>>>>>>>>>
>>>>>>>>>> In this environment, what is the best way to get acces to de ODE
>>>>>>>>>>
>>>>>>>>
>>>>>>>> Management
>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> API?
>>>>>>>>>>
>>>>>>>>>> Maybe configure cxf-bc endpoints to this interfaces?
>>>>>>>>>>
>>>>>>>>>> I can see de endpoints deployed and I think that will be easy to
>>>>>>>>>> publis WS to acces this endpoints but I'm not sure if this is the
>>>>>>>>>> "best way".
>>>>>>>>>>
>>>>>>>>>> Thank you all,
>>>>>>>>>>
>>>>>>>>>> Agus
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Regards,
>>>>>>>>> Rafał Rusin
>>>>>>>>> http://rrusin.blogspot.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Rafał Rusin
>>>>>>> http://rrusin.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>

-- 
Regards,
Rafał Rusin
http://rrusin.blogspot.com

Reply via email to