Problem with drools spring

113 views
Skip to first unread message

Ghabi Abdelmajid

unread,
Dec 4, 2016, 12:29:34 PM12/4/16
to Shopizer
Hello
I'm using eclipse luna, java 7, tomcat 7, shopizer 2.0.4. At the moment i can compile the project generate the war file but when starting ther server i'm getting a spring error.
cann't create the bean shippingPriceDecisionBase from fie sm-core/src/main/resources/spring/shopizer-core-rules.xml. This is the log i'm getting:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: [16,55]: [ERR 101] Line 16:55 no viable alternative at input ''
[34,55]: [ERR 101] Line 34:55 no viable alternative at input ''
[16,56]: [ERR 101] Line 16:56 no viable alternative at input '150' in rule "Shipping quote_12"
[34,56]: [ERR 101] Line 34:56 no viable alternative at input '100' in rule "Shipping quote_14"
[0,0]: Parser returned a null Package

jes.d....@gmail.com

unread,
Jun 6, 2017, 4:21:58 AM6/6/17
to Shopizer
Nobody found the error? I have the same problem in 2.0.5 version. I try in mvn alone, Eclipse STS, IntelliJ IDEA, Tomcat 9, SpringBoot. The war is success but not run.

Carl Samson

unread,
Jun 6, 2017, 10:10:47 AM6/6/17
to shop...@googlegroups.com
Drules files located in shopizer\sm-core\src\main\resources\rules

import decision tables xls files

At runtime drules need to import the input/output bean specified with this line

com.salesmanager.core.business.modules.integration.shipping.impl.*

That is related to a build issue so that dependency jar files do not seem to be available for drules.

I recommend the following steps

mvn clean install on each of the following projects, important to it in that order

- sm-core-model
- sm-core-modules
- shopizer-shipping-distance-module
- sm-core
- sm-shop

If it does not solve the issue, open sm-core/src/main/resources/spring/shopizer-core-modules.xml

and comment out this bean

<beans:bean id="customShippingPriceModule"
class="com.salesmanager.core.business.modules.integration.shipping.impl.CustomShippingQuoteRules"/>


--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+unsubscribe@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shopizer/118e3d26-c728-42d0-abea-4d72e036b8b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Глеб Канунников

unread,
Jul 11, 2017, 8:22:17 PM7/11/17
to Shopizer, jes.d....@gmail.com
Do you find the right solution of the problem? I tried a lot of different things but nothing helps.

вторник, 6 июня 2017 г., 11:21:58 UTC+3 пользователь jes.d....@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages