google-code-export / mvp4g

Automatically exported from code.google.com/p/mvp4g
1 stars 0 forks source link

MVP4G onStart() on presenter not called when deploy to tomcat #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  deploy attached war in Tomcat, 
2.  see the page is loaded but there is not a table displaying
3.  RPC is successful because the pager does show 172 records

What is the expected output? What do you see instead?

The app when initial loading, make a RPC call to load some data and display a 
table. 

On Jetty Hosted mode, the table is fully populated. But when deploy to Tomcat, 
there is nothing there. onStart() on the initial presenter is not called when 
deployed to Tomcat.

What version of the product are you using? On what operating system?

Latest MVP4G with GWT 2.4.0

Please provide any additional information below.

I suspect somehow the generated JavaScript is failing. In debug mode, I noticed 
that the onStart() on my initial presenter is not called, but the RPC call is 
still made by Guice. 

Yan

Original issue reported on code.google.com by yanandyan@gmail.com on 10 Nov 2011 at 5:08

Attachments:

GoogleCodeExporter commented 9 years ago
What version of Mvp4g do you use? 1.3.1 or 1.4.0 (if 1.4.0, what snapshot)?

Is only the 'onStart' event not called? Does the rest of mvp4g start normally 
(ie the root view is added to the RootPanel)? Is any GWT code called when the 
application starts? When you compiled and run it on Jetty, is everything fine?

Original comment by plcoir...@gmail.com on 10 Nov 2011 at 8:37

GoogleCodeExporter commented 9 years ago
I am still not sure why the problem, but I do have a workaround. This is
probably not a MVP4G problem.

I created the project using Maven archetype, but then this problem
happened. However, if I just follow the pom.xml in the mvp4g sample
projects, thing work fine.

Please feel free to close the issue.

Yan

Original comment by yanandyan@gmail.com on 14 Nov 2011 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by plcoir...@gmail.com on 25 Jan 2012 at 7:45