The character code of the file output by Wagby is UTF - 8.Introduction Set the encoding of text files in Eclipse.
Select "Window" from the menu and open "Settings".
The encoding of the text file prepared in "General> workspace" is "UTF - 8".
We will make Tomcat enclosed by Wagby as standard, to be recognized as "server" from Eclipse.
Select "File" from the menu and open "New> Other ...".
Select "Server" on the new wizard screen and click the "Next" button.
Select Apache Tomcat v 7.0 as the server.(Tomcat that is included in Wagby is v7 series.)
The server name should be as follows.Please match the Wagby version number to your version.
As the installation directory of Tomcat, specify the wagbyapp folder provided by Wagby.
In this example, wagbyapp in the Wagby - 7.0.4 folder is specified.
When you click "Finish" button in the window of Figure 6, a server icon is prepared in the project explorer in the Eclipse screen.(FIG. 7)
Select "Window" again from the menu and open "Settings".Make sure that "server> runtime environment" is set as shown in Figure 8.(Please confirm only here.)
Register the application (wagbyapp) built with Wagby in Eclipse.
Select "Import ..." from the menu "File".
From the Import Wizard screen, select "General> Existing Project to Workspace".
For the root directory, specify the folder where you installed Wagby (eg Wagby - 7.0.4).
After designation, the project name which can be automatically imported is displayed in the project column, so check the target and press the completion button.
A Wagby icon is prepared in the Project Explorer.
We will set up the necessary environment to start Wagby.
First, open the ".settings" folder prepared in the folder where you installed Wagby. Open "launchConfiguration.txt" included in this with a text editor such as TeraPad.(Please do not use Notepad attached to Windows.)
This file contains the settings for the two entries "VM arguments" and "Working Directory".I will copy this value into the Eclipse setting field.
I will return to Eclipse.Double-click the Tomcat icon for Wagby provided on the "Server" tab at the bottom of the screen.The setting screen will open.(FIG. 14)
Click the "Open launch configuration" link here.
The launch configuration properties window opens.Select the Arguments tab.The initial state is as shown in Fig. 15.
Copy the value of "VM arguments" in Figure 13 to this "VM argument" column.(FIG. 16, FIG. 17)
Copy the value of "Working Directory" in Figure 13 to the "Working Directory" column of the startup configuration property.
Click the "OK" button in the start configuration property window to finish. Next, select the "Module" tab on the setting screen.
Click the "Add Web module ..." button and add the "/wagby" path.(Fig. 19)
After adding, press the save icon in the menu section to save this setting.(Please do not forget to save.)
The setting is over at this point.Try running Tomcat (the entity is Tomcat that is bundled with Wagby) in the server tab from Eclipse.Press the activation icon (red frame in Figure 20).
If a Windows security warning is output, "allow access" is assumed.
From the console log, you can check whether Tomcat was started successfully.
In "Starting Servlet Engine: Apache Tomcat/7.0.xx", check the version of Tomcat. If the message "Server startup in xxx ms" is displayed, Tomcat is running. After this, you can operate the Wagby application from the web browser.