nuxeo5 - code source installation
TRANSCRIPT
Nuxeo EP 5Nuxeo EP 5
Installation based on Installation based on the source codethe source code
Jean Marie PASCALJean Marie [email protected]@gmail.com
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
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)
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
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…
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
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.
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.
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…
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
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…
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
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:
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
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
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:
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
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
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…
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
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
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
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 !!
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
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…
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
12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 27
Enjoy it!
12/02/2008 http://opensourceecm.blogspot.com/search/label/Nuxeo 28
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/