Project

General

Profile

Setup Development Environment » History » Version 10

chin-yeh, 01/16/2012 02:31 PM

1 1 chin-yeh
{{toc}}
2
3
h1. Setup Development Environment
4 2 chin-yeh
5
This guide describes how to setup the development environment in which contains the following components:
6
* Eclipse IDE (_Galileo_)
7
* Jboss AS 4.0.4 (_local deployment only_)
8
* Jboss AS 4.2.2 (_local deployment only_)
9
* Jetty 7.5.1 (_local & remote deployment_)
10
11 8 chin-yeh
All of the projects requires *JDK 6.0*.
12
13 2 chin-yeh
h2. Steps
14
15 3 chin-yeh
> *Note:* Refer to the [[Setup_Development_Environment#Setup-Files|Setup Files]] section to get all of the required files.
16 1 chin-yeh
17 3 chin-yeh
# Download and extract the following files to <code>C drive (C:\)</code>:
18
** [[Setup_Development_Environment#Setup-Files|Eclipse Galileo]]
19
** [[Setup_Development_Environment#Setup-Files|Eclipse Workspace]]
20
** [[Setup_Development_Environment#Setup-Files|Jboss AS 4.0.4]]
21
** [[Setup_Development_Environment#Setup-Files|Jboss AS 4.2.2]]
22 4 chin-yeh
# Install the [[Setup_Development_Environment#Setup-Files|JDK 6.0 Update 23]] and install it into <code>c:\program files</code>
23 3 chin-yeh
# Edit *eclipse.ini* <code>(c:\eclipse_galileo)</code> and confirm if it's pointing to the JDK in which installed in the previous step:
24
<pre>
25
-vm
26
C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll
27
</pre>
28
# Launch the *Eclipse IDE* <code>(c:\eclipse_galileo\eclipse.exe)</code> and choose the *workspace* <code>(c:\eclipse_mcom)</code> that extracted in the previous step
29
# Navigate to _[Window -> Preferences -> Java -> Installed JREs]_ and make sure the workspace is using *JDK*, not JRE, and it's pointing to the JDK location that installed in the previous step
30 4 chin-yeh
# Click on the *CVS Repository* view _(located at the left bottom of the workspace)_ and *update the user* for *all* of the repositories:
31 3 chin-yeh
** _right click on the repository -> Properties -> User_
32
# Finally, do a *CVS Update* on all of the project(s)
33
** _right click on the project -> Team -> Update_
34
# done
35
36 2 chin-yeh
h2. Setup Files
37
38
|_.Filename|_.Description|
39
|"Eclipse Galileo":http://192.168.2.13/download/eclipse_galileo.zip|Eclipse IDE|
40 1 chin-yeh
|"Eclipse Workspace":http://192.168.2.13/download/eclipse_mcom.zip|The Eclipse workspace|
41 2 chin-yeh
|"Jboss AS 4.0.4":http://192.168.2.13/download/jboss-4.0.4.GA.zip|Jboss Application Server 4.0.4|
42
|"Jboss AS 4.2.2":http://192.168.2.13/download/jboss-4.2.2.GA.zip|Jboss Application Server 4.2.2|
43 3 chin-yeh
|"JDK 5.0 Update 20":http://192.168.2.13/download/jdk-1_5_0_20-windows-i586-p.exe|JDK 5.0 with Update 20 for Windows|
44 2 chin-yeh
|"JDK 6.0 Update 23":http://192.168.2.13/download/jdk-6u23-windows-i586.exe|JDK 6.0 with Update 23 for Windows|
45 5 chin-yeh
46
h1. How to Deploy
47
48 9 chin-yeh
h2. Local
49
50 6 chin-yeh
# clean and rebuild the <code>mcom-connector</code> project
51
# open *Java EE* or *Java* perspective
52 5 chin-yeh
# _[right click on the project]_ and choose _[Debug As -> Run Jetty]_
53 6 chin-yeh
# if started, you can access the application via:
54 5 chin-yeh
> http://127.0.0.1:8080/mcom-connector/
55 9 chin-yeh
56
h2. Remote 
57
58
# clean and rebuild the <code>mcom-connector</code> project
59
# open *Java EE* or *Java* perspective
60
# execute the *remote-deploy* Ant target in the *build.xml*
61
** _existing deployment folder will be overwritten_
62
# if succeed, you can access the application via:
63
> http://192.168.2.13:58080/mcom-connector/
64
65 1 chin-yeh
66
h1. How to Debug
67 6 chin-yeh
68
# add the desired *breakpoint(s)* on the Java or JSP
69
# open *Debug* perspective
70
# _[right click on the project]_ and choose _[Debug As -> Run Jetty]_
71 10 chin-yeh
# if started, you can access the application via the following URL and begin the debug session:
72 6 chin-yeh
> http://127.0.0.1:8080/mcom-connector/
73
74 7 chin-yeh
*Extra*: Refer to this "link":http://www.vogella.de/articles/EclipseDebugging/article.html for more info about the <code>Debugging in Eclipse IDE</code>.