Open paulParis opened 7 years ago
No body to help or gives idea about this issue please?
Are you deploying it on Tomcat or running it on Embedded Tomcat?
Yes I am deploying it on Tomcat not in Embbed one
Some conflits with tomcat Jars? It seems drools rules problems.. Cannot load or read stuff from excel files?
Are you able to run it with embedded tomcat?
On Mon, Jun 26, 2017 at 1:01 AM, paulParis notifications@github.com wrote:
Some conflits with tomcat Jars?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/shopizer-ecommerce/shopizer/issues/158#issuecomment-310989992, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfekNwoOiktOgXXKt2fP-d4OmKSQ27_ks5sH2VqgaJpZM4OA9JX .
-- With Regards Umesh Awasthi http://www.travellingrants.com/
No it doesnt run
same for me
@league55 @paulParis Can you upgrade JRE and provide your feedback? I tested it on 8.0_131 and it seems to be working for me. Will try to look in to it based on your feedback
Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_131, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: ru_UA, platform encoding: UTF-8 OS name: "linux", version: "4.10.0-28-generic", arch: "amd64", family: "unix"
I have pretty clean ubuntu 17 system, only elasticsearch engin is runnung
@league55 even with 1.8.0_131, you are facing same issue?
yes Now trying to build older version, 2.0.4
@league55 Couple of other question
starting via ShopApplication.class, mvn spring-boot:run gives the same
I see the code, you did greate work, and app is pretty big now, didn't you think about dockerizing app? It's very handy during development and for newbies like me to set up env...
@league55 This is in plan and help is always welcome :), it seems to be issue with the shipping API but it's working for me. Let me to check it in more details
Hi Guys, I face the exact same issue as league55. Do you have any update on the resolution? @umeshawasthi maybe?
Same issue here (Win 7 / JDK1.8 / Maven 3.5)... I also tried on a VM (Running Redhat 7.3 / OpenJDK1.8 / Maven 3.5) same issue. BUT on another machine (Win 10 / JDK1.8 / Maven 3.5) I ran the project (mvn spring-boot:run in /sm-shop) without any problem... So ???
Any solution for this problem ? I use JRE 1.8.074, tomcat 8.0.33
@umeshawasthi what is your conf?
I will use an other solution for my e-commerce. The techno of this project are up a date, but it doesnt work so ...
spring-boot run shows the same errors, drools files are wrong or what else?
Dear all I found a solution posted here after: https://groups.google.com/forum/#!topic/shopizer/xs8M3KrZLVw
So it says: Open the files:
In the file 1 (shipping-custom-rules.xls) delete the symbol "$" in the cell C9, D9, E9,F9, G9.
In the file 2 (shipping-decision-rules.xls) delete the symbol "$" in the cell C9, D9, E9,F9.
then on the main project /shopizer do a mvn clean install and in /shopizer/sm-shop do a mvn spring-boot:run
It worked for me
Best Mohamed
Big shoooookrane Mohamed, I am going to try this solution it works.
You're welcome PaulParis.
@umeshawasthi : I noticed several other problems in the 2.0.5. Can I send you the points I noticed (to be fixed...) ?
Best Mohamed
@umeshawasthi Hello, Do you have any idea why it doesnt work? I just deleted $ from xls files as mentionned by Mohamed. Now, it works...
This as i see seems to have to do with JBOSS drools decision tables implemented as XLS files. Looks like for some reason it has difficulty parsing xls files that are located in sm-core\src\main\resources\rules
@loamDeLest proposed a solution that removes $ in front of input parameter which prevent the error but will break the decision tables if you decide to use them since the dynamic parameters will be replaced with static value, see if that is of interest JBOSS drools page on xls decision table input parameters https://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch06.html
1) If you just don't want to use them, remove spring includes in xml
Open sm-core\src\main\resources\spring\shopizer-core-modules.xml
Comment customQuotesRules
<util:map id="shippingModules" map-class="java.util.HashMap" key-type="java.lang.String" value-type="com.salesmanager.core.business.modules.integration.shipping.model.ShippingQuoteModule">
<beans:entry key="canadapost" value-ref="canadapost"/>
<beans:entry key="usps" value-ref="usps"/>
<beans:entry key="ups" value-ref="ups"/>
<beans:entry key="weightBased" value-ref="weightBased"/>
<beans:entry key="priceByDistance" value-ref="priceByDistance"/>
<beans:entry key="storePickUp" value-ref="storePickUp"/>
<!--<beans:entry key="customQuotesRules" value-ref="customShippingPriceModule"/>-->
<!--as defined in shopizer-core-rules-->
</util:map>
and sm-core\src\main\resources\spring\processors\shopizer-core-shipping-processors.xml
Comment
<ref bean="shippingMethodDecisionProcess"/>
2) Can someone who has those failures can replace those <= or >= statements with > <
For instance weight >= $1, weight <= $2 becomes weight > $1, weight < $2
in both xls files ?
Hello, thank you. I will read the doc to fix this error.
Hi I did the test for the second proposal ("2. Can someone who has those failures can replace those <= or >= statements with > <")
==> Errors are the same
Best regards Mohamed
@loamDeLest Thanks for your time on that
I will try to figure out another way of doing it. It's strange that it works for most of the users except for a few ones. In the meantime the options are your's or to comment out rules declaration from spring files as all suggested in this thread
It depends on plateforme? I doent think. It works for you? Why $1 in xsl file generates exception? Very strange..
@shopizer-ecommerce what is your conf? JVM, OS and tomcat Server? Maybe conflit with native jars?
@shopizer-ecommerce I have the same problem. How to fix this error?
I switched to prestashop, I cannot do business with sophizer with lot of bugs ...
Has anyone sorted this issue out yet?
Open shipping-custom-rules.xls in xls
Remove lines 15, 15, 17 & 18 from csv file
save
rebuild
run
I try to run shopizer on tomcat but I got these erros: The error seems problem with drools rules :
1-Jun-2017 15:07:32.947 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: