Web.xml in Spring mvc do not load application-context create tables from hibernate -


i have problem during application start.it seams servlet-config.xml , application-context.xml not load on start there no tables produced hibernate , application not recognize controllers.

on load  > feb 06, 2016 1:39:59 pm > org.apache.tomcat.util.digester.setpropertiesrule begin warning: > [setpropertiesrule]{server/service/engine/host/context} setting > property 'source' 'org.eclipse.jst.jee.server:riskassesemntcalc' > did not find matching property. feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: server > version:        apache tomcat/7.0.64 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: server > built:          aug 19 2015 17:18:06 utc feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: server > number:         7.0.64.0 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: os name:   > windows 8.1 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: os > version:            6.3 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: > architecture:          amd64 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: java home: > c:\program files\java\jdk1.7.0_79\jre feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: jvm > version:           1.7.0_79-b15 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: jvm > vendor:            oracle corporation feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: > catalina_base:         c:\server-side > app\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 feb > 06, 2016 1:39:59 pm org.apache.catalina.startup.versionloggerlistener > log info: catalina_home:         c:\server-side app\tomcat 7 feb 06, > 2016 1:39:59 pm org.apache.catalina.startup.versionloggerlistener log > info: command line argument: -dcatalina.base=c:\server-side > app\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 feb > 06, 2016 1:39:59 pm org.apache.catalina.startup.versionloggerlistener > log info: command line argument: -dcatalina.home=c:\server-side > app\tomcat 7 feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: command > line argument: -dwtp.deploy=c:\server-side > app\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps > feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: command > line argument: -djava.endorsed.dirs=c:\server-side app\tomcat > 7\endorsed feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.versionloggerlistener log info: command > line argument: -dfile.encoding=cp1252 feb 06, 2016 1:39:59 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.7.0_79\bin;c:\windows\sun\java\bin;c:\windows\system32;c:\windows;c:\windows\system32;c:\users\miroslav\appdata\roaming\npm;c:\program > files\java\jdk1.7.0_79\bin;;c:\program files\nodejs;c:\program > files\git\bin;c:\program files\git\cmd;. feb 06, 2016 1:39:59 pm > org.apache.coyote.abstractprotocol init info: initializing > protocolhandler ["http-bio-8084"] feb 06, 2016 1:39:59 pm > org.apache.coyote.abstractprotocol init info: initializing > protocolhandler ["ajp-bio-8013"] feb 06, 2016 1:39:59 pm > org.apache.catalina.startup.catalina load info: initialization > processed in 568 ms feb 06, 2016 1:39:59 pm > org.apache.catalina.core.standardservice startinternal info: starting > service catalina feb 06, 2016 1:39:59 pm > org.apache.catalina.core.standardengine startinternal info: starting > servlet engine: apache tomcat/7.0.64 feb 06, 2016 1:40:00 pm > org.apache.catalina.loader.webappclassloader validatejarfile info: > validatejarfile(c:\server-side > app\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\riskassesemntcalc\web-inf\lib\javaee-api-7.0.jar) > - jar not loaded. see servlet spec 3.0, section 10.7.2. offending class: javax/servlet/servlet.class feb 06, 2016 1:40:01 pm > org.apache.catalina.core.standardcontext checkunusualurlpattern info: > suspicious url pattern: "/resource/**" in context [/riskassesemntcalc] > - see sections 12.1 , 12.2 of servlet specification feb 06, 2016 1:40:02 pm org.apache.catalina.startup.tagliburirule body info: tld > skipped. uri: http://java.sun.com/jstl/core_rt defined feb > 06, 2016 1:40:02 pm org.apache.catalina.startup.tagliburirule body > info: tld skipped. uri: http://java.sun.com/jstl/core > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://java.sun.com/jsp/jstl/core defined feb 06, 2016 > 1:40:02 pm org.apache.catalina.startup.tagliburirule body info: tld > skipped. uri: http://java.sun.com/jstl/fmt_rt defined feb > 06, 2016 1:40:02 pm org.apache.catalina.startup.tagliburirule body > info: tld skipped. uri: http://java.sun.com/jstl/fmt > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://java.sun.com/jsp/jstl/fmt defined feb 06, 2016 > 1:40:02 pm org.apache.catalina.startup.tagliburirule body info: tld > skipped. uri: http://java.sun.com/jsp/jstl/functions > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://jakarta.apache.org/taglibs/standard/permittedtaglibs > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://jakarta.apache.org/taglibs/standard/scriptfree > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://java.sun.com/jstl/sql_rt defined feb 06, 2016 > 1:40:02 pm org.apache.catalina.startup.tagliburirule body info: tld > skipped. uri: http://java.sun.com/jstl/sql defined feb 06, > 2016 1:40:02 pm org.apache.catalina.startup.tagliburirule body info: > tld skipped. uri: http://java.sun.com/jsp/jstl/sql defined > feb 06, 2016 1:40:02 pm org.apache.catalina.startup.tagliburirule body > info: tld skipped. uri: http://java.sun.com/jstl/xml_rt > defined feb 06, 2016 1:40:02 pm > org.apache.catalina.startup.tagliburirule body info: tld skipped. uri: > http://java.sun.com/jstl/xml defined feb 06, 2016 1:40:02 > pm org.apache.catalina.startup.tagliburirule body info: tld skipped. > uri: http://java.sun.com/jsp/jstl/xml defined feb 06, 2016 > 1:40:02 pm org.apache.catalina.startup.tldconfig execute 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. feb 06, 2016 > 1:40:02 pm org.apache.catalina.core.applicationcontext log info: no > spring webapplicationinitializer types detected on classpath feb 06, > 2016 1:40:02 pm org.apache.catalina.core.applicationcontext log info: > initializing spring root webapplicationcontext info  contextloader - > root webapplicationcontext: initialization started info  > xmlwebapplicationcontext - refreshing root webapplicationcontext: > startup date [sat feb 06 13:40:02 gmt 2016]; root of context hierarchy > info  xmlbeandefinitionreader - loading xml bean definitions > servletcontext resource [/web-inf/classes/application-context.xml] > info  propertysourcesplaceholderconfigurer - loading properties file > class path resource [properties/jdbc.properties] info  > drivermanagerdatasource - loaded jdbc driver: com.mysql.jdbc.driver > info  localcontainerentitymanagerfactorybean - building jpa container > entitymanagerfactory persistence unit 'punit' info  loghelper - > hhh000204: processing persistenceunitinfo [   name: punit     ...] info  > version - hhh000412: hibernate core {5.0.2.final} info  environment - > hhh000206: hibernate.properties not found info  environment - > hhh000021: bytecode provider name : javassist info  version - > hcann000001: hibernate commons annotations {5.0.0.final} info  dialect > - hhh000400: using dialect: org.hibernate.dialect.mysql5innodbdialect info  version - hv000001: hibernate validator 5.0.2.final info  > schemaexport - hhh000227: running hbm2ddl schema export info  > schemaexport - hhh000230: schema export complete info  contextloader - > root webapplicationcontext: initialization completed in 2738 ms feb > 06, 2016 1:40:05 pm org.apache.catalina.core.applicationcontext log > info: initializing spring frameworkservlet 'config' info  > dispatcherservlet - frameworkservlet 'config': initialization started > info  xmlwebapplicationcontext - refreshing webapplicationcontext > namespace 'config-servlet': startup date [sat feb 06 13:40:05 gmt > 2016]; parent: root webapplicationcontext info  > xmlbeandefinitionreader - loading xml bean definitions > servletcontext resource [/web-inf/classes/config-servlet.xml] info  > simpleurlhandlermapping - mapped url path [/resource/**] onto handler > 'org.springframework.web.servlet.resource.resourcehttprequesthandler#0' > info  requestmappinghandleradapter - looking @controlleradvice: > webapplicationcontext namespace 'config-servlet': startup date > [sat feb 06 13:40:05 gmt 2016]; parent: root webapplicationcontext > info  requestmappinghandleradapter - looking @controlleradvice: > webapplicationcontext namespace 'config-servlet': startup date > [sat feb 06 13:40:05 gmt 2016]; parent: root webapplicationcontext > info  xmlbeandefinitionreader - loading xml bean definitions > servletcontext resource [/web-inf/classes/pdf-config.xml] info  > genericwebapplicationcontext - refreshing > org.springframework.web.context.support.genericwebapplicationcontext@1b3a24e1: > startup date [sat feb 06 13:40:05 gmt 2016]; parent: > webapplicationcontext namespace 'config-servlet' info  > simpleurlhandlermapping - mapped url path [/riskcontroll] onto handler > of type [class > org.springframework.web.servlet.mvc.parameterizableviewcontroller] > info  simpleurlhandlermapping - mapped url path [/ex] onto handler of > type [class > org.springframework.web.servlet.mvc.parameterizableviewcontroller] > info  simpleurlhandlermapping - mapped url path [/facilitiesonsite] > onto handler of type [class > org.springframework.web.servlet.mvc.parameterizableviewcontroller] > info  simpleurlhandlermapping - mapped url path [/firepro] onto > handler of type [class > org.springframework.web.servlet.mvc.parameterizableviewcontroller] > info  dispatcherservlet - frameworkservlet 'config': initialization > completed in 705 ms feb 06, 2016 1:40:05 pm > org.apache.coyote.abstractprotocol start info: starting > protocolhandler ["http-bio-8084"] feb 06, 2016 1:40:05 pm > org.apache.coyote.abstractprotocol start info: starting > protocolhandler ["ajp-bio-8013"] feb 06, 2016 1:40:05 pm > org.apache.catalina.startup.catalina start info: server startup in > 6412 ms  web.xml           > <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"         >     xmlns="http://java.sun.com/xml/ns/javaee" >xmlns:javaee="http://xmlns.jcp.org/xml/ns/javaee"         >     xsi:schemalocation="http://java.sun.com/xml/ns/javaee >http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"         >     version="3.0">         >          >  <context-param>         >     <param-name>contextconfiglocation</param-name>         >     <param-value>         >           /web-inf/classes/application-context.xml                 >       </param-value> </context-param>         >  <listener>         > <listener-class>org.springframework.web.context.contextloaderlistener</         >listener-class>         > </listener>    <servlet>         > <servlet-name>config</servlet-name>         > <servlet-class>org.springframework.web.servlet.dispatcherservlet         ></servlet-class>         >     <init-param>         >       <param-name>contextconfiglocation</param-name>         >       <param-value>/web-inf/classes/config-servlet.xml</param-value>         >     </init-param>         >     <load-on-startup>1</load-on-startup> </servlet>    <servlet-mapping>         >     <servlet-name>config</servlet-name>         >     <url-pattern>/</url-pattern> </servlet-mapping>    <servlet-mapping>         >     <servlet-name>config</servlet-name>         >     <url-pattern>/resource/**</url-pattern> </servlet-mapping>         >          >          > </web-app>         >      config-servlet.xml          <?xml version="1.0" encoding="utf-8"?>         <beans xmlns="http://www.springframework.org/schema/beans"             xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"             xmlns:context="http://www.springframework.org/schema/context"             xmlns:mvc="http://www.springframework.org/schema/mvc"             xsi:schemalocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd                 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd                 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">           <mvc:resources location="resource/" mapping="/resource/**"/>          <context:component-scan base-package="com.nevii" />           <mvc:annotation-driven/>          <bean class="org.springframework.web.servlet.view.xmlviewresolver">                <property name="order" value="2" />                <property name="location">                    <value>/web-inf/classes/pdf-config.xml</value>                </property>         </bean>          <bean class="org.springframework.web.servlet.view.internalresourceviewresolver">               <property name="order" value="1"></property>               <property name="prefix" value="/web-inf/view/"/>               <property name="suffix" value=".jsp"/>         </bean>           > <mvc:view-controller path="/firepro" view-name="firepro" />         > <mvc:view-controller path="/ex" view-name="ex" /> <mvc:view-controller         > path="/facilitiesonsite" view-name="facilitiesonsite" />         > <mvc:view-controller path="/riskcontroll" view-name="riskcontroll" />          <bean id="modelmapper" class="org.modelmapper.modelmapper"/>          </beans>      application-context.xml      <?xml version="1.0" encoding="utf-8"?>     <beans xmlns="http://www.springframework.org/schema/beans"         xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"         xmlns:jpa="http://www.springframework.org/schema/data/jpa"         xmlns:mvc="http://www.springframework.org/schema/mvc"         xmlns:repository="http://www.springframework.org/schema/data/repository"         xmlns:tx="http://www.springframework.org/schema/tx"         xmlns:p="http://www.springframework.org/schema/p"         xmlns:context="http://www.springframework.org/schema/context"         xsi:schemalocation="http://www.springframework.org/schema/data/repository http://www.springframework.org/schema/data/repository/spring-repository-1.7.xsd             http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd             http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd             http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.8.xsd             http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd             http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd">      <jpa:repositories base-package="com.nevii.repository" />      <context:property-placeholder location="classpath:properties/jdbc.properties"/>       <context:annotation-config/>      <!-- interceptors -->      <mvc:interceptors>         <bean class="org.springframework.web.servlet.i18n.localechangeinterceptor" p:paramname="language"/>     </mvc:interceptors>      <bean id="localeresolver" class="org.springframework.web.servlet.i18n.sessionlocaleresolver" p:defaultlocale="sr_rs" />      <!-- mesages -->      <bean id="messagesource" class="org.springframework.context.support.resourcebundlemessagesource" p:basename="messages"/>      <!-- hibernate , database -->      <bean class="org.springframework.orm.jpa.support.persistenceannotationbeanpostprocessor"/>      <bean id="entitymanagerfactory" class="org.springframework.orm.jpa.localcontainerentitymanagerfactorybean">             <property name="persistenceunitname" value="punit"/>             <property name="datasource" ref="datasource"/>             <property name="jpavendoradapter">                 <bean class="org.springframework.orm.jpa.vendor.hibernatejpavendoradapter"/>             </property>              <property name="jpaproperties">                 <map>                     <entry key="hibernate.dialect" value="${jdbc.dialect}"></entry>                     <entry key="hibernate.hbm2ddl.auto" value="create-drop"/>                     <entry key="hibernate.show_sql" value="true"/>                    <!--  <entry key="hibernate.jdbc.batch_size" value="50" />                      <entry key="hibernate.connection.charset" value="utf8" />                     <entry key="hibernate.connection.characterencoding" value="utf8" />                      <entry key="hibernate.connection.useunicode" value="true" /> -->                 </map>             </property>          </bean>          <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource">             <property name="username" value="${jdbc.username}"/>             <property name="password" value="${jdbc.password}"/>             <property name="url" value="${jdbc.databaseurl}"/>             <property name="driverclassname" value="${jdbc.driverclassname}"/>         </bean>      <!-- transaction manager -->           <tx:annotation-driven transaction-manager="transactionmanager"/>          <bean id="transactionmanager" class="org.springframework.orm.jpa.jpatransactionmanager">             <property name="entitymanagerfactory" ref="entitymanagerfactory"></property>         </bean>       < 

/beans>


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -