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?