tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rosenberg>
Subject Class not Found, but it's in WEB-INF/classes
Date Sat, 25 Aug 2012 17:36:31 GMT
I'm learning Spring by working on a very small Sporing Hello World app
in Eclipse.  I know this isn;t a Spring list, but I don;t think this
is a Spring problem.

In my dispatcher-servlet config file (Spring specific file) I have this

        	<bean name="/hello.html"

When I start the server (within Eclipse), I get this error

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [org.tabbysplace.catalog.HelloWorldController] for bean
with name '/hello.html' defined in ServletContext resource
[/WEB-INF/dispatcher-servlet.xml]; nested exception is

caused by


I have checked (& rechecked) & the class file HelloWorldController IS
in WEB-INF\classes\org\tabbysplace\catalog.

I have tried cleaning the project, deleting the contents of the
classes dir, clean Tomcat work directort, etc., to no avail.

Strangely, it seems to find the class every so often, for no apparent reason.

Where do I look next?

Jonathan Rosenberg
Founder &  Executive Director
Tabby's Place, a Cat Sanctuary

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message