I think this relates to Java8, see https://www.symphonious.net/2014/03/21/javassist-java-8-invalid-constant-type-15/
I deployed on Centos6/ JDK7 without that problem. Best Regards Mike Burton (Sent from my iPhone) > On 15 Nov 2014, at 16:15, Jeroen van der Wal <jer...@stromboli.it> wrote: > > Have built and ran the archetype on a pristine Mac (OSX 10.10) without any > Issues. > > The only downside are the 46000+ lines of reflection errors on startup [1]. > Is there something I can do to fix this? > > Cheers, > > Jeroen > > [1] https://www.dropbox.com/s/gs4u62b97iwasmy/log.txt?dl=0 > > > > > On Sat, Nov 15, 2014 at 11:35 AM, Dan Haywood <d...@haywood-associates.co.uk> > wrote: > >> Thanks, Martin and Oscar. >> >> Martin... your patch ended up with <repositories> element twice; not sure >> if that was legal, anyway I combined them. >> >> Oscar... I think your issue must be from using the Eclipse compiler with >> Java 8, and it not correctly honouring the declared version of Java (7) in >> our poms. Nevertheless, have changed the archetypes to not use wildcards >> (eg java.util.*) so this issue should hopefully go away. >> >> ~~~ >> I've just pushed an updated archetype, so if you could give it another go, >> I'd appreciate it. >> >> And... anyone else, please also try this out. Mike? Kevin? Jeroen? >> >> Cheers >> Dan >> >> >> >> >> >> >> On 14 November 2014 23:52, GESCONSULTOR - Óscar Bou < >> o....@gesconsultor.com> wrote: >> >>> Nearly perfect in my case! >>> >>> Only this error after running: >>> >>> mvn clean install >>> >>> After adding the "import org.apache.isis.applib.annotation.Optional" to >>> ToDoItem it compiled successfully. Eclipse didn't signaled it. >>> >>> >>> [INFO] Scanning for projects... >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Build Order: >>> [INFO] >>> [INFO] ToDo App >>> [INFO] ToDo App DOM >>> [INFO] ToDo App Fixtures >>> [INFO] ToDo App Integration Tests >>> [INFO] ToDo App Webapp >>> [INFO] >>> [INFO] Using the builder >>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder >>> with a thread count of 1 >>> [INFO] >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building ToDo App 1.0-SNAPSHOT >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] >>> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myapp --- >>> [INFO] >>> [INFO] --- maven-install-plugin:2.5.1:install (default-install) @ myapp >>> --- >>> [INFO] Installing /Users/oscarboubou/dev/isis/todoapp/myapp/pom.xml to >>> /Users/oscarboubou/.m2/repository/com/mycompany/myapp/1.0-SNAPSHOT/myapp-1.0-SNAPSHOT.pom >>> [INFO] >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building ToDo App DOM 1.0-SNAPSHOT >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] >>> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myapp-dom --- >>> [INFO] >>> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ >>> myapp-dom --- >>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>> [INFO] Copying 0 resource >>> [INFO] Copying 9 resources >>> [INFO] >>> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ >>> myapp-dom --- >>> [INFO] Changes detected - recompiling the module! >>> [INFO] Compiling 12 source files to >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/target/classes >>> DataNucleus : JDO Query - dom.todo.ToDoItem -> dom.todo.QToDoItem >>> [INFO] ------------------------------------------------------------- >>> [ERROR] COMPILATION ERROR : >>> [INFO] ------------------------------------------------------------- >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[363,14] >>> reference to Optional is ambiguous >>> both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[409,6] >>> reference to Optional is ambiguous >>> both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[426,6] >>> reference to Optional is ambiguous >>> both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[562,20] >>> reference to Optional is ambiguous >>> both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[563,20] >>> reference to Optional is ambiguous >>> both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [INFO] 5 errors >>> [INFO] ------------------------------------------------------------- >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] ToDo App .......................................... SUCCESS [ >>> 0.287 s] >>> [INFO] ToDo App DOM ...................................... FAILURE [ >>> 1.658 s] >>> [INFO] ToDo App Fixtures ................................. SKIPPED >>> [INFO] ToDo App Integration Tests ........................ SKIPPED >>> [INFO] ToDo App Webapp ................................... SKIPPED >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 2.252 s >>> [INFO] Finished at: 2014-11-15T00:44:22+01:00 >>> [INFO] Final Memory: 17M/206M >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile >>> (default-compile) on project myapp-dom: Compilation failure: Compilation >>> failure: >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[363,14] >>> reference to Optional is ambiguous >>> [ERROR] both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[409,6] >>> reference to Optional is ambiguous >>> [ERROR] both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[426,6] >>> reference to Optional is ambiguous >>> [ERROR] both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[562,20] >>> reference to Optional is ambiguous >>> [ERROR] both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] >>> /Users/oscarboubou/dev/isis/todoapp/myapp/dom/src/main/java/dom/todo/ToDoItem.java:[563,20] >>> reference to Optional is ambiguous >>> [ERROR] both class org.apache.isis.applib.annotation.Optional in >>> org.apache.isis.applib.annotation and class java.util.Optional in java.util >>> match >>> [ERROR] -> [Help 1] >>> [ERROR] >>> [ERROR] To see the full stack trace of the errors, re-run Maven with the >>> -e switch. >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> [ERROR] For more information about the errors and possible solutions, >>> please read the following articles: >>> [ERROR] [Help 1] >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException >>> [ERROR] >>> [ERROR] After correcting the problems, you can resume the build with the >>> command >>> [ERROR] mvn <goals> -rf :myapp-dom >>> >>> >>> >>> Regards, >>> >>> Oscar >>> >>> >>> >>> >>> El 14/11/2014, a las 21:26, Martin Grigorov <mgrigo...@apache.org> >>> escribió: >>> >>> >>> Hi, >>> >>> The archetype snippet at http://isis.apache.org/intro/getting-started/ >>> *todoapp*-archetype.html for 1.8.0-SNAPSHOT uses simple app: >>> -D archetypeArtifactId=*simpleapp*-archetype \ >>> >>> The next problem is that if I "rm -rf ~/.m2/repository/or/apache/isis" >>> then >>> 'mvn clean install" doesn't work. >>> We have to add <repositories><repository> for snapshots pointing at >>> http://repository-estatio.forge.cloudbees.com/snapshot/ >>> >>> https://github.com/apache/isis/pull/7 + recreating the archetypes should >>> fix it. >>> >>> Martin Grigorov >>> Wicket Training and Consulting >>> https://twitter.com/mtgrigorov >>> >>> On Fri, Nov 14, 2014 at 8:32 PM, Dan Haywood < >>> d...@haywood-associates.co.uk> >>> wrote: >>> >>> Hi Oscar, >>> >>> thanks for trying this out. I've changed things around (and simplified) >>> ... could you try again and let me know? >>> >>> Cheers >>> Dan >>> >>> >>> >>> 2014-11-14 16:12 GMT+00:00 GESCONSULTOR - Óscar Bou < >>> o....@gesconsultor.com>: >>> >>> Hi, Dan. >>> >>> I got this: >>> >>> [INFO] Scanning for projects... >>> [INFO] >>> [INFO] Using the builder >>> >>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder >>> with a thread count of 1 >>> [INFO] >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building Maven Stub Project (No POM) 1 >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] >>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ >>> standalone-pom >>> >>> [INFO] >>> [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ >>> standalone-pom <<< >>> [INFO] >>> [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ >>> standalone-pom --- >>> [INFO] Generating project in Batch mode >>> [INFO] Archetype repository missing. Using the one from >>> [org.apache.isis.archetype:todoapp-archetype:1.7.0] found in catalog >>> remote >>> [INFO] Downloading: >>> >>> http://repository-estatio.forge.cloudbees.com/snapshot/org/apache/isis/archetype/todoapp-archetype/1.8.0-SNAPSHOT/maven-metadata.xml >>> [INFO] Downloading: >>> >>> http://repository-estatio.forge.cloudbees.com/snapshot/org/apache/isis/archetype/todoapp-archetype/1.8.0-SNAPSHOT/todoapp-archetype-1.8.0-SNAPSHOT.jar >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 12.035 s >>> [INFO] Finished at: 2014-11-14T16:50:11+01:00 >>> [INFO] Final Memory: 11M/183M >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) >>> on project standalone-pom: The desired archetype does not exist >>> (org.apache.isis.archetype:todoapp-archetype:1.8.0-SNAPSHOT) -> [Help 1] >>> [ERROR] >>> [ERROR] To see the full stack trace of the errors, re-run Maven with the >>> -e switch. >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> [ERROR] For more information about the errors and possible solutions, >>> please read the following articles: >>> [ERROR] [Help 1] >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException >>> >>> >>> >>> HTH, >>> >>> Oscar >>> >>> >>> El 14/11/2014, a las 16:34, Dan Haywood <d...@haywood-associates.co.uk> >>> escribió: >>> >>> >>> Hi folks, >>> >>> One thing we've been meaning to do for a while is to make our Maven >>> archetypes available against SNAPSHOT, so y'all can try out latest >>> versions >>> without needing to build Isis yourself. >>> >>> Given that 1.8.0-SNAPSHOT is a significant release, we thought now would >>> be >>> a good time to put this in place. >>> >>> So, I'd be grateful for anyone to try this and let us know if it works for >>> you. >>> >>> The instructions are on the archetype pages on our website, for either the >>> simpleapp archetype [1] or the todoapp archetype [2]. Spin down to the >>> section "Generating the App (snapshot release)" and continue from there. >>> >>> Any feedback, good or bad, most welcome. >>> >>> Thx >>> Dan >>> >>> [1] http://isis.apache.org/intro/getting-started/simpleapp-archetype.html >>> [2] http://isis.apache.org/intro/getting-started/todoapp-archetype.html >>> >>> >>> >>> Óscar Bou Bou >>> Responsable de Producto >>> Auditor Jefe de Certificación ISO 27001 en BSI >>> CISA, CRISC, APMG ISO 20000, ITIL-F >>> >>> 902 900 231 / 620 267 520 >>> http://www.twitter.com/oscarbou >>> >>> http://es.linkedin.com/in/oscarbou >>> >>> http://www.GesConsultor.com <http://www.gesconsultor.com/> >>> >>> >>> >>> Este mensaje y los ficheros anexos son confidenciales. Los mismos >>> contienen información reservada que no puede ser difundida. Si usted ha >>> recibido este correo por error, tenga la amabilidad de eliminarlo de su >>> sistema y avisar al remitente mediante reenvío a su dirección electrónica; >>> no deberá copiar el mensaje ni divulgar su contenido a ninguna persona. >>> Su dirección de correo electrónico junto a sus datos personales constan >>> en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la >>> de mantener el contacto con Ud. Si quiere saber de qué información >>> disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo >>> enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a >>> la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, >>> 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 >>> (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o >>> sus archivos adjuntos no contengan virus informáticos, y en caso que los >>> tuvieran eliminarlos. >>> >>> >>> >>> Óscar Bou Bou >>> Responsable de Producto >>> Auditor Jefe de Certificación ISO 27001 en BSI >>> CISA, CRISC, APMG ISO 20000, ITIL-F >>> >>> 902 900 231 / 620 267 520 >>> http://www.twitter.com/oscarbou >>> >>> http://es.linkedin.com/in/oscarbou >>> >>> http://www.GesConsultor.com <http://www.gesconsultor.com/> >>> >>> >>> >>> Este mensaje y los ficheros anexos son confidenciales. Los mismos >>> contienen información reservada que no puede ser difundida. Si usted ha >>> recibido este correo por error, tenga la amabilidad de eliminarlo de su >>> sistema y avisar al remitente mediante reenvío a su dirección electrónica; >>> no deberá copiar el mensaje ni divulgar su contenido a ninguna persona. >>> Su dirección de correo electrónico junto a sus datos personales constan >>> en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la >>> de mantener el contacto con Ud. Si quiere saber de qué información >>> disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo >>> enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a >>> la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, >>> 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 >>> (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o >>> sus archivos adjuntos no contengan virus informáticos, y en caso que los >>> tuvieran eliminarlos. >>