|
HOWTO: Build StrongKey from the sources |
|||
|---|---|---|---|
|
|
|
|
|
|
StrongKey makes the following assumptions about component installations. If you have installed them in other locations, please be aware of the changes you need to make to specific command-lines or file/directory locations. |
|||
|
|
|
JAVA_HOME |
/usr/local/jdk1.5.0_0x
(_06 or _07 or
_08) |
|
|
|
||
|
1 |
Download the StrongKey sources and save the zip file in a temporary directory, such as /usr/tmp |
||
|
2 |
In a terminal shell windows (Command Prompt on Windows), go to the /usr/local/workspace directory and unzip the StrongKey zip file. On Linux, you would type unzip /usr/tmp/<strongkey-source-zip-file-name> On Windows, you would use the Windows Explorer to extract the zip file into c:\usr\local\workspace |
||
|
|
|
This will result in a series of files being extracted under the /usr/local/workspace/symkey directory. |
|
|
3 |
Start the NetBeans 5.0 IDE using /usr/local/netbeans50/bin/netbeans After a few seconds/minutes, you should see |
||
|
|
|
|
|
|
4 |
Open a project by either selecting File->Open Project from the main menu, or by clicking the icon shown below |
||
|
|
|
|
|
|
5 |
You should see an Open Project dialog panel as follows |
||
|
|
|
|
|
|
6 |
Navigate to the /usr/local/workspace/symkey directory and select the symkey project, as shown below |
||
|
|
|
|
|
|
7 |
Click on Open Project Folder.. You should see a series of “warnings” about Reference Problems or Missing Server Problem as shown below. |
||
|
|
|
|
|
|
8 |
Click Close on all of them till you see the following |
||
|
|
|
|
|
|
9 |
Right-click with your mouse, on the symkey project and select Resolve Reference Problems. You should see |
||
|
|
|
|
|
|
10 |
Click Resolve... while the entitybean project is highlighted. You should see |
||
|
|
|
|
|
|
11 |
Select entitybean (as shown above) and click Open Project Folder. You should see the amber warning icon change to a green “resolved” icon as shown below. |
||
|
|
|
|
|
|
12 |
Select the jaxb project and click the Resolve... button. When the Open Project dialog shows the list of projects, choose jaxb and click on the Open Project Folder button. You should see the following: |
||
|
|
|
|
|
|
13 |
Similarly, select the txbean and servlet projects and click the Resolve... button. When the Open Project dialog shows the list of projects, choose txbean and servlet projects, respectively, and click on the Open Project Folder button. Finally, you should see the following: |
||
|
|
|
|
|
|
14 |
Click the Close button. Now, right-click with your mouse, on the symkey project and select Resolve Missing Server Problem. You should see |
||
|
|
|
|
|
|
15 |
Click on the Add Server... button. You should see |
||
|
|
|
|
|
|
16 |
Click on the Add Server... button. You should see |
||
|
|
|
|
|
|
17 |
Click Next and you should see |
||
|
|
|
|
|
|
18 |
Select the Browse... button. You should see a Choose Application Server's Install Location dialog. Navigate to the /usr/local/ directory and choose sjsas82 as shown below |
||
|
|
|
|
|
|
19 |
Click the Choose button. |
||
|
|
|
|
|
|
20 |
Click Finish, and you should see |
||
|
|
|
|
|
|
21 |
Click Close and you should see |
||
|
|
|
|
|
|
22 |
Highlight the Sun Java System Application Server and click OK. You should see the following. The warning icon on the symkey project will have disappeared. |
||
|
|
|
|
|
|
23 |
At this point, you have opened, and resolved the references related to the symkey module. You now need to open and resolve references to a few more modules. Open the txbean project by choosing File -> Open Project from the main menu. Make sure that you have deselected the option for Open as Main Project in the Open Project dialog. |
||
|
|
|
|
|
|
24 |
You should see the following panel, with the txbean project highlighted with the warning icon, indicating reference problems. |
||
|
|
|
|
|
|
25 |
Right-click on the txbean project and select Resolve Reference Problems |
||
|
|
|
|
|
|
26 |
Click on the “J2EE” library could not be found problem and click on the Resolve... button. You should see the following |
||
|
|
|
|
|
|
27 |
Select the New Library button. You should see |
||
|
|
|
|
|
|
28 |
Type in J2EE in the Library Name field and click on the OK button. You should see the following: |
||
|
|
|
|
|
|
29 |
Click on the Add Jar/Folder button. In the file-chooser window, locate the /usr/local/sjsas82/lib directory, and choose the j2ee.jar file. Your window should look like the following: |
||
|
|
|
|
|
|
30 |
Click the Add Jar/Folder button after having selected the j2ee.jar file. You should see: |
||
|
|
|
|
|
|
31 |
Click on the OK button. You should see |
||
|
|
|
|
|
|
32 |
To resolve the “utility” project could not be found, select it and click the Resolve button. Select the utility project in the chooser window, as shown below |
||
|
|
|
|
|
|
33 |
After selecting the utility project, click on the Open Project Folder button. You should see the utility project as being resolved, as shown below |
||
|
|
|
|
|
|
34 |
Resolve the entitybean and databean projects, exactly as you did the utility project. After resolving them, your Resolve Reference Problems panel should look like the following: |
||
|
|
|
|
|
|
35 |
Resolve the mysql-connector-java-3.1.1x-bin.jar file/folder by locating the file in the /usr/local/sjsas82/lib directory. It was copied there when you configured the Application Server to communicate to the MySQL database. Note: While the graphic images shows the MySQL Connector jar file to be version 3.1.12, you may actually have a newer version in the StrongKey distribution. Regardless of the version number, make sure you choose the right version. After resolving the MySQL Connector, what will happen is that all your unresolved references will turn “green” and your Resolve Reference Problems should look like the following: |
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
At this point, you have successfully built the StrongKey EAR. |
||
|
|
|
|
|