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"
<!-- <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"
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
------------------------------