Tuesday, July 12, 2022

Re: net.ltgt.gwt.maven and testing in multi-module project structure?

Thomas, 

Thank you, the setting the <include> did it.

My next question about testing is, what are the expectations for the test module? Are we still required to provide a separate JUnit.gwt.xml?

Slava

On Sunday, July 10, 2022 at 8:21:05 AM UTC-7 t.br...@gmail.com wrote:
On Sunday, July 10, 2022 at 6:03:14 AM UTC+2 ime...@gmail.com wrote:
Hi folks,

I'm moving away from the 'classic' Maven GWT plugin to net.ltgt.gwt.maven by Thomas Broyer and I'm unclear to make client tests work. I created the project using

mvn archetype:generate    -DarchetypeGroupId=net.ltgt.gwt.archetypes    -DarchetypeVersion=LATEST    -DarchetypeArtifactId=modular-webapp

modular-webapp doesn't generate client/test, so I just added standard Maven structure using client/test/java, but those are not invoked.

Do you have GWTTestSuite matching the default includes pattern?
If not, then either add one or change the includes to match your test classes (e.g. **/*Test.java, or the whole list from the default maven-surefire-plugin's value)
 

https://tbroyer.github.io/gwt-maven-plugin/test-mojo.html speaks in terms of proect base directories instead of the client module. Quote:

${project.build.directory}/gwt-tests/deploy.

Multi-modules in Maven are an after-thought, so $project always refers to the current module in a multi-module build. This means that ${project.build.directory} defaults to the target/ directory inside your client module.

--
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/77853624-dccd-4edc-90d9-6981db1a6292n%40googlegroups.com.

Thursday, July 7, 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 had never seen the "Facet Settings" menu in my GWT settings (as the videos show).  After digging around, I realised I didn't have this checked:

Screenshot 2022-07-08 101601.png

Then it appeared!

Unfortunately, it still didn't launch my code server automatically.  However, this could be because I'm using the Google App Engine (GAE) server (not Tomcat).

I suspect it wouldn't work even if it did start automatically, as GAE doesn't pick up file changes once running, so the GWT Code Server would need to start first, update the nocache.js file, and only then could the GAE start.

I'll keep starting it manually.  Not much hassle really.  :-)

On Thursday, 7 July 2022 at 11:35:15 pm UTC+10 t.br...@gmail.com wrote:
On Tuesday, July 5, 2022 at 1:58:03 AM UTC+2 abhiy...@gmail.com wrote:
2) Also is there any documentation on how to use external servlet container along with super dev mode in eclipse plugin 


--
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/d2bb26cf-641e-4314-bcf4-aabe5e642420n%40googlegroups.com.

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



On Tuesday, July 5, 2022 at 1:58:03 AM UTC+2 abhiy...@gmail.com wrote:
2) Also is there any documentation on how to use external servlet container along with super dev mode in eclipse plugin 


IIRC, the videos at https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/servers/Tomcat.html cover this 

--
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/29eee501-a20a-4596-89b8-e8c050ce2169n%40googlegroups.com.

Tuesday, July 5, 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

As I understand it, you don't need the -noServer flag, you just run the code server (not DevMode):
Screenshot 2022-07-06 135501.png

That needs a -launcherDir to tell it where to generate the nocache.js (that nocache.js will contain the url to your codeserver, by default running on port 9876).

Then you start your Tomcat server, and point your browser to that.

On Tuesday, 5 July 2022 at 9:58:03 am UTC+10 abhiy...@gmail.com wrote:
Hi Jen & Thomas,

I was able to resolve that issue but now I am stuck at a different issue.

Now my project structure related to webapp is below as folllows:

MavenProjectName

src/main/webapp
      gxt -----> Some folder and files 
      js  -----> Some folder and files '
     index.html
     proj.css
src/main/webapp/WEB-INF    
         web.xml       -----> Some servlets, their mappings and index.html in welcome-file-list tag

Scenario 1)
Now If I start codeserver then from the GWT eclipse plugin then it does not allows me to use  -noServer flag and it gives me a url http://127.0.0.1:9876/ after starting super dev mode 
and then displays message: Visit a web page that uses one of these modules
After selecting one of the link it displays a empty page on the browser and in the logs 
GET /nos/js.nocache.js
   Sent error page: not found:

Scenario 2)
Now if I run super dev mode from gwt eclipse plugin then it gives me an ClassNotFoundError for javax.sql.datasource
1)So is my folder structure correct to dispay the application host page ?
2) Also is there any documentation on how to use external servlet container along with super dev mode in eclipse plugin 

Can you let me know on this issue






On Saturday, July 2, 2022 at 1:52:47 PM UTC+5:30 t.br...@gmail.com wrote:
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/1fc9d8a3-28a0-4a59-87ce-cd9baf41137fn%40googlegroups.com.

Your post titled "Re: Blocked a frame with origin" has been put behind a warning for readers

Hello,

As you may know, our Community Guidelines
(https://blogger.com/go/contentpolicy) describe the boundaries for what we
allow-- and don't allow-- on Blogger. Your post titled "Re: Blocked a frame
with origin" was flagged to us for review. This post was put behind a
warning for readers because it contains sensitive content; the post is
visible at
http://gwtnews.blogspot.com/2017/04/re-blocked-frame-with-origin.html. Your
blog readers must acknowledge the warning before being able to read the
post/blog.

Why was your blog post put behind a warning for readers?
Your content has been evaluated according to our Adult Content policy.
Please visit our Community Guidelines page linked in this email to learn
more.

We apply warning messages to posts that contain sensitive content. If
you are interested in having the status reviewed, please update the content
to adhere to Blogger's Community Guidelines. Once the content is updated,
you may republish it at
https://www.blogger.com/go/appeal-post?blogId=7584549650675052288&postId=8961402690819033653.
This will trigger a review of the post.

For more information, please review the following resources:

Terms of Service: https://www.blogger.com/go/terms
Blogger Community Guidelines: https://blogger.com/go/contentpolicy

Sincerely,

The Blogger Team

Monday, July 4, 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

Hi Jen & Thomas,

I was able to resolve that issue but now I am stuck at a different issue.

Now my project structure related to webapp is below as folllows:

MavenProjectName

src/main/webapp
      gxt -----> Some folder and files 
      js  -----> Some folder and files '
     index.html
     proj.css
src/main/webapp/WEB-INF    
         web.xml       -----> Some servlets, their mappings and index.html in welcome-file-list tag

Scenario 1)
Now If I start codeserver then from the GWT eclipse plugin then it does not allows me to use  -noServer flag and it gives me a url http://127.0.0.1:9876/ after starting super dev mode 
and then displays message: Visit a web page that uses one of these modules
After selecting one of the link it displays a empty page on the browser and in the logs 
GET /nos/js.nocache.js
   Sent error page: not found:

Scenario 2)
Now if I run super dev mode from gwt eclipse plugin then it gives me an ClassNotFoundError for javax.sql.datasource
1)So is my folder structure correct to dispay the application host page ?
2) Also is there any documentation on how to use external servlet container along with super dev mode in eclipse plugin 

Can you let me know on this issue






On Saturday, July 2, 2022 at 1:52:47 PM UTC+5:30 t.br...@gmail.com wrote:
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/caa780a4-8111-4cfa-8465-f7b53c648c4fn%40googlegroups.com.

Your post titled "Re: Having a serious issue with superdevmode and /tmp/gwt-* corruption? [incremental SDM compile issue]" has been put behind a warning for readers

Hello,

As you may know, our Community Guidelines
(https://blogger.com/go/contentpolicy) describe the boundaries for what we
allow-- and don't allow-- on Blogger. Your post titled "Re: Having a
serious issue with superdevmode and /tmp/gwt-* corruption? [incremental SDM
compile issue]" was flagged to us for review. This post was put behind a
warning for readers because it contains sensitive content; the post is
visible at
http://gwtnews.blogspot.com/2018/06/re-having-serious-issue-with.html. Your
blog readers must acknowledge the warning before being able to read the
post/blog.

Why was your blog post put behind a warning for readers?
Your content has been evaluated according to our Adult Content policy.
Please visit our Community Guidelines page linked in this email to learn
more.

We apply warning messages to posts that contain sensitive content. If
you are interested in having the status reviewed, please update the content
to adhere to Blogger's Community Guidelines. Once the content is updated,
you may republish it at
https://www.blogger.com/go/appeal-post?blogId=7584549650675052288&postId=7610357686820121904.
This will trigger a review of the post.

For more information, please review the following resources:

Terms of Service: https://www.blogger.com/go/terms
Blogger Community Guidelines: https://blogger.com/go/contentpolicy

Sincerely,

The Blogger Team