jboss installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

akearns
Posts: 8
Joined: Mon Jul 16, 2007 9:10 pm

jboss installation

How can I get the installer to execute a .jar file?
I want it to execute the line:
java -jar jems-installer-1.2.0.GA.jar

This installs JBoss 4.0.5.GA and then exits.
After that I need to customize that install, ie. add an .ear file.

Is this an installation of a Java Product or a Custom Action?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can use the "Repackager" tool to capture the installation of the program. We have a tutorial on how to use the repackager, please see:
http://www.advancedinstaller.com/user-g ... kager.html

For repackaging the .jar file you will create a .bat file containing the command line:

Code: Select all

java -jar jems-installer-1.2.0.GA.jar
In the repackager wizard the "Application Path" will be the .bat file.

After you import the repackager results you can add any files you want to the project and then build it.

Hope this helps!
Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
akearns
Posts: 8
Joined: Mon Jul 16, 2007 9:10 pm

I tried doing this, it did not succeed. I created install.bat and ran that with the repackager. Everything worked as expected until it compared the saved snapshot against the current. I received the error:

Could not copy file from C:\Program Files\jboss-4.0.5.GA\server\default\deploy\jms-console.war\WEB-INF\classes\org\jboss\jms\adaptor\model\MBeanSettings.class to C:\Documents and Settings\akearns\Application Data\...\Installation Captures\jBoss...\MBeanData.class

There are no permission issues with the directories involved.

I received similiar messages on multiple files:
.class
.war
.jsp

I tried multiple times, I also modified the profile it used to include all files. I had to edit the jboss.flt file to remove the extra lines inserted at the end of the XML file:

</REPACKAGER-FILTERS>
eControlSet\Control\WMI"/>
</REG-EXCLUDE>
</REPACKAGER-FILTERS>

I removed the last 3 lines.

Any idea on what might be incorrect?

This is a newly downloaded version of Advanced Installer 5.1.1.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This is not related on how you configure the Repackager profiles. Note that during capture process you need to close all unnecessarily applications in order to avoid any "false positive" capture results.

Recommended is to close all running applications before beginning the capture process.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”