oumar cisse
oumar cisse

Reputation: 13

Broadleaf Running core and Admin

I am using Broadleaf for one of my project. I want to use only the admin and core module. But when I run the project I have this error " Table 'broadleaf.blc_system_property' doesn't exist". Is it possible to run the demosite without the site module. I mean just core and admin.

Thank

Upvotes: 1

Views: 238

Answers (2)

phillipuniverse
phillipuniverse

Reputation: 2045

By default, the site application is started with this set in the 'site' application, in site/src/main/resources/runtime-properties/development.properties:

blPU.hibernate.hbm2ddl.auto=create-drop

With this setting, the following happens when you start up the site application:

  1. Application start
  2. All database tables are dropped
  3. All database tables are created
  4. The load SQL in core/src/main/resources/sql is executed
  5. Application finishes starting up

--- Application runs for however long it runs; do cart operations, register customers, etc

  1. Shut down application
  2. All database tables are dropped
  3. Application is done shutting down

In the admin application, this is set in admin/src/main/resources/runtime-properties/development.properties:

blPU.hibernate.hbm2ddl.auto=none

With that setting, this is what happens:

  1. Application Start
  2. Nothing happens with the database
  3. Application finishes starting up

--- Run for however long

  1. Shut down application
  2. Application is done shutting down

Basically, to fix your issue you want to change it such that when you start up the admin application it also creates tables and runs the import sql. I recommend changing this to create. So in admin/src/main/resources/runtime-properties/development.properties change it to this instead:

blPU.hibernate.hbm2ddl.auto=create

With that setting, this is how the application will behave:

  1. Application start
  2. All database tables are dropped
  3. All database tables are created
  4. The load SQL in core/src/main/resources/sql is executed
  5. Application finishes starting up

--- Application runs for however long it runs; do cart operations, register customers, etc

  1. Shut down application
  2. Application is done shutting down

Upvotes: 2

IgorF
IgorF

Reputation: 36

check your database, seems like this table is not there. On Unix like systems the table names are case sensitive so if your table was created in upper case, that would be the reason why broadleaf can't find it.

Yes and it is possible to run the admin without the site. To do that, just deploy the admin.war. Core is a separate maven module that is used by both the admin and site and is packaged as a jar in the war files.

Upvotes: 0

Related Questions