【问题标题】:Openbravo: generate url to the componentsOpenbravo:生成组件的 url
【发布时间】:2015-03-19 17:07:25
【问题描述】:

我按照custom 方法安装了 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 "http://localhost/openbravo/web/js/utils.js" 进行更改时效果很好。

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

【问题讨论】:

    标签: url web web-component openbravo


    【解决方案1】:
    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-05
      • 1970-01-01
      • 2021-07-26
      • 2019-10-22
      • 1970-01-01
      • 1970-01-01
      • 2021-11-22
      相关资源
      最近更新 更多