gpt4 book ai didi

java - Apache Isis SimpleApp 原型(prototype) - 干净运行类路径错误

转载 作者:行者123 更新时间:2023-12-01 12:24:44 27 4
gpt4 key购买 nike

我正在尝试使用此 mvn 命令运行从原型(prototype)生成的 Apache Isis 应用程序:

mvn archetype:generate  \
-D archetypeGroupId=org.apache.isis.archetype \
-D archetypeArtifactId=simpleapp-archetype \
-D archetypeVersion=1.6.0 \
-D groupId=com.mycompany \
-D artifactId=myapp \
-D version=1.0-SNAPSHOT \
-B

我已经按照这个screencast启动了Jetty应用服务器在我的 IntelliJ Idea 中,但当我尝试列出所有“SimpleObjects”时,我不断收到错误。

Caused by: org.apache.isis.core.metamodel.exceptions.MetaModelException: java.lang.NoClassDefFoundError: org/datanucleus/store/rdbms/query/QueryToSQLMapper$SQLTableMapping
at org.apache.isis.core.commons.lang.ThrowableExtensions.throwWithinIsisException(ThrowableExtensions.java:60)
at org.apache.isis.core.metamodel.facets.actions.interaction.ActionInvocationFacetForInteractionAbstract.internalInvoke(ActionInvocationFacetForInteractionAbstract.java:376)
at org.apache.isis.core.metamodel.facets.actions.interaction.ActionInvocationFacetForInteractionAbstract.invoke(ActionInvocationFacetForInteractionAbstract.java:188)
at org.apache.isis.core.runtime.transaction.facets.ActionInvocationFacetWrapTransaction$1.execute(ActionInvocationFacetWrapTransaction.java:57)
at org.apache.isis.core.runtime.transaction.facets.ActionInvocationFacetWrapTransaction$1.execute(ActionInvocationFacetWrapTransaction.java:54)
at org.apache.isis.core.runtime.system.transaction.IsisTransactionManager.executeWithinTransaction(IsisTransactionManager.java:201)
at org.apache.isis.core.runtime.transaction.facets.ActionInvocationFacetWrapTransaction.invoke(ActionInvocationFacetWrapTransaction.java:54)
at org.apache.isis.core.metamodel.specloader.specimpl.ObjectActionImpl.execute(ObjectActionImpl.java:342)
at org.apache.isis.viewer.wicket.model.models.ActionModel.executeAction(ActionModel.java:458)
at org.apache.isis.viewer.wicket.model.models.ActionModel.load(ActionModel.java:445)
at org.apache.isis.viewer.wicket.model.models.ActionModel.load(ActionModel.java:78)
at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:121)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionHandlingApplicationExceptions(ActionPanel.java:300)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:206)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:154)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:93)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.<init>(ActionPanel.java:78)
at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49)
at org.apache.isis.viewer.wicket.viewer.registries.components.ComponentFactoryRegistryDefault.createComponent(ComponentFactoryRegistryDefault.java:129)
at org.apache.isis.viewer.wicket.ui.components.widgets.cssmenu.ActionLinkFactoryAbstract$1.onClick(ActionLinkFactoryAbstract.java:103)
at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:86)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)
... 41 more

从原型(prototype)生成项目后是否还需要添加其他依赖项?

感谢您的帮助。

最佳答案

没有任何其他依赖项,但有一个问题:您是否正确设置了 datanucleus 增强器任务?这通常是问题所在。请参阅Apache Isis网站了解更多详情。

您可能还想订阅我们的users mailing list .

关于java - Apache Isis SimpleApp 原型(prototype) - 干净运行类路径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26453191/

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