venkideshmukh
Posts: 6
Joined: Thu Jun 15, 2006 9:55 am

creating installer with tomcat

hi all,
i am newbie to advanced intsaller.. i want to create installer for my webapplication.. Apache Tomcat shud also get installed automatically..

i can create simple installer for my web application. but when i create service for tomcat.exe , it is not working..
can anybody tell me how to do this?


Thanx a lot in advance..
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You need two custom actions one to start the service other to stop it. Schedule a custom actions under the "InstallService" standard action with the "FullPath" edited to:

Code: Select all

[#service.bat] install
Schedule the second CA under the "Uninstall" section with the "FullPath" edited to:

Code: Select all

[#service.bat] remove
Use "Synchronous execution, ignore return code" as "Execution Properties" and "Deferred" as "Execution Option" for both CAs. Use "Romove = ALL" as "Execution Condition" for the second CA. Also you need to create a control operation under the "Services" page in order to start/stop the service on install/uninstall.

Note that I test with Tomcat5 and the service.bat file is located in the bin dir of the apache-tomcat-5.5.17 root dir. Hope this helps.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here is more details:

Add all Apache Tomcat file in the "Application Folder" from "Files and Folders" page. Now you need two "Exe with Working Dir" custom actions one to install Tomcat as service other to delete it. Schedule a custom actions under the "InstallService" standard action with the "FullPath" edited to:

Code: Select all

cmd.exe /C "[bin_DIR]service.bat" install
Schedule the second CA under the "Uninstall" section with the "FullPath" edited to:

Code: Select all

cmd.exe /C "[bin_DIR]service.bat" remove
Use "Synchronous execution, ignore return code" as "Execution Properties" and "Deferred" as "Execution Option" for both CAs. Use "Romove = ALL" as "Execution Condition" for the second CA and (NOT Installed) for the first.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi,
I faced a problem with Tomcat web application setup. My tomcat web application setup is roll backed while installing. I am unable to prepare setup file for my web App properly. when i install it showing error:

service"Apache Tomcat" Failed to start. verify that u have sufficient privileges to start system privileges


i checked my start service which i had the above path

[APPDIR]>cmd.exe /C "[#service.bat]" install [AI_TOMCAT_SERVICE_NAME]

please help me
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: creating installer with tomcat

Hello,

Is the custom action that executes the command line set with "Deferred with no impersonation" execution option?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

HI,
No in "in custom action" it set the above
"Install Service">"install Tomcat Service" >above diagram
Last edited by navya on Mon Nov 19, 2012 9:13 am, edited 2 times in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: creating installer with tomcat

Please try that setting on all your related custom actions and see if the issue persists.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi,
I checked up, it working,
but after installation i cant able see start and stop services, just my application launching .
i cant start service or stop service.
please help me how to over come this
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: creating installer with tomcat

Hello,
but after installation i cant able see start and stop services, just my application launching . i cant start service or stop service.
Can you please give us more details about what you are trying to accomplish?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi,

I am able to install my tomcat,when i run my appplication on tomcat
http:/localhost:9090/[product Name]
My application launching but it showing error

Getting Title Failed.

What should I do to stop such errors
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: creating installer with tomcat

Hi,

If everything is installed and configured accordingly, then the installer cannot be responsible for this behavior.

The settings required for your application to function properly have to be included in the Advanced Installer project. The way your application runs and its functionality on the target machine completely depend on its development design, which should dictate the required install settings.

Does the application run if its configuration and dependencies are manually set( without using the installer )?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi,
Ya my application runs manually, with tomcat , and back end oracle, i couldnt able to figure out what exactly it is
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hey guys,
Thank You for ur support, my tomcat is working now
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi Mihai,
I got new Issue with my new installation file. i created exe file of tomcat Applllication and runnining in my machine. When i restart my machine my application getting failed to start. my Services failed to start. wht should i do to over come this.
Regards,
NAvya
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: creating installer with tomcat

Hi,
I am Creating new Tomcat Application. and when i run my application all are working fine. but when i restart my system and click on "Desktop" or " StartUp" shot cut for application. my application failed to start service, manually again i need to go inside and starting service, why this is happaing . Please suggest me as early as you can.
Regards,
Navya

Return to “Common Problems”