已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
windows下 opentaps1.4安装(不断更新其他配置)opentaps 本帖最后由 102010cncger 于 2009/8/30 00:48 编辑 1. 下载 1.4 版本 /project/opentaps/opentaps%201.4/opentaps-1.4-preview1.zip?use_mirror=ncu 2. 解压到系统 路径不带空格目录(能通过 cd 进入此目录,目录路径无空格) 3. 安装 jboss 4. 设置 javahome 和 jboss 路径 perties # set the location of your JVM hereJAVA_HOME=D:/Program Files/Java/jdk1.6.0_02 # set the location of your JBoss server here JBOSS_HOME=E:/jboss-5.1.0.GA 5. 打开 framework/entity/config/entityengine.xml 将所有数据 源改为默认那个localderby这里将不使用 Oracle 数据库 6. 第一次运行 cd C:opentaps ant run-install。 java 2009-08-29 11:37:19,000 (main) EntityDataLoadContainer.java:296:INF O =-=-=-=-=-=-= Finished the data load with 15218 rows changed. java 2009-08-29 11:37:19,015 (main) ContainerLoader.java:96 :INFO Shutting down containers BUILD SUCCESSFUL Total time: 8 minutes 47 seconds C:opentaps 最后出现表示安装成功 7. 非第一次运行 cd C:opentaps startofbiz.bat 或 cd C:opentaps java -jar ofbiz.jar 次方法可以直接看到输出信息,但没有启动参数 如果是第二次运行 启动 的时候, ofbiz 的 DatabaseUtils 会检查数据库中是否已经存在系统的表,没有就会自动创建的,一般的创建过程不会出错误的。慢慢等吧 因为没有加到服务,关闭 cmd 窗口将关闭服务 8. 打开网页 For version 1.4: http:/localhost:8080/opentaps 相关账户 http:/localhost:8080/ecommerce For the online store, use username DemoCustomer and password ofbiz .http:/localhost:8080/crmsfa For CRM application, use DemoSalesManager and crmsfa . http:/localhost:8080/warehouse For the warehouse application, use demowarehouse1 and opentaps . http:/localhost:8080/financials For financials, use demofinadmin and opentaps . http:/localhost:8080/purchasing For purchasing, use demopurch1 and opentaps .http:/localhost:8080/ partymgr For administrative applications, use flexadmin and ofbiz http:/localhost:8080/analytics Use username analytics and password opentaps to sign it to opentaps Analytics.http:/localhost:8080/catalog http:/localhost:8080/webtools Admin,ofbiz 错误 1 注册没多久,不能传图片,呵呵。这里的错误就看不到了,反正是编译的时候通不过的问题。解决 办法 C:opentapshot-deployopentaps-commonbuild-aspects.xml 修改其中 错误 2 run-install: java Error occurred during initialization of VM java Could not create the Java virtual machine. java Could not reserve enough space for object heap java Java Result: 1 解决办法 修改 C:opentapsbulid.xml 该校就可以了 If you have not already run the installation data loading script, from the ofbiz home directory run ant run-install or java -jar ofbiz.jar install 错误 3 Exception in thread RMI RenewClean-00:3250,org.ofbiz.service.rmi.so cket.ssl.SSLClientSocketFactory394ffa java.lang.OutOfMemoryError: Java heap s pace at ernal.ssl.InputRecord.(InputRecord.java:65) at ernal.ssl.AppInputStream.(AppInputStream.jav a:31) at ernal.ssl.SSLSocketImpl.init(SSLSocketImpl.java:51 8) at ernal.ssl.SSLSocketImpl.(SSLSocketImpl.java: 351) at ernal.ssl.SSLSocketFactoryImpl.createSocket(SSLSoc ketFactoryImpl.java:71) at org.ofbiz.service.rmi.socket.ssl.SSLClientSocketFactory.createSocket( SSLClientSocketFactory.java:46) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) at sun.rmi.transport.DGCImpl_Stub.dirty(Unknown Source) at sun.rmi.transport.DGCClient$EndpointEntry.makeDirtyCall(DGCClient.jav a:342) at sun.rmi.transport.DGCClient$EndpointEntry.access$1600(DGCClient.java: 153) at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCCli ent.java:555) at java.lang.Thread.run(Thread.java:619) Exception in thread main java.lang.OutOfMemoryError: Java heap space at java.util.jar.Manifest$FastInputStream.(Manifest.java:315) at java.util.jar.Manifest$FastInputStream.(Manifest.java:310) at java.util.jar.Manifest.read(Manifest.java:178) at java.util.jar.Manifest.(Manifest.java:52) at java.util.jar.JarFile.getManifestFromReference(JarFile.java:165) at java.util.jar.JarFile.getManifest(JarFile.java:146) at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:693) at .URLClassLoader.defineClass(URLClassLoader.java:221) at .URLClassLoader.access$000(URLClassLoader.java:56) at .URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at .URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:86) at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:83) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.annotation.AnnotationType.(AnnotationType.java:82) at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java :66) at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationPar ser.java:202) at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationP arser.java:69) at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationPa rser.java:52) at java.lang.reflect.Field.declaredAnnotations(Field.java:1016) at java.lang.reflect.Field.getAnnotation(Field.java:1000) at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObje ct.java:168) at mon.reflection.java.JavaAnnotationReader .isAnnotationPresent(JavaAnnotationReader.java:27) at mon.reflection.java.JavaXAnnotatedElemen t.isAnnotationPresent(JavaXAnnotatedElement.java:43) at org.hibernate.cfg.AnnotationBinder.mustBeSkipped(AnnotationBinder.jav a:1111) 解决办法,同样修改启动内存大小 , 将参数改小(我机器破) C:opentapsstartofbiz.bat REM %JAVA_HOME%binjava -Xms256M -Xmx512M -XX:MaxPermSize=64M -Duser.language=en -jar ofbiz.jar runtimelogsconsole.log %JAVA_HOME%binjava -Xms512M -Xmx1024M -XX:MaxNewSize=128m -XX:MaxPermSize=256m-Duser.language=en -Xdebug -Xnoagent -Dpiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar runtimelogsconsole.log REM This one is for more of a debugging mode REM %JAVA_HOME%binjava -Xms512M -Xmx1024M -XX:MaxPermSize=128M -Duser.language=en -Xdebug -Xnoagent -Dpiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar runtimelogsconsole.log 错误 4 C:opentapsD:Javajdk1.6.0_02binjava -Xms256M -Xmx512M -XX:MaxPermSize=64M -Duser.language=en -jar ofbiz.jar1runtimelogsconsole.log 0 main INFO net.fckeditor.handlers.PropertiesLoader - Users properties loaded successfully! 16 main INFO net.fckeditor.connector.ConnectorServlet - ConnectorServlet succe ssful initialized! Exception in thread org.ofbiz.service.job.JobPoller1bd9de3 java.lang.OutOfMem oryError: PermGen space Exception in thread main java.lang.OutOfMemoryError: PermGen space PermGen space 的全称是 Permanent Generation space, 是指内存的永久保存区域 OutOfMemoryError: PermGen space 从表面上看就是内存益出,解决方法也一定是加大内存。说说为什么会内存益出:这一部分用于存放 Class 和 Meta 的信息 ,Class 在被 Load 的时候被放入 PermGen space 区域,它和和存放 Instance 的 Heap 区域不同 ,GC(Garbage Collection) 不会在主程序运行期对 PermGen space 进行清理,所以如果你的 APP 会 LOAD 很多 CLASS 的话 , 就很可能出现 PermGen space 错误。这种错误常见在 web 服务器 对 JSP 进行 pre compile 的时候。 改正方法,在 run.bat 中加入: -Xms256m -Xmx512m -XX:MaxNewSize=256m -XX:MaxPermSize=256m 因为项目 中引用了很多的 jar 包,而这些 jar 包中的 class 信息会被 JBoss 的 class loader 加载到 PermGen space 区域,在 JVM 默认的情况下,该部分空间的大小只有 4M ,在 jar 包非常多的情况下,显然是不够用的,所以通过 -XX:MaxPermSize=256m 指定最大值后即可解决问题。 另外,如果 heap 内存不足出现 java.lang.OutOfMemoryError: Java heap space 时,可以通过 -Xmx512m 指定最大 heap 内存来解决这样的问题 其他备注 ( 查找 datasource-name更改为 localoracle 查找 localoracle修改 orcle配置 拷贝 orcle的驱动到 framework/entity/lib/jdbc注意设置 Eclipse的 ant的 utf-8值 ) Ant启动可以选择 不同的方式。 set JAVA_HOME=D:Javajdk1.6.0_02set PATH=%JAVA_HOME%bin;%JAVA_HOME%jrebinset CLASSPATH=.;%JAVA_HOME%lib;%JAVA_HOME%libtools.jarC:opentaps java -jar ofbiz.jar -poscd C:opentapsjava -jar ofbiz.jar -setup test打包 10. 关掉 Tomcat11. 在 DOS 命令行下( C:OpenbravoERP AppsOpenbravo ) ant pleteant warant deploy12. 把 Tomcat 5.5webapps 下的 openbravo 文件 夹删掉 重启 TomcatOK ! init :官方垃圾安装说明 General Installation PDF Installing opentaps ERP + CRM is fairly easy, and you do not need root user privileges.These instructions will help you get started running opentaps ERP + CRM on both Unix/Linux and Windows operating systems.Prerequisites The first step is to make sure that you have the correct Java Virtual Machine installed.For opentaps 0.8.x and 0.9.x, you must use Java 1.4.2.For opentaps 1.0.x, you must use Java 5.opentaps 1.4 works with both Java 5 or Java 6.In both cases, you must use the Sun Java SDK , not GNU gcj which may have been supplied with Fedora Core or Ubuntu or the Java Runtime JRE supplied with Windows. To determine what version of Java you are using, type the following command: $ java -versionFor opentaps 0.8.x and opentaps 0.9.x, you must see something like this:Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_xxxx) For opentaps 1.0.x, you must see something like the following:Java(TM) 2 RuntimeEnvironment, Standard Edition (build 1.5.xxxx) You must not see anything likegij (GNU libgcj) version 4.0.1 20050727 (Red Hat 4.0.1-5) or anything that says JRE.If you do not see the correct JVM, you must go download it from Sun. Next, you should unzip the opentaps ERP + CRM .zip file you have just downloaded and go into the directory where it is unzipped:$ cd opentapsStarting on Unix/Linux If you are using a Unix/Linux system, you should make the startup scripts executable:$ chmod u+x startofbiz.sh$ chmod u+x stopofbiz.shIMPORTANT :If your system already has gcj and you just installed new Sun JVM, you must tell opentaps ERP + CRM to use the Sun JVM instead of the GCJ JVM in /bin/java by specifying where the JVM is:$ export JAVA_HOME=/usr/java/j2sdk_xxxx/(or whichever directory your Sun JVM was installed.)You can even put this directive into startofbiz.sh and stopofbiz.shTo start the opentaps server,$ ./startofbiz.shThe server is started as a background process, and the logs are piped to a file called console.log in the logs/ sub-directory for opentaps 0.8.x and 0.9.x and runtime/logs sub-directory for opentaps 1.0.xTo see the logs,$ tail -f runtime/logs/console.log or $ tail -f logs/console.log To stop the opentaps ERP + CRM server,$ ./stopofbiz.shTo start the Point Of Sales terminal, instead of using startofbiz.sh and stopofbiz.sh, use$ java -jar ofbiz.jar -posStarting on Windows IMPORTANT :If you are using Windows, you may run into problems with having paths with directories that have spaces in the name, such as C:Documents and Settings.You can avoid these problems by unzipping in your C: directory.IMPORTANT :opentaps ERP + CRM runs as a server on your computer and needs to access a number of ports.If you are having start up problems, try re-configuring or temporarily disabling your firewall.If you are using Windows, call up a command line terminal (Windows Run Program cmd)From the terminal, go to your opentaps ERP + CRM directoryC: cd c:opentapsYou may need set a variable called JAVA_HOME first to tell Windows where Java is located:C: set JAVA_HOME=c:java_x.x.x Or which ever directory Java was installed in.Now run the batch file to start the opentaps ERP + CRM server:C:opentaps startofbiz.batThe server will run in the terminal.Alternatively, you can create a Windows shortcut to the startofbiz.bat and place it on your desktop.If you want to start the Point Of Sales system, use this command instead:C:opentaps java -jar ofbiz.jar -pos Mac OS X Users A recent update to OS X 10.4.6 has made Java 5 the default JVM.To use Java 1.4.2 for opentaps 0.8.x or 0.9.x, set your JAVA_HOME to the correct path:$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/HomeYou can also use /Applications/Utilities/Java/J2SE 5.0/Java Preferences.app to set your preferred Java environment.Accessing the Server To access the opentaps ERP + CRM server, open any browser and type in the following: For version 1.4: http:/localhost:8080/opentaps For version 1.0 and earlier: http:/localhost:8080/With opentaps 1.4, you will see a greeting page which prompts you to login.The applications you can access are displayed as icons: In earlier versions of opentaps, you will see a menu in your browser which shows you all the applications available. You can now click on the application you wish to access.If you are using an older version of Sequoia ERP, you will need to acc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 河北省武强中学2026-2027学年高三年级上学期期中考试英语试题
- SEDEX 验厂岗位薪酬报告
- 2025年乡镇公务员招聘考试《基层工作知识》真题附答案
- 2025年县级医疗事业单位单招《专业基础知识》真题及答案
- 2026年社会福利机构管理员实务技能试卷
- 2025年西藏山南市检察官逐级遴选笔试题目及答案
- 2026年高校辅导员团队建设与管理考试专项训练试卷
- 2025年西部计划医疗卫生笔试真题附答案
- 2025年物资监测员招聘考试笔试试题(含答案)
- 2026年电力通信专业基础理论专项训练卷
- 2026年施工员(安装)理论考试试题及答案
- 2026年水电检修工考试试题(含答案)
- 消防安全工作手册(2026年版)
- NRS2002营养风险筛查频次规范共识
- 2026年中国烟草历年招聘考试题目(含答案)
- 储能电气施工方案
- 植物对氮、硫、磷的同化
- 四年级奥数测试卷及答案
- 云南省计算机一级b考试题库及答案
- 村级桥梁施工方案
- 学校教职工代表大会全套会议会务资料汇编
评论
0/150
提交评论