0

我按照自定义方法安装了 ERP“Openbravo” :

所以我按照教程中的步骤进行操作。我在配置文件中为参数“Web URL”设置了“localhost”。之后,我运行了服务器、Apache 和 Tomcat。

使用http://localhost/openbravo通过浏览器访问应用程序 时我面临的问题是,浏览器找不到某些组件。

我得到了这样的谷歌浏览器控制台登录:

Login_F1.html:11 GET http://localhost/openbravo/security/localhost/js/ajax.js 404 (Not Found)

当我尝试在新选项卡中加入上一个 url 时,我得到“未找到”,但是当我通过这个 URL 进行更改时"http://localhost/openbravo/web/js/utils.js"效果很好。

我的问题是如何让 Openbravo"/web/"生成"/security/localhost/"

4

1 回答 1

0
If you look at Openbravo.properties file
.....

//Static content URL. Use the default value to make it dynamic.
//Don't change this unless you know what you are doing
web.url=@actual_url_context@/web

// Full URL of the context, *only* used by the Web Services installation 
 and diagnostic task
context.url=http://localhost:8080/openbravo
.....

@actual_url_context@ will get replaced by domain name with port number and application context name (for example: mydomain:8989/openbravo)

404 is due to application is not able to locate ajax.js under 

../web/ajax.js

1 ==> To fix the issue you can just restore to @actual_url_context@ and perform smartbuild.

or do an install.source

2 ==> To add any client side customization or to support static content under web folder you can follow
an example: http://wiki.openbravo.com/wiki/How_to_add_a_button_to_the_toolbar
http://wiki.openbravo.com/wiki/How_to_create_a_Manual_UI_Process
于 2015-04-22T10:37:31.613 回答