...
- Add JAVA_HOME as a system Environment Variable and PATH Environment Variable with the appropriate values. Follow the steps to do this:
- Right-click the My Computer icon on your desktop and select 'Properties'.
- Click the 'Advanced' tab For Windows 7, it will be an Advanced system settings icon..
- Click the 'Environment Variables' button.
- Under 'System Variables', click 'New'.
- Enter the variable name as JAVA_HOME.
- Set the variable value for JAVA_HOME to the installation directory of your JDK, for example, c:\Program Files\Java\jdk1.7.0_09. Click 'OK'.
- Navigate to then click on the PATH Environment Variable. Click the Edit button and append %JAVA_HOME%\bin to the end of path.
- Click 'OK'.
- Click 'Apply' and then 'OK' to exit.
2. Navigate to the directory where the batch files are located: usually <frevvo-home>. Execute the Install-Service batch file by double clicking on it.
...
4. Right click the My Computer icon. Select Manage, Services and Applications, Services. The service should be listed.
Install as a service on Windows (x64)
...
2. Navigate to the directory where the batch files are located: usually <frevvo-home>.
3. Execute the Install-Service batch file by typing it into the command prompt window. The service service will be called Tomcat 7 or Apache Tomcat 7 but the display name can be changed when you run the Configure-Service Batch file.
4. Double click the Configure-Service batch file (contents shown) in <frevvo-home>\tomcat\bin or execute the command below manually.
Code Block |
---|
tomcat7w.exe //ES//ApacheTomcat7 - Replace ApacheTomcat7 with the right service name, if you have installed it using a different service name. |
5. Click on the Startup tab. Modify the service properties to change the Startup mode from jvm to Java. Click 'OK'.
6. Click on the Shutdown tab. Modify the service properties to change the Shutdown mode from jvm to Java. Click 'OK'.
7. Now try to start and stop the service and remember to check the service logs both in frevvo/tomcat/logs/jakarta_service_* and in the Windows System Events log for any additional details.
You may see these errors in the windows service log file:
...
Code Block |
---|
Error 109: The pipe has been ended |
then you will need to edit the service configuration and change the Shutdown mode from jvm to Java. Double click the Configure-Service batch file (contents shown) in <frevvo-home>\tomcat\bin to do this or execute the command below manually then modify the service properties to make the change.
Code Block |
---|
tomcat6w.exe //ES//frevvoForms - Replace frevvoForms with the right service name, if you have installed it using a different service name. |
Now try to start and stop the service and remember to check the service logs both in frevvo/tomcat/logs/jakarta_service_* and in the Windows System Events log for any additional details.
frevvo.war
The application frevvo.war now runs directly from the war file. This means that frevvo.war no longer expands its contents into <frevvo-home>\tomcat\temp or <frevvo-home>\tomcat\webapps\frevvo.Tomcat still does create a temp folder, for example <frevvo-home>\tomcat\temp\0-frevvo (the actual folder depends on where java.io.tmpdir is pointing to) to store form/flow cached htmle and other temporary files.