java - Spring MVC - SEVERE: Exception starting filter Spring OpenEntityManagerInViewFilter -


i did reverse engineering using spring roo exsisting mysql db, creates necessity files, , did mvn clean install, executes , no testing error, when run mvn tomcat:run shows error following

e:\java\maven\testing\ui\admin>mvn tomcat:run [info] scanning projects... [info] [info] ------------------------------------------------------------------------ [info] building admin 0.1.0.build-snapshot [info] ------------------------------------------------------------------------ [info] [info] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ admin >>> [info] [info] --- aspectj-maven-plugin:1.2:compile (default) @ admin --- [info] [info] --- maven-resources-plugin:2.6:resources (default-resources) @ admin --- [info] using 'utf-8' encoding copy filtered resources. [info] copying 1 resource [info] [info] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ admin --- [info] no sources compile [info] [info] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ admin <<< [info] [info] --- tomcat-maven-plugin:1.1:run (default-cli) @ admin --- [info] running war on http://localhost:8080/admin [info] creating tomcat server configuration @ e:\java\maven\propjungle66\ui\adm in\target\tomcat jul 15, 2016 3:22:21 pm org.apache.catalina.startup.embedded start info: starting tomcat server jul 15, 2016 3:22:21 pm org.apache.catalina.core.standardengine start info: starting servlet engine: apache tomcat/6.0.29 jul 15, 2016 3:22:21 pm org.apache.catalina.core.applicationcontext log info: initializing spring root webapplicationcontext log4j:warn no appenders found logger (org.springframework.web.conte xt.contextloader). log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more in fo. jul 15, 2016 3:22:22 pm org.apache.catalina.core.standardcontext filterstart severe: exception starting filter spring openentitymanagerinviewfilter java.lang.classnotfoundexception: org.springframework.orm.jpa.support.openentity managerinviewfilter         @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloa der.java:1645)         @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloa der.java:1491)         @ org.apache.catalina.core.applicationfilterconfig.getfilter(applicatio nfilterconfig.java:269)         @ org.apache.catalina.core.applicationfilterconfig.setfilterdef(applica tionfilterconfig.java:422)         @ org.apache.catalina.core.applicationfilterconfig.<init>(applicationfi lterconfig.java:115)         @ org.apache.catalina.core.standardcontext.filterstart(standardcontext. java:4001)         @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4 651)         @ org.apache.catalina.core.containerbase.start(containerbase.java:1045)          @ org.apache.catalina.core.standardhost.start(standardhost.java:785)         @ org.apache.catalina.core.containerbase.start(containerbase.java:1045)          @ org.apache.catalina.core.standardengine.start(standardengine.java:445 )         @ org.apache.catalina.startup.embedded.start(embedded.java:825)         @ org.codehaus.mojo.tomcat.abstractrunmojo.startcontainer(abstractrunmo jo.java:558)         @ org.codehaus.mojo.tomcat.abstractrunmojo.execute(abstractrunmojo.java :255)         @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(default buildpluginmanager.java:132)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:208)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:153)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:145)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproje ct(lifecyclemodulebuilder.java:116)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproje ct(lifecyclemodulebuilder.java:80)         @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethre adedbuilder.build(singlethreadedbuilder.java:51)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecycl estarter.java:120)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:347)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:154)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:582)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:214)         @ org.apache.maven.cli.mavencli.main(mavencli.java:158)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces sorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(laun cher.java:289)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.jav a:229)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(la uncher.java:415)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java: 356)  jul 15, 2016 3:22:22 pm org.apache.catalina.core.standardcontext start severe: error filterstart jul 15, 2016 3:22:22 pm org.apache.catalina.core.standardcontext start severe: context [/admin] startup failed due previous errors jul 15, 2016 3:22:22 pm org.apache.catalina.core.applicationcontext log info: closing spring root webapplicationcontext 

web.xml

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" version="2.5" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">       <display-name>admin</display-name>      <description>roo generated admin application</description>       <!-- enable escaping of form submission contents -->     <context-param>         <param-name>defaulthtmlescape</param-name>         <param-value>true</param-value>     </context-param>      <context-param>         <param-name>contextconfiglocation</param-name>         <param-value>classpath*:meta-inf/spring/applicationcontext*.xml</param-value>     </context-param>      <filter>         <filter-name>characterencodingfilter</filter-name>         <filter-class>org.springframework.web.filter.characterencodingfilter</filter-class>         <init-param>             <param-name>encoding</param-name>             <param-value>utf-8</param-value>         </init-param>         <init-param>             <param-name>forceencoding</param-name>             <param-value>true</param-value>         </init-param>     </filter>        <filter>         <filter-name>httpmethodfilter</filter-name>         <filter-class>org.springframework.web.filter.hiddenhttpmethodfilter</filter-class>     </filter>      <filter>         <filter-name>spring openentitymanagerinviewfilter</filter-name>         <filter-class>org.springframework.orm.jpa.support.openentitymanagerinviewfilter</filter-class>     </filter>     <filter-mapping>         <filter-name>characterencodingfilter</filter-name>         <url-pattern>/*</url-pattern>     </filter-mapping>      <filter-mapping>         <filter-name>httpmethodfilter</filter-name>         <url-pattern>/*</url-pattern>     </filter-mapping>      <filter-mapping>         <filter-name>spring openentitymanagerinviewfilter</filter-name>         <url-pattern>/*</url-pattern>     </filter-mapping>      <!-- creates spring container shared servlets , filters -->     <listener>         <listener-class>org.springframework.web.context.contextloaderlistener</listener-class>     </listener>      <!-- handles spring requests -->     <servlet>         <servlet-name>admin</servlet-name>         <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>         <init-param>             <param-name>contextconfiglocation</param-name>             <param-value>web-inf/spring/webmvc-config.xml</param-value>         </init-param>         <load-on-startup>1</load-on-startup>     </servlet>      <servlet-mapping>         <servlet-name>admin</servlet-name>         <url-pattern>/</url-pattern>     </servlet-mapping>      <session-config>         <session-timeout>10</session-timeout>     </session-config>      <error-page>         <exception-type>java.lang.exception</exception-type>         <location>/uncaughtexception</location>     </error-page>      <error-page>         <error-code>404</error-code>         <location>/resourcenotfound</location>     </error-page> </web-app> 

pom.xml

<?xml version="1.0" encoding="utf-8" standalone="no"?> <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.pj.ui.admin</groupid>     <artifactid>admin</artifactid>     <packaging>war</packaging>     <version>0.1.0.build-snapshot</version>     <name>admin</name>     <properties>         <aspectj.version>1.7.0</aspectj.version>         <java.version>1.6</java.version>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>         <roo.version>1.2.3.release</roo.version>         <slf4j.version>1.7.2</slf4j.version>         <spring.version>3.2.0.release</spring.version>     </properties>     <repositories>         <repository>             <id>spring-maven-release</id>             <name>spring maven release repository</name>             <url>http://maven.springframework.org/release</url>         </repository>         <repository>             <id>spring-maven-milestone</id>             <name>spring maven milestone repository</name>             <url>http://maven.springframework.org/milestone</url>         </repository>         <repository>             <id>spring-roo-repository</id>             <name>spring roo repository</name>             <url>http://spring-roo-repository.springsource.org/release</url>         </repository>     </repositories>     <pluginrepositories>         <pluginrepository>             <id>spring-maven-release</id>             <name>spring maven release repository</name>             <url>http://maven.springframework.org/release</url>         </pluginrepository>         <pluginrepository>             <id>spring-maven-milestone</id>             <name>spring maven milestone repository</name>             <url>http://maven.springframework.org/milestone</url>         </pluginrepository>         <pluginrepository>             <id>spring-roo-repository</id>             <name>spring roo repository</name>             <url>http://spring-roo-repository.springsource.org/release</url>         </pluginrepository>     </pluginrepositories>     <dependencies>         <!-- general dependencies standard applications -->         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>4.10</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>log4j</groupid>             <artifactid>log4j</artifactid>             <version>1.2.16</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-api</artifactid>             <version>${slf4j.version}</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>jcl-over-slf4j</artifactid>             <version>${slf4j.version}</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-log4j12</artifactid>             <version>${slf4j.version}</version>         </dependency>         <dependency>             <groupid>org.aspectj</groupid>             <artifactid>aspectjrt</artifactid>             <version>${aspectj.version}</version>         </dependency>         <dependency>             <groupid>org.aspectj</groupid>             <artifactid>aspectjweaver</artifactid>             <version>${aspectj.version}</version>         </dependency>         <dependency>             <groupid>javax.servlet</groupid>             <artifactid>servlet-api</artifactid>             <version>2.5</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>net.sf.flexjson</groupid>             <artifactid>flexjson</artifactid>             <version>2.1</version>         </dependency>         <dependency>             <groupid>org.apache.commons</groupid>             <artifactid>commons-lang3</artifactid>             <version>3.1</version>         </dependency>         <!-- roo dependencies -->         <dependency>             <groupid>org.springframework.roo</groupid>             <artifactid>org.springframework.roo.annotations</artifactid>             <version>${roo.version}</version>             <scope>provided</scope>         </dependency>         <!-- spring dependencies -->         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-core</artifactid>             <version>${spring.version}</version>             <exclusions>                 <exclusion>                     <groupid>commons-logging</groupid>                     <artifactid>commons-logging</artifactid>                 </exclusion>             </exclusions>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-test</artifactid>             <version>${spring.version}</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-context</artifactid>             <version>${spring.version}</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-aop</artifactid>             <version>${spring.version}</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-aspects</artifactid>             <version>${spring.version}</version>         </dependency>     <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-webmvc</artifactid>             <version>${spring.version}</version>         </dependency>         <dependency>             <groupid>org.springframework.webflow</groupid>             <artifactid>spring-js-resources</artifactid>             <version>2.2.1.release</version>         </dependency>         <dependency>             <groupid>commons-digester</groupid>             <artifactid>commons-digester</artifactid>             <version>2.1</version>             <exclusions>                 <exclusion>                     <groupid>commons-logging</groupid>                     <artifactid>commons-logging</artifactid>                 </exclusion>             </exclusions>         </dependency>         <dependency>             <groupid>commons-fileupload</groupid>             <artifactid>commons-fileupload</artifactid>             <version>1.2.2</version>         </dependency>         <dependency>             <groupid>javax.servlet.jsp.jstl</groupid>             <artifactid>jstl-api</artifactid>             <version>1.2</version>         </dependency>         <dependency>             <groupid>org.glassfish.web</groupid>             <artifactid>jstl-impl</artifactid>             <version>1.2</version>         </dependency>         <dependency>             <groupid>javax.el</groupid>             <artifactid>el-api</artifactid>             <version>2.2</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>joda-time</groupid>             <artifactid>joda-time</artifactid>             <version>1.6</version>         </dependency>         <dependency>             <groupid>javax.servlet.jsp</groupid>             <artifactid>jsp-api</artifactid>             <version>2.1</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>commons-codec</groupid>             <artifactid>commons-codec</artifactid>             <version>1.5</version>         </dependency>     <dependency>             <groupid>org.apache.tiles</groupid>             <artifactid>tiles-jsp</artifactid>             <version>2.2.2</version>         </dependency>     </dependencies>     <build>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-war-plugin</artifactid>                 <version>2.2</version>                 <!-- <configuration> <webxml>target/web.xml</webxml> </configuration> -->             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>2.5.1</version>                 <configuration>                     <source>${java.version}</source>                     <target>${java.version}</target>                     <encoding>${project.build.sourceencoding}</encoding>                 </configuration>             </plugin>             <plugin>                 <groupid>org.codehaus.mojo</groupid>                 <artifactid>aspectj-maven-plugin</artifactid>                 <version>1.2</version>                 <!-- nb: not use 1.3 or 1.3.x due maspectj-90 , not use 1.4 due declare parents issue  -->                 <dependencies>                     <!-- nb: must use maven 2.0.9 or above or these ignored (see mng-2972) -->                     <dependency>                         <groupid>org.aspectj</groupid>                         <artifactid>aspectjrt</artifactid>                         <version>${aspectj.version}</version>                     </dependency>                     <dependency>                         <groupid>org.aspectj</groupid>                         <artifactid>aspectjtools</artifactid>                         <version>${aspectj.version}</version>                     </dependency>                 </dependencies>                 <executions>                     <execution>                         <goals>                             <goal>compile</goal>                             <goal>test-compile</goal>                         </goals>                     </execution>                 </executions>                 <configuration>                     <outxml>true</outxml>                     <aspectlibraries>                         <aspectlibrary>                             <groupid>org.springframework</groupid>                             <artifactid>spring-aspects</artifactid>                         </aspectlibrary>                     </aspectlibraries>                     <source>${java.version}</source>                     <target>${java.version}</target>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-resources-plugin</artifactid>                 <version>2.6</version>                 <configuration>                     <encoding>${project.build.sourceencoding}</encoding>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-surefire-plugin</artifactid>                 <version>2.12</version>                 <configuration>                     <printsummary>false</printsummary>                     <redirecttestoutputtofile>true</redirecttestoutputtofile>                     <excludes>                         <exclude>**/*_roo_*</exclude>                     </excludes>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-assembly-plugin</artifactid>                 <version>2.3</version>                 <configuration>                     <descriptorrefs>                         <descriptorref>jar-with-dependencies</descriptorref>                     </descriptorrefs>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-deploy-plugin</artifactid>                 <version>2.7</version>             </plugin>             <!-- ide -->             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-eclipse-plugin</artifactid>                 <version>2.7</version>                 <!-- note 2.8 not work aspectj aspect path -->                 <configuration>                     <downloadsources>true</downloadsources>                     <downloadjavadocs>false</downloadjavadocs>                     <wtpversion>2.0</wtpversion>                     <additionalbuildcommands>                         <buildcommand>                             <name>org.eclipse.ajdt.core.ajbuilder</name>                             <arguments>                                 <aspectpath>org.springframework.aspects</aspectpath>                             </arguments>                         </buildcommand>                         <buildcommand>                             <name>org.springframework.ide.eclipse.core.springbuilder</name>                         </buildcommand>                     </additionalbuildcommands>                     <additionalprojectnatures>                         <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>                         <projectnature>com.springsource.sts.roo.core.nature</projectnature>                         <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>                     </additionalprojectnatures>                 </configuration>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-idea-plugin</artifactid>                 <version>2.2</version>                 <configuration>                     <downloadsources>true</downloadsources>                     <dependenciesaslibraries>true</dependenciesaslibraries>                 </configuration>             </plugin>             <plugin>                 <groupid>org.codehaus.mojo</groupid>                 <artifactid>tomcat-maven-plugin</artifactid>                 <version>1.1</version>             </plugin>             <plugin>                 <groupid>org.mortbay.jetty</groupid>                 <artifactid>jetty-maven-plugin</artifactid>                 <version>8.1.4.v20120524</version>                 <configuration>                     <webappconfig>                         <contextpath>/${project.name}</contextpath>                     </webappconfig>                 </configuration>             </plugin>         </plugins>     </build> </project> 

any suggestions ?

for missing class openentitymanagerinviewfilte need

<dependency>    <groupid>org.springframework</groupid>    <artifactid>spring-orm</artifactid>    <version>${spring.version}</version> </dependency> 

this class not used compile or run unit tests. thats why did not notice before.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -