java - Spring 4.3.0.RELEASE + 5.2.0.Final, org.springframework.transaction.interceptor.TransactionInterceptor#0 -


i have exaption , after search in google there no spsific solution fr version of hibernate , spring. please try if can :)

ok thank @m. deinum changed hibrnate 5 , build new tomcat server looking , log now: see more problems in work?

the console log:

    יונ 29, 2016 2:45:03 pm org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:searcher' did not find matching property. יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: server version:        apache tomcat/8.0.36 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: server built:          jun 9 2016 13:55:50 utc יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: server number:         8.0.36.0 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: os name:               windows 10 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: os version:            10.0 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: architecture:          amd64 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: java home:             c:\program files\java\jdk1.8.0_92\jre יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: jvm version:           1.8.0_92-b14 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: jvm vendor:            oracle corporation יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: catalina_base:         c:\users\home\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: catalina_home:         c:\users\home\documents\dropshiping\apache-tomcat-8.0.36 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dcatalina.base=c:\users\home\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dcatalina.home=c:\users\home\documents\dropshiping\apache-tomcat-8.0.36 יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dwtp.deploy=c:\users\home\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: command line argument: -djava.endorsed.dirs=c:\users\home\documents\dropshiping\apache-tomcat-8.0.36\endorsed יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dfile.encoding=cp1255 יונ 29, 2016 2:45:03 pm org.apache.catalina.core.aprlifecyclelistener lifecycleevent info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: c:\program files\java\jdk1.8.0_92\bin;c:\windows\sun\java\bin;c:\windows\system32;c:\windows;c:/program files/java/jre1.8.0_92/bin/server;c:/program files/java/jre1.8.0_92/bin;c:/program files/java/jre1.8.0_92/lib/amd64;c:\programdata\oracle\java\javapath;c:\program files\common files\microsoft shared\windows live;c:\program files (x86)\common files\microsoft shared\windows live;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:python27;c:\program files (x86)\quicktime\qtsystem\;c:\program files (x86)\windows live\shared;c:\program files (x86)\skype\phone\;c:\program files\microsoft sql server\120\tools\binn\;c:\users\home\.dnx\bin;c:\program files\microsoft dnx\dnvm\;c:\program files (x86)\ati technologies\ati.ace\core-static;c:\program files\tortoisesvn\bin;c:\xampp\php\;c:\program files (x86)\mysql\mysql fabric 1.5 & mysql utilities 1.5\;c:\program files (x86)\mysql\mysql fabric 1.5 & mysql utilities 1.5\doctrine extensions php\;c:\program files\java\jdk1.8.0_92\bin;c:\users\home\documents\dropshiping\framework\eclipse-jee-mars-2-win32-x86_64\eclipse;;. יונ 29, 2016 2:45:03 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["http-nio-8080"] יונ 29, 2016 2:45:03 pm org.apache.tomcat.util.net.nioselectorpool getsharedselector info: using shared selector servlet write/read יונ 29, 2016 2:45:03 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["ajp-nio-8009"] יונ 29, 2016 2:45:03 pm org.apache.tomcat.util.net.nioselectorpool getsharedselector info: using shared selector servlet write/read יונ 29, 2016 2:45:03 pm org.apache.catalina.startup.catalina load info: initialization processed in 877 ms יונ 29, 2016 2:45:03 pm org.apache.catalina.core.standardservice startinternal info: starting service catalina יונ 29, 2016 2:45:03 pm org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/8.0.36 יונ 29, 2016 2:45:06 pm org.apache.jasper.servlet.tldscanner scanjars info: @ least 1 jar scanned tlds yet contained no tlds. enable debug logging logger complete list of jars scanned no tlds found in them. skipping unneeded jars during scanning can improve startup time , jsp compilation time. יונ 29, 2016 2:45:06 pm org.apache.catalina.core.applicationcontext log info: no spring webapplicationinitializer types detected on classpath log4j:warn no appenders found logger (org.springframework.web.servlet.dispatcherservlet). log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more info. יונ 29, 2016 2:45:06 pm org.apache.catalina.core.applicationcontext log info: initializing spring frameworkservlet 'searcher' יונ 29, 2016 2:45:10 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-nio-8080"] יונ 29, 2016 2:45:10 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["ajp-nio-8009"] יונ 29, 2016 2:45:10 pm org.apache.catalina.startup.catalina start info: server startup in 7110 ms 

searcher-servlet.xml:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemalocation="     http://www.springframework.org/schema/tx      http://www.springframework.org/schema/tx/spring-tx.xsd     http://www.springframework.org/schema/beans          http://www.springframework.org/schema/beans/spring-beans.xsd     http://www.springframework.org/schema/mvc      http://www.springframework.org/schema/mvc/spring-mvc.xsd     http://www.springframework.org/schema/context      http://www.springframework.org/schema/context/spring-context.xsd">  <!-- searcher-servlet context: defines servlet's request-processing      infrastructure -->  <!-- enables spring mvc @controller programming model --> <mvc:annotation-driven />  <!-- handles http requests /resources/** efficiently serving      static resources in ${webapproot}/resources directory --> <mvc:resources mapping="/resources/**" location="/resources/" />   <!-- resolves views selected rendering @controllers .jsp resources      in /web-inf/views directory --> <beans:bean id="viewresolver"     class="org.springframework.web.servlet.view.internalresourceviewresolver">     <property name="viewclass"         value="org.springframework.web.servlet.view.jstlview" />     <beans:property name="prefix" value="/web-inf/views/" />     <beans:property name="suffix" value=".jsp" /> </beans:bean>  <!-- <bean id="viewresolver" class="org.springframework.web.servlet.view.urlbasedviewresolver">      <property name="viewclass" value="org.springframework.web.servlet.view.jstlview"      /> <property name="prefix" value="/web-inf/jsp/" /> <property name="suffix"      value=".jsp" /> </bean> -->  <!-- datasource --> <beans:bean id="datasource" class="org.apache.commons.dbcp.basicdatasource"     destroy-method="close">     <beans:property name="driverclassname" value="com.mysql.jdbc.driver" />     <beans:property name="url"         value="jdbc:mysql://localhost:3306/searcherdb" />     <beans:property name="username" value="root" />     <beans:property name="password" value="root" /> </beans:bean>  <!-- hibernate 5 sessionfactory bean definition --> <beans:bean id="hibernate5annotatedsessionfactory"     class="org.springframework.orm.hibernate5.localsessionfactorybean">     <beans:property name="datasource" ref="datasource" />     <beans:property name="annotatedclasses">         <beans:list>             <beans:value>com.searcher.entity.ecommerceentity</beans:value>             <beans:value>com.searcher.entity.imageentity</beans:value>             <beans:value>com.searcher.entity.productentity</beans:value>             <beans:value>com.searcher.entity.productrequestentity</beans:value>             <beans:value>com.searcher.entity.requestentity</beans:value>             <beans:value>com.searcher.entity.sellerentity</beans:value>             <beans:value>com.searcher.entity.userentity</beans:value>         </beans:list>     </beans:property>     <beans:property name="hibernateproperties">         <beans:props>             <beans:prop key="hibernate.dialect">org.hibernate.dialect.mysqldialect             </beans:prop>             <beans:prop key="hibernate.show_sql">true</beans:prop>             <beans:prop key="hibernate.format_sql">true</beans:prop>         </beans:props>     </beans:property> </beans:bean>  <!-- ecommerce --> <beans:bean id="ecommercedao" class="com.searcher.dao.ecommerceimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="ecommerceservice" class="com.searcher.service.ecommerceserviceimp">     <beans:property name="ecommercedao" ref="ecommercedao">     </beans:property> </beans:bean>  <!-- image --> <beans:bean id="imagedao" class="com.searcher.dao.imageimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="imageservice" class="com.searcher.service.imageserviceimp">     <beans:property name="imagedao" ref="imagedao">     </beans:property> </beans:bean>  <!-- product --> <beans:bean id="productdao" class="com.searcher.dao.productimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="productservice" class="com.searcher.service.productserviceimp">     <beans:property name="productdao" ref="productdao">     </beans:property> </beans:bean>  <!-- productrequest --> <beans:bean id="productrequestdao" class="com.searcher.dao.productrequestimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="productrequestservice"     class="com.searcher.service.productrequestserviceimp">     <beans:property name="productrequestdao" ref="productrequestdao">     </beans:property> </beans:bean>  <!-- request --> <beans:bean id="requestdao" class="com.searcher.dao.requestimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="requestservice" class="com.searcher.service.requestserviceimp">     <beans:property name="requestdao" ref="requestdao">     </beans:property> </beans:bean>  <!-- seller --> <beans:bean id="sellerdao" class="com.searcher.dao.sellerimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="sellerservice" class="com.searcher.service.sellerserviceimp">     <beans:property name="sellerdao" ref="sellerdao">     </beans:property> </beans:bean>  <!-- user --> <beans:bean id="userdao" class="com.searcher.dao.userimp">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> <beans:bean id="userservice" class="com.searcher.service.userserviceimp">     <beans:property name="userdao" ref="userdao">     </beans:property> </beans:bean>  <context:annotation-config />  <context:component-scan base-package="com.searcher" />  <tx:annotation-driven transaction-manager="transactionmanager" />  <beans:bean id="transactionmanager"     class="org.springframework.orm.hibernate5.hibernatetransactionmanager">     <beans:property name="sessionfactory"         ref="hibernate5annotatedsessionfactory" /> </beans:bean> 

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/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>searcher</groupid> <artifactid>searcher</artifactid> <version>0.0.1-snapshot</version> <packaging>war</packaging>  <dependencies>     <!-- spring -->     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-context</artifactid>         <version>4.3.0.release</version>         <exclusions>         <!-- exclude commons logging in favor of slf4j -->             <exclusion>                 <groupid>commons-logging</groupid>                 <artifactid>commons-logging</artifactid>              </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-webmvc</artifactid>         <version>4.3.0.release</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-tx</artifactid>         <version>4.3.0.release</version>     </dependency>     <dependency>          <groupid>org.springframework</groupid>          <artifactid>spring-orm</artifactid>          <version>4.3.0.release</version>     </dependency>       <!-- hibernate -->     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-entitymanager</artifactid>         <version>5.1.0.final</version>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-core</artifactid>         <version>5.2.0.final</version>     </dependency>       <!-- apache commons dbcp -->     <dependency>         <groupid>commons-dbcp</groupid>         <artifactid>commons-dbcp</artifactid>         <version>1.4</version>     </dependency>      <!-- spring orm -->     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-orm</artifactid>         <version>4.3.0.release</version>     </dependency>      <!-- aspectj -->     <dependency>         <groupid>aspectj</groupid>         <artifactid>aspectjrt</artifactid>         <version>1.5.4</version>     </dependency>      <!-- logging -->     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-api</artifactid>         <version>1.7.21</version>     </dependency>         <dependency>         <groupid>org.slf4j</groupid>         <artifactid>jcl-over-slf4j</artifactid>         <version>1.7.21</version>         <scope>runtime</scope>     </dependency>     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-log4j12</artifactid>         <version>1.7.21</version>         <scope>runtime</scope>     </dependency>     <dependency>         <groupid>log4j</groupid>         <artifactid>log4j</artifactid>         <version>1.2.17</version>         <exclusions>             <exclusion>                 <groupid>javax.mail</groupid>                 <artifactid>mail</artifactid>             </exclusion>             <exclusion>                 <groupid>javax.jms</groupid>                 <artifactid>jms</artifactid>             </exclusion>             <exclusion>                 <groupid>com.sun.jdmk</groupid>                 <artifactid>jmxtools</artifactid>             </exclusion>             <exclusion>                 <groupid>com.sun.jmx</groupid>                 <artifactid>jmxri</artifactid>             </exclusion>         </exclusions>         <scope>runtime</scope>     </dependency>      <!-- @inject -->     <dependency>         <groupid>javax.inject</groupid>         <artifactid>javax.inject</artifactid>         <version>1</version>     </dependency>      <!-- servlet -->     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>javax.servlet-api</artifactid>         <version>3.1.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>javax.servlet.jsp</groupid>         <artifactid>jsp-api</artifactid>         <version>2.2</version>     </dependency>     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>     </dependency>      <!-- test -->     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.12</version>         <scope>test</scope>     </dependency>  <dependency>     <groupid>javax.transaction</groupid>     <artifactid>jta</artifactid>     <version>1.1</version> </dependency>    </dependencies>  <!-- build --> <build> <sourcedirectory>src</sourcedirectory> <plugins>     <plugin>         <artifactid>maven-eclipse-plugin</artifactid>         <version>2.9</version>         <configuration>             <additionalprojectnatures>                 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>             </additionalprojectnatures>             <additionalbuildcommands>                 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>             </additionalbuildcommands>             <downloadsources>true</downloadsources>             <downloadjavadocs>true</downloadjavadocs>         </configuration>     </plugin>     <plugin>         <groupid>org.apache.maven.plugins</groupid>         <artifactid>maven-compiler-plugin</artifactid>         <version>2.5.1</version>         <configuration>             <source>1.6</source>             <target>1.6</target>             <compilerargument>-xlint:all</compilerargument>             <showwarnings>true</showwarnings>             <showdeprecation>true</showdeprecation>         </configuration>     </plugin>     <plugin>         <groupid>org.codehaus.mojo</groupid>         <artifactid>exec-maven-plugin</artifactid>         <version>1.2.1</version>         <configuration>             <mainclass>org.test.int1.main</mainclass>         </configuration>     </plugin>      <!-- old      <plugin>       <artifactid>maven-compiler-plugin</artifactid>       <version>3.3</version>       <configuration>         <source>1.8</source>         <target>1.8</target>       </configuration>     </plugin>     <plugin>       <artifactid>maven-war-plugin</artifactid>       <version>2.6</version>       <configuration>         <warsourcedirectory>webcontent</warsourcedirectory>         <failonmissingwebxml>false</failonmissingwebxml>       </configuration>     </plugin>     -->     </plugins> </build> <!--  old 2 <build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.5.1</version>             <configuration>                 <source>1.6</source>                 <target>1.6</target>                 <compilerargument>-xlint:all</compilerargument>                 <showwarnings>true</showwarnings>                 <showdeprecation>true</showdeprecation>             </configuration>         </plugin>         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>exec-maven-plugin</artifactid>             <version>1.2.1</version>             <configuration>                 <mainclass>org.test.int1.main</mainclass>             </configuration>         </plugin>     </plugins>     <finalname>${project.artifactid}</finalname> </build> --> 

web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">   <display-name>searcher</display-name>     <welcome-file-list>         <welcome-file>index.jsp</welcome-file>     </welcome-file-list>      <servlet>         <servlet-name>searcher</servlet-name>         <servlet-class>             org.springframework.web.servlet.dispatcherservlet         </servlet-class>         <load-on-startup>1</load-on-startup>     </servlet>     <servlet-mapping>         <servlet-name>searcher</servlet-name>         <url-pattern>/welcome.jsp</url-pattern>         <url-pattern>/welcome.html</url-pattern>         <url-pattern>*.html</url-pattern>     </servlet-mapping> </web-app> 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -