Hi all<br><br>To execute the web application I configured like I said<br><br> <a href="http://drools.org/schema/drools-spring">http://drools.org/schema/drools-spring</a> file:///path/to/my/drools-spring-1.0.0.xsd<br><a href="http://camel.apache.org/schema/spring">http://camel.apache.org/schema/spring</a> file:///path/to/my/camel-spring.xsd<br>
<br>To execute the unit tests I configured other applicationContext.xml like Corneil said<br><br><a href="http://drools.org/schema/drools-spring">http://drools.org/schema/drools-spring</a> drools-spring-1.0.0.xsd<br>
<a href="http://camel.apache.org/schema/spring">http://camel.apache.org/schema/spring</a> camel-spring.xsd<br><br>I already had two applicatoinConext.xml files, because in my web application some other beans are created, so this was not a problem. Like Geoffrey said this is not the best solution, but I have not found other solution. I know the &quot;drools.rulebase.conf&quot; to configure work items, but I have not found documentation about this file to configure the spring like you suggested.<br>
<br>Thanks again,<br>Anderson<br><br><div class="gmail_quote">2010/12/1 Anderson Rocha <span dir="ltr">&lt;<a href="mailto:anderson.ufal@gmail.com">anderson.ufal@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thank you all. I will try some of these solutions later, and post the results.<br>
<br>
2010/12/1, Geoffrey De Smet &lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; The key is probably in this file:<br>
&gt;<br>
&gt; drools/drools-container/drools-spring/src/main/resources/META-INF/spring.schemas<br>
&gt;<br>
&gt; Op 01-12-10 17:45, Geoffrey De Smet schreef:<br>
&gt;&gt; Corneil, that&#39;s an imperfect solution because that your IDE won&#39;t find<br>
&gt;&gt; the xsd&#39;s automatically and give you code completion.<br>
&gt;&gt;<br>
&gt;&gt; The perfect solution IIRC is:<br>
&gt;&gt; - use the full http...xsd reference in your xmls (just like you do for<br>
&gt;&gt; other spring schema&#39;s)<br>
&gt;&gt; - write a patch for drools-spring so it has a properties file to tell<br>
&gt;&gt; spring which http...xsd maps to which xsd resource on the classpath<br>
&gt;&gt;<br>
&gt;&gt; Op 01-12-10 16:21, Corneil du Plessis schreef:<br>
&gt;&gt;&gt; change schema location to that is only contains filenames like<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &lt;beans xmlns=&quot;<a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a>&quot;<br>
&gt;&gt;&gt;           xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
&gt;&gt;&gt;           xmlns:drools=&quot;<a href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a>&quot;<br>
&gt;&gt;&gt;           xmlns:camel=&quot;<a href="http://camel.apache.org/schema/spring" target="_blank">http://camel.apache.org/schema/spring</a>&quot;<br>
&gt;&gt;&gt;           xsi:schemaLocation=&quot;<a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><br>
&gt;&gt;&gt; spring-beans-2.5.xsd<br>
&gt;&gt;&gt; <a href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a> drools-spring-1.0.0.xsd<br>
&gt;&gt;&gt; <a href="http://camel.apache.org/schema/spring" target="_blank">http://camel.apache.org/schema/spring</a> camel-spring.xsd&quot;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Then put the xsd files in same folder as applicationContext.xml<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 01/12/2010 17:15, Geoffrey De Smet wrote:<br>
&gt;&gt;&gt;&gt; IIRC, there&#39;s something in drools-spring we can do, so the xsd&#39;s don&#39;t<br>
&gt;&gt;&gt;&gt; have to be downloaded from the internet but can be used directly from<br>
&gt;&gt;&gt;&gt; the jar.<br>
&gt;&gt;&gt;&gt; It might be a properties file or something in the jar, which says urlX =<br>
&gt;&gt;&gt;&gt; pathYinTheJar.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Op 01-12-10 15:59, Anderson Rocha schreef:<br>
&gt;&gt;&gt;&gt;&gt; Thank you for your replay.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I downloaded the schemas and configured the applicationContext.xml<br>
&gt;&gt;&gt;&gt;&gt; like this, consider &quot;path to my&quot; the path to the file.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; &lt;beans xmlns=&quot;<a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a>&quot;<br>
&gt;&gt;&gt;&gt;&gt;           xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
&gt;&gt;&gt;&gt;&gt;           xmlns:drools=&quot;<a href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a>&quot;<br>
&gt;&gt;&gt;&gt;&gt;           xmlns:camel=&quot;<a href="http://camel.apache.org/schema/spring" target="_blank">http://camel.apache.org/schema/spring</a>&quot;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; xsi:schemaLocation=&quot;<a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</a><br>
&gt;&gt;&gt;&gt;&gt; *<a href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a><br>
&gt;&gt;&gt;&gt;&gt; file:///path/to/my/drools-spring-1.0.0.xsd*<br>
&gt;&gt;&gt;&gt;&gt; *<a href="http://camel.apache.org/schema/spring" target="_blank">http://camel.apache.org/schema/spring</a><br>
&gt;&gt;&gt;&gt;&gt; file:///path/to/my/camel-spring.xsd&quot;*&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have a web application, and when I execute it works =) but I have<br>
&gt;&gt;&gt;&gt;&gt; some unit tests and I initialize the spring with the code<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; ApplicationContext applicationContext = new<br>
&gt;&gt;&gt;&gt;&gt; ClassPathXmlApplicationContext(new String[]<br>
&gt;&gt;&gt;&gt;&gt; {&quot;applicationContext.xml&quot;});<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; In this case I get the same error I had before. Any ideia?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Anderson<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 2010/12/1 Mauricio<br>
&gt;&gt;&gt;&gt;&gt; Salatino&lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&lt;mailto:<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;        yes you can download the schemas to your hard drive and point<br>
&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;&gt;        applicationContext.xml to them.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;        2010/12/1 Anderson Rocha&lt;<a href="mailto:anderson.ufal@gmail.com">anderson.ufal@gmail.com</a><br>
&gt;&gt;&gt;&gt;&gt;        &lt;mailto:<a href="mailto:anderson.ufal@gmail.com">anderson.ufal@gmail.com</a>&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;            Hi all,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;            I realized that to use Drools with Spring I need to be<br>
&gt;&gt;&gt;&gt;&gt;            conected to the internet, but sometimes I am not. There is a<br>
&gt;&gt;&gt;&gt;&gt;            way to download the tags of Drools and configure the<br>
&gt;&gt;&gt;&gt;&gt;            applicationContext.xml to seek for them localy?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;            Regards,<br>
&gt;&gt;&gt;&gt;&gt;            Anderson<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;            _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;            rules-users mailing list<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;            <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;        --<br>
&gt;&gt;&gt;&gt;&gt;         - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
&gt;&gt;&gt;&gt;&gt;         - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
&gt;&gt;&gt;&gt;&gt;         - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;         - Salatino &quot;Salaboy&quot; Mauricio -<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;        _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;        rules-users mailing list<br>
&gt;&gt;&gt;&gt;&gt;        <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;        <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; With kind regards,<br>
&gt; Geoffrey De Smet<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Enviado do meu celular<br>
</font></blockquote></div><br>