I am getting the Class Not Found Exception when i tried to load a particular class based on the property value.Please find the details.
app.properties Controller.java At line 3 of Controller.java I am gettting
Class Not Found Exception.
I have included /WEB-INF/classes directory in the classpath but unable to resolve the problem.
But if I modify the code as mentioned below and instead of supplying the property value to the class loader, give the class name manually, then the code is working fine
Controller.java Please suggest me in understanding the above problem.
Thanks in advance.
I'd also question your methodology: there are better ways to implement similar functionality (DI/IoC via Spring or similar come to mind immediately).
Joined: Sep 12, 2006
This is a practice assignment for MVC design , where we were told not to use Any popular design techniques and frameworks.
William, thanks for your post. I will trim the property value and test the application.