OFBiz部署不成功,请教

张黎 发布于 2011/05/16 16:51
阅读 5K+
收藏 2

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

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

对于有些帖子说要部署

JAVA_HOME
ANT_HOME
CATALINA_HOME
OFBIZ_HOME

我就只有设置了JAVA_HOME 。这个是肯定得设置的。ANT_HOME,我想OFBIZ自带了ant.bat编译,不需要设置也行吧。CATALINA_HOME,没有设置,OFBIZ自带。OFBIZ_HOME设置不设置犹豫中,目前没有设置。

 

部署步骤如下:

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,

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)  

后台报错

---- 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)

 

 

 

打开网页:

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.

后台报错:

---- 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)]

 

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.

后台错误:

---- 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]]: ; {没有找到视觉风格资源
。}

 

 

 

 

加载中
1
张黎

已解决了

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

这个是错误的


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

r
ruby菜鸟
怎么运行 ant run-install
0
周贺明
谢谢楼主,我的问题解决了!
返回顶部
顶部