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

  • Home
  • SEARCH
  • 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 8331267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:21:50+00:00 2026-06-09T02:21:50+00:00

I have a Grails project that I created using Groovy/Grails Tool Suite version 3.0.0M3

  • 0

I have a Grails project that I created using Groovy/Grails Tool Suite version 3.0.0M3 running on Windows 7 with JDK 1.7. The Grails version is 2.0.4.

There is a unit test class that was running fine until I refactored the class under test by changing method names and by adding new methods. The class under test resides in a package under src/java. The unit test class was updated to reflect the refactoring changes, but now when grails test-app is executed, the unit test reports compilation errors stating that it “cannot find symbol” All of these errors pertain to either the renamed methods or the new methods that I added. Note that the Tool Suite does not display any error markers within the project explorer pane.

I have run grails clean both from the command line and from within the Tool Suite, as well as the Tool Suite project->clean command. My BuildConfig.groovy has the correct directory set for grails.project.class.dir, and I verified that the class file within that location is being updated after a compile. Here is one of the error messages that is reported

XMLUtilTest.java:73: error: cannot find symbol

 Package pkg = u.unmarshalPackage(packageRefXml);
                ^

symbol: method unmarshalPackage(String)
location: variable u of type XMLUtil

  • 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-09T02:21:52+00:00Added an answer on June 9, 2026 at 2:21 am

    Try the following:

    1. Run refresh dependencies on your project. (Alt+G R while selecting the project) Run your tests again. Working?
    2. try running test-app on the command line. Does it work?
    3. You can also try right-clicking on the tests Run As -> JUnit test

    My guess is that grails inside of STS is using some of the old classes. The Eclipse project will use target-eclipse/classes for its output folder, but Grails by default will use target/classes for its output folder.

    I’d do a grep on the command line inside of your project for files called XMLUtil*.class and you might find where the duplicates lie.

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

Sidebar

Related Questions

I have a Grails 2.0.0 project that was created using grails create-app . In
I have a Grails project that is using Hibernate XML. The Hibernate file are
I have an existing Grails project that I am upgrading to a new version.
I have a grails project that contains a few domain objects. I am using
I have a Grails project with pom.xml that is treated as Maven project by
I am currently working on grails project. I have created eight different plugins. Each
I have a project which uses groovy 1.7.5 and grails 1.3.4. but my new
I'm considering using Grails for my current project. I have a couple of requirements
I have a grails project and I use the gwt plugin 0.6.1. GWT version
I have a class in src/groovy in my grails project. How do i make

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.