jigyasu garg
You Spring Project is not running
0 Answer(s)      4 months and 5 days ago
Posted in : Spring

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

View Answers









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
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
Advertisements
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
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
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
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 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
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
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
spring  sir can you explain me the flow of sample example by using spring? thanks
project
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you
Spring Usage - Spring
Spring Usage  Hi This is Chandra Mohan, I want to work with Spring. SO, i want to working with spring, what are the API's required i.e. how to set the classpath,jar files and Structure of the Spring project. Please
Running JUnit
Running JUnit  Hi sir How can we run JUnit or Run test case Using JUnit using command prompt or CMD? Is there any alternate way of running test cases?   Hi friend You can run JUnit test case by running following
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
spring
spring  how to upgrade from struts2 to spring
Running the application
Running the Application      If you have completed previous steps of the application, this is the last step to see this application running on the browser. Just follow the steps
Project
the same questions in online examination system project in Java Server Pages..., Either you can make 3 different tables consisting of different questions. Set... different table of questions. Accordingly, the questions will get displayed. or if you
project
project  suggest a network security project based on core java with explanation
PROJECT
PROJECT  i want online polling system project codding
project
project  i need a project in java backend sql
spring
spring  sir how to access multiple jsp's in spring
project
project  I'm designing a netbeans java program/project. I have to design a program that captures the persons name and mark #.then find the average... for the results. can you pls give me the amount of labels and and extra buttons
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: <
Locales in Spring MVC
In this section, you will learn about Locales in Spring MVC
jsf hibernate spring
In this section, you will learn integration of jsf hibernate spring
jsf spring hibernate
In this section, you will learn integration of jsf spring hibernate
Hibernate Spring Integration
In this section, you will learn how to Integration Hibernate with Spring
project
project  sir i want module and source code on my project hospital management system