Skip to content

Instantly share code, notes, and snippets.

View jeffyu's full-sized avatar

Jeff Yu jeffyu

  • Sydney, Australia
  • 14:18 (UTC +10:00)
View GitHub Profile
/*
* JBoss, Home of Professional Open Source
* Copyright 2008-11, Red Hat Middleware LLC, and others contributors as indicated
* by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
SEVERE: Failed to load CEP rules 'PurchasingResponseTime.drl' for Event Processor 'PurchasingResponseTime'
java.lang.RuntimeException: Cannot find a defualt KieBase
at org.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:59)
at org.overlord.bam.epn.cep.CEPEventProcessor.loadRuleBase(CEPEventProcessor.java:193)
at org.overlord.bam.epn.cep.CEPEventProcessor.createSession(CEPEventProcessor.java:139)
at org.overlord.bam.epn.cep.CEPEventProcessor.init(CEPEventProcessor.java:61)
at org.overlord.bam.epn.cep.CEPEventProcessorTest.testPurchasingResponseTime(CEPEventProcessorTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
KieModuleModel kmm = ks.newKieModuleModel();
KieBaseModel kbm = kmm.newKieBaseModel(getRuleName())
.setEqualsBehavior(EqualityBehaviorOption.EQUALITY)
.setEventProcessingMode(EventProcessingOption.STREAM);
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write(ks.getResources().newClassPathResource(cepRuleBase));
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
KieModuleModel kmm = ks.newKieModuleModel();
KieBaseModel kbm = kmm.newKieBaseModel(getRuleName())
.setEqualsBehavior(EqualityBehaviorOption.EQUALITY)
.setEventProcessingMode(EventProcessingOption.STREAM);
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write(ks.getResources().newClassPathResource(cepRuleBase));
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write(ks.getResources().newClassPathResource(cepRuleBase));
KieBuilder kb = ks.newKieBuilder(kfs);
kb.buildAll();
KieContainer container = ks.newKieContainer(kr.getDefaultReleaseId());
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project activity-server-impl: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] An exception has occurred in the compiler (1.6.0_37). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
[ERROR] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.persistence.InheritanceType not found
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
xmlns:soap="urn:switchyard-component-soap:config:1.0"
xmlns:swyd="urn:switchyard-config:switchyard:1.0"
xmlns:trfm="urn:switchyard-config:transform:1.0"
xmlns:bean="urn:switchyard-component-bean:config:1.0"
xmlns:bpel="http://docs.oasis-open.org/ns/opencsa/sca/200903"
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:sh="http://www.jboss.org/bpel/examples"
targetNamespace="urn:switchyard-quickstart:bpel-invoke-bean:0.1.0"
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" name="invokeBean"
targetNamespace="urn:switchyard-quickstart:bpel-invoke-bean:0.1.0">
<_0:composite xmlns:_0="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="invokeBean"
targetNamespace="urn:bpel:test:1.0">
<sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="SayHelloService"
promote="SayHelloService">
<soap:binding.soap xmlns:soap="urn:switchyard-component-soap:config:1.0">
<soap:wsdl>SayHelloArtifacts.wsdl</soap:wsdl>
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
xmlns:soap="urn:switchyard-component-soap:config:1.0"
xmlns:swyd="urn:switchyard-config:switchyard:1.0"
xmlns:trfm="urn:switchyard-config:transform:1.0"
xmlns:bean="urn:switchyard-component-bean:config:1.0"
xmlns:bpel="http://docs.oasis-open.org/ns/opencsa/sca/200903"
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:sh="http://www.jboss.org/bpel/examples"
targetNamespace="urn:switchyard-quickstart:bpel-invoke-bean:0.1.0"
package VC;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;