Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java DataNucleus增强器能否处理jar中类路径上的类?_Java_Eclipse_Google App Engine_Datanucleus - Fatal编程技术网

Java DataNucleus增强器能否处理jar中类路径上的类?

Java DataNucleus增强器能否处理jar中类路径上的类?,java,eclipse,google-app-engine,datanucleus,Java,Eclipse,Google App Engine,Datanucleus,有一个GoogleAppEngineJava项目“A”,它基于另一个GoogleAppEngineJava“B”的大部分类,但不是全部 为此,项目“B”中的所有类都作为Jar导出,源代码包含在项目“A”的类路径中,其中有几个@Entity类 在本地调试模式下运行项目“A”时,我得到 java.lang.RuntimeException: Class UserAccount for query has not been resolved. Check the query and any impor

有一个GoogleAppEngineJava项目“A”,它基于另一个GoogleAppEngineJava“B”的大部分类,但不是全部

为此,项目“B”中的所有类都作为Jar导出,源代码包含在项目“A”的类路径中,其中有几个@Entity类

在本地调试模式下运行项目“A”时,我得到

java.lang.RuntimeException: Class UserAccount for query has not been resolved. Check the query and any imports specification
    at biz.daich.gwt.common.app.server.domain.services.UserAccountService.findOrCreateUserAccountByPrimaryEmail(UserAccountService.java:123)
    at biz.daich.gwt.common.app.server.domain.services.UserAccountService.getCurrentLogIn(UserAccountService.java:312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)......
这是有意义的,因为DataNucleus增强器没有增强类UserAccount,因为它不在要增强的文件列表中

我如何配置Google插件/Google应用程序引擎/DataNucleus增强器来对这些类进行字节码增强,就像我在Eclipse项目属性->谷歌->应用程序引擎->ORM中通过模式选择的类一样

可以这样做吗

    If YES: How to define a pattern?

    If NO: How can I link few classes from another project, not even a whole package, in to the source tree of this project that will do the trick?

无法用新字节码更新jar中的类;除了取消对它们的限制、增强它们并重新调整它们之外。

在构建项目B时是否可以增强它们,以便项目A中使用的project-B.jar已经增强了字节码?