通过install4j安装程序在JBoss上部署web应用程序的java步骤
我不确定从哪里开始,因为我必须通过install4j安装程序在JBoss上部署web应用程序
我已经创建了动态Web应用程序,我想在JBoss上部署该应用程序,但在客户端机器上部署war文件并配置JBoss不是一个好主意,因此我想创建一个安装程序文件(.exe)文件,该文件将处理以下事项:
在客户机上安装JBoss服务器
在JBoss服务器上部署我的应用程序
因此,我只需将安装程序文件交给客户机,只需单击一下,安装程序就可以为我完成所有的事情。由于我是install4j工具的新手,我无法使用install4j工具完成这项工作。任何人都可以提供简单的创建步骤。使用install4j或任何其他工具的exe文件
编辑 到目前为止我试过的
- 一般设置
1.1应用程序信息
指定所有信息,如全名、简称、版本
1.2Java版本
min version=1.4
max version=1.7
*注意:混淆环境变量JAVA_HOME、JDK_HOME*
1.3种语言
英语
1.4媒体文件选项
Media File Output Directory:*/home/shekhar/*
Media file Pattern
name:${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}
使用LZMA压缩 注意:其余选项保持不变
文件
2.1分发文件
添加文件和目录:指定应用程序存在的路径 注:其余选项不变发射器
3.1生成的启动器 添加一个新的启动器
安装程序
不变
媒体
安装程序
默认情况下创建新的安装程序建造
6.1开始构建
准备配置
Creating media file 'Unix Installer': Collecting files: Compiling launchers: Compiling launcher 'connector': Generating launcher script file Generating VM options file connector.vmoptions. Creating media file: Generating launcher script file Zipping custom code & resources JAR file Identifying components Shrinking runtime Compressing files Applying LZMA compression Moving media files to media directory /home/shekhar/Desktop The name of the media file is she_unix_1_0_0.sh (click to execute) The size of the media file is 1.7 MB Writing md5sums. Writing updates.xml. To check your settings, you can generate a project report Build was completed in 13.9 seconds.
我已经运行了这个exe,但它已经创建了应用程序文件夹结构,但是JBoss配置在哪里?我如何在JBoss上部署这个应用程序
# 1 楼答案
在本地部署web应用程序需要将WAR文件复制到特定的目录,在JBoss的情况下,该目录是
standalone\deployments
目录。在install4j中,可以使用“复制文件或目录”操作将war文件从分发树复制到任意目录