2012/8/25 Jonathan Rosenberg <j...@tabbysplace.org>:
> 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.
>

You aren't saying Toncat version, so it's not a Tomcat problem either.


> 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.

Do you have "Project -> Compile automatically" option turned on?

>
> Strangely, it seems to find the class every so often, for no apparent reason.
>
> Where do I look next?
>

Run with a debugger? (You need to attach source code to catalina.jar
to be able to place a break point in its classes).

Tell us the full stacktrace?

Best regards,
Konstantin Kolinko

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

Reply via email to