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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:14:12+00:00 2026-06-17T00:14:12+00:00

I am trying to deploy an application using Spring Roo and GWT. I am

  • 0

I am trying to deploy an application using Spring Roo and GWT. I am a starter at both GWT and Roo and started by following this tutorial, but there seems to be a ploblem because the sample application cannot be started usin mvn:gwt run.
The result of the above maven command:

[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt_crash.ly 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> gwt-maven-plugin:2.2.0:run (default-cli) @ gwt_crash.ly >>>
[INFO] 
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ gwt_crash.ly ---
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.725s
[INFO] Finished at: Wed Nov 28 18:10:54 EET 2012
[INFO] Final Memory: 10M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project gwt_crash.ly: Compiler errors :
[ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Report o", Long.class).getSingleResult();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Report o", Report.class).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Report o", Report.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Employee o", Long.class).getSingleResult();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Employee o", Employee.class).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Employee o", Employee.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Expense o", Long.class).getSingleResult();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Expense o", Expense.class).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] error at return entityManager().createQuery("SELECT o FROM Expense o", Expense.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
[ERROR] ^^
[ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I have tried using both standard eclipse and STS but with no luck and every tutorial I can find is about roo 1.1.1.
So my question is if GWT is compatible with Roo and if yes is there a working sample code-tutorial to use?
Can someone please help me?

  • 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-17T00:14:14+00:00Added an answer on June 17, 2026 at 12:14 am

    You might be coming across some version mismatch.

    The documentation is not changed but always refer to latest – https://developers.google.com/web-toolkit/doc/latest/tutorial/roo-sts#install

    Latest STS for GWT 2.5 –
    http://blog.springsource.org/2012/12/18/spring-roo-1-2-3-release-available/

    Also ensure you are using latest gwt-maven-plugin version 2.5

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

Sidebar

Related Questions

I'm trying to deploy my web app to Azure using this method , but
I'm trying to use Spring AOP to intercept methods of my GWT-RPC application (using
I am trying to deploy a Spring application on WAS 6.0 (JDK 1.4.2). Day
Trying to deploy application using ClickOnce to a webserver running sharepoint. I can publish
I'm trying to deploy an application in weblogic which is based on a Spring
I'm trying to build a spring roo project using hibernate and an oracle database.
I'm trying to build and deploy a web application using MSBuild and TeamCity. I've
I'm trying to deploy a web application using MSDeploy, on Team Build in TFS.
I'm trying to deploy my Rails application using Capistrano. My deploy.rb file looks like
I am trying to deploy my web-application to tomcat using maven 3.x here is

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.