Message Boards

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Deploy example 9
Answer
5/22/14 9:32 AM
Hi there,

I try this example.xml definition. After running XMLPortletFactory.jar I import the portlet-project to eclipse. By deploying I get the folllowing error:
 109:18:17,595 ERROR [ContainerBackgroundProcessor[StandardEngine]][HotDeployImpl:208] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for xmlpfexampleI-portletxmlpfexampleI-portlet
 2com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for xmlpfexampleI-portletxmlpfexampleI-portlet
 3    at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
 4    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)
 5    at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:205)
 6    at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
 7    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
 8    at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
 9    at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
10    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
11    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
12    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
13    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
14    at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
15    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
16    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
17    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
18    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
19    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1270)
20    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1439)
21    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
22    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
23    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
24    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
25    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
26    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
27    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
28    at java.lang.Thread.run(Thread.java:744)
29Caused by: java.lang.Error: Unresolved compilation problems: _    The import org.xmlportletfactory.goodclient.xmlpfexamplei.model cannot be resolved_    The import org.xmlportletfactory.goodclient.xmlpfexamplei.model cannot be resolved_    The import org.xmlportletfactory.goodclient.xmlpfexamplei.service.UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    Users cannot be resolved to a type_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    Users cannot be resolved to a type_    Users cannot be resolved to a type_    UsersImpl cannot be resolved to a type_    The method UsersFromRequest(PortletRequest) from the type UsersPortlet refers to the missing type Users_    Users cannot be resolved to a type_    The method UsersFromRequest(PortletRequest) from the type UsersPortlet refers to the missing type Users_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    The method UsersFromRequest(PortletRequest) from the type UsersPortlet refers to the missing type Users_    Users cannot be resolved to a type_    UsersLocalServiceUtil cannot be resolved_    Users cannot be resolved to a type_    UsersImpl cannot be resolved to a type_    UsersImpl cannot be resolved to a type_
30    at org.xmlportletfactory.goodclient.xmlpfexamplei.UsersPortlet.<init>(UsersPortlet.java:66)
31    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
32    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
33    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
34    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
35    at java.lang.Class.newInstance(Class.java:374)
36    at com.liferay.portlet.PortletBagFactory.getPortletInstance(PortletBagFactory.java:418)
37    at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:121)
38    at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)
39    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)
40    ... 24 more

RE: Deploy example 9
Answer
5/22/14 5:51 PM as a reply to beppo ivel.
What Liferay version are you using?

RE: Deploy example 9
Answer
5/23/14 12:41 PM as a reply to Juan G..
6.2 and this thread suggest it would work with.

RE: Deploy example 9
Answer
5/24/14 7:26 AM as a reply to beppo ivel.
Hi beppo,

thanks for reporting!

There are two issues for that example:
  • <image> is not supported anymore. Change that type to <document>.
  • userName field is used for getting Liferay user name, so pleasse change that name to "usersName" instead.
We will change the example file ASAP.

Are you using the latest release of XMLPortletFactory? I guess you're using an snapshot version.

Thanks

RE: Deploy example 9
Answer
5/24/14 11:44 AM as a reply to Juan G..
  Hi All,

       Just inserted a note on the infro samples page, so people are aware of this.

 Thanks, Jack.