Org. springframework. beans. factory. unsatisfieddependencyexception: Error creating bean with name 'categorscontroller' defined in file [D:/Eclipse/workspace /. metadata /. plugins/org. eclipse. WST. server. core/tmp0/wtpwebapps/openbi/WEB-INF/classes/org/springframework/webflow/samples/booking/hotelscontroller. class]: unsatisfied dependency expressed through constructor argument with index 0 of Type [Org. springframework. webflow. samples. booking. bookingservice]: Error creating bean with name 'bookingservice': injection of persistence methods failed; Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'entitymanagerfactory 'defined in servletcontext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; Nested exception is Java. lang. illegalstateexception: No persistence units parsed from {classpath *: META-INF/persistence. XML}; Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'bookingservice': injection of persistence methods failed; Nested exception is Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'entitymanagerfactory 'defined in servletcontext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; Nested exception is Java. lang. illegalstateexception: No persistence units parsed from {classpath *: META-INF/persistence. XML}
note that the META-INF here should be at the same level of classes directory, not the same level of web-INF directory, remember.