java ee - Liferay Service Builder failing -


i'm doing tests on liferay. this, i'm following mvc tutorial, , got stuck in services stuff.

i created simple entity testing purposes, "miclase":

public class miclase {     int id;     int num1;     string string1; } 

pretty simple, huh. well, after this, started service builder , created file this, overview pane:

<?xml version="1.0" encoding="utf-8"?> <!doctype service-builder public "-//liferay//dtd service builder 6.2.0//en" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> <service-builder package-path="asd">     <author>hp</author>     <namespace>miservicio</namespace>      <entity name="miclase" local-service="true">         <column name="id" type="int"></column>         <column name="num1" type="int" primary="false"></column>         <column name="string1" type="string"></column>           <!-- pk fields -->          <column name="miclaseid" type="long" primary="true"></column>          <!-- group instance -->          <column name="groupid" type="long"></column>          <!-- audit fields -->          <column name="companyid" type="long"></column>         <column name="userid" type="long"></column>         <column name="username" type="string"></column>         <column name="createdate" type="date"></column>         <column name="modifieddate" type="date"></column>         <finder name="groupid" return-type="collection">             <finder-column name="groupid"></finder-column>         </finder>     </entity> </service-builder> 

everything showed without errors in "overview" pane, clicked "build service" button, created lot of source code:

[console output redirected file:c:\users\hp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log] buildfile: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\build.xml [ivy:resolve] :: apache ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ :: [ivy:resolve] :: loading settings :: file = c:\zerok\devzone\liferay-plugins-sdk-6.2\ivy-settings.xml     [touch] creating c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\build.gradle build-service:     [mkdir] created dir: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service     [mkdir] created dir: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\sql       [jar] building manifest-only jar: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\service-builder-classpath.jar    [delete] deleting: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\service-builder-classpath.jar.manifest    [delete] deleting: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\service-builder-classpath.jar      [echo] loading jar:file:/c:/zerok/devzone/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/root/web-inf/lib/portal-impl.jar!/system.properties      [echo] loading jar:file:/c:/zerok/devzone/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/root/web-inf/lib/portal-impl.jar!/portal.properties      [echo] loading jar:file:/c:/zerok/devzone/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/root/web-inf/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties      [echo] building miclase      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\persistence\miclaseactionabledynamicquery.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\persistence\miclasepersistenceimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\persistence\miclasepersistence.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\persistence\miclaseutil.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\model\impl\miclasemodelimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\model\impl\miclasebaseimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\model\impl\miclaseimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclasemodel.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclase.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\model\impl\miclasecachemodel.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclaseclp.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclasewrapper.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclasesoap.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\impl\miclaselocalserviceimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\base\miclaselocalservicebaseimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalservice.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalserviceutil.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalserviceclp.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\base\miclaselocalserviceclpinvoker.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalservicewrapper.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\impl\miclaseserviceimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\base\miclaseservicebaseimpl.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaseservice.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaseserviceutil.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaseserviceclp.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\base\miclaseserviceclpinvoker.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaseservicewrapper.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\src\asd\service\http\miclaseservicesoap.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\messaging\clpmessagelistener.java      [echo] writing c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\clpserializer.java      [echo] java hotspot(tm) 64-bit server vm warning: ignoring option maxpermsize=512m; support removed in 8.0     [mkdir] created dir: c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service-classes      [copy] copied 5 empty directories 5 empty directories under c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service-classes     [javac] compiling 19 source files c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service-classes     [javac] annotation processing got disabled, since requires 1.6 compliant jvm 

but... after previous output, following build fails:

    [javac] ----------     [javac] 1. error in c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\model\miclase.java (at line 1)     [javac]     /**     [javac]     ^     [javac] type java.util.map$entry cannot resolved. indirectly referenced required .class files     [javac] ----------     [javac] ----------     [javac] 2. error in c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalserviceclp.java (at line 336)     [javac]     clpserializer.translateinput(orderbycomparator)     [javac]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     [javac] type java.util.comparator cannot resolved. indirectly referenced required .class files     [javac] ----------     [javac] 3. error in c:\zerok\devzone\liferay-plugins-sdk-6.2\portlets\miproyecto-portlet\docroot\web-inf\service\asd\service\miclaselocalserviceclp.java (at line 632)     [javac]     new object[] { clpserializer.translateinput(beanidentifier) });     [javac]                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     [javac] type java.lang.charsequence cannot resolved. indirectly referenced required .class files     [javac] ----------     [javac] 3 problems (3 errors)  build failed  

did wrong here?

i don't know if "id" column allowed on liferay or 1 of reserved identifiers columns on service builder.

could try id_ instead of id column?

hope helps.

edit: i've seen you're using java 8. please test java 7 , tell us.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -