我按照custom的方法安装了ERP "Openbravo“:
因此,我遵循了教程中的步骤。我在配置文件中为参数"Web URL“设置了"localhost”。在那之后,我运行了服务器,Apache和Tomcat。
当使用http://localhost/openbravo通过浏览器访问应用程序时,我面临的问题是,浏览器找不到某些组件。
我在Google-chrome的控制台上得到了这样的日志:
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/"。
发布于 2015-04-22 18:37:32
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_Processhttps://stackoverflow.com/questions/29150795
复制相似问题