java - Error ClassNotFoundException org.springframework.web.servlet.DispatcherServlet -


i have problem running project in eclipse java ee. i'm using apache tomcat 7.0 , when run program gives me following errors:

java.lang.classnotfoundexception: org.springframework.web.servlet.dispatcherservlet @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1702) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1547) @ org.apache.catalina.core.defaultinstancemanager.loadclass(defaultinstancemanager.java:532) @ org.apache.catalina.core.defaultinstancemanager.loadclassmaybeprivileged(defaultinstancemanager.java:514) @ org.apache.catalina.core.defaultinstancemanager.newinstance(defaultinstancemanager.java:142) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1144) @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1088) @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:5176) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5460) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) 

i googled no resolve can me.one of suggestion go in properties-deployment assemble-add-java build path entries , select maven dependency when click on java build shows me nothing.here pom.xml:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.sample</groupid> <artifactid>hospitalmanagement</artifactid> <packaging>war</packaging> <version>1.0-snapshot</version> <name>management</name> <url>http://maven.apache.org</url> <properties>     <spring.version>4.0.5.release</spring.version>     <hibernate.version>4.3.5.final</hibernate.version>     <log4j.version>1.2.17</log4j.version>     <jdk.version>1.7</jdk.version>     <context.path>hospitalmanagement</context.path> </properties> <build>     <finalname>${pom.artifactid}</finalname>     <plugins>         <plugin>             <artifactid>maven-compiler-plugin</artifactid>             <configuration>                 <source>${jdk.version}</source>                 <target>${jdk.version}</target>             </configuration>         </plugin>     </plugins> </build> <dependencies>     <dependency>         <groupid>log4j</groupid>         <artifactid>log4j</artifactid>         <version>${log4j.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-orm</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-jdbc</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-jdbc</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-web</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-webmvc</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>jstl</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>     </dependency>     <dependency>         <groupid>com.google.code.gson</groupid>         <artifactid>gson</artifactid>         <version>2.2.2</version>     </dependency>     <dependency>         <groupid>mysql</groupid>         <artifactid>mysql-connector-java</artifactid>         <version>5.1.6</version>     </dependency>     <dependency>         <groupid>org.codehaus.jackson</groupid>         <artifactid>jackson-mapper-asl</artifactid>         <version>1.9.10</version>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-entitymanager</artifactid>         <version>${hibernate.version}</version>     </dependency>      <!-- jsf -->     <dependency>         <groupid>javax.faces</groupid>         <artifactid>jsf-api</artifactid>         <version>2.1</version>     </dependency>      <!-- bean validation api -->     <dependency>         <groupid>javax.validation</groupid>         <artifactid>validation-api</artifactid>         <version>1.1.0.final</version>     </dependency>      <!-- http://mvnrepository.com/artifact/javax.transaction/javax.transaction-api -->     <dependency>         <groupid>javax.transaction</groupid>         <artifactid>javax.transaction-api</artifactid>         <version>1.2</version>     </dependency>     <!-- http://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa -->     <dependency>         <groupid>org.springframework.data</groupid>         <artifactid>spring-data-jpa</artifactid>         <version>1.10.1.release</version>     </dependency>         <!-- spring security -->     <dependency>         <groupid>org.springframework.security</groupid>         <artifactid>spring-security-core</artifactid>         <version>4.0.1.release</version>     </dependency>     <dependency>         <groupid>org.springframework.security</groupid>         <artifactid>spring-security-web</artifactid>         <version>4.0.1.release</version>     </dependency>     <dependency>         <groupid>org.springframework.security</groupid>         <artifactid>spring-security-config</artifactid>         <version>4.0.1.release</version>     </dependency>   </dependencies> </project> 

i tried configure project, doing maven-clean, maven-install, maven-build no result, error standing there. suggestions? also, downloaded jar org.springframework.web.servlet don't understand put it. read put in in web-inf/lib, should put manually , yes, how?

use maven-war-plugin include dependencies war.

http://maven.apache.org/plugins/maven-war-plugin/examples/including-excluding-files-from-war.html

web-inf/lib - special folder in war placing third-party dependecies classpath access.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -