no gwt or static content included in app

22 views
Skip to first unread message

Régis Millet

unread,
9:54 AM (9 hours ago) 9:54 AM
to GWT Users
Hello.
now that I managed to make the project build, I see that there is no static files generated and my application does not work because no js file
no static data (css, images..) are there
no file with gwt.rpc extension either

when using mojo, static files were generated and put in a projectName-version-statics.zip files
_______________________________________
my pom.xml for GWT module:


    <!-- POM file generated with GWT webAppCreator -->
    <modelVersion>4.0.0</modelVersion>
    <groupId>fr.company</groupId>
    <artifactId>projet</artifactId>
    <packaging>war</packaging>
    <version>3.4.0</version>
    <name>Project (GWT)</name>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.5.10</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>



    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>17</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
        <!-- Convenience property to set the GWT version -->
        <gwt.version>2.12.0</gwt.version>
        <gwt.maven.mojo.compile.version>2.10.0</gwt.maven.mojo.compile.version>
        <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
        <!-- versions des dependances principales -->

        <mapstruct.version>1.6.3</mapstruct.version>





        <fileupload.version>1.6.0</fileupload.version>
        <itextpdf.version>5.5.13.5</itextpdf.version>
        <jfreechart.version>1.5.6</jfreechart.version>
        <poi.version>5.5.1</poi.version>
        <jsch.version>2.27.7</jsch.version>

        <maven.compiler.version>3.8.1</maven.compiler.version>

        <commons.io.version>2.14.0</commons.io.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.gwtproject</groupId>
                <artifactId>gwt</artifactId>
                <version>${gwt.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>



    <dependencies>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-mail</artifactId>
        </dependency>


        <dependency>
            <groupId>fr.company</groupId>
            <artifactId>projectCommons</artifactId>
            <version>${project.version}</version>
        </dependency>

        <!-- google GWT dependencies -->
        <dependency>
            <groupId>org.gwtproject</groupId>
            <artifactId>gwt-dev</artifactId>
        </dependency>
        <dependency>
            <groupId>org.gwtproject</groupId>
            <artifactId>gwt-servlet-jakarta</artifactId>
        </dependency>

        <dependency>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.2.0</version>
            <scope>compile</scope>
        </dependency>

              <!-- dependency for file upload -->

        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>${fileupload.version}</version>
        </dependency>

        <dependency>
            <groupId>org.jfree</groupId>
            <artifactId>jfreechart</artifactId>
            <version>${jfreechart.version}</version>
        </dependency>

        <!-- pdf dependencies -->
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>${itextpdf.version}</version>
            <type>jar</type>
        </dependency>

        <!-- Apache poi for generate XLS -->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>${poi.version}</version>
        </dependency>

        <dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct</artifactId>
            <version>${mapstruct.version}</version>
        </dependency>

        <dependency>
            <groupId>com.github.mwiede</groupId>
            <artifactId>jsch</artifactId>
            <version>${jsch.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-fileupload2-jakarta</artifactId>
            <version>2.0.0-M1</version>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>

        <!-- Source: https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <version>6.2.0-M1</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>

    <build>

        <!-- Generate compiled stuff in the folder used for developing mode -->
        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>


        <plugins>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>${gwt.maven.mojo.compile.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>i18n</goal>
                            <goal>generateAsync</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <hostedWebapp>${webappDirectory}</hostedWebapp>
                    <i18nMessagesBundle>fr.company.project.Messages</i18nMessagesBundle>
                </configuration>
            </plugin>


            <!-- GWT Maven Plugin -->
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>1.2.0</version>
                <extensions>true</extensions>
                <configuration>
                    <moduleName>fr.company.project.MyModule</moduleName>
                    <moduleShortName>module</moduleShortName>
                    <classpathScope>compile+runtime</classpathScope>
                    <webappDirectory>${webappDirectory}</webappDirectory>

                    <startupUrls>
                        <startupUrl>Module.html</startupUrl>
                    </startupUrls>


                </configuration>

                <executions>
                    <execution>
                        <goals>
                            <goal>generate-module</goal>
                            <goal>codeserver</goal>

                        </goals>
                    </execution>
                </executions>
            </plugin>


___________________________________________________________________
the navigator error on  http://localhost:8080/project/:
GET
http://localhost:8080/project/Module/Module.nocache.js
[HTTP/1.1 404  13ms]



Thomas Broyer

unread,
10:01 AM (9 hours ago) 10:01 AM
to GWT Users
On Thursday, March 26, 2026 at 2:54:35 PM UTC+1 mille...@gmail.com wrote:

                <executions>
                    <execution>
                        <goals>
                            <goal>generate-module</goal>
                            <goal>codeserver</goal>

                        </goals>
                    </execution>
                </executions>
            </plugin>

You don't GWT-compile your application, you need to call the "compile" goal here.

Also, it's weird and useless to have the codeserver goal here (weird because you wouldn't want to call it during a "standard" build, you want to explicitly invoke it from the command line, and useless because it doesn't bind to any lifecycle phase by default, so it won't be executed anyway without some more configuration)

Régis Millet

unread,
10:08 AM (9 hours ago) 10:08 AM
to GWT Users
OK, my understanding of the goals was wrong.

but now that I only put compile, I get - gwt-maven-plugin:1.2.0:compile (default) @ module ---
[INFO] Loading inherited module 'fr.company.module.Module'
[INFO]    Loading inherited module 'com.google.gwt.core.Core'
[INFO]       [ERROR] Unable to find 'com/google/gwt/core/Core.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

Régis Millet

unread,
10:27 AM (9 hours ago) 10:27 AM
to google-we...@googlegroups.com
when i tried a lot of things , i "lost" my gwt-user dependency.
building currently running

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/07aw4tsunPE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/77c94799-7c97-40c5-9bae-5e3aa43c8c83n%40googlegroups.com.

Régis Millet

unread,
11:06 AM (8 hours ago) 11:06 AM
to GWT Users
Still no js found.
they are generated but not exploded.

Régis Millet

unread,
2:16 PM (5 hours ago) 2:16 PM
to GWT Users
finally found by lurking in the group questions.

in my Main html page, Module.html, had to add 
<meta name="gwt:property" content="baseUrl=Module/" />

for the 
<script type="text/javascript" language="javascript" src=" Module/Module.nocache.js"></script> to work.

when I removed the folder in script tag, the nocache was not found and the meta is needed for other files listed in " Module.nocache.js" where the base folder was not there.
Reply all
Reply to author
Forward
0 new messages