<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
you need to make your Outer class static and public. Look at the sample
generated with a new drools project, that uses a static public class.<br>
<br>
Mark<br>
Narendra Valada wrote:
<blockquote
cite="mid:aea77c910707051133o78324c26lb15e787d62d3d21a@mail.gmail.com"
type="cite"><b><font color="#960000" size="2">
<div align="left">Hello,</div>
<div align="left"> </div>
<div align="left">I am getting an "Unable to resolve object type"
error on certain XML Bean generated inner classes. I get this error
only on inner classes that have been defined within other inner
classes. Please see example below.
</div>
<div align="left"> </div>
<div align="left">Is this a known limitation of JBoss Rules (I am
using JBOSS Rules 3.0.6) or the JANINO compiler?</div>
<div align="left"> </div>
<div align="left">Thanks.</div>
<div align="left"><b><font color="#7f0055" size="2">
<p align="left">package</p>
</font></b></div>
</font><font size="2"> com.sample;
</font><b><font color="#7f0055" size="2">
<p align="left">public</p>
</font></b><font size="2"> </font><b><font color="#7f0055" size="2">class</font></b><font
size="2"> Outer{
</font><b><font color="#7f0055" size="2"> public</font></b><font
size="2"> </font><b><font color="#7f0055" size="2">class</font></b><font
size="2"> Inner {
</font><b><font color="#7f0055" size="2"> public</font></b><font
size="2"> </font><b><font color="#7f0055" size="2">boolean</font></b><font
size="2"> </font><font color="#0000c0" size="2">inner</font>
<font size="2">=</font><b><font color="#7f0055" size="2">false</font></b><font
size="2">;
</font><b><font color="#7f0055" size="2"> public</font></b><font
size="2"> </font><b><font color="#7f0055" size="2">class</font></b><font
size="2"> InnerInner {
<p align="left"> }</p>
<p align="left"> }</p>
<p align="left">}</p>
</font>
<div align="left">package</div>
</b><font size="2"> com.sample
</font><b><font color="#960000" size="2">
<p align="left">import</p>
</font></b><font size="2"> com.sample.Outer1.Inner.InnerInner;
</font><b><font color="#960000" size="2">
<p align="left">rule</p>
</font></b><font size="2"> </font><font color="#008000" size="2">"Hello
World 1"</font><font size="2">
</font><b><font color="#960000" size="2">when</font></b><font size="2">
<p align="left">InnerInner()</p>
</font><b><font color="#960000" size="2">then</font></b><font size="2">
<p align="left">System.out.println(</p>
</font><font color="#008000" size="2">""</font><font size="2">);</font><b><font
color="#960000" size="2">
<p>end</p>
</font></b>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>