You Spring Project is not running

Ads

 
 

Share on Google+Share on Google+

jigyasu garg
You Spring Project is not running
0 Answer(s)      11 months 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
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
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
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
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
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
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?   ou can run JUnit test case by running following command on CMD
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
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
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
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  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
project
project  i need a project in java backend sql
PROJECT
PROJECT  i want online polling system project codding
project
project  suggest a network security project based on core java with explanation
project
project  does hostel management system project contain any dynamic web pages
project
project  sir i want module and source code on my project hospital management system
PROJECT
PROJECT  i want help on making project on mobile banking application..... the application should have SAVING ACCOUNT,CURRENT ACCOUNT,TRANSACTION ETC......... IN APPLICATION
project
project  i have to do my final year project project topic:Weekly Automatic College Timetable Generation System BRIEF EXPLANATION ABOUT PROJECT This project takes various inputs from the user such as Teacher List, Course List
project
project  sir i want to a project on railway reservation,sir plz give me the source code   plz give me the source code of railway reservation
project
project   hi , we r working on one project related to our results. we using java and for back end sqlserver 2005. In dis we are trying to retrieve result from some site and store it in our data base so that we can perform
project
in the program, you will also calculate and store Monthly Gross Salary, Monthly Tax and Monthly Net Salary for the employee. Further on, you will need to build leave accounting into the system, for which you will need 3 additional fields
Project
Project  Hi, Am starting a new project to draw a 2d graph using java swing and opengl,where in the input for X-axis and Y-axis co=ordinates should be accepted from user... As am very new to this am seeking help so pls help
project
project  For my project their is 2 users, one is users and administers.i want code for giving authentication to these users by using one, means same login form and database table ..my back end is mysgl....and am using wamp sever
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

Ads

 
Advertisement null

Ads