前提条件:已经安装成功了Openbravo ERP。未安装成功的,请参考[url="http://liwenshui322.iteye.com/blog/1054473"]Openbravo ERP 3.0安装指南[/url]

Openbravo现在完全可以在eclipse环境下开发,测试,部署,包括4个项目openbravo,core, trl 和wad,在相应目录下都有eclipse的项目文件,项目可以直接导入到eclipse中。
环境需求
· Java Development Kit (JDK) 6.
· Apache Tomcat 6.x.
· Apache Ant 1.7.
· PostgreSQL 8.3.x.
开发工具
· Eclipse IDE for Java EE Developers.
[color=red]注意[/color]:取消自动编译功能
导入openbravo到eclipse中,选择File > Import... > Existing Projects into Workspace
选择目录D:\openbravo\OpenbravoERP-3.0RC6.1(即为安装openbravo文件),接下来依次导入[b]OpenbravoCore[/b],[b]OpenbravoTrl[/b],[b]OpenbravoWAD[/b],分别在目录src-core, src-trl, src-wad.
设置所有项目的编码为[b]UTF-8[/b], 以避免乱码问题。
目前这些项目可能都有编译错误,不用管它,继续下面的操作。
d:\workspace\openbravo>ant create.database
Buildfile: build.xml
set.code.rev:
code.rev:
init:
core.lib:
init:
compile:
[javac] Compiling 122 source files to D:\workspace\openbravo\src-core\build\
classes
build.jar:
[jar] Building jar: D:\workspace\openbravo\src-core\lib\openbravo-core.jar

build:
copy.core.lib:
[copy] Copying 1 file to D:\workspace\openbravo\lib\runtime
database.lib:
init:
compile:
[javac] Compiling 4 source files to D:\workspace\openbravo\src-db\build\clas
ses
build.jar:
[jar] Building jar: D:\workspace\openbravo\src-db\build\lib\dbmanager.jar
jar:
[copy] Copying 1 file to D:\workspace\openbravo\src-db\database\lib
create.database:
create.database:
clean.database.POSTGRE:
[sql] Executing commands
[sql] Failed to execute: DROP DATABASE openbravo
[sql] org.postgresql.util.PSQLException: ERROR: database "openbravo" does
not exist
[sql] 0 of 1 SQL statements executed successfully
[sql] Executing commands
[sql] Failed to execute: DROP ROLE tad
[sql] org.postgresql.util.PSQLException: ERROR: role "tad" does not exist
[sql] 0 of 1 SQL statements executed successfully
prepare.database:
POSTGRE.structure:
[sql] Executing commands
[sql] 2 of 2 SQL statements executed successfully
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
create.database.all:
Database connection: jdbc:postgresql://localhost:5432/openbravo. User: tad
Executing default prescript
Executed 116 SQL command(s) successfully
Executing creation script
for the complete database
Executed 10739 SQL command(s) successfully
Executed 12 forced SQL command(s) successfully
Executing default postscript
Executed 22 SQL command(s) successfully
Writing checksum info
Inserting data into the database.
Executed 462 SQL command(s) successfully
Executed 2442 SQL command(s) successfully
Executed 74 SQL command(s) successfully
Executed 143 SQL command(s) successfully
Executed 5451 SQL command(s) successfully
Executed 462 SQL command(s) successfully
Executed 2442 SQL command(s) successfully
Executing default postscript
Executed 22 SQL command(s) successfully

database.poststructure.POSTGRE:
database.preimport.POSTGRE:
database.postimport.POSTGRE:
database.postcreate.POSTGRE:
[sql] Executing commands
[sql] 11 of 11 SQL statements executed successfully
update.dbupdate.timestamp:
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
db.apply.modules.sampledata:
BUILD SUCCESSFUL
Total time: 6 minutes 27 seconds
接下来依次进行如下操作:
需要修改class的输出路径:openbravo/WebContent/WEB-INF/classes,这样才能在tomcat server中运行。
选择项目 Openbravo然后点击 Run > External Tools > eclipse.trl.lib
在 Console 窗口,确认有BUILD SUCCESSFUL 信息.
选择项目 Openbravo然后点击 Run > External Tools > eclipse.wad.lib
在 Console 窗口,确认有BUILD SUCCESSFUL 信息.
选择项目 Openbravo然后点击 Run > External Tools > eclipse.compile.complete
在 Console 窗口,确认有BUILD SUCCESSFUL 信息.
点击 Project > Build Project 菜单进行编译.
定义 Tomcat server
为了在eclipseIDE中运行OpenBravo,那么需要定义 Tomcat server.
点击 window > Preferences > Server > Runtime Enviroments > Add > 选择Apache tomcat 6.0 > 点next >选择你安装的tomcat目录和jre > 选择Openbravo项目 > 点击finish。

双击打开添加的Tomcat Server > Server Locations一栏选择“Use custom location”,Server path文本框输入tomcat,Deploy path文本框输入webapps > 选中Serve modules without publishing > 设置timeout下start(in seconds)为10000 > ctrl + s保存。
启动Tomcat server(该操作会持续大几分钟,耐心等待。)
选中创建的server,然后点击 start图标,或者右键 start。
启动完成后在浏览器中输入:http://localhost:8080/openbravo
用户名:Openbravo
密码:openbravo

[size=large][color=red]需要注意的地方:[/color][/size]
1、eclipse报错:java.lang.OutOfMemoryError: PermGen space
解决办法:修改了安装目录eclipse.ini文件,在最后面增加了两行

-XX:PermSize=128M   -XX:MaxPermSize=128M

2、eclipse下启动tomcat报错:java.lang.OutOfMemoryError: PermGen space
解决办法:单击run -> run configurations...,选择配置的tomcat,在Arguments选项卡的 VM argument框最前面加上:-Xms256m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=1024m。如下图:
[img]http://dl.iteye.com/upload/attachment/0074/0219/c7d95d8e-9784-3754-b0af-b5e6db45fcd2.jpg[/img]

如遇到其他问题,欢迎交流:493029699。

在eclipse部署OpenBravo项目相关推荐

  1. eclipse部署web项目

    1.首先下载tomcat,并且安装一个jst插件是窗口中有server 2.设置项目的属性为动态网站,如果没有就下载下列插件: eclipse会搜寻这个网址的所有软件,并且显示到下面的列表(建议使用代 ...

  2. Idea部署web项目 与 eclipse 的不同之处

    IDEA 部署Web 项目 与 Eclipse 的不同 1.Eclipse 部署Web 项目,直接把静态图片存放在tomcat WebRoot下就能直接访问 2.IDEA 则需要除了部署的项目外,还需 ...

  3. tomcat配置自动服务器地址,修改eclipse部署tomcat时服务器部署地址

    有时候我们在eclipse部署web项目至本地的tomcat但在webapps中找不到 一.发现问题 在eclipse中新建Dynamic Web Project,配置好本地的tomcat并写好代码后 ...

  4. eclipse部署的web项目没有添加到Tomcat的webapps目录下解决方法

    eclipse部署的web项目没有添加到Tomcat的webapps目录下解决方法 参考文章: (1)eclipse部署的web项目没有添加到Tomcat的webapps目录下解决方法 (2)http ...

  5. MyEclipse部署Web项目Servers报错:NullPointerException at com.genuitec.eclipse.ast.deploy.core.Deployment

    一段时间没部署web项目了,今天部署时突然报错,遂看下怎么解决. java.lang.NullPointerExceptionat com.genuitec.eclipse.ast.deploy.co ...

  6. eclipse项目如何变成web项目_IntelliJ IDEA 部署 Web 项目,终于搞懂了!

    点击上方的终端研发部,右上角选择"设为星标" 每日早8点半,技术文章准时送上 公众号后台回复"学习",获取作者独家秘制精品资料 作者:dulk 来源:www.c ...

  7. 解释Eclipse下Tomcat项目部署路径问题(.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps)

    解释Eclipse下Tomcat项目部署路径问题(.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps) 1.配置eclipse ...

  8. 解释Eclipse下Tomcat项目部署路径问题(.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps)...

    1,当在eclipse中启动服务器出现以下问题时: 解释Eclipse下Tomcat项目部署路径问题(.metadata\.plugins\org.eclipse.wst.server.core\tm ...

  9. Eclipse部署多个Web项目内存溢出,java.lang.OutOfMemoryError: PermGen space

    Eclipse部署多个Web项目内存溢出,java.lang.OutOfMemoryError: PermGen space >>>>>>>>>& ...

  10. linux安装eclipse运行web,Linux安装Tomcat,运行Eclipse,web项目

    到官网下载:https://tomcat.apache.org/download-80.cgi  在这里是8.5.39版本 下载tar,gz 提取解压后,我这里是放到opt目录下 cd  切换目录 / ...

最新文章

  1. NO.18 使用MVC实现的hello world!
  2. 用C语言写的万年历---亲手写的。好累哦
  3. eclipse使用tomcat进行部署时编译代码不一致的处理
  4. JUC系列(五)| Synchonized关键字进一步理解
  5. 2020.3.10.遗留问题
  6. 创业思路(1) - 收藏夹分享平台
  7. linux在芯片设计与实现,基于Linux的Atheros无线芯片网卡驱动的设计与实现
  8. [转]Global exception handling in Web API 2.1 and NLog
  9. c语言 给结构体赋初值,c/c++ 结构体赋初值的小技巧
  10. linux ps axo,Linux shell-场景篇
  11. C语言 模拟实现 strlen strcat strcpy函数
  12. Android Studio 2.3的各种新增疑难杂症
  13. mysql的四大线程_阿里一面就凉了:MySQL+多线程+Redis+算法+网络一个都没说明白...
  14. 安装debian 9.1后,中文环境下将home目录下文件夹改为对应的英文
  15. 132.分割回文串II
  16. python处理access数据库教程_python是如何操作access数据库的,python 数据清洗
  17. 小学计算机二课堂教案,信息技术与小学语文整合教学案例
  18. XMindCrack.jar下载
  19. 康奈尔笔记法,高效学习方法推荐
  20. 怎么自学编程python_怎样自学Python编程?

热门文章

  1. CentOS:Jmeter5.2.1+Ant1.10.12+jmeter.results.shanhe.me.xsl(亲测可用)
  2. 如何批量查询百度指数
  3. HDFS透明加密原理解析
  4. Linux中RPM(红帽软件包管理器)
  5. 采用flv.js与dplayer播放器来播放http-flv格式视频
  6. Linux查看硬盘型号
  7. 12. JLINK在线调试+软件调试方法与技巧
  8. C语言程序设计勾股数,打印出100内的所有的勾股数(用C语言实现)
  9. 如何修改Windows(可移植)桌面文件夹图标
  10. TypeError: empty() received an invalid combination of arguments