我已经分叉了moqui,mantle&在github上的PopCommerce&按照命令行步骤克隆&建立如下。
git clone git@github.com:moqui/moqui.git moqui
cd moqui/runtime/
git clone git@github.com:moqui/mantle.git mantle
cd component/
git clone git@github.com:moqui/PopCommerce.git PopCommerce
cd ../.. (to the moqui directory)
gradle load
gradle run
我已在上述命令中替换了我的存储库名称。
使用http://localhost:8080访问框架/工具,它显示登录页面(未应用css),当点击登录(John Doe)按钮时,会显示错误。
Status Code: 403
Exception: User [john.doe] is not authorized for View on Screen [component://webroot/screen/webroot/apps/AppList.xml]
Stacktrace:
并访问PopCommerce(http://localhost:8080/popc)会显示以下错误。
Status Code: 404
Exception: Could not find subscreen or transition or file/content [popc] under screen [component://webroot/screen/webroot.xml] while finding url for path [popc] under from screen [component://webroot/screen/webroot.xml]
Stacktrace:
我尝试运行框架/工具&使用二进制分发的Popcommerce工作正常。
从源代码构建时,我还需要遵循其他步骤吗?
更新:在gradle加载期间出错
75816 [ main] INFO pl.entity.EntityDataLoaderImpl - Loaded 29 records from [file:/C:/projects/moqui_ws/moqui/runtime/base-component/example/data/ExampleZzzDemoData.xml] in 6.432 seconds
75940 [ main] INFO pl.entity.EntityDataLoaderImpl - Loading entity data from [file:/C:/projects/moqui_ws/moqui/runtime/base-component/example/data/ZzaExampleRecords.csv]
75992 [ main] WARN .context.TransactionFacadeImpl - Transaction rollback. The rollback was originally caused by: Error loading entity data
org.moqui.entity.EntityException: The name [exampleEmail] is not a valid field name for entity [Example]
at org.moqui.impl.entity.EntityDefinition.convertFieldString(EntityDefinition.groovy:1048)
at org.moqui.impl.entity.EntityValueBase.setString(EntityValueBase.groovy:274)
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityCsvHandler.loadFile(EntityDataLoaderImpl.groovy:698)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:283)
at org.moqui.impl.entity.EntityDataLoaderImpl.internalRun(EntityDataLoaderImpl.groovy:249)
at org.moqui.impl.entity.EntityDataLoaderImpl.load(EntityDataLoaderImpl.groovy:125)
at org.moqui.Moqui.loadData(Moqui.java:97)
at MoquiStart.main(MoquiStart.java:105)
75997 [ main] WARN .context.TransactionFacadeImpl - Transaction rollback for [Error loading entity data]. Here is the current location:
org.moqui.BaseException: Rollback location
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:405)
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:389)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:298)
at org.moqui.impl.entity.EntityDataLoaderImpl.internalRun(EntityDataLoaderImpl.groovy:249)
at org.moqui.impl.entity.EntityDataLoaderImpl.load(EntityDataLoaderImpl.groovy:125)
at org.moqui.Moqui.loadData(Moqui.java:97)
at MoquiStart.main(MoquiStart.java:105)
76372 [ main] INFO moqui.impl.entity.EntityDbMeta - Created table [ARTIFACT_HIT_BIN] for entity [moqui.server.ArtifactHitBin]
答案 0 :(得分:1)
那些看起来像种子/设置数据的症状没有被加载。你的步骤看起来很好,他们应该工作。寻找" gradle load"中的错误。步骤