gpt4 book ai didi

java - MarkupFactory - 未找到标记,如何调试 ResourceStreamLocator?

转载 作者:行者123 更新时间:2023-12-01 08:57:37 26 4
gpt4 key购买 nike

我正在尝试更改网页的父类(super class)以实现更好的菜单。

什么是

public class BasePage extends WebPage

public class TermsEditPage extends BasePage

现在

public abstract class IABasePage extends WebPage

public class TermsEditPage extends IABasePage

BasePage 和 IABasePage 使用

<wicket:child />

TermsEditPage 使用

<wicket:extend>

IABasePage 和TermsEditPage 位于同一文件夹中。 BasePage 位于不同的文件夹中。我已经尝试将 IABasePage 作为抽象和非抽象,但在这两种情况下,它都会在页面运行时崩溃。

09:53:54.548 [http-bio-8080-ex] ERROR o.apache.wicket.markup.MarkupFactory - Markup not found: Base markup of inherited markup not found. Component class: com.linguaclassica.instadmin.TermsEditPage. 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: com.linguaclassica.instadmin.TermsEditPage. 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) ~[wicket-core-6.20.0.jar:6.20.0]

如何调试 ResourceStreamLocator?我没有自定义资源,并且对该操作感到困惑。

最佳答案

当我创建 HTML 文件时,我没有注意到 Eclipse 在 webapp 文件夹而不是我选择的文件夹中创建了它们。我从未关闭过这些文件或必须打开它们。一旦文件被移动到正确的位置,程序就可以工作。

关于java - MarkupFactory - 未找到标记,如何调试 ResourceStreamLocator?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41939107/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com