Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Muniraj saravanan
RE: Service builder not generating files in liferay 6.0.5
December 13, 2012 1:53 AM
Answer

Muniraj saravanan

Rank: Junior Member

Posts: 75

Join Date: June 1, 2011

Recent Posts

use liferay-plugins-sdk-6.05

thanks
Saravanan
sheela mk
RE: Service builder not generating files in liferay 6.0.5
December 13, 2012 2:52 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

hai..its parser exception..Some syntax Error in service.xml..file..
Shabana Popat
RE: Service builder not generating files in liferay 6.0.5
December 13, 2012 4:13 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

I changed my sdk version to 6.0.5, but i still have same error. I havent any idea about what is wrong.
Shabana Popat
RE: Service builder not generating files in liferay 6.0.5
December 13, 2012 4:16 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

Here is my server.xml:
 1
 2<?xml version="1.0"?>
 3 <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
 4  <service-builder package-path="com.sample.portlet.library">
 5   <namespace>Library</namespace>
 6    <entity name="Book" local-service="true" remote-service="true">
 7     <!-- PK fields -->
 8       <column name="bookId" type="long" primary="true" />
 9     <!-- Group instance -->
10      <column name="groupId" type="long" />
11     <!-- Audit fields -->
12      <column name="companyId" type="long" />
13      <column name="userId" type="long" />
14      <column name="userName" type="String" />
15      <column name="createDate" type="Date" />
16      <column name="modifiedDate" type="Date" />
17     <!-- Other fields -->
18      <column name="title" type="String" />
19    </entity>
20  </service-builder>


I dont know what's wrong in my code. I'm following a tutorial...
Shabana Popat
RE: Service builder not generating files in liferay 6.0.5
December 13, 2012 5:16 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

I got, I changed my service.xml with this code, and then everything worked

server.xml
 1
 2<?xml version="1.0"?>
 3 <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
 4  <service-builder package-path="com.sample.portlet.library">
 5   <namespace>Library</namespace>
 6    <entity name="Book" local-service="true" remote-service="true">
 7     <!-- PK fields -->
 8       <column name="bookId" type="long" primary="true" />
 9     <!-- Group instance -->
10      <column name="groupId" type="long" />
11     <!-- Audit fields -->
12      <column name="companyId" type="long" />
13      <column name="userId" type="long" />
14      <column name="userName" type="String" />
15      <column name="createDate" type="Date" />
16      <column name="modifiedDate" type="Date" />
17     <!-- Other fields -->
18      <column name="title" type="String" />
19    </entity>
20  </service-builder>
sheela mk
RE: Service builder not generating files in liferay 6.0.5
December 18, 2012 2:20 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

Hmm..Thats nice Idea..Getting work is Done!!!
Hitoshi Ozawa
RE: Service builder not generating files in liferay 6.0.5
December 18, 2012 5:48 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Liferay 6.0.5 doesn't support jdk 1.7. Use Oracle jdk 1.6. I think 6.0.5 sdk had a bug which was not fixed. I think I had to build it from the liferay source.
Shabana Popat
RE: Service builder not generating files in liferay 6.0.5
December 18, 2012 6:00 AM
Answer

Shabana Popat

Rank: Junior Member

Posts: 37

Join Date: December 13, 2012

Recent Posts

Hitoshi Ozawa:
Liferay 6.0.5 doesn't support jdk 1.7. Use Oracle jdk 1.6. I think 6.0.5 sdk had a bug which was not fixed. I think I had to build it from the liferay source.



Hi Hitoshi, I hadn't problems with Liferay 6.0.5 and jdk 1.7. My problem was different versions between liferay and plugins-sdk. something in my code was wrong too..

thanks
Hitoshi Ozawa
RE: Service builder not generating files in liferay 6.0.5
December 18, 2012 1:18 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Nice to hear that you have it working! emoticon

About the jdk version, you'll also have to take it into account the version of jdk which the liferay will be running. In general, it's better to stick with the approved jdk version.