Announcement Announcement Module
Collapse
No announcement yet.
Problems integrating springData JDBC extensions with STS tool Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems integrating springData JDBC extensions with STS tool

    Hello

    I am running into this very frustrating problem, and have not yet been able to find a solution.

    I am using SpringData JDBC extensions. The problem is that I am getting an error in the spring config file,
    when I go to define the datasource in the context file.

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:orcl="http://www.springframework.org/schema/data/orcl"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/data/orcl http://www.springframework.org/schem...a-orcl-1.0.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schem...ring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">


    <contextroperty-placeholder location="classpath:jdbc.properties"/>
    <orclooling-datasource id="dataSource"
    properties-location="classpath:orcl.properties">
    <orcl:connection-properties>
    processEscapes=false 1
    </orcl:connection-properties>
    </orclooling-datasource>

    </beans>

    I keep getting an error "Error Processing XML" resource should not be null. the stack trace is given below.

    I am not sure whey I am getting this error, I have tried all the usual stuff, like recreating the project, deleting all files in the ~/.m2 maven repo directory.

    But still I keep getting this.

    I am running JDK 1.7_51 with the latest copy of STS 3.4. Please let me know if any one else has run into this problem and the solution for the same.

    java.lang.IllegalArgumentException: Resource must not be null
    at org.springframework.util.Assert.notNull(Assert.jav a:112)
    at org.springframework.core.io.support.EncodedResourc e.<init>(EncodedResource.java:66)
    at org.springframework.core.io.support.PropertiesLoad erSupport.loadProperties(PropertiesLoaderSupport.j ava:175)
    at org.springframework.core.io.support.PropertiesLoad erSupport.mergeProperties(PropertiesLoaderSupport. java:156)
    at org.springframework.beans.factory.config.Propertie sFactoryBean.createProperties(PropertiesFactoryBea n.java:102)
    at org.springframework.beans.factory.config.Propertie sFactoryBean.afterPropertiesSet(PropertiesFactoryB ean.java:71)
    at org.springframework.data.jdbc.config.oracle.Poolin gDataSourceBeanDefinitionParser.doParse(PoolingDat aSourceBeanDefinitionParser.java:167)
    at org.springframework.data.jdbc.config.oracle.Poolin gDataSourceBeanDefinitionParser.parseInternal(Pool ingDataSourceBeanDefinitionParser.java:114)
    at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:60)
    at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:74)
    at org.springframework.ide.eclipse.beans.core.interna l.model.namespaces.DelegatingNamespaceHandlerResol ver$ElementTrackingNamespaceHandler.parse(Delegati ngNamespaceHandlerResolver.java:177)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1427)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig$ErrorSuppressingBeanDefinition ParserDelegate.parseCustomElement(BeansConfig.java :1400)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1417)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:187)
    at org.springframework.ide.eclipse.beans.core.interna l.model.BeansConfig$ToolingFriendlyBeanDefinitionD ocumentReader.doRegisterBeanDefinitions(BeansConfi g.java:1330)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinition
Working...
X