<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
 /* List Definitions */
 @list l0
        {mso-list-id:628585037;
        mso-list-type:hybrid;
        mso-list-template-ids:91905668 -886544726 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l1
        {mso-list-id:1275794545;
        mso-list-type:hybrid;
        mso-list-template-ids:-660842282 -1759888400 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I am implementing drools 5.0(Guvnor GUI) in my application (protocol for same is
<b>https</b>)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">For this purpose , I have set up drools 5.0 framework code needed to run the rules from my application. Also, I have integrated Guvnor GUi code inside my application itself.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">While doing implementation, inside changeset.xml file I have written following code :<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&lt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#3F7F7F">change-set
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">xmlns</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'http://drools.org/drools-5.0/change-set'</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#2A00FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">xmlns:xs</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'http://www.w3.org/2001/XMLSchema-instance'</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#2A00FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">xs:schemaLocation</span><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#2A00FF">'http://drools.org/drools-5.0/change-set
 drools-change-set-5.0.xsd' </span><span style="font-size:10.0pt;font-family:
&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&gt;</span><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:black">&nbsp;&nbsp; &nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&lt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#3F7F7F">add</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&gt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:black">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&lt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#3F7F7F">resource
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">source</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'<b>https</b>://localhost:8441/drools-guvnor/org.drools.guvnor.Guvnor/package/Payroll_Swapnil/LATEST.drl'
 &nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">type</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'DRL'
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:teal">/&gt;//as I have integrated Guvnor GUI in my secured app</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:black">&nbsp;&nbsp; &nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&lt;/</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#3F7F7F">add</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&gt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:teal">&lt;/</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#3F7F7F">change-set</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:teal">&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:teal"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">I have created a simple rule using Guvnor GUI (GUI code inside my application). When I run the same rule from my business layer, I get following security exception :<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Message: Service [ruleService] target threw an unexpected exception (javax.net.ssl.SSLHandshakeException: sun.security.va<o:p></o:p></p>
<p class="MsoNormal">lidator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable<o:p></o:p></p>
<p class="MsoNormal">&nbsp;to find valid certification path to requested target)<o:p></o:p></p>
<p class="MsoNormal">---- cause ---------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Exception: java.lang.RuntimeException<o:p></o:p></p>
<p class="MsoNormal">Message: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.s<o:p></o:p></p>
<p class="MsoNormal">ecurity.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Then I changed the &#8220;changeset.xml&#8221; as follows : <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:teal">&lt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#3F7F7F">resource
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">source</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'<b>http</b>://localhost:8441/drools-guvnor/org.drools.guvnor.Guvnor/package/Payroll_Swapnil/LATEST.drl'
 &nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#7F007F">type</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:black">=</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:#2A00FF">'DRL'
</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;
color:teal">/&gt;</span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&nbsp;This time when I run the same rule , I got following error :
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">[2010:08:214 10:08:319:debug] ResourceChangeScanner subcribing notifier=org.drools.io.impl.ResourceChangeNotifierImpl@c40<o:p></o:p></p>
<p class="MsoNormal">88a to resource=[UrlResource path='http://localhost:8441/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LA<o:p></o:p></p>
<p class="MsoNormal">TEST.drl']<o:p></o:p></p>
<p class="MsoNormal">[2010:08:214 10:08:319:debug] KnowledgeAgent ChangeSet requires KnowledgeBuilder<o:p></o:p></p>
<p class="MsoNormal">[2010:08:214 10:08:319:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet<o:p></o:p></p>
<p class="MsoNormal">2010-08-02 10:53:34,615 (http-0.0.0.0-8441-2) [&nbsp; ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,si<o:p></o:p></p>
<p class="MsoNormal">nce last(Begin):0.0]] - 'payroll / ruleService'<o:p></o:p></p>
<p class="MsoNormal">2010-08-02 10:53:34,615 (http-0.0.0.0-8441-2) [&nbsp;&nbsp;&nbsp; TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction<o:p></o:p></p>
<p class="MsoNormal">&nbsp;rolled back<o:p></o:p></p>
<p class="MsoNormal">2010-08-02 10:53:34,615 (http-0.0.0.0-8441-2) [&nbsp;&nbsp;&nbsp; TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committin<o:p></o:p></p>
<p class="MsoNormal">g transaction, status is No Transaction (6)<o:p></o:p></p>
<p class="MsoNormal">2010-08-02 10:53:34,615 (http-0.0.0.0-8441-2) [ServiceEventHandler.java:352:ERROR]<o:p></o:p></p>
<p class="MsoNormal">---- exception report ----------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Service invocation error<o:p></o:p></p>
<p class="MsoNormal">Exception: org.ofbiz.service.GenericServiceException<o:p></o:p></p>
<p class="MsoNormal"><b>Message: Service [ruleService] target threw an unexpected exception (java.net.SocketException: Unexpected end of file fro<o:p></o:p></b></p>
<p class="MsoNormal"><b>m server)<o:p></o:p></b></p>
<p class="MsoNormal">---- cause ---------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Exception: java.lang.RuntimeException<o:p></o:p></p>
<p class="MsoNormal">Message: java.net.SocketException: Unexpected end of file from server<o:p></o:p></p>
<p class="MsoNormal">---- cause ---------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Exception: java.net.SocketException<o:p></o:p></p>
<p class="MsoNormal">Message: Unexpected end of file from server<o:p></o:p></p>
<p class="MsoNormal">---- stack trace ---------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">java.net.SocketException: Unexpected end of file from server<o:p></o:p></p>
<p class="MsoNormal">sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)<o:p></o:p></p>
<p class="MsoNormal">sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)<o:p></o:p></p>
<p class="MsoNormal">sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)<o:p></o:p></p>
<p class="MsoNormal">sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)<o:p></o:p></p>
<p class="MsoNormal">sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1000)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Finally, I tried deploying same rule on &#8220;Guvnor 5.0 GUI on my
<b>separate tomcat server(outside my secured app) </b>&#8220;. When I give the &#8220;drl path&#8221; of this codebase on my separate Tomcat inside my changset.xml, things work fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have a doubt as to is the error coming as I am trying to access a &#8220;https&#8221; url as &#8220;http&#8221; ?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Can any one pl help me in this regard. Any help of yours would be great help.Thanks in advance.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Swapnil Sawant <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Black" size="3">This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from
 your system.<br>
</font>
<BR>
______________________________________________________________________<BR>
</body>
</html>