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"
class="org.tabbysplace.catalog.HelloWorldController"/>

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
java.lang.ClassNotFoundException:
org.tabbysplace.catalog.HelloWorldController

caused by

    java.lang.ClassNotFoundException:
org.tabbysplace.catalog.HelloWorldController

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
http://www.tabbysplace.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to