-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate entity manager and Java Web Start
PostPosted: Mon Mar 05, 2007 12:42 pm 
Newbie

Joined: Mon Mar 05, 2007 12:01 pm
Posts: 3
I am developing a java desktop application deployed via java web start. When the application is run, it gives me this error:

Code:
Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
   at java.io.File.<init>(Unknown Source)
   at org.jboss.util.file.ArchiveBrowser.getBrowser(Unknown Source)
   at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:610)
   ... 67 more


I am using spring 2.0.2 and hibernate 3.2.1 GA as JPA provider. All jars are signed and security permission is set to all-permissions.

I see File implementation:

Code:
public File(URI uri)
    {
        if(!uri.isAbsolute())
            throw new IllegalArgumentException("URI is not absolute");
        if(uri.isOpaque())
            throw new IllegalArgumentException("URI is not hierarchical");
        String s = uri.getScheme();
        if(s == null || !s.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 s1 = uri.getPath();
        if(s1.equals(""))
            throw new IllegalArgumentException("URI path component is empty");
        s1 = fs.fromURIPath(s1);
        if(separatorChar != '/')
            s1 = s1.replace('/', separatorChar);
        path = fs.normalize(s1);
        prefixLength = fs.prefixLength(path);
    }


The problem is:

if(uri.isOpaque()) returning true.

Any idea what is wrong and how to fix it?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.