Phat bi?u bai toan dang ky h?c ph?n

braintreesmileΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 4 χρόνια και 11 μήνες)

315 εμφανίσεις




UNIVERSITY OF SCIENCE


FACULTY OF INFORMATION TECH
NOLOGY

CQ


HK1


2k9


2k10


Software Analysis and Design Project

Class

06CTT

+
07CTT







Problem statement

Project name


Version
x.y








Created by
:

S.ID
1


Student name

S.ID
2


Student name
Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

1


I/ Attach Database:

2

I
I/ Configure port:

4

1.

III/ Copy required files and folders:

6

IV/ Configure JBoss server:

7

V/ Run project from Netbeans:

8

VI/ Run project with .ear package:

14

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

2


Installation Guide

I/ Attach Database:

Copy the database fi
les we provided to your desired destination in hardware.

Open your SQL Server Management Studio, connect to your database engine with your
desired username and password.



At “Databases”, right click, choose attach

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

3



In the newly opened window, click Add


In a newly opened window, search to the .mdf file you just copied, click OK. Then one
more OK
.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

4



The database is now attached



II/ Configure port:

Open your SQL Server Configuration Manager. Click “Protocols for SQL”

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

5



In the right window, right click
on TCP/IP and click Enable


Right click on TCP/IP again and choose Properties. In the newly opened window, switch
to tab IP Addresses, scroll down until you see IPAll, set TCP Port to 1433. Then click
OK.


Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

6


In the Sql server configuration manager window,
click on SQL Server Services. In the
right window, right click on Sql Server, click Restart


Then wait for your server to restart. After that, close Sql Server Configuration Manager.


III/ Copy required files and folders:

We have provided required files a
nd folders to be copied to the right destination so that
our project can function properly.

First of all, please copy file
cs.txt

(provided in folder
Deploy
/Files to be copied/
) to
C:
\

on your hard disk. After copying, open
cs.txt,
then edit your correct SQ
L instance name


Your correct SQL instance name can be found when you open your SQL Server
Management Studio:

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

7



Secondly, copy the whole folder
RideNFly

(provided in folder
Deploy
/Files to be
copied/
) to
C:
\

on your hard disk



IV/ Configure JBoss serve
r:

Extract
JBoss.rar

(
Skip this step if you already have JBoss server).

Open
cs.txt

(mentioned in
step II
) copy the connection string in there.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

8




Open
jboss
-
ds.xml
(as provided in folder
Deploy
/
). Replace the current connection
string with the connection
string you edited in
cs.txt
.


Also edit content in tab <user
-
name> and <password> with your desired username and
password to log into SQL Server.

Next, copy your edited

jboss
-
ds.xml
to
deploy

folder in your newly extracted
JBoss

folder:

JBoss/server/defau
lt/deploy/


V/ Run project from Netbeans:

Please do
step I
,
step II, step III
and

step IV

before proceeding.

Open Netbeans. Then select tab Runtime, right click on Servers, select Add Server…

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

9



Choose Server as Jboss Application Server, and then name your
server properly. Click
Next.


In the installation location, choose the folder where you extracted
JBoss.rar

to. Click
Next.

In the next window, click Next. Then Finish. You have added JBoss server to NetBeans.


Next select Open Project on File.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

10



In the n
ewly opened window, search for our source code
project

Click Open Project.

Your newly opened project will be marked as in need of resolving references. Right click
on your project, click Resolve References Problem.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

11



Search for the correct folder of

war a
nd

ejb project (contained within enterprise
project)

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

12





Double click on the 2 recently resolved projects to open them in Netbeans.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

13





The

war project still have references problem, we can resolve similarly as above. For
required libraries in

war pro
ject, we have provided in folder
Deploy
/Libraries
(there
should be 3 libraries:
sqljdbc.jar
,

commons
-
fileupload
-
1.2.2.jar

and

commons
-
io
-
1.3.1.jar
)

In

ejb project, open

jboss
-
ds.xml

file:

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

14



Also open the

jboss
-
ds.xml

file you edited in
step IV

and copy al
l of its content to
overwrite all of the content in this
jboss
-
ds.xml

file here in

ejb project.


Click on the enterprise project, select Run Project to run the project.


When finish deploying, the website will appear in your browser.


VI/ Run project wit
h .ear package:

Please do
step I
,
step II, step III
and

step IV

before proceeding.

First you need to set classpath for JBoss to run without help of NetBeans. Open System
Properties from icon Computer, switch to tab Advanced, click Environment Variables…

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

15





Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

16




Click New

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

17



Variable name:

CLASSPATH

Variable value:

.;C:
\
Program Files
\
Java
\
jdk1.6.0
\
lib;C:
\
Program
Files
\
Java
\
jdk1.6.0
\
jre
\
lib

Variable value (if you’re using Windows 7 64 bit):

.;C:
\
Program Files (x86)
\
Java
\
jdk1.6.0
\
lib;C:
\
Program Files (x86)
\
Ja
va
\
jdk1.6.0
\
jre
\
lib


Then click OK



Click New again, and input following:

Variable name:

JAVA_HOME (tu tao)

Variable value:

C:
\
Program Files
\
Java
\
jdk1.6.0

Variable value (if you’re using Windows 7 64 bit):

C:
\
Program Files
(x86)
\
Java
\
jdk1.6.0

Click OK.


Then search for variable Path, click Edit

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

18



Append the following values into variable value field:

Variable value (for XP):



;C:
\
Program Files
\
Java
\
jdk1.6.0
\
bin;C:
\
Program Files
\
Java
\
jdk1.6.0
\
jre
\
bin

C:
\
Program Files
\
Java
\
jdk1.6.0
\
bin;C:
\
Program Files
\
Jav
a
\
jdk1.6.0
\
jre
\
bin

C:
\
Program Files
\
Java
\
jdk1.5.0
\
bin;C:
\
Program Files
\
Java
\
jdk1.5.0
\
jre
\
bin

Variable value (for Windows 7):




;C:
\
Program Files
\
Java
\
jdk1.6.0
\
bin;C:
\
Program Files
\
Java
\
jdk1.6.0
\
jre
\
bin

Variable value (for Windows 7 64 bit):



;C:
\
Program
Files (x86)
\
Java
\
jdk1.6.0
\
bin;C:
\
Program Files (x86)
\
Java
\
jdk1.6.0
\
jre
\
bin


Then click OK.


Next, copy the
RideNFlyProj
.ear

file (as provided in

folder

Deploy
/

to
deploy

folder in
your extracted
JBoss

folder:

JBoss/server/default/deploy/


Next double click

on
run.bat

in

JBoss/bin/

and wait until server finishes starting up.

Project name

Issue
:
x.y

Problem statement

Issue D
ate
:
dd/mm/yyyy


FIT
-
HCMUS

Page

19



Copy the link
http://localhost:8080/
RideNFly
Proj
-
war/
to your browser and Enter. The
project
website

will be loaded.