Page 22 of 24

Re: Updating to New 3.0 BETA versions

Posted: Fri Jul 05, 2013 11:55 pm
by anikanchan
I started with DemoSite 3.0 version and followed steps from http://docs.broadleafcommerce.org/dev/Inventory.html to add inventory module. I did not modify the workflow.

Here is the error that I see when I start the jetty-demo task for site module:

[artifact:mvn] [ERROR] 00:37:52 SchemaExport - HHH000231: Schema export unsuccessful
[artifact:mvn] org.hibernate.tool.hbm2ddl.ImportScriptException: Error during statement execution (file: '/sql/load_admin_users.sql'): INSERT INTO BLC_ADMIN_PERMISSION_ENTITY (ADMIN_PERMISSION_ENTITY_ID, CEILING_ENTITY, ADMIN_PERMISSION_ID) VALUES (230, 'org.broadleafcommerce.core.inventory.domain.FulfillmentLocation', 64)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:451)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:378)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:304)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:293)
[artifact:mvn] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:498)
[artifact:mvn] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1743)
[artifact:mvn] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
[artifact:mvn] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
[artifact:mvn] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
[artifact:mvn] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)
[artifact:mvn] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)
[artifact:mvn] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
[artifact:mvn] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
[artifact:mvn] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
[artifact:mvn] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
[artifact:mvn] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
[artifact:mvn] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
[artifact:mvn] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
[artifact:mvn] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
[artifact:mvn] at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:766)
[artifact:mvn] at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406)
[artifact:mvn] at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:758)
[artifact:mvn] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242)
[artifact:mvn] at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1233)
[artifact:mvn] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:701)
[artifact:mvn] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:475)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
[artifact:mvn] at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90)
[artifact:mvn] at org.eclipse.jetty.server.Server.doStart(Server.java:272)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
[artifact:mvn] at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)
[artifact:mvn] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
[artifact:mvn] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[artifact:mvn] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[artifact:mvn] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[artifact:mvn] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
[artifact:mvn] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
[artifact:mvn] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
[artifact:mvn] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[artifact:mvn] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
[artifact:mvn] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[artifact:mvn] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
[artifact:mvn] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[artifact:mvn] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597)
[artifact:mvn] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[artifact:mvn] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[artifact:mvn] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[artifact:mvn] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[artifact:mvn] at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
[artifact:mvn] Caused by: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: foreign key no parent; FK23C09E3DE88B7D38 table: BLC_ADMIN_PERMISSION_ENTITY
[artifact:mvn] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
[artifact:mvn] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
[artifact:mvn] at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
[artifact:mvn] at org.hsqldb.jdbc.JDBCStatement.executeUpdate(Unknown Source)
[artifact:mvn] at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.DatabaseExporter.export(DatabaseExporter.java:64)
[artifact:mvn] at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:446)
[artifact:mvn] ... 68 more
[artifact:mvn] [ERROR] 00:37:53 Ejb3Configuration - HHH000050: Container is providing a null PersistenceUnitRootUrl: discovery impossible
[artifact:mvn] [ WARN] 00:37:53 Ejb3Configuration - HHH000144: hibernate.connection.autocommit = false breaks the EJB3 specification
[artifact:mvn] [ERROR] 00:37:54 Ejb3Configuration - HHH000050: Container is providing a null PersistenceUnitRootUrl: discovery impossible
[artifact:mvn] [ WARN] 00:37:54 Ejb3Configuration - HHH000144: hibernate.connection.autocommit = false breaks the EJB3 specification
[artifact:mvn] [ WARN] 00:37:58 CoreContainer - Log watching is not yet implemented for log4j
[artifact:mvn] [ WARN] 00:37:58 SolrCore - New index directory detected: old=null new=/var/folders/fv/390t4lhd72v27ps7x0hw38000000gn/T/anikanchan/solrhome/core0dir/data/index/
[artifact:mvn] [ WARN] 00:37:58 SolrCore - [primary] Solr index directory '/var/folders/fv/390t4lhd72v27ps7x0hw38000000gn/T/anikanchan/solrhome/core0dir/data/index' doesn't exist. Creating new index...
[artifact:mvn] [ WARN] 00:37:59 SolrCore - New index directory detected: old=null new=/var/folders/fv/390t4lhd72v27ps7x0hw38000000gn/T/anikanchan/solrhome/core1dir/data/index/
[artifact:mvn] [ WARN] 00:37:59 SolrCore - [reindex] Solr index directory '/var/folders/fv/390t4lhd72v27ps7x0hw38000000gn/T/anikanchan/solrhome/core1dir/data/index' doesn't exist. Creating new index...
[artifact:mvn] 2013-07-06 00:38:01.958:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/Users/anikanchan/git/galagz/galagz-site/target/galagz/},file:/Users/anikanchan/git/galagz/galagz-site/target/galagz/
[artifact:mvn] 2013-07-06 00:38:02.038:INFO:/:Initializing Spring FrameworkServlet 'galagz'
[artifact:mvn] 2013-07-06 00:38:04.503:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
[artifact:mvn] 2013-07-06 00:38:04.631:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]
[artifact:mvn] 2013-07-06 00:38:04.631:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8443
[artifact:mvn] [INFO] Started Jetty Server

Re: Updating to New 3.0 BETA versions

Posted: Wed Jul 17, 2013 1:26 pm
by jskorton
Anikanchan,

From your error:

"artifact:mvn] org.hibernate.tool.hbm2ddl.ImportScriptException: Error during statement execution (file: '/sql/load_admin_users.sql'): INSERT INTO BLC_ADMIN_PERMISSION_ENTITY (ADMIN_PERMISSION_ENTITY_ID, CEILING_ENTITY, ADMIN_PERMISSION_ID) VALUES (230, 'org.broadleafcommerce.core.inventory.domain.FulfillmentLocation', 64)"

It seems like the primary keys might have to change. Check the state of your database/import.sql files.

http://docs.broadleafcommerce.org/dev/Inventory.html - Ensure that the proper admin permissions are associated

Re: Updating to New 3.0 BETA versions

Posted: Tue Sep 03, 2013 1:00 am
by hourieh
Hello there
I have a serious problem with broadleaf-3.1.0-ALPHA1.it couldn't make WAR file I found why it couldn't but I don't know how to fix it.during broadleaf-3.1.0-ALPHA1 in admin modul you see 3 sub modul for making WAR file via maven we need one of this sub modul has a pakage for making war file but all of these pakages are jar and ther is no pakage to make a war file I don't know how to fix it and how to make a war file
I look forward to hearing from you
thanks

Re: Updating to New 3.0 BETA versions

Posted: Tue Sep 03, 2013 9:36 am
by jskorton
A Maven Install is required to build the WAR and an ant task is used to deploy the WAR on a test Jetty server.

Please refer to the "Running Site" portion of the "Getting Started" documentation:

http://docs.broadleafcommerce.org/core/current/getting-started

Re: Updating to New 3.0 BETA versions from 2.2.0 i had some pbm

Posted: Tue Sep 03, 2013 10:44 pm
by Deepak
Hello BLC Team,
1- really happy for releasing BLC 3.0 version. before i used 2.2.0 version in BLC as a demo by seeing the document it is working fine. In Version 2.2.0 i used eclipse indigo and mysql
2- I Had one doubt in Version 3.0 BLC what eclipse version to use lise(Indigo or Juno or kepler or Helios) because i tried in indigo and juno it is not coming could any one suggest me in the better way to continue my process. from the BLC getting started i had downloaded the default workspace and i tried it is not coming.


Thanks
Deepak

Re: Updating to New 3.0 BETA versions

Posted: Wed Sep 04, 2013 9:43 am
by jskorton
Broadleaf 3.0 is meant to be used with Eclipse Juno.

Please refer to the "IDE Setup" section of the "Getting Started" documentation:

http://docs.broadleafcommerce.org/core/current/getting-started

Re: Updating to New 3.0 BETA versions Facing Pbm

Posted: Thu Sep 05, 2013 1:18 am
by Deepak
Thanks Mr.Jskorton for your reply,
I had followed the IDE setup from this link "http://docs.broadleafcommerce.org/core/current/getting-started" up to the war file it is deploying correctly. i Tried to run the Jetty-demo file from the site which is from the 'ant' after that it showing error as i shown below, so please guide me that how to resolve this issue. and one important thing after building the default workspace from the IDE Setup in eclipse juno ''package ecplorer' is coming correctly it is not capturing metadata file so what to do know .

In IDE Setup there was a 3.0.0 GA version i didn't Find any Beta Version so could just guide me that the both beta and GA are versions are same.

error which i faced is

"Buildfile: D:\Deepak\eclipse-workspace\DemoSite\site\build.xml
start-db:
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.broadleafcommerce:broadleaf-framework:jar': Cannot find parent: org.broadleafcommerce:broadleaf for project: null:core:pom:null for project null:core:pom:null
[artifact:dependencies] org.broadleafcommerce:broadleaf-framework:jar:3.0.0-GA
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] public snapshots (http://nexus.broadleafcommerce.org/nexu ... snapshots/),
[artifact:dependencies] public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/)
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.mycompany:site:war:1.0
[artifact:dependencies] 2) com.mycompany:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] in epilog non whitespace content is not allowed but got e (position: END_TAG seen ...</dependencyManagement>\n</project>\ne... @1074:2)
[artifact:dependencies]

BUILD FAILED
D:\Deepak\eclipse-workspace\DemoSite\site\build.xml:93: Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.broadleafcommerce:broadleaf-framework:jar': Cannot find parent: org.broadleafcommerce:broadleaf for project: null:core:pom:null for project null:core:pom:null
org.broadleafcommerce:broadleaf-framework:jar:3.0.0-GA

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
public snapshots (http://nexus.broadleafcommerce.org/nexu ... snapshots/),
public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/)

Path to dependency:
1) com.mycompany:site:war:1.0
2) com.mycompany:core:jar:1.0



Total time: 2 seconds
"

Thanks
Deepak

Need Help Facing Configuration PBM

Posted: Thu Sep 05, 2013 5:51 am
by Deepak
Hello Mr.Joshua Skorton

1- In the !BroadleafDemoTools in the Ant View is not available
2- while choosing a workspace from IDE Setup from the broadleaf link the workspace is 3.0.0.GA
3- Only the Package Explorer Came and the Ant View is not coming
so Please Help me take this as High priority and help me.

Thanks
Deepak

Re: Updating to New 3.0 BETA versions

Posted: Thu Sep 05, 2013 10:14 am
by jskorton
A Maven Install is required to build the WAR before any Ant scripts are run.

Please refer to the "Running Site" portion of the "Getting Started" documentation:

http://docs.broadleafcommerce.org/core/current/getting-started

The "Ant View" can be found here:

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-85a_ant_view.htm

Re: Error Facing while running the Jetty-Demo file

Posted: Fri Sep 06, 2013 3:51 am
by Deepak
Thanks
My question is "I Finished the steps up to maven install it shows success for all ecommerce,site,admin and core" when i run the jetty demo(site) from the ant it shows error

"I shown the Error which is "

[color=#FF0000]Buildfile: D:\Deepak\eclipse-workspace\DemoSite\site\build.xml
start-db:
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.broadleafcommerce:broadleaf-framework:jar': Cannot find parent: org.broadleafcommerce:broadleaf for project: null:core:pom:null for project null:core:pom:null
[artifact:dependencies] org.broadleafcommerce:broadleaf-framework:jar:3.0.0-GA
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] public snapshots (http://nexus.broadleafcommerce.org/nexu ... snapshots/),
[artifact:dependencies] public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/)
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.mycompany:site:war:1.0
[artifact:dependencies] 2) com.mycompany:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] in epilog non whitespace content is not allowed but got e (position: END_TAG seen ...</dependencyManagement>\n</project>\ne... @1074:2)
[artifact:dependencies]

BUILD FAILED
D:\Deepak\eclipse-workspace\DemoSite\site\build.xml:93: Unable to resolve artif
act: Unable to get dependency information: Unable to read the metadata file for artifact 'org.broadleafcommerce:broadleaf-framework:jar': Cannot find parent: org.broadleafcommerce:broadleaf for project: null:core:pom:null for project null:core:pom:null
org.broadleafcommerce:broadleaf-framework:jar:3.0.0-GA

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
public snapshots (http://nexus.broadleafcommerce.org/nexu ... snapshots/),
public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/)

Path to dependency:
1) com.mycompany:site:war:1.0
2) com.mycompany:core:jar:1.0



Total time: 2 seconds[/color]


How to Resolve this could you guide me please


http://nexus.broadleafcommerce.org/nexu ... framework/ in the link 3.0.0-GA for broadleaf-framework is not available please check it and revert please asap it urgent


Thanks
Deepak