Advertisement
Guest User

Untitled

a guest
Apr 20th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
  2.  
  3. <properties>
  4. <org.springframework-version>
  5. 4.1.1.RELEASE
  6. </org.springframework-version>
  7. <hibernate.version>5.1.0.Final</hibernate.version>
  8. <org.aspectj-version>1.8.0</org.aspectj-version>
  9. <org.slf4j-version>1.7.12</org.slf4j-version>
  10. </properties>
  11.  
  12. <dependency>
  13. <groupId>org.springframework</groupId>
  14. <artifactId>spring-aop</artifactId>
  15. <version>${org.springframework-version}</version>
  16. </dependency>
  17.  
  18. <dependency>
  19. <groupId>org.aspectj</groupId>
  20. <artifactId>aspectjrt</artifactId>
  21. <version>${aspectj.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.aspectj</groupId>
  25. <artifactId>aspectjweaver</artifactId>
  26. <version>${aspectj.version}</version>
  27. </dependency>
  28.  
  29. <?xml version="1.0" encoding="UTF-8"?>
  30. <beans xmlns="http://www.springframework.org/schema/beans"
  31. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  32. xmlns:aop="http://www.springframework.org/schema/aop"
  33. xmlns:context="http://www.springframework.org/schema/context"
  34. xmlns:jee="http://www.springframework.org/schema/jee"
  35. xmlns:lang="http://www.springframework.org/schema/lang"
  36. xmlns:p="http://www.springframework.org/schema/p"
  37. xmlns:tx="http://www.springframework.org/schema/tx"
  38. xmlns:util="http://www.springframework.org/schema/util"
  39. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  40. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  41. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
  42. http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
  43. http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd
  44. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
  45. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
  46.  
  47. <context:annotation-config />
  48. <context:component-scan base-package="net.viralpatel.contact" />
  49.  
  50. <bean id="jspViewResolver"
  51. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  52. <property name="viewClass"
  53. value="org.springframework.web.servlet.view.JstlView" />
  54. <property name="prefix" value="/WEB-INF/jsp/" />
  55. <property name="suffix" value=".jsp" />
  56. </bean>
  57.  
  58. <bean id="messageSource"
  59. class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
  60. <property name="basename" value="classpath:messages" />
  61. <property name="defaultEncoding" value="UTF-8" />
  62. </bean>
  63. <bean id="propertyConfigurer"
  64. class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
  65. p:location="/WEB-INF/jdbc.properties" />
  66.  
  67. <bean id="dataSource"
  68. class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
  69. p:driverClassName="${jdbc.driverClassName}"
  70. p:url="${jdbc.databaseurl}" p:username="${jdbc.username}"
  71. p:password="${jdbc.password}" />
  72.  
  73.  
  74. <bean id="sessionFactory"
  75. class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
  76. <property name="dataSource" ref="dataSource" />
  77. <property name="configLocation">
  78. <value>classpath:hibernate.cfg.xml</value>
  79. </property>
  80. <property name="configurationClass">
  81. <value>org.hibernate.cfg.AnnotationConfiguration</value>
  82. </property>
  83. <property name="hibernateProperties">
  84. <props>
  85. <prop key="hibernate.dialect">${jdbc.dialect}</prop>
  86. <prop key="hibernate.show_sql">true</prop>
  87. </props>
  88. </property>
  89. </bean>
  90.  
  91. <tx:annotation-driven />
  92.  
  93. <bean id="transactionManager"
  94. class="org.springframework.orm.hibernate5.HibernateTransactionManager">
  95. <property name="sessionFactory" ref="sessionFactory" />
  96. </bean>
  97.  
  98.  
  99. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement