App runs dev-mode but doesn't run if deployed

33 views
Skip to first unread message

tanteanni

unread,
Jul 26, 2011, 11:01:03 AM7/26/11
to google-we...@googlegroups.com
We are developing our first gwt app in meantime i pushed some releases and all went fine. The last things we did was experimenting with css/clientbundle and exceptionhandling/ logging. All is still working in Dev-Mode but today we tried to deploy the war on Tomcat (first time for this snapshot, packaged with maven). The deployed App is displaying absolutely nothing. I tried to add a label to RootLayoutPanel - nothing is displayed. I tried to sysout a String on first line of OnModuleLoad - nothing in any TomcatLog!

So i simply don't know what to do/ where to look (reverting to last release isn't a option ;-)).

Jens

unread,
Jul 26, 2011, 11:10:02 AM7/26/11
to google-we...@googlegroups.com
First take a look into the generated war file and verify that its correctly packaged (just unzip it). If really nothing happens it seems like your war does not contain the app javascript files or its a path problem. You can also look into FireBug or similar to see if any requests result in a 404 Not Found.

-- J.


eSVau

unread,
Jul 27, 2011, 3:31:28 AM7/27/11
to google-we...@googlegroups.com
Ok, we looked futher into this issue, so far i can you tell this:

- the war file looks fine
- there are no 404 html errors within firebugs

- there IS a javascript error, which will stop the whole app. I've tried to compile it pretty but this won't help us much, but i doubt it will help anyone to track down our problem :-D
Uncaught TypeError: Cannot read property 'impl' of null
function entry_0(jsFunction){
return function(){
try {
return entry0(jsFunction, this, arguments);
}
catch (e) {
throw e;
}
}
;
}
D567810C3CA526CC2D2D07399319FBAD.cache.html:577Uncaught TypeError: Cannot read property 'impl' of null


But we tracked down our problem to our logging. Our log guy will look further into this ;-)

Kotuboy

unread,
Jul 27, 2011, 4:03:46 AM7/27/11
to google-we...@googlegroups.com
Hi,
I am the "log guy", I solved the problem. But i did not undrestand really why this error occured.
Everything works fine in dev-mode. But as soon as i deploy it on tomcat, we get the problem.

The problem was: In the Logactivity class I tried to test the logger with this.logger.log(Level.SEVERE, "Message").
I think at that time the logger was null. I don't know why. But it is only guess. The reason can be something else.

Maybe somebody has an idea???

Reply all
Reply to author
Forward
0 new messages