0

我在 WSO2 Carbon 工作室创建了一个axis2 项目。这个应用程序基本上

运行 CEP 应用程序。我在构建路径中添加了 drools 5.5.0。在日食

控制台程序正在运行。但是当我将它部署到 WSO2 AS 时,它会显示一个错误

在部署时,任何人都可以帮助如何解决这个问题。

INFO {org.apache.axis2.deployment.ServiceDeployer} -  The CEPEventHandler-1.0.0.aar service, which is not valid, caused java.lang.NoClassDefFoundError: org/drools/event/KnowledgeRuntimeEventManager

at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
    at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:453)
    at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:389)
    at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
    at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143)
    at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
    at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
    at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:371)
    at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
    at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:365)
    at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
    at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
    at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Class Not found : org.drools.event.KnowledgeRuntimeEventManager
    at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:92)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 19 more

[2013-03-08 14:44:39,106]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  org.apache.axis2.deployment.DeploymentException: java.lang.NoClassDefFoundError: org/drools/event/KnowledgeRuntimeEventManager
4

2 回答 2

0

WSO2 AS 好像找不到口水了。它可能在您的 Eclipse 中,但没有发送到服务器。

尝试以下选项之一:

  • 右键单击您的eclipse项目->部署程序集->添加->添加Drools

  • 将口水添加到您的项目库中

  • 将 drools 添加到您的应用程序服务器 lib 文件夹

于 2013-03-08T06:10:05.140 回答
0

如果有任何第 3 方罐子。将它们放入 AS_HOME/repository/components/lib 并重新启动服务器。

于 2013-03-09T04:21:06.217 回答