java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Java 11 support: Naked Objects pattern

Open iluwatar opened this issue 4 years ago • 8 comments

In issue https://github.com/iluwatar/java-design-patterns/issues/976 JDK11 build was taken to use but one problem related to Naked Objects pattern remains. Issue description from @lbroman:

In my PR #980 I have left language source and target at 8 for the naked-objects/dom module. This is because java 11 bytecode breaks the datanucleus enhancer, even if they claim that 5.2 should support java 11 bytecode. I have tried fiddling with the datanucleus dependency versions because the module uses datanucleus core 5 and apis from 4 so I thought that might be the problem. However, bumping up the versions breaks other stuff as they seem to have moved around some classes between 4 and 5.

iluwatar avatar Oct 12 '19 05:10 iluwatar

hi, please can u help me to run naked objects pattern project.. please.. i am new to maven. i tried to build naked objects project. Seperate jars are getting created for dom,fixture,integtests and webapp folder and also simpleapp.war inside webapps/target. How do i run this war file? I installed tomcat also..

tejashreeegithub avatar Oct 21 '19 13:10 tejashreeegithub

@tejashreeegithub there are many ways but probably easiest is to use the executable jar. First build it with mvn clean package and then in the webapp/target you can run java -jar naked-objects-webapp-1.22.0-SNAPSHOT-jetty-console.jar

iluwatar avatar Oct 21 '19 18:10 iluwatar

One way to resolve this issue could be to try to update the whole pattern. The instructions can be found on the Apache Isis website https://isis.apache.org/guides/ugfun/ugfun.html#_ugfun_getting-started_simpleapp-archetype.

iluwatar avatar Oct 21 '19 18:10 iluwatar

@tejashreeegithub there are many ways but probably easiest is to use the executable jar. First build it with mvn clean package and then in the webapp/target you can run java -jar naked-objects-webapp-1.22.0-SNAPSHOT-jetty-console.jar One small help.. what could be the output of it.? Actually i was able to see sc nakedObjectsPage But can we see any naked objects structure using this url localhost:8081.

Please help me in how this project shows up as result

tejashreeegithub avatar Oct 22 '19 05:10 tejashreeegithub

You can click the links there in the web app to go deeper. Learn more about Apache Isis and naked objects pattern by reading https://isis.apache.org/guides/ugfun/ugfun.html

iluwatar avatar Oct 22 '19 18:10 iluwatar

You can click the links there in the web app to go deeper. Learn more about Apache Isis and naked objects pattern by reading https://isis.apache.org/guides/ugfun/ugfun.html

I try so hard for understand that content inside there. 😐😐😐

hartpoli avatar Sep 05 '21 11:09 hartpoli

@iluwatar The above link is broken could you please update it with the relevant URL.

mohanaraosv avatar Apr 15 '22 20:04 mohanaraosv

The links have changed, but the website still contains all the relevant information. See https://isis.apache.org/ The idea is to use the simpleapp archetype and recreate the naked objects example with that.

iluwatar avatar Jul 05 '22 12:07 iluwatar

ok.

tq

hartpoli avatar Sep 23 '22 00:09 hartpoli

@iluwatar Could I work on this?

robertvolkmann avatar Nov 11 '22 09:11 robertvolkmann

Sure @robertvolkmann, go ahead!

iluwatar avatar Nov 12 '22 21:11 iluwatar