参照http://blog.csdn.net/rcom10002/article/details/6568809,一运行就报错Exception in thread "main" org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: "Airline".
度娘好久也没找到一个所以然,不经意见查看Simple中的build.xml得到启发,运行时加一个java虚拟机参数。Eclipse在run configuration中配置
-javaagent:yourpathto/openjpa-all-2.4.2.jar,运行OK。
阅读(4193) | 评论(1) | 转发(0) |