Try adding at the top of the file: <import resource="classpath:META-INF/cxf/cxf.xml"/>
Colm. On Fri, Mar 3, 2017 at 4:43 PM, Stefan Alex <[email protected]> wrote: > Hello , > I put the two configurations into one file and I get the cxf error again > : > > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name > 'org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory': Cannot > resolve reference to bean 'cxf' while setting constructor argument; nested > exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean > named 'cxf' is defined > > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ctx="http://www.springframework.org/schema/context" > xmlns:cxf="http://camel.apache.org/schema/cxf" > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:ns="http://www.stefanini.com/ca/" > xmlns:jaxrs="http://cxf.apache.org/jaxrs" > xmlns:jaxws="http://cxf.apache.org/jaxws" > xmlns:osgi="http://www.springframework.org/schema/osgi" > xmlns:osgix="http://www.springframework.org/schema/osgi-compendium > " > xmlns:context="http://www.springframework.org/schema/context" > xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint- > cm/v1.1.0" > xmlns:http="http://cxf.apache.org/transports/http/configuration" > xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration > " > xmlns:sec="http://cxf.apache.org/configuration/security" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context.xsd > http://www.springframework.org/schema/osgi > http://www.springframework.org/schema/osgi/spring-osgi.xsd > http://www.springframework.org/schema/osgi-compendium > http://www.springframework.org/schema/osgi-compendium/ > spring-osgi-compendium.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd > http://cxf.apache.org/transports/http/configuration > http://cxf.apache.org/schemas/configuration/http-conf.xsd > http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd > http://cxf.apache.org/jaxrs-client > http://cxf.apache.org/schemas/jaxrs-client.xsd > http://cxf.apache.org/transports/http/configuration > http://cxf.apache.org/schemas/configuration/http-conf.xsd > http://cxf.apache.org/transports/http-jetty/configuration > http://cxf.apache.org/schemas/configuration/http-jetty.xsd > http://cxf.apache.org/configuration/security > http://cxf.apache.org/schemas/configuration/security.xsd > "> > > > <httpj:engine-factory bus="cxf"> > > <httpj:engine port="444"> > <httpj:tlsServerParameters> > <sec:keyManagers keyPassword="password"> > <sec:keyStore type="JKS" > password="password" > file="src/main/config/servicemix.jks"/> > </sec:keyManagers> > <sec:trustManagers> > <sec:keyStore type="JKS" > password="password" > file="src/main/config/servicemix.jks"/> > </sec:trustManagers> > </httpj:tlsServerParameters> > > <httpj:threadingParameters minThreads="5" > maxThreads="15" /> > > <httpj:sessionSupport>true</httpj:sessionSupport> > </httpj:engine> > </httpj:engine-factory> > > > > <bean id="jsonProvider" > class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> > > <cxf:rsServer id="rsServer" address="https://localhost:8888/rest2/" > > serviceClass="com.stefanini.ca.epsilon.inbound.service. > VistaraInboundService" > loggingFeatureEnabled="true" loggingSizeLimit="99999" depends-on=""> > <cxf:providers> > <ref bean="jsonProvider"/> > </cxf:providers> > </cxf:rsServer> > > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > > <route> > <from uri="cxfrs://bean://rsServer"/> > <to uri="log:body?level=INFO"/> > </route> > </camelContext> > > </beans> > > > > > > -- > View this message in context: http://cxf.547215.n5.nabble. > com/cxf-rsServer-running-on-https-issues-tp5777737p5777765.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
