You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Nirmal Fernando <ni...@gmail.com> on 2011/07/02 09:35:43 UTC

Compile error in trunk sca-java-2.x

Hi,

FYI: I tried building the trunk, it failed with following error.

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA iTest Base
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [remote-resources:process {execution: default}]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA iTest Base Dependencies
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/src/main/resources
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [dependency:copy-dependencies {execution: copy}]
[INFO] Copying classes to
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error copying artifact from
/media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes

Embedded error:
/media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is
a directory)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error copying
artifact from
/media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying
artifact from
/media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
    at
org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
    at
org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
    at
org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    ... 17 more
Caused by: java.io.FileNotFoundException:
/media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is
a directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
    at
org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189)
    ... 21 more


-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by ant elder <an...@gmail.com>.
On Sat, Jul 2, 2011 at 8:35 AM, Nirmal Fernando <ni...@gmail.com> wrote:
> Hi,
>
> FYI: I tried building the trunk, it failed with following error.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Tuscany SCA iTest Base
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Tuscany SCA iTest Base Dependencies
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/src/main/resources
> [INFO] Copying 0 resource
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [dependency:copy-dependencies {execution: copy}]
> [INFO] Copying classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error copying artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>
> Embedded error:
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is
> a directory)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error copying
> artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying
> artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>     at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
>     at
> org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
>     at
> org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     ... 17 more
> Caused by: java.io.FileNotFoundException:
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is
> a directory)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.<init>(FileInputStream.java:106)
>     at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
>     at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189)
>     ... 21 more
>
>

I can't see what could be going wrong from that log, is that a full
build running from the top trunk folder and does the problem happen if
you do the build just in the testing\itest\base\dependencies
directory?

   ...ant

   ...ant

Re: Compile error in trunk sca-java-2.x

Posted by Luciano Resende <lu...@gmail.com>.
Is this really blocking you or do you need this module for your
development ? Otherwise you can do a mvn -fae and let maven continue
and only report errors at the end.


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by Nirmal Fernando <ni...@gmail.com>.
I am running on Ubuntu 10.04.

On Mon, Jul 4, 2011 at 9:19 PM, Simon Laws <si...@googlemail.com>wrote:

> On Mon, Jul 4, 2011 at 4:29 PM, Mike Edwards
> <mi...@gmail.com> wrote:
> > Nirmal,
> >
> > On my machine, that testcase works fine for me - I do not see the error
> that
> > you see.
> >
> > My local copy was updated ~3 hours ago and I am not missing any recent
> > changes relating to that testcase.
> >
> > I am running on Windows XP.
> >
> >
> > Yours,  Mike.
> >
> > On 04/07/2011 16:00, Nirmal Fernando wrote:
> >>
> >>
> >> "mvn install" on trunk fails with :
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> >> [INFO] [build-helper:add-test-source {execution: add-source}]
> >> [INFO] Test Source directory:
> >>
> >>
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source
> >> added.
> >> [INFO] [remote-resources:process {execution: default}]
> >> [INFO] [resources:resources {execution: default-resources}]
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] Copying 7 resources
> >> [INFO] Copying 1 resource
> >> [INFO] Copying 3 resources
> >> [INFO] [jaxws:wsimport {execution: wsimport1}]
> >> [INFO] Processing:
> >>
> >>
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl
> >> [INFO] jaxws:wsimport args: [-s,
> >>
> >>
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source,
> >> -d,
> >>
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes,
> >> -verbose, -p,
> >> org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target,
> >> 2.1,
> >> -Xnocompile,
> >>
> >>
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl]
> >> parsing WSDL...
> >>
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> org.codehaus.classworlds.NoSuchRealmException: plexus.core
> >>     at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
> >>     at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
> >>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>
> >> --
> >> Best Regards,
> >> Nirmal
> >>
> >> C.S.Nirmal J. Fernando
> >> Department of Computer Science & Engineering,
> >> Faculty of Engineering,
> >> University of Moratuwa,
> >> Sri Lanka.
> >>
> >> Blog: http://nirmalfdo.blogspot.com/
> >>
> >
> >
>
> Am getting a clean build (apart from the compliance policy test) on
> Windows XP, Windows 7 and Redhat with...
>
> MAVEN_OPTS='-Xmx1024m -Xms1024m -XX:MaxPermSize=512m'
>
> Regards
>
> Simon
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>



-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by Simon Laws <si...@googlemail.com>.
On Mon, Jul 4, 2011 at 4:29 PM, Mike Edwards
<mi...@gmail.com> wrote:
> Nirmal,
>
> On my machine, that testcase works fine for me - I do not see the error that
> you see.
>
> My local copy was updated ~3 hours ago and I am not missing any recent
> changes relating to that testcase.
>
> I am running on Windows XP.
>
>
> Yours,  Mike.
>
> On 04/07/2011 16:00, Nirmal Fernando wrote:
>>
>>
>> "mvn install" on trunk fails with :
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>> [INFO] [build-helper:add-test-source {execution: add-source}]
>> [INFO] Test Source directory:
>>
>> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source
>> added.
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 7 resources
>> [INFO] Copying 1 resource
>> [INFO] Copying 3 resources
>> [INFO] [jaxws:wsimport {execution: wsimport1}]
>> [INFO] Processing:
>>
>> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl
>> [INFO] jaxws:wsimport args: [-s,
>>
>> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source,
>> -d,
>> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes,
>> -verbose, -p,
>> org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target,
>> 2.1,
>> -Xnocompile,
>>
>> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl]
>> parsing WSDL...
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> org.codehaus.classworlds.NoSuchRealmException: plexus.core
>>     at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
>>     at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
>>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> C.S.Nirmal J. Fernando
>> Department of Computer Science & Engineering,
>> Faculty of Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>

Am getting a clean build (apart from the compliance policy test) on
Windows XP, Windows 7 and Redhat with...

MAVEN_OPTS='-Xmx1024m -Xms1024m -XX:MaxPermSize=512m'

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Re: Compile error in trunk sca-java-2.x

Posted by Mike Edwards <mi...@gmail.com>.
Nirmal,

On my machine, that testcase works fine for me - I do not see the error that you see.

My local copy was updated ~3 hours ago and I am not missing any recent changes relating to that 
testcase.

I am running on Windows XP.


Yours,  Mike.

On 04/07/2011 16:00, Nirmal Fernando wrote:
>
>
> "mvn install" on trunk fails with :
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [build-helper:add-test-source {execution: add-source}]
> [INFO] Test Source directory:
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source
> added.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 7 resources
> [INFO] Copying 1 resource
> [INFO] Copying 3 resources
> [INFO] [jaxws:wsimport {execution: wsimport1}]
> [INFO] Processing:
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl
> [INFO] jaxws:wsimport args: [-s,
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source,
> -d, /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes,
> -verbose, -p, org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target, 2.1,
> -Xnocompile,
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl]
> parsing WSDL...
>
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> org.codehaus.classworlds.NoSuchRealmException: plexus.core
>      at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
>      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
>      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>
> Blog: http://nirmalfdo.blogspot.com/
>


Re: Compile error in trunk sca-java-2.x

Posted by Nirmal Fernando <ni...@gmail.com>.
On Mon, Jul 4, 2011 at 7:37 PM, Nirmal Fernando <ni...@gmail.com>wrote:

>
>
> On Mon, Jul 4, 2011 at 7:31 PM, Mike Edwards <
> mike.edwards.inglenook@gmail.com> wrote:
>
>> On 04/07/2011 14:31, Nirmal Fernando wrote:
>>
>>> Did I make a mistake by running "mvn compile" before "mvn install"?
>>>
>>> I tried to run "mvn install", it ran out of java heap memory. :(
>>>
>>>  Nirmal,
>>
>> You need to adjust the Maven OPTS for the Java heap size, as described
>> here:
>>
>> http://tuscany.apache.org/**tuscany-sca-java-faq.html#**
>> TuscanySCAJava-FAQ-BuildD<http://tuscany.apache.org/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildD>
>>
>> Simply put - set the MAVEN_OPTS environment variable to a value something
>> like this:
>>
>> MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=350m
>>
>>
> Thanks Mike, I'll try with that!
>

"mvn install" on trunk fails with :

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA iTest WS Contribution RPC Lit
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [build-helper:add-test-source {execution: add-source}]
[INFO] Test Source directory:
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source
added.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [jaxws:wsimport {execution: wsimport1}]
[INFO] Processing:
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl
[INFO] jaxws:wsimport args: [-s,
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/jaxws-source,
-d,
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes,
-verbose, -p,
org.apache.tuscany.sca.binding.ws.jaxws.external.service.iface, -target,
2.1, -Xnocompile,
/media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/ws/contribution-rpc-lit/target/classes/helloworld-external-service.wsdl]
parsing WSDL...


[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
org.codehaus.classworlds.NoSuchRealmException: plexus.core
    at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


>
>
>>
>> Yours,  Mike.
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>
> Blog: http://nirmalfdo.blogspot.com/
>
>


-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by Nirmal Fernando <ni...@gmail.com>.
On Mon, Jul 4, 2011 at 7:31 PM, Mike Edwards <
mike.edwards.inglenook@gmail.com> wrote:

> On 04/07/2011 14:31, Nirmal Fernando wrote:
>
>> Did I make a mistake by running "mvn compile" before "mvn install"?
>>
>> I tried to run "mvn install", it ran out of java heap memory. :(
>>
>>  Nirmal,
>
> You need to adjust the Maven OPTS for the Java heap size, as described
> here:
>
> http://tuscany.apache.org/**tuscany-sca-java-faq.html#**
> TuscanySCAJava-FAQ-BuildD<http://tuscany.apache.org/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildD>
>
> Simply put - set the MAVEN_OPTS environment variable to a value something
> like this:
>
> MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=350m
>
>
Thanks Mike, I'll try with that!


>
> Yours,  Mike.
>



-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by Mike Edwards <mi...@gmail.com>.
On 04/07/2011 14:31, Nirmal Fernando wrote:
> Did I make a mistake by running "mvn compile" before "mvn install"?
>
> I tried to run "mvn install", it ran out of java heap memory. :(
>
Nirmal,

You need to adjust the Maven OPTS for the Java heap size, as described here:

http://tuscany.apache.org/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildD

Simply put - set the MAVEN_OPTS environment variable to a value something like this:

MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=350m


Yours,  Mike.

Re: Compile error in trunk sca-java-2.x

Posted by Nirmal Fernando <ni...@gmail.com>.
Did I make a mistake by running "mvn compile" before "mvn install"?

I tried to run "mvn install", it ran out of java heap memory. :(

On Mon, Jul 4, 2011 at 5:18 PM, Mike Edwards <
mike.edwards.inglenook@gmail.com> wrote:

> Nirmal,
>
> I did an Update followed by a full build this morning and I don't see this
> error - the build works fine for me, with only a couple of known test
> failures relating to some Policy function that is under development.
>
>
> Yours,  Mike.
>
>
> On 02/07/2011 08:35, Nirmal Fernando wrote:
>
>> Hi,
>>
>> FYI: I tried building the trunk, it failed with following error.
>>
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Building Apache Tuscany SCA iTest Base
>> [INFO]    task-segment: [compile]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Building Apache Tuscany SCA iTest Base Dependencies
>> [INFO]    task-segment: [compile]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/src/main/**resources
>> [INFO] Copying 0 resource
>> [INFO] Copying 3 resources
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] No sources to compile
>> [INFO] [dependency:copy-dependencies {execution: copy}]
>> [INFO] Copying classes to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Error copying artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>
>> Embedded error: /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> (Is a
>> directory)
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.**LifecycleExecutionException: Error copying
>> artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoals(**
>> DefaultLifecycleExecutor.java:**719)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeGoalWithLifecycle(**DefaultLifecycleExecutor.java:**556)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoal(**
>> DefaultLifecycleExecutor.java:**535)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeGoalAndHandleFailures(**DefaultLifecycleExecutor.java:**387)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeTaskSegments(**DefaultLifecycleExecutor.java:**348)
>>     at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**execute(**
>> DefaultLifecycleExecutor.java:**180)
>>     at org.apache.maven.DefaultMaven.**doExecute(DefaultMaven.java:**328)
>>     at org.apache.maven.DefaultMaven.**execute(DefaultMaven.java:138)
>>     at org.apache.maven.cli.MavenCli.**main(MavenCli.java:362)
>>     at org.apache.maven.cli.compat.**CompatibleMain.main(**
>> CompatibleMain.java:60)
>>     at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>>     at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
>> NativeMethodAccessorImpl.java:**39)
>>     at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>> DelegatingMethodAccessorImpl.**java:25)
>>     at java.lang.reflect.Method.**invoke(Method.java:597)
>>     at org.codehaus.classworlds.**Launcher.launchEnhanced(**
>> Launcher.java:315)
>>     at org.codehaus.classworlds.**Launcher.launch(Launcher.java:**255)
>>     at org.codehaus.classworlds.**Launcher.mainWithExitCode(**
>> Launcher.java:430)
>>     at org.codehaus.classworlds.**Launcher.main(Launcher.java:**375)
>> Caused by: org.apache.maven.plugin.**MojoExecutionException: Error
>> copying artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>     at
>> org.apache.maven.plugin.**dependency.**AbstractDependencyMojo.**copyFile(
>> **AbstractDependencyMojo.java:**194)
>>     at
>> org.apache.maven.plugin.**dependency.**CopyDependenciesMojo.**
>> copyArtifact(**CopyDependenciesMojo.java:186)
>>     at org.apache.maven.plugin.**dependency.**
>> CopyDependenciesMojo.execute(**CopyDependenciesMojo.java:85)
>>     at org.apache.maven.plugin.**DefaultPluginManager.**executeMojo(**
>> DefaultPluginManager.java:490)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoals(**
>> DefaultLifecycleExecutor.java:**694)
>>     ... 17 more
>> Caused by: java.io.FileNotFoundException:
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> (Is a directory)
>>     at java.io.FileInputStream.open(**Native Method)
>>     at java.io.FileInputStream.<init>**(FileInputStream.java:106)
>>     at org.codehaus.plexus.util.**FileUtils.copyFile(FileUtils.**
>> java:929)
>>     at
>> org.apache.maven.plugin.**dependency.**AbstractDependencyMojo.**copyFile(
>> **AbstractDependencyMojo.java:**189)
>>     ... 21 more
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> C.S.Nirmal J. Fernando
>> Department of Computer Science & Engineering,
>> Faculty of Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>


-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Re: Compile error in trunk sca-java-2.x

Posted by Mike Edwards <mi...@gmail.com>.
Nirmal,

I did an Update followed by a full build this morning and I don't see this error - the build works 
fine for me, with only a couple of known test failures relating to some Policy function that is 
under development.


Yours,  Mike.

On 02/07/2011 08:35, Nirmal Fernando wrote:
> Hi,
>
> FYI: I tried building the trunk, it failed with following error.
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Tuscany SCA iTest Base
> [INFO]    task-segment: [compile]
> [INFO] ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Tuscany SCA iTest Base Dependencies
> [INFO]    task-segment: [compile]
> [INFO] ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/src/main/resources
> [INFO] Copying 0 resource
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [dependency:copy-dependencies {execution: copy}]
> [INFO] Copying classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error copying artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>
> Embedded error: /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is a
> directory)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error copying artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:597)
>      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying artifact from
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes to
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/testing/itest/base/dependencies/target/dependency/classes
>      at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
>      at
> org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
>      at org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
>      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>      at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>      ... 17 more
> Caused by: java.io.FileNotFoundException:
> /media/798D-18B1/GSoC-2011/Tuscany/trunk/modules/assembly/target/classes (Is a directory)
>      at java.io.FileInputStream.open(Native Method)
>      at java.io.FileInputStream.<init>(FileInputStream.java:106)
>      at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
>      at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189)
>      ... 21 more
>
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>
> Blog: http://nirmalfdo.blogspot.com/
>