关于SSH框架 报错问题
严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframewor...
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/PersistenceProperty;
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.<init>(PersistenceAnnotationBeanPostProcessor.java:543)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$1.doWith(PersistenceAnnotationBeanPostProcessor.java:359)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:459)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:436) 展开
java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/PersistenceProperty;
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.<init>(PersistenceAnnotationBeanPostProcessor.java:543)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$1.doWith(PersistenceAnnotationBeanPostProcessor.java:359)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:459)
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:436) 展开
展开全部
应该是jar包的版本不兼容,换个persistence.jar包.
http://www.findjar.com/jar/com.oracle/oc4j/11/jars/persistence.jar.html
http://www.findjar.com/jar/com.oracle/oc4j/11/jars/persistence.jar.html
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[
是web.xml中的配置问题,参数写的不对
java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[
是web.xml中的配置问题,参数写的不对
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
检查一下你配置的监听器。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询