Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No source code is available for type. did you forget to inherit a required module

Tags:

java

rpc

gwt

sorry for my English I have an GWT project. I wont to use server classes on client side.

I have RPC service that returns object "Route"

@RemoteServiceRelativePath("springGwtServices/RouteService")
public interface IRouteService extends RemoteService {
    public ArrayList<Route> searchRoutes(String from, String to);
}

but I cant use this class on client side. When I tried to import this, I get exception "Route cannot be resolved to a type" Can I use this class on server? If I cant, what I must to do? p.s. I put all needed classes to share folder and get exception

No source code is available for type project.shared.Route; did you forget to inherit a required module
like image 935
Zaichenko Denis Avatar asked Oct 30 '25 19:10

Zaichenko Denis


1 Answers

There will be a package called shared where you can use those classes both on server and client side.

You cannot use server packaged classes on client side.

And be careful before you putting something in shared package. Have a read GWT - What to put in the shared folder?

like image 198
Suresh Atta Avatar answered Nov 02 '25 09:11

Suresh Atta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!