Priyameena
Posts: 6
Joined: Wed Dec 26, 2007 7:31 pm

Tomcat Service

I am new to AI,I am trying to install a Web application that uses a tomcat server, I did the following steps for that based on your tutorial.

1.I selected the professional AI and added the Tomcat folder.

2.In custom action install I added the tomcat6w.exe file, in uninstall i added the uninstall file of tomcat.I added the preferences for these file based on one of your forum answer.

3.In service install, i added the tomcat6w.exe file. control operation I added the component tomcat6w.exe file.

while I try to install the .msi file ,I got the execption like service tomcat failed to start verify that you have sufficient previlages to start the system service. Please let me know what i am missing and its the right way to do this? I didnt want to go for prerequiste option for tomcat.

Thanks in advance
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The problem may be caused by the fact that you are trying to install a service by using the files installed on your machine instead of using the original installation package.

Please note that during the Tomcat 6 service installation custom registry entries are created. These registry entries are used by the Tomcat service and must be included in the installation package.
Please let me know what i am missing and its the right way to do this? I didnt want to go for prerequiste option for tomcat.
Since the Tomcat service installation is complex and uses custom registry entries I recommend that you use the Tomcat 6.0 Windows Service Installer installation package as a Prerequisite:
http://tomcat.apache.org/download-60.cgi

We have a tutorial for prerequisites, please take a look:
http://www.advancedinstaller.com/user-g ... requisites
http://www.advancedinstaller.com/user-g ... sites.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Priyameena
Posts: 6
Joined: Wed Dec 26, 2007 7:31 pm

Thanks

Thanks For your reply.

If I am goin to use the prerequistes option, I need to accomplish two things

1. After the target machine install the tomcat I want to place one of the jar file (hsql jar) to be placed in the tomcat lib folder.

2. Our application file need to get placed in the tomcat webapp folder.

Please let me know

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
1. After the target machine install the tomcat I want to place one of the jar file (hsql jar) to be placed in the tomcat lib folder.
In order to find the LIB folder you can use a search in the "Search" page. You can read more about this feature here:
http://www.advancedinstaller.com/user-guide/search.html

After this, you can create a property based folder using the result of the search (usually the property is named "RESULT_PROPERTY"). Since this folder will be resolved to the LIB folder you can place in it the file you need.
2. Our application file need to get placed in the tomcat webapp folder.
This is done like in the above case, except you will use a search for the "Webapp" folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”