org.springframework.beans.factory.BeanInitializationException: Could not find exactly 1 WebServiceTemplate in application context

Spring JIRA | Shiv Veeram | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanInitializationException

      Could not find exactly 1 WebServiceTemplate in application context

      at org.springframework.ws.test.support.MockStrategiesHelper.getStrategy()
    2. Spring WS Test
      MockWebServiceServer.createServer
      1. org.springframework.ws.test.support.MockStrategiesHelper.getStrategy(MockStrategiesHelper.java:84)
      2. org.springframework.ws.test.client.MockWebServiceServer.createServer(MockWebServiceServer.java:142)
      2 frames