OpenJPA错误之一 This configuration disallows runtime optimization

简介: 参照http://blog.csdn.net/rcom10002/article/details/6568809,一运行就报错Exception in thread "main" org.
参照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。
目录
相关文章
|
Java Maven
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
986 0
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
|
6月前
|
Kubernetes 容器
error: no configuration has been provided, try setting KUBERNET
error: no configuration has been provided, try setting KUBERNET
66 0
|
6月前
|
设计模式 人工智能 Java
Error: JavaFX runtime components are missing, and are required to run this application with Gradle e
Error: JavaFX runtime components are missing, and are required to run this application with Gradle e
231 1
|
6月前
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
95 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
300 0
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
695 0
codeblocks中出现#error This file requires compiler and library support for the错误时的解决方案
|
Java 应用服务中间件 编译器
Java: Unresolved compilation problem的解决方法
Java: Unresolved compilation problem的解决方法
Java: Unresolved compilation problem的解决方法
|
Java Android开发
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决
553 0
Eclipse中项目报Target runtime com.genuitec.runtime.generic.jee60 is not defined异常的解决方法
下一篇
无影云桌面