« Return to Thread: Classpath issue?

Classpath issue?

by David C. Hicks :: Rate this Message:

Reply to Author | View in Thread

I've got a controller (UserController) that derives from a base class,
CustomerFilteringController.  This base class contains a method that
discovers the domain class the controller operates on and returns the
Class of that domain.  Everyone is very happy, right up until I run the
app and go to the controllers "list" page.  Then, I get an error
indicating that the class User cannot be found.  I have a test (code to
follow) that exercises the method, and that test passes in the
"test-app" target.  So, I'm wondering why the app cannot find the User
class when the test clearly can.

public class CustomerFilteringControllerTests extends GroovyTestCase {
    void testDomainClassResolution() {
        UserController controller = new UserController()
        Class domainClass = controller.domainClass()
        assert domainClass.getName() == User.class.getName()
    }
}

Any help?
Thanks,
Dave


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Classpath issue?

LightInTheBox - Buy quality products at wholesale price