Hi Freeman,
-------------
SE beans.xml:
-------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://servicemix.apache.org/cxfse/1.0
http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd">
<cxfse:endpoint>
<cxfse:pojo>
<bean class="com.crs.sag.service.GeographicReferenceTypeImpl">
<property name="bussinesService"
ref="osgibattaBusiness"></property>
</bean>
</cxfse:pojo>
</cxfse:endpoint>
<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
<osgi:reference id="osgibattaBusiness" cardinality="1..1"
interface="com.crs.uy.business.IBattaBusiness" />
</beans>
-------------
BC beans.xml:
-------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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:validateLocation="http://com/crs/sag/service"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://servicemix.apache.org/cxfbc/1.0
http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd">
<cxfbc:consumer wsdl="classpath:/ValidateLocation/ValidateLocation.wsdl"
targetService="validateLocation:GeographicReferenceTypeImplService"
targetInterface="validateLocation:GeographicReferenceType"/>
<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
</beans>
I couldn't understand yet why sometimes the service is up and running and
some other times is not but all the bundles are started and active....
Thanks for the help!
Santiago.
Freeman Fang wrote:
>
> Hi,
> What's your beans.xml looks like?
>
> Freeman
> On 2010-3-30, at 上午4:03, smontico wrote:
>
>>
>> Hi,
>>
>> I tried to redeploy my example in a new servicemix installation and it
>> doesn't work...
>>
>> The only error that appears in the log is:
>>
>> 16:59:06,931 | WARN | xtenderThread-77 |
>> CustomListenerAdapterUtils |
>> apter.CustomListenerAdapterUtils 161 | Custom method [public void
>> org
>> .apache
>> .servicemix
>> .common
>> .osgi
>> .EndpointTracker
>> .register
>> (org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map)
>> throws java.lang.Exception] threw exception when passing service type
>> [$Proxy98]
>> javax.jbi.management.DeploymentException:
>> org.apache.cxf.BusException: No
>> DestinationFactory was found for the namespace
>> http://schemas.xmlsoap.org/soap/http.
>> at
>> org
>> .apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:
>> 504)
>> at
>> org.apache.servicemix.common.osgi.EndpointTracker
>> $OsgiServiceUnit.<init>(EndpointTracker.java:77)
>> at
>> org
>> .apache
>> .servicemix
>> .common.osgi.EndpointTracker.register(EndpointTracker.java:58)
>> 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:597)
>> at
>> org
>> .springframework
>> .osgi
>> .util.internal.ReflectionUtils.invokeMethod(ReflectionUtils.java:108)
>> at
>> org
>> .springframework
>> .osgi
>> .config
>> .internal
>> .adapter
>> .CustomListenerAdapterUtils
>> .invokeCustomMethods(CustomListenerAdapterUtils.java:155)
>> at
>> org
>> .springframework
>> .osgi
>> .config
>> .internal
>> .adapter
>> .OsgiServiceLifecycleListenerAdapter
>> .bind(OsgiServiceLifecycleListenerAdapter.java:201)
>> at
>> org
>> .springframework
>> .osgi
>> .service
>> .importer
>> .support
>> .internal
>> .util
>> .OsgiServiceBindingUtils
>> .callListenersBind(OsgiServiceBindingUtils.java:50)
>> at
>> org
>> .springframework
>> .osgi
>> .service.importer.support.internal.collection.OsgiServiceCollection
>> $Listener.serviceChanged(OsgiServiceCollection.java:107)
>> at
>> org
>> .apache
>> .felix
>> .framework
>> .util
>> .EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:
>> 846)
>> at
>> org
>> .apache
>> .felix
>> .framework
>> .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:704)
>> at
>> org
>> .apache
>> .felix
>> .framework
>> .util.EventDispatcher.fireServiceEvent(EventDispatcher.java:635)
>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3393)
>> at org.apache.felix.framework.Felix.access$000(Felix.java:39)
>> at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:622)
>> at
>> org
>> .apache
>> .felix
>> .framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:
>> 576)
>> at
>> org
>> .apache
>> .felix
>> .framework.ServiceRegistry.registerService(ServiceRegistry.java:86)
>> at org.apache.felix.framework.Felix.registerService(Felix.java:2527)
>> at
>> org
>> .apache
>> .felix
>> .framework.BundleContextImpl.registerService(BundleContextImpl.java:
>> 252)
>> at
>> org
>> .apache
>> .felix
>> .framework.BundleContextImpl.registerService(BundleContextImpl.java:
>> 230)
>> at
>> org
>> .apache
>> .servicemix
>> .common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)
>> at
>> org
>> .apache
>> .servicemix
>> .common
>> .osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:174)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>> at
>> org
>> .springframework
>> .beans.factory.support.AbstractAutowireCapableBeanFactory
>> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory
>> $1.getObject(AbstractBeanFactory.java:264)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .DefaultSingletonBeanRegistry
>> .getSingleton(DefaultSingletonBeanRegistry.java:222)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .DefaultListableBeanFactory
>> .preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>> at
>> org
>> .springframework
>> .context
>> .support
>> .AbstractApplicationContext
>> .finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
>> at
>> org
>> .springframework
>> .osgi
>> .context.support.AbstractDelegatedExecutionApplicationContext.access
>> $1600(AbstractDelegatedExecutionApplicationContext.java:69)
>> at
>> org
>> .springframework
>> .osgi.context.support.AbstractDelegatedExecutionApplicationContext
>> $4.run(AbstractDelegatedExecutionApplicationContext.java:355)
>> at
>> org
>> .springframework
>> .osgi
>> .util
>> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:
>> 85)
>> at
>> org
>> .springframework
>> .osgi
>> .context
>> .support
>> .AbstractDelegatedExecutionApplicationContext
>> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java:
>> 320)
>> at
>> org
>> .springframework
>> .osgi
>> .extender
>> .internal
>> .dependencies.startup.DependencyWaiterApplicationContextExecutor
>> $
>> CompleteRefreshTask
>> .run(DependencyWaiterApplicationContextExecutor.java:132)
>> at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.cxf.BusException: No DestinationFactory was
>> found for
>> the namespace http://schemas.xmlsoap.org/soap/http.
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .DestinationFactoryManagerImpl
>> .getDestinationFactory(DestinationFactoryManagerImpl.java:115)
>> at
>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85)
>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:58)
>> at
>> org
>> .apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:
>> 498)
>>
>>
>> The bundles i am deploying are:
>>
>> [ 184] [Active ] [Started] [ 60] ServiceMix ::
>> ValidateLocation :: CXF
>> BC BUNDLE (4.2.0.fuse-01-00)
>> [ 185] [Active ] [Started] [ 60] ServiceMix ::
>> ValidateLocation :: CXF
>> SE BUNDLE (4.2.0.fuse-01-00)
>>
>> And they are active but i don't know why the service is not up...
>>
>> s...@root:/> osgi/list
>> START LEVEL 100
>> ID State Spring Level Name
>> [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991)
>> [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service
>> (1.0.2)
>> [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles:
>> jaxp-ri-1.4.2 (1.4.2.2)
>> [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec
>> (1.1.1)
>> [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs ::
>> JAXP API
>> 1.4 (1.3.0)
>> [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle
>> (4.1.0)
>> [ 6] [Active ] [ ] [ 10] Apache Felix Configuration
>> Admin
>> Service (1.0.4)
>> [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec
>> (1.1.2)
>> [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel ::
>> GShell
>> Core (1.1.0)
>> [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0)
>> [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service
>> (1.3.0)
>> [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3)
>> [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3)
>> [ 13] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> Spring
>> Deployer (1.1.0)
>> [ 14] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> mina-1.1.7
>> (1.1.7.1)
>> [ 15] [Active ] [ ] [ 30] Spring Context (2.5.6)
>> [ 16] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> JAAS
>> Modules (1.1.0)
>> [ 17] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> commons-jexl-1.1 (1.1.0.1)
>> [ 18] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> Features (1.1.0)
>> [ 19] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> commons-httpclient-3.1 (3.1.0.1)
>> [ 20] [Active ] [ ] [ 30] Spring Core (2.5.6)
>> [ 21] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched)
>> [ 22] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> ConfigAdmin Commands (1.1.0)
>> [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> JAAS
>> Config (1.1.0)
>> [ 24] [Active ] [ ] [ 30] spring-osgi-extender (1.2.1)
>> [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched)
>> [ 26] [Active ] [ ] [ 30] spring-osgi-core (1.2.1)
>> [ 27] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> commons-vfs-1.0 (1.0.0.1)
>> [ 28] [Active ] [ ] [ 30] Spring Beans (2.5.6)
>> [ 29] [Active ] [ ] [ 30] Unnamed -
>> com.google.code.sshd:sshd:bundle:0.1 (0.1)
>> [ 30] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> commons-codec-1.2 (1.2.0.1)
>> [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> cglib-2.1_3 (2.1.0.3_1)
>> [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> jline-0.9.94 (0.9.94.1)
>> [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> aopalliance-1.0 (1.0.0.1)
>> [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6)
>> [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> PackageAdmin Commands (1.1.0)
>> [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles:
>> oro-2.0.8
>> (2.0.8.1)
>> [ 37] [Active ] [ ] [ 30] spring-osgi-io (1.2.1)
>> [ 38] [Active ] [ ] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> Log Commands (1.1.0)
>> [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> OSGi Commands (1.1.0)
>> [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel ::
>> GShell
>> Admin (1.1.0)
>> [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel ::
>> Management (1.1.0)
>> [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel ::
>> File
>> Monitor (1.1.0)
>> [ 43] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1)
>> [ 44] [Active ] [ ] [ 60] geronimo-j2ee-
>> connector_1.5_spec
>> (2.0.0)
>> [ 45] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> howl-1.0.1-1 (1.0.1.1_1)
>> [ 46] [Active ] [ ] [ 60] Geronimo TxManager ::
>> Transaction
>> (2.2.0.r634076)
>> [ 47] [Active ] [ ] [ 60] Spring Transaction (2.5.6)
>> [ 48] [Active ] [Started] [ 60] Apache ServiceMix Transaction
>> (1.0.0)
>> [ 49] [Active ] [ ] [ 60] Geronimo TxManager :: Connector
>> (2.2.0.r634076)
>> [ 50] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1)
>> [ 51] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> jencks-2.1
>> (2.1.0.1)
>> [ 52] [Active ] [ ] [ 60] geronimo-j2ee-
>> management_1.1_spec
>> (1.0.1)
>> [ 53] [Active ] [ ] [ 60] Apache Commons Pool Bundle
>> (1.4)
>> [ 54] [Active ] [ ] [ 60] xbean-spring (3.5)
>> [ 55] [Active ] [ ] [ 60] activemq-core (5.2.0)
>> [ 56] [Active ] [ ] [ 60] activemq-ra (5.2.0)
>> [ 57] [Active ] [ ] [ 60] activemq-console (5.2.0)
>> [ 58] [Active ] [ ] [ 60] activemq-pool (5.2.0)
>> [ 59] [Active ] [Started] [ 60] Apache ServiceMix Features ::
>> ActiveMQ Commands (4.0.0)
>> [ 60] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> STAX API
>> 1.0 (1.3.0)
>> [ 61] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> ACTIVATION
>> API 1.4 (1.3.0)
>> [ 62] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> JAXB API
>> 2.1 (1.3.0)
>> [ 63] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> jaxb-impl-2.1.6 (2.1.6.1)
>> [ 64] [Active ] [ ] [ 60] camel-core (1.6.0)
>> [ 65] [Active ] [ ] [ 60] camel-osgi (1.6.0)
>> [ 66] [Active ] [ ] [ 60] camel-spring (1.6.0)
>> [ 67] [Active ] [ ] [ 60] xbean-naming (3.5)
>> [ 68] [Active ] [Started] [ 60] Apache ServiceMix Naming
>> (1.0.0)
>> [ 69] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> JBI API
>> 1.0 (1.3.0)
>> [ 70] [Active ] [ ] [ 60] Apache ServiceMix :: Utils
>> (1.1.0)
>> [ 71] [Active ] [Started] [ 60] Apache ServiceMix Document
>> (1.0.0)
>> [ 72] [Active ] [ ] [ 60] Apache ServiceMix NMR API
>> (1.0.0)
>> [ 73] [Active ] [ ] [ 60] Apache ServiceMix NMR Core
>> (1.0.0)
>> [ 74] [Active ] [Started] [ 60] Apache ServiceMix NMR OSGi
>> (1.0.0)
>> [ 75] [Active ] [ ] [ 60] Apache ServiceMix NMR Spring
>> (1.0.0)
>> [ 76] [Active ] [Started] [ 60] Apache ServiceMix NMR Commands
>> (1.0.0)
>> [ 77] [Active ] [Started] [ 60] Apache ServiceMix NMR
>> Management
>> (1.0.0)
>> [ 78] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> JAVAMAIL
>> API 1.4 (1.3.0)
>> [ 79] [Active ] [ ] [ 60] xbean-classloader (3.5)
>> [ 80] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> woodstox-3.2.7 (3.2.7.1)
>> [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> wsdl4j-1.6.1 (1.6.1.1)
>> [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> ant-1.7.0
>> (1.7.0.1)
>> [ 83] [Active ] [ ] [ 60] Apache ServiceMix JBI Runtime
>> (1.0.0)
>> [ 84] [Active ] [Started] [ 60] Apache ServiceMix JBI OSGi
>> (1.0.0)
>> [ 85] [Active ] [Started] [ 60] Apache ServiceMix JBI Deployer
>> (1.0.0)
>> [ 86] [Active ] [Started] [ 60] Apache ServiceMix JBI Commands
>> (1.0.0)
>> [ 87] [Active ] [ ] [ 60] Spring JMS (2.5.6)
>> [ 88] [Active ] [Started] [ 60] Apache ServiceMix JBI
>> Clustering
>> Requestor (1.0.0)
>> [ 89] [Active ] [Started] [ 60] Apache ServiceMix JBI
>> Clustering
>> Engine (1.0.0)
>> [ 90] [Active ] [Waiting] [ 60] Apache ServiceMix JBI
>> Clustering
>> Config (1.0.0)
>> [ 91] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> jetty-6.1.14 (6.1.14.1)
>> [ 92] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support
>> (0.5.2)
>> [ 93] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container
>> (0.5.2)
>> [ 94] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR
>> (0.5.0)
>> [ 95] [Active ] [ ] [ 60] OPS4J Pax Web Extender -
>> Whiteboard
>> (0.5.0)
>> [ 96] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i:
>> (0.3.3)
>> [ 97] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer
>> (4.0.0)
>> [ 98] [Active ] [Started] [ 60] ServiceMix :: Common (2009.01)
>> [ 99] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec
>> (1.1.2)
>> [ 100] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> SAAJ API
>> 1.3 (1.3.0)
>> [ 101] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> JAXWS API
>> 2.1 (1.3.0)
>> [ 102] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> asm-2.2.3
>> (2.2.3.1)
>> [ 103] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> FastInfoset-1.2.2 (1.2.2.1)
>> [ 104] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> neethi-2.0.4 (2.0.4.1)
>> [ 105] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> xmlschema-1.4.3 (1.4.3.1)
>> [ 106] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> xmlresolver-1.2 (1.2.0.1)
>> [ 107] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> JSR311 API
>> 0.8 (1.3.0)
>> [ 108] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> xmlsec-1.3.0 (1.3.0.1)
>> [ 109] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> wss4j-1.5.4 (1.5.4.1)
>> [ 110] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.1.4)
>> [ 111] [Active ] [Started] [ 60] ServiceMix :: SOAP2 (2009.01)
>> [ 112] [Active ] [Started] [ 60] ServiceMix :: CXF Binding
>> Component
>> (2009.01)
>> [ 113] [Active ] [Started] [ 60] ServiceMix :: File (2009.01)
>> [ 114] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> commons-net-1.4.1 (1.4.1.1)
>> [ 115] [Active ] [Started] [ 60] ServiceMix :: FTP (2009.01)
>> [ 116] [Active ] [Started] [ 60] ServiceMix :: SOAP (2009.01)
>> [ 117] [Active ] [Started] [ 60] ServiceMix :: HTTP (2009.01)
>> [ 118] [Active ] [Started] [ 60] ServiceMix :: JMS (2009.01)
>> [ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> geronimo-javamail_1.4_provider-1.8-r755222 (1.8.0.r755222_1)
>> [ 120] [Active ] [Started] [ 60] ServiceMix :: Mail (2009.01)
>> [ 121] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> jsmpp-2.0
>> (2.0.0.1)
>> [ 122] [Active ] [Started] [ 60] ServiceMix :: SMPP (2009.01)
>> [ 123] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> snmp4j-1.8.1 (1.8.1.1)
>> [ 124] [Active ] [Started] [ 60] ServiceMix :: SNMP (2009.01)
>> [ 125] [Active ] [Started] [ 60] ServiceMix :: VFS (2009.01)
>> [ 126] [Active ] [Started] [ 60] ServiceMix :: Bean (2009.01)
>> [ 127] [Active ] [Started] [ 60] ServiceMix :: Camel (2009.01)
>> [ 128] [Active ] [ ] [ 60] Apache CXF Runtime JBI Binding
>> (2.1.4)
>> [ 129] [Active ] [ ] [ 60] Apache CXF Runtime JBI
>> Transport
>> (2.1.4)
>> [ 130] [Active ] [Started] [ 60] ServiceMix :: CXF Service
>> Engine
>> (2009.01)
>> [ 131] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> core-3.2.3.v_686_R32x (3.2.3.1)
>> [ 132] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> antlr-runtime-3.0.1 (3.0.1.1)
>> [ 133] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> drools-4.0.7 (4.0.7.1)
>> [ 134] [Active ] [Started] [ 60] ServiceMix :: Drools Service
>> Engine
>> (2009.01)
>> [ 135] [Resolved ] [ ] [ 60] Logger Properties Fragment
>> (0.0.1)
>> Hosts: 177
>> [ 136] [Active ] [Started] [ 60] ServiceMix :: EIP (2009.01)
>> [ 137] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> antlr-3.0.1 (3.0.1.1)
>> [ 138] [Active ] [ ] [ 60] Commons Collections (3.2.1)
>> [ 139] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> quartz-1.6.1 (1.6.1.1)
>> [ 140] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> oscore-2.2.4 (2.2.4.1)
>> [ 141] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> propertyset-1.3 (1.3.0.1)
>> [ 142] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> osworkflow-2.7.0 (2.7.0.1)
>> [ 143] [Active ] [Started] [ 60] ServiceMix :: OSWorkflow
>> (2009.01)
>> [ 144] [Active ] [ ] [ 60] Spring Context Support (2.5.6)
>> [ 145] [Active ] [Started] [ 60] ServiceMix :: Quartz (2009.01)
>> [ 146] [Active ] [ ] [ 60] Apache ServiceMix Specs ::
>> Scripting
>> API 1.0 (1.3.0)
>> [ 147] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> groovy-1.5.6 (1.5.6.1)
>> [ 148] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> js-1.7R1
>> (1.0.0.7R1_1)
>> [ 149] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> jruby-1.1.2 (1.1.2.1)
>> [ 150] [Active ] [ ] [ 60] ScriptEngines :: Groovy (1.1)
>> [ 151] [Active ] [ ] [ 60] ScriptEngines :: JavaScript
>> (1.1)
>> [ 152] [Active ] [ ] [ 60] ScriptEngines :: JRuby (1.1)
>> [ 153] [Active ] [Started] [ 60] ServiceMix :: JSR-223 Scripting
>> Service Engine (2009.01)
>> [ 154] [Active ] [Started] [ 60] ServiceMix :: Validation
>> (2009.01)
>> [ 155] [Active ] [ ] [ 60] Apache ServiceMix Bundles:
>> saxon-9.1.0.1 (9.1.0.1_1)
>> [ 156] [Active ] [Started] [ 60] ServiceMix :: Saxon Service
>> Engine
>> (2009.01)
>> [ 157] [Active ] [Waiting] [ 60] ServiceMix :: WS-Notification
>> Service
>> Engine (2009.01)
>> [ 158] [Active ] [ ] [ 60] CGLIB Code Generation Library
>> (2.1.3)
>> [ 159] [Active ] [ ] [ 60] Jdbc Plug-in (1.0.0)
>> [ 160] [Active ] [ ] [ 60] c3p0 Connection Pool (0.9.1.2)
>> [ 161] [Active ] [ ] [ 60] MySQL AB's JDBC Driver for
>> MySQL
>> (5.1.6)
>> [ 162] [Active ] [ ] [ 60] EHCache Cache (1.5.0)
>> [ 163] [Active ] [ ] [ 60] JSR107 (JCACHE) Java caching
>> API
>> (1.0.0)
>> [ 164] [Active ] [ ] [ 60] dom4j DOM Processor (1.6.1)
>> [ 165] [Active ] [ ] [ 60] Apache Velocity Engine (1.6.2)
>> [ 166] [Active ] [ ] [ 60] Apache Commons Lang (2.4.0)
>> [ 167] [Active ] [ ] [ 60] Apache Commons Collections
>> (3.2.1)
>> [ 168] [Active ] [ ] [ 60] Spring JDBC (2.5.6)
>> [ 169] [Active ] [ ] [ 60] Spring ORM (2.5.6)
>> [ 170] [Active ] [ ] [ 60] JasperReports Reporting
>> Framework
>> (2.0.5)
>> [ 171] [Active ] [ ] [ 60] Lowagie iText (2.0.8)
>> [ 172] [Active ] [ ] [ 60] Apache Commons Bean Utilities
>> (1.8.0)
>> [ 173] [Active ] [ ] [ 60] Eclipse JDT Batch Compile
>> (3.3.0)
>> [ 174] [Active ] [ ] [ 60] Hibernate Classes (3.2.6.ga)
>> [ 175] [Active ] [ ] [ 60] Apache Commons Digester (1.8.1)
>> [ 176] [Active ] [ ] [ 60] ExcepcionBundle (1.0.0)
>> [ 177] [Active ] [ ] [ 60] Logger Plug-in (0.0.1)
>> Fragments: 135
>> [ 178] [Active ] [Started] [ 60] Test de hibernate (1.0.0)
>> [ 179] [Active ] [Started] [ 60] Business Plug-in (1.0.0)
>> [ 180] [Active ] [Started] [ 60] Hibernate Plug-in (0.0.1)
>> [ 181] [Active ] [Started] [ 60] GMI Core Plug-in (0.0.1)
>> [ 182] [Active ] [ ] [ 60] Jasperreport (1.0.0)
>> [ 183] [Active ] [ ] [ 60] AspectJ Weaver (1.6.5.RELEASE)
>> [ 184] [Active ] [Started] [ 60] ServiceMix ::
>> ValidateLocation :: CXF
>> BC BUNDLE (4.2.0.fuse-01-00)
>> [ 185] [Active ] [Started] [ 60] ServiceMix ::
>> ValidateLocation :: CXF
>> SE BUNDLE (4.2.0.fuse-01-00)
>>
>> Why the behavior is not the same in both installation, i didnt
>> neither the
>> bundles or the procedure to do the installation...
>> Any help would be appreciated..
>>
>> Thanks, Santiago.
>>
>>
>> smontico wrote:
>>>
>>> Hi Freeman,
>>>
>>> I have created my example from scratch and now is working :)
>>> Anyway i have a question regarding to this:
>>>
>>> "It's ok, but more osgi way is install api interface in one bundle
>>> and
>>> all other bundles which need use such interface just import the
>>> interface packages in maven-bundle-plugin."
>>>
>>> I have tried what you are telling me but the mvn compile fails
>>> anyway..
>>> how does the maven-bundle-plugin know which bundle has the .class
>>> file
>>> from the package i am importing ??
>>>
>>> Do I have to define some dependency?
>>>
>>> Thanks in advance.
>>>
>>> Santiago.
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> My comment inline.
>>>> On 2010-3-13, at 上午5:00, smontico wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I create my example following the cxf-wsdl-first-osgi-package
>>>>> example and i
>>>>> could deploy the se and bc bundles correctly into servicemix, both
>>>>> of them
>>>>> were active and started...
>>>>>
>>>>> The problem appears when i try to consume a service that is exposed
>>>>> from
>>>>> another bundle and inject the service reference into the pojo that
>>>>> implement
>>>>> the endpoint.
>>>>>
>>>>> I have two problems:
>>>>>
>>>>> 1) When i create the osgi packaging using maven it throws a compile
>>>>> error,
>>>>> because the SE bundle doesn't have the class interface i'm
>>>>> consuming
>>>>> and
>>>>> referencing in the pojo implementation.
>>>>> I create the interface class into that bundle in order to remove
>>>>> the
>>>>> error
>>>>> but i don't know if its the correct thing to do....
>>>>
>>>> It's ok, but more osgi way is install api interface in one bundle
>>>> and
>>>> all other bundles which need use such interface just import the
>>>> interface packages in maven-bundle-plugin.
>>>>>
>>>>> 2) I create the two bundles correctly but the se bundle is active
>>>>> but not
>>>>> started.
>>>>>
>>>>> I put the following configuration into the beans.xml of the SE
>>>>> bundle, is
>>>>> that correct?
>>>>>
>>>>> ----------
>>>>> beans.xml:
>>>>> ----------
>>>>>
>>>>> <cxfse:endpoint>
>>>>> <cxfse:pojo>
>>>>> <bean
>>>>> class="com.crs.sag.service.GeographicReferenceTypeImpl">
>>>>> <property name="bussinesService" ref="osgibattaBusiness"></
>>>>> property>
>>>>> </bean>
>>>>> </cxfse:pojo>
>>>>> </cxfse:endpoint>
>>>>>
>>>>> <bean
>>>>> class="org.apache.servicemix.common.osgi.EndpointExporter" />
>>>>>
>>>>> <osgi:reference id="osgibattaBusiness" cardinality="1..1"
>>>>> interface="com.crs.uy.business.IBattaBusiness">
>>>>> </osgi:reference>
>>>>>
>>>>
>>>> Two questions:
>>>> 1. how you expose osgibattaBusiness osgi service from other bundle,
>>>> through spring-dm/blueprint or programmatically? Could you also post
>>>> the details for that bundle? Is that bundle started correctly?
>>>>
>>>> 2. Do you get any exception when you start cxf se endpoint bundle?
>>>> you can use osgi:start your_cxf_se_bundle_id
>>>> You can find the log from $SMX_HOME/data/log/servicemix.log or
>>>> karaf.log(log name depend on if you use latest snapshot)
>>>>
>>>> Freeman
>>>>
>>>>> -------------------
>>>>> Pojo implementation
>>>>> -------------------
>>>>>
>>>>> @WebService(name = "ValidateLocationService", targetNamespace =
>>>>> "http://com/crs/sag/service" , endpointInterface =
>>>>> "com.crs.sag.service.GeographicReferenceType")
>>>>> public class GeographicReferenceTypeImpl implements
>>>>> GeographicReferenceType{
>>>>> private IBattaBusiness bussinesService;
>>>>>
>>>>> public IBattaBusiness getBussinesService() {
>>>>> return bussinesService;
>>>>> }
>>>>>
>>>>> public void setBussinesService(IBattaBusiness bussinesService) {
>>>>> this.bussinesService = bussinesService;
>>>>> }
>>>>>
>>>>> public ValidateLocationRSParam validateLocation(
>>>>> ValidateLocationRQParam validateLocationRQ) {
>>>>>
>>>>> System
>>>>> .out.println("validateLocationRQ.getHeaderRQ().getSession().getId()
>>>>> = " + validateLocationRQ.getHeaderRQ().getSession().getId());
>>>>> ValidateLocationRSParam validateRS = new
>>>>> ValidateLocationRSParam();
>>>>> HeaderRS headerRS = new HeaderRS();
>>>>> HeaderRS.Session session = new HeaderRS.Session();
>>>>> session.setId("66666666666");
>>>>> headerRS.setSession(session);
>>>>> validateRS.setHeaderRS(headerRS);
>>>>> try {
>>>>> this.bussinesService.executeService(null);
>>>>> } catch (Exception e) {
>>>>> e.printStackTrace();
>>>>> }
>>>>> return validateRS;
>>>>> }
>>>>>
>>>>> Thanks in advance, Santiago.
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/OSGI-Reference-injection-to-cxfse-endpoint-Problem-tp27882759p27882759.html
>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/OSGI-Reference-injection-to-cxfse-endpoint-Problem-tp27882759p28074439.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context:
http://old.nabble.com/OSGI-Reference-injection-to-cxfse-endpoint-Problem-tp27882759p28081702.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.