ext插件不能在liferay 6.1.2 jboss7 [英] ext plugin not working in liferay 6.1.2 jboss7
问题描述
我创建了一个扩展插件,用于扩展Liferay LDAP DefaultPortalToLDAPConverter 。我在eclipse中创建了一个ext插件。在 ext-impl / src / main / java / com / liferay / portal / security / ldap / CustomPortalToLDAPConverter
我扩展 DefaultPortalToLDAPConverter
和只保留我班上更改的方法。另外我添加了 ext-spring.xml
I created an ext-plugin for extending Liferay LDAP DefaultPortalToLDAPConverter. I created an ext plugin in eclipse. In the ext-impl/src/main/java/com/liferay/portal/security/ldap/CustomPortalToLDAPConverter
i extended DefaultPortalToLDAPConverter
and kept only the changed methods in my class. Also I added in ext-spring.xml
<bean id="portalToLDAPConverter" class="com.liferay.portal.security.ldap.CustomPortalToLDAPConverter" />
然后部署了ext。部署进展顺利,没有任何错误。但是没有发生变化。我在做什么有什么问题吗?我使用 jboss7.1.1最终捆绑的Liferay6.1.2 。我使用maven构建,然后通过将war文件放在liferay-home / deploy 中来部署。然后我尝试重新启动服务器。现在我可以看到我的ext-spring.xml在jar文件中丢失了。有什么具体原因吗?请帮助。
and then deployed the ext. The deployment went well without any errors. But the changes did not take place. Is there anything wrong in what I am doing? I use jboss7.1.1-final bundled Liferay6.1.2. I build using maven and then deploy by placing the war file in liferay-home/deploy. Then I tried restarting the server. Now I could see that my ext-spring.xml is missing in the jar file. Is there any specific reason for this? Please help.
推荐答案
大多数教程都说META-INF应该放在ext-impl / src或ext -impl / src / main文件夹。这样做不是将我的ext-spring.xml放在jar版本中。将jar转移到ext-impl / src / main / resources,并检测到META-INF。重新启动后,更改生效。
Most of the tutorials say that the META-INF should be placed in the ext-impl/src or ext-impl/src/main folder. Doing so was not placing my ext-spring.xml in the jar build. Shifting the jar to ext-impl/src/main/resources helped and the META-INF was detected. Upon restarting, the changes took effect.
这篇关于ext插件不能在liferay 6.1.2 jboss7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!