Tomcat启动Magnolia之后,我总是收到以下错误:

17:04:36.781 [localhost-startStop-1] ERROR info.magnolia.module.ModuleManagerImpl - Can't start module ui-framework
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/vaadin/data/util/converter/Converter$ConversionException
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2216) ~[guava-23.1-jre.jar:?]


之后,当我请求管理页面时,我不断收到这些错误。

INFO: Requested resource [/VAADIN/themes/valo/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
Jan 23, 2018 12:50:50 PM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
INFO: Requested resource [/VAADIN/themes/valo/favicon.ico] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.


除其他外,我在UI框架的依赖项中包括了我认为需要的所有内容:

<project>
  <!-- ... -->
  <dependency>
    <groupId>info.magnolia.ui</groupId>
    <artifactId>magnolia-ui-framework</artifactId>
    <version>${magnoliaUiVersion}</version>
  </dependency>
  <dependency>
    <groupId>info.magnolia.ui</groupId>
    <artifactId>magnolia-ui-admincentral</artifactId>
    <version>${magnoliaUiVersion}</version>
  </dependency>
  <dependency>
    <groupId>info.magnolia.ui</groupId>
    <artifactId>magnolia-ui-contentapp</artifactId>
    <version>${magnoliaUiVersion}</version>
  </dependency>
</project>




编辑1:

因此,我发现Magnolia Travel Demo中的magnolia-resources是版本2.4。在此版本(和Magnolia 5.6.1 Core)上运行时,登录屏幕不会显示Magnolia徽标。当我升级到版本2.6时,出现了木兰徽标。



编辑2:

现在,我可以登录了,而admincentral却无法加载。几秒钟后,将弹出以下消息:

Failed to load the widgetset: ./../VAADIN/widgetsets/info.magnolia.widgetset.MagnoliaWidgetSet/info.magnolia.widgetset.MagnoliaWidgetSet.nocache.js?1516882029507


以下是POM:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
    <modelVersion>4.0.0</modelVersion>
    <groupId><!-- hidden --></groupId>
    <artifactId><!-- hidden --></artifactId>
    <name><!-- hidden --></name>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <description><!-- hidden --></description>

    <properties>
        <magnoliaVersion>5.6.1</magnoliaVersion>
        <magnoliaUiVersion>5.6.1</magnoliaUiVersion>
        <magnoliaDamVersion>2.3</magnoliaDamVersion>
        <magnoliaPasswordManagerVersion>1.2</magnoliaPasswordManagerVersion>
        <magnoliaImagingVersion>3.4</magnoliaImagingVersion>
        <magnoliaCategorizationVersion>2.6</magnoliaCategorizationVersion>
        <magnoliaTemplatingVersion>1.2</magnoliaTemplatingVersion>
        <magnoliaResourcesVersion>2.6</magnoliaResourcesVersion>
        <magnoliaFormVersion>2.4</magnoliaFormVersion>
        <magnoliaSiteVersion>1.2</magnoliaSiteVersion>
        <vaadinVersion>8.1.5</vaadinVersion>
        <mavenCompilerVersion>3.6.1</mavenCompilerVersion>
        <tomcat7Version>2.2</tomcat7Version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- info.magnolia -->
            <dependency>
                <groupId>info.magnolia</groupId>
                <artifactId>magnolia-project</artifactId>
                <version>${magnoliaVersion}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>info.magnolia.ui</groupId>
                <artifactId>magnolia-ui-project</artifactId>
                <version>${magnoliaUiVersion}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>info.magnolia.cache</groupId>
                <artifactId>magnolia-cache-core</artifactId>
                <version>${magnoliaVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.site</groupId>
                <artifactId>magnolia-site</artifactId>
                <version>${magnoliaSiteVersion}</version>
            </dependency>

            <!-- info.magnolia.dam -->
            <dependency>
                <groupId>info.magnolia.dam</groupId>
                <artifactId>magnolia-dam-templating</artifactId>
                <version>${magnoliaDamVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.dam</groupId>
                <artifactId>magnolia-dam-jcr</artifactId>
                <version>${magnoliaDamVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.dam</groupId>
                <artifactId>magnolia-dam-api</artifactId>
                <version>${magnoliaDamVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.dam</groupId>
                <artifactId>magnolia-dam-app</artifactId>
                <version>${magnoliaDamVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.dam</groupId>
                <artifactId>magnolia-dam-imaging</artifactId>
                <version>${magnoliaDamVersion}</version>
            </dependency>

            <!-- info.magnolia.imaging -->
            <dependency>
                <groupId>info.magnolia.imaging</groupId>
                <artifactId>magnolia-imaging</artifactId>
                <version>${magnoliaImagingVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.imaging</groupId>
                <artifactId>magnolia-imaging-support</artifactId>
                <version>${magnoliaImagingVersion}</version>
            </dependency>

            <!-- info.magnolia.passwordmanager -->
            <dependency>
                <groupId>info.magnolia.passwordmanager</groupId>
                <artifactId>magnolia-module-password-manager</artifactId>
                <version>${magnoliaPasswordManagerVersion}</version>
            </dependency>

            <!--  info.magnolia.resources -->
            <dependency>
                <groupId>info.magnolia.boms</groupId>
                <artifactId>magnolia-external-dependencies</artifactId>
                <version>${magnoliaVersion}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>info.magnolia.resources</groupId>
                <artifactId>magnolia-resources</artifactId>
                <version>${magnoliaResourcesVersion}</version>
            </dependency>

            <!-- info.magnolia.categorization -->
            <dependency>
                <groupId>info.magnolia.categorization</groupId>
                <artifactId>magnolia-categorization</artifactId>
                <version>${magnoliaCategorizationVersion}</version>
            </dependency>

            <!-- info.magnolia.templating -->
            <dependency>
                <groupId>info.magnolia.templating</groupId>
                <artifactId>magnolia-templating-kit</artifactId>
                <version>${magnoliaTemplatingVersion}</version>
            </dependency>
            <dependency>
                <groupId>info.magnolia.templating</groupId>
                <artifactId>magnolia-templating-essentials-models</artifactId>
                <version>${magnoliaTemplatingVersion}</version>
            </dependency>

            <!-- info.magnolia.form -->
            <dependency>
                <groupId>info.magnolia.form</groupId>
                <artifactId>magnolia-form</artifactId>
                <version>${magnoliaFormVersion}</version>
            </dependency>

            <!--  com.vaadin -->
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-compatibility-server</artifactId>
                <version>${vaadinVersion}</version>
            </dependency>
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-server</artifactId>
                <version>${vaadinVersion}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <repositories>
        <repository>
            <id>magnolia.public</id>
            <url>https://nexus.magnolia-cms.com/content/groups/public</url>
            <snapshots />
        </repository>
        <!-- IF YOU NEED MODULES FROM THE ENTERPRISE VERSION, UNCOMMENT THE FOLLOWING REPOSITORY -->
        <!--
        <repository>
          <id>magnolia.enterprise.releases</id>
          <url>https://nexus.magnolia-cms.com/content/repositories/magnolia.enterprise.releases</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        -->
        <repository>
            <id>vaadin-addons</id>
            <url>https://maven.vaadin.com/vaadin-addons</url>
        </repository>
    </repositories>

    <profiles>
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <profileName>default</profileName>
                <downloadSources>true</downloadSources>
                <downloadJavadocs>true</downloadJavadocs>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.tomcat.maven</groupId>
                        <artifactId>tomcat7-maven-plugin</artifactId>
                        <version>${tomcat7Version}</version>
                        <configuration>
                            <path>/</path>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${mavenCompilerVersion}</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <modules>
        <module><!-- hidden -->-webapp</module>
        <module><!-- hidden -->-blossom</module>
    </modules>
</project>


有什么想法吗?

最佳答案

请查看https://documentation.magnolia-cms.com/display/DOCS56/Upgrading+to+Magnolia+5.6.x。特别是Vaadin8升级和BOM的一部分。我相信您必须从BOM项目中导入依赖性管理部分。

希望这可以帮助,
干杯,

07-24 09:23