<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay service Builder error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=84670624" />
  <subtitle>Liferay service Builder error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=84670624</id>
  <updated>2026-04-05T07:54:58Z</updated>
  <dc:date>2026-04-05T07:54:58Z</dc:date>
  <entry>
    <title>RE: Liferay service Builder error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119745509" />
    <author>
      <name>Mario González</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119745509</id>
    <updated>2020-08-11T12:38:56Z</updated>
    <published>2020-08-11T12:38:56Z</published>
    <summary type="html">I think he&amp;#39;s referring to this post: &lt;a href="https://issues.liferay.com/browse/LPS-88444?focusedCommentId=1713586&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1713586"&gt;https://issues.liferay.com/browse/LPS-88444?focusedCommentId=1713586&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1713586&lt;/a&gt;</summary>
    <dc:creator>Mario González</dc:creator>
    <dc:date>2020-08-11T12:38:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay service Builder error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89012527" />
    <author>
      <name>Jean-Marie DESSERTAUX</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89012527</id>
    <updated>2017-05-03T13:31:17Z</updated>
    <published>2017-05-03T13:31:17Z</published>
    <summary type="html">after making couple of changes in configuration files, it&amp;#39;s working fine. able to connect to another database.&lt;br /&gt;&lt;br /&gt;Hi Murali Krishna&lt;br /&gt;Please Murali  can you please share your working configurations&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;jmd</summary>
    <dc:creator>Jean-Marie DESSERTAUX</dc:creator>
    <dc:date>2017-05-03T13:31:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay service Builder error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84981106" />
    <author>
      <name>Murali Krishna</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84981106</id>
    <updated>2017-01-19T18:49:52Z</updated>
    <published>2017-01-19T18:49:52Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;You have to add the spring jar that provides the class, I think it&amp;#39;s spring-jdbc.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Hi David,&lt;br /&gt;&lt;br /&gt;                 Spring-jdbc.jar is not needed for another db connection. we are using the OSGI services for service builder and we deploying services as jar not war.. after making couple of changes in configuration files, it&amp;#39;s working fine. able to connect to another database.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Murali</summary>
    <dc:creator>Murali Krishna</dc:creator>
    <dc:date>2017-01-19T18:49:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay service Builder error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84675254" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84675254</id>
    <updated>2017-01-12T01:03:52Z</updated>
    <published>2017-01-12T01:03:52Z</published>
    <summary type="html">You have to add the spring jar that provides the class, I think it&amp;#39;s spring-jdbc.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2017-01-12T01:03:52Z</dc:date>
  </entry>
  <entry>
    <title>Liferay service Builder error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84670623" />
    <author>
      <name>Murali Krishna</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=84670623</id>
    <updated>2017-01-11T20:20:45Z</updated>
    <published>2017-01-11T20:20:45Z</published>
    <summary type="html">HI Team,&lt;br /&gt;&lt;br /&gt;    i am getting the following error, while trying to connect to another DB.&lt;br /&gt;&lt;br /&gt;   service.xml:&lt;br /&gt;&lt;br /&gt;    &amp;lt;entity cache-enabled=&amp;#34;true&amp;#34; table=&amp;#34;TBL_ACCOUNT&amp;#34; name=&amp;#34;TBL_ACCOUNT&amp;#34;  local-service=&amp;#34;true&amp;#34; remote-service=&amp;#34;true&amp;#34; data-source=&amp;#34;customerDataSource&amp;#34; &amp;gt;  &lt;br /&gt;	    	&amp;lt;column name=&amp;#34;ACCOUNTID&amp;#34; type=&amp;#34;long&amp;#34; primary=&amp;#34;true&amp;#34; /&amp;gt;&lt;br /&gt;	    	&amp;lt;column name=&amp;#34;ACCOUNTNAME&amp;#34; type=&amp;#34;String&amp;#34; /&amp;gt;&lt;br /&gt;	    	&amp;lt;column name=&amp;#34;ACCOUNTSTATUS&amp;#34; type=&amp;#34;long&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;ACCOUNTTYPE&amp;#34; type=&amp;#34;long&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;PARENTACCOUNTID&amp;#34; type=&amp;#34;long&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;CREATEDATE&amp;#34; type=&amp;#34;Date&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;CREATEDABY&amp;#34; type=&amp;#34;String&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;LASTUPDATEDDATE&amp;#34; type=&amp;#34;Date&amp;#34; /&amp;gt;&lt;br /&gt;			&amp;lt;column name=&amp;#34;LASTUPDATEDBY&amp;#34; type=&amp;#34;String&amp;#34; /&amp;gt;&lt;br /&gt;			&lt;br /&gt;			&amp;lt;finder return-type=&amp;#34;Collection&amp;#34; name=&amp;#34;name&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;finder-column name=&amp;#34;ACCOUNTNAME&amp;#34;&amp;gt;&amp;lt;/finder-column&amp;gt;&lt;br /&gt;			&amp;lt;/finder&amp;gt;&lt;br /&gt;	  &amp;lt;/entity&amp;gt;&lt;br /&gt;&lt;br /&gt;  ext-db-spring.xml:&lt;br /&gt;&lt;br /&gt;     &amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;beans&lt;br /&gt;    default-destroy-method=&amp;#34;destroy&amp;#34;&lt;br /&gt;    default-init-method=&amp;#34;afterPropertiesSet&amp;#34;&lt;br /&gt;    xmlns=&amp;#34;http://www.springframework.org/schema/beans&amp;#34;&lt;br /&gt;    xmlns:xsi=&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34;&lt;br /&gt;    xsi:schemaLocation=&amp;#34;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&amp;#34;&lt;br /&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;!--&lt;br /&gt;    NOTE: Current restriction in LR7&amp;#39;s handling of external data sources requires us to redefine the&lt;br /&gt;    liferayDataSource bean in our spring configuration.&lt;br /&gt;&lt;br /&gt;    The following beans define a new liferayDataSource based on the jdbc.ext. prefix in portal-ext.properties.&lt;br /&gt;   --&amp;gt;&lt;br /&gt;  &amp;lt;bean class=&amp;#34;com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean&amp;#34; id=&amp;#34;liferayDataSourceImpl&amp;#34;&amp;gt;&lt;br /&gt;    &amp;lt;property name=&amp;#34;propertyPrefix&amp;#34; value=&amp;#34;jdbc.customer.&amp;#34; /&amp;gt;&lt;br /&gt;  &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;bean class=&amp;#34;org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy&amp;#34; id=&amp;#34;liferayDataSource&amp;#34;&amp;gt;&lt;br /&gt;    &amp;lt;property name=&amp;#34;targetDataSource&amp;#34; ref=&amp;#34;liferayDataSourceImpl&amp;#34; /&amp;gt;&lt;br /&gt;  &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;!--&lt;br /&gt;    So our entities are all appropriately tagged with the extDataSource, we&amp;#39;ll alias the above&lt;br /&gt;    liferayDataSource so it matches the entities.&lt;br /&gt;   --&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;alias alias=&amp;#34;customerDataSource&amp;#34; name=&amp;#34;liferayDataSource&amp;#34; /&amp;gt;&lt;br /&gt;&amp;lt;/beans&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;while doing deployment, i am getting the following error:&lt;br /&gt;&lt;br /&gt;   19:27:53,793 ERROR [localhost-startStop-1][vf-goop-webservices-service:97] Unable to start vf-goop-webservices-service &lt;br /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name &amp;#39;com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator#0&amp;#39; defined in URL [bundleentry://344.fwk52906764/META-INF/spring/parent/base-spring.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy] for bean with name &amp;#39;liferayDataSource&amp;#39; defined in URL [bundleentry://44.fwk52906764/META-INF/spring/ext-db-spring.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy&lt;br /&gt;&lt;br /&gt;can you please let me know, is i missed any configuration?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Murali</summary>
    <dc:creator>Murali Krishna</dc:creator>
    <dc:date>2017-01-11T20:20:45Z</dc:date>
  </entry>
</feed>
