Closed DuncanDoyle closed 8 years ago
This jar added so that the SA, who runs the install and then fires up the UI, sees failures without the jar available due to the UI project not being able to build during install without the jar installed in maven.
The story line in demoing this in the video attached to the product outlines that the first step is to login and build the BRMS project jar and then bump the version so that the scanner picks it up (removing any duplicate errors).
Used to just include a pre-built UI WAR and deploy it during the installation, but was also getting issues from SA's with other java versions, causing more interactions with us than will scale. Since moving to the current situation, no problems from the field.
That's the background.
The KJAR file is actually installed in Maven in the init.sh script using a "mvn install:install-file" goal, so the KJAR is actually available in Maven and in the WEB-INF/lib. It actually needs it in the WEB-INF/lib because the KJAR also contains the domain model classes needed by the web-app.
The error you're actually getting is not that it can't find the KJAR in Maven, it finds a faulty one with duplicate rules, causing the error while building the KieBase. What happens after that is that that error causes one of the EJBs to be dropped, so even when you build a correct KJAR after that, you can't run the demo anymore. The next exception you get when trying to add something to the shopping cart (before or after building the new KJAR in business-central) is this:
16:10:30,241 SEVERE [com.vaadin.server.DefaultErrorHandler] (http-127.0.0.1:8080-1) : javax.ejb.NoSuchEJBException: JBAS016055: EJB has been removed
at org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl.getBusinessObject(StatefulSessionObjectReferenceImpl.java:123) [jboss-as-weld-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:113) [weld-core-1.1.33.Final-redhat-1.jar:1.1.33.Final-redhat-1]
at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56) [weld-core-1.1.33.Final-redhat-1.jar:1.1.33.Final-redhat-1]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.33.Final-redhat-1.jar:1.1.33.Final-redhat-1]
at com.redhat.coolstore.service.ShoppingCartService$998405650$Proxy$_$$_Weld$Proxy$.priceShoppingCart(ShoppingCartService$998405650$Proxy$_$$_Weld$Proxy$.java) [classes:]
at com.redhat.coolstore.web.ui.ShoppingCartView.updateDatasource(ShoppingCartView.java:102) [classes:]
at com.redhat.coolstore.web.ui.ShoppingCartView.updateShoppingCart(ShoppingCartView.java:114) [classes:]
The only way to run this demo is:
The "support/libs" directory contains a "coolstore-2.0.0.jar" KJAR file which gets put in the WEB-INF/lib folder of the "brms-coolstore-demo.war" app. The KJAR contains duplicate rules. It contains a decision table (ShippingRules), and the DRL representation of that decision table. This causes the following problem.
Best solution seems to remove that pre-build coolstore-2.0.0.jar KJAR and not package it with the web-app.