我在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
答案 0 :(得分:0)
似乎WSO2 AS无法找到drools。 它可能在您的日食中,但它不会发送到服务器。
尝试以下选项之一:
右键点击您的eclipse项目 - &gt;部署组件 - &gt;添加 - &gt;添加Drools
在项目库中添加了drools
将drools添加到应用程序服务器lib文件夹
答案 1 :(得分:0)
如果有任何第三方罐子。将它们放入AS_HOME / repository / components / lib并重启服务器。