Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Creating a ClassPathXmlApplicationContext

  1. #11

    Default

    Here is the spring.xml - I have changed some things to keep it annonymous

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    <!-- This Section Lists Configuration elements for different Services.-->
    <bean id="MyService_MyAction" class="com.xxx.arch.ei.saf.SpringServiceAccessor">
    <!-- Injected Behaviour -->
    <property name="sendingFilterManager">
    <ref local="SendingFilterManager" />
    </property>
    <property name="receivingFilterManager">
    <ref local="ReceivingFilterManager" />
    </property>
    <property name="messageContext">
    <ref local="SOAPMessageContext" />
    </property>
    <property name="serviceName">
    <value>Service1</value>
    </property>
    <property name="actionName">
    <value>HTTPAction</value>
    </property>
    </bean>

    <!-- This Section Lists Configuration elements for different Sending Filter Managers -->
    <bean id="SendingFilterManager" class="com.xxx.arch.ei.iff.filters.SendingFilterMa nager" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">

    <property name="filterChain">
    <ref local="SendingFilterChain" />
    </property>
    <property name="target">
    <ref local="HTTPSendTarget" />
    </property>
    </bean>

    <!-- This Section Lists Configuration elements for different Recieving Filter Managers -->
    <bean id="ReceivingFilterManager" class="com.xxx.arch.ei.iff.filters.ReceivingFilter Manager" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">

    <property name="filterChain">
    <ref local="ReceivingFilterChain" />
    </property>
    <property name="target">
    <ref local="HTTPRecieveTarget" />
    </property>
    </bean>

    <!-- This Section Lists Configuration elements for Filter Chains -->
    <bean id="SendingFilterChain" class="com.xxx.arch.ei.iff.filters.FilterChain" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
    <property name="filter">
    <list>
    <ref local="ConfigFilter" />
    <ref local="AuditFilter" />
    <ref local="AssemblyFilter" />
    </list>
    </property>
    </bean>

    <bean id="ReceivingFilterChain" class="com.xxx.arch.ei.iff.filters.FilterChain" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
    <property name="filter">
    <list>
    <ref local="DisassemblyFilter" />
    <ref local="AuditFilter" />
    </list>
    </property>
    </bean>

    <!-- this section contains a listing of the Filters -->
    <bean id="AuditFilter" class="com.xxx.arch.ei.saf.filters.AuditFilter" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default" />
    <bean id="ConfigFilter" class="com.xxx.arch.ei.saf.filters.ConfigurationDi scoveryFilter" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
    <property name="configuration">
    <ref local="SAFConfiguration"/>
    </property>
    </bean>
    <bean id="AssemblyFilter" class="com.xxx.arch.ei.saf.filters.SOAPEnvelopeAss emblyFilter" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default" />
    <bean id="DisassemblyFilter" class="com.xxx.arch.ei.saf.filters.SOAPEnvelopeDis assemblyFilter" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default" />

    <!-- this section contains a listing of the Targets -->
    <bean id="HTTPSendTarget" class="com.xxx.arch.ei.saf.targets.HTTPSendTarget" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default" >
    <property name="httpControl">
    <ref local="HTTPControl"/>
    </property>
    <property name="maxFailoverCount">
    <value>5</value>
    </property>
    </bean>

    <bean id="HTTPRecieveTarget" class="com.xxx.arch.ei.saf.targets.HTTPReceiveEmpt yTarget" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default" />

    <!-- this section contains the configuration class -->
    <bean id="SAFConfiguration" class="com.xxx.arch.ei.configuration.SprAppCfg" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
    <property name="locator">
    <value>C:\PVCS\Code\Common_Frameworks\src\framewor ks\config\SAFConfigurationTemplate.xml</value>
    </property>
    <property name="configurationLoader">
    <ref local="FileConfigurationLoader"/>
    </property>
    <property name="cache">
    <ref local="CustomCache"/>
    </property>
    </bean>

    <bean id="FileConfigurationLoader" class="com.xxx.arch.ei.configuration.loader.FileCo nfigurationLoader" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default"/>

    <bean id="CustomCache" class="com.xxx.arch.ei.configuration.cache.CustomC ache" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default"/>


    <!-- this section contains the message context class -->
    <bean id="SOAPMessageContext" class="com.xxx.arch.ei.utils.SOAPMessageContext" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default"/>

    <bean id="HTTPControl" class="com.xxx.arch.ei.utils.HTTPControl" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default"/>

    </beans>

    Thanks for any help,
    Will

  2. #12
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    OK - can you post the first dozen or so lines of your debug level output from Spring.

    specifically, you should see a line like this:

    PathMatchingResourcePatternResolver: Looking for matching resources in directory tree...

    and even more informative - one like this:
    PathMatchingResourcePatternResolver: Resolved location pattern [/**/spring.xml] to resources [file [C:\wherever\the\resolved\context\is]

    I have a suspicion that another "spring.xml" file is being picked up instead and that it does not contain a bean named "MyService_MyAction"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •