Re: How obtain stable version?
Posted: Sun Jun 02, 2013 4:20 pm
Could you help? What way the two different war files can be deployed if they use the same database tables?
http://forum.broadleafcommerce.org/
http://forum.broadleafcommerce.org/viewtopic.php?f=14&t=1877
1) mycompany.war has own persistence context and admin.war has own persistence context. But both persistence contexts uses the same tables. For example the entity from blc_address can be created inside persistence context of mycompany, and the same entity can be created inside persistence context of admin application. They will be in different persistence context but will try to change the state of the same table. Is it correct?
2) when I make the deploy mycompany.war all tables will be dropped and created. The same happens when make the I deploy admin.war, correct?
So what war should be deployed primarily?
Code: Select all
org.hibernate.tool.hbm2ddl.ImportScriptException: Error during statement execution (file: '/sql/load_catalog_data.sql'): INSERT INTO BLC_FIELD (FIELD_ID, ENTITY_TYPE, PROPERTY_NAME, ABBREVIATION, SEARCHABLE, FACET_FIELD_TYPE) VALUES (1, 'PRODUCT', 'manufacturer', 'mfg', 1, 's')
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:451)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:378)
.....
Caused by: org.postgresql.util.PSQLException: ERROR: column "searchable" is of type boolean but expression is of type integer
You will need to rewrite or cast the expression.
Position 151
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
Code: Select all
[ERROR] 11:56:37 BasicPersistenceModule - Error getting primary key
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:375)
at java.lang.Long.valueOf(Long.java:525)
at org.broadleafcommerce.openadmin.server.service.persistence.module.BasicPersistenceModule.getPrimaryKey(BasicPersistenceModule.java:605)
at org.broadleafcommerce.openadmin.server.service.persistence.module.BasicPersistenceModule.add(BasicPersistenceModule.java:784)
at org.broadleafcommerce.openadmin.server.service.persistence.module.BasicPersistenceModule.add(BasicPersistenceModule.java:742)
Code: Select all
A soft-locked cache entry was expired by the underlying Ehcache. If this happens regularly you should consider increasing the cache timeouts and/or capacity limits
[ERROR] 11:56:37 TemplateEngine - [THYMELEAF][3] Exception processing template "utility/blcRedirect": Error resolving template "utility/blcRedirect", template might not exist or might not be accessible by any of the configured Template Resolvers
[ERROR] 11:58:17 TemplateEngine - [THYMELEAF][7] Exception processing template "modules/modalContainer": Exception evaluating SpringEL expression: "fields['defaultSku.skuMedia---primary'].media.url" (fields/media:5)
[ERROR] 11:59:17 TemplateEngine - [THYMELEAF][9] Exception processing template "modules/modalContainer": Exception evaluating SpringEL expression: "fields['defaultSku.skuMedia---primary'].media.url" (fields/media:5)
Code: Select all
/Projects/Broadleaf/DemoSite-3.0.0/site/src/main/java/com/mycompany/api/endpoint/cart/CartEndpoint.java:[75,20] cannot find symbol
symbol : method addSkuToOrder(javax.servlet.http.HttpServletRequest,javax.ws.rs.core.UriInfo,java.lang.Long,java.lang.Long,java.lang.Long,int,boolean)
location: class org.broadleafcommerce.core.web.api.endpoint.order.CartEndpoint
/Projects/Broadleaf/DemoSite-3.0.0/site/src/main/java/com/mycompany/api/endpoint/cart/CartEndpoint.java:[65,4] method does not override or implement a method from a supertype
Code: Select all
// @POST
// @Path("{categoryId}/{productId}")
// public OrderWrapper addSkuToOrder(@Context HttpServletRequest request,
// @Context UriInfo uriInfo,
// @PathParam("categoryId") Long categoryId,
// @PathParam("productId") Long productId,
// @QueryParam("skuId") Long skuId,
// @QueryParam("quantity") @DefaultValue("1") int quantity,
// @QueryParam("priceOrder") @DefaultValue("true") boolean priceOrder) {
// return super.addSkuToOrder(request, uriInfo, categoryId, productId, skuId, quantity, priceOrder);
// }
Code: Select all
[ERROR] 17:16:33 SchemaExport - HHH000389: Unsuccessful: alter table BLC_CUSTOMER_ADDRESS add constraint key1 unique (CUSTOMER_ID, ADDRESS_NAME)
[ERROR] 17:16:33 SchemaExport - ERROR: relation "key1" already exists
[ERROR] 17:16:33 SchemaExport - HHH000389: Unsuccessful: alter table BLC_CUSTOMER_PAYMENT add constraint key1 unique (CUSTOMER_ID, PAYMENT_TOKEN)
[ERROR] 17:16:33 SchemaExport - ERROR: relation "key1" already exists
[ERROR] 17:16:33 SchemaExport - HHH000389: Unsuccessful: alter table BLC_CUSTOMER_PHONE add constraint key1 unique (CUSTOMER_ID, PHONE_NAME)
[ERROR] 17:16:33 SchemaExport - ERROR: relation "key1" already exists
[ERROR] 17:16:49 SchemaExport - HHH000231: Schema export unsuccessful
org.hibernate.tool.hbm2ddl.ImportScriptException: Error during statement execution (file: '/sql/load_catalog_data.sql'): INSERT INTO BLC_FIELD (FIELD_ID, ENTITY_TYPE, PROPERTY_NAME, ABBREVIATION, SEARCHABLE, FACET_FIELD_TYPE) VALUES (1, 'PRODUCT', 'manufacturer', 'mfg', 1, 's')
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:451)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:378)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:304)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:293)
Code: Select all
[ERROR] 17:25:30 TemplateEngine - [THYMELEAF][3] Exception processing template "utility/blcRedirect": Error resolving template "utility/blcRedirect", template might not exist or might not be accessible by any of the configured Template Resolvers