james0818 2011-05-16 16:59
浏览 948
已采纳

OFBiz部署不成功,请教

今日下载了 apache-ofbiz-10.04.zip 和 apache-ofbiz-09.04.01.zip 两个版本。都未部署成功,请高手帮助!

迫切需要解决,第一次接触OFBIZ,请指教。

部署步骤如下:

apache-ofbiz-09.04.01.zip 解压到G盘,G:\ofbiz09目录。

JDK配置版本:1.5.0_04

首先运行ant.bat编译,然后运行startofbiz.bat。

打开网页:

https://127.0.0.1:8443/webtools/control/main,页面报错:error message,

[code="java"]org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty (Template location is empty) [/code]

后台报错

[code="java"]---- exception report ----------------------------------------------------------

Error in request handler:

Exception: org.ofbiz.widget.screen.ScreenRenderException

Message: Error rendering screen [component://common/widget/CommonScreens.xml#Glo

balDecorator]: java.lang.IllegalArgumentException: Template location is empty (T

emplate location is empty)

---- cause ---------------------------------------------------------------------

Exception: java.lang.IllegalArgumentException

Message: Template location is empty

---- stack trace ---------------------------------------------------------------

java.lang.IllegalArgumentException: Template location is empty

org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:125)

---- exception report ----------------------------------------------------------

Error in request handler:
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen [component://common/widget/CommonScreens.xml#Glo
balDecorator]: java.lang.IllegalArgumentException: Template location is empty (T
emplate location is empty)
---- cause ---------------------------------------------------------------------

Exception: java.lang.IllegalArgumentException
Message: Template location is empty
---- stack trace ---------------------------------------------------------------

java.lang.IllegalArgumentException: Template location is empty
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:125)[/code]

打开网页:

http://localhost:8080/ecommerce,页面显示:A Product Store has not been defined for this ecommerce site. A Product Store can be defined using the Catalog component.

后台报错:
[code="java"]---- exception report ----------------------------------------------------------

Could not save ServerHitBin:

Exception: org.ofbiz.entity.GenericEntityNotFoundException

Message: Result set was empty for entity: [GenericEntity:ServerHitBin][serverHit

BinId,10000(java.lang.String)]

---- stack trace ---------------------------------------------------------------

org.ofbiz.entity.GenericEntityNotFoundException: Result set was empty for entity

: [GenericEntity:ServerHitBin][serverHitBinId,10000(java.lang.String)]

---- exception report ----------------------------------------------------------

Could not save ServerHitBin:
Exception: org.ofbiz.entity.GenericEntityNotFoundException
Message: Result set was empty for entity: [GenericEntity:ServerHitBin][serverHit
BinId,10000(java.lang.String)]
---- stack trace ---------------------------------------------------------------

org.ofbiz.entity.GenericEntityNotFoundException: Result set was empty for entity
: [GenericEntity:ServerHitBin][serverHitBinId,10000(java.lang.String)] [/code]
apache-ofbiz-10.04.zip 解压到G盘,G:\ofbiz10目录。

JDK配置版本:1.6.0_10

首先运行ant.bat编译,然后运行startofbiz.bat。(此版本配置了oracle10g数据库,暂且不表)

打开网页:

https://127.0.0.1:8443/webtools/control/main,错误同9版本一样。

打开网页:

http://127.0.0.1:8080/ecommerce/control/main,前台依旧报错:

A Product Store has not been defined for this ecommerce site. A Product Store can be created using the ofbizsetup wizard.

后台错误:
[code="java"]
---- exception report ----------------------------------------------------------

Could not commit transaction: org.ofbiz.entity.transaction.GenericTransactionExc

eption: Roll back error, could not commit transaction, was rolled back instead b

ecause of: Error in simple-method [Get visual theme resources [file:/G:/ofbiz10/

framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResour

ces]]: ; {没有找到视觉风格资源。}

Exception: org.ofbiz.entity.transaction.GenericTransactionException

Message: Roll back error, could not commit transaction, was rolled back instead

because of: Error in simple-method [Get visual theme resources [file:/G:/ofbiz10

/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResou

rces]]: ; {没有找到视觉风格资源。}

---- stack trace ---------------------------------------------------------------

org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could

not commit transaction, was rolled back instead because of: Error in simple-met

hod [Get visual theme resources [file:/G:/ofbiz10/framework/common/script/org/of

biz/common/CommonServices.xml#getVisualThemeResources]]: ; {没有找到视觉风格资源

。} [/code]

  • 写回答

2条回答 默认 最新

  • suziwen 2011-05-16 23:28
    关注

    [quote]首先运行ant.bat编译,然后运行startofbiz.bat。 [/quote]

    这个是错误的

    要这样执行
    ant run-install(不是直接ant的)
    然后再startofbiz

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀