tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rosenberg ...@tabbysplace.org>
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"
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message