Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Scarletake Bwi
about custom hook portlet(chat)
April 11, 2013 10:46 PM
Answer

Scarletake Bwi

Rank: Regular Member

Posts: 114

Join Date: December 19, 2010

Recent Posts

hi

i tried customize chat portlet.
first, i download the source code.
after i modified it, i deploy, and the log shows


13:40:36,357 INFO [pool-2-thread-5][HotDeployImpl:178] Deploying CustomChat-hook from queue
13:40:36,357 INFO [pool-2-thread-5][PluginPackageUtil:1033] Reading plugin package for CustomChat-hook
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/portlet.properties
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/service.properties
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/portlet.properties
2013/4/12 下午 01:40:36 org.apache.catalina.core.ApplicationContext log
資訊: Initializing Spring root WebApplicationContext
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/service.properties
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/service.properties
13:40:36,713 INFO [pool-2-thread-5][HookHotDeployListener:550] Registering hook for CustomChat-hook
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/portal.properties
13:40:36,719 INFO [pool-2-thread-5][HookHotDeployListener:690] Hook for CustomChat-hook is available for use
Loading file:/D:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/CustomChat-hook/WEB-INF/classes/portlet.properties



seen my chat portlet should been deployed.
but, where is it? i just cannot see it.

or anything wrong?

all i do is just modified ContRollerProcessor. i have to make sure some user cannot contact each other.

thank you.
Parikshit Sharma
RE: about custom hook portlet(chat)
April 12, 2013 12:40 AM
Answer

Parikshit Sharma

Rank: New Member

Posts: 21

Join Date: January 16, 2013

Recent Posts

It, seems that it's getting error at the time of deployment which is handled using try catch in code,please debug the code and start debugging from the deployment descriptor.
Manisha Thote
RE: about custom hook portlet(chat)
April 13, 2013 3:12 PM
Answer

Manisha Thote

Rank: New Member

Posts: 7

Join Date: February 13, 2012

Recent Posts

Hi,

As you have get the source code of chat portlet,then verify that all the files are copied properly when you have created the portlet.
the same process works for me.

Thanks,
Manisha Thote
Scarletake Bwi
RE: about custom hook portlet(chat)
April 13, 2013 8:26 PM
Answer

Scarletake Bwi

Rank: Regular Member

Posts: 114

Join Date: December 19, 2010

Recent Posts

thank you for reply, all of you.

my process is.

1. download the source code.
2. create a hook project.
3. copy the source into the project.
4. create a class extend from the source, and modify the xml.
5. complete it and deploy.

everything go fine, but i just cannot see the chat bar under the page...

the class name ChatPollerProcessor, and the xml name liferay-portlet.xml
Scarletake Bwi
RE: about custom hook portlet(chat)
April 14, 2013 11:57 PM
Answer

Scarletake Bwi

Rank: Regular Member

Posts: 114

Join Date: December 19, 2010

Recent Posts

i found the reason is my project name. i name it "CustomChat". it fail. if i use name "chat", it will work and work well.

may i change the project name?

Because i want to add a prefix "Custom"