首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Openbravo:生成组件的url

Openbravo:生成组件的url
EN

Stack Overflow用户
提问于 2015-03-20 01:07:25
回答 1查看 231关注 0票数 0

我按照custom的方法安装了ERP "Openbravo“:

因此,我遵循了教程中的步骤。我在配置文件中为参数"Web URL“设置了"localhost”。在那之后,我运行了服务器,Apache和Tomcat。

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

我在Google-chrome的控制台上得到了这样的日志:

代码语言:javascript
复制
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/"

EN

回答 1

Stack Overflow用户

发布于 2015-04-22 18:37:32

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29150795

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档