Announcement Announcement Module
No announcement yet.
Annotated Endpoints Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Annotated Endpoints

    I'm working with Spring-ws annotated endpoints and I seem to have come across some peculiar behavior. When I wire everything together I can get the web service to deploy and respond exactly as I expect, as long as I don't reference the annotated endpoint's bean anywhere else in the application context.

    For example, if my servlet-context looks like this then everything works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="" xmlns:xsi="" xsi:schemaLocation=" 
      <bean class="">
        <property name="order" value="1" />
      <bean class="">
        <constructor-arg ref="marshaller" />
      <!-- An @Endpoint-annotated endpoint. -->
      <bean id="annotatedUIQueryServiceEndpoint" class="org.cubrc.minds.uimanager.messaging.UIQueryService" />
      <bean class="org.springframework.oxm.jaxb.Jaxb2Marshaller" name="marshaller">
        <property name="contextPath" value="someContextPath">
      <bean id="UIQueryService" class="">
        <property name="wsdl" value="/wsdl/UIQueryService.wsdl" />
    However, if I add the following to that file everything falls apart and the endpoint no longer responds to messages.
      <bean id="someBeanId" class="org.test.someClass">
        <property name="someProperty" ><ref bean="annotatedUIQueryServiceEndpoint"/></property>
    Instead I get an error
    18:49:30,283 ERROR [Log4jLoggerAdapter]  WARN [http-] ( - No endpoint mapping found for [SaajSoapMessage {urn:us:mil:navy:onr:cid:service:query:UIQueryService}anomalyDetailId]

  • #2
    Can you attach a sample to demonstrate the issue please?


    • #3
      I tried to reproduce the problem in an isolated environment, but cannot seem to do so. I'm forced to recant my initial assertion, stating that it had to do with being referenced by another bean, and instead assert that it has something to do with being referenced by a message interceptor.

      I appreciate your help so far, and will try to put together a sandbox for you some time tomorrow. In the mean time, take care and thank you.



      • #4
        Ok thanks. Let me know if you find something.