留言板
Service Builder not generating code
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
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,修改在12 年前。
RE: Service Builder not generating code
Regular Member 帖子: 144 加入日期: 11-2-21 最近的帖子
Hi Neha,
Can you find out the logs. Also share your service.xml with us so that we can help u out.
regards
Sri
Can you find out the logs. Also share your service.xml with us so that we can help u out.
regards
Sri
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
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
srikanth a,修改在12 年前。
RE: Service Builder not generating code
Regular Member 帖子: 144 加入日期: 11-2-21 最近的帖子
Can you share the console log shown when you build services. It must show error.
regards
Sri
regards
Sri
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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.
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.
Gregory Amerson,修改在12 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
Hi Greg,
Thank you for such a quick response.
The runtime is already set aptly ( Liferay v6.0 CE runtime is selected).
Thanks,
Neha
Thank you for such a quick response.
The runtime is already set aptly ( Liferay v6.0 CE runtime is selected).
Thanks,
Neha
Gregory Amerson,修改在12 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
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.
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
I checked the error logs to understand the errors. But could not relate the errors to my present issue.
PFA error logs snapshot.
PFA error logs snapshot.
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子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
Nagendra Kumar Busam,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
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
Hitoshi Ozawa,修改在12 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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.
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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
Hi Hitoshi,
So the difference between the versions is the root cause of the problem I am facing ??
Thanks,
Neha
So the difference between the versions is the root cause of the problem I am facing ??
Thanks,
Neha
Nagendra Kumar Busam,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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.
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
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
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
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
Please check this and let us know
Thanks,
Sagar Vyas
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
#
# Specify the paths to an unzipped Tomcat 6.0.x bundle.
#
app.server.dir=D:/myprojec/tomcat/tomcat-6.0.18
app.server.classes.portal.dir=${app.server.portal.dir}/WEB-INF/classes
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.lib.portal.dir=${app.server.portal.dir}/WEB-INF/lib
app.server.portal.dir=${app.server.dir}/webapps/ROOT
app.server.zip.name=liferay-portal-tomcat-6.0-${lp.version}.zip
Please check this and let us know
Thanks,
Sagar Vyas
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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:
[java] 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
[java] [Xlint:cantFindType]
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
[java] at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
[java] at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
[java] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 19 more
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
[java] ... 43 more
[java] Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[java] [Xlint:cantFindType]
[java] at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
[java] at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
[java] at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
[java] at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
[java] at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
[java] at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
[java] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[java] ... 45 more
[java] Java Result: -1
[echo] ${service.test.output}
[mkdir] 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:
[zip] 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.
[delete] 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
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:
[java] 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
[java] [Xlint:cantFindType]
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
[java] at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
[java] at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
[java] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 19 more
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
[java] ... 43 more
[java] Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[java] [Xlint:cantFindType]
[java] at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
[java] at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
[java] at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
[java] at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
[java] at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
[java] at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
[java] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[java] ... 45 more
[java] Java Result: -1
[echo] ${service.test.output}
[mkdir] 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:
[zip] 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.
[delete] 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
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
to answer your second question while i do what you told in previous post,I found it using set command.
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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:
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\classes
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\sql
[copy] 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
[copy] 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
[java] 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
[java] [Xlint:cantFindType]
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
[java] at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
[java] at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
[java] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 19 more
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
[java] ... 43 more
[java] Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[java] [Xlint:cantFindType]
[java] at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
[java] at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
[java] at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
[java] at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
[java] at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
[java] at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
[java] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[java] ... 45 more
[java] Java Result: -1
[echo] ${service.test.output}
[mkdir] 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:
[zip] 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.
[delete] 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
Buildfile: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\build.xml
build-service:
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\classes
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\service
[mkdir] Created dir: D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\library-portlet\docroot\WEB-INF\sql
[copy] 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
[copy] 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
[java] 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
[java] [Xlint:cantFindType]
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[java] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
[java] at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
[java] at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:54)
[java] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:136)
[java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:108)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 19 more
[java] 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
[java] [Xlint:cantFindType]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
[java] ... 43 more
[java] Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException: warning can't determine superclass of missing type org.apache.tools.ant.loader.AntClassLoader5
[java] [Xlint:cantFindType]
[java] at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMessageHandler.handleMessage(ReflectionWorld.java:129)
[java] at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.raiseCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
[java] at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getSuperclass(MissingResolvedTypeWithKnownSignature.java:98)
[java] at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPointcut.java:144)
[java] at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.java:47)
[java] at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.couldMatchJoinPointsInType(PointcutExpressionImpl.java:82)
[java] at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:238)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
[java] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
[java] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
[java] at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
[java] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[java] ... 45 more
[java] Java Result: -1
[echo] ${service.test.output}
[mkdir] 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:
[zip] 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.
[delete] 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,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Hi Neha,
You got Successfully message.
And i guess you forgot to remove META-INF folder , still it shows bean error.
Thanks,
Sagar Vyas
You got Successfully message.
And i guess you forgot to remove META-INF folder , still it shows bean error.
Thanks,
Sagar Vyas
Hi neha ,
Which database you are using for this service builder file? I am also facing this type of problem...
Which database you are using for this service builder file? I am also facing this type of problem...
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
Hi Sanjay,
For service xml ? i am using MySql database for the application ..
Regards,
Neha
For service xml ? i am using MySql database for the application ..
Regards,
Neha
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
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,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
Your efforts are truly appreciated.
@Hitoshi - This time i used sdk 6.0.5 like you said.. to be on safe side
srikanth a,修改在12 年前。
RE: Service Builder not generating code
Regular Member 帖子: 144 加入日期: 11-2-21 最近的帖子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
Your are welcome... .
regards
Sri
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子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
Thanks,
Sagar Vyas
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
Thanks
Ritika Arora
Vichantri Geiantilal,修改在11 年前。
RE: Service Builder not generating code
Junior Member 帖子: 29 加入日期: 12-6-11 最近的帖子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
# Managed by Liferay IDE (remove this comment to prevent future updates)
#Managed by Liferay IDE (remove this comment to prevent future updates)
#Tue Jun 12 11:22:09 CAT 2012
app.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
app.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
app.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
app.server.type = tomcat
app.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
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 .....
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,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子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
<entity name="table1" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="roomId" type="long" primary="true" />
<!-- FK fields -->
[b]<column name="roomId" type="long" />[/b]
</entity>
<entity name="table2" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="roomId" type="long" primary="true" />
</entity>
Thanks,
Sagar Vyas
Hello Sagar ,
Thanks for quick reply ...
I want to use postgresql for storing user information and mongoDB for other information like classified data ..now i need suggestion that whether i have to write separate service builder file or one service builder file for both the databases.
Thanks in advance .....
Thanks for quick reply ...
I want to use postgresql for storing user information and mongoDB for other information like classified data ..now i need suggestion that whether i have to write separate service builder file or one service builder file for both the databases.
Thanks in advance .....
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子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 ..now i need suggestion that whether i have to write separate service builder file or one service builder file for both the databases.
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
Hello ,
i think it is right place to post query about portal-ext.xml file .... 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 .
i think it is right place to post query about portal-ext.xml file .... 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 .
Sagar A Vyas,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子Sanjay Jat:
Hello ,
i think it is right place to post query about portal-ext.xml file .... 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
Thanks,
Sagar Vyas
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 ...
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 ...
]There is just a small question, what is wrong with the following 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.inkwell.internet.productregistration">
<author>Ashish Yog</author>
<namespace>PR</namespace>
<entity name="PRProduct" local-service="true" remote-service="false">
<column name="productId" type="String"/>
<column name="productName" type="String"/>
<column name="serialNumber" type="String"/>
<column name="companyId" type="long"/>
<column name="groupId" type="long"/>
<order by="asc">
<order-column name="productName"/>
</order>
<finder return-type="Collection" name="G_PN">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="groupId">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="companyId">
<finder-column name="companyId"/>
</finder>
</entity>
</service-builder>
While this one worked fine,
<?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.inkwell.internet.productregistration">
<author>Ashish Yog</author>
<namespace>PR</namespace>
<entity name="PRProduct" local-service="true" remote-service="false">
<column name="productId" type="long" primary="true"/>
<column name="productName" type="String"/>
<column name="serialNumber" type="String"/>
<column name="companyId" type="long"/>
<column name="groupId" type="long"/>
<order by="asc">
<order-column name="productName"/>
</order>
<finder return-type="Collection" name="G_PN">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="groupId">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="companyId">
<finder-column name="companyId"/>
</finder>
</entity>
</service-builder>
<?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.inkwell.internet.productregistration">
<author>Ashish Yog</author>
<namespace>PR</namespace>
<entity name="PRProduct" local-service="true" remote-service="false">
<column name="productId" type="String"/>
<column name="productName" type="String"/>
<column name="serialNumber" type="String"/>
<column name="companyId" type="long"/>
<column name="groupId" type="long"/>
<order by="asc">
<order-column name="productName"/>
</order>
<finder return-type="Collection" name="G_PN">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="groupId">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="companyId">
<finder-column name="companyId"/>
</finder>
</entity>
</service-builder>
While this one worked fine,
<?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.inkwell.internet.productregistration">
<author>Ashish Yog</author>
<namespace>PR</namespace>
<entity name="PRProduct" local-service="true" remote-service="false">
<column name="productId" type="long" primary="true"/>
<column name="productName" type="String"/>
<column name="serialNumber" type="String"/>
<column name="companyId" type="long"/>
<column name="groupId" type="long"/>
<order by="asc">
<order-column name="productName"/>
</order>
<finder return-type="Collection" name="G_PN">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="groupId">
<finder-column name="groupId"/>
</finder>
<finder return-type="Collection" name="companyId">
<finder-column name="companyId"/>
</finder>
</entity>
</service-builder>
David H Nebinger,修改在12 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
Second, you stripped off the primary="true" attribute from the productId column and didn't define a new primary key.
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
Thanks
Ritika Arora
Hitoshi Ozawa,修改在11 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子Retract the above statement. Seems like you've already created a new thread.
http://www.liferay.com/community/forums/-/message_boards/message/14129955
Neha Sharma,修改在12 年前。
RE: Service Builder not generating code
New Member 帖子: 18 加入日期: 11-11-23 最近的帖子
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
.
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
.
Nagendra Kumar Busam,修改在12 年前。
RE: Service Builder not generating code
Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子
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
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
Dorothy Taylor,修改在8 年前。
RE: Service Builder not generating code
New Member 帖子: 19 加入日期: 08-10-3 最近的帖子
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
I have also made this change
[delete] Deleting: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\build-service-classpath.jar
[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
[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
[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
[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
[echo] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
[echo] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
[echo] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
[echo] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
[echo] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
[echo] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[echo] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
[echo] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
[echo] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
[echo] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[echo] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[echo] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
[echo] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
[echo] at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
[echo] at com.liferay.portal.spring.util.SpringUtil._loadContext(SpringUtil.java:74)
[echo] at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:60)
[echo] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:189)
[echo] at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:166)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:198)
[echo] Caused by: java.lang.IncompatibleClassChangeError: Implementing class
[echo] at java.lang.ClassLoader.defineClass1(Native Method)
[echo] at java.lang.ClassLoader.defineClass(Unknown Source)
[echo] at java.security.SecureClassLoader.defineClass(Unknown Source)
[echo] at java.net.URLClassLoader.defineClass(Unknown Source)
[echo] at java.net.URLClassLoader.access$100(Unknown Source)
[echo] at java.net.URLClassLoader$1.run(Unknown Source)
[echo] at java.net.URLClassLoader$1.run(Unknown Source)
[echo] at java.security.AccessController.doPrivileged(Native Method)
[echo] at java.net.URLClassLoader.findClass(Unknown Source)
[echo] at java.lang.ClassLoader.loadClass(Unknown Source)
[echo] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[echo] at java.lang.ClassLoader.loadClass(Unknown Source)
[echo] at java.lang.Class.getDeclaredConstructors0(Native Method)
[echo] at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
[echo] at java.lang.Class.getConstructor0(Unknown Source)
[echo] at java.lang.Class.getDeclaredConstructor(Unknown Source)
[echo] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
[echo] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
[echo] ... 18 more
[echo] Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
BUILD FAILED
D:\Code_Home\plugins\liferay-plugins-sdk-6.2\build-common-plugin.xml:464: The following error occurred while executing this line:
D:\Code_Home\plugins\liferay-plugins-sdk-6.2\build-common-plugin.xml:147: Service Builder generated exceptions.
</init></init></init>
I have also made this change
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx512m" />
David H Nebinger,修改在8 年前。
RE: Service Builder not generating code
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
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,修改在8 年前。
RE: Service Builder not generating code
New Member 帖子: 19 加入日期: 08-10-3 最近的帖子
I will raise a new post for it then