Hi everybody,

I am trying to get some version of ReportIncident example in servicemix
(osgi) to get running....

I am just interested in webservice part and deploying a bundle
containing following beans.xml.....

Everyhing deploys fine, I am seeing from the log cxf transport
reports....

12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | Container
httpserviceservlethand...@1312369 + cxf-transport-osgi-servlet as
servlet
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | Container
httpserviceservlethand...@1312369 +
(S=cxf-transport-osgi-servlet,[/cxf/*]) as servletMapping
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | filterNameMap=null
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | pathFilters=null
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | servletFilterMap=null
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 |
servletPathMap={/cxf/*=cxf-transport-osgi-servlet}
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 |
servletNameMap={cxf-transport-osgi-servlet=cxf-transport-osgi-servlet}
12:02:52,634 | DEBUG | xtenderThread-66 | jetty
| .service.internal.util.JCLLogger   85 | started
cxf-transport-osgi-servlet 

So transport is started and hearing cxf (which port I don't know because
I get no reaction to http://localhost:8080/cxf/PersonService?wsdl or
http://localhost:8092/cxf/PersonService?wsdl)...

I don't see any error messages in the logs but service is not there?
Does anybody see a major failure that I am making here, I see the bundle
it is in active state but not started (I actually call the start to
bundle but it switch to active but no started do I need an Activator?)

I only see this 
12:32:13,196 | DEBUG | localShell       | ContextLoaderListener
| .activator.ContextLoaderListener  726 | No application context created
for bundle CXF OSGi Test Project (cxf-test)] 

Which doesn't make sense I have the beans.xml there why it is not
detected?

I didn't deployed the web part of the sample but do I have to make the
cxf to work also?

Thx for the answers

<?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:camel="http://activemq.apache.org/camel/schema/spring";
        xmlns:osgi="http://www.springframework.org/schema/osgi";
xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint";
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/osgi
        http://www.springframework.org/schema/osgi/spring-osgi.xsd
        http://activemq.apache.org/camel/schema/osgi
        
http://activemq.apache.org/camel/schema/osgi/camel-osgi-1.6.0.xsd

        http://activemq.apache.org/camel/schema/spring
        
http://activemq.apache.org/camel/schema/spring/camel-spring-1.6.0.xsd
        http://activemq.apache.org/camel/schema/cxfEndpoint
http://activemq.apache.org/camel/schema/cxf/camel-cxf-1.6.0.xsd";>


        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"
/>
        <import resource="classpath:META-INF/cxf/cxf-extension-http.xml"
/>
        <import
resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />

        <cxf:cxfEndpoint id="person"
        
xmlns:p="http://servicemix.apache.org/samples/wsdl-first/types";
                address="/PersonService" wsdlURL="wsdl/person.wsdl" />

        <osgi:camelContext trace="true"
                xmlns="http://activemq.apache.org/camel/schema/osgi";>
                <route>
                        <from uri="cxf:bean:person" />
                        <bean ref="myTransformation" method="transform"
/>
                </route>
        </osgi:camelContext>

        <bean id="myTransformation"
class="de.tmobile.tvpp.internal.MyTransformation" />

        <!--
                jaxws:endpoint id="HTTPEndpoint"
        
implementor="org.apache.servicemix.samples.wsdl_first.PersonImpl"
                address="/PersonService" wsdlLocation="wsdl/person.wsdl"
                endpointName="e:soap" serviceName="s:PersonService"
        
xmlns:e="http://servicemix.apache.org/samples/wsdl-first";
        
xmlns:s="http://servicemix.apache.org/samples/wsdl-first"/
        -->

        <!--
                <jaxws:client id="client"
        
serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
                endpointName="e:soap" serviceName="s:PersonService"
                xmlns:e="http://cxf.examples.servicemix.apache.org/";
                xmlns:s="http://cxf.examples.servicemix.apache.org/";
                wsdlLocation="wsdl/person.wsdl"
address="/PersonService"/>

                <osgi:service id="testHelloWorld" ref="client"
        
interface="org.apache.servicemix.samples.wsdl_first.Person"/>
        -->

</beans>


T-Mobile Deutschland GmbH
Aufsichtsrat: Timotheus Hottges (Vorsitzender)
Geschaftsfuhrung: Dr. Georg Polzl (Sprecher), Thomas Berlemann, Thomas 
Dannenfeldt, Albert Henn,
Dr. Christian P. Illek, Dr. Bruno Jacobfeuerborn, Dr. Dirk Rohweder 
Handelsregister: Amtsgericht Bonn, HRB 59 19
Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE60800328

Reply via email to