简体   繁体   English

通过install4j安装程序在JBoss上部署Web应用程序的步骤

[英]Steps to deploy web application on JBoss via install4j installer

I am not sure where should I start from as I have to deploy a web application on JBoss via install4j installer. 我不确定应该从哪里开始,因为我必须通过install4j安装程序在JBoss上部署Web应用程序。

I have created the Dynamic Web Apllication and I want to deploy this application on JBoss but deploy a war file and configure JBoss on client machine is not a good idea thus I want to create a installer file (.exe) file which will take care of following things: 我已经创建了Dynamic Web Apllication,我想在JBoss上部署此应用程序,但是在客户端计算机上部署war文件并配置JBoss并不是一个好主意,因此,我想创建一个安装程序文件(.exe),该文件可以解决以下内容:

  1. Installation of JBoss server on client machine 在客户端计算机上安装JBoss服务器

  2. Deploy my application on JBoss server 在JBoss服务器上部署我的应用程序

so that I just have to give that installer file to client and on single click the installer will do all the things for me and as I am new to install4j tool, I am not able to do this with install4j tool.Anyone can provide simple steps to create .exe file using install4j or any other tools 因此,我只需要将该安装程序文件提供给客户端,然后单击安装程序即可为我做所有事情,并且由于我是install4j工具的新手,因此我无法使用install4j工具来完成此操作。任何人都可以提供简单的步骤使用install4j或任何其他工具创建.exe文件

EDIT what I tried so far 编辑到目前为止我尝试过的

  • General Settings 通用设置

1.1 Application Info 1.1应用信息

Specify all The information like full name,Short name,version... 指定所有信息,例如全名,短名,版本...

1.2 Java version 1.2 Java版本

min version=1.4 
max version=1.7

* NOTE: Confuse about the Environment variables JAVA_HOME,JDK_HOME* * 注意:对环境变量JAVA_HOME,JDK_HOME *感到困惑

1.3 Languages 1.3语言

English-en 英恩

1.4 Media File Options 1.4媒体文件选项

    Media File Output Directory:*/home/shekhar/*
    Media file Pattern 

name:${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}

Use LZMA compression Note: Rest of options are unchanged 使用LZMA压缩注意:其余选项不变

  • Files

    2.1 Distribution Files 2.1发行文件
    Add Files and Directories:specify the path where application exists Note: Rest of options are unchanged 添加文件和目录:指定应用程序存在的路径注意:其余选项不变

  • Launchers 发射器

    3.1 Generated Launcher add a new Launcher 3.1生成的启动器添加新的启动器

  • Installer 安装程序

    Unchanged 不变

  • Media 媒体

    Installer 安装程序
    create a new installer by default 默认情况下创建一个新的安装程序

  • build 建立

    6.1 Start Build 6.1开始构建

    Preparing configuration 准备配置

     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. 

I have run this exe but it has created application folder structure but where is JBoss Configuration and how can i deploy this apllication on JBoss 我已经运行了该exe文件,但是它已经创建了应用程序文件夹结构,但是JBoss Configuration在哪里,以及如何在JBoss上部署该应用程序

Deploying a web application locally involves copying a WAR file to a specific directory which in the case of JBoss is the standalone\\deployments directory. 在本地部署Web应用程序涉及将WAR文件复制到特定目录,对于JBoss而言,该目录为standalone\\deployments目录。 in install4j, you can use a "Copy file or directory" action to copy a war file from a distribution tree to an arbitrary directory. 在install4j中,可以使用“复制文件或目录”操作将war文件从分发树复制到任意目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM