liferay-6 相关问题

Liferay是一个开源的Java门户和社交平台。第6个主要版本于2010年6月发布,包括6.0.x,6.1.x和6.2.x,随后是2016年5月/ 6月的主要版本7.将此标记用于给定版本的Enterprise和Community Edition。

在 Liferay6.2 中部署日历 portlet 时出现 MalformedURLException

我在部署时遇到以下错误 Liferay6.2 Ga2 中的日历 portlet 出现此错误后,即使 Liferay 热部署也无法正常工作。 警告:无法处理路径为 TLD [...

回答 1 投票 0

重定向到liferay私人页面,登录后

全部, 我有一个登录后挂钩,它将用户重定向到他的私人页面,用户只有私人页面,没有公共、社区、原始页面。 问题: 登录后,用户关闭

回答 1 投票 0

liferay - 如何在另一个 Portlet 中渲染一个 Portlet

Liferay 新手。 不确定这是否是正确的方法,但是.. 我有一个呈现 portlet 的页面。在这个 portlet 中,我需要有条件地呈现另一个 portlet(基于存储在 da 中的标志...

回答 1 投票 0

构建时出现 MojoExecutionException - Maven

以下是我在 pom 中构建 Maven 项目时包含的目标。 以下是我在 pom 中构建 Maven 项目时包含的目标。 <?xml version="1.0"?> <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>com.mynewproject.portlet</groupId> <artifactId>abc-myfacts-portlet</artifactId> <packaging>war</packaging> <name>ABC MY FACTS Portlet</name> <version>2.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>com.liferay.maven.plugins</groupId> <artifactId>liferay-maven-plugin</artifactId> <version>${liferay.maven.plugin.version}</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>build-css</goal> </goals> </execution> </executions> <configuration> <autoDeployDir>${liferay.auto.deploy.dir}</autoDeployDir> <appServerDeployDir>${liferay.app.server.deploy.dir}</appServerDeployDir> <appServerLibGlobalDir>${liferay.app.server.lib.global.dir}</appServerLibGlobalDir> <appServerPortalDir>${liferay.app.server.portal.dir}</appServerPortalDir> <liferayVersion>${liferay.version}</liferayVersion> <pluginType>portlet</pluginType> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.5</version> <configuration> <encoding>UTF-8</encoding> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> <dependencies> <!-- Liferay dependency --> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> <optional>true</optional> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.6.5</version> </dependency> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-instrument</artifactId> <version>3.1.0.RELEASE</version> </dependency> --> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>portal-service</artifactId> <version>${liferay.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>util-bridges</artifactId> <version>${liferay.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>util-taglib</artifactId> <version>${liferay.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>util-java</artifactId> <version>${liferay.version}</version> <scope>provided</scope> </dependency> <!-- Portlet/JSR dependency --> <dependency> <groupId>javax.portlet</groupId> <artifactId>portlet-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <!-- Servlet/JSP dependency --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> <scope>runtime</scope> </dependency> <!-- Spring dependency --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc-portlet</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-agent</artifactId> <version>2.5.6</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.6.12</version> </dependency> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3</version> </dependency> <!-- Log4j configuration --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.4.2</version> </dependency> <!-- Unit testing --> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.9.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> </dependency> <!-- Data Service dependency --> <dependency> <groupId>com.mynewproject.components</groupId> <artifactId>abc-mynewproject-service</artifactId> <version>2.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.mynewproject.components</groupId> <artifactId>emailcomponent</artifactId> <version>2.0-SNAPSHOT</version> </dependency> </dependencies> <profiles> <profile> <id>Liferay-v6.2-EE-(Tomcat-7)</id> <properties> <liferay.version>6.2.2</liferay.version> <liferay.maven.plugin.version>7.0.0-m2</liferay.maven.plugin.version> <liferay.auto.deploy.dir>..\Liferay Portal\liferay-portal-6.2.10.1-ee-ga1\deploy</liferay.auto.deploy.dir> <liferay.app.server.deploy.dir>..\Liferay Portal\liferay-portal-6.2.10.1-ee-ga1\tomcat-7.0.42\webapps</liferay.app.server.deploy.dir> <liferay.app.server.lib.global.dir>..\Liferay Portal\liferay-portal-6.2.10.1-ee-ga1\tomcat-7.0.42\lib\ext</liferay.app.server.lib.global.dir> <liferay.app.server.portal.dir>..\Liferay Portal\liferay-portal-6.2.10.1-ee-ga1\tomcat-7.0.42\webapps\ROOT</liferay.app.server.portal.dir> </properties> </profile> </profiles> </project> 但是当我执行构建时,出现以下错误: [ERROR] 执行目标失败 com.liferay.maven.plugins:liferay-maven-plugin:6.2.1:build-css (默认)在项目 myNewProject 上:null:MojoExecutionException: NullPointerException -> [帮助 1] org.apache.maven.lifecycle.LifecycleExecutionException: 失败 执行目标 com.liferay.maven.plugins:liferay-maven-plugin:6.2.1:build-css (默认)在项目 myNewProject 上:null 在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 在 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108) 在 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) 在 org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 在 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) 在 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) 我的问题是: 当我执行构建时,是什么导致了空指针异常? 这个问题发生在我的 Mac 上。 我用 JAVA_HOME=/usr/libexec/java_home -v 1.8 切换到 JDK 8 echo $JAVA_HOME表演 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home 原来这个JDK版本有问题 我使用JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home修复了它(在安装官方JDK8之后) 现在echo $JAVA_HOME演出 /Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home 首先,您需要检查您正在使用的 liferay 版本,如果它在您的pom.xml中提到。 此外,当您尝试使用旧版本的 Maven 构建 Liferay 项目时,可能会抛出错误。使用命令检查您使用的 Maven 版本 mvn-版本 此外,您正在使用的 JDK 应该在您的 POM.xml 中正确提及。 我发现 khmarbaise 的评论是正确的,因为版本也可能存在冲突。希望这会有所帮助。

回答 2 投票 0

如何在 Liferay 中将 javascript 对象处理到后端,

我使用 jqGrid API 在 view.jsp 中创建了一个表并将该表数据保存到一个 javascript 对象中,现在我想使用 Liferay portlet 将该表数据(javascript 对象)保存到数据库中? 我用过

回答 0 投票 0

如何在Liferay中用javascript检索用户的个人资料图片?

我想用javascript获取用户资料图片 Liferay.Service('userget-user by screen-name',{ companyId: Liferay.ThemeDisplay.getCompanyId(), screenName: 'marcio.sena' }, ...

回答 1 投票 0

Intellij Idea Liferay 6.2 服务器

我试图在Intellij Idea中安装Liferay 6.2服务器。我知道Liferay插件只支持Liferay 7,但我需要Liferay 6.2。有人成功地在Idea中安装了Liferay 6.2吗?我无法添加服务器...

回答 1 投票 0

以编程方式在liferay中获取页面的网址

我想在portlet中创建链接,以便可以导航到liferay门户中的其他页面。我要这样做是要寻找给定页面名称的API(可能是liferay专用的),...

回答 4 投票 18

Liferay 6.2自定义联接同名的列重叠

我在本教程之后创建了一个自定义联接,其中两个表包含一些具有相同名称的列,并且在结果集中,第一个表列的值覆盖了...

回答 1 投票 0

无法链接角色名称为[rolename] liferay 6.1的portlet [portletname]的角色

当我在liferay 6.1.2上部署portlet时,出现以下错误:01:57:10,382错误[pool-2-thread-1] [PortletImpl:2253]无法链接portlet的角色[numberauctionmenu_WAR_numberauctionportlet] ...] >

回答 1 投票 0

带有SOAP XML JAX-WS(WAS Portal 7)的Java 1.6 Maven项目到Tomcat Liferay 6.2 GA6无法访问端点

我正试图了解我在这里想念的东西...需要你们提供一些指导。因此,以前我曾在IBM WAS(Websphere ...

回答 1 投票 0

componentWillReceiveProps渲染多次

我正在使用三个不同的函数从数据库中获取数据,但是正如我已经看到的那样,componentWillReceiveProps在这种情况下将重新渲染三次,这会导致在...中复制我的元素。

回答 1 投票 0

如何在liferay 6.2中的每个新选项卡上实例化一个新的会话范围控制器,同时保持旧的选项卡

我遇到了一个基于Liferay 6.2的应用程序,其中每个页面都由一个会话范围控制器支持,因为该用户无法在浏览器的两个不同选项卡上使用同一页面,... ...]

回答 1 投票 0


[在JBoss上使用Liferay的Java垃圾回收问题:GC执行了多次

我们在由Liferay 6.2和JBoss 6.4.5组成的环境中遇到垃圾回收问题。服务器运行平稳,GC接缝正常执行,但是在某一时刻...

回答 1 投票 0

在Liferay Portlet中创建JSONObject和JSONArray

哪个是在Liferay Portlet中创建JSONObject和JSONArray的最佳选择?您无法通过简单的方式执行Java:JSONObject json = new JSONObject(); JSONArray arrayJson =新的JSONArray();错误:...

回答 1 投票 0

如何更改未找到资产发布者默认消息?

我有一个新闻/文章的资产发布者,但是当我在友好的URL中输入不存在的文章的名称时,会出现错误消息。友善网址:/-/ a sset_publisher / instanceID / content / name -...

回答 1 投票 0

无法下载Liferay以前的版本

我一直在尝试下载Liferay EE版本的过去版本。 Liferay Portal 6.2 EE SP11 https://www.liferay.com/community/releases/-/asset_publisher/nSr2/content/id/52182830但是...

回答 1 投票 0

在liferay 6.2中获取“ Portlet Portlet_WAR_portletID具有空Portlet包”

我创建了一个liferay插件portlet项目,并在Liferay 6.2中进行了部署。当我尝试部署时,出现“ Portlet Portlet_WAR_portletID具有空Portlet包”错误。我找不到根...

回答 2 投票 7

如何从Liferay 7.1中的URL中删除'/ o'前缀

在Liferay 6.2中,我制作了一个名为'create-user-spring'的模块,该模块是使用spring构建的。在此模块中,我创建了一个名为'createUser'的方法,该方法具有请求映射(@RequestMapping(value =“ / create -...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.