我已经开发了一个java项目,作为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目录中。
所有课程都是公开的和可访问的。我还需要检查什么东西?
发布于 2013-02-04 13:20:06
这个类"p1.mypack.class1“需要是类路径的一部分,无论是Jboss系统类路径还是模块类路径。
https://stackoverflow.com/questions/14658828
复制相似问题