Results 1 to 7 of 7
  1. #1
    Markus138 is offline Member
    Join Date
    Jul 2013
    Posts
    4
    Rep Power
    0

    Default [solved] Wicket Application Problem

    Hello,

    I have a problem with my new project and I hope someone here may know the answer. I'm building a simple wicket page, but I can't get it working. I start with loading my class like any other wicket application:

    Java Code:
    public class WicketApplication extends WebApplication {
    	@Override
    	public Class<? extends WebPage> getHomePage() {
    		return CharDetail.class;
    	}
    but when I start the Application instead of loading my CharDetail class I get the exception:

    Java Code:
    ERROR - MarkupFactory              - Markup not found: Base markup of inherited markup not found. Component class: at.itn.core.skillz.CharDetail. Enable debug messages for org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a list of all filenames tried.
    org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited markup not found. Component class: at.itn.core.skillz.CharDetail. Enable debug messages for org.apache.wicket.core.util.resource.locator.ResourceStreamLocator to get a list of all filenames tried.
    	at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:71)
    	at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:52)
    	at org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:412)
    	at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:448)
    	at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:541)
    	at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:305)
    	at org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:236)
    	at org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:194)
    	at org.apache.wicket.MarkupContainer.getAssociatedMarkup(MarkupContainer.java:405)
    	at org.apache.wicket.Component.getMarkup(Component.java:728)
    	at org.apache.wicket.Component.internalRender(Component.java:2344)
    	at org.apache.wicket.Component.render(Component.java:2307)
    	at org.apache.wicket.Page.renderPage(Page.java:1010)
    	at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
    	at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:271)
    	at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:165)
    	at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
    	at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
    	at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
    	at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
    	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
    	at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
    	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
    	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
    	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332)
    	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
    	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
    	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
    	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
    	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
    	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
    	at org.eclipse.jetty.server.Server.handle(Server.java:344)
    	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
    	at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
    	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)
    	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)
    	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
    	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
    	at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)
    	at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)
    	at org.eclipse.jetty.server.ssl.SslSocketConnector$SslConnectorEndPoint.run(SslSocketConnector.java:665)
    	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
    	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
    	at java.lang.Thread.run(Thread.java:722)
    Unfortunately I don't know where this error could come from. Has anyone any ideas on how I could locate the problem?

    greetings
    Markus

    edit: It seems the class can't be loaded, but I dont know why. Here is my class:

    Java Code:
    public class CharDetail extends WebPage {
    
    	private static final long	serialVersionUID	= -5227551623926459622L;
    	private Long				skillId;
    	private Logger				log					= Logger.getLogger(this.getClass().getName());
    	private List<SkillzBean>	skillz				= new ArrayList<SkillzBean>();
    
    	public CharDetail() {
    		init(null);
    	}
    
    	public CharDetail(String id) {
    
    		this.skillId = null;
    		init(skillId);
    	}
            // ......
    Last edited by Markus138; 07-05-2013 at 12:53 PM.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: Wicket Application Problem

    Wicket is complaining about markup, which is likely related to the HTML file that matches your CharDetail page and not the java code. Do you have this file (CharDetail.html) at all?

    Note:

    Java Code:
    public CharDetail(String id) {
     
            this.skillId = null;
            init(skillId);
    that doesn't look correct, probably you want to pass the id parameter to the init method.

  3. #3
    Markus138 is offline Member
    Join Date
    Jul 2013
    Posts
    4
    Rep Power
    0

    Default Re: Wicket Application Problem

    thanks for the reply!

    yes I have the CharDetail.html file. It's in the same package with CharDetail.java. I did some research, but I'm still not sure how to load the html files correctly. Can you give me a hint?

    ah and yeah, the java code is wrong, but shouldn't be a problem in this case.

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: Wicket Application Problem

    Wicket does the loading for you. But you have to make sure the markup is correct as Wicket parses it. And you have to be positive the spelling, including case, is equal. But in this case wicket is complaining about a BASE markup - that reads to me like it cannot find a base template. Do you perhaps have a wicket:extend in your html source? That isn't going to work without an actual base class and template for your pages.

    Why don't you just go ahead and post the HTML content too. And while you're at it, try a google for "apache wicket Base markup of inherited markup not found" to see what you get.

  5. #5
    Markus138 is offline Member
    Join Date
    Jul 2013
    Posts
    4
    Rep Power
    0

    Default Re: Wicket Application Problem

    thank you very much for your help! The problem really was a wicket:extend in my html source! Now it's working fine!

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: Wicket Application Problem

    Note that generally you actually do want that wicket:extend to be there because you will probably want to have at least a common template for all your pages, but that is the next step. So pretty soon you'll be putting it back.

  7. #7
    Markus138 is offline Member
    Join Date
    Jul 2013
    Posts
    4
    Rep Power
    0

    Default Re: Wicket Application Problem

    ok thanks for the info, I'll have to do some research about it - but one step at a time!
    thank you for your help!

Similar Threads

  1. Replies: 0
    Last Post: 04-08-2013, 09:48 PM
  2. simple wicket example won't run
    By ronr34 in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 12-27-2011, 11:08 AM
  3. org.apache.wicket.markup.html.form.upload.FileUplo ad class
    By aydeger in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 12-10-2011, 02:19 PM
  4. Retrieving html from wicket components
    By BobswYourUcle in forum Web Frameworks
    Replies: 0
    Last Post: 06-28-2011, 05:17 PM
  5. Replies: 0
    Last Post: 03-24-2010, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •