- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
所以,在过去的两周里我一直在努力解决这个问题。我的任务是将应用程序服务器从 glassfish 2 升级到 glassfish 4,在 GF2 上运行的应用程序在我脸上抛出此错误:“无法解析引用......因为带有接口(interface)的应用程序中有 [2] ejb。 ”
该应用程序被封装在一个耳朵中,里面有两个 war 模块。问题是,这两个模块都具有相同的 ejb 项目,作为在 NetBeans 上进行开发时添加到库中的库。这意味着这两个 war 的 WEB-INF/lib 文件夹中确实有相同的 ejb.jar。我只是找不到解决这个问题的方法。我尝试从这两个项目的库中删除 ejb,然后将 ejb-jar 添加到 Ear 的根目录中,然后在这些 war 项目的 list 中定义类路径。这导致 NetBeans 端出现大量错误,并导致这些项目的构建失败。
我正在使用命令行 ant 来构建 war 并将它们放入耳朵中。
问题是项目的源代码不是由我完成的,我不确定我应该在哪里解决这个问题。
最佳答案
我想说你的方向是正确的。将 ejb-jar 文件放入 .ear 文件的 lib 文件夹中。然而,EE7 中存在关于放置(例如持久性根)的“规则更改”。也许如果您的 ejb-jar 中有一个 persistence.xml 文件,当您将其放入 .ear 存档的根目录时,它会产生您看到的错误
In the Java Persistence API 1.0, JAR files could be located at the root of an EAR file as the root of the persistence unit. This is no longer supported. Portable applications should use the EAR file's library directory as the root of the persistence unit.
您可以找到全文here
您可能想探索 ee5 和 ee7 之间的差异,尤其是 GF2.x 和 gf4.x。您可能会发现这些链接很有用 ee7 highlights和 ee6 highlights
关于java - Glassfish 2 在 Glassfish 4 上的应用程序 : "Cannot resolve reference... because there are 2 ejbs in the application"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25093763/
我将从 ColdFusion 8 迁移到 ColdFusion 10。 目前,在我的Unix根目录下,我只有1个Application.cfm,在这个根目录下我有大约10个子目录(以前的程序员就是这样
这个问题在这里已经有了答案: Is it possible to write a program in Java without main() using JDK 1.7 or higher? [d
我是编写 Windows 服务应用程序的新手,并且遇到了问题。 我用 Delphi 编写了一个普通的 Windows 应用程序来检查和调试代码的主要部分,现在必须将其转换为 NT 服务。 我的代码必须
我在 Visual Studio 2013 中运行它。 对于 Application.Current.Shutdown 我得到: “Application”是“System.Windows.Appli
给定以下 C++ 代码“mini.cpp”: #include "iostream" using namespace std; int main() { cout << "Hello Worl
什么是“服务器应用程序”?我被要求写一篇关于“服务器应用程序”中的错误的文章,但我不熟悉确切的术语。它们只是网络应用程序,还是其他东西? 最佳答案 “服务器应用程序”是一种应用程序,它等待来自其他应用
JavaFX 应用程序类必须扩展 javafx.application.Application package automationFramework import java.util.concurr
I have implemented deeplinking in my application that open my app (if available) but my app opens
我被困在一个非常基本的问题上。我使用 JavaFX 创建了一个简单的 hello world 程序,它在 JDK 1.8 上运行良好。但是当我切换到 JDK-11 时,它会抛出以下异常: Error:
我可以让Application Insights显示正在运行的每小时使用情况日志,但是有没有一种方法可以每小时显示一次平均使用情况,以查看必须在一天中的哪个时段使用网站? 最佳答案 在您的资源的概览
有谁知道为什么在.NET应用程序中实现Application Insights时不会收集用户代理信息,却能够在浏览器中收集统计信息? 我很希望能够针对特定的用户代理字符串过滤出请求,但是看起来我无法看
我有多个应用程序使用 Application Insights for Production Data。我正在尝试使用 City 遥测字段来映射我们当前的用户。这些数据的跟踪似乎非常不一致,并且在大多
有没有办法在 ASP.NET Web 应用程序中禁用 Application Insights?假设我想关闭生产中运行的应用程序中的所有数据收集。 最佳答案 如果 ikey 在 Application
如何在 Azure Application Insights 中将时差转换为毫秒 let startTime = todatetime('2017-05-15T17:02:23.7148691Z');
我正在修改一个用 Coldfusion 编码的现有 Web 应用程序。在现有代码中,大部分文件夹包含一个 Application.cfm 文件,该文件设置应用程序变量 但是,我对这些应用程序的部分修改
我在 Application Insights Analytics 中有一些数据,它有一个动态对象作为自定义维度的属性。例如: | timestamp | name
首先,我需要的是-n WebBrowser-s,每个都在自己的窗口中执行自己的工作。用户应该能够看到所有这些内容,或者仅看到其中一个(或不显示任何内容),并且能够对每一个执行命令。有一个主要形式,没有
我已收到以下代码以添加到封闭代码(受密码保护)中,以便可以发现错误。 On Error Resume Next: Err.Clear Application.SetOption "Error Trap
我正在使用 Delphi 7。我试图在非 VCL 单元中添加一个调用“application.processmessages”的过程。我收到错误“未声明的标识符:应用程序”。 如何从非 vcl 单元引
考虑一个非外汇现有应用程序,我们将其称为Business。 Business 公开一个 Model 对象,该对象又公开一些属性。 Model 还接受这些属性的监听器。 我的问题是关于向此类应用程序添加
我是一名优秀的程序员,十分优秀!