You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/09/19 18:41:00 UTC
svn commit: r447902 - in /incubator/servicemix/site/sm30ug:
3-installation.html importing-servicemix-into-eclipse.html
Author: chirino
Date: Tue Sep 19 09:41:00 2006
New Revision: 447902
URL: http://svn.apache.org/viewvc?view=rev&rev=447902
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/sm30ug/3-installation.html
incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html
Modified: incubator/servicemix/site/sm30ug/3-installation.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/3-installation.html?view=diff&rev=447902&r1=447901&r2=447902
==============================================================================
--- incubator/servicemix/site/sm30ug/3-installation.html (original)
+++ incubator/servicemix/site/sm30ug/3-installation.html Tue Sep 19 09:41:00 2006
@@ -66,7 +66,7 @@
<P><B>Hardware:</B></P>
<UL>
<LI>31 MB of free disk space for the ServiceMix 3.0.x binary distribution.</LI>
- <LI>8 MB of free disk space for the ServiceMix 3.0.x source or developer's distributions.</LI>
+ <LI>8 MB of free disk space for the ServiceMix 3.0.x source or developer's distributions respectively around 25 MB for SVN checkout. The Maven build requires roughly 250 MB disk space and for the dependencies Maven downloads during building further 200 MB are required. As a lot of small files are produced, the exact space demands depend greatly on your cluster utilisation ratio.</LI>
</UL>
@@ -228,7 +228,8 @@
where [servicemix_install_dir] is the directory in which ServiceMix was installed.
mvn -Dprofile=step1
mvn -Dprofile=step2</PRE>
-</DIV></DIV></LI>
+</DIV></DIV>
+<P>Both steps take around 10 to 15 minutes.</P></LI>
<LI>Uncompress the distribution that has just been created
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">cd [servicemix_install_dir]/apache-servicemix/target
@@ -371,8 +372,34 @@
<DIV id="site-footer">
Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A>,
last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg Dembowski</A> on Sep 19, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13489&originalId=13756">view change</A>)
-
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13489&originalId=13757">view change</A>)
+ <SPAN id="show" class="inline-control-link"><A href="" onclick="showComment(); return false;">show comment</A></SPAN>
+ <SPAN id="hide" class="inline-control-link" style="display:none;"><A href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
+ <DIV id="versionComment" class="noteMacro" style="display:none; padding: 5px;">
+ <B>Comment:</B>
+ INS time and updated space requirements<BR>
+ <SPAN class="smalltext"><A href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=13489">View page history</A></SPAN>
+ </DIV>
+
+ <SCRIPT>
+ var show = document.getElementById('show');
+ var hide = document.getElementById('hide');
+ var versionComment = document.getElementById('versionComment');
+
+ function showComment(){
+ show.style.display = 'none';
+ hide.style.display = 'inline';
+ versionComment.style.display = 'block';
+ }
+
+ function hideComment(){
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ versionComment.style.display = 'none';
+ }
+
+ </SCRIPT>
+
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=13489">edit page</A>)
</DIV>
Modified: incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html?view=diff&rev=447902&r1=447901&r2=447902
==============================================================================
--- incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html (original)
+++ incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html Tue Sep 19 09:41:00 2006
@@ -27,8 +27,8 @@
<P><B>Hardware:</B></P>
<UL>
- <LI>52 MB of free disk space for the ServiceMix 3.x binary distribution.</LI>
- <LI>18 MB of free disk space for the ServiceMix 3.x source or developer's distributions.</LI>
+ <LI>Around 25 MB of free disk space for the ServiceMix 3.x sources.</LI>
+ <LI>Roughly 250 MB of free disk space for the complete build (Eclipse plugin and ServiceMix binaries) produced by Maven and further 200 MB for the dependencies Maven downloads during building. As a lot of small files are produced, the exact space demands depend greatly on your cluster utilisation ratio.</LI>
</UL>
@@ -43,7 +43,7 @@
<UL>
<LI>Java Developer Kit (JDK) 1.5.x (Java 5) for compiling/building.</LI>
<LI>The JAVA_HOME environment variable must be set to the directory where the JDK is installed, e.g., <TT>c:\Program Files\jsdk.1.5.x</TT></LI>
- <LI>Maven 2 or greater.</LI>
+ <LI>Maven 2.0.4 or greater.</LI>
<LI>Eclipse 3.x or greater.</LI>
</UL>
@@ -60,10 +60,27 @@
<LI>Open a command line and change to the source root folder. Execute the following Maven 2 command to ready the project for Eclipse. It will take around two minutes.
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">mvn eclipse:eclipse</PRE>
-</DIV></DIV></LI>
+</DIV></DIV>
+<P>In case you did never use Maven before and get errors stating that some plugins or the like are missing, like for example:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">[INFO] Searching repository <SPAN class="code-keyword">for</SPAN> plugin with prefix: 'eclipse'.
+Downloading: http:<SPAN class="code-comment">//mirrors.sunsite.dk/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.0-incubating/jbi-maven-plugin-3.0-incubating.jar
+</SPAN>[WARNING] Unable to get resource from repository central (http:<SPAN class="code-comment">//repo1.maven.org/maven2)
+</SPAN>[INFO] ------------------------------------------------------------------------
+[ERROR] BUILD ERROR
+[INFO] ------------------------------------------------------------------------
+[INFO] Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository</PRE>
+</DIV></DIV>
+<P>execute the commands stated under "Build ServiceMix..." in the chapters <A href="3-installation.html#3.Installation-WindowsSourceInstallation" title="Windows Source Installation on 3. Installation">Windows</A> / <A href="3-installation.html#3.Installation-UnixSourceInstallation" title="Unix Source Installation on 3. Installation">Unix</A> source installation:</P></LI>
</OL>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">mvn -Dprofile=step1
+mvn -Dprofile=step2</PRE>
+</DIV></DIV>
+<P>and then retry.</P>
+
<H2><A name="ImportingServiceMixintoEclipse-InEclipse%3A"></A>In Eclipse:</H2>
<OL>
@@ -201,7 +218,8 @@
<BR clear="all"></LI>
<LI>When S:\ is your servicemix root directory, select/enter<BR>
-<EM>S:\servicemix-components\target\classes</EM><BR clear="all">
+<EM>S:\servicemix-components\target\classes</EM>
+<BR clear="all">
<BR clear="all">
Why this directory? Well, have a closer look at the error message presented above. The package <EM>org.apache.servicemix.components</EM> indicates the location of the missing bean <EM>FileWriter</EM> is <EM>servicemix-components</EM>, and as we need an executable file, the <EM>target\classes</EM> subdirectory is where to look. Of course we shall proof that <EM>FileWriter</EM> really is located here, so execute <EM>dir /s FileWriter.class</EM> in the given directory and watch the output.
@@ -226,7 +244,6 @@
<H3><A name="ImportingServiceMixintoEclipse-Oneortwolinesoferrormessages"></A>One or two lines of error messages</H3>
-
<P>In case you see an error message like</P>
<DIV class="preformatted"><DIV class="preformattedContent">
<PRE>java.lang.NoClassDefFoundError: org/apache/servicemix/Main
@@ -239,14 +256,11 @@
</DIV></DIV>
<P>in the source's root directory. This will take roughly 10 to 15 minutes. Maybe you prefer to reference a binary distribution (see "Add Classpath Variables" above).</P>
-
<H3><A name="ImportingServiceMixintoEclipse-Lengthyerrormessages%28stacktrace%29"></A>Lengthy error messages (stack trace)</H3>
-
<P>Scan the messages in the console window from top to bottom until you find one stating a missing component, indicated by a package name - in case it's a "<EM>java.lang.NoClassDefFoundError</EM>" or "<EM>java.lang.ClassNotFoundException</EM>", the missing class is printed directly after that error string, whereas for instance "<EM>Error creating bean with name</EM>" is demanding slightly more search.</P>
<P>Messages may look like one of the following</P>
-
<DIV class="preformatted"><DIV class="preformattedContent">
<PRE>Error 'Bean class [org.apache.servicemix.components.file.FileWriter] not found'
</PRE>
@@ -266,30 +280,7 @@
</UL>
-<P>Redo this until no class/JAR is missing any more.</P>
-
-<H1><A name="ImportingServiceMixintoEclipse-ConfiguringEclipse"></A>Configuring Eclipse</H1>
-
-
-<H2><A name="ImportingServiceMixintoEclipse-UpdatingEclipsefromTrunk"></A>Updating Eclipse from Trunk</H2>
-
-<OL>
- <LI>Browse the "Project" menu and select "Properties"
-<BR clear="all">
-<BR clear="all"> <SPAN class="error">Unable to render embedded object: File (ProjectProperties.JPG) not found.</SPAN><BR clear="all">
-<BR clear="all"></LI>
- <LI>Click "Java BuildPath" and under the "Libraries" tab click "Add External Jar".
-<BR clear="all">
-<BR clear="all"> <SPAN class="error">Unable to render embedded object: File (JavaBuildPathLibraries.JPG) not found.</SPAN><BR clear="all">
-<BR clear="all"></LI>
- <LI>Browse to the incubator-servicemix-3.0-SNAPSHOT.jar location:<BR>
-\target\incubator-servicemix-3.0-SNAPSHOT\bin\incubator-servicemix-3.0-SNAPSHOT and Click "Open" then "OK" in the "Properties" screen
-<BR clear="all">
-<BR clear="all"> <SPAN class="error">Unable to render embedded object: File (JarSelection.JPG) not found.</SPAN><BR clear="all">
-<BR clear="all"></LI>
- <LI>Allow some time for the individual projects to build.</LI>
-</OL>
-</DIV>
+<P>Redo this until no class/JAR is missing any more.</P></DIV>
</DIV>
</TD>
</TR>
@@ -298,13 +289,13 @@
</DIV>
<DIV id="site-footer">
Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg Dembowski</A>,
- last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg Dembowski</A> on Sep 18, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13740&originalId=13754">view change</A>)
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg Dembowski</A> on Sep 19, 2006
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13740&originalId=13758">view change</A>)
<SPAN id="show" class="inline-control-link"><A href="" onclick="showComment(); return false;">show comment</A></SPAN>
<SPAN id="hide" class="inline-control-link" style="display:none;"><A href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
<DIV id="versionComment" class="noteMacro" style="display:none; padding: 5px;">
<B>Comment:</B>
- INS: Troubleshooting<BR>
+ HDD space requirements refined. Deleted last section as Guillaume and me se no sense in using JAR instead of .class<BR>
<SPAN class="smalltext"><A href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=13740">View page history</A></SPAN>
</DIV>