http://examples8x.wicket.apache.org/index.html is running on Tomcat 8.5.14 now!
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, May 29, 2017 at 12:47 PM, Andrea Del Bene <an.delb...@gmail.com> wrote: > Hi, > > I used a DIY for the new version of the user guide examples, which runs on > Tomcat 8.5. There are some config pitfalls to solve in order to use this > kind of application. I can take a look at it in the next days. In the > meantime you could take a look at configuration files I use here: > https://github.com/bitstorm/Wicket-tutorial-examples/tree/ > master/StarterExamples/tomcat-conf > > On Mon, May 29, 2017 at 12:41 PM, Martin Grigorov <mgrigo...@apache.org> > wrote: > > > Using Tomcat 7 is not an option because OpenShift starts it with Java 7: > > > > Caused by: java.lang.UnsupportedClassVersionError: > > com/google/common/base/Function : Unsupported major.minor version 52.0 > > (unable to load class com.google.common.base.Function) > > > > So the next option is Do It Yourself: > > https://blog.openshift.com/how-to-run-apache-tomcat-8-on-openshift/ > > > > But my lunch break is over and for now examples8x is down. > > > > Martin Grigorov > > Wicket Training and Consulting > > https://twitter.com/mtgrigorov > > > > On Mon, May 29, 2017 at 12:21 PM, Martin Grigorov <mgrigo...@apache.org> > > wrote: > > > > > Hi, > > > > > > It might take a bit longer to fix this. > > > > > > The exception is: > > > Caused by: java.lang.RuntimeException: An error occurred while getting > > the > > > model object for Component: [ListView [Component id = file, page = > > > org.apache.wicket.examples.source.SourcesPage, path = filespanel:file, > > > type = org.apache.wicket.markup.html.list.ListView, isVisible = true, > > > isVersioned = true]] > > > at org.apache.wicket.Component.getDefaultModelObject( > > Component.java:1651) > > > at org.apache.wicket.markup.html.list.ListView.getViewSize( > > > ListView.java:218) > > > at org.apache.wicket.markup.html.list.ListView.onPopulate( > > > ListView.java:472) > > > at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender( > > > AbstractRepeater.java:124) > > > at org.apache.wicket.Component.internalBeforeRender( > Component.java:948) > > > at org.apache.wicket.Component.beforeRender(Component.java:1016) > > > at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( > > > MarkupContainer.java:1749) > > > ... 62 more > > > Caused by: java.lang.IllegalArgumentException: URI scheme is not > "file" > > > at java.io.File.<init>(File.java:421) > > > at org.apache.wicket.examples.source.SourcesPage$ > > > PackagedResourcesModel.get(SourcesPage.java:209) > > > at org.apache.wicket.examples.source.SourcesPage$ > > > PackagedResourcesModel.load(SourcesPage.java:149) > > > at org.apache.wicket.examples.source.SourcesPage$ > > > PackagedResourcesModel.load(SourcesPage.java:139) > > > at org.apache.wicket.model.LoadableDetachableModel.getObject( > > > LoadableDetachableModel.java:126) > > > at org.apache.wicket.Component.getDefaultModelObject( > > Component.java:1644) > > > ... 68 more > > > > > > Examples 7.x and 6.x use Tomcat 7.x > > > Examples 8.x uses Wildfly 10 because Wicket 8.x needs Servlet 3.1.0 and > > > there is no option of using Tomcat 8.5+ at OpenShift. > > > > > > Wildfly (and previous versions of JBoss) are famous with their custom > > > modules impl that makes reading of classpath much harder than a normal > > > servlet container... > > > > > > I think the easiest is to drop the Wildfly usage and use Tomcat 7 for > 8.x > > > examples as well. > > > > > > > > > Martin Grigorov > > > Wicket Training and Consulting > > > https://twitter.com/mtgrigorov > > > > > > On Mon, May 29, 2017 at 10:26 AM, Francois Meillet < > > > francois.meil...@gmail.com> wrote: > > > > > >> Hi Examples Website Maintainer, > > >> > > >> "Source code" option on example page returns 500 - any chance for > > solving > > >> this problem? E.g. here: examples8x.wicket.apache.org/forminput/ < > > >> https://t.co/1gkfLZZZi5> > > >> > > >> Thanks > > >> > > >> François > > >> > > >> > > >> > > >> > > > > > >