Hi,
I am trying to deploy servicemix as a war in jboss to expose a jsr181
webservice. I am trying to follow the servicemix-web example but I get this
error even though servicemix-http-3.0-incubating.jar is present in the war
file:

java.lang.IllegalStateException: Unable to find component servicemix-http

org.apache.servicemix.http.HttpManagedServlet.init(HttpManagedServlet.java:70)


This is my configuration file springcontext-sm.xml:
<sm:container id="jbi" 
monitorInstallationDirectory="false">
<sm:activationSpecs>
      <sm:activationSpec>
        <sm:component>
          <jsr181:component>
            <jsr181:endpoints>
              <jsr181:endpoint
                 annotations="none"
                 service="test:OrderService"
                 endpoint="OrderService"
                 pojo="#orderService">
              </jsr181:endpoint>
            </jsr181:endpoints>
          </jsr181:component>
        </sm:component>
      </sm:activationSpec>
    
      <sm:activationSpec>
        <sm:component componentName="servicemix-http">
          <http:component>
          <http:configuration managed="true" />
            <http:endpoints>
              <http:endpoint
                service="test:httpBinding"
                endpoint="OrderService"
                targetService="test:OrderService"
                role="consumer"
                locationURI="http://localhost/OrderService/";
                defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                soap="true"/>
            </http:endpoints>
          </http:component>
        </sm:component>
      </sm:activationSpec>
</sm:activationSpecs>
</sm:container>

This is my web.xml:
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
                classpath*:META-INF/springcontext-*.xml
    </param-value>
  </context-param>

  <context-param>
    <param-name>contextClass</param-name>
   
<param-value>org.apache.xbean.spring.context.XmlWebApplicationContext</param-value>
  </context-param>

  <listener>
   
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  
  <!--  the HTTP binding servlet   -->
  <servlet>
    <servlet-name>HttpManagedServlet</servlet-name>
    <servlet-class>
      org.apache.servicemix.http.HttpManagedServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>HttpManagedServlet</servlet-name>
    <url-pattern>/jbi/*</url-pattern>
  </servlet-mapping>

Please help.
Cheers,
Hari.



-- 
View this message in context: 
http://www.nabble.com/jsr181-war-deployment-error-tf2274252.html#a6315175
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to