Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:21:54+00:00 2026-06-10T12:21:54+00:00

I have a litte web app which works properly when deployed to the App

  • 0

I have a litte web app which works properly when deployed to the App Engine in Eclipse.
However, I get an error when I want to deploy my app to my Tomcat server.

I copied the content of my war folder directly to the default ROOT folder of Tomcat.
Then I run my app on an external server inside Eclipse.

Everything works fine to that point – the app is loaded straight from the browser’s cache.

Here comes the problem:

The google chrome development console says “Uncaught ReferenceError: function is not defined” when I click on some features of my app that are realized through JSNI on GWT side.
I understand that the error comes from a JS caller inside external JS code. The caller invokes a GWT client-side method/function (that’s why it is not defined in the ext. JS code).

Any suggestions on how to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:21:56+00:00Added an answer on June 10, 2026 at 12:21 pm

    Do you have any extra modules that require external js files? Some modules require the js files to be included in the war and included in your root .html file. It could be the case that you are using a library that doesn’t have the base js functions.

    You can add this to your .gwt.xml file to turn on the stack trace.

    <set-property name="compiler.stackMode" value="emulated"/>
    <set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true"/> 
    <set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true"/> 
    

    You could also try the setUncaughtException handler to see exceptions that are being thrown in production mode. With the emulated stack trace turned on you should be able to get a backtrace that has line numbers for your code. It is not as good as development mode but very useful for debugging.

    GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler()) {
        @Override
        public void onUncaughtException(Throwable cause) {
            logger.log(Level.SEVERE, "OOPS", cause);
        }
    }
    

    Note Make sure your logger is configured to use something you can access. Like firebug or remote logging servlet.

    I currently use tomcat 7 in production and development mode using eclipse. You can configure a tomcat instance of the server in eclipse and use the “Run as WebApplication on External Server”. This will allow you to see the exception in development mode.

    Also make sure you don’t have the ?gwt.codesvr=127.0.0.1:9997 if you are in production mode. This will cause problems too unless you have the development code server running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little temperature protocoling web app, where degrees get adjusted on a
I have an asp.net MVC web app that processes images and resizes them which
I have a little web app in which I show and hide DIVs a
I have a dynamic web project in eclipse, which uses annotations to map servlets
I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I
I'm a beginner with Zend. I have a little web site in which I
I am a little confused about Accept-Encoding . I have Web Service which would
I have a J2EE/JSF-based web-app. It consists of an form-input, a text display and
I have 3 assemblies, a WP7 app (targeting 7.0), a Web Services project (running
Suppose I have an ASP.NET website running with its corresponding web.config file, which contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.