Installation 说明

These steps will quickly get JumpStart 5.2.n running and editable.

1. Unzip. Unzip the downloaded file, which will give you a directory called jumpstart-5.2.0 or similar.

§ Move it to your development area, eg. /devel/jumpstart-5.2.0/ .

§ DO NOT choose a directory whose path contains any spaces, eg. do not use a directory whose path includes C:/Documents and Settings/.

解压:下载并解压jumpstart-5.2.0或者之前的版本,

2. Open it in Eclipse 3.6 (Helios). Open Eclipse, choose File > Import..., then choose General > Existing Projects into Workspace, click Next >, set the root directory to your jumpstart directory eg. /devel/jumpstart-5.2.0/, click Finish. The project can't build just yet so it will show errors.

打开Eclipse , 导入方法为choose File > Import..., then choose General > Existing Projects into Workspace, click Next >,设置根目录比如:/devel/jumpstart-5.2.0/click Finish这个project不会创建完成可能会显示错误(我本人用了eclipse-java-helios-SR2-win32最新版本发现程序根本不会报错,看来作者写这个文档很谨慎)

3. Ensure the project is using Java 1.6.确保你用的的java 1.6的版本,如果不是请参考下文中斜体字的描述,按照这个描述进行操作。

In Eclipse, right-click on the project and choose Properties then Java Compiler and ensure Compiler compliance level is 1.6. You may have to turn on Enable project specific settings.

§ Be wary of Sun-JDK version 1.6.0_18. It may upset OpenEJB (see OPENEJB-1131).

4. Get dependent files The project has an Ant build file, build.xml, with a get-dependent-files target. To run it in Eclipse:

§ Open the Ant view and drag build.xml onto it.

§ If your internet connection is through a proxy then modify the setproxy tag in build.xml, eg. 如果是通过代理连接网络的那么则需要对build.xml做修改

<setproxy proxyhost="proxy.mycompany.com" proxyport="8080"></setproxy>

This may also be necessary in business/build.xml and web/build.xml.

同样在business/build.xml web/build.xml.都需要修改

§ Run the get-dependent-files target in the project's build.xml file (find the target in the Ant view and double-click on it). If Ant has problems due to the maven repository being slow or inaccessible, open the project's build.properties and choose a different maven.repo.root, then try running the target again.

§ 运行build.xml文件(一般Eclipse 会自己运行一遍)并进行下载,如果访问的maven存储点 太慢或者无法访问,那么打开project's build.properties并选择不同的maven.repo.root,然后重新运行一遍

The result is that the following directories become populated with fresh JARs:

运行结果是下面的目录将都增加了新的JARS,这些目录在导航的时候原本是没有的

business/src/main/lib-compile/

business/src/main/lib-provided/

business/src/main/lib-runtime/

business/src/test/lib-test/

business/src/test/lib-test-local-openejb/

web/src/main/lib-compile/

web/src/main/lib-provided/

web/src/main/lib-runtime/

web/src/test/lib-test/

5. Refresh the project In Eclipse, right-click on the project and choose Refresh. This should build the project successfully and show no errors. It will also run collapser.xml, which will build the collapsed/ directory containing a WAR in "collapsed EAR" format. You can see how has this been configured by displaying the project's properties and choosing Builders.

刷新工程,

6. Set collapsed directory to derived In Eclipse, right-click on the collapsed directory, choose Properties, and tick the derived checkbox. Then click OK.

右击collapsed选择Properties,选上derived checkbox,然后点击OK

7. Get Jetty WebServer. 下载Jetty WebServer This will be your web server during development. 你的web server将部署在这个WebServer里面

§ Go to Codehaus Downloads and download jetty-6.1.26.zip (or, if you prefer, go to Jetty and navigate to the download). 点击“Codehaus Downloads”获取jetty

§ Once downloaded, unzip it. Move it to a suitable location (eg. /devel/jetty-6.1.26).

§ 载完,解压,然后放到一个合适的路径(比如. /devel/jetty-6.1.26

§ In Eclipse, choose Window > Preferences > Java > Build Path > User Libraries (or in OS X, choose Eclipse > Preferences > Java > Build Path > User Libraries), and

§ Click New... and create a new user library called jetty-6.1.26-lib, then

Click Add Jars... and add the following jars from Jetty's lib/ directory to the new user library: Eclipse创建一个User Libraries,命名为jetty-6.1.26-lib,并加入如下四个包

§

§ jetty-6.1.26.jar

§ jetty-util-6.1.26.jar

§ plus/jetty-plus-6.1.26.jar

§ naming/jetty-naming-6.1.26.jar

Eclipse创建一个User Libraries,命名为jetty-6.1.26-lib,并加入如下四个包

8. Get OpenEJB. This will be your embedded EJB container during development. 下载openejb-3.1.4.zip,创建user library 我们命名为openejb-3.1.4-lib,同时把openejb-3.1.4.zip里面的jar包都放进去

§ Go to Apache Download Mirrors and download openejb-3.1.4.zip .

§ Once downloaded, unzip it. Move it to a suitable location (eg. /devel/openejb-3.1.4).

§ In Eclipse, choose Window > Preferences > Java > Build Path > User Libraries (or in OS X, choose Eclipse > Preferences > Java > Build Path > User Libraries), and

§ Click New... and create a new user library called openejb-3.1.4-lib, then

§ Click Add Jars... and add every JAR in OpenEJB's lib/ directory to the new user library.

You now have the following environment available to Eclipse:

Web Server

Business Server

Persistence

Database Server

Logger

Jetty

OpenEJB

Hibernate

HSQLDB

Log4j

(As a user library)

(As a user library)

(As jars in project)

(Within OpenEJB)

(As jars in project)

Here's how to use it:

§ Populate the database. Populate the Hypersonic database (HSQLDB) within OpenEJB:

· In Eclipse, open the data_util.properties file and modify the properties hsqldb.data.dir and hsqldb.jar.dir. Use relative paths eg. ../openejb-3.1.4/data/hsqldb and ../openejb-3.1.4/lib .

· Drag the data_util.xml file to the Ant view and run its target reset-database-hsqldb-prompted. It will prompt you to confirm.
If you get the error "
Cannot load 32-bit SWT libraries on 64-bit JVM" in OS X, then right-click on the target reset-database-hsqldb and choose Run As > Ant Build... > JRE and add VM argument -d32, and click Run. The cause is explained here.

§ Start Jetty. In Eclipse... 设置Jetty

§

 
 
 

· 参考图基本上就能看清楚了 ,这里就不做讲解了

·

· Choose Run > Run Configurations.... The Run Configurations window will appear.

· Right-click on Java Application and choose New.

· Set the variables to values similar to those shown in the screen shot.

·  Click on the Arguments tab.

· Set the VM arguments to the following, replacing the value of openejb.home with yours, eg.:

· -Dtapestry.production-mode=false

· -Dtapestry.compress-whitespace=false

· -Djetty.home=../jetty-6.1.26

· -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true

· -Dopenejb.home=../openejb-3.1.4

· -Dhibernate.hbm2ddl.auto=update

· -Xms192m

· -Xmx192m

· -XX:MaxNewSize=96m

· -XX:MaxPermSize=96m

· These properties are explained here: tapestry, jetty, openejb, hibernate, JVM.

·

·  We have to "spell out" the classpath to jetty to avoid classloader issues.

· Click on the Classpath tab.

· Remove the (default classpath) entry.

· Click on User Entries.

· Add folder web/src/test/conf .

· Add folder collapsed/jumpstart.war/WEB-INF/classes/ .

· Add all JARs from these folders:

· collapsed/jumpstart.war/WEB-INF/lib/

· business/src/main/lib-provided/

· web/src/main/lib-provided/

· web/src/test/lib-test/

· Add user library jetty-6.1.26-lib .

· Add user library openejb-3.1.4-lib .

· Remove these JARs because they are also in the user library:

· jetty-6.1.26.jar - /jumpstart-n/web/src/main/lib-test/jetty-util-6.1.26.jar - /jumpstart-n/web/src/main/lib-test

· Remove these JARS because they are duplicates:

· javaee-api-n.n-n.jar - /jumpstart-n/web/src/main/lib-provided/joda-time-n.n.jar - /jumpstart-n/web/src/main/lib-provided/

· slf4j-api-n.n-n.jar - /jumpstart-n/web/src/main/lib-provided/

· Move the two folders to the top. It avoids conflicts.

· Click Run.

§ If error, especially ClassNotFoundException for org.slf4j.Logger or org.slf4j.impl.StaticLoggerBinder, check the Arguments and classpath match those shown above.

§ Check JumpStart is running by pointing your web browser at http://localhost:8080/jumpstart.

§ Confirm you can log in by going to http://localhost:8080/jumpstart/theapp/login and logging in as secofr with password secofr.
There are another 2 users:
admin and john, with passwords admin and john, respectively.

§ Try making a mod! As another quick test...

· In Eclipse, locate the template of the front page - web/src/main/java/pages/Index.tml - and modify it a little.
If you change the template or java of a page you'll see the change just a moment later in your running application.

· Remember - if the application isn't running then you can still immediately preview the mod by opening the .tml file with a web browser, or in Eclipse try Open With > Web Browser if that option is available. This is one of Tapestry's many strengths.

Next steps. Visit Orientation, Tips, and Troubleshooting for more info.

JumpStart 5.2用例安装说明 tapestry5相关推荐

  1. redies的单例安装

    本篇文章以在mac上安装redis为例,别的系统也可以参考. 1下载 打开官网:https://redis.io/ Download---Stable---Download3.2.8,下载最新稳定版, ...

  2. 【Linux安装和更新】两种方式更换软件源,以JDK为例安装

    文章目录 本博客以Ubuntu系统为例 一.apt工具 (一)命令修改文件 (二)手动修改文件 (三)安装JDK 1.命令安装 二.wget工具 (一)下载安装谷歌浏览器 1.下载或上传.deb文件 ...

  3. 编程辅助插件BitoAI使用指南(以VSCode开发环境为例安装并使用BitoAI插件从而提高生产效率)

    2023年是AI爆发元年,已经被各种AI工具.新闻轰炸了几个月,只有一种感觉:时间不够用! 本文介绍编程辅助神器:Bito AI. 本插件使用与ChatGPT相同的模型!目前免费,且拥有强大的辅助能力 ...

  4. Linux系统下detectron2安装(cuda11为例)

    Linux系统下detectron2安装(cuda11为例) detectron2官方Requirements 1.Linux or macOS with Python ≥ 3.6(python版本需 ...

  5. Fedora 14下安装使用rarlinux

    安装Fedora 14后,其默认情况下不能解压RAR文档,因为系统自带的解压软件不支持RAR格式文档,但由于经常要用到RAR文档,因此就必须安装一个RAR软件. Linux版的RAR下载链接: htt ...

  6. 使用Bioconda管理生信软件(以bwa为例)

    1.安装conda 要使用Bioconda,必须先安装conda,有两个版本可供我们选择:miniconda和anaconda.miniconda的体积较小,但是能满足正常的生物信息学使用,如果你的网 ...

  7. 【转】Python3 (入门6) 库的打包与安装

    Python3 (入门6) 库的打包与安装 本文由 Luzhuo 编写,转发请保留该信息. 原文: http://blog.csdn.net/Rozol/article/details/6940288 ...

  8. php 动态链接,LevelDB(动态链接) + PHP扩展 安装

    因为撤离SAE的原因,所以- 配置方法是先安装大于3.9版本以上的cmake,Debian 9默认apt安装的版本是3.7的,安装好cmake后克隆levelDB项目:https://github.c ...

  9. PEAR安装、管理及使用

    PEAR安装    linux下只要你安装的是PHP 4.3.0以上的版本,默认安装都是支持PEAR的,除非你使用了"--WITHOUT-PEAR"选项,修改PHP.INI文件,在 ...

最新文章

  1. 黑科技抗疫,Python开发者大集结!
  2. kafkatool 配置_kafka tools的使用
  3. 《Java核心技术卷一》p60~p70 学长教我学Java(7)
  4. [Redux/Mobx] Mobx和Redux有什么区别?
  5. 一步步编写操作系统 51 加载内核4
  6. APP运营者如何对用户的数据进行分析?
  7. 登陆模块防止恶意用户SQL注入攻击
  8. 大龄程序员怎样渡过中年危机?很多思考,挺有意思的。
  9. ISO 9000 族标准的构成
  10. 2015年职称计算机考试宝典,2015年职称计算机考试宝典模块软件.doc
  11. 游戏数据分析方法-活跃向
  12. 详解关系抽取模型 CasRel
  13. 计算机课件 flash,计算机实用技术教学课件 刘毅 第8章 Flash动画制作.ppt
  14. Cordova入门教程
  15. 截止失真放大电路_5.深入浅出:多级放大电路种类及动态分析
  16. 【算法】Aho-Corasick多模式匹配算法
  17. JZJZJZ---数组中出现次数超过一半的数字
  18. SQLite学习笔记(七)-- 数据插入、更新和删除(C++实现)
  19. POJ 2395 Out of Hay 最小生成树 Kruskal
  20. java随机生成随机数

热门文章

  1. 玻璃心?App Store下架PP助手与360手机助手,做aso会被苹果下架吗
  2. 毫米波雷达攻“芯”为上,行业巨头挑战传统供应链合作模式
  3. Go语言-实现单链表反转算法
  4. 使用软件starf**k_de(更新0.82b版本),免拔光驱线玩YS6
  5. springboot中药知识分享网站设计 毕业设计-附源码201818
  6. cs架构接口协议(常用socket协议)与bs架构接口协议(常用http协议)
  7. 出色的领导者 多普达智能最新旗舰830评测
  8. no input file specified 处理方式
  9. IDM使用队列下载多个百度云文件
  10. 德赛西威IPU03域控制器方案介绍