Results 1 to 3 of 3

Thread: config other than META-INF/applicationContext is not working in <config-property>

  1. #1

    Angry config other than META-INF/applicationContext is not working in <config-property>

    Hi,

    My custom spring config file is not working as specified in ra.xml(below):

    <?xml version="1.0" encoding="UTF-8"?>
    <connector xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
    version="1.5">
    <vendor-name>Spring Framework</vendor-name>
    <eis-type>Spring Connector</eis-type>
    <resourceadapter-version>1.0</resourceadapter-version>
    <resourceadapter>
    <resourceadapter-class>org.springframework.jca.context.SpringContex tResourceAdapter</resourceadapter-class>
    <config-property>
    <config-property-name>ContextConfigLocation</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value>META-INF/spring-config.xml</config-property-value>
    </config-property>
    </resourceadapter>
    </connector>


    I am getting a FileNotFoundException for META-INF/applicationContext.xml file(why it is giving the exception for applicationContext.xml)

    I am using Spring 3.1 and Websphere 7

    Can anyone tell me the solution or how to use the custom spring config file other than applicationContext.xml?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Please use [ code][/code ] tags when posting code. Judging from your code the property-name is wrong it should be contextConfigLocation...

    Edit: Ignore it seems ok according to the javadocs.

    There seem to be some reported issues (on other servers) which indicate that detection of the property sometimes fails due to a protected getter method.
    Last edited by Marten Deinum; Apr 24th, 2012 at 03:33 AM.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    Thanks Marten for your quick reply,

    Is there any way we can use custom config file?or it is a bug.

Posting Permissions

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