Search code examples
gwtcentos7centos6tomcat9

GWT content not showing on centOS 7.5


I'm working on a project which is built on GWT. When we deployed the project on centOS 6.9 version it works fine and all the content is accessible or visible. However, when we changed the OS version to centOS7.5. It deployed successfully but upon accessing the index page it only shows waiting gif and then unable to load the java content. Some of my observations during inspect element are as follow.

CentOS7.5

enter image description here

In centOS7.5 the content div is empty. I've no clue why the content isn't rendering by GWT. Didn't see any exception or stack trace in tomcat logs. I've also updates the dependency version in pom.xml but still getting the same results.

CentOS6.9 enter image description here

Also I've observed the difference source hierarchy. Same rpm is installed on both servers. CentOS7.5 doesn't showing the top_banner.jpg and /image directory.

enter image description here

The pom.xml is as follow, whereas the gwt.version = 2.9.0

<dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-dev</artifactId>
        <version>${gwt.version}</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-servlet</artifactId>
        <version>${gwt.version}</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-user</artifactId>
        <version>${gwt.version}</version>
        <scope>provided</scope>
    </dependency>

Application.gwt.xml

<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/2.4.0/distro-source/core/src/gwt-module.dtd">
<module rename-to="agentportal">

    <add-linker name="xsiframe" />
    <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE' />

    <!-- Dependencies -->
    <inherits name='com.google.gwt.user.User' />
    <inherits name='com.seamless.gwt.components.Module' />
    <inherits name='org.puremvc.PureMVC_Java_MultiCore' />
    <inherits name='com.seamless.common.GWTModule' />
    <inherits name='com.seamless.ers.interfaces.ersifcommon.GWTModule' />
    <inherits name='com.seamless.ers.interfaces.ersifclient.GWTModule' />
    <!-- ers-supportsystem-client-transport-ws -->
    <inherits name="com.seamless.ers.components.supportsystem.interfaces.GWTModule"/> 
    <!-- ers-supportsystem-client -->
    <inherits name="com.seamless.ers.interfaces.platform.clients.transaction.GWTModule"/>

    <!-- ers-txe-client-model -->
    <inherits name='com.seamless.ers.interfaces.platform.clients.GWTModule' />
    
    <!-- Enable Debug IDs -->
    <inherits name="com.google.gwt.user.Debug"/>
    <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
    
    <extend-property name="log_level" values="DEBUG,WARN" />
    
    <!-- Disable DIV logger -->
     <set-property name="log_DivLogger" value="DISABLED" />


    <!--  What languages should be supported? -->
    <extend-property name="locale" values="en" />
    <extend-property name="locale" values="fr"/>
    <extend-property name="locale" values="ar"/>


    <inherits name='com.google.gwt.user.theme.chrome.Chrome' />


    <entry-point class='com.seamless.ers.client.agentPortal.client.Application' />

    <source path="client">
            <exclude name="**/tests/*" />
    </source>

    <stylesheet src='Application.css' />

    <servlet
        class="com.seamless.ers.client.agentPortal.server.AgentPortalServiceImpl"
        path="/agentportal_service" />
    <servlet path="/sessionService" class="com.seamless.ers.client.agentPortal.server.SessionServiceImpl"/>

</module>

Side by side difference of deployments on both servers

enter image description here

In the above image, I can clearly see that there is a different in /WEB-INF. The classes and the deploy directory is almost empty. Along with other marked

Can someone please guide me what I'm missing here and what's the root cause of this issue and why it's occurring on centOS7.5.


Solution

  • I was facing the same issue against GWT. The issue is at parser level of GWT. I had "_" as variable in my Screen.java class which extended com.google.gwt.user.client.ui:Composite

    Upon renaming the variable name and refactoring the code the screen loaded for me. Please try doing it this way.