Openbravo:生成组件的url
我按照以下方法安装了ERP Openbravo: 因此,我遵循了教程中的步骤,在配置文件中为参数WebURL设置了localhost。之后,我运行了服务器,Apache和Tomcat 使用浏览器访问应用程序时 我面临的问题是,浏览器找不到某些组件 我在Google chrome的控制台上得到了这样的日志:Openbravo:生成组件的url,url,web,web-component,openbravo,Url,Web,Web Component,Openbravo,我按照以下方法安装了ERP Openbravo: 因此,我遵循了教程中的步骤,在配置文件中为参数WebURL设置了localhost。之后,我运行了服务器,Apache和Tomcat 使用浏览器访问应用程序时 我面临的问题是,浏览器找不到某些组件 我在Google chrome的控制台上得到了这样的日志: Login_F1.html:11 GET http://localhost/openbravo/security/localhost/js/ajax.js 404 (Not Found) 当
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/
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