Bug 52 : Class oath searching not working... when path has space characters
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
1.0.1
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
15/12/2008
Updated 
15/12/2008
Type 
Bug
 
Attachments 
No attachments

java.lang.ClassNotFoundException: jar file 'ebean-1.0.0.jar' could not be instantiate from file path. Error:
at com.avaje.ebean.server.util.ClassPathSearch.findClasses(ClassPathSearch.java:153)
at com.avaje.ebean.server.core.BootupClassPathSearch.search(BootupClassPathSearch.java:85)
at com.avaje.ebean.server.plugin.PluginFactory.(PluginFactory.java:57)
at com.avaje.ebean.server.core.DefaultServerFactory.(DefaultServerFactory.java:73)
at com.avaje.ebean.Ebean$ServerManager.createServerFactory(Ebean.java:256)
at com.avaje.ebean.Ebean$ServerManager.(Ebean.java:159)
at com.avaje.ebean.Ebean$ServerManager.(Ebean.java:129)
at com.avaje.ebean.Ebean.(Ebean.java:123)
at main.Junk.main(Junk.java:15)
Caused by: java.io.FileNotFoundException: D:\ZADMIN\COMPO\PROJECTS\MyEclipseWorkspace\Ebean%20Example\lib\ebean-1.0.0.jar (System not found the path)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:114)
at java.util.jar.JarFile.(JarFile.java:133)
at java.util.jar.JarFile.(JarFile.java:97)
at com.avaje.ebean.server.util.ClassPathSearch.findClasses(ClassPathSearch.java:144)
... 8 more

 
Rob 15 Dec 10:30
Refer to topic 89

Refer to topic 89 for original error report.

Rob 15 Dec 11:08
URL encoding... seems to be the problem

the new JarFile(fileObject) fails... when fileObject is looked at the path is URL encoded with spaces replaced with %20 etc.

If the path is URL decoded ... replacing the %20 back to space characters then this fixes the problem.

Rob 16 Dec 10:34
Fixed in 1.0.1

Fixed in 1.0.1

woResponse

Upload a file