Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]
Thanks for clarification :) On Wed, Jun 11, 2008 at 8:57 PM, Dain Sundstrom <[EMAIL PROTECTED]> 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, <[EMAIL PROTECTED]> >> 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:[EMAIL PROTECTED] >>> 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: [EMAIL PROTECTED] >>> 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 LD 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 LD 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]
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, <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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 LD 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 LD 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]
I don't unserstand why we should increase the Java Heap size ? On Wed, Jun 11, 2008 at 10:39 AM, <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > 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 LD 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 LD 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]
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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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 LD 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 LD I S C L A I M E R * * * * * * * *
Antwort: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]
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] ---
Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]
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, [EMAIL PROTECTED] 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 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 getProperties() { return properties; } public void setProperties(Map 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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> An 09.06.2008 21:43 users@openejb.apache.org Kopie Bitte antworten Thema an