0

我开发了一个 java ee 项目,作为 7 服务器部署在 jboss 上。

情景是

A java ee project in which ejb module contains execution classes.
some of the pojo events are defined in another plain java project lets say p1
  and p1 is referenced in java ejb module and it appears in ./lib directory 
  of ear where other jar files exists.
auto-import tag in esper-config.xml has been added for p1 classes.

"cepConfig.cnfigure(esper-config.xml)" executes fine and 
   I can see all event types as reuired in debug mode.
"EpServiceProvider.getProvider("MyEngine",cepConfig)" results in error
   which says "could not find event type or class named p1.mypack.class1"

我检查了项目的参考和部署设置。p1.jar存在于 ./lib 目录中。
所有课程都是公开的和可访问的。我还需要检查什么?

4

1 回答 1

1

该类“p1.mypack.class1”需要成为类路径的一部分,无论是 Jboss 系统类路径还是模块类路径。

于 2013-02-04T13:20:06.367 回答