You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2009/11/17 19:46:10 UTC
[2.x] Strange build errors
Hi,
I'm seeing the following errors even I'm sure my JAVA_HOME is pointing to
the "C:\Program Files\Java\jdk1.6.0_13". But running the test cases alone
works. It seems that JAVA_HOME got changed by a module in the middle of the
build.
Thanks,
Raymond
[INFO] Error for project: Apache Tuscany SCA iTest Distribution
binding-ws-calcu
lator (during install)
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
exe
cuting this line:
C:\Tuscany-2.x\java\sca\itest\distribution\binding-ws-calculator\build.xml:36:
T
he following error occurred while executing this line:
C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\binding-ws-calculator\build.xml:37:
Una
ble to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Apache Tuscany SCA iTest Distribution
calculator-rmi (
during install)
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
exe
cuting this line:
C:\Tuscany-2.x\java\sca\itest\distribution\calculator-rmi\build.xml:38:
The following error occurred while executing this line:
C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\calculator-rmi-service\build.xml:38:
Un
able to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
The following error occurred while executing this line:
C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\calculator-rmi-reference\build.xml:38:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Apache Tuscany SCA iTest Distribution
implementation-j
ava-calculator (during install)
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
exe
cuting this line:
C:\Tuscany-2.x\java\sca\itest\distribution\implementation-java-calculator\build.
xml:36: The following error occurred while executing this line:
C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\implementation-java-calculator\build.xm
l:37: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
---
Raymond Feng
Apache Tuscany PMC Member: http://tuscany.apache.org
Co-author of Tuscany In Action (A book on Tuscany SCA):
http://tuscanyinaction.com/
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
I see the same here Raymond so it's not specific to your
configuration. Haven't investigated yet.
Simon
Re: [2.x] Strange build errors
Posted by Raymond Feng <en...@gmail.com>.
Your fix assumes there is an "ant" executable installed on the path. I don't
think it is safe.
Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" <si...@googlemail.com>
Sent: Friday, November 20, 2009 10:04 AM
To: <de...@tuscany.apache.org>
Subject: Re: [2.x] Strange build errors
> Quite possibly. I just committed my fix. Feel free to revert if you
> find what causes the original problem.
>
> This may be of some help. I found that I could comment everything out
> in the build before itest/distribution and still get the error when
> compiling from the top level. Made life a little easier.
>
> Regards
>
> Simon
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
Seems to be working OK in my build. Thanks Raymond.
Simon
Re: [2.x] Strange build errors
Posted by Raymond Feng <en...@gmail.com>.
The problem is now fixed under [1]. I'll revert your changes.
Apparently, web-javascript-dojo module is missing a workaround for [2].
[1] http://svn.apache.org/viewvc?rev=882681&view=rev
[2] http://jira.codehaus.org/browse/MNG-1323
Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" <si...@googlemail.com>
Sent: Friday, November 20, 2009 10:04 AM
To: <de...@tuscany.apache.org>
Subject: Re: [2.x] Strange build errors
> Quite possibly. I just committed my fix. Feel free to revert if you
> find what causes the original problem.
>
> This may be of some help. I found that I could comment everything out
> in the build before itest/distribution and still get the error when
> compiling from the top level. Made life a little easier.
>
> Regards
>
> Simon
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
Quite possibly. I just committed my fix. Feel free to revert if you
find what causes the original problem.
This may be of some help. I found that I could comment everything out
in the build before itest/distribution and still get the error when
compiling from the top level. Made life a little easier.
Regards
Simon
Re: [2.x] Strange build errors
Posted by Raymond Feng <en...@gmail.com>.
Could it be introduced by something this is recently added to the build,
such as the shades? I'm trying to isolate now.
--------------------------------------------------
From: "Simon Laws" <si...@googlemail.com>
Sent: Friday, November 20, 2009 9:22 AM
To: <de...@tuscany.apache.org>; <an...@apache.org>
Subject: Re: [2.x] Strange build errors
> After much messing about the solution to this seems to be to replace
> the maven-antrun-plugin with the exec-maven-plugin. Not sure what's
> actually behind the problem or, indeed, why it just started to happen
> all of a sudden.
>
> Simon
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
After much messing about the solution to this seems to be to replace
the maven-antrun-plugin with the exec-maven-plugin. Not sure what's
actually behind the problem or, indeed, why it just started to happen
all of a sudden.
Simon
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
Spoke too soon! On the repeat run it came back :-(
Simon
Re: [2.x] Strange build errors
Posted by Simon Laws <si...@googlemail.com>.
I got a completely clean 2.x build this morning for the first time in
a while. I'll set off another one over lunch to see if I can
replicate.
Simon
Re: [2.x] Strange build errors
Posted by ant elder <an...@gmail.com>.
Did anyone ever find any more on this problem? I get it too, it seems
a bit random and happens on different modules. It only seems to happen
for me when running a build from the top, building modules, itests,
samples etc separately is fine.
...ant
On Tue, Nov 17, 2009 at 6:46 PM, Raymond Feng <en...@gmail.com> wrote:
> Hi,
>
> I'm seeing the following errors even I'm sure my JAVA_HOME is pointing to
> the "C:\Program Files\Java\jdk1.6.0_13". But running the test cases alone
> works. It seems that JAVA_HOME got changed by a module in the middle of the
> build.
>
> Thanks,
> Raymond
>
> [INFO] Error for project: Apache Tuscany SCA iTest Distribution
> binding-ws-calcu
> lator (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> exe
> cuting this line:
> C:\Tuscany-2.x\java\sca\itest\distribution\binding-ws-calculator\build.xml:36:
> T
> he following error occurred while executing this line:
> C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
> HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\binding-ws-calculator\build.xml:37:
> Una
> ble to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error for project: Apache Tuscany SCA iTest Distribution
> calculator-rmi (
> during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> exe
> cuting this line:
> C:\Tuscany-2.x\java\sca\itest\distribution\calculator-rmi\build.xml:38:
> The following error occurred while executing this line:
> C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
> HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\calculator-rmi-service\build.xml:38:
> Un
> able to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
> The following error occurred while executing this line:
> C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
> HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\calculator-rmi-reference\build.xml:38:
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error for project: Apache Tuscany SCA iTest Distribution
> implementation-j
> ava-calculator (during install)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> exe
> cuting this line:
> C:\Tuscany-2.x\java\sca\itest\distribution\implementation-java-calculator\build.
> xml:36: The following error occurred while executing this line:
> C:\Tuscany-2.x\java\sca\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPS
> HOT-dir\tuscany-sca-2.0-SNAPSHOT\samples\implementation-java-calculator\build.xm
> l:37: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jdk1.6.0_13\jre"
>
>
> ---
> Raymond Feng
> Apache Tuscany PMC Member: http://tuscany.apache.org
> Co-author of Tuscany In Action (A book on Tuscany SCA):
> http://tuscanyinaction.com/
>
>
>