Java 通过install4j安装程序在JBoss上部署web应用程序的步骤
我不确定从哪里开始,因为我必须通过install4j安装程序在JBoss上部署web应用程序 我已经创建了动态Web应用程序,我想在JBoss上部署此应用程序,但在客户端计算机上部署war文件并配置JBoss不是一个好主意,因此我想创建一个安装程序文件(.exe)文件,该文件将处理以下事项:Java 通过install4j安装程序在JBoss上部署web应用程序的步骤,java,jboss,installation,exe,install4j,Java,Jboss,Installation,Exe,Install4j,我不确定从哪里开始,因为我必须通过install4j安装程序在JBoss上部署web应用程序 我已经创建了动态Web应用程序,我想在JBoss上部署此应用程序,但在客户端计算机上部署war文件并配置JBoss不是一个好主意,因此我想创建一个安装程序文件(.exe)文件,该文件将处理以下事项: 在客户端计算机上安装JBoss服务器 在JBoss服务器上部署我的应用程序 因此,我只需将该安装程序文件提供给客户端,然后单击安装程序即可为我完成所有操作。由于我是install4j工具的新手,我无法使用i
- 一般设置
- 档案
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上部署这个应用程序?在本地部署web应用程序需要将WAR文件复制到一个特定的目录,在JBoss的情况下,这个目录是独立的部署目录。在install4j中,您可以使用“复制文件或目录”操作将war文件从分发树复制到任意目录。在本地部署web应用程序时,需要将war文件复制到特定目录,而在JBoss中,war文件是
独立\部署
目录。在install4j中,您可以使用“复制文件或目录”操作将war文件从分发树复制到任意目录。请显示您迄今为止的尝试。否则,这个问题很可能就解决了。我已经写了我所做的一切。Install4J提供了“杂项操作”,允许“执行任意可执行文件”(执行jboss cli.sh
)。还有“文件操作操作”(将.war复制到部署目录)。“你试过这个吗?”铍感谢你的回答。我没有尝试过这个,也没有得到其他操作和文件操作操作,而且我在Install4JP中没有得到这个选项。请显示您迄今为止尝试过的操作。否则,这个问题很可能就解决了。我已经写了我所做的一切。Install4J提供了“杂项操作”,允许“执行任意可执行文件”(执行jboss cli.sh
)。还有“文件操作操作”(将.war复制到部署目录)。“你试过这个吗?”铍感谢你的回答。我没有尝试过这个,我没有得到杂项操作和文件操作操作,我没有在install4jthanks中得到这个选项,但是我没有得到“复制文件或目录”install4jI中的action选项卡已将Myapplication.war文件打包到JBOss Standalone/deployments/文件夹中,Install4j正在创建exe文件,exe文件正在提取Myapplication,但它没有自动启动JBOss。我应该在Install4j中的何处设置vm参数可以在Installer->Screens&actions中添加操作,您应该将它们添加到安装程序的“安装”屏幕。你在install4j中做了什么,以便JBoss能够自动启动?@Indo Kegel。实际上我什么都没有得到。我已经告诉你了。因此,请给我一些步骤,通过install4j安装程序从一开始就在JBoss上部署web应用程序,以获得回复,但我没有得到“复制文件或目录”install4jI中的action选项卡已将Myapplication.war文件打包到JBOss Standalone/deployments/文件夹中,Install4j正在创建exe文件,exe文件正在提取Myapplication,但它没有自动启动JBOss。我应该在Install4j中的何处设置vm参数可以在Installer->Screens&actions中添加操作,您应该将它们添加到安装程序的“安装”屏幕。你在install4j中做了什么,以便JBoss能够自动启动?@Indo Kegel。实际上我什么都没有得到。我已经告诉你了。所以,请从一开始就告诉我通过install4j安装程序在JBoss上部署web应用程序的步骤
Media File Output Directory:*/home/shekhar/*
Media file Pattern
name:${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}
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.