Announcement Announcement Module
Collapse
No announcement yet.
config other than META-INF/applicationContext is not working in <config-property> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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, 04:33 AM.

    Comment


    • #3
      Thanks Marten for your quick reply,

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

      Comment

      Working...
      X