OpenJPA错误之一 This configuration disallows runtime optimization

参照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。
上一篇:网银接口问题


下一篇:事务操作