Hi Jim,

What about editing your build.sh and adding a temporary new JAVA_HOME for
the build ? Someone may correct me if this is not ok.

Something like :-

# ----- Use this preferred JAVA_HOME instead. Put this above 'Use Ant...'
OLD_JAVA_HOME="$JAVA_HOME"
JAVA_HOME=/path/to/preferred_java
export JAVA_HOME

Then

# ----- Restore JAVA_HOME. Put this above 'Restore CLASSPATH...'
JAVA_HOME="$OLD_JAVA_HOME"
export JAVA_HOME
unset OLD_JAVA_HOME

Like I said, not sure if it will work, but worth a go.(?)

Gav...

> -----Original Message-----
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Friday, 14 April 2006 10:58 AM
> To: [email protected]
> Subject: Re: Build Fails
> 
> >From: Michael Wechner <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: Build Fails
> >Date: Thu, 13 Apr 2006 13:56:57 +0200
> >
> >btw, I have added a WARNING to the build process re other Java versions
> >than 1.4, but of
> >course it allows one to try building it nevertheless ...
> >
> >If you want to get rid of this warning message them you might want to
> >change the target.vm
> >within src/targets/properties-build.xml
> >
> >Michi
> >
> >
> >Gav.... wrote:
> >
> >>Ok sorted it ...
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: Gav.... [mailto:[EMAIL PROTECTED]
> >>>Sent: Monday, 10 April 2006 8:34 PM
> >>>To: [email protected]
> >>>Subject: RE: Build Fails
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Michael Wechner [mailto:[EMAIL PROTECTED]
> >>>>Sent: Monday, 10 April 2006 4:52 PM
> >>>>To: [email protected]
> >>>>Subject: Re: Build Fails
> >>>>
> >>>>Gav... wrote:
> >>>>
> >>>>
> >>>>
> >>>>><quote who="Jim Douglas">
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>I downloaded to my Linux box from subversion and I can't get the
> >>>>>>./build.sh
> >>>>>>to work.
> >>>>>>
> >>>>>>I get this error,
> >>>>>>Building jar
> >>>>>>:/root/lenya-1.4.x/externals/cocoon_2_1_x/build/cocoon-2.1.10-
> >>>>>>
> >>>>>>
> >>>>dev/blocks/captcha-block.jar
> >>>>
> >>>>
> >>>>>>BUILD FAILED
> >>>>>>/root/lenya-1.4.x/src/targets/init-build.xml:47 : The following
> error
> >>>>>>occurred while executing this line:
> >>>>>>/root/lenya-1.4.x/src/targets/init-build.xml:56 : The following
> error
> >>>>>>occurred while executing this line:
> >>>>>>/root/lenya-1.4.x/src/externals/cocoon_2_1_x/tools/targets/compile-
> >>>>>>
> >>>>>>
> >>>>build.xml:254
> >>>>
> >>>>
> >>>>>>: The following error occurred while executing this line:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>java.lang.NoClassDefFoundError: org/aopache/xpath/XPathAPI
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>it seems like Cocoon was broken ...
> >>>>
> >>>>I just did another update and a fresh/clean install:
> >>>>
> >>>>svn up
> >>>>./build.sh clean-all
> >>>>./configure.sh
> >>>>./build.sh
> >>>>./lenya.sh
> >>>>
> >>>>HTH
> >>>>
> >>>>Michi
> >>>>
> >>>>
> >>>Thanks for the reply, it has not worked for me however.
> >>>I did as above but again got the same java.lang.NoClassDefFoundError:
> >>>org/apache/xpath/XPathAPI error and then the Build Fails at that point.
> >>>
> >>>So I deleted the whole thing and re-downloaded the whole lot from SVN
> and
> >>>did a configure first and then build  - with the same failure results.
> >>>
> >>>
> >>>
> >>>So people know my environment and steps I did :-\
> >>>
> >>>Windows XP SP2.
> >>>
> >>>1) - I downloaded using svn co
> >>>http://svn.apache.org/repos/asf/lenya/trunk
> >>>lenya-1.4.x and this created the lenya-1.4.x directory directly off off
> >>>root
> >>>D: Drive.
> >>>
> >>>2) - I then executed configure.bat. I accepted all the defaults by
> >>>answering
> >>>'L' to every question. This creates a 'local.build.properties' file in
> >>>the
> >>>$LENYA_HOME.
> >>>
> >>>3) - It then says to " Copy
> >>>$LENYA_HOME/src/cocoon/local.blocks.properties
> >>>and local.build.properties to $COCOON_HOME."
> >>>
> >>>So I did what it says, but what it says is ambiguous. Copy
> >>>local.block.properties from /src/cocoon into $COCOON_HOME, fine did
> that.
> >>>Next I copied the local.build.properties also from /src/cocoon/ into
> >>>$COCOON_HOME. But what about the 'other' local.build.properties file we
> >>>just
> >>>created into $LENYA_HOME ??
> >>>
> >>>4) - I then did build.bat, and this is where I am at, with above build
> >>>failure.
> >>>
> >>>What to do next?
> >>>
> >>>
> >>
> >>Well, what to do next is check for patches to problems. Doing that made
> me
> >>realise that I am using Java 1.5 and this has some Issues at the moment.
> >>
> >>So for the benefit of others reading this and might help Jim also :-
> >>
> >>http://issues.apache.org/bugzilla/show_bug.cgi?id=32923 - Informational
> >>
> >>http://issues.apache.org/bugzilla/show_bug.cgi?id=33966 - though I
> haven't
> >>applied this one yet, will see if I need to later on.
> >>
> >>http://issues.apache.org/bugzilla/show_bug.cgi?id=34191 - Apply the
> >>relevant
> >>patch to include Xalan in ClassPath.
> >>
> >>1) - I did not include all of the patch however, as it hard codes
> >>..\cocoon-2.1.8 as the COCOON_HOME, Lenya 1.4 (or my copy at least) uses
> >>cocoon_2_1_x for COCOON_HOME, instead of changing it however I left this
> >>line out and set COCOON_HOME in my Environment Variables instead.
> >>
> >>2) - I did add
> >>
> >>for %%i in (%COCOON_ENDORSED_DIR%\*.jar) do call tools\bin\appendcp.bat
> >>%%i
> >>
> >>... below the other for line.
> >>
> >>3) - I did add:-
> >>
> >>call %ANT_HOME%\bin\ant -Djava.endorsed.dirs=%COCOON_ENDORSED_DIR% -
> logger
> >>org.apache.tools.ant.NoBannerLogger -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
> >>
> >>... and REM-ed out the old line.
> >>
> >>4) Saved new build.bat, did a 'build clean-all', 'build' and it was a
> >>success.
> >>
> >>Thanks, now to play :)
> >>
> >>Gav...
> >>
> >>
> >>
> >>
> >>>Thanks
> >>>
> >>>Gav...
> >>>
> >>>
> >>>
> >>>
> >>>>>Just noticed this probable path error : org/aopache/
> >>>>>.............................................^.....
> >>>>>
> >>>>>Extra 'o' in there, will check if that was in my failure too when
> >>>>>I get back.
> >>>>>
> >>>>>Gav...
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>I have followed the directions available, suggestions greatly
> >>>>>>appreciated...
> >>>>>>
> >>>>>>Is ther a WAR file availabe for Lenya 1.4.x?
> >>>>>>
> >>>>>>
> >>>>>>Jim
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>--------------------------------------------------------------------
> -
> >>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>--
> >>>>Michael Wechner
> >>>>Wyona      -   Open Source Content Management   -    Apache Lenya
> >>>>http://www.wyona.com                      http://lenya.apache.org
> >>>>[EMAIL PROTECTED]                        [EMAIL PROTECTED]
> >>>>+41 44 272 91 61
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>>--
> >>>>No virus found in this incoming message.
> >>>>Checked by AVG Free Edition.
> >>>>Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 8/04/2006
> >>>>
> >>>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>--
> >>>No virus found in this incoming message.
> >>>Checked by AVG Free Edition.
> >>>Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 8/04/2006
> >>>
> >>>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >--
> >Michael Wechner
> >Wyona      -   Open Source Content Management   -    Apache Lenya
> >http://www.wyona.com                      http://lenya.apache.org
> >[EMAIL PROTECTED]                        [EMAIL PROTECTED]
> >+41 44 272 91 61
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> I just installed JPackage and when I type java -version I see
> java version "1.4.2"
> 
> I still get the same error.
> 
> Where does the build look for JAVA?  I guess it look at JAVA_HOME but I
> would rather change where the build looks and not JAVA_HOME.
> 
> Jim
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.1/311 - Release Date: 13/04/2006




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to