nuxeo5 - code source installation

29
Nuxeo EP 5 Nuxeo EP 5 Installation based on Installation based on the source code the source code Jean Marie PASCAL Jean Marie PASCAL [email protected] [email protected]

Upload: pascal-jean-marie

Post on 17-May-2015

3.638 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Nuxeo5 - Code Source Installation

Nuxeo EP 5Nuxeo EP 5

Installation based on Installation based on the source codethe source code

Jean Marie PASCALJean Marie [email protected]@gmail.com

Page 2: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 2

Install Nuxeo 5 version 5.1.3 based on the source Install Nuxeo 5 version 5.1.3 based on the source codecode

• Goal

• Steps JVM installation Subversion installation : Tortoise SVN Maven installation Ant installation JBoss AS installation Compilation et Deployment of Nuxeo 5 Source Code

Page 3: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 3

Configuration UsedConfiguration Used Operating System : Operating System :

Windows XP SP2Windows XP SP2

ProcessorProcessor Intel Core 2 DuoIntel Core 2 Duo

Computer memoryComputer memory 2Ghz (1Ghz Minimum Required)2Ghz (1Ghz Minimum Required)

Page 4: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 4

JVM InstallationJVM Installation

Download JDK last versionDownload JDK last versionResourceResource : : SUN websiteSUN website (Version 5 compulsory!!!!)(Version 5 compulsory!!!!)

jdk-1_5_0_14-windows-i586-pjdk-1_5_0_14-windows-i586-p

Page 5: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 5

JVM InstallationJVM Installation Open the downloaded file and follow the Open the downloaded file and follow the

installation wizard steps…installation wizard steps…

Page 6: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 6

JVM InstallationJVM Installation

Check the installationCheck the installationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Enter the command « java –version » Enter the command « java –version »

Check the above message is displayedCheck the above message is displayed

Page 7: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 7

JVM InstallationJVM Installation Check the installation of the environment variablesCheck the installation of the environment variables

Create a new one if the environment variable doesn’t exist.

Page 8: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 8

Define the environmentDefine the environmentvariables variables

Define the CLASSPATH variable: Define the CLASSPATH variable:

Define the PATH variable: Define the PATH variable:

Note : Refer to the previous slide to know how to create an Note : Refer to the previous slide to know how to create an environment variable.environment variable.

Page 9: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 9

Subversion InstallationSubversion Installation

Download Tortoise SVN last versionDownload Tortoise SVN last versionResourceResource : : TortoiseSVN.netTortoiseSVN.net

Open the downloaded file and follow the Open the downloaded file and follow the installation wizard…installation wizard…

Page 10: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 10

Get the sourcesGet the sources Create a folder Create a folder

Right click on the Right click on the created folder – select check-outcreated folder – select check-out

Fill the dialog Fill the dialog promptprompt

OKOK

Page 11: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 11

Get the sourcesGet the sources Wait until the download operation is completeWait until the download operation is complete

Then check the folder’s content…Then check the folder’s content…

Page 12: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 12

Maven InstallationMaven Installation

Download Maven last versionDownload Maven last versionResourceResource : : Maven.apache.orgMaven.apache.org

Unzip the downloaded file in the following folder Unzip the downloaded file in the following folder C:\opt\C:\opt\

Then you get MAVEN_HOME : Then you get MAVEN_HOME : C:\opt\apache-maven-2.0.8C:\opt\apache-maven-2.0.8

Page 13: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 13

Define the Define the environment variablesenvironment variables

Define MAVEN_HOME variable: Define MAVEN_HOME variable:

Define MAVEN_OPTS variable: Define MAVEN_OPTS variable:

Define PATH variable:Define PATH variable:

Page 14: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 14

Maven InstallationMaven Installation

Check the installationCheck the installationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Type the command « mvn –v »Type the command « mvn –v »

Check the above message is displayedCheck the above message is displayed

Page 15: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 15

Ant InstallationAnt Installation

Download Ant last versionDownload Ant last versionResourceResource : : ant.apache.organt.apache.org

Unzip the downloaded file in the following folderUnzip the downloaded file in the following folderC:\opt\C:\opt\

Then you get ANT_HOME : Then you get ANT_HOME : C:\opt\apache-ant-1.7.0C:\opt\apache-ant-1.7.0

Page 16: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 16

Define theDefine theenvironment variablesenvironment variables

Define ANT_HOME variable: Define ANT_HOME variable:

Define ANT_OPTS variable: Define ANT_OPTS variable:

Define PATH variable:Define PATH variable:

Page 17: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 17

Ant InstallationAnt Installation

Check the installationCheck the installationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Type the command « ant –version » Type the command « ant –version »

Check the above message is displayedCheck the above message is displayed

Page 18: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 18

jBoss AS InstallationjBoss AS Installation

Download jBoss AS version 4.0.5Download jBoss AS version 4.0.5ResourceResource : : SourceForge.netSourceForge.net

Unzip the downloaded file in the following folderUnzip the downloaded file in the following folderC:\opt\C:\opt\

Then you get JBOSS_HOME : Then you get JBOSS_HOME : C:\opt\jbossC:\opt\jboss

Page 19: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 19

jBoss AS InstallationjBoss AS Installation Open the downloaded file and follow the Open the downloaded file and follow the

installation wizard instructions…installation wizard instructions…

Page 20: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 20

jBoss AS InstallationjBoss AS Installation

In the JBOSS_HOME\bin folderIn the JBOSS_HOME\bin folderEdit the file called « run.bat »Edit the file called « run.bat »Manually add the following lineManually add the following line

Page 21: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 21

Sources CompilationSources Compilation Open the folder where all the sources are storedOpen the folder where all the sources are stored

Remove the extension « .sample » from the name Remove the extension « .sample » from the name of the « build.properties » file.of the « build.properties » file.

Edit the file and define the path to the Jboss server Edit the file and define the path to the Jboss server as shown belowas shown below

Page 22: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 22

Sources CompilationSources CompilationOpen the Command Prompt Open the Command Prompt

Start Menu Start Menu Run… Run…

Open the folder where all the sources are storedOpen the folder where all the sources are storedType the command: Type the command: ant patchant patch

Wait until the following message is displayedWait until the following message is displayed

Page 23: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 23

Sources CompilationSources CompilationOpen the folder where all the sources are storedOpen the folder where all the sources are stored

Type the command: Type the command: mvn compilemvn compileWait until the following message is displayedWait until the following message is displayed (Note this can last a while depending on the configuration (Note this can last a while depending on the configuration

of your machine)of your machine)

Finally type the command: Finally type the command: ant deployant deployWait until the same end message is displayed…Wait until the same end message is displayed…Note: if an Java.heap.size – type error occurs during the compilation, change the Note: if an Java.heap.size – type error occurs during the compilation, change the

value of the environment variable MAVEN_OPTS to « -Xmx1024m –Xms512m »value of the environment variable MAVEN_OPTS to « -Xmx1024m –Xms512m » And that’s it…

Nothing more to do !!

Page 24: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 24

Well…nearly…Well…nearly… An error might be raised concerning the application.xml file. An error might be raised concerning the application.xml file.

This error notices this file is not in the following folder:This error notices this file is not in the following folder:

JBOSS_HOME\server\default\deploy\nuxeo.ear\META-INFJBOSS_HOME\server\default\deploy\nuxeo.ear\META-INF

To solve this problem, you can copy the To solve this problem, you can copy the application.xmlapplication.xml and and jboss-app.xml files jboss-app.xml files from the following folderfrom the following folder

NUXEO_HOME\server\default\deploy\nuxeo.ear\META-INFNUXEO_HOME\server\default\deploy\nuxeo.ear\META-INF(you get this folder from the basic installation) (you get this folder from the basic installation)

Paste them into the following folderPaste them into the following folder

JBOSS_HOME\server\default\deploy\nuxeo.ear\META-INFJBOSS_HOME\server\default\deploy\nuxeo.ear\META-INF

Page 25: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 25

Start the applicationStart the application In JBoss AS installation folderIn JBoss AS installation folder

Note : C:\opt\jboss= JBOSS_HOMENote : C:\opt\jboss= JBOSS_HOME

Folder : JBOSS_HOME/binFolder : JBOSS_HOME/binRun the file called « run.bat » Run the file called « run.bat » And be patient for a couple of minutes…And be patient for a couple of minutes…

Page 26: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 26

Start the applicationStart the application Once the following message is displayedOnce the following message is displayed

Open a web browserOpen a web browser Link : Link : http://localhost:8080/nuxeo/http://localhost:8080/nuxeo/

Login : AdministratorLogin : AdministratorPassword : AdministratorPassword : Administrator

Page 27: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 27

Enjoy it!

Page 28: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 28

Page 29: Nuxeo5 - Code Source Installation

12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 29

For further information…For further information…Documentation and ScreencastsDocumentation and Screencasts

http://www.nuxeo.org/sections/documentation/http://www.nuxeo.org/sections/documentation/

More about installationMore about installation http://doc.nuxeo.org/current/reference/html/nuxeo-book.htmlhttp://doc.nuxeo.org/current/reference/html/nuxeo-book.html

WebsiteWebsite http://www.nuxeo.org/http://www.nuxeo.org/ http://www.nuxeo.com/http://www.nuxeo.com/