java - Markups in src/main/resources cannot be found in Wicket 7.3.0 project running on Jetty -
i have created wicket 7.3.0 project using quick start wizard.
i have moved file homepage.html
src/main/resources , achieved following directory structure: image
this part of generated pom.xml
:
<build> <resources> <resource> <filtering>false</filtering> <directory>src/main/resources</directory> </resource> <resource> <filtering>false</filtering> <directory>src/main/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> // etc... </build>
yet when start application on jetty server, following error:
root cause: org.apache.wicket.markup.markupnotfoundexception: can not determine markup. component not yet connected parent. [page class = de.vantroba.modelview.web.homepage, id = 0, render count = 1] @ org.apache.wicket.component.getmarkup(component.java:749) @ org.apache.wicket.component.internalrender(component.java:2345) @ org.apache.wicket.component.render(component.java:2308) @ org.apache.wicket.page.renderpage(page.java:1018) @ org.apache.wicket.request.handler.render.webpagerenderer.renderpage(webpagerenderer.java:124) @ org.apache.wicket.request.handler.render.webpagerenderer.respond(webpagerenderer.java:236) @ org.apache.wicket.core.request.handler.renderpagerequesthandler.respond(renderpagerequesthandler.java:175) @ org.apache.wicket.request.cycle.requestcycle$handlerexecutor.respond(requestcycle.java:895) @ org.apache.wicket.request.requesthandlerstack.execute(requesthandlerstack.java:64) @ org.apache.wicket.request.cycle.requestcycle.execute(requestcycle.java:265) @ org.apache.wicket.request.cycle.requestcycle.processrequest(requestcycle.java:222) @ org.apache.wicket.request.cycle.requestcycle.processrequestanddetach(requestcycle.java:293) @ org.apache.wicket.protocol.http.wicketfilter.processrequestcycle(wicketfilter.java:261) @ org.apache.wicket.protocol.http.wicketfilter.processrequest(wicketfilter.java:203) @ org.apache.wicket.protocol.http.wicketfilter.dofilter(wicketfilter.java:284) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97) @ org.eclipse.jetty.server.server.handle(server.java:499) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:310) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257) @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:540) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555) @ java.lang.thread.run(thread.java:745)
it seems markup file can not found. can tell me, missing? appreciated.
solution simpler thought. checked target/classes/... folder martin-g recommended. did not found markups, tried clean , refresh project , markups copied folder , application works now.
Comments
Post a Comment