You Spring Project is not running

Ads
 

You Spring Project is not running

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

View Answers

Ads









Related Tutorials/Questions & Answers:
You Spring Project is not running
You Spring Project is not running  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
Im getting this error while running JPA project
Im getting this error while running JPA project  Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: examplePersistenceUnit] Unable to configure EntityManagerFactory
Advertisements
Apache Server Running But project not deploying on server?
Apache Server Running But project not deploying on server?  May 27, 2012 7:19:23 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance
How to find a config file in spring project
How to find a config file in spring project  how to find configuration file in the spring project
Spring web mvc 3.0 mysql project
Spring web mvc 3.0 mysql project  Hello Sir... I want a complete database connectivity web project in spring mvc 3.0..Just give me a simple example...: http://www.roseindia.net/spring/jdbc-template-batch-update.shtml
How can you handle form in Spring 3.2 MVC?
How can you handle form in Spring 3.2 MVC?  Hi, How can you handle... the How can you handle form in Spring 3.2 MVC?   Hi, This article.... For more please visit the How can you handle form in Spring 3.2 MVC
Spring and hibernate based Online Shopping project with source code
Spring and hibernate based Online Shopping project with source code  Hi all.. i need Spring and hibernate based Online Shopping project with source code. Please kindly send me all the project source code. Thanks & Regards
Spring 3.2
New version of Spring, Spring 3.2, is released now. It has many new features and enhancements. The main focus during development of Spring 3.2 was to assuring the smooth running of this framework on JDK7
Spring 4 Introduction and example
introduction to Spring 4 Framework, we are explaining you the Spring 4 framework and explained you the code for first Spring Bean based application. You will learn... in Spring Framework, through this video you will learn the basics of Spring
Compiling and Running Java program from command line
Compiling and Running Java program from command line - Video tutorial that explains you all steps necessary to compile and run the Java program from dos prompt on windows computer. In this tutorial I will teach you the process
ModuleNotFoundError: No module named 'running'
to install padas library. You can install running python with following command...ModuleNotFoundError: No module named 'running'  Hi, My Python... 'running' How to remove the ModuleNotFoundError: No module named 'running
How to make Simple form in Spring web?
the Eclipse. If you don't know how to Integrated Tomcat in Eclipse then check our.... In this tutorial we are creating a simple form in Spring MVC which displays two... of the tutorial: In the following video we have explained you all the steps
Hibernate Spring Integration
In this section, you will learn how to Integration Hibernate with Spring
jsf spring hibernate
In this section, you will learn integration of jsf spring hibernate
jsf hibernate spring
In this section, you will learn integration of jsf hibernate spring
Locales in Spring MVC
In this section, you will learn about Locales in Spring MVC
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.  could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project
spring
spring  sir can you explain me the flow of sample example by using spring? thanks
a complete project on spring web mvc using oracle database in netbeans ide 7.0
a complete project on spring web mvc using oracle database in netbeans ide 7.0  dear sir , i want a complete tutorial on the title matter.please sir help me . any full developped project based on shopping cart can
Spring Integration 3.0 Release is released and available for download
Spring Integration 3.0 Release is released and available for download - It supports Enterprise Integration Patterns The Spring Integration project supports... the Maven tool for your project you can use the following dependency code: <
stop the running hidden server
stop the running hidden server  Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you
Running Java Applications as software
Running Java Applications as software   Please tell me what to do if you want your java application to run like a real software,eg a java GUI application that connects to the database(Mysql)running on the computer like any other
Running Jar file in Windows
Running Jar file in Windows  Running Jar file in Windows
spring
spring   hi how can we make spring bean as prototype how can we load applicationcontext in spring what is dependency injection
spring
spring  javascript browse image in spring progrme
spring
spring  Access JSP files in Spring
hibernate spring
In this section, you will learn how to Integration Hibernate with Spring with an example
spring
spring  sir how to access multiple jsp's in spring
running time watch
running time watch   how to set running watch in applycation with ajax
applet is running but no display
applet is running but no display  applet is running but no display.. its showing white screen with applet started
ModuleNotFoundError: No module named 'keep-running'
environment you have to install padas library. You can install keep-running python...ModuleNotFoundError: No module named 'keep-running'  Hi, My Python... 'keep-running' How to remove the ModuleNotFoundError: No module named '

Ads