error while trying the tutorial for restlet server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

error while trying the tutorial for restlet server

Alessandro Debbia
I was trying the tutorial for a restful web server using Restlet on Eclipse IDE, but i'm getting this error when i try to test it.

Exception while instantiating the target server resource.

java.lang.IllegalAccessException: class org.restlet.resource.Finder (in module org.restlet) cannot access class demo.DemoServer (in module provaRestlet) because module provaRestlet does not export demo to module org.restlet
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(
at java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(
at java.base/java.lang.Class.newInstance(
at org.restlet/org.restlet.resource.Finder.create(
at org.restlet/org.restlet.resource.Finder.create(
at org.restlet/org.restlet.resource.Finder.find(
at org.restlet/org.restlet.resource.Finder.handle(
at org.restlet/org.restlet.Server.handle(
at org.restlet.ext.nio/org.restlet.ext.nio.ServerConnectionHelper.handle(
at org.restlet.ext.nio/org.restlet.ext.nio.ServerConnectionHelper.doHandleInbound(
at org.restlet.ext.nio/org.restlet.ext.nio.BaseHelper$
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
No target resource was defined for this finder: Finder for DemoServer

How can i fix this??

You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].