xuesheng11
xuesheng11
2010-12-30 12:45

java.lang.RuntimeException: <0.9.7-incubating fatal user error> 异常的处理

  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术

在配置roller4.0.1时,报openJPA的异常,文件用jar包时,不会出错,当用源代码时就包这个异常,这是什么原因??

严重: Exception sending context initialized event to listener instance of class org.apache.roller.weblogger.ui.core.RollerContext
java.lang.RuntimeException: org.apache.openjpa.persistence.ArgumentException: The type "class org.apache.roller.weblogger.pojos.TaskLock" has not been enhanced.
at org.apache.roller.weblogger.business.jpa.JPAPropertiesManagerImpl.initialize(JPAPropertiesManagerImpl.java:96)
at org.apache.roller.weblogger.business.WebloggerImpl.initialize(WebloggerImpl.java:303)
at org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(RollerContext.java:159)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.openjpa.persistence.ArgumentException: The type "class org.apache.roller.weblogger.pojos.TaskLock" has not been enhanced.
at org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1606)
at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1580)
at org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:659)
at org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:559)
at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:484)
at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:288)
at org.apache.openjpa.meta.MetaDataRepository.resolveAll(MetaDataRepository.java:1523)
at org.apache.openjpa.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1498)
at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:782)
at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:65)
at org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getNamedQuery(JPAPersistenceStrategy.java:274)
at org.apache.roller.weblogger.business.jpa.JPAPropertiesManagerImpl.getProperties(JPAPropertiesManagerImpl.java:121)
at org.apache.roller.weblogger.business.jpa.JPAPropertiesManagerImpl.initialize(JPAPropertiesManagerImpl.java:77)
... 17 more

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐