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