This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes org.springframework.beans.factory.CannotLoadBeanCl assException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.beans.factory.CannotLoadBeanCl assException: " Watch "org.springframework.beans.factory.CannotLoadBeanCl assException: " New topic
Author

org.springframework.beans.factory.CannotLoadBeanCl assException:

gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
I had created the simple spring MVC controller, when i tried to execute i am getting the error.

Error Message:

org.springframework.beans.factory.CannotLoadBeanCl assException: Cannot find class [SpringApp.web.java.HelloController] for bean with name 'Redirect.jsp' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]; nested exception is java.lang.ClassNotFoundException: SpringApp.web.java.HelloController


This is my application structure.

SpringApp
----Web Pages
----META-INF
----WEB-INF
----springapp-servlet.xml
----web.xml
----Redirect.jsp
----index1.jsp
----Source Packages
----java
----HelloController.java



web.xml
--------


springapp-servlet.xml
----------------------



index1.jsp
---------


Redirect.jsp
------------



HelloController.java
-------------------

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7



does not match the package on your controller



Your application structure looks a little odd. Have a look at this
http://gordondickens.com/wordpress/2012/07/03/enterprise-spring-best-practices-part-1-project-config/



[How To Ask Questions][Read before you PM me]
gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
Thanks for your email..

i created the webapplication project using the NETBEANS IDE..

when i tried to create the java file, it creates in the source package.. means (src/java).
gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
i am closing this, since i got after moving inside the WEB-INF/jsp with redirect.jsp and accessing using the http://localhost:8080/SpringApp/Redirect.htm
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.springframework.beans.factory.CannotLoadBeanCl assException:
 
Similar Threads
Error: spring-servlet.xml
Does Spring framework supported by godaddy shared linux hosting
Spring MVC Problem
Deploying Simple Spring MVC webapp to Weblogic 9.2
Why NestedServletException?