Hi Jack,
thank you. I missed the information about the desktop mode.
I switched completely from JDK7 to JDK6 and I can not compile the examples. I tried the Integer and the complex school courses example. The steps were:
- Download the xml definition file
- call the XMLPortletFactory.jar in desktop mode
- choose the downloaded xml definition file
- go to my SDK's portlet order
- type ant
Result:
1...
2 ----------
3 1302. ERROR in C:\IDE\liferay-plugins-sdk-6.1.1\portlets\coursesExam
4ple-portlet\docroot\WEB-INF\src\org\xmlportletfactory\school\coursesexample\util
5\TeachersUtil.java (at line 21)
6 import org.xmlportletfactory.school.coursesexample.service.Teach
7ersLocalServiceUtil;
8 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9^^^^^^^^^^^^^^^^^^^
10 The import org.xmlportletfactory.school.coursesexample.service.Teach
11ersLocalServiceUtil cannot be resolved
12 ----------
13 1302 problems (1302 errors)
14
15BUILD FAILED
16C:\IDE\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:690: The following erro
17r occurred while executing this line:
18C:\IDE\liferay-plugins-sdk-6.1.1\build-common.xml:121: Compile failed; see the c
19ompiler error output for details.
20
21Total time: 16 seconds
Same in Eclipse (import from PluiginSDK)...
The XMLPortlet_resources.zip was unzipped before in my XMLPortletFactory directory.
When I use the command line with
create example “Here is an example”, and call ant in the generated directory I get a project, which can be compiled. Unfortunately this portlet does not work because of the
ERROR: BeanLocator is null for servlet context exampleSo Im really stuck in developing with XMLPF...
Thank you!