Closed GoogleCodeExporter closed 9 years ago
Quick note when do research
Copy vào tomcat_home/lib của liferay_home trên eclipse
Copy vào tomcat_home/lib của liferay_home trên server thực thi
Cài đặt phương thức trong local service
Tạo project (CodetestingPortlet) mới truy cập phương thức tạo trên
local service thông qua lib service import từ liferay_home
Sử dụng XXXLocalService.create(0) thay cho XXXImpl vì những class model
impl không được xem là service nên không nằm trong file jar
Deploy project service để tạo database trên liferay
Deploy project mới sử dụng service
Error 10:27:16,131 ERROR [http-bio-9080-exec-32][PortletServlet:116]
javax.portlet.PortletException: java.lang.NoClassDefFoundError:
vn/edu/ctu/eic/qlcv/model/LoaiCongVan
Thêm recommended-deployment-context=cits-ctu-qlcv-portlet vào tập tin
liferay-plugin-package.properties in CodetestingPorlet
Thêm recommended-deployment-context=CodeTestingPortlet-portlet vào tập tin
liferay-plugin-package.properties in cits-ctu-qlcv-portlet
Deploy cits-ctu-qlcv-portlet
Deploy CodetestingPorlet
10:46:25,226 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204]
Processing CodeTestingPortlet-portlet-6.2.0.1.war
10:46:25,227 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListe
ner:79] Copying portlets for
/opt/liferay/deploy/CodeTestingPortlet-portlet-6.2.0.1.war
10:46:25,243 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859]
Deploying CodeTestingPortlet-portlet-6.2.0.1.war
10:46:25,244 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:962]
Updating CodeTestingPortlet from version 6.2.0.1 to version 6.2.0.1
Expanding: /opt/liferay/deploy/CodeTestingPortlet-portlet-6.2.0.1.war into /opt/liferay/tomcat-7.0.42/temp/20140729104625244
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140729104625244/WEB-INF
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140729104625244/WEB-INF/classes
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140729104625244/WEB-INF/classes
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140729104625244/WEB-INF/jsp
10:46:25,310 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2380]
Modifying Servlet 2.5
/opt/liferay/tomcat-7.0.42/temp/20140729104625244/WEB-INF/web.xml
Copying 43 files to /opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
Copying 1 file to /opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
Deleting directory /opt/liferay/tomcat-7.0.42/temp/20140729104625244
10:46:25,326 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListe
ner:91] Portlets for /opt/liferay/deploy/CodeTestingPortlet-portlet-6.2.0.1.war
copied successfully. Deployment will start in a few seconds.
Jul 29, 2014 10:46:25 AM org.apache.catalina.startup.HostConfig
deleteRedeployResources
INFO: Undeploying context [/cits-ctu-qlcv-portlet]
10:46:25,611 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployEvent:130]
Plugin cits-ctu-qlcv-portlet requires marketplace-portlet
10:46:25,611 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PortletHotDeployListene
r:523] Unregistering portlets for cits-ctu-qlcv-portlet
10:46:25,614 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PortletHotDeployListene
r:563] 2 portlets for cits-ctu-qlcv-portlet were unregistered
Jul 29, 2014 10:46:25 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
10:46:25,627 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016]
Reading plugin package for cits-ctu-qlcv-portlet
Jul 29, 2014 10:46:26 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory
/opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
10:46:27,187 INFO [localhost-startStop-11][HotDeployEvent:130] Plugin
cits-ctu-qlcv-portlet requires marketplace-portlet
10:46:27,187 INFO [localhost-startStop-11][HotDeployImpl:195] Deploying
cits-ctu-qlcv-portlet from queue
10:46:27,188 INFO [localhost-startStop-11][PluginPackageUtil:1016] Reading
plugin package for cits-ctu-qlcv-portlet
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
Jul 29, 2014 10:46:27 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
10:46:28,758 INFO [localhost-startStop-11][PortletHotDeployListener:343]
Registering portlets for cits-ctu-qlcv-portlet
Loading
file:/opt/liferay/tomcat-7.0.42/temp/20-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
10:46:28,893 INFO [localhost-startStop-11][PortletHotDeployListener:495] 2
portlets for cits-ctu-qlcv-portlet are available for use
Portlet CodetestingPorlet bị mất
Redeploy lại portlet CodetestingPorlet
Sử dụng phương thức thêm loại công văn mới → thêm loại
công văn thành công
Thêm phương thức tìm loại theo id
Deploy lại portlet CodetestingPorlet
Không thấy được phương thức mới bổ sung
Deploy lại portlet cits-ctu-qlcv-portlet
http://stackoverflow.com/questions/17545085/using-services-of-a-portlet-in-anoth
er-liferay-plugin
???? Fuck off
Tạo project mới tên child 2, tạo phương thức truy cập service
trong project mới
Deploy project mới trên liferay, lỗi SEVERE: Servlet.service() for servlet
testservice Servlet threw exception java.lang.ClassNotFoundException:
vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil
Thêm recommended-deployment-context=Child2-portlet vào tập tin
liferay-plugin-package.properties in cits-ctu-qlcv-portlet
Deploy lại portlet cits-ctu-qlcv-portlet
Portlet Child2 bị mất
Deploy lại portlet child 2
Sử dụng được các phương thức đã cài đặt trong portlet Child2
Thử update một số các phương thức mới cho portlet Child2 và
deploy lại
KHi build ra file war để deploy web app thì không chứa file jar của
thư viện, sau khi deploy trên server thì file đc copy vào
Deploy lại portlet Child2, các phương thức mới sử dụng được
Thử deploy lại portlet cits-ctu-qlcv-portlet, portlet Child2 bị mất
Deploy lại portlet CHild2,Portlet child2 sử dụng lại bình thường
Thử mức độ cập nhật giữa các portlet child với nhau bằng
cách tìm những record có id được thêm vào từ portlet child2
Thêm sửa, tìm kiếm đồng bộ giữa các portlet Child
Cần test thêm trường hợp thêm một phương thức mới trên
Service Builder
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 2:16
Attachments:
Try to load data into Search Container to determine the delay of Service
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 2:21
[Result] Sucessfull
[Test] Try create new method (findAll) on Service Builder and update new
Service for Child2-portlet but still old-service for Code-testing
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 2:40
[Do] Copy new-service.jar to tomcat_home/lib/ext.Both of two portlet will see
new method was defined
[Do] Use new method in portlet Child2
[Do] Deploy portlet Child2
[Result] Error: method not define
[Check] Child2/lib cits-ctu-qlcv-portlet-service.jar 29-July. The same with
portlet cist-ctu-qlcd-portlet and portlet CodeTesting
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:02
[Do] Copy new cits-ctu-qlcv-portlet-service.jar to tomcat_home/lib/ext on
running Liferay server. Redeploy portlet Child2
[Result] Error: not found method
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:05
[Do] Redeploy Portlet cits-ctu-qlcv-portlet to update new service to liferay
server. Liferay-plugin-package.properties still configure
[Result] Error WARNING: Failed to register object
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Child2-portle
t,CodeTestingPortlet-portlet]] with name
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Child2-portle
t,CodeTestingPortlet-portlet]] during component initialisation
javax.management.MalformedObjectNameException: Invalid character ',' in key
part of property
[Do] Add 's' to change
recommended-deployment-context=Child2-portlet,CodeTestingPortlet-portlet to
recommended-deployment-contexts=Child2-portlet,CodeTestingPortlet-portlet
[Result]
10:17:34,242 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204]
Processing cits-ctu-qlcv-portlet-6.2.0.1.war
10:17:34,244 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListe
ner:79] Copying portlets for
/opt/liferay/deploy/cits-ctu-qlcv-portlet-6.2.0.1.war
10:17:34,269 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859]
Deploying cits-ctu-qlcv-portlet-6.2.0.1.war
10:17:34,270 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:962]
Updating Cits Ctu Qlcv from version 6.2.0.1 to version 6.2.0.1
Expanding: /opt/liferay/deploy/cits-ctu-qlcv-portlet-6.2.0.1.war into /opt/liferay/tomcat-7.0.42/temp/20140730101734270
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140730101734270/WEB-INF
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140730101734270/WEB-INF/classes
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140730101734270/WEB-INF/classes
Copying 1 file to /opt/liferay/tomcat-7.0.42/temp/20140730101734270/WEB-INF/jsp
10:17:34,630 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2380]
Modifying Servlet 2.5
/opt/liferay/tomcat-7.0.42/temp/20140730101734270/WEB-INF/web.xml
Copying 877 files to /opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
Copying 1 file to /opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
Deleting directory /opt/liferay/tomcat-7.0.42/temp/20140730101734270
10:17:35,441 INFO
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListe
ner:91] Portlets for /opt/liferay/deploy/cits-ctu-qlcv-portlet-6.2.0.1.war
copied successfully. Deployment will start in a few seconds.
Jul 30, 2014 10:17:39 AM org.apache.catalina.startup.HostConfig
deleteRedeployResources
INFO: Undeploying context [/cits-ctu-qlcv-portlet]
10:17:39,230 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployEvent:130]
Plugin cits-ctu-qlcv-portlet requires marketplace-portlet
10:17:39,231 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PortletHotDeployListene
r:523] Unregistering portlets for cits-ctu-qlcv-portlet
10:17:39,232 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PortletHotDeployListene
r:563] 0 portlets for cits-ctu-qlcv-portlet were unregistered
Jul 30, 2014 10:17:39 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
10:17:39,239 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016]
Reading plugin package for cits-ctu-qlcv-portlet
Jul 30, 2014 10:17:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory
/opt/liferay/tomcat-7.0.42/webapps/cits-ctu-qlcv-portlet
10:17:40,742 INFO [localhost-startStop-18][HotDeployEvent:130] Plugin
cits-ctu-qlcv-portlet requires marketplace-portlet
10:17:40,743 INFO [localhost-startStop-18][HotDeployImpl:195] Deploying
cits-ctu-qlcv-portlet from queue
10:17:40,743 INFO [localhost-startStop-18][PluginPackageUtil:1016] Reading
plugin package for cits-ctu-qlcv-portlet
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
10:17:41,000 INFO
[localhost-startStop-18][ServiceComponentLocalServiceImpl:322] Upgrading cits
database to build number 3
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
Jul 30, 2014 10:17:41 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/se
rvice.properties
10:17:42,509 INFO [localhost-startStop-18][PortletHotDeployListener:343]
Registering portlets for cits-ctu-qlcv-portlet
Loading
file:/opt/liferay/tomcat-7.0.42/temp/26-cits-ctu-qlcv-portlet/WEB-INF/classes/po
rtlet.properties
10:17:42,610 INFO [localhost-startStop-18][PortletHotDeployListener:495] 0
portlets for cits-ctu-qlcv-portlet are available for use
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:21
[Do] Access portlet Child2
[Result]
Jul 30, 2014 10:20:13 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet testservice Servlet threw exception
java.lang.RuntimeException: java.lang.Error is not a valid exception
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceClp.createLoaiCongVan(LoaiCongVanLocalServiceClp.java:165)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.createLoaiCongVan(LoaiCongVanLocalServiceUtil.java:63)
at com.test.TestService.doView(TestService.java:24)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:323)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:604)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:677)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:379)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1242)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:655)
at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:141)
at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:126)
at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:156)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer._render(PortletRenderer.java:120)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer.access$4(PortletRenderer.java:107)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:174)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:1)
at com.liferay.portal.kernel.executor.CopyThreadLocalCallable.call(CopyThreadLocalCallable.java:69)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
at java.lang.Thread.run(Thread.java:744)
10:20:13,151 ERROR [RuntimePageImpl-9][render_portlet_jsp:132] null
java.lang.RuntimeException: java.lang.Error is not a valid exception
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceClp.createLoaiCongVan(LoaiCongVanLocalServiceClp.java:165)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.createLoaiCongVan(LoaiCongVanLocalServiceUtil.java:63)
at com.test.TestService.doView(TestService.java:24)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:323)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
Jul 30, 2014 10:20:24 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet testservice Servlet threw exception
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:22
[Do] Use portlet Codetesing
[Result]
SEVERE: Servlet.service() for servlet testservice Servlet threw exception
java.lang.RuntimeException: java.lang.Error is not a valid exception
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceClp.createLoaiCongVan(LoaiCongVanLocalServiceClp.java:165)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.createLoaiCongVan(LoaiCongVanLocalServiceUtil.java:63)
at com.test.TestService.doView(TestService.java:24)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:323)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:604)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:677)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:379)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1242)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:655)
at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:141)
at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:126)
at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:156)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer._render(PortletRenderer.java:120)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer.access$4(PortletRenderer.java:107)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:174)
at com.liferay.portal.layoutconfiguration.util.PortletRenderer$PortletRendererCallable.doCall(PortletRenderer.java:1)
at com.liferay.portal.kernel.executor.CopyThreadLocalCallable.call(CopyThreadLocalCallable.java:69)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
at java.lang.Thread.run(Thread.java:744)
10:23:37,853 ERROR [RuntimePageImpl-10][render_portlet_jsp:132] null
java.lang.RuntimeException: java.lang.Error is not a valid exception
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceClp.createLoaiCongVan(LoaiCongVanLocalServiceClp.java:165)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.createLoaiCongVan(LoaiCongVanLocalServiceUtil.java:63)
at com.test.TestService.doView(TestService.java:24)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:323)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:24
[Do] Redeploy portlet Child2. Portlet Child2 do not was compile with new Service
[Result]
10:24:54,346 ERROR [localhost-startStop-19][HotDeployImpl:208]
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering
plugins for Child2-portletChild2-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering
plugins for Child2-portletChild2-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:64)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.liferay.portal.OldServiceComponentException: Build namespace
cits has build number 3 which is newer than 2
at com.liferay.portal.service.impl.ServiceComponentLocalServiceImpl.initServiceComponent(ServiceComponentLocalServiceImpl.java:130)
at sun.reflect.GeneratedMethodAccessor1196.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
at com.sun.proxy.$Proxy94.initServiceComponent(Unknown Source)
at com.liferay.portal.service.ServiceComponentLocalServiceUtil.initServiceComponent(ServiceComponentLocalServiceUtil.java:288)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initServiceComponent(PluginPackageHotDeployListener.java:247)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:132)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:61)
... 23 more
Jul 30, 2014 10:24:54 AM org.apache.catalina.core.ApplicationContext log
[Do] Access portlet Child2
[Result] Still error on above comment
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:27
[Do] Compile Portlet Child2 with new service. Redeploy it!
[Result] Error Caused by: com.liferay.portal.OldServiceComponentException:
Build namespace cits has build number 3 which is newer than 2
[Do] Refresh project, Rebuild and redeploy
[Result] Error Caused by: com.liferay.portal.OldServiceComponentException:
Build namespace cits has build number 3 which is newer than 2
[Result] Saw new webapp. Take a look at acttachment file
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:36
Attachments:
[Do] Change liferay-plugin-package.properties from
recommended-deployment-contexts=Child2-portlet,CodeTestingPortlet-portlet
to recommended-deployment-context=CodeTestingPortlet-portlet
recommended-deployment-context=Child2-portlet. Rebuild, Redeploy
[Result] Deploy sucess
[Do] Deploy Child2 new rebuild version
[Result] No errors
[Do] Access portlet Child2
[Result]
10:42:05,778 ERROR [RuntimePageImpl-12][render_portlet_jsp:132] null
java.lang.RuntimeException: java.lang.Error is not a valid exception
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:43
[Do] Compile Codetesting with new service and deploy
[Result]
Caused by: com.liferay.portal.OldServiceComponentException: Build namespace
cits has build number 3 which is newer than 2
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 3:46
[Detect] Error in service.
[Do] Rebuild. Copy service to tomecat lib. Rebuild all portlet. Redeploy
[Result]
Jul 30, 2014 11:46:33 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet testservice Servlet threw exception
java.lang.RuntimeException: java.lang.Error is not a valid exception
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 4:47
[Do] Remove portlet Child from portal. Redeploy
[Result] 11:50:51,959 INFO [RuntimePageImpl-1][ClpSerializer:88] Unable to
locate deployment context from portlet properties
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 4:52
[Do] Following this post
http://www.liferay.com/community/forums/-/message_boards/message/7923062
"I found solution for problem. we are create in docroot/src a file
portlet.properties with content empty. "
Create this file for portlet cits-ctu.qlcv-portlet
[Result] Solved the problem with adding a line into this file following
property=value
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 7:30
http://liferay-hacks.blogspot.com/2014/02/the-curse-of-empty-portletproperties.h
tml
Original comment by ntanh...@gmail.com
on 30 Jul 2014 at 7:37
Lỗi
Caused by: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has
not been set for servlet context cits-ctu-qlcv-portlet
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:46)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.getService(LoaiCongVanLocalServiceUtil.java:284)
at vn.edu.ctu.eic.qlcv.service.LoaiCongVanLocalServiceUtil.createLoaiCongVan(LoaiCongVanLocalServiceUtil.java:63)
at vn.edu.ctu.eic.qlcv.actionutil.loaicongvan.LoaiCongVanActionUtil.addLoaiCongVan(LoaiCongVanActionUtil.java:29)
... 175 more
Original comment by ntanh...@gmail.com
on 14 Aug 2014 at 1:14
Try required-deployment-contexts
instead of required-deployment-context
Original comment by ntanh...@gmail.com
on 14 Aug 2014 at 1:27
recommended-deployment-contexts=BusinessUtilDevelop-portlet
Original comment by ntanh...@gmail.com
on 15 Aug 2014 at 3:53
required-deployment-contexts=cits-ctu-qlcv-portlet
Original comment by ntanh...@gmail.com
on 20 Aug 2014 at 10:50
Original issue reported on code.google.com by
ntanh...@gmail.com
on 30 Jul 2014 at 2:13