subversion package for your system and download the code from our SVN repository using the commands shown below. Please note that the build process currently assumes that the WSDL file can be found in a certain location — you must either put everything in /usr/local/aggregate or update nbproject/axis2-build.xml to have the correct path to the aggregate.wsdl file.
# cd /usr/local
# svn -q export svn://svn.maxgigapop.net/geni-aggregate aggregate
# chown -R chris:chris aggregate |
/usr/local/aggregate directory that was created when you ran the svn export command above, as shown in the example dialog box below:
Next, right click on 'AggregateWS' in the Projects tab, then select 'Resolve Reference Problems' from the context menu:
You should receive a dialog box indicating that the 'Axis2-1.4' library could not be found:
Visit the Apache Axis2 v1.4.1 download page and download the "Standard Binary Distribution" (the complete version of Axis2). Extract the .zip file and note the location of the resulting 'axis2-1.4.1' folder.
Click 'Resolve' on the 'Resolve Reference Problem' window to bring up the Library Manager dialog:
Click 'New Library...' on the 'Library Manager' window and enter 'Axis2-1.4' as the Library Name — be sure to enter it exactly the same as what is shown in the dialog box below — then click OK:
Next, click 'Add JAR/Folder...' on the 'Library Manager' window and browse to the location of the axis2-1.4.1/lib folder. You will see a lot of files ending in .jar. Select all files in this dialog box and click 'Add JAR/Folder' — you can use the "select all" feature by pressing Control-A or Command-A:
Your 'Library Manager' window should now look like this:
The first .jar file should be called activation-1.1.jar and the last should be called XmlSchema-1.4.2.jar. Make sure that you have all of the .jar files from the axis2-1.4.1/lib directory before moving on to the next step.
NetBeans should indicate that the reference problems have now been resolved by showing you a window like the following:
In order to call the wsdl2java build target, first click the 'Files' tab. Click the triangle before 'AggregateWS' to show the files — you should now see a file called build.xml. Right-click on this file, select 'Run Target', then 'Other Targets', and finally 'wsdl2java-AggregateGENI'. The screenshot below illustrates this process:
If everything worked correctly, you should see 'BUILD SUCCESSFUL' in the 'Output' tab. This indicates that the Java skeleton code has successfully been built:
Check the 'Tasks' tab to see if it is still showing errors. Please note: NetBeans does not always clear these right away. You may have to double-click a few of the errors before you see them clear. Your tasks tab should now look like this once all of the errors have cleared — again, just double-click some of the errors to show the location in the source if you are still seeing errors show up under the 'Tasks' tab:
AggregateWS/xml-resources/axis2/META-INF/services.xml file which will cause problems if they are not fixed before building the Axis Archive file.
It may be possible to adjust the NetBeans templates to correct this behavior, but we have not yet looked into this in much more detail.
For now, you must manually edit the AggregateWS/xml-resources/axis2/META-INF/services.xml and apply the fix manually before proceeding.
Please adjust this file to look like the following:
You need to add scope="application" to the second line and change AggregateGENISkeleton to AggregateWS on the sixth line.
If you do not perform this step, the entry point to the GENI AM Web Service will never be called.
build.xml.
The 'Output' tab should show 'BUILD SUCCESSFUL' and give you the location of the .aar file that was just built. The code is now compiled and the .aar file can be deployed to any server which is running Apache Axis2 (we will explain how to setup the server in the next section):