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