You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Mohammad Nour El-Din <no...@gmail.com> on 2008/06/08 09:57:52 UTC

Re: maven build of openEJB3 [Virus checked]

Hi Dain...
  Manu added the plugin repo but the build still failed on his
*Windows* machine, he said he will try it using an older version of
Maven - like 2.0.6 - but never knew what happened with him. Wolfgang,
do you run build in the same/similar environment ?

On Fri, Jun 6, 2008 at 1:45 AM, Dain Sundstrom <da...@iq80.com> wrote:
> I think I fixed this earlier today.  I forgot to add declare the plugin
> repository for this SXC plugin.
>
> Anyway, if you svn update your source code, it would build now.
>
> -dain
>
>
> On Jun 5, 2008, at 8:24 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>
>> Hi guys,
>>
>> I am pretty new to openEJB3, so please bare with me, if I am asking the
>> obvious.
>>
>> Compilation of openEJB3 subproject openejb-j2ee breaks with the following
>> message:
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building OpenEJB :: Container :: Java EE
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [dependency-report:report {execution: default}]
>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>> -----------------------------------------------------
>> this realm =
>> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
>> urls[0] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
>> urls[1] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
>> /wstx-asl-3.2.0.jar
>> urls[2] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
>> urls[3] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
>> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
>> urls[5] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
>> urls[6] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
>> /jaxb-xjc-2.1.2.jar
>> urls[7] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>> urls[8] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
>> /jaxb-impl-2.1.2.jar
>> urls[9] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
>> Number of imports: 6
>> import: org.codehaus.classworlds.Entry@4891bb28
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@c51bc9e7
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>>
>>
>> this realm = plexus.core
>> urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
>> /lib/maven-2.0.8-uber.jar
>> Number of imports: 6
>> import: org.codehaus.classworlds.Entry@4891bb28
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@c51bc9e7
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>> -----------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Internal error in the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>> javax/xml/bind/JAXBException
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
>> the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>     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:585)
>>     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.PluginManagerException: Unable to find
>> the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>     ... 16 more
>> Caused by:
>>
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> Unable to lookup component
>>
>> 'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate',
>> it could not be created
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>>     ... 18 more
>> Caused by:
>> org.codehaus.plexus.component.factory.ComponentInstantiationException:
>> Could not instanciate component: role: 'null', implementation:
>> 'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>>     at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>>     at
>>
>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>     ... 20 more
>> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>     at java.lang.Class.getConstructor0(Class.java:2671)
>>     at java.lang.Class.newInstance0(Class.java:321)
>>     at java.lang.Class.newInstance(Class.java:303)
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>>     ... 24 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 minute 2 seconds
>> [INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
>> [INFO] Final Memory: 26M/47M
>> [INFO] -----------
>>
>> any help appreciated !!!!!!!!!!
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic data
>> transmitted by e-mail is not completely guaranteed and that data may be
>> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and confidentiality of
>> data and documents sent by e-mail. Please make sure that all important
>> messages will be confirmed in writing by means of a telefax or a letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>
>



-- 
Thanks
- Mohammad Nour

Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Thanks for clarification :)

On Wed, Jun 11, 2008 at 8:57 PM, Dain Sundstrom <da...@iq80.com> wrote:
> This would only be needed if the build fails (and it is only for the maven
> process).  The problem is we generate and compile a large number of classes,
> and the plugin is using javac which isn't very efficient memory wise.  When
> I get a chance, I'll update the plugin to optionally support the eclipse
> compiler.
>
> -dain
>
> On Jun 11, 2008, at 5:36 AM, Mohammad Nour El-Din wrote:
>
>> I don't unserstand why we should increase the Java Heap size ?
>>
>> On Wed, Jun 11, 2008 at 10:39 AM,  <Wo...@atosorigin.com>
>> wrote:
>>>
>>> Hi -dain
>>>
>>> the last build error I mailed in,
>>> was what it said it was, increasing the JAVA heap did the trick.
>>> I successfully compiled openejb3 ...
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>>> dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case you
>>> received this e-mail by accident, we would appreciate it if you could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic data
>>> transmitted by e-mail is not completely guaranteed and that data may be
>>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and confidentiality of
>>> data and documents sent by e-mail. Please make sure that all important
>>> messages will be confirmed in writing by means of a telefax or a letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>>
>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>
>



-- 
Thanks
- Mohammad Nour

Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
This would only be needed if the build fails (and it is only for the  
maven process).  The problem is we generate and compile a large number  
of classes, and the plugin is using javac which isn't very efficient  
memory wise.  When I get a chance, I'll update the plugin to  
optionally support the eclipse compiler.

-dain

On Jun 11, 2008, at 5:36 AM, Mohammad Nour El-Din wrote:

> I don't unserstand why we should increase the Java Heap size ?
>
> On Wed, Jun 11, 2008 at 10:39 AM,   
> <Wo...@atosorigin.com> wrote:
>> Hi -dain
>>
>> the last build error I mailed in,
>> was what it said it was, increasing the JAVA heap did the trick.
>> I successfully compiled openejb3 ...
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
>> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic  
>> data
>> transmitted by e-mail is not completely guaranteed and that data  
>> may be seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and  
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a  
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> -- 
> Thanks
> - Mohammad Nour


Re: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
I don't unserstand why we should increase the Java Heap size ?

On Wed, Jun 11, 2008 at 10:39 AM,  <Wo...@atosorigin.com> wrote:
> Hi -dain
>
> the last build error I mailed in,
> was what it said it was, increasing the JAVA heap did the trick.
> I successfully compiled openejb3 ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour

Antwort: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi -dain

the last build error I mailed in,
was what it said it was, increasing the JAVA heap did the trick.
I successfully compiled openejb3 ...

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Antwort: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi dain,

after this and the one change below (after the maven output), sxc comiles
fine into my archiva maven repository.

But compiling openejb3/container/openejb-jee ( remember thats where I
started), now breaks with


................

[INFO] [sxc-jaxb:generate {execution: default}]


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
      at com.sun.tools.javac.tree.TreeMaker.Ident(TreeMaker.java:324)
      at com.sun.tools.javac.parser.Parser.term3(Parser.java:859)
      at com.sun.tools.javac.parser.Parser.term2(Parser.java:582)
      at com.sun.tools.javac.parser.Parser.term1(Parser.java:553)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:509)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:491)
      at com.sun.tools.javac.parser.Parser.expression(Parser.java:481)
      at com.sun.tools.javac.parser.Parser.arguments(Parser.java:1046)
      at com.sun.tools.javac.parser.Parser.arguments(Parser.java:1061)
      at com.sun.tools.javac.parser.Parser.superSuffix(Parser.java:1009)
      at com.sun.tools.javac.parser.Parser.term3(Parser.java:835)
      at com.sun.tools.javac.parser.Parser.term2(Parser.java:582)
      at com.sun.tools.javac.parser.Parser.term1(Parser.java:553)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:509)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:491)
      at
com.sun.tools.javac.parser.Parser.blockStatements(Parser.java:1397)
      at com.sun.tools.javac.parser.Parser.block(Parser.java:1319)
      at com.sun.tools.javac.parser.Parser.block(Parser.java:1331)
      at
com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser.java:2241)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.java:2189)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2134)
      at
com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2004)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser.java:1976)
      at
com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java:1966)
      at
com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java:1909)
      at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:257)
      at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:281)
      at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:399)
      at com.sun.tools.javac.main.Main.compile(Main.java:592)
      at com.sun.tools.javac.main.Main.compile(Main.java:544)
      at com.sun.tools.javac.Main.compile(Main.java:85)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not compile generated files! Code: 3
[INFO]
------------------------------------------------------------------------
[INFO] Trace
com.envoisolutions.sxc.builder.BuildException: Could not compile generated
files! Code: 3
      at
com.envoisolutions.sxc.compiler.JavacCompiler.compile(JavacCompiler.java:105)
      at
com.envoisolutions.sxc.jaxb.JAXBGenerator.generate(JAXBGenerator.java:88)
      at
com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin.execute(SxcJaxbPlugin.java:73)
      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      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:585)
      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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Wed Jun 11 08:45:42 CEST 2008
[INFO] Final Memory: 21M/63M
[INFO]
------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

here is another one (sxc/compiler/JavaCompiler.java):
-------------------------------------------------------------------------------------------------
package com.envoisolutions.sxc.compiler;

import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.envoisolutions.sxc.builder.BuildException;
import com.envoisolutions.sxc.util.Util;

public class JavacCompiler extends Compiler {
    public ClassLoader compile(Map<String, File> sources) {
        if (sources.isEmpty()) {
            throw new IllegalArgumentException("sources is empty");
        }

        // create temp directory for classes
        String tmpdir = System.getProperty("java.io.tmpdir");
        File classDir = new File(new File(tmpdir), "classes" + hashCode() +
System.currentTimeMillis());
        if (!classDir.mkdir()) {
            throw new BuildException("Could not create output directory.");
        }

        try {
            // class loader used to compile classes
            ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
            if (classLoader == null) classLoader =
getClass().getClassLoader();

            // compile classes
            compile(sources, classDir, classLoader);

            // load classes
            Thread.currentThread().setContextClassLoader(classLoader);
            URLClassLoader cl = new URLClassLoader(new URL[]{
classDir.toURI().toURL()}, classLoader);
            List<String> failedToLoad = new ArrayList<String>();
            for (String className : sources.keySet()) {
                try {
                    cl.loadClass(className);
                } catch (ClassNotFoundException e) {
                    failedToLoad.add(className);
                }
            }
            if (!failedToLoad.isEmpty()) {
                throw new BuildException("Could not load generated classes
" + failedToLoad);
            }

            return cl;
        } catch (IOException e) {
            throw new BuildException(e);
        } finally {
            // clean up the temp directory
            Util.delete(classDir);
        }
    }

    public void compile(Map<String, File> sources, File classDir,
ClassLoader classLoader) {
        Set<URL> urlSet = getClasspathURLs(classLoader);
        String classpath = createClasspath(urlSet);

        URLClassLoader newCL = createNewClassLoader();

        // build arg array
        List<String> args = new ArrayList<String>(sources.size() + 7);
        args.add("-g");
        args.add("-d");
        args.add(classDir.getAbsolutePath());
        args.add("-classpath");
        args.add(classpath);
        for (File file : sources.values()) {
            args.add(file.getAbsolutePath());
        }

        // invoke compiler
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        PrintWriter writer = new PrintWriter(out);
        int exitCode;
        try {
            Class<?> main = newCL.loadClass("com.sun.tools.javac.Main");
            Method method = main.getMethod("compile", String[].class,
PrintWriter.class);
            exitCode = (Integer) method.invoke(null, args.toArray(new
String[args.size()]), writer);
        } catch (ClassNotFoundException e1) {
            throw new BuildException("Could not find javac compiler!", e1);
        } catch (Exception e) {
            throw new BuildException("Could not invoke javac compiler!",
e);
        }

        // check exit code
        if (exitCode != 0) {
            writer.close();

            System.out.println(out.toString());

            throw new BuildException("Could not compile generated files!
Code: " + exitCode);
        }
    }

    private URLClassLoader createNewClassLoader() {
        URL[] urls;
        File toolsJar = new File(System.getProperty("java.home"),
"../lib/tools.jar");
        if (toolsJar.exists()) {
            try {
                urls = new URL[]{toolsJar.toURL()};
            } catch (MalformedURLException e) {
                throw new BuildException("Could not convert the file
reference to tools.jar to a URL, path to tools.jar: '"
                        + toolsJar.getAbsolutePath() + "'.");
            }
        } else {
            urls = new URL[0];
        }

        URLClassLoader newCL = new URLClassLoader(urls);
        Thread.currentThread().setContextClassLoader(newCL);

        return newCL;
    }

    private String createClasspath(Set<URL> urls) {
        StringBuilder cp = new StringBuilder();
        boolean first = true;
        for (URL u : urls) {
            if (u.getProtocol().equals("file")) {

                if (first) {
                    first = false;
                } else {
                    cp.append(File.pathSeparatorChar);
                }

                String uStr = u.toString().replaceAll(" ", "%20");
                try {
                    File file = new File(new URI(uStr));
                    cp.append(file.getAbsolutePath());
                } catch (URISyntaxException e) {

                }
            }
        }
        return cp.toString();
    }

    private Set<URL> getClasspathURLs(ClassLoader cl) {
        Set<URL> urls = new HashSet<URL>();

        while (cl != null) {
            if (cl instanceof URLClassLoader) {
                URLClassLoader ucl = (URLClassLoader) cl;

                URL[] clurls = ucl.getURLs();
                if (clurls != null) {
                    urls.addAll(Arrays.asList(clurls));
                }
            }
            cl = cl.getParent();
        }
        return urls;
    }

}
-------------------------------------------------------------------------------------------------

The other one (line 114) is at a standard location, and should be fine.

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
Excellent.  I applied the patch and published a new snapshot.

Let me know if you have any more problems, and thank you for the patch.

-dain

On Jun 10, 2008, at 12:44 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> Here is the source with my tiny change in bold face:
> ------------------------------------------------------------------------------------------------------
> package com.envoisolutions.sxc.jaxb.maven;
>
> import java.io.File;
> import java.net.MalformedURLException;
> import java.net.URL;
> import java.net.URLClassLoader;
> import java.util.Arrays;
> import java.util.Map;
> import javax.xml.bind.JAXBException;
>
> import com.envoisolutions.sxc.jaxb.JAXBGenerator;
> import org.apache.maven.plugin.AbstractMojo;
> import org.apache.maven.plugin.MojoExecutionException;
> import org.apache.maven.project.MavenProject;
>
> /**
> * @goal generate
> * @description Generates SXC JaxB implementation
> * @phase process-classes
> * @requiresDependencyResolution runtime
> */
> public class SxcJaxbPlugin extends AbstractMojo {
>    /**
>     * @parameter expression="${project}"
>     * @required
>     */
>    private MavenProject project;
>
>    /**
>     * Directory source files will be written.
>     *
>     * @parameter expression="${project.build.directory}/sxc"
>     * @required
>     */
>    private File sourceOutputDirectory;
>
>    /**
>     * Directory class files will be written.
>     *
>     * @parameter expression="${project.build.directory}/classes"
>     * @required
>     */
>    private File classesOutputDirectory;
>
>    /**
>     * @parameter
>     * @required
>     */
>    private String[] classes;
>
>    /**
>     * @parameter
>     */
>    private Map<String,String> properties;
>
>    public void execute() throws MojoExecutionException {
>        try {
>            JAXBGenerator jaxbGenerator = new JAXBGenerator();
>
> jaxbGenerator
> .setSourceOutputDirectory(sourceOutputDirectory.getAbsolutePath());
>
> jaxbGenerator
> .setClassesOutputDirectory(classesOutputDirectory.getAbsolutePath());
>            jaxbGenerator.getClasses().addAll(Arrays.asList(classes));
>            if (properties != null) {
>                jaxbGenerator.getProperties().putAll(properties);
>            }
>
>            // need to manually create the classloader since maven  
> won't
> give me one
>            String directory = project.getBuild().getOutputDirectory();
>            ClassLoader classLoader =
> Thread.currentThread().getContextClassLoader();
>            if (classLoader == null) classLoader =
> getClass().getClassLoader();
>
>            classLoader = new URLClassLoader(new URL[] {(new
> File(directory)).toURI().toURL()}, classLoader);
>            jaxbGenerator.setClassLoader(classLoader);
>
>            jaxbGenerator.generate();
>        } catch (JAXBException e) {
>            throw new MojoExecutionException("Error generating JaxB  
> parser:
> " + e.getMessage(), e);
>        } catch (MalformedURLException e) {
>            throw new MojoExecutionException("Invalid build  
> outputDirectory
> " + project.getBuild().getOutputDirectory());
>        }
>    }
>
>    public File getSourceOutputDirectory() {
>        return sourceOutputDirectory;
>    }
>
>    public void setSourceOutputDirectory(File sourceOutputDirectory) {
>        this.sourceOutputDirectory = sourceOutputDirectory;
>    }
>
>    public File getClassesOutputDirectory() {
>        return classesOutputDirectory;
>    }
>
>    public void setClassesOutputDirectory(File  
> classesOutputDirectory) {
>        this.classesOutputDirectory = classesOutputDirectory;
>    }
>
>    public String[] getClasses() {
>        return classes;
>    }
>
>    public void setClasses(String[] classes) {
>        this.classes = classes;
>    }
>
>    public Map<String, String> getProperties() {
>        return properties;
>    }
>
>    public void setProperties(Map<String, String> properties) {
>        this.properties = properties;
>    }
> }
> ------------------------------------------------------------------------------------------------------
>
> The idea is that URI and URL are so close, but NOT identical.
> The difference is the characters allowed: toURI converts what is
> permissible in file names, to what is permissible in URL
> (e.g. converts blanks to %20..)
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             Dain Sundstrom
>             <da...@iq80.com>
>                                                                        An
>             09.06.2008 21:43           users@openejb.apache.org
>                                                                      
> Kopie
>
>              Bitte antworten                                         
> Thema
>                    an                  Re: Antwort: Re: Re: maven  
> build
>             users@openejb.apa          of openEJB3 [Virus checked]
>                  che.org
>
>
>
>
>
>
>
>
>
> I wrote the plugin.  Do you have a stack trace (use -e or -X to
> generate)?  That will help me narrow down the problem.
>
> Thanks,
>
> -dain
>
> On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>
>> That was a quick answer ! Thanks !
>>
>> I think you 're right:  it is a problem with spaces, and the solution
>> should not be complicated,
>>
>> change: (new File(directory)).toURL() to: (new
>> File(directory)).toURI().toURL()
>>
>> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin
>> if you
>> have the source
>> or ask, whoever can do this.
>>
>> I have seen this many times and anyway ... toURI().toURL() is the
>> good way
>> to do this!
>>
>> Let me know, what happens, please ...
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>>
>>            "Mohammad Nour
>>            El-Din"
>>
>> <nour.mohammad@gm                                          An
>>            ail.com>                   users@openejb.apache.org
>>
>> Kopie
>>            09.06.2008 14:57
>>
>> Thema
>>                                       Re: Re: maven build of openEJB3
>>             Bitte antworten           [Virus checked]
>>                   an
>>            users@openejb.apa
>>                 che.org
>>
>>
>>
>>
>>
>>
>>
>> Does it work now, if not please start from a clean Maven local repo
>> and if it still not working try not to use a repo path with spaces,
>> and please tell us what you got :).
>>
>> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
>> wrote:
>>> Hi Mohammad Nour,
>>>
>>> I downloaded openEJB3.0 from the subversion repository
>>> and use MAVEN 2.0.8 on a Windows machine.
>>>
>>> I first suspected that it has to do with blanks in my path to the
>>> local
>>> maven repository.
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>> dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case
>>> you
>>> received this e-mail by accident, we would appreciate it if you  
>>> could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic
>>> data
>>> transmitted by e-mail is not completely guaranteed and that data
>>> may be
>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and
>>> confidentiality of
>>> data and documents sent by e-mail. Please make sure that all
>>> important
>>> messages will be confirmed in writing by means of a telefax or a
>>> letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>>
>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>>
>>
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic
>> data
>> transmitted by e-mail is not completely guaranteed and that data may
>> be seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic  
> data
> transmitted by e-mail is not completely guaranteed and that data may  
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and  
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a  
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *


Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Here is the source with my tiny change in bold face:
------------------------------------------------------------------------------------------------------
package com.envoisolutions.sxc.jaxb.maven;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
import java.util.Map;
import javax.xml.bind.JAXBException;

import com.envoisolutions.sxc.jaxb.JAXBGenerator;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;

/**
 * @goal generate
 * @description Generates SXC JaxB implementation
 * @phase process-classes
 * @requiresDependencyResolution runtime
 */
public class SxcJaxbPlugin extends AbstractMojo {
    /**
     * @parameter expression="${project}"
     * @required
     */
    private MavenProject project;

    /**
     * Directory source files will be written.
     *
     * @parameter expression="${project.build.directory}/sxc"
     * @required
     */
    private File sourceOutputDirectory;

    /**
     * Directory class files will be written.
     *
     * @parameter expression="${project.build.directory}/classes"
     * @required
     */
    private File classesOutputDirectory;

    /**
     * @parameter
     * @required
     */
    private String[] classes;

    /**
     * @parameter
     */
    private Map<String,String> properties;

    public void execute() throws MojoExecutionException {
        try {
            JAXBGenerator jaxbGenerator = new JAXBGenerator();

jaxbGenerator.setSourceOutputDirectory(sourceOutputDirectory.getAbsolutePath());

jaxbGenerator.setClassesOutputDirectory(classesOutputDirectory.getAbsolutePath());
            jaxbGenerator.getClasses().addAll(Arrays.asList(classes));
            if (properties != null) {
                jaxbGenerator.getProperties().putAll(properties);
            }

            // need to manually create the classloader since maven won't
give me one
            String directory = project.getBuild().getOutputDirectory();
            ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
            if (classLoader == null) classLoader =
getClass().getClassLoader();

            classLoader = new URLClassLoader(new URL[] {(new
File(directory)).toURI().toURL()}, classLoader);
            jaxbGenerator.setClassLoader(classLoader);

            jaxbGenerator.generate();
        } catch (JAXBException e) {
            throw new MojoExecutionException("Error generating JaxB parser:
" + e.getMessage(), e);
        } catch (MalformedURLException e) {
            throw new MojoExecutionException("Invalid build outputDirectory
" + project.getBuild().getOutputDirectory());
        }
    }

    public File getSourceOutputDirectory() {
        return sourceOutputDirectory;
    }

    public void setSourceOutputDirectory(File sourceOutputDirectory) {
        this.sourceOutputDirectory = sourceOutputDirectory;
    }

    public File getClassesOutputDirectory() {
        return classesOutputDirectory;
    }

    public void setClassesOutputDirectory(File classesOutputDirectory) {
        this.classesOutputDirectory = classesOutputDirectory;
    }

    public String[] getClasses() {
        return classes;
    }

    public void setClasses(String[] classes) {
        this.classes = classes;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }
}
------------------------------------------------------------------------------------------------------

The idea is that URI and URL are so close, but NOT identical.
The difference is the characters allowed: toURI converts what is
permissible in file names, to what is permissible in URL
(e.g. converts blanks to %20..)

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


                                                                           
             Dain Sundstrom                                                
             <da...@iq80.com>                                               
                                                                        An 
             09.06.2008 21:43           users@openejb.apache.org           
                                                                     Kopie 
                                                                           
              Bitte antworten                                        Thema 
                    an                  Re: Antwort: Re: Re: maven build   
             users@openejb.apa          of openEJB3 [Virus checked]        
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I wrote the plugin.  Do you have a stack trace (use -e or -X to
generate)?  That will help me narrow down the problem.

Thanks,

-dain

On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> That was a quick answer ! Thanks !
>
> I think you 're right:  it is a problem with spaces, and the solution
> should not be complicated,
>
> change: (new File(directory)).toURL() to: (new
> File(directory)).toURI().toURL()
>
> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin
> if you
> have the source
> or ask, whoever can do this.
>
> I have seen this many times and anyway ... toURI().toURL() is the
> good way
> to do this!
>
> Let me know, what happens, please ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             "Mohammad Nour
>             El-Din"
>
> <nour.mohammad@gm                                          An
>             ail.com>                   users@openejb.apache.org
>
> Kopie
>             09.06.2008 14:57
>
> Thema
>                                        Re: Re: maven build of openEJB3
>              Bitte antworten           [Virus checked]
>                    an
>             users@openejb.apa
>                  che.org
>
>
>
>
>
>
>
> Does it work now, if not please start from a clean Maven local repo
> and if it still not working try not to use a repo path with spaces,
> and please tell us what you got :).
>
> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
> wrote:
>> Hi Mohammad Nour,
>>
>> I downloaded openEJB3.0 from the subversion repository
>> and use MAVEN 2.0.8 on a Windows machine.
>>
>> I first suspected that it has to do with blanks in my path to the
>> local
>> maven repository.
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic
>> data
>> transmitted by e-mail is not completely guaranteed and that data
>> may be
> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all
>> important
>> messages will be confirmed in writing by means of a telefax or a
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic
> data
> transmitted by e-mail is not completely guaranteed and that data may
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *



 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
I wrote the plugin.  Do you have a stack trace (use -e or -X to  
generate)?  That will help me narrow down the problem.

Thanks,

-dain

On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> That was a quick answer ! Thanks !
>
> I think you 're right:  it is a problem with spaces, and the solution
> should not be complicated,
>
> change: (new File(directory)).toURL() to: (new
> File(directory)).toURI().toURL()
>
> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin  
> if you
> have the source
> or ask, whoever can do this.
>
> I have seen this many times and anyway ... toURI().toURL() is the  
> good way
> to do this!
>
> Let me know, what happens, please ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             "Mohammad Nour
>             El-Din"
>              
> <nour.mohammad@gm                                          An
>             ail.com>                   users@openejb.apache.org
>                                                                      
> Kopie
>             09.06.2008 14:57
>                                                                      
> Thema
>                                        Re: Re: maven build of openEJB3
>              Bitte antworten           [Virus checked]
>                    an
>             users@openejb.apa
>                  che.org
>
>
>
>
>
>
>
> Does it work now, if not please start from a clean Maven local repo
> and if it still not working try not to use a repo path with spaces,
> and please tell us what you got :).
>
> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
> wrote:
>> Hi Mohammad Nour,
>>
>> I downloaded openEJB3.0 from the subversion repository
>> and use MAVEN 2.0.8 on a Windows machine.
>>
>> I first suspected that it has to do with blanks in my path to the  
>> local
>> maven repository.
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic  
>> data
>> transmitted by e-mail is not completely guaranteed and that data  
>> may be
> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and  
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a  
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic  
> data
> transmitted by e-mail is not completely guaranteed and that data may  
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and  
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a  
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *


Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
That was a quick answer ! Thanks !

I think you 're right:  it is a problem with spaces, and the solution
should not be complicated,

change: (new File(directory)).toURL() to: (new
File(directory)).toURI().toURL()

in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin if you
have the source
or ask, whoever can do this.

I have seen this many times and anyway ... toURI().toURL() is the good way
to do this!

Let me know, what happens, please ...

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


                                                                           
             "Mohammad Nour                                                
             El-Din"                                                       
             <nour.mohammad@gm                                          An 
             ail.com>                   users@openejb.apache.org           
                                                                     Kopie 
             09.06.2008 14:57                                              
                                                                     Thema 
                                        Re: Re: maven build of openEJB3    
              Bitte antworten           [Virus checked]                    
                    an                                                     
             users@openejb.apa                                             
                  che.org                                                  
                                                                           
                                                                           
                                                                           




Does it work now, if not please start from a clean Maven local repo
and if it still not working try not to use a repo path with spaces,
and please tell us what you got :).

On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
wrote:
> Hi Mohammad Nour,
>
> I downloaded openEJB3.0 from the subversion repository
> and use MAVEN 2.0.8 on a Windows machine.
>
> I first suspected that it has to do with blanks in my path to the local
> maven repository.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be
seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



--
Thanks
- Mohammad Nour


 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Does it work now, if not please start from a clean Maven local repo
and if it still not working try not to use a repo path with spaces,
and please tell us what you got :).

On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com> wrote:
> Hi Mohammad Nour,
>
> I downloaded openEJB3.0 from the subversion repository
> and use MAVEN 2.0.8 on a Windows machine.
>
> I first suspected that it has to do with blanks in my path to the local
> maven repository.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour

Re: maven build of openEJB3 [Virus checked]

Posted by Manu George <ma...@gmail.com>.
I guess I did something wrong. It works with Dains patch

Regards
Manu

On Sun, Jun 8, 2008 at 1:27 PM, Mohammad Nour El-Din
<no...@gmail.com> wrote:
> Hi Dain...
>  Manu added the plugin repo but the build still failed on his
> *Windows* machine, he said he will try it using an older version of
> Maven - like 2.0.6 - but never knew what happened with him. Wolfgang,
> do you run build in the same/similar environment ?
>
> On Fri, Jun 6, 2008 at 1:45 AM, Dain Sundstrom <da...@iq80.com> wrote:
>> I think I fixed this earlier today.  I forgot to add declare the plugin
>> repository for this SXC plugin.
>>
>> Anyway, if you svn update your source code, it would build now.
>>
>> -dain
>>
>>
>> On Jun 5, 2008, at 8:24 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>>
>>> Hi guys,
>>>
>>> I am pretty new to openEJB3, so please bare with me, if I am asking the
>>> obvious.
>>>
>>> Compilation of openEJB3 subproject openejb-j2ee breaks with the following
>>> message:
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building OpenEJB :: Container :: Java EE
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [remote-resources:process {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO] [dependency-report:report {execution: default}]
>>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>>> -----------------------------------------------------
>>> this realm =
>>> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
>>> urls[0] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
>>> urls[1] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
>>> /wstx-asl-3.2.0.jar
>>> urls[2] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
>>> urls[3] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
>>> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
>>> urls[5] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
>>> urls[6] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
>>> /jaxb-xjc-2.1.2.jar
>>> urls[7] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>>> urls[8] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
>>> /jaxb-impl-2.1.2.jar
>>> urls[9] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
>>> Number of imports: 6
>>> import: org.codehaus.classworlds.Entry@4891bb28
>>> import: org.codehaus.classworlds.Entry@f8e44ca4
>>> import: org.codehaus.classworlds.Entry@c51bc9e7
>>> import: org.codehaus.classworlds.Entry@bece5185
>>> import: org.codehaus.classworlds.Entry@3fee8e37
>>> import: org.codehaus.classworlds.Entry@3fee19d8
>>>
>>>
>>> this realm = plexus.core
>>> urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
>>> /lib/maven-2.0.8-uber.jar
>>> Number of imports: 6
>>> import: org.codehaus.classworlds.Entry@4891bb28
>>> import: org.codehaus.classworlds.Entry@f8e44ca4
>>> import: org.codehaus.classworlds.Entry@c51bc9e7
>>> import: org.codehaus.classworlds.Entry@bece5185
>>> import: org.codehaus.classworlds.Entry@3fee8e37
>>> import: org.codehaus.classworlds.Entry@3fee19d8
>>> -----------------------------------------------------
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Internal error in the plugin manager executing goal
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>>> Unable to find the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>> javax/xml/bind/JAXBException
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
>>> the plugin manager executing goal
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>>> Unable to find the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>>     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:585)
>>>     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.PluginManagerException: Unable to find
>>> the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>>     ... 16 more
>>> Caused by:
>>>
>>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>>> Unable to lookup component
>>>
>>> 'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate',
>>> it could not be created
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>>>     ... 18 more
>>> Caused by:
>>> org.codehaus.plexus.component.factory.ComponentInstantiationException:
>>> Could not instanciate component: role: 'null', implementation:
>>> 'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>>>     at
>>>
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>>>     at
>>>
>>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>>     ... 20 more
>>> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
>>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>>     at java.lang.Class.getConstructor0(Class.java:2671)
>>>     at java.lang.Class.newInstance0(Class.java:321)
>>>     at java.lang.Class.newInstance(Class.java:303)
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>>>     ... 24 more
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 1 minute 2 seconds
>>> [INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
>>> [INFO] Final Memory: 26M/47M
>>> [INFO] -----------
>>>
>>> any help appreciated !!!!!!!!!!
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case you
>>> received this e-mail by accident, we would appreciate it if you could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic data
>>> transmitted by e-mail is not completely guaranteed and that data may be
>>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and confidentiality of
>>> data and documents sent by e-mail. Please make sure that all important
>>> messages will be confirmed in writing by means of a telefax or a letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>

Antwort: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi Mohammad Nour,

I downloaded openEJB3.0 from the subversion repository
and use MAVEN 2.0.8 on a Windows machine.

I first suspected that it has to do with blanks in my path to the local
maven repository.

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *