Fred,

The "META-INF/services/org.restlet.util.Engine" file is not a class file,
just a property file that is part of the source directory. To fix your
issue, you need to add the Restlet source folders in your classpath.

Best regards,
Jerome  

> -----Message d'origine-----
> De : Fred Janon [mailto:[EMAIL PROTECTED] 
> Envoyé : dimanche 24 juin 2007 16:08
> À : [email protected]
> Objet : Runtime error with simple test app...
> 
> I built a simple example based on the code from "Sample 
> application" WebComponent. I am not using Eclipse or anything 
> like that. Just compiling the code with the command line 
> javac and running with java. The app source in a folder test 
> and test has the /com and /org folders with all the Restlet 
> sources. The app compiles fine but at runtine I get: 
> 
> C:\Restlet-1.0\src\Test>java -classpath 
> C:\Restlet-1.0\src\Test WebComponent localhost 8080 /www 
> /data template user pass
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath. 
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath.
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath. 
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath.
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath. 
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath.
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath. 
> 24/06/2007 22:03:43 org.restlet.util.Engine getInstance
> SEVERE: Unable to find an implementation of the Restlet API. 
> Please check your classpath.
> 
> C:\Restlet-1.0\src\Test>
> 
> I check the source code and it seems that 
>             URL configURL = cl.getResource(providerResource);
> is null because
>     private static final String providerResource = 
> "META-INF/services/org.restlet.util.Engine";
> is not found.How could it be since the classes are not in a 
> jar in my case. I don't see any file like that in the source code. 
>  
> Is there a way to get that working without building the jars 
> by downloading the whole Restlet project with svn?
>  
> Thanks
>  
> Fred
>  
>  
> 

Reply via email to