Tribune

Home » Liferay IDE » English

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Service Builder not generating code Neha Sharma 22 novembre 2011 21.39
RE: Service Builder not generating code srikanth a 22 novembre 2011 21.54
RE: Service Builder not generating code Neha Sharma 22 novembre 2011 22.13
RE: Service Builder not generating code srikanth a 22 novembre 2011 22.31
RE: Service Builder not generating code Neha Sharma 22 novembre 2011 22.36
RE: Service Builder not generating code Gregory Amerson 22 novembre 2011 21.59
RE: Service Builder not generating code Neha Sharma 22 novembre 2011 22.17
RE: Service Builder not generating code Gregory Amerson 22 novembre 2011 22.19
RE: Service Builder not generating code Neha Sharma 22 novembre 2011 22.33
RE: Service Builder not generating code Sagar A Vyas 22 novembre 2011 23.07
RE: Service Builder not generating code Nagendra Kumar Busam 23 novembre 2011 4.08
RE: Service Builder not generating code Neha Sharma 23 novembre 2011 4.38
RE: Service Builder not generating code Hitoshi Ozawa 23 novembre 2011 4.44
RE: Service Builder not generating code Neha Sharma 23 novembre 2011 4.48
RE: Service Builder not generating code Nagendra Kumar Busam 23 novembre 2011 6.49
RE: Service Builder not generating code Hitoshi Ozawa 23 novembre 2011 15.17
RE: Service Builder not generating code Neha Sharma 23 novembre 2011 4.42
RE: Service Builder not generating code Sagar A Vyas 23 novembre 2011 22.47
RE: Service Builder not generating code Neha Sharma 23 novembre 2011 23.04
RE: Service Builder not generating code Sagar A Vyas 23 novembre 2011 23.28
RE: Service Builder not generating code Neha Sharma 23 novembre 2011 23.57
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 0.03
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 0.04
RE: Service Builder not generating code Neha Sharma 24 novembre 2011 0.08
RE: Service Builder not generating code Neha Sharma 24 novembre 2011 0.16
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 0.27
RE: Service Builder not generating code Sanjay Jat 24 novembre 2011 1.34
RE: Service Builder not generating code Neha Sharma 24 novembre 2011 2.13
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 2.29
RE: Service Builder not generating code Neha Sharma 24 novembre 2011 3.08
RE: Service Builder not generating code Neha Sharma 24 novembre 2011 3.12
RE: Service Builder not generating code srikanth a 24 novembre 2011 4.18
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 3.14
RE: Service Builder not generating code Ritika Arora 27 maggio 2012 7.02
RE: Service Builder not generating code Vichantri Geiantilal 13 giugno 2012 2.50
RE: Service Builder not generating code Sanjay Jat 24 novembre 2011 5.37
RE: Service Builder not generating code Sagar A Vyas 24 novembre 2011 5.50
RE: Service Builder not generating code Sanjay Jat 24 novembre 2011 6.10
RE: Service Builder not generating code Sagar A Vyas 25 novembre 2011 1.36
RE: Service Builder not generating code Sanjay Jat 25 novembre 2011 5.19
RE: Service Builder not generating code Sagar A Vyas 28 novembre 2011 4.32
RE: Service Builder not generating code Sanjay Jat 28 novembre 2011 5.03
RE: Service Builder not generating code amran loudi 16 dicembre 2011 9.51
RE: Service Builder not generating code Ritika Arora 27 maggio 2012 7.03
RE: Service Builder not generating code Hitoshi Ozawa 27 maggio 2012 16.21
RE: Service Builder not generating code Neha Sharma 25 novembre 2011 1.02
RE: Service Builder not generating code Nagendra Kumar Busam 28 novembre 2011 10.16
RE: Service Builder not generating code Dorothy Taylor 8 settembre 2015 4.34
RE: Service Builder not generating code David H Nebinger 8 settembre 2015 6.33
RE: Service Builder not generating code Dorothy Taylor 9 settembre 2015 1.05
Neha Sharma
Service Builder not generating code
22 novembre 2011 21.39
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi All,

I am using liferay 6.0.6 + plugin-sdk-6.1.0 + MySql database.
I followed all the steps of installation as per the documentation. I am trying to excercise the Library Management System given in the below pdf:
liferay-book.googlecode.com/files/liferay-portlet-development.pdf
Every thing works fine, till i reach the service builder section. I did all as per the pdf , till editing the service.xml but when i click build services, nothing happens. Neither do i get any error nor the Service layer code is generated. Can anybody figure out, what is the issue ?

Thanks,
Neha
srikanth a
RE: Service Builder not generating code
22 novembre 2011 21.54
Risposta

srikanth a

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 20 febbraio 2011

Messaggi recenti

Hi Neha,
Can you find out the logs. Also share your service.xml with us so that we can help u out.

regards
Sri
Gregory Amerson
RE: Service Builder not generating code
22 novembre 2011 21.59
Risposta

Gregory Amerson

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1028

Data di Iscrizione: 16 febbraio 2010

Messaggi recenti

Make sure that you have your Liferay 6.0.6 set in the targeted runtimes. Right click the project and go Properties and then click on "target runtimes". make sure that the Liferay v6.0 CE runtime is selected.
Neha Sharma
RE: Service Builder not generating code
22 novembre 2011 22.13
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Srikanth,

Thank you for your quick response.

Logs:
22 Nov, 2011 6:26:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\jre1.6.0_20\win\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Softwares/jdk-1.6.0/bin/../jre/bin/client;D:/Softwares/jdk-1.6.0/bin/../jre/bin;D:/Softwares/jdk-1.6.0/bin/../jre/lib/i386;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;C:\Program Files\SecureCRT 3.0;C:\PROGRA~1\SecureFX;C:\Program Files\TortoiseSVN\bin;D:\Softwares\jdk-1.6.0\bin;%ANT_HOME%\bin;D:\Softwares\eclipse_Liferay_IDE_1.4.0_v201110020220-win32\eclipse;
22 Nov, 2011 6:26:46 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22 Nov, 2011 6:26:46 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1884 ms
22 Nov, 2011 6:26:46 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22 Nov, 2011 6:26:46 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
22 Nov, 2011 6:26:46 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor library-portlet.xml
22 Nov, 2011 6:26:46 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\webapps\library-portlet inside the host appBase has been specified, and will be ignored
22 Nov, 2011 6:26:47 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
22 Nov, 2011 6:28:16 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
22 Nov, 2011 6:28:24 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22 Nov, 2011 6:28:24 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22 Nov, 2011 6:28:24 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/188 config=null
22 Nov, 2011 6:28:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 98356 ms
22 Nov, 2011 7:01:25 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
22 Nov, 2011 7:02:06 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
22 Nov, 2011 7:02:17 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
22 Nov, 2011 7:02:37 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
22 Nov, 2011 7:03:24 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:03:25 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
22 Nov, 2011 7:03:27 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:03:29 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\jre1.6.0_20\win\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Softwares/jdk-1.6.0/bin/../jre/bin/client;D:/Softwares/jdk-1.6.0/bin/../jre/bin;D:/Softwares/jdk-1.6.0/bin/../jre/lib/i386;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;C:\Program Files\SecureCRT 3.0;C:\PROGRA~1\SecureFX;C:\Program Files\TortoiseSVN\bin;D:\Softwares\jdk-1.6.0\bin;%ANT_HOME%\bin;D:\Softwares\eclipse_Liferay_IDE_1.4.0_v201110020220-win32\eclipse;
22 Nov, 2011 7:03:29 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:03:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 936 ms
22 Nov, 2011 7:03:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22 Nov, 2011 7:03:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
22 Nov, 2011 7:03:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor library-portlet.xml
22 Nov, 2011 7:03:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\webapps\library-portlet inside the host appBase has been specified, and will be ignored
22 Nov, 2011 7:03:30 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
22 Nov, 2011 7:04:37 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
22 Nov, 2011 7:04:40 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:04:41 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22 Nov, 2011 7:04:41 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/68 config=null
22 Nov, 2011 7:04:41 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 71518 ms
22 Nov, 2011 7:09:39 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:09:40 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
22 Nov, 2011 7:09:41 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:10:22 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\jre1.6.0_20\win\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Softwares/jdk-1.6.0/bin/../jre/bin/client;D:/Softwares/jdk-1.6.0/bin/../jre/bin;D:/Softwares/jdk-1.6.0/bin/../jre/lib/i386;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;C:\Program Files\SecureCRT 3.0;C:\PROGRA~1\SecureFX;C:\Program Files\TortoiseSVN\bin;D:\Softwares\jdk-1.6.0\bin;%ANT_HOME%\bin;D:\Softwares\eclipse_Liferay_IDE_1.4.0_v201110020220-win32\eclipse;
22 Nov, 2011 7:10:22 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:10:22 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 638 ms
22 Nov, 2011 7:10:22 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22 Nov, 2011 7:10:22 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
22 Nov, 2011 7:10:22 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor library-portlet.xml
22 Nov, 2011 7:10:22 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\webapps\library-portlet inside the host appBase has been specified, and will be ignored
22 Nov, 2011 7:10:23 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
22 Nov, 2011 7:11:25 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
22 Nov, 2011 7:11:28 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22 Nov, 2011 7:11:28 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22 Nov, 2011 7:11:28 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/38 config=null
22 Nov, 2011 7:11:28 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 66650 ms
22 Nov, 2011 12:45:59 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started


Service.XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.library" auto-namespace-tables="true">
<author>neha.sharma</author>
<namespace>LMS</namespace>
<entity name="LMSBook" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="bookId" type="long" primary="true" />
<!-- UI fields -->
<column name="bookTitle" type="String" />
<column name="author" type="String" />
<!-- Audit fields -->
<column name="dateAdded" type="Date" />
</entity>
</service-builder>

Thanks,
Neha
Neha Sharma
RE: Service Builder not generating code
22 novembre 2011 22.17
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Greg,

Thank you for such a quick response.
The runtime is already set aptly ( Liferay v6.0 CE runtime is selected).

Thanks,
Neha
Gregory Amerson
RE: Service Builder not generating code
22 novembre 2011 22.19
Risposta

Gregory Amerson

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1028

Data di Iscrizione: 16 febbraio 2010

Messaggi recenti

Can you check error log? Window > Show view > other > error log? When you click the "build services" it should print a failure in the error log if there is a problem.
srikanth a
RE: Service Builder not generating code
22 novembre 2011 22.31
Risposta

srikanth a

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 20 febbraio 2011

Messaggi recenti

Can you share the console log shown when you build services. It must show error.

regards
Sri
Neha Sharma
RE: Service Builder not generating code
22 novembre 2011 22.33
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

I checked the error logs to understand the errors. But could not relate the errors to my present issue.
PFA error logs snapshot.
Allegati: New Microsoft Office Word Document (4).docx (149,1k)
Neha Sharma
RE: Service Builder not generating code
22 novembre 2011 22.36
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Sri,

Console reads as:

23 Nov, 2011 6:25:20 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\jre1.6.0_20\win\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Softwares/jdk-1.6.0/bin/../jre/bin/client;D:/Softwares/jdk-1.6.0/bin/../jre/bin;D:/Softwares/jdk-1.6.0/bin/../jre/lib/i386;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;C:\Program Files\SecureCRT 3.0;C:\PROGRA~1\SecureFX;C:\Program Files\TortoiseSVN\bin;D:\Softwares\jdk-1.6.0\bin;%ANT_HOME%\bin;D:\Softwares\eclipse_Liferay_IDE_1.4.0_v201110020220-win32\eclipse;
23 Nov, 2011 6:25:21 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
23 Nov, 2011 6:25:21 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2465 ms
23 Nov, 2011 6:25:21 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
23 Nov, 2011 6:25:21 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
23 Nov, 2011 6:25:21 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor library-portlet.xml
23 Nov, 2011 6:25:21 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase D:\Softwares\liferay-portal-6.0.6\tomcat-6.0.29\webapps\library-portlet inside the host appBase has been specified, and will be ignored
23 Nov, 2011 6:25:23 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Loading jar:file:/D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading file:/D:/Softwares/liferay-portal-6.0.6/portal-ide.properties
Loading file:/D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-developer.properties
06:25:45,437 INFO [DialectDetector:69] Determining dialect for MySQL 5
06:25:45,754 INFO [DialectDetector:49] Using dialect org.hibernate.dialect.MySQLDialect
06:25:54,840 INFO [PortalImpl:278] Global lib directory /D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/lib/ext/
06:25:54,840 INFO [PortalImpl:298] Portal lib directory /D:/Softwares/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/
Starting Liferay Portal Community Edition 6.0.6 CE (Bunyan / Build 6006 / February 17, 2011)
06:26:30,638 INFO [BaseDB:403] Database does not support case sensitive queries
06:26:49,515 INFO [PluginPackageUtil:1109] Reloading repositories
06:26:59,344 INFO [HotDeployUtil:69] Initializing hot deploy manager 10199710
06:27:00,343 INFO [AutoDeployDir:105] Auto deploy scanner started for D:\Softwares\liferay-portal-6.0.6\deploy
06:27:02,512 INFO [PortletHotDeployListener:220] Registering portlets for library-portlet
06:27:02,871 INFO [PortletHotDeployListener:369] 1 portlet for library-portlet is available for use
23 Nov, 2011 6:27:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory tunnel-web
23 Nov, 2011 6:27:11 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
23 Nov, 2011 6:27:12 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
23 Nov, 2011 6:27:12 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/171 config=null
23 Nov, 2011 6:27:12 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 111270 ms

There is no error msg when i click on build services.
Sagar A Vyas
RE: Service Builder not generating code
22 novembre 2011 23.07
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Neha Sharma:
I checked the error logs to understand the errors. But could not relate the errors to my present issue.
PFA error logs snapshot.


Hi Neha,

I have build your service its working as per expecting.

Can try build service from command prompt by ant built-service commnad.

Please find attached screen shot of successfully build.



Thanks,
Sagar Vyas
Allegati: successful.bmp (3.075,1k)
Nagendra Kumar Busam
RE: Service Builder not generating code
23 novembre 2011 4.08
Risposta

Nagendra Kumar Busam

Punteggio: Liferay Master

Messaggi: 653

Data di Iscrizione: 7 luglio 2009

Messaggi recenti

It's always good idea to cross check by running it from command prompt when building/re-building services through service builder tool (using ant builde-service) if some thing is not coming properly in plain Eclipse/Eclipse configure with Liferay IDE
Neha Sharma
RE: Service Builder not generating code
23 novembre 2011 4.38
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Nagendra,

Like you advised, I tried cmd ant build-services from the command prompt. The error trace is :


D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlet
s\library-portlet>ant build-services
Buildfile: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPS
HOT\portlets\library-portlet\build.xml

BUILD FAILED
Target "build-services" does not exist in the project "library-portlet".

Total time: 2 seconds

Am I going in right direction of finding the build.xml ?

Thanks,
Neha
Neha Sharma
RE: Service Builder not generating code
23 novembre 2011 4.42
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Sagar,

I found that a jar named ecj was missing, and after i added the jar, I tried building from cmd prompt...but it gives me error below:

D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlet
s\library-portlet>ant build-services
Buildfile: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPS
HOT\portlets\library-portlet\build.xml

BUILD FAILED
Target "build-services" does not exist in the project "library-portlet".

Total time: 2 seconds

Thanks,
Neha
Hitoshi Ozawa
RE: Service Builder not generating code
23 novembre 2011 4.44
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Version of Liferay SDK and Liferay portal should match.
If you are going to use Liferay 6.0.6, use Liferay SDK 6.0.6.
If you are going to use Liferay SDK 6.1.0, use Liferay 6.1.0 beta.
Neha Sharma
RE: Service Builder not generating code
23 novembre 2011 4.48
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Hitoshi,

So the difference between the versions is the root cause of the problem I am facing ??

Thanks,
Neha
Nagendra Kumar Busam
RE: Service Builder not generating code
23 novembre 2011 6.49
Risposta

Nagendra Kumar Busam

Punteggio: Liferay Master

Messaggi: 653

Data di Iscrizione: 7 luglio 2009

Messaggi recenti

Hi Neha,

Can you please check your build.<YOUR-SYSTEM-NAME>.properties whether it is pointing to Liferay 6.1 right version

Thanks,
- Nagendra Kumar
Hitoshi Ozawa
RE: Service Builder not generating code
23 novembre 2011 15.17
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

I can't say for sure because you haven't uploaded your exported project, but as a general rule, use the same version of Liferay and SDK because there may be some differences between version. Also, be aware that you're using 6.1.0 beta version which may be unstable.
Sagar A Vyas
RE: Service Builder not generating code
23 novembre 2011 22.47
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Hi Neha,

Did you configured build.<user_name>.properties file ?

If No, then just follow as mention below


You can find build.xml inside your plugins folder.

Step 1) Create new text file copy content from build.xml and paste into this new file

Step 2) Rename this new file to build.<userName>.properties file
Here, User name is system user's name.(for find this Go to the command prompt >> type "set" command >> take value of USERNAME

Step 3) Now you need to address tomcat here, Just keep below properties only remove all other
 1    #
 2    # Specify the paths to an unzipped Tomcat 6.0.x bundle.
 3    #
 4    app.server.dir=D:/myprojec/tomcat/tomcat-6.0.18
 5
 6    app.server.classes.portal.dir=${app.server.portal.dir}/WEB-INF/classes
 7    app.server.lib.global.dir=${app.server.dir}/lib/ext
 8    app.server.lib.portal.dir=${app.server.portal.dir}/WEB-INF/lib
 9    app.server.portal.dir=${app.server.dir}/webapps/ROOT
10    app.server.zip.name=liferay-portal-tomcat-6.0-${lp.version}.zip


Please check this and let us know emoticon

Thanks,
Sagar Vyas
Neha Sharma
RE: Service Builder not generating code
23 novembre 2011 23.04
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Sagar,

Below is the build.neha.sharma file i have

#Managed by Liferay IDE (remove this comment to prevent future updates)
#Fri Nov 18 17:42:51 IST 2011
app.server.portal.dir=D\:\\Softwares\\liferay-portal-6.0.6\\tomcat-6.0.29\\webapps\\ROOT
app.server.lib.global.dir=D\:\\Softwares\\liferay-portal-6.0.6\\tomcat-6.0.29\\lib\\ext
app.server.deploy.dir=D\:\\Softwares\\liferay-portal-6.0.6\\tomcat-6.0.29\\webapps
app.server.type=tomcat
app.server.dir=D\:\\Softwares\\liferay-portal-6.0.6\\tomcat-6.0.29


Please let me know if anything is to be modified in this file...

I have one more question..I am using eclipse indigo Version: 1.4.1.20110909-1818.
Is this fine ?

Regards,
Neha
Sagar A Vyas
RE: Service Builder not generating code
23 novembre 2011 23.28
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Hi Neha,

Is this same configured as build.xml of your plugins has ?

or can try with what i have suggest ?

And make sure following file are there inside the plugins , Just check it out .

- build-common-plugin.xml
-build-common.xml
- build.xml

Thanks,
Sagar Vyas
Neha Sharma
RE: Service Builder not generating code
23 novembre 2011 23.57
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

All the build files mentioned by u are there in the plugin folder...PFA of the plugin folder structure..

I am surprised to see a new story started all together...When i click on ant build-services,

Below is what my console reads,

Buildfile: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\build.xml
build-service:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#10b23cf' of type [com.liferay.portal.kernel.util.PortalClassLoaderUtil] while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#10b23cf' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#10b23cf' of type [com.liferay.portal.kernel.util.PortalClassLoaderUtil] while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#10b23cf' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
... 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#10b23cf' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
... 43 more
Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 45 more
Java Result: -1
${service.test.output}
Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service-classes
compile-java:
Warning: skipping zip archive D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\lib\library-portlet-service.jar because no files were included.
Deleting directory D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service-classes
BUILD SUCCESSFUL
Total time: 1 minute 51 seconds
Allegato

Allegati: plugin-sdk.png (106,0k)
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 0.03
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Hi Neha,

Do one thing remove following file and try to build service again.

-service,sql folder from Your portlet's \WEB-INF\ folder
-Take back up of impl class and remove you stuff related to service from /scr/ folder.
-Remove META-INF from src folder.

Try to rebuild service again.

Thanks,
Sagar Vyas
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 0.04
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

And one more thing check .

How did you find user name "neha" which you have used in build.neha.properties file ?

Did you use SET command ?

Thanks,
Sagar Vyas
Neha Sharma
RE: Service Builder not generating code
24 novembre 2011 0.08
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

to answer your second question while i do what you told in previous post,I found it using set command.
Neha Sharma
RE: Service Builder not generating code
24 novembre 2011 0.16
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

I followed steps as per the prev post..still no luck...

Buildfile: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\build.xml
build-service:
Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\classes
Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service
Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\sql
Copying 1 file to D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\classes
Copied 4 empty directories to 3 empty directories under D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\classes
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#91a4fb' of type [com.liferay.portal.kernel.util.PortalClassLoaderUtil] while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#91a4fb' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#91a4fb' of type [com.liferay.portal.kernel.util.PortalClassLoaderUtil] while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#91a4fb' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
... 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#91a4fb' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
... 43 more
Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 45 more
Java Result: -1
${service.test.output}
Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service-classes
compile-java:
Warning: skipping zip archive D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\lib\library-portlet-service.jar because no files were included.
Deleting directory D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service-classes
BUILD SUCCESSFUL
Total time: 33 seconds
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 0.27
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Hi Neha,

You got Successfully message.

And i guess you forgot to remove META-INF folder , still it shows bean error.

Thanks,
Sagar Vyas
Sanjay Jat
RE: Service Builder not generating code
24 novembre 2011 1.34
Risposta

Sanjay Jat

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 22 giugno 2011

Messaggi recenti

Hi neha ,
Which database you are using for this service builder file? I am also facing this type of problem...
Neha Sharma
RE: Service Builder not generating code
24 novembre 2011 2.13
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Sanjay,

For service xml ? i am using MySql database for the application ..

Regards,
Neha
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 2.29
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Sanjay Jat:
Hi neha ,
Which database you are using for this service builder file? I am also facing this type of problem...


I dont think so its DB related issue.

I guess Neha its some environment related issue.

Please cross verify it.

Thanks,
Sagar Vyas
Neha Sharma
RE: Service Builder not generating code
24 novembre 2011 3.08
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Sagar,

You are right in saying its not a DB issue...bingoooo.....finally i got the service layer generated now.
I just did everything from scratch again and it now works..
Few important checkpoints i remember are :

1. setting ANT_HOME,JAVA_HOME varaiables
2. creating build.<systemname>.properties
3. Open “liferay-plugin-package.properties” file from the path “library-portlet/docroot/WEBINF”. Add the 6 tld files required
4. delete all the tld files from WEB-INF/tld
5. eclipse-> show view -> ant -> added the build file
6. Create service.xml
7. ant ->clean + build-services

along with these few more things were done earlier for MySql db.

Thank you for showing way..

Regards,
Neha
Neha Sharma
RE: Service Builder not generating code
24 novembre 2011 3.12
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Thank you Sri, Greg, Sagar,Hitoshi and Nagendra for proactively contributing responses..
Your efforts are truly appreciated.

@Hitoshi - This time i used sdk 6.0.5 like you said.. to be on safe side emoticon
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 3.14
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Sagar,

You are right in saying its not a DB issue...bingoooo.....finally i got the service layer generated now.
I just did everything from scratch again and it now works..
Few important checkpoints i remember are :



Hi Neha ,

Glad to know this, Finally you got resolved it , Its party time emoticon

Thanks,
Sagar Vyas
srikanth a
RE: Service Builder not generating code
24 novembre 2011 4.18
Risposta

srikanth a

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 20 febbraio 2011

Messaggi recenti

Neha Sharma:
Thank you Sri, Greg, Sagar,Hitoshi and Nagendra for proactively contributing responses..
Your efforts are truly appreciated.

@Hitoshi - This time i used sdk 6.0.5 like you said.. to be on safe side emoticon



Your are welcome... emoticon.

regards
Sri
Sanjay Jat
RE: Service Builder not generating code
24 novembre 2011 5.37
Risposta

Sanjay Jat

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 22 giugno 2011

Messaggi recenti

Hello ,
I want to know how can we implement the foreign key relationship using service builder file .Is there is simplest way to create the foreign key .I am using postgreSQL
Thanks In advance .....
Sagar A Vyas
RE: Service Builder not generating code
24 novembre 2011 5.50
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

I want to know how can we implement the foreign key relationship using service builder file .Is there is simplest way to create the foreign key .I am using postgreSQL
Thanks In advance .....


Hi Sanjay,

Foreign key is nothing but a primary key of other entity emoticon

 1
 2    <entity name="table1" local-service="true" remote-service="false">
 3
 4        <!-- PK fields -->
 5        <column name="roomId" type="long" primary="true" />
 6            
 7        <!-- FK fields -->
 8    [b]<column name="roomId" type="long" />[/b]
 9
10</entity>
11<entity name="table2" local-service="true" remote-service="false" >
12        <!-- PK fields -->
13        <column name="roomId" type="long" primary="true" />
14            
15</entity>


Thanks,
Sagar Vyas
Sanjay Jat
RE: Service Builder not generating code
24 novembre 2011 6.10
Risposta

Sanjay Jat

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 22 giugno 2011

Messaggi recenti

Hello Sagar ,
Thanks for quick reply ...
I want to use postgresql for storing user information and mongoDB for other information like classified data ..emoticonnow i need suggestion that whether i have to write separate service builder file or one service builder file for both the databases. emoticon
Thanks in advance .....
Neha Sharma
RE: Service Builder not generating code
25 novembre 2011 1.02
Risposta

Neha Sharma

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 22 novembre 2011

Messaggi recenti

Hi Sagar,

Continuing what Sanjay asked,

say i want to depict foreign key relation between two entities, Student and Book .

Student :
studentId(PK)
studentName
bookId(Foreign Key)

Book:
bookId(PK)
bookName
author.

so to map these both tables will my service.xml have one more entity say : "student-book" ????

Student-Book:
Id(PK)
studentId
bookId
.
Sagar A Vyas
RE: Service Builder not generating code
25 novembre 2011 1.36
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Sanjay Jat:
Hello Sagar ,
Thanks for quick reply ...
I want to use postgresql for storing user information and mongoDB for other information like classified data ..emoticonnow i need suggestion that whether i have to write separate service builder file or one service builder file for both the databases. emoticon
Thanks in advance .....



Hi Sanjay,

Got your point,

It always good approach to create new service for mapping FK. Specially in case of one to many mapping.

I would like you to see usergrouprole oob table which shows mapping between user,role,groups.

Go for separate service , it will make your entities loosely couple.

Thanks,
Sagar Vyas
Sanjay Jat
RE: Service Builder not generating code
25 novembre 2011 5.19
Risposta

Sanjay Jat

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 22 giugno 2011

Messaggi recenti

Hello ,
i think it is right place to post query about portal-ext.xml file ....emoticon i want to modify the portal-ext file in tomcat for new database connection .I had already done with this changing but when i am going to access the previous database than it is not responding .What i have to do without changing the portal-ext file and i also want to create a database i.e i want to work on another database ....i think it will be clear ...what i actually want to do .
Nagendra Kumar Busam
RE: Service Builder not generating code
28 novembre 2011 10.16
Risposta

Nagendra Kumar Busam

Punteggio: Liferay Master

Messaggi: 653

Data di Iscrizione: 7 luglio 2009

Messaggi recenti

There is no way to define foreign key elements in child tables of service.xml as we do in plain SQL code(not Liferay).

As Sagar suggested that is how should define mapping between two Entities (Parent & Child tables). Child entity should have mapping for Parent Entity's primary key
Sagar A Vyas
RE: Service Builder not generating code
28 novembre 2011 4.32
Risposta

Sagar A Vyas

Punteggio: Liferay Master

Messaggi: 657

Data di Iscrizione: 17 aprile 2009

Messaggi recenti

Sanjay Jat:
Hello ,
i think it is right place to post query about portal-ext.xml file ....emoticon i want to modify the portal-ext file in tomcat for new database connection .I had already done with this changing but when i am going to access the previous database than it is not responding .What i have to do without changing the portal-ext file and i also want to create a database i.e i want to work on another database ....i think it will be clear ...what i actually want to do .



Hi Sanjay,

I am bit confuse here.

You change DB in portal-ext then you want to switch back with old one ?
or
You want two DB in single portal-ext ?

Make your self more clear emoticon

Thanks,
Sagar Vyas
Sanjay Jat
RE: Service Builder not generating code
28 novembre 2011 5.03
Risposta

Sanjay Jat

Punteggio: New Member

Messaggi: 13

Data di Iscrizione: 22 giugno 2011

Messaggi recenti

Hello sagar,
I want to use two database in a single portal-ext file ...Is it possible or i have to create two different portal-ext file ....My requirement is i have to use two database which share the user data .Like user information will be store in two database tables ,one table only have the user registration info .and some fields data like username and password will be store in another database also. If it is not clear than please let me know ...
Thanks ...
amran loudi
RE: Service Builder not generating code
16 dicembre 2011 9.51
Risposta

amran loudi

Punteggio: New Member

Messaggi: 3

Data di Iscrizione: 16 dicembre 2011

Messaggi recenti

i am also facing this problem, I do many thing but vain.

_____________________________
DropShip
David H Nebinger
RE: Service Builder not generating code
28 febbraio 2012 12.37
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11295

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

First you shouldn't be hijacking an old post to ask a question, you should start a new thread instead.

Second, you stripped off the primary="true" attribute from the productId column and didn't define a new primary key.
Ritika Arora
RE: Service Builder not generating code
27 maggio 2012 7.02
Risposta

Ritika Arora

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 27 maggio 2012

Messaggi recenti

i have made the same project through same pdf for portlet developement and facing the similar issue of service classes not getting generated although eclipse is showing build successful. Please help me out in resolving this issue

Thanks
Ritika Arora
Ritika Arora
RE: Service Builder not generating code
27 maggio 2012 7.03
Risposta

Ritika Arora

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 27 maggio 2012

Messaggi recenti

i have made the same project through same pdf for portlet developement and facing the similar issue of service classes not getting generated although eclipse is showing build successful. Please help me out in resolving this issue

Thanks
Ritika Arora
Hitoshi Ozawa
RE: Service Builder not generating code
27 maggio 2012 16.21
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Ritika, if you create a new thread instead of posting to the old thread, you're more likely to get assistance.

Retract the above statement. Seems like you've already created a new thread.
http://www.liferay.com/community/forums/-/message_boards/message/14129955
Vichantri Geiantilal
RE: Service Builder not generating code
13 giugno 2012 2.50
Risposta

Vichantri Geiantilal

Punteggio: Junior Member

Messaggi: 29

Data di Iscrizione: 11 giugno 2012

Messaggi recenti

Neha Sharma:
Sagar,

You are right in saying its not a DB issue...bingoooo.....finally i got the service layer generated now.
I just did everything from scratch again and it now works..
Few important checkpoints i remember are :

1. setting ANT_HOME,JAVA_HOME varaiables
2. creating build.<systemname>.properties
3. Open “liferay-plugin-package.properties” file from the path “library-portlet/docroot/WEBINF”. Add the 6 tld files required
4. delete all the tld files from WEB-INF/tld
5. eclipse-> show view -> ant -> added the build file
6. Create service.xml
7. ant ->clean + build-services

along with these few more things were done earlier for MySql db.

Thank you for showing way..

Regards,
Neha


Hello Neha

im facing the same problem as u on Liferay build a service layer i follow the same document as u, i have liferay portal 6.0.5 and liferay plugins sdk 6.0.2.
Can u explain me your steps for making it works but more specifically because i m new here.

1. first u delete your service ?
2.setting the ANT_HOME and JAVA_HOME u did this on System envioroment Variables??
i hv the following config:
ANT_HOME = C:\Program Files\apache-ant-1.8.2-bin\apache-ant-1.8.2
JAVA_HOME = C:\Program Files\Java\jre6

3. creating build.<systemname>.properties, i hv this file on my C:\Program Files\liferay-plugins-sdk-6.0.2 --> build.Vichantri.properties and its contain the following

 1# Managed by Liferay IDE (remove this comment to prevent future updates)
 2
 3#Managed by Liferay IDE (remove this comment to prevent future updates)
 4#Tue Jun 12 11:22:09 CAT 2012
 5app.server.portal.dir = E:\\Empresas\\Cofimatica\\Pentaho Liferay\\Liferay Development\\liferay-portal-tomcat-6.0.5\\liferay-portal-6.0.5\\tomcat-6.0.26\\webapps\\ROOT
 6app.server.lib.global.dir = E:\\Empresas\\Cofimatica\\Pentaho Liferay\\Liferay Development\\liferay-portal-tomcat-6.0.5\\liferay-portal-6.0.5\\tomcat-6.0.26\\lib\\ext
 7app.server.deploy.dir = E:\\Empresas\\Cofimatica\\Pentaho Liferay\\Liferay Development\\liferay-portal-tomcat-6.0.5\\liferay-portal-6.0.5\\tomcat-6.0.26\\webapps
 8app.server.type = tomcat
 9app.server.dir = E:\\Empresas\\Cofimatica\\Pentaho Liferay\\Liferay Development\\liferay-portal-tomcat-6.0.5\\liferay-portal-6.0.5\\tomcat-6.0.26


do i hv to put anything else?

4. delete all the tld files from WEB-INF/tld --> i already do this
5. eclipse-> show view -> ant -> added the build file --> wich build file do i hv to add???? from where??
6. Create service.xml
7. ant ->clean + build-services --> first i run clean on ant then i build service again???

Please help me out im running out of time :S:S hv to figure this out

thank u
Dorothy Taylor
RE: Service Builder not generating code
8 settembre 2015 4.34
Risposta

Dorothy Taylor

Punteggio: New Member

Messaggi: 19

Data di Iscrizione: 3 ottobre 2008

Messaggi recenti

I am also facing the same issue. Below is the error. I am using Liferay 6.2, and liferay-plugins-sdk-6.2. Pls help


 1  [delete] Deleting: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\build-service-classpath.jar
 2     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
 3     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
 4     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
 5     [echo] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.layoutconfiguration.util.RuntimePage' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
 6     [echo]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
 7     [echo]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
 8     [echo]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
 9     [echo]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
10     [echo]     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
11     [echo]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
12     [echo]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
13     [echo]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
14     [echo]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
15     [echo]     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
16     [echo]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
17     [echo]     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
18     [echo]     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
19     [echo]     at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
20     [echo]     at com.liferay.portal.spring.util.SpringUtil._loadContext(SpringUtil.java:74)
21     [echo]     at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:60)
22     [echo]     at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:189)
23     [echo]     at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:166)
24     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:198)
25     [echo] Caused by: java.lang.IncompatibleClassChangeError: Implementing class
26     [echo]     at java.lang.ClassLoader.defineClass1(Native Method)
27     [echo]     at java.lang.ClassLoader.defineClass(Unknown Source)
28     [echo]     at java.security.SecureClassLoader.defineClass(Unknown Source)
29     [echo]     at java.net.URLClassLoader.defineClass(Unknown Source)
30     [echo]     at java.net.URLClassLoader.access$100(Unknown Source)
31     [echo]     at java.net.URLClassLoader$1.run(Unknown Source)
32     [echo]     at java.net.URLClassLoader$1.run(Unknown Source)
33     [echo]     at java.security.AccessController.doPrivileged(Native Method)
34     [echo]     at java.net.URLClassLoader.findClass(Unknown Source)
35     [echo]     at java.lang.ClassLoader.loadClass(Unknown Source)
36     [echo]     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
37     [echo]     at java.lang.ClassLoader.loadClass(Unknown Source)
38     [echo]     at java.lang.Class.getDeclaredConstructors0(Native Method)
39     [echo]     at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
40     [echo]     at java.lang.Class.getConstructor0(Unknown Source)
41     [echo]     at java.lang.Class.getDeclaredConstructor(Unknown Source)
42     [echo]     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
43     [echo]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
44     [echo]     ... 18 more
45     [echo] Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
46
47BUILD FAILED
48D:\Code_Home\plugins\liferay-plugins-sdk-6.2\build-common-plugin.xml:464: The following error occurred while executing this line:
49D:\Code_Home\plugins\liferay-plugins-sdk-6.2\build-common-plugin.xml:147: Service Builder generated exceptions.


I have also made this change
1
2<jvmarg value="-Xms128m" />
3<jvmarg value="-Xmx512m" />
David H Nebinger
RE: Service Builder not generating code
8 settembre 2015 6.33
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11295

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

No, Dorothy, you are not having the same error (except that of yet again reviving a dead thread).

Your main error is: Caused by: java.lang.IncompatibleClassChangeError: Implementing class

For that, you should research the exception itself: http://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror.
Dorothy Taylor
RE: Service Builder not generating code
9 settembre 2015 1.05
Risposta

Dorothy Taylor

Punteggio: New Member

Messaggi: 19

Data di Iscrizione: 3 ottobre 2008

Messaggi recenti

I will raise a new post for it then