Unresolved dependencies when using camel-servlet following the tutorial.
---------------------------------------------------------------------------
Key: CAMEL-3762
URL: https://issues.apache.org/jira/browse/CAMEL-3762
Project: Camel
Issue Type: Bug
Components: camel-servlet
Affects Versions: 2.6.0
Environment: Windows, servicemix 4.3.1
Reporter: Thomas
Priority: Minor
I tried to install servlet component on my service mix distribution using the
tutorial (http://camel.apache.org/servlet.html).
I use the following blueprint configuration file:
{code:xml}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<!-- camelHttpTransportServlet interface -->
<bean id="servlet"
class="org.apache.camel.component.servlet.ServletComponent">
<property name ="camelServletService" ref="camelHttpTransportServlet" />
</bean>
<reference id="camelHttpTransportServlet"
interface="org.apache.camel.component.servlet.CamelServletService"
timeout="10000"/>
<!-- servletProcessor-->
<bean id="servletProcessor"
class="org.apache.camel.itest.osgi.servlet.ServletProcessor" />
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="servlet:///hello"/>
<process ref="servletProcessor"/>
</route>
</camelContext>
<!-- osgiServlet -->
<bean id="osgiServlet"
class="org.apache.camel.component.servlet.CamelHttpTransportServlet"/>
<service ref="osgiServlet">
<interfaces>
<value>javax.servlet.Servlet</value>
<value>org.apache.camel.component.servlet.CamelServletService</value>
</interfaces>
<service-properties>
<entry key="alias" value="/camel/services" />
<entry key="servlet-name" value="CamelServlet"/>
</service-properties>
</service>
</blueprint>
{code}
{noformat}
When i install the bundle to servicemix, i see the foolowing error after the
grace period:
11:01:07,793 | ERROR | rint Extender: 1 | BlueprintContainerImpl|??
| 7 - org.apache.aries.blueprint - 0.2.0.incubating |
Unable to start blueprint container for bundle servletConfiguration due to
unresolved
dependencies[(objectClass=org.apache.camel.component.servlet.CamelServletService)]
java.util.concurrent.TimeoutException at
org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:273)
[7:org.apache.aries.blueprint:0.2.0.incubating]
{noformat}
The interface org.apache.camel.component.servlet.CamelServletService exist in
camel-servlet and maven make package correctly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira