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