Hi Team,
I'm trying to run the following project for which i have shared the link below:-
http://www.roseindia.net/spring/spring4/login-form-using-spring-mvc-and-hibernate.shtml
I have tried installing it on my eclipse but it is not working for me following error is coming...
Oct 17, 2016 11:37:06 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_91\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.8.0_91/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_91/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_91/bin/../jre/lib/amd64;C:\app\user\product\11.2.0\dbhome_2\bin;C:\app\user\product\11.2.0\dbhome_1\bin;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\TortoiseSVN\bin;;C:\Program Files (x86)\Microsoft SQL Server 2012\110\DTS\Bin\;C:\Program Files (x86)\Google\Google Apps Sync\;C:\Program Files (x86)\Google\Google Apps Migration\;C:\Program Files\Microsoft SQL Server 2012\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server 2012\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server 2012\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server 2012\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server 2012\110\DTS\Binn\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\New Joining Setups\Toolkit New User Oroprise\eclipse\eclipse-Luna\eclipse;;. Oct 17, 2016 11:37:06 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Oct 17, 2016 11:37:06 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Oct 17, 2016 11:37:07 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1245 ms Oct 17, 2016 11:37:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Oct 17, 2016 11:37:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.55 Oct 17, 2016 11:37:09 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [137] milliseconds. Oct 17, 2016 11:37:09 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\SpringHiber.xml Oct 17, 2016 11:37:09 AM org.apache.catalina.startup.SetContextPropertiesRule begin WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringHiber' did not find a matching property. Oct 17, 2016 11:37:09 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SpringHiber\WEB-INF\lib\servlet-2.3.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class Oct 17, 2016 11:37:13 AM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://www.springframework.org/tags/form is already defined Oct 17, 2016 11:37:14 AM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined Oct 17, 2016 11:37:14 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. Oct 17, 2016 11:37:45 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public net.roseindia.service.LoginService net.roseindia.controllers.LoginController.loginService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [net.roseindia.controllers] for bean with name 'LoginController' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: net.roseindia.controllers at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1862) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: public net.roseindia.service.LoginService net.roseindia.controllers.LoginController.loginService; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [net.roseindia.controllers] for bean with name 'LoginController' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: net.roseindia.controllers at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:507) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:283) ... 26 more Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [net.roseindia.controllers] for bean with name 'LoginController' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: net.roseindia.controllers at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1235) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1304) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:315) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:185) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:823) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:780) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:697) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478) ... 28 more Caused by: java.lang.ClassNotFoundException: net.roseindia.controllers at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1256) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1227) ... 36 more Oct 17, 2016 11:37:45 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Oct 17, 2016 11:37:45 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/SpringHiber] startup failed due to previous errors Oct 17, 2016 11:37:45 AM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Oct 17, 2016 11:37:45 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\SpringHiber.xml has finished in 36,412 ms Oct 17, 2016 11:37:45 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\springmvclogin.xml Oct 17, 2016 11:37:45 AM org.apache.catalina.startup.SetContextPropertiesRule begin WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:springmvclogin' did not find a matching property. Oct 17, 2016 11:37:50 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\springmvclogin.xml has finished in 5,078 ms Oct 17, 2016 11:37:50 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\SpringMvcTestingNew.xml Oct 17, 2016 11:37:50 AM org.apache.catalina.startup.SetContextPropertiesRule begin WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMvcTestingNew' did not find a matching property. log4j:WARN No appenders could be found for logger (org.springframework.web.servlet.DispatcherServlet). log4j:WARN Please initialize the log4j system properly. Oct 17, 2016 11:37:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'spring-dispatcher' Oct 17, 2016 11:37:56 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor C:\Users\user\examples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\SpringMvcTestingNew.xml has finished in 5,702 ms Oct 17, 2016 11:37:56 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Oct 17, 2016 11:37:56 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Oct 17, 2016 11:37:56 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 49447 ms
http://www.roseindia.net/spring/spring4/login-form-using-spring-mvc-and-hibernate.shtml
Please tell me the problem....
Ads