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

Thread: "web mvc setup" leads to "Referenced file contains errors..." in Spring config files

  1. #11

    Default

    Quote Originally Posted by JeffH View Post
    Thanks, GDW! I'm glad it's not just me!
    NP Jeff. Ain't it great to know that you're not alone?

  2. #12

    Default

    Quote Originally Posted by MiB View Post
    Did you try this?

    If this isn't exactly the same error, it helps to post the Error Details.
    Thank you so much for this it's what Public Liability Insurance needed and helped tremendously!
    Last edited by CoolCatNathan; Apr 25th, 2012 at 05:39 AM.

  3. #13
    Join Date
    Jun 2012
    Location
    Italy
    Posts
    6

    Default

    I have a similar problem with my applicationContext-jpa:
    Version: 2.9.2.RELEASE
    Build Id: 201205071000
    OS: Windows 7
    JAVA: jdk1.6.0_31
    ROO: 1.2.1.RELEASE



    [code]
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/data/jpa"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">

    <repositories base-package="com.pss" />

    </beans:beans>
    [code]




    Multiple annotations found at this line:
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar!/
    org/springframework/beans/factory/xml/spring-beans-3.0.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-context/3.1.0.RELEASE/spring-
    context-3.1.0.RELEASE.jar!/org/springframework/context/config/spring-context-3.0.xsd). For more information, right click on the message in the Problems View and
    select "Show Details..."
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar!/
    Last edited by giamak; Jul 2nd, 2012 at 12:02 PM.

  4. #14
    Join Date
    Dec 2012
    Posts
    5

    Default Solved it

    Quote Originally Posted by giamak View Post
    I have a similar problem with my applicationContext-jpa:
    Version: 2.9.2.RELEASE
    Build Id: 201205071000
    OS: Windows 7
    JAVA: jdk1.6.0_31
    ROO: 1.2.1.RELEASE



    [code]
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/data/jpa"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">

    <repositories base-package="com.pss" />

    </beans:beans>
    [code]




    Multiple annotations found at this line:
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar!/
    org/springframework/beans/factory/xml/spring-beans-3.0.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-context/3.1.0.RELEASE/spring-
    context-3.1.0.RELEASE.jar!/org/springframework/context/config/spring-context-3.0.xsd). For more information, right click on the message in the Problems View and
    select "Show Details..."
    - Referenced file contains errors (jar:file:/C:/Users/Giancarlo/.m2/repository/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar!/

    I have solved it by doing 3 things:

    1. Added this repository to my POM:
    <repository>
    <id>spring-milestone</id>
    <name>Spring Maven MILESTONE Repository</name>
    <url>http://repo.springsource.org/libs-milestone</url>
    </repository>
    2. I'm using this version of spring-jpa:
    <dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>1.2.0.RELEASE</version>
    </dependency>
    3. I removed the xsd versions from my context (although I'm not sure it is necessary):
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
    xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
    http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd
    http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd">


    I hope this helps.

Posting Permissions

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