SEM_CONTAINS and rulebases

Hi,
How do I perform a query using SEM_CONTAINS making use of rulebases?
Thanks.

The syntax is different. Searching for "a b c" using catsearch is the same as searching for "a AND b AND c" using contains. This is documented in the following section:
http://download.oracle.com/docs/cd/B28359_01/text.111/b28304/csql.htm#i997256
You can use a query template with context grammar to get the results that you would expect from a contains search. Please see the demonstration below.
SCOTT@orcl_11g> create table products_tbl(id number primary key, text varchar2(4000));
Table created.
SCOTT@orcl_11g> insert into products_tbl values(112,'Smith Bitter');
1 row created.
SCOTT@orcl_11g> insert into products_tbl values(113,'Bitter Smith');
1 row created.
SCOTT@orcl_11g> commit;
Commit complete.
SCOTT@orcl_11g> create index products_idx on products_tbl( text )
  2  indextype is ctxsys.context;
Index created.
SCOTT@orcl_11g> column text format a30
SCOTT@orcl_11g> select * from products_tbl where contains(text,'Bitter Smith',1) >0;
        ID TEXT
       113 Bitter Smith
SCOTT@orcl_11g> drop index products_idx;
Index dropped.
SCOTT@orcl_11g> create index products_idx on products_tbl( text )
  2  indextype is ctxsys.ctxcat;
Index created.
SCOTT@orcl_11g> select * from products_tbl where catsearch(text, 'Bitter Smith','')>0;
        ID TEXT
       112 Smith Bitter
       113 Bitter Smith
SCOTT@orcl_11g> select *
  2  from   products_tbl
  3  where  catsearch
  4             (text,
  5              '<query>
  6              <textquery grammer="CONTEXT" language="english">Bitter Smith
  7              </textquery>
  8            </query>','') > 0;
        ID TEXT
       113 Bitter Smith
SCOTT@orcl_11g>

Similar Messages

  • Hot swapping rulebases in 10.3 with ODS

    Hi,
    We're running OPA 10.3 on IIS, and calling Oracle Determinations Server with .Net and PeopleSoft Integration Broker. 
    We've just made a rule change in OPA, can we just overwrite the existing .zip file on the OPA server, or do we need to bring the server down and back up, etc.?
    Most of the hot swapping documentation I found had to do with Web Determinations Interviews and mentioned the following three lines in application.properties:
    load.rulebase.as.resource = false
    rulebase.path = /WEB-INF/classes/rulebases
    cache.loaded.rulebases = false
    I have the cache.loaded.rulebases = false line, but don't see the others in the application.properties file.  Do I need to add them, or is this not an issue?

    This is not an issue for IIS. Only the java version uses load.rulebase.as.resource and rulebase.path. As long as cache.loaded.rulebases is set you should be fine.
    Cheers
    Frank

  • Deploy the larger rulebases and determinations-server to WSL 10.3.5 slow

    On : 10.1.0.27 version, Oracle Policy Automation
    Determination Server
    WLS managed server
    ACTUAL BEHAVIOR
    Deploy the larger rulebases and determinations-server to WSL 10.3.5
    It takes around 20 minutes to deploy.
    Often the WLS times out during the deployment and we find the only way of getting the determinations-server to run again is to restart the WLS managed server.
    EXPECTED BEHAVIOR
    No time or delay to deploy.
    Business impact
    On the way deploy rule base WLS server sometimes timeout.

    The customer improved as follows solution.
    The customer have changed the way deploy the rulebases and this has reduced the deployment time dramatically.
    They have 3 rulebases and one of Billing is the largest by far.
    They have split the billing into an out of the box determinations-server and are deploying it as a war.
    The whole process is now acceptable.
    === ODM Data Collection ===
    <Info> <WebService> <c17ssit1.lab.gov> <opasit1_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <bfeae85a12c63a65:-b8294b1:13ad04153dd:-8000-0000000000000003> <1352114445944> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceHttps for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    <Warning> <Socket> <c17ssit1.lab.gov> <opasit1_server1> <ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <> <1352204469466> <BEA-000450> <Socket 328 internal data record unavailable (probable closure due idle timeout), event received 0>
    <Warning> <Socket> <c17ssit1.lab.gov> <opasit1_server1> <ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <> <1352204534404> <BEA-000450> <Socket 342 internal data record unavailable (probable closure due idle timeout), event received -32>

  • 11g (11.1.1.4) ADF and OPA

    Hi,
    I am using JDeveloper/WLS 11g (11.1.1.4). I have also installed downloaded the latest OPA modeling and server (Oracle Policy Automation 10.2.0 modeling and runtime).
    I then went ahead and installed the determinations-server.war in 11g (embedded in JDeveloper) after modifying the ‘application.properties’ to include the following
    load.rulebase.from.claspath=true
    rulebase.path=rulebases
    I was able to test the http://localhost:7101/web-determinations/ URL
    I was also able to create a basic rule form the modeler and run it against the "Oracle Web determinations" from the tool (instead of the "Oracle Determinations Server").
    My questions are as follows.
    Q1. Deployment of Rules with Fusion: I would like my business users to be able to create rules and test them against a test WLS server preferably the Weblogic server that hosts my web-determinations. In this regard, i would like to know how i can configure the OPM tool to deploy/test against Weblogic. In other words, should i set specific values to Tools->Options->Rule based development->Embedded Server? The only settings i see are for Tomcat, but i am assumign i can put something similar to weblogic. Any sample will be appreciated.
    Note that i do understand the issue about rulebase.path directory. In other words, i can either
    a) explode deploy the determinations-server.war , or
    b) add a director that will contains my rules to the weblogic class path, or
    c) use something like -Ddeterminations.server.rulebase.dir=/some/other/dir/rulebases in my startWeblogic.cmd
    Q2. OPA with ADF Example: Can anyone point me to a working example of OPA that has been integrated with ADF 11g. In other words, i am looking for an end-to-end scenario where i can develop my business rules in OPA and use them in an ADF application. It would be better if the example uses some values of the business rules that reside in a database.
    Q3. OPA versus OBR: Can someone articulate lucidly the use cases when someone would chose OBR (Business Rules in ADF) versus OPA (the haley product), and the implications on ADF development.
    Thanks very much,

    1. In the current version, OPM doesn't directly deploy to anything other than local TomCat. You'll need to manually refresh your WebLogic environment with the latest rulebase.
    2. I'm not aware of an ADF sample. I assume your goal is to host Web Determinations interviews in an ADF UI?
    3. You should use OPA instead of OBR if you need any of the following:
    a) Rules in natural language in any of the supported OPA languages (English, Chinese, French, Spanish, Portuguese, etc....)
    b) Rules in Word/Excel document format that can be easily shared with business users
    c) Interactive interviews for guided decision making, where questions can be automatically generated from rules, and screens are shown only as needed to make progress towards an answer
    d) Detailed decision reports of which rules and data were used to reach a decision
    e) Productized integration with Siebel or SAP
    f) Rich test case development and regression testing capabilities
    More generally OPA is very good at determinations. I.e. reaching the one right decision given a set of input data. It is not a good fit for optimization problems where the goal is to seek the best outcome given a series of constraints. It is also good at taking a large set of law/policy documents are managing them as interconnected rules. It is possible to efficiently manage thousands of pages of material as an OPM project.
    For ADF development, anywhere you have a process that involves a complex decision step, or a calculation that depends on complicated rules that may change frequently or need good business visibility, OPA is a good choice.
    Davin.

  • How to access the user-id property which is available in VM engine in the rulebase

    Hi Experts,
    The interview engine exposes various application constants and one of them is the user-id which gives the user-id of the current interview session. This is basically taken from the url for the web-determinations. We would want to use this property in the rule bases to take the user-id of the current interview session. Is there any function available in the Rulebase which will return this value? Or is there any other way to get this value in the rulebase?
    Thanks,
    KK

    The demo app is only available when at apple stores it's not actually a downloadable app.

  • How OPA and OPM works

    Hello Guys,
    It's me again! :) I already deployed and installed OPA and OPM and was able to access the sample rulebases. I just have some questions / clarifications on how OPA and OPM works.
    1. When you build and run project via OPM, the web-determinations page only opens locally. It will not be directly loaded / deployed to the web server unless the compiled project (rulebase) is copied to the *.war file. I think OPM is really for developers’ use only. Once the project is tested, developer will request to deploy it to the web server. Please confirm if my understanding is correct.
    2. Is there a technical architecture diagram that will show how the OPA components work? Or how are they connected with each other? When I access the sample rulebase, the only URL I see is the web-determinations. Not sure what's the purpose of the other components or if they work independently.
    3. Should the contents of web-determinations and determination-servers directories the same? For instance, if we deploy a new rulebase/plugin to web-determinations, should we also copy those files to determination-servers?
    4. For the interview portlet, will it work with 'Oracle WebCenter Portal 11g Patch Set 5 (11.1.1.6.0)'? In the OPA install guide, it is stated that the 'Consume the Interview Portlet on WebCenter can be done on any instance of WebCenter and will require you to have a working portal application', what does the portal application mean? If we'll integrate OPA with PeopleSoft, do we need to install PeopleSoft Portal application? For now, we only planned to use OPA with PeopleSoft HRMS, Financials and CRM applications. Please confirm if we need to install PS Portal application as well.
    This is all I have for now... Thanks in advance for your assistance. :)
    Regards,
    Ann M.

    1. Generally, OPM is for business users not developers. (i.e. Policy or Business Analysts who communicate with and understand business terminology and express business policies using that terminology). Developers play a role in integrating the policy model to another systems data model - but that should primarily be a data mapping exercise and design and implementation of integration when necessary.
    2. There is a good bit of information on architecture, components, etc. covered in both the developer documentation on OTN ( http://docs.oracle.com/html/E38272_01/toc.htm ) and high level overviews on the OPA YouTube Channel: http://www.youtube.com/user/OraclePAVideos
    3. You only need both is you plan on using both (i.e. Oracle Web Determinations is for running interviews to collect data to be used in making a determination, Oracle Determinations Server is for SOA - i.e. SOAP endpoint which publishes WSDLs that define the request/response formats for integration via web services with other apps.
    4. Portal apps / infrastructure is only required if you are deploying the OPM project within a portal (i.e. as an interview running within a portal app).
    (3 and 4 above are related, you didn't ask but a fourth option for deployment integration is via an API so basically an OPM project can be deployed as one or more of the following: an interview app (Web Determinations), an interview within a portal, a web services endpoint (Determinations Server) or integrated via an API. The YouTube content on architecture overview and integration will explain in a bit more detail and the OTN content will go into much more detail on each of the options.

  • Siebel Eligibility determination functionality throws rulebase errors

    Issue facing*
    Clicking on Eligibility button throws the following error
    +[1] Error running sub-process 'PUB Case Eligibility Determination Main' at step 'Subprocess - Eligibility Determination Workflow'.(SBL-BPR-00183)+
    +[2] Error running sub-process 'Policy Automation Assess Workflow' at step 'OPA Connector'.(SBL-BPR-00183)+
    +[3] Error invoking service 'Policy Automation Determination Server', method 'Assess' at step 'Call Determination Server'.(SBL-BPR-00162)+
    +[4] Operation 'Assess' of Web Service 'http://oracle.com/determinations/server/10.0/server/types.DeterminationServer' at port 'My_Benefits_Eligibility' failed with the following explanation: "The Rulebase generated 8 error events.".(SBL-EAI-04308)+
    Prerequisite changes made for Eligibility button implementation*
    1.     Modified web service record with Name = “DeterminationServer” by adding the Service Port record and Operation record for the custom rulebase under Determination Server in Administration - Web Services -> Outbound Web Services view.
    2.     Created a mapping record for the custom rulebase.
    3.     Added required TopGoal attributes under global mapping.
    4.     Made changes to Business Component UserProperty “NameMethod 8” corresponding to Eligibility method to invoke the custom rulebase for the BC “HLS Case”.
    Analysis and observations*
    1.     For a Case having 2 contact records, we are getting error "The Rulebase generated 8 error events”.
    2.     For a Case having a single Contact record, we are getting error "The Rulebase generated 4 error events”.
    3.     We tried an alternative of adding error tag in the Assess configuration for the request xml in SOAP UI tool to identify the issue. But we did not get details about the error.
    Clarifications required_
    1.     It would be good if we get steps to obtain detailed information on rulebase errors either in SOAP UI tool or in Siebel ?

    Please follow the below steps, It may help you.
    1. Recompile the work flow using siebel tools
    2. Check the mappings between siebel BC fields and OPA attributes
    3. Verify the Outbount web serivce address

  • Using "and" "or" etc conjunctions

    Hi All,
    I have a rulebase:
    1) the branch code is required if
    the window = "London"
    and
    the product ="CDS"
    2) the branch code is required if
    the window = "Canada"
    and
    the product ="CAIN"
    Since the conclusion is same for both scenarios, i am not able to write it this way.
    I am trying to merge these to under single conclusion but i am not getting the proper conjunction to be used.
    How can i achieve these two set of conditions in a rulebase under single conclusion.
    Thanks.

    This may also be something which works well as an Excel rule table, e.g.
    | the window | the product | the branch code is required |
    | London     | CDS         | TRUE                        |
    | Canada     | CAIN        | TRUE                        |
                 |        else | FALSE                       |
                 ---------------------------------------------Have a look at this OPM Help topic "Define decision tables in Excel workbooks" for information about Excel rules.

  • Sample Rulebase in OPA 10.4.2 - Error 404 -- Not Found

    Hi,
    I just installed OPA 10.4.2 but was not able to load the sample rulebases included in the package. I simply copied all compiled rulebases (*.zip) from C:\V35235-01\examples\rulebases\compiled to C:\OPA\web-determinations\web-determinations\WEB-INF\classes\rulebases then re-packed web-determinations folder to create web-determinations.war then re-deployed to Weblogic. When I tested the web-determinations site, I got 'Error 404--Not Found'. Below are the sites I tried.
    Directly from Weblogic Console Deployment Testing tab - http://localhost:7001/web-determinations
    From new IE browser - http://localhost:7001/web-determinations/startsession/BenefitCodeExample/en-us
    However, I was able to open the BenefitCodeExample page when I accessed it from OPM. I opened the project then click 'Build and Run' via Web-Determinations.
    Can you please assist me with this problem? I'm not sure if I'm doing the right way to deploy rulebases. If not, please let me know the correct way. Thanks!
    Regards,
    Ann

    A very common problem with creating a war file is to zip it with the containing directory included.
    The correct structure for a Web Determinations war file has no top level directory and the first set of directories in the war file are: ./data, ./WEB-INF ./META-INF
    Its very easy to re-zip Web Determinations so that the top level directory is included, resulting in a structure like: ./web-determinations/data, ./web-determinations/WEB-INF ./web-determinations/META-INF
    This is incorrect and will result in the web application not being available (404 errors).
    Cheers
    Frank

  • Where does one manage date formats for display and input

    the user specification is that dates be displayed as YYYY-MON-DD. Is there a config or properties file which contains the date format for display? Is there a calendar drop-down that can be positioned next to a date input field for a question on a screen?
    Thanks,
    Allan

    Hi Allan,
    Curious why the rule project wasn't created with "English (Canada)" initially? If your project is English (UK) with the default configurations for that locale, then I assume your currency values are appearing in OWD with the GBP symbol (£) instead of a dollar sign ($)?
    As for the impact of switching… I highly recommend getting confirmation from the OPA Dev team before doing it, but in the meantime, if you wanted to experiment on your own with a separate test rulebase (as opposed to whatever formal rulebase you're working on), here are my observations from an initial look… (FYI, I'm an experienced OPA rulie, but I'm non-technical and not in the Dev team, so best to check with them!)
    I poked around the language parser files and saw that English (UK) has an English (UK) verb list, whereas English (Canada) uses the English (US) verb list. The vast majority of verbs are identical in all the variations of English, however, there are a couple which differ. So if you've used any verbs which have a different spelling between the 2 lists, there may be some attribute text to tweak, e.g.
    - English (UK): the person travelled to Australia
    - English (US): the person traveled to Australia
    - English (UK): the person cancelled the reservation
    - English (US): the person canceled the reservation
    I saw some other different files between English (Canada) vs English (UK), but didn't notice anything in them which I'd expect to impact the rulebase.
    As for how it might impact other components:
    * screens file and the properties file – May be some tweaking depending on how you addressed the verb spelling issue above.
    * regression test files – May be some tweaking depending on how you addressed the verb spelling issue above.
    * messages.(locale).properties – The default messages.(locale).properties file appears to be based on the Language setting of the Project. I just tested this and OWD used a different messages.(locale).properties file when I changed the Project Language (OPM | File menu | Project Properties | Common Properties | General | Language).
    * Siebel Connector – don't know what the impact would be.
    OPA Dev team – Can you review what I've said here? And add any relevant further detail?
    Cheers,
    Jasmine

  • Problem while parsing Rulebase Excel Spreadsheet

    Hi All,
    My program was running using OPA Determination Engine libraries.
    Apparently when trying to parse a rulebase excel spreadsheet, the OPA regards one attribute as unknown even though it has been listed as empty in the excel spreadsheet's cell.
    My Data has this information
    field1 = XXX
    field2 = YYY
    field3 = ZZZ
    field4 = empty
    The excel spreadsheet contains this information
    row1: field1 is empty, field2 is empty, field3 is empty, field4 is AAA
    row2: field1 is XXX, field2 is YYY, field3 is ZZZ, field4 is empty
    Decision Report:
    Can't draw conclusion because
    field1 = XXX
    field2 = YYY
    field3 = ZZZ
    and field4 is unknown
    Any suggestion for this?

    I think you are making this more complicated than it needs to be. Based on your description above of the logic, I wouldn't even be using Excel at all, and I wouldn't be doing it as a rule table in Word either.
    Using dummy attribute text which I'm just making up for the purpose of this example, it sounds like you're logic can be represented with the following simple regular Word rule:
    the person is happy if
    the first text variable = "AAA" or
    all
    .....the first text variable = "XXX" and
    .....the second text variable = "YYY" and
    .....the third text variable = "ZZZ"If you write it as a regular Word rule like this, then the conclusion WILL evaluate to TRUE if the only data you provide is the following:
    the first text variable = "XXX" and
    the second text variable = "YYY" and
    the third text variable = "ZZZ"
    [As an aside... depending on what you're doing and what your real rules actually are, you might also want to separately stick a Boolean attribute over the top of each of these variable attributes and then use the Booleans in the rest of the rulebase. However, I wouldn't bother with the extra Booleans if you're just having a bit of a play around with OPA, or if you're just building a simple little demo.
    If you are doing anything more than just having a bit of a look at OPA, then I strongly suggest that you consider some proper OPA training anyway.]

  • How to use Hashtable in Rules Engine. And objects within objects in rules

    This is something to do with the JBoss Rules Engine.
    I have an object called 'Employee' containing variables name(string), age(int), sex(string), an object Skill and other fields not relevant.
    Now the Skill object contains name and desc as variables.
    And now i have another seperate object called Test containing two hashtable: inputHT and outputHT.
    i have appropriate data in each of the objects and the hashtable:
    Employee e = new Employee();
    e.setName("Name");
    e.setAge(18);
    e.setSex("f");
    e.getSkill().setSkill("Trainer");
    Hashtable ht = new Hashtable();
    ht.put("age", new Integer(e.getAge());
    ht.put("sex", e.getSex());
    Test t = new Test();
    t.setInputHT(ht);
    Since this is something to do with drools rules: I have the appropriate code even for that.
    Like obtaining the rules defined(.drl files) in a stream, constructing the package builder, rulebase and the working memory.
    I will now explain u my .drl files(ie the rules that i have defined) and the error that i am encountering
    when I have the rule as the following there is no error:
    rule "testRule1"
    when
    e:Employee(age >= 18, sex == "f")
    then
    System.out.println("The lady can marry");
    end
    In the above rule we can see that only two simple variables contained in the employee object is being accessed and there is no error encountered.
    But when I try to access the object "skill" in the employee object, the rule throws me an error when i am constructing the packageBuilder:
    rule "testRule2"
    when
    e:Employee(skill.name == "Trainer")
    then
    System.out.println("The skill is trainer");
    end
    The error thrown is : unexpected token 'skill' and many other dump errors and also error: expected token ')'
    I tried changing the when clause as the following:
    when
    e:Employee(skill.getName() == "Trainer")
    and also
    when
    e:Employee(skill.getName().equals("Trainer"))
    All of them throws the same above error.
    But at the same time if i access only object without its variables, it is working fine. Like:
    rule "testRule2"
    when
    e:Employee(skill == "Trainer")
    then
    System.out.println("The skill is trainer");
    end
    The above rule works properly and does not throw any error. But it is not a valid rule. But syntactically it is correct. and does not throw any error during packageBuilder.
    Similarly, the problem is with the Hashtable
    The below code works fine, but rulewise it is not valid, but syntactically correct. and does not throw any error
    rule "testHT1"
    when
    t:Test(inputHT == "f")
    then
    System.out.println("Print this");
    end
    But the following code throws error, telling unexpected token 'inputHT' :
    rule "testHT1"
    when
    t:Test(inputHT.get("sex") == "f")
    then
    System.out.println("Lady");
    end
    I even changed the when clause, but did not get the appropriate result and it threw me error.
    when
    t:Test(((String)input.get("sex")) == "f")
    and also many other variants but of no use.
    It would be of great help if u or anyone else could reply to this with some solution
    Thank you in advance

    http://forum.java.sun.com/thread.jspa?threadID=774018

  • Build and Debug Problem 10.2

    I just installed 10.2 and did a Build and Debug. I got an error that it couldn't run. It is saying that some property in the Oracle web determination has to be set in the application.properties file. I have no idea what the message is talking about. Any help is greatly appreciated.
    Thanks,
    Terry

    Thanks
    I changed the enable.debugger to true and saved the application.properties file
    Opened the project and did a build and debug. Got this message
    type Exception report
    message. Does the fact that this project isn't in the Projects directory matter?
    Thanks,
    Terry
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet WebDeterminationsServlet threw exception
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    root cause
    com.oracle.determinations.interview.engine.exceptions.RulebaseLoadingException: could not load rulebase: E-Verify
         com.oracle.determinations.interview.engine.local.LocalInterviewRulebase.getRulebase(LocalInterviewRulebase.java:163)
         com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:86)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34)
         com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.io.IOException: Caught exception class javax.xml.stream.XMLStreamException: Unexpected schema version in screens file: 5
         com.oracle.determinations.engine.local.ScreensLoader.loadScreens(ScreensLoader.java:260)
         com.oracle.determinations.engine.local.ScreensLoader.loadScreens(ScreensLoader.java:139)
         com.oracle.determinations.engine.local.CachingRulebaseLoader.loadRulebase(CachingRulebaseLoader.java:308)
         com.oracle.determinations.engine.local.LocalEngine.getRulebase(LocalEngine.java:192)
         com.oracle.determinations.interview.engine.local.LocalInterviewRulebase.getRulebase(LocalInterviewRulebase.java:151)
         com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:86)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91)
         com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34)
         com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
         com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.31 logs.
    Apache Tomcat/5.5.31

  • Build and run Rules with Jdev Integrated Web Determination Server

    Hi
    I created the rule using Oracle Policy Modeling (OPM). Then built and deployed with Embedded Tomcat web determination server. Successfully done it.
    Now I have to run the same rule under Jdeveloper Integrated Server. As I know, current version of OPM doesn't support any external server other than Tomcat. In that case I have to copy the output from OPM to JDev Integrated server manually.
    Let me know the server location where I have to copy the rule from OPM to Jdev Server.
    Thanks
    Dev

    There are a couple of ways of deploying a new rulebase into OPA running on weblogic.
    These can be found in the documentation in the Oracle Policy Automation Developer's Guide (http://docs.oracle.com/html/E38272_01/toc.htm)
    1. The first way is to redploy the OPA runtime .war (web-determinations or determinations-server) when a new rulebase is built. These war files are created in the releases directory of the OPM project. When a new release is built the rulebase is embedded in the .war file
    2. The second way is to re-deploy the rulebase only. The rulebase is called <project name>.zip and is found in the output directory of the OPM project.
    To use the second approach in weblogic you must configure the OPA runtimes to use an external directory. See the Manage rulebases and application.properties sections of the Oracle Policy Automation Developer's Guide.
    Then decide if you want to 'hot-swap' (deploy immediately after copying a new rulebase to this directory. If you do not use hot swapping, you will have to restart the web application when you deploy a new version.
    Cheers
    Frank
    Edited by: frank.hampshire on Dec 13, 2012 11:35 AM

  • Rulebases not available when deploying OPA 10.2 on Weblogic

    Hi,
    Before upgrading to version 10.2 of determinations-server.war I was running 10.1 deployed to WLS 10.3. I used the java option -Ddeterminations.server.rulebase.dir to point out where rulebases should be loaded from. After switching to 10.2 thiss setting doesn't work.
    When using the documented settings for classpath loading in application.properties I set up
    load.rulebase.from.claspath=true
    rulebase.path=rulebases
    As I understand it the directory rulebases is seached for in CLASSPATH of WLS so I added the directory C:\bea\user_projects\domains\windomain to CLASSPATH of WLS. windomain contains a directory "rulebases" containing my working rulebases.
    When listing rulebases nothing is available.
    The war is deployed unexploded and this is the way the customer wants it. I wish to just modify application.properties so classpath loading works and have the rulebases on the file system.
    Similar post hinting this should work: Error installing web-determinations 10.1.0.27 on WLS 10.3.3

    C:\bea\user_projects\domains\windomain is located in CLASSPATH. (which I see in startup log)
    C:\bea\user_projects\domains\windomain\rulebases contains my zipfiles which are working if i deploy exploded war.
    My war file is located in C:\bea\user_projects\domains\windomain\autodeploy
    application.properties is set according to
    load.rulebase.from.claspath=true
    rulebase.path=rulebases
    I have also tried setting CLASSPATH to C:\bea\user_projects\domains\windomain\rulebases without any positive result.
    At least one more colleague has tried the same approach with trying to load rulebases from CLASSPATH (WLS), but with no success. We have tried Windows, Solaris and Linux without success.
    The log shows the following, which it also does if I deploy exploded.
    <2011-mar-25 kl 10:40 CET> <Info> <Health> <BEA-310002> <71% of the total memory in the server is free>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,408 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.determinations.server.DSServlet - GET request: pathinfo=null queryString=null contextPath=/dete
    rminations-server>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,549 WARN [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] WARN com.oracle.determinations.interview.engine.local.LocalInterviewEngine - Plugin directory could not be init
    ialised. No plugins will be loaded
    java.lang.IllegalArgumentException: Can not locate plugin directory 'plugins'. On the classpath
    at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:99)
    at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:101)
    at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:59)
    at com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19)
    at com.oracle.determinations.server.DSServletContext.<init>(DSServletContext.java:35)
    at com.oracle.determinations.server.DSServlet.getOrCreateContext(DSServlet.java:128)
    at com.oracle.determinations.server.DSServlet.doGet(DSServlet.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,565 WARN [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] WARN com.oracle.determinations.server.assess.AssessEngine - Plugin directory could not be initialised.
    java.lang.IllegalArgumentException: Can not locate plugin directory 'plugins'. On the classpath
    at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:99)
    at com.oracle.determinations.server.assess.AssessEngine.<init>(AssessEngine.java:67)
    at com.oracle.determinations.server.DSServletContext.<init>(DSServletContext.java:38)
    at com.oracle.determinations.server.DSServlet.getOrCreateContext(DSServlet.java:128)
    at com.oracle.determinations.server.DSServlet.doGet(DSServlet.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,580 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.server.current.ServerServiceCurrent>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,580 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.server.v10_2.ServerService102>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,580 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.server.v10_0.ServerService10>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,721 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created instance of plugin: com.oracle.determination
    s.server.services.server.current.ServerServiceCurrent>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,768 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created instance of plugin: com.oracle.determination
    s.server.services.server.v10_2.ServerService102>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,799 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created instance of plugin: com.oracle.determination
    s.server.services.server.v10_0.ServerService10>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,799 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.interview.current.InterviewServiceCurrent>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,799 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.interview.v10_2.InterviewService10_2>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,815 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.current.SpecificAssessServiceCurrent>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,815 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.current.GenericAssessServiceCurrent>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,815 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.v10_2.SpecificAssessService102>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,815 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.v10_2.GenericAssessService102>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,830 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.v10_0.SpecificAssessService10>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,830 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] INFO com.oracle.util.plugins.PluginRegistry - Successfully created plugin factory: com.oracle.determinations.se
    rver.services.assess.v10_0.GenericAssessService10>
    <2011-mar-25 kl 10:42 CET> <Notice> <Stdout> <BEA-000000> <10:42:58,846 WARN [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.D
    efault (self-tuning)'] WARN com.oracle.determinations.server.ServiceRegistry - Plugin directory could not be initialised.
    java.lang.IllegalArgumentException: Can not locate plugin directory 'plugins'. On the classpath
    at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:99)
    at com.oracle.determinations.server.ServiceRegistry.initRulebaseServices(ServiceRegistry.java:89)
    at com.oracle.determinations.server.ServiceRegistry.<init>(ServiceRegistry.java:78)
    at com.oracle.determinations.server.DSServletContext.<init>(DSServletContext.java:41)
    at com.oracle.determinations.server.DSServlet.getOrCreateContext(DSServlet.java:128)
    at com.oracle.determinations.server.DSServlet.doGet(DSServlet.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>

Maybe you are looking for

  • Printing problem HP Officejet Pro 8500

    When I try to print in Elements 10 it defaults to fax. It did the same thing in version 9. It is the reason I upgraded.

  • Why can't I export PDF files?

    I'm trying to create a new library from several smaller libraries and have come across a problem where PDF files aren't included in my library export (File-Library-Export library). The music and video files on the other hand are all intact. Trying to

  • Help with itunes and quick time

    IT wont let me open my itunes now i get a pop up saying that my quicktime is to old 7.1 or something which i thought was upto date and it says it requires 7.1-7.3 and to reinstall itunes. So i guess my question is, do i have to unistall my itunes ( w

  • HELP!!  Update of 7.0 wont work - Error Message

    I really need some help - and hope that you can send it my way. I just completed the download of 7.0 update for Itunes but when I go to run the download it gives me an error message that reads: not a valid WIN32 application. What does that mean and h

  • Urgent-vendor as a customer

    Hi I want to treat vendor as a customer. I entered customer no on vedor master and vise versa. But i didnt find for ticking "Clr customer" "clr vendor" In vendor and customer master where should I get this tick fiels. its urgent