Saturday, July 2, 2022

Re: Your src appears not to live underneath a subpackage called 'client',but you'll need to use the directive in your module to make it accessible

I suppose you've changed the way you call SuperDevMode to pass it com.cname.proj.client.Main too: SuperDevMode expects the module name, not the entrypoint class name. So you'd give SuperDevMode com.cname.proj.Main (which is the name of the Main.gwt.xml), in which it'll find the entrypoint class name.

On Saturday, July 2, 2022 at 2:05:54 AM UTC+2 abhiy...@gmail.com wrote:
Hi Jen, 

I have changed my entry point to 
class='com.cname.proj.client.Main. But now super devmode is  now giving me an error not able to find com/cname/proj/client/Main.gwt.xml in the classpath. It forces me to keen Main.gwt.xml and Main.java in the same folder/package and then it is giving me forgot to inherit some module error. 



Thanks & Regards,
Abhishek Yadav

On Sat, Jul 2, 2022, 2:05 AM Jens <jens.ne...@gmail.com> wrote:

    Content in Main.gwt.xml
         
    <module rename-to="js">
     <inherits name='com.google.gwt.user.User'/>
     <inherits name='com.google.gwt.user.theme.clean.Clean'/>
    <inherits name='com.cname.proj.Common' />
    <inherits name='com.sencha.gxt.ui.GXT'/>

    <entry-point class='com.cname.proj.Main' />
    <source path="client" />
    <source path="service"/>
    </module>

With that configuration the GWT compiler can see packages com.cname.proj.client and com.cname.proj.service in your main project. However your entry point is not in any of these packages. You need to move the entry point into the client package and update the <entry-point> accordingly.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/16e5b1a9-dd3b-4403-bf76-973d0370d51an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e2229133-6972-49fb-83df-45ebe37a9d53n%40googlegroups.com.

No comments:

Post a Comment