This may be pretty basic, but have you checked to see that the
camel-servlet feature successfully installed and started?

---
A. Soroka
Online Library Environment
the University of Virginia Library

On Wed, Jul 18, 2012 at 5:56 AM, anton_dak <[email protected]> wrote:
> Hi all,
>
> I have tried to bring the camel-servlet to run but I get the following
> errors in my servicemix log:
>
> springframework.osgi.extender - 1.2.1 | Timeout occurred before finding
> service dependencies for
> [OsgiBundleXmlApplicationContext(bundle=test-test-consumer-layer,
> config=osgibundle:/META-INF/spring/*.xml)]
> ...
> unsatisfied dependencies: Dependency on
> [(objectClass=org.apache.camel.component.http.CamelServlet)] (from bean
> [&servletref]
>
>
> First of all, I have installed the camel-servlet feature.
>
> My spring.xml conatins the following:
>
> <bean id="camelServlet"
> class="org.apache.camel.component.servlet.CamelHttpTransportServlet"/>
>
>     <osgi:service ref="camelServlet">
>         <osgi:interfaces>
>             <value>javax.servlet.Servlet</value>
>             <value>org.apache.camel.component.http.CamelServlet</value>
>         </osgi:interfaces>
>         <osgi:service-properties>
>             <entry key="alias" value="/camel/services" />
>             <entry key="matchOnUriPrefix" value="true" />
>             <entry key="servlet-name" value="CamelServlet"/>
>         </osgi:service-properties>
>     </osgi:service>
>
>     <osgi:reference id="servletref"
> interface="org.apache.camel.component.http.CamelServlet">
>           <osgi:listener bind-method="register" unbind-method="unregister">
>              <ref bean="httpRegistry"/>
>           </osgi:listener>
>     </osgi:reference>
>
>     <bean id="httpRegistry"
> class="org.apache.camel.component.servlet.DefaultHttpRegistry"/>
>
>     <bean id="servlet"
> class="org.apache.camel.component.servlet.ServletComponent">
>         <property name="httpRegistry" ref="httpRegistry" />
>     </bean>
>
> In my maven pom.xml I have added the following packages to the
> "Import-Package" tag:
> org.apache.camel.component.http,
> org.apache.camel.component.servlet
>
> Without the camel-servlet my application runs well in ServiceMix 4.4.0.
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Can-t-use-camel-servlet-in-ServiceMix-4-4-0-tp5713911.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to