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

Thread: JPA Persistence.xml parse error

  1. #11
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Thanks for the heads up - knowing about bugs like that these is a time saver.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  2. #12
    Join Date
    Jun 2006
    Posts
    5

    Default

    Thanks everyone for your help. It seems that the spaces were causing the problem.
    This is my first use of the Spring forum and I'm impressed with the feedback. Hopefully, I'll have the chance to return the favor soon.

  3. #13
    Join Date
    Mar 2006
    Posts
    6

    Default Space still causing a problem

    Boy was I glad to find this thread :-) I've been having some problems with my spring/jpa/hibernate project and it turns out that the parent directory of my project has a space in the name. Once I renamed the parent dir everything worked. I'm using Spring 2.0.1, Hibernate core 3.2.1.ga, Hibernate EM 3.2.0.ga, and Hibernate annotations 3.2.0.ga.

    I thought I'd post this in case someone thought the bug was fixed in Hibernate.

  4. #14

    Default

    I've created a ticket for this, as the current behaviour is not guaranteed to work in all cases.

    http://opensource.atlassian.com/proj...rowse/SPR-3748

  5. #15
    Join Date
    Aug 2007
    Posts
    1

    Default

    Hope you guys are ok with posting this here - I have similiar issues with error trying to scan <jar-file> file://dbb.int.dexwired.net/dfs/.....

    exception from java.io.File : URI has an authority component

    This is coming from:

    public File(URI uri) {

    // Check our many preconditions
    if (!uri.isAbsolute())
    throw new IllegalArgumentException("URI is not absolute");
    if (uri.isOpaque())
    throw new IllegalArgumentException("URI is not hierarchical");
    String scheme = uri.getScheme();
    if ((scheme == null) || !scheme.equalsIgnoreCase("file"))
    throw new IllegalArgumentException("URI scheme is not \"file\"");
    if (uri.getAuthority() != null)
    throw new IllegalArgumentException("URI has an authority component");
    if (uri.getFragment() != null)
    throw new IllegalArgumentException("URI has a fragment component");
    if (uri.getQuery() != null)
    throw new IllegalArgumentException("URI has a query component");
    String p = uri.getPath();
    if (p.equals(""))
    throw new IllegalArgumentException("URI path component is empty");

    // Okay, now initialize
    p = fs.fromURIPath(p);
    if (File.separatorChar != '/')
    p = p.replace('/', File.separatorChar);
    this.path = fs.normalize(p);
    this.prefixLength = fs.prefixLength(this.path);
    }

    So is there a problem with scanning remote directories / workaround etc - or did I miss something here?

    Thanks for your help

Posting Permissions

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