Decision Management (ODM,ADS)

Decision Management (ODM, ADS)

Connect with experts and peers to elevate technical expertise, solve problems and share insights

 View Only

ODM 8.12 WAS Liberty Context Root Not Found error

  • 1.  ODM 8.12 WAS Liberty Context Root Not Found error

    Posted Mon February 03, 2025 08:35 AM

    Hi,

    I am trying to make call to ruleset through IlrJ2SESessionFactory.  Below is the code

    IlrStatelessSession session = jrulesSessionFactory.createStatelessSession();
                IlrPath rulesetPath = IlrPath.parsePath(getRulesetPath(rulesetName));
                IlrSessionRequest request = jrulesSessionFactory.createRequest();
                request.setRulesetPath(rulesetPath);
                request.setTraceEnabled(true);
                request.setInputParameter("dummyRequest", input);
                logger.info("getInputParameters  " + request.getInputParameters());
                Map<String, Object> outParams = session.execute(request).getOutputParameters();

    below is web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
            <web-app id="WebApp_ID" 
             version="2.4" 
             xmlns="http://java.sun.com/xml/ns/j2ee" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 
             
      <!--       <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="https://jakarta.ee/xml/ns/jakartaee"
    xmlns:web="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="5.0">-->
    <display-name>EmeraldRuleConnector</display-name>
     
     
      <listener>
        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
      </listener>
      <servlet>
        <servlet-name>emeraldRuleConnectorWebService</servlet-name>
        <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      
      <!--<resource-ref>
        <res-ref-name>eis/XUConnectionFactory</res-ref-name>
        <res-type>javax.resource.cci.ConnectionFactory</res-type>
        <res-auth>Application</res-auth>
        <res-sharing-scope>Unshareable</res-sharing-scope>
      </resource-ref>-->
     
      <servlet-mapping>
        <servlet-name>emeraldRuleConnectorWebService</servlet-name>
        <url-pattern>/RuleConnectorWebService</url-pattern>
      </servlet-mapping>
     
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    </web-app>

    I am getting error as

    "content="WebSphere Application Server Version V8.5 Liberty Profile - Context Root Not Found" as SOAP response further analyzing, shows "ServiceNotAvailableException".

    Kindly assist



    ------------------------------
    Santosh NarendraDas
    ------------------------------