Glassfish v3集群配置类路径库

Glassfish v3集群配置类路径库,glassfish,classpath,cluster-computing,libraries,Glassfish,Classpath,Cluster Computing,Libraries,我有一个玻璃鱼3.1.2集群。 我有两个ssh节点,每个节点有一个实例。 我在DASdomains/mydomain/config/mycluster-config/lib/目录中添加了我的lib-jar。 当我重新启动实例时,我看到JAR被复制到以下位置的每个节点: nodes/node1/instance1/config/mycluster-config/lib/目录和 nodes/node2/instance2/config/mycluster-config/lib/目录 我的应用程序是带

我有一个玻璃鱼3.1.2集群。 我有两个ssh节点,每个节点有一个实例。 我在DAS
domains/mydomain/config/mycluster-config/lib/
目录中添加了我的lib-jar。 当我重新启动实例时,我看到JAR被复制到以下位置的每个节点:
nodes/node1/instance1/config/mycluster-config/lib/
目录和
nodes/node2/instance2/config/mycluster-config/lib/
目录

我的应用程序是带有Richfaces 4.3的JSF 2.2应用程序

问题是,当我部署应用程序时,应用程序无法从我的libs中找到任何jar。 一个问题是:如何设置节点的类路径? 我试过:
export-LD\u-LIBRARY\u-PATH=“/PATH/to/node1/instance1/config/prodc-config/lib”
在另一个节点上使用相同的on命令。 这无法使我的应用程序找到LIB

如果我将EAR部署到独立域而不是集群,那么它将在没有任何错误的情况下部署

当我从web管理控制台部署我的应用程序时,我会检查是否启用了可用性,并确保目标指向mycluster

以下是我遇到的一些错误:

WELD-000119 Not generating any bean definitions from com.my.domain.Validate because of underlying class loading error

Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory. Attempting to find backup.
群集始终能够启动。 实例的开始和停止都很好

部署我的EAR时的完整消息是:

Warning Command succeeded with Warning
"domain/applications/application/my_EAR" created successfully.
WARNING: Command _deploy did not complete successfully on server instance instance1: remote failure:
Failed to load the application on instance instance1.
The application will not run properly. Please fix your application and redeploy.
Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details.
WARNING: Command _deploy did not complete successfully on server instance instance2: remote failure:
Failed to load the application on instance instance2. The application will not run properly. Please fix your application and redeploy.
Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details.
WARNING: Command _deploy did not complete successfully on server instance instance1: remote failure:
Failed to load the application on instance instance1. The .... msg.seeServerLog

感谢您对我的问题提供的帮助。

对于GlassFish v3.1.2,我一直在使用以下链接:

部署应用程序时,我必须在部署期间指定库。这些库是相对于applibs目录的。因此,对于集群,路径应为:

../../config/clustername-config/lib/util.jar
我的问题一定是指定此目录时路径不正确。这就是我没有仔细观察我使用的路径而得到的结果


因此,简短回答:将应用程序部署到集群时使用
--libraries
,并确保路径正确。

不知道答案。。。但这是一个很好的玻璃鱼问题。@dave chen:谢谢你对这个问题的编辑。“它更具可读性。@dave chen感谢您编辑我的问题。它更易于阅读。是否还需要将库添加到正在使用它们的服务器/群集的系统类路径中?--我仍然得到类未发现异常。