Checkout project code
- Create new workspace area (if you want you can add/import project to existing workspace);
- Go to menu File->Import->SVN->Project from SVN and click Next;
- On next window ("Enter Repository Location Information") write svn repo URL path: https://subversion.assembla.
com/svn/pg_projekty/ and click Browse; - Choose "webservice" project from list and click OK button;
6. Choose the head revision and click "Finish" button and on another window also "Finish";
7. The "webservice" project should be imported like this one below:
- 8. If we take a look on the "Markers" view (or "Problems" view imported from General group of views), we should see some errors. This is the result of the wrong settings of the Java Build Path. On another steps we will investigate that.
Handling with Java build path dependencies
OK. What eclipse is trying to tell us?
- "Target runtime GlassFish 3.1.2 is not defined", Type: Faceted Project Problem.
This error is directly connected with lack of the application server instances. We must create it on our own. So go into Servers views (tab in the same bar location as the Problems view). You can see the No servers available information. Click on the new server wizard link:
On the window choose the "GlassFish 3.1.2" server and accept it by clicking the "Next" button:
On the next screen you must select the JRE/JSD Runtime. I assume that you have installed the JDK library. For GlassFish to run, we must select proper JDK environment from our drive. If you don't have the JDK on the drop-down list next to "JRE:", please click on the "Installed JRE preferences" and proceed to next window.
Click the "Add" button to add the JDK environment installed on your local drive and select "Standard VM" JRE type. Proceed to next window - click "Next" button. Select the path to your local installation of the JDK by pressing the "Directory" button - in the right side of the "JRE home" label row. After selecting the proper JDK, list of packages should appear in the libraries window list:
click on "Finish" button. Make sure to check the proper (just added) JDK environment and click "OK":
Choose the just added jdk environment from the JRE drop-down list and choose the main folder of the GlassFish server installed on your local machine and clik Next:
On the next window write credential for server (note to remember it - will be needed during the development process). and click Finish button. The GlassFish server is ready to use and could be launched. Select the created server and push the Ctrl+Alt+R buttons combination. After a few seconds GlassFish should be ready to use (remember to put the credential when server will ask you during starting process).
Add webservice project into GlassFish server. Click the right mouse button on the webservice project in the Project Explorer window and choose the Run as option from the appearing menu and next Run on server option. Choose the GlassFish server and click Finish button.
After that the webservice producer project should be launched on server. The HTTP Status 404 browser window will appear - don't bother with it (just close it) - it is the Web-Service application. There is no presentation window.
So. That is all for the webservice producer code project.










Brak komentarzy:
Prześlij komentarz