Hi Dan - Yes, it works fine from command line and I can build and run the application.
On Wed, Jan 11, 2017 at 2:46 AM, Dan Haywood <[email protected]> wrote: > OK, so let's stay on Java 1.8 (was just looking at the archetype... there > are other reasons why it requires Java 1.8 also). > > The errors you've posted look to me like Eclipse hasn't resolved the > classpath correctly. As a first step, let's take Eclipse out of the > equation: using Java 1.8, does it build from the command line? > > mvn clean install > > and then run: > > mvn -pl webapp jetty:run > > ?? > > On Tue, 10 Jan 2017 at 21:11 Vipul B <[email protected]> wrote: > > > Hi Dan, > > > > FYI, i have Eclipse Java EE IDE for Web Developers > > Version: Neon.1a Release (4.6.1) > > Build id: 20161007-1200 > > > > On Wed, Jan 11, 2017 at 2:39 AM, Vipul B <[email protected]> > > wrote: > > > > > Hi Dan - I would be happy to use Java 1.8. > > > But when i switch to Java 1.8 (1.8.0_111) i start getting lot of > errors. > > > Below are the errors i can see in the Problem view - > > > > > > > > > Description Resource Path Location Type > > > '<>' operator is not allowed for source level below 1.7 > > > SimpleObjectRepository.java /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple/dom/impl line 41 Java Problem > > > JAX-RS (REST Web Services) 2.0 can not be installed : One or more > > > constraints have not been satisfied. myapp-webapp line 1 Maven Java EE > > > Configuration Problem > > > JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer. myapp-webapp > > line > > > 1 Maven Java EE Configuration Problem > > > The method compareTo(SimpleObject) of type SimpleObject must override a > > > superclass method SimpleObject.java /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple/dom/impl line 117 Java Problem > > > The method describeTo(Description) of type new > > > TypeSafeMatcher<SimpleObject>(){} must override a superclass method > > > SimpleObjectRepository_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 96 Java Problem > > > The method describeTo(Description) of type new > > > TypeSafeMatcher<Throwable>(){} must override a superclass method > > > SimpleObjectMenu_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 140 Java Problem > > > The method getAdditionalServices() of type DomainAppAppManifest must > > > override a superclass method DomainAppAppManifest.java > > > /myapp-application/src/main/java/domainapp/application/manifest line > 54 > > Java > > > Problem > > > The method getAdditionalServices() of type SimpleModuleManifest must > > > override a superclass method SimpleModuleManifest.java > > > /myapp-module-simple/src/main/java/domainapp/modules/simple line 46 > Java > > > Problem > > > The method getAuthenticationMechanism() of type DomainAppAppManifest > must > > > override a superclass method DomainAppAppManifest.java > > > /myapp-application/src/main/java/domainapp/application/manifest line > 62 > > Java > > > Problem > > > The method getAuthenticationMechanism() of type SimpleModuleManifest > must > > > override a superclass method SimpleModuleManifest.java > > > /myapp-module-simple/src/main/java/domainapp/modules/simple line 51 > Java > > > Problem > > > The method getAuthorizationMechanism() of type DomainAppAppManifest > must > > > override a superclass method DomainAppAppManifest.java > > > /myapp-application/src/main/java/domainapp/application/manifest line > 70 > > Java > > > Problem > > > The method getAuthorizationMechanism() of type SimpleModuleManifest > must > > > override a superclass method SimpleModuleManifest.java > > > /myapp-module-simple/src/main/java/domainapp/modules/simple line 56 > Java > > > Problem > > > The method getConfigurationProperties() of type DomainAppAppManifest > must > > > override a superclass method DomainAppAppManifest.java > > > /myapp-application/src/main/java/domainapp/application/manifest line > 86 > > Java > > > Problem > > > The method getConfigurationProperties() of type SimpleModuleManifest > must > > > override a superclass method SimpleModuleManifest.java > > > /myapp-module-simple/src/main/java/domainapp/modules/simple line 69 > Java > > > Problem > > > The method getFixtures() of type DomainAppAppManifest must override a > > > superclass method DomainAppAppManifest.java > /myapp-application/src/main/ > > > java/domainapp/application/manifest line 78 Java Problem > > > The method getFixtures() of type SimpleModuleManifest must override a > > > superclass method SimpleModuleManifest.java > > /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple line 61 Java Problem > > > The method getModules() of type DomainAppAppManifest must override a > > > superclass method DomainAppAppManifest.java > /myapp-application/src/main/ > > > java/domainapp/application/manifest line 42 Java Problem > > > The method getModules() of type SimpleModuleManifest must override a > > > superclass method SimpleModuleManifest.java > > /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple line 38 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject.java /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple/dom/impl line 92 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObjectMenu_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 71 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObjectRepository_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 85 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObjectRepository_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 92 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 69 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 72 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 96 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 121 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 38 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > SimpleObject_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 45 Java Problem > > > The method getName() is undefined for the type SimpleObject > > > Smoke_IntegTest.java /myapp-application/src/test/ > > > java/domainapp/application/integtests line 88 Java Problem > > > The method getNotes() is undefined for the type SimpleObject > > > Smoke_IntegTest.java /myapp-application/src/test/ > > > java/domainapp/application/integtests line 96 Java Problem > > > The method getSimpleObjects() is undefined for the type > > CreateSimpleObjects > > > SimpleObjectMenu_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 68 Java Problem > > > The method getSimpleObjects() is undefined for the type > > CreateSimpleObjects > > > SimpleObjectMenu_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 71 Java Problem > > > The method getSimpleObjects() is undefined for the type > > CreateSimpleObjects > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 59 Java Problem > > > The method getSpecification() of type > > DomainAppFixtureScriptsSpecificationProvider > > > must override a superclass method DomainAppFixtureScriptsSpecifi > > > cationProvider.java /myapp-application/src/main/ > > > java/domainapp/application/fixture line 35 Java Problem > > > The method getSpecification() of type SimpleModuleIntegTestAbstract. > > > ModuleFixtureScriptsSpecificationProvider must override a superclass > > > method SimpleModuleIntegTestAbstract.java > /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests line 76 Java Problem > > > The method setName(String) is undefined for the type SimpleObject > > > SimpleObject.java /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple/dom/impl line 66 Java Problem > > > The method setName(String) is undefined for the type SimpleObject > > > SimpleObject.java /myapp-module-simple/src/main/ > > > java/domainapp/modules/simple/dom/impl line 87 Java Problem > > > The method setName(String) is undefined for the type SimpleObject > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 81 Java Problem > > > The method setName(String) is undefined for the type SimpleObject > > > SimpleObject_Test.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/dom/impl line 42 Java Problem > > > The method setNotes(String) is undefined for the type SimpleObject > > > Smoke_IntegTest.java /myapp-application/src/test/ > > > java/domainapp/application/integtests line 93 Java Problem > > > The method setNumber(int) is undefined for the type CreateSimpleObjects > > > SimpleObject_IntegTest.java /myapp-module-simple/src/test/ > > > java/domainapp/modules/simple/integtests/tests line 55 Java Problem > > > The method setNumber(Integer) is undefined for the type > > CreateSimpleObjects > > > DomainAppDemo.java > > /myapp-application/src/main/java/domainapp/application/ > > > fixture/scenarios line 45 Java Problem > > > Type mismatch: cannot convert from ArrayList<Class< > CreateSimpleObjects>> > > > to List<Class<? extends FixtureScript>> DomainAppAppManifestWithFixtur > > > es.java /myapp-application/src/main/java/domainapp/application/ > manifest > > line > > > 42 Java Problem > > > Type mismatch: cannot convert from ArrayList<Class< > > > SimpleModuleIntegTestAbstract.ModuleFixtureScriptsSpecificat > ionProvider>> > > > to List<Class<?>> SimpleModuleIntegTestAbstract.java > > > /myapp-module-simple/src/test/java/domainapp/modules/simple/integtests > > line > > > 60 Java Problem > > > > > > > > > On Wed, Jan 11, 2017 at 2:34 AM, Dan Haywood < > > [email protected] > > > > wrote: > > > > > >> OK, so I think the issue is that the Smoke_IntegTest (at least) seems > to > > >> depend on Java 1.8. > > >> > > >> Although Apache Isis itself is built and will run on Java 1.7, it > would > > >> seem that the archetype requires 1.8. > > >> > > >> Is there a reason you need 1.7 ? > > >> > > >> > > >> > > >> On Tue, 10 Jan 2017 at 20:55 Vipul B <[email protected]> > > >> wrote: > > >> > > >> > Hi Dan, > > >> > > > >> > Thanks for your reply. > > >> > I am seeing following errors in Eclipse console when i import the > > maven > > >> > project into Eclipse - > > >> > > > >> > Description Resource Path Location Type > > >> > JAX-RS (REST Web Services) 2.0 can not be installed : One or more > > >> > constraints have not been satisfied. myapp-webapp line 1 Maven Java > EE > > >> > Configuration Problem > > >> > JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer. > > myapp-webapp > > >> > line > > >> > 1 Maven Java EE Configuration Problem > > >> > The project was not built since its build path is incomplete. Cannot > > >> find > > >> > the class file for java.util.function.Predicate. Fix the build path > > then > > >> > try building this project myapp-application Unknown Java Problem > > >> > The project was not built since its build path is incomplete. Cannot > > >> find > > >> > the class file for java.util.function.Predicate. Fix the build path > > then > > >> > try building this project myapp-module-simple Unknown Java Problem > > >> > The type java.util.function.Predicate cannot be resolved. It is > > >> indirectly > > >> > referenced from required .class files SimpleObjectRepository_Test. > java > > >> > /myapp-module-simple/src/test/java/domainapp/modules/simple/ > dom/impl > > >> > line 1 Java > > >> > Problem > > >> > The type java.util.function.Predicate cannot be resolved. It is > > >> indirectly > > >> > referenced from required .class files Smoke_IntegTest.java > > >> > /myapp-application/src/test/java/domainapp/application/integtests > line > > >> 1 > > >> > Java > > >> > Problem > > >> > > > >> > > > >> > On Wed, Jan 11, 2017 at 2:22 AM, Dan Haywood < > > >> [email protected] > > >> > > > > >> > wrote: > > >> > > > >> > > Hi Vipul, > > >> > > > > >> > > thanks for trying out Apache Isis, sorry that isn't working for > you. > > >> > > > > >> > > Apache mailing lists don't allow attachments, I'm afraid, so can > you > > >> > either > > >> > > copy it in, or alternatively upload it somewhere and reference it > > as a > > >> > URL? > > >> > > > > >> > > Thanks > > >> > > Dan > > >> > > > > >> > > On Tue, 10 Jan 2017 at 20:35 Vipul B < > [email protected]> > > >> > wrote: > > >> > > > > >> > > > Hi, > > >> > > > > > >> > > > I am trying to follow the Apache ISIS documentation to learn the > > >> > > > framework. So i started by getting the App as described in the > > >> > > > documentation - > > >> > > > mvn archetype:generate -D > > archetypeGroupId=org.apache.isis.archetype > > >> -D > > >> > > > archetypeArtifactId=simpleapp-archetype -D > > >> archetypeVersion=1.13.2.1 -D > > >> > > > groupId=com.mycompany -D artifactId=myapp -D > version=1.0-SNAPSHOT > > -B > > >> > > > > > >> > > > Now i imported project into Eclipse. > > >> > > > > > >> > > > But i am not able to compile the project successfully in > Eclipse. > > I > > >> get > > >> > > > errors as shown in the attachment. > > >> > > > > > >> > > > Any suggestions for how i can fix this problem. > > >> > > > > > >> > > > I have JDK 1.7.0_79. > > >> > > > > > >> > > > > >> > > > >> > > > > > > > > >
