title: GWT Spring Hibernate " Messages" Error
body: <p>I did create a maven gwt project</p>
  
  <pre><code> mvn archetype:generate -DarchetypeG
   roupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersi
   on=2.6.0 -DgroupId=com.domain.GwtMavenSpringHibernate -DartifactId=GwtMavenSprin
   gHibernate
  </code></pre>
  
  <p>I did import it to eclipse the right way after running </p>
  
  <pre><code>mvn eclipse:eclipse
  mvn gwt:run
  </code></pre>
  
  <p>and they did run successfully</p>
  
  <p>Here's my pom.xml</p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="UTF-8"?&gt;
       &lt;project
      xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
             http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
   &lt;!-- POM file generated with GWT webAppCreator --&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.domain.GwtMavenSpringHibernate&lt;/groupId&gt;
         &lt;artifactId&gt;GwtMavenSpringHibernate&lt;/artifactId&gt;
          &lt;packaging&gt;war&lt;/packaging&gt;
           &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
        &lt;name&gt;GWT Maven Archetype&lt;/name&gt;
  
         &lt;properties&gt;
      &lt;!-- Convenience property to set the GWT version --&gt;
      &lt;gwtVersion&gt;2.6.0&lt;/gwtVersion&gt;
      &lt;springframeworkVersion&gt;3.1.2.RELEASE&lt;/springframeworkVersion&gt;
      &lt;!-- GWT needs at least java 1.5 --&gt;
      &lt;webappDirectory&gt;${project.build.directory}/${project.build.finalName}             &lt;/webappDirectory&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-servlet&lt;/artifactId&gt;
          &lt;version&gt;${gwtVersion}&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
          &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
          &lt;version&gt;${gwtVersion}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- Spring framework distribution --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt; 
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt; &lt;/dependency&gt; --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-test&lt;/artifactId&gt; 
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; 
          &lt;artifactId&gt;spring-aop&lt;/artifactId&gt; &lt;version&gt;${springframeworkVersion}&lt;/version&gt; 
          &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt; 
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt; &lt;/dependency&gt; --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${springframeworkVersion}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Hibernate --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;4.1.4.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;c3p0&lt;/groupId&gt;
          &lt;artifactId&gt;c3p0&lt;/artifactId&gt;
          &lt;version&gt;0.9.1.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Databases Config --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.17&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Apache commons-logging --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- SLF4J --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;version&gt;1.6.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Apache log4j --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.2.17&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- spring4gwt --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.spring4gwt&lt;/groupId&gt;
          &lt;artifactId&gt;spring4gwt&lt;/artifactId&gt;
          &lt;version&gt;0.0.1&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;${basedir}/src/main/webapp/WEB-INF/lib/spring4gwt-0.0.1.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
      &lt;!-- Test --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.7&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.GA&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.GA&lt;/version&gt;
          &lt;classifier&gt;sources&lt;/classifier&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;!-- Generate compiled stuff in the folder used for developing mode --&gt;
      &lt;outputDirectory&gt;${webappDirectory}/WEB-INF/classes&lt;/outputDirectory&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;!-- GWT Maven Plugin --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;compile&lt;/goal&gt;
                          &lt;goal&gt;test&lt;/goal&gt;
                          &lt;goal&gt;i18n&lt;/goal&gt;
                          &lt;goal&gt;generateAsync&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                  documentation at codehaus.org --&gt;
              &lt;configuration&gt;
                  &lt;runTarget&gt;GwtSpringHibernate.html&lt;/runTarget&gt;
                  &lt;hostedWebapp&gt;${webappDirectory}&lt;/hostedWebapp&gt;
                  &lt;i18nMessagesBundle&gt;com.domain.GwtMavenSpringHibernate.client.Messages&lt;/i18nMessagesBundle&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                                      &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
                                      &lt;versionRange&gt;[2.6.0,)&lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;resources&lt;/goal&gt;
                                          &lt;goal&gt;compile&lt;/goal&gt;
                                          &lt;goal&gt;i18n&lt;/goal&gt;
                                         &lt;goal&gt;generateAsync&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;execute /&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                                      &lt;versionRange&gt;[3.2.1,)&lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;exploded&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;execute /&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
  
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
  
  
          &lt;!-- Copy static web files before executing gwt:run --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;compile&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exploded&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;webappDirectory&gt;${webappDirectory}&lt;/webappDirectory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.5&lt;/source&gt;
                  &lt;target&gt;1.5&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  &lt;/build&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;com.springsource.repository.bundles.release&lt;/id&gt;
          &lt;name&gt;EBR Spring Release Repository&lt;/name&gt;
          &lt;url&gt;http://repository.springsource.com/maven/bundles/release&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;com.springsource.repository.bundles.external&lt;/id&gt;
          &lt;name&gt;EBR External Release Repository&lt;/name&gt;
          &lt;url&gt;http://repository.springsource.com/maven/bundles/external&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p></p>
  
  <p>But in GwtMavenSpringHibernate Class those lines contain errors </p>
  
  <pre><code>private final Messages messages = GWT.create(Messages.class);
  final Button sendButton = new Button(messages.sendButton() );
  nameField.setText( messages.nameField() );
  
  
  - Messages cannot be resolved to a type
  - The method create(Class&lt;?&gt;) from the type GWT refers to the missing type 
   Messages .......
  </code></pre>
  
  <p>I can't figure out where the problem is ? Please help.</p>