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 8850709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:57:53+00:00 2026-06-14T12:57:53+00:00

I was following this answer (thanks Ed) and found that he hadn’t completely solved

  • 0

I was following this answer (thanks Ed) and found that he hadn’t completely solved the problem.

I’ve got SuperDevMode / CodeServer up and running, but it doesn’t include my html file(s), which makes it kinda useless. Do I really need to run 2 web servers?

I’m using Gradle, if that matters at all.

  • 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-14T12:57:54+00:00Added an answer on June 14, 2026 at 12:57 pm

    Here’s the answer I came up with. In my HTML file, I removed the script that loads my *.nocache.js and instead generated it dynamically, like so:

    <script type="text/javascript">
        function loadScript(scriptSrc)
        {
            var scriptTag = document.createElement('script');
            scriptTag.type = 'text/javascript';
            scriptTag.async = true;
            scriptTag.src = scriptSrc;
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(scriptTag, s);
        }
    
        // Load the GWT script
        loadScript(('file:' == document.location.protocol ? "http://localhost:9876/" : "") + "admin/admin.nocache.js");
    </script>
    

    My Gradle task for running code Server looks like this:

    task codeServer(dependsOn: "war") << {
        println("*----------------------------------------------------------------------------------------------*")
        println("   Ignore what this says below about going to http://localhost:9876/")
        println("   Instead, once the server below is up, in a separate command line, type:")
        println("       start $buildDir\\exploded\\Admin.html")
        println("*----------------------------------------------------------------------------------------------*")
    
        def gwtTempDir = "$buildDir/gwtTemp"
        (new File(gwtTempDir)).mkdirs()
    
        ant.java(classname: "com.google.gwt.dev.codeserver.CodeServer", failonerror: "true", fork: "true") {
            classpath {
                pathElement(location: "src/main/java")
                pathElement(location: "src/main/resources")
                pathElement(location: "$buildDir/classes/main")
                pathElement(path: configurations.compile.asPath)
            }
            jvmarg(value: "-Xmx512m")
            sysproperty(key: "java.util.logging.SimpleFormatter.format", value: System.getProperty("java.util.logging.SimpleFormatter.format"));
            arg(line: "-workDir " + gwtTempDir)
            arg(line: "-src " + "src/main/java")
            arg(value: "com.onlyinsight.oventio.Admin")
        }
    }
    

    So now, instead of having a second webserver, I can point my browser to file:///F:/projects/ConferenceModule/build/exploded/Admin.html and it all works.

    I hope that helps somebody else.

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

Sidebar

Related Questions

Following this question and answer , I still have a bit trouble in the
In this answer to this question , Lachlan-Hunt writes the following: With HTML5, you
I have been following the answer of this question: How to update existing object
I tried following the answer to this question , but could not get xsd.exe
Following this tutorial and running into trouble. [TestMethod] [ExpectedException(typeof(Exception))] public void VerifyPropertyNameMethod_NonExistentPropertyString_ThrowsException() { var
I've not found a answer to this question anywhere, but this seems like a
I've not found a answer to this question anywhere, but this seems like a
Following this question , I've met another problem where the request just doesn't go
I've found variants of this problem on Stack Overflow but nothing my matches my
I have found that the following : <junit haltonfailure=no haltonerror=no > <!-- some tests

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.