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

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

    点赞 评论
  • weixin_42560095 2015-07-22 16:16

    请问,这个问题是怎么解决的呢?
    我的也是这个问题,

    点赞 评论

相关推荐 更多相似问题