Liferay错误:“”的TagExtraInfo类;portlet:renderURL";无法实例化(com.liferay.taglib.portlet.RenderURLTei)

Liferay错误:“”的TagExtraInfo类;portlet:renderURL";无法实例化(com.liferay.taglib.portlet.RenderURLTei),liferay,portlet,taglib,liferay-7,Liferay,Portlet,Taglib,Liferay 7,我正试图按照以下说明使用Liferay 7.3.4创建一个非常简单的portlet: 除了下面的代码之外,我已经删除了所有内容,但仍然无法定义portlet:renderUrl标记 我收到的错误消息如下: The TagExtraInfo class for "portlet:renderURL" (com.liferay.taglib.portlet.RenderURLTei) could not be instantiated <%@ taglib uri

我正试图按照以下说明使用Liferay 7.3.4创建一个非常简单的portlet:

除了下面的代码之外,我已经删除了所有内容,但仍然无法定义portlet:renderUrl标记

我收到的错误消息如下:

The TagExtraInfo class for "portlet:renderURL" (com.liferay.taglib.portlet.RenderURLTei) could not be instantiated
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
我正在使用Maven构建这个项目,上面定义的portlet使用以下pom.xml:

<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>partner-portal-modules</artifactId>
        <groupId>partner.portal</groupId>
        <version>1.0.0</version>
    </parent>
    <groupId>com.xyz.portal.organization</groupId>
    <artifactId>com.xyz.portal.organization</artifactId>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.asset.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.comment.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.frontend.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.frontend.taglib.dynamic.section</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.frontend.taglib.form.navigator</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.frontend.taglib.util</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.journal.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.layout.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.site.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay.portal</groupId>
            <artifactId>com.liferay.portal.kernel</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.liferay.portal</groupId>
            <artifactId>com.liferay.util.taglib</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.portlet</groupId>
            <artifactId>portlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.service.component.annotations</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>biz.aQute.bnd</groupId>
                <artifactId>bnd-maven-plugin</artifactId>
                <version>4.3.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>bnd-process</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>biz.aQute.bnd</groupId>
                        <artifactId>biz.aQute.bndlib</artifactId>
                        <version>4.3.0</version>
                    </dependency>
                    <dependency>
                        <groupId>com.liferay</groupId>
                        <artifactId>com.liferay.ant.bnd</artifactId>
                        <version>3.2.3</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>com.liferay</groupId>
                <artifactId>com.liferay.css.builder</artifactId>
                <version>3.0.2</version>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>build</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <baseDir>src/main/resources/META-INF/resources</baseDir>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.1.2</version>
                <configuration>
                    <archive>
                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                    <excludes>
                        <exclude>**/META-INF/resources/**/.sass-cache/</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

4.0.0


此pom包括javax.portlet的以下版本:

<dependency>
    <groupId>javax.portlet</groupId>
    <artifactId>portlet-api</artifactId>
    <version>3.0.0</version>
</dependency>

javax.portlet
portlet api
3.0.0
然而,自动生成的view.jsp中的taglib如下所示:

The TagExtraInfo class for "portlet:renderURL" (com.liferay.taglib.portlet.RenderURLTei) could not be instantiated
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

也就是说,Maven说是JavaPortletV3.0,taglib说是PortletV2.0。不确定这是否是问题所在,到目前为止,我的研究还没有找到合适的解决方案

好奇的是,其他人是否也看到了同样的问题,以及它是如何解决的

谢谢,
Randy

如果这是运行时的问题,您是否尝试过?JSP编辑器有时不能正确地解决所有问题,而运行时环境可以。我发现,这似乎确实是JSP编辑器的一个问题:如果这是运行时的问题,您是否尝试过?JSP编辑器有时不能正确地解决所有问题,而运行时环境可以。我发现,这似乎确实是JSP编辑器的一个问题: