<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Implementing a reusable Liferay Service Without Ext or Service Builder</title>
	<atom:link href="http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=implementing-a-reusable-liferay-service-without-ext-or-service-builder</link>
	<description>A day in the life of a developer</description>
	<lastBuildDate>Tue, 31 Jan 2012 10:19:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shantanu</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-26591</link>
		<dc:creator>Shantanu</dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-26591</guid>
		<description>Hi Birt,
Can you please post updates for the post to work in Liferay 6.0.6?</description>
		<content:encoded><![CDATA[<p>Hi Birt,<br />
Can you please post updates for the post to work in Liferay 6.0.6?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samsam</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-9473</link>
		<dc:creator>Samsam</dc:creator>
		<pubDate>Mon, 18 Jul 2011 02:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-9473</guid>
		<description>Hello Bert,

Why is the PrincipalBean needed in this example?

eg.
HelloWorldServiceBaseImpl extends PrincipalBean

Another question, is the following annotation only way to create a reusable web service in liferay?:

@BeanReference(name = &quot;nl.devatwork.hello.world.service.HelloWorldService.impl&quot;)

 
Thanks
Sam</description>
		<content:encoded><![CDATA[<p>Hello Bert,</p>
<p>Why is the PrincipalBean needed in this example?</p>
<p>eg.<br />
HelloWorldServiceBaseImpl extends PrincipalBean</p>
<p>Another question, is the following annotation only way to create a reusable web service in liferay?:</p>
<p>@BeanReference(name = &#8220;nl.devatwork.hello.world.service.HelloWorldService.impl&#8221;)</p>
<p>Thanks<br />
Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bert Willems</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8955</link>
		<dc:creator>Bert Willems</dc:creator>
		<pubDate>Tue, 05 Jul 2011 08:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8955</guid>
		<description>Hello Sam,

I haven&#039;t done that before so I cant help you with that.

Good luck,
Bert</description>
		<content:encoded><![CDATA[<p>Hello Sam,</p>
<p>I haven&#8217;t done that before so I cant help you with that.</p>
<p>Good luck,<br />
Bert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samsam</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8948</link>
		<dc:creator>Samsam</dc:creator>
		<pubDate>Tue, 05 Jul 2011 02:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8948</guid>
		<description>Bert,

How do you use Hibernate/JPA to in the HelloWorldService module? I want to use the service module to interact with mysql database, and then create a service facade for the client.

Thanks
Sam</description>
		<content:encoded><![CDATA[<p>Bert,</p>
<p>How do you use Hibernate/JPA to in the HelloWorldService module? I want to use the service module to interact with mysql database, and then create a service facade for the client.</p>
<p>Thanks<br />
Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samsam</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8944</link>
		<dc:creator>Samsam</dc:creator>
		<pubDate>Tue, 05 Jul 2011 01:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8944</guid>
		<description>An excellent tutorial, ever!
It works like a charm :)</description>
		<content:encoded><![CDATA[<p>An excellent tutorial, ever!<br />
It works like a charm <img src='http://www.devatwork.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bert Willems</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8920</link>
		<dc:creator>Bert Willems</dc:creator>
		<pubDate>Mon, 04 Jul 2011 07:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8920</guid>
		<description>Hello Sam,

I think you need to configure the dependency properly in your POMs, see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for details.

Bert</description>
		<content:encoded><![CDATA[<p>Hello Sam,</p>
<p>I think you need to configure the dependency properly in your POMs, see <a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html" rel="nofollow">http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html</a> for details.</p>
<p>Bert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samsam</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8911</link>
		<dc:creator>Samsam</dc:creator>
		<pubDate>Mon, 04 Jul 2011 02:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8911</guid>
		<description>Hello,

After I created  liferay-plugin-package.properties with the following content:

name=Hello World Service Implementation
module-group-id=nl.devatwork.service.impl
module-incremental-version=1
short-description=
change-log=
page-url=http://www.devatwork.nl
author=Dev @ Work
licenses=Free
 
portal-dependency-jars=hello-world-service-1.0.0-SNAPSHOT.jar

and execute mvn clean package,
It thrown the following exception:


$ mvn clean package
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for nl.devatwork.hello.world:hello-world-service-impl:war:1.0.0-SNAPSHOT
[WARNING] &#039;build.plugins.plugin.version&#039; for org.apache.maven.plugins:maven-compiler-plugin is missing. @ nl.devatwork.hello.world:hello-world-application:1.0.0-SNAPSHOT, C:\work\hello-world-start\pom.xml, line 24, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Dev@Work Hello World Service Implementation 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata nl.devatwork.hello.world:hello-world-service:1.0.0-SNAPSHOT/maven-metadata.xml from/to thirdparty (http://localhost:8081/nexus/content/repositories/thirdparty): Error transferring file: Connection refused: connect
Downloading: http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata nl.devatwork.hello.world:hello-world-service:1.0.0-SNAPSHOT/maven-metadata.xml from/to thirdparty (http://localhost:8081/nexus/content/repositories/thirdparty): Error transferring file: Connection refused: connect
Downloading: http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/hello-world-service-1.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.684s
[INFO] Finished at: Mon Jul 04 11:15:50 EST 2011
[INFO] Final Memory: 3M/55M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hello-world-service-impl: Could not resolve dependencies for project nl.devatwork.hello.world:hello-world-service-impl:war:1.0.0-SNAPSHOT: Failed to collect dependencies for [com.liferay.portal:portal-kernel:jar:5.2.8 (provided), com.liferay.portal:portal-service:jar:5.2.8 (provided), nl.devatwork.hello.world:hello-world-service:jar:1.0.0-SNAPSHOT (provided)]: Failed to read artifact descriptor for nl.devatwork.hello.world:hello-world-service:jar:1.0.0-SNAPSHOT: Could not transfer artifact nl.devatwork.hello.world:hello-world-service:pom:1.0.0-SNAPSHOT from/to thirdparty (http://localhost:8081/nexus/content/repositories/thirdparty): Error transferring file: Connection refused: connect -&gt; [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I am wonder how can I tell the mvn package build is on my project path, rather than going to grab it from my local repository ?

Thanks
Sam,</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>After I created  liferay-plugin-package.properties with the following content:</p>
<p>name=Hello World Service Implementation<br />
module-group-id=nl.devatwork.service.impl<br />
module-incremental-version=1<br />
short-description=<br />
change-log=<br />
page-url=http://www.devatwork.nl<br />
author=Dev @ Work<br />
licenses=Free</p>
<p>portal-dependency-jars=hello-world-service-1.0.0-SNAPSHOT.jar</p>
<p>and execute mvn clean package,<br />
It thrown the following exception:</p>
<p>$ mvn clean package<br />
[INFO] Scanning for projects&#8230;<br />
[WARNING]<br />
[WARNING] Some problems were encountered while building the effective model for nl.devatwork.hello.world:hello-world-service-impl:war:1.0.0-SNAPSHOT<br />
[WARNING] &#8216;build.plugins.plugin.version&#8217; for org.apache.maven.plugins:maven-compiler-plugin is missing. @ nl.devatwork.hello.world:hello-world-application:1.0.0-SNAPSHOT, C:\work\hello-world-start\pom.xml, line 24, column 21<br />
[WARNING]<br />
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.<br />
[WARNING]<br />
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.<br />
[WARNING]<br />
[INFO]<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] Building Dev@Work Hello World Service Implementation 1.0.0-SNAPSHOT<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Downloading: <a href="http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml</a><br />
[WARNING] Could not transfer metadata nl.devatwork.hello.world:hello-world-service:1.0.0-SNAPSHOT/maven-metadata.xml from/to thirdparty (<a href="http://localhost:8081/nexus/content/repositories/thirdparty" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty</a>): Error transferring file: Connection refused: connect<br />
Downloading: <a href="http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/maven-metadata.xml</a><br />
[WARNING] Could not transfer metadata nl.devatwork.hello.world:hello-world-service:1.0.0-SNAPSHOT/maven-metadata.xml from/to thirdparty (<a href="http://localhost:8081/nexus/content/repositories/thirdparty" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty</a>): Error transferring file: Connection refused: connect<br />
Downloading: <a href="http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/hello-world-service-1.0.0-SNAPSHOT.pom" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty/nl/devatwork/hello/world/hello-world-service/1.0.0-SNAPSHOT/hello-world-service-1.0.0-SNAPSHOT.pom</a><br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] BUILD FAILURE<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] Total time: 3.684s<br />
[INFO] Finished at: Mon Jul 04 11:15:50 EST 2011<br />
[INFO] Final Memory: 3M/55M<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[ERROR] Failed to execute goal on project hello-world-service-impl: Could not resolve dependencies for project nl.devatwork.hello.world:hello-world-service-impl:war:1.0.0-SNAPSHOT: Failed to collect dependencies for [com.liferay.portal:portal-kernel:jar:5.2.8 (provided), com.liferay.portal:portal-service:jar:5.2.8 (provided), nl.devatwork.hello.world:hello-world-service:jar:1.0.0-SNAPSHOT (provided)]: Failed to read artifact descriptor for nl.devatwork.hello.world:hello-world-service:jar:1.0.0-SNAPSHOT: Could not transfer artifact nl.devatwork.hello.world:hello-world-service:pom:1.0.0-SNAPSHOT from/to thirdparty (<a href="http://localhost:8081/nexus/content/repositories/thirdparty" rel="nofollow">http://localhost:8081/nexus/content/repositories/thirdparty</a>): Error transferring file: Connection refused: connect -&gt; [Help 1]<br />
[ERROR]<br />
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br />
[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br />
[ERROR]<br />
[ERROR] For more information about the errors and possible solutions, please read the following articles:<br />
[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException" rel="nofollow">http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException</a></p>
<p>I am wonder how can I tell the mvn package build is on my project path, rather than going to grab it from my local repository ?</p>
<p>Thanks<br />
Sam,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akku</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8461</link>
		<dc:creator>Akku</dc:creator>
		<pubDate>Tue, 14 Jun 2011 12:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8461</guid>
		<description>Yes, that&#039;s what you get when you post tutorials - questions over questions over issues over more issues :-) 

Nice one!</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s what you get when you post tutorials &#8211; questions over questions over issues over more issues <img src='http://www.devatwork.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Nice one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8272</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Tue, 31 May 2011 16:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8272</guid>
		<description>I think I found why this didn&#039;t work for me.  I am using LR 5.2 EE SP3 on Tomcat 6 which has a classloader bug: &quot;ClassLoaderProxy does not work with Tomcat 6. This prevents a plugin portlet from using the services of another
plugin.&quot; - http://www.liferay.com/community/forums/-/message_boards/message/4720789</description>
		<content:encoded><![CDATA[<p>I think I found why this didn&#8217;t work for me.  I am using LR 5.2 EE SP3 on Tomcat 6 which has a classloader bug: &#8220;ClassLoaderProxy does not work with Tomcat 6. This prevents a plugin portlet from using the services of another<br />
plugin.&#8221; &#8211; <a href="http://www.liferay.com/community/forums/-/message_boards/message/4720789" rel="nofollow">http://www.liferay.com/community/forums/-/message_boards/message/4720789</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.devatwork.nl/2010/04/implementing-a-reusable-liferay-service-without-ext-or-service-builder/comment-page-1/#comment-8244</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Fri, 27 May 2011 18:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.devatwork.nl/?p=728#comment-8244</guid>
		<description>I&#039;ve been able to implement this example successfully.  However, when I try to do something meaningful in my service impl like access web services through Spring&#039;s JAX-WS org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean I can find no way to make it work.  It seems that Spring can never find the WS interfaces/stubs in the Liferay runtime environment even though everything works in Maven tests. I&#039;ve put the stubs in the service impl as a jar, as java source, in the lib\ext, in the portlet, everywhere, etc and no luck. Anybody had success doing this?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been able to implement this example successfully.  However, when I try to do something meaningful in my service impl like access web services through Spring&#8217;s JAX-WS org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean I can find no way to make it work.  It seems that Spring can never find the WS interfaces/stubs in the Liferay runtime environment even though everything works in Maven tests. I&#8217;ve put the stubs in the service impl as a jar, as java source, in the lib\ext, in the portlet, everywhere, etc and no luck. Anybody had success doing this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

