Liferay service Builder errorLiferay service Builder errorhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=846706242024-03-28T20:41:34Z2024-03-28T20:41:34ZRE: Liferay service Builder errorMario Gonzálezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1197455092020-08-11T12:38:56Z2020-08-11T12:38:56ZI think he's referring to this post: <a href="https://issues.liferay.com/browse/LPS-88444?focusedCommentId=1713586&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1713586">https://issues.liferay.com/browse/LPS-88444?focusedCommentId=1713586&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1713586</a>Mario González2020-08-11T12:38:56ZRE: Liferay service Builder errorJean-Marie DESSERTAUXhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=890125272017-05-03T13:31:17Z2017-05-03T13:31:17Zafter making couple of changes in configuration files, it's working fine. able to connect to another database.<br /><br />Hi Murali Krishna<br />Please Murali can you please share your working configurations<br /><br />Thanks<br /><br />jmdJean-Marie DESSERTAUX2017-05-03T13:31:17ZRE: Liferay service Builder errorMurali Krishnahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=849811062017-01-19T18:49:52Z2017-01-19T18:49:52Z<div class="quote-title">David H Nebinger:</div><blockquote>You have to add the spring jar that provides the class, I think it's spring-jdbc.</blockquote><br /><br /><br /> Hi David,<br /><br /> 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's working fine. able to connect to another database.<br /><br />Thanks,<br />MuraliMurali Krishna2017-01-19T18:49:52ZRE: Liferay service Builder errorDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=846752542017-01-12T01:03:52Z2017-01-12T01:03:52ZYou have to add the spring jar that provides the class, I think it's spring-jdbc.David H Nebinger2017-01-12T01:03:52ZLiferay service Builder errorMurali Krishnahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=846706232017-01-11T20:20:45Z2017-01-11T20:20:45ZHI Team,<br /><br /> i am getting the following error, while trying to connect to another DB.<br /><br /> service.xml:<br /><br /> <entity cache-enabled="true" table="TBL_ACCOUNT" name="TBL_ACCOUNT" local-service="true" remote-service="true" data-source="customerDataSource" > <br /> <column name="ACCOUNTID" type="long" primary="true" /><br /> <column name="ACCOUNTNAME" type="String" /><br /> <column name="ACCOUNTSTATUS" type="long" /><br /> <column name="ACCOUNTTYPE" type="long" /><br /> <column name="PARENTACCOUNTID" type="long" /><br /> <column name="CREATEDATE" type="Date" /><br /> <column name="CREATEDABY" type="String" /><br /> <column name="LASTUPDATEDDATE" type="Date" /><br /> <column name="LASTUPDATEDBY" type="String" /><br /> <br /> <finder return-type="Collection" name="name"><br /> <finder-column name="ACCOUNTNAME"></finder-column><br /> </finder><br /> </entity><br /><br /> ext-db-spring.xml:<br /><br /> <?xml version="1.0"?><br /><br /><beans<br /> default-destroy-method="destroy"<br /> default-init-method="afterPropertiesSet"<br /> xmlns="http://www.springframework.org/schema/beans"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"<br />><br /><br /> <!--<br /> NOTE: Current restriction in LR7's handling of external data sources requires us to redefine the<br /> liferayDataSource bean in our spring configuration.<br /><br /> The following beans define a new liferayDataSource based on the jdbc.ext. prefix in portal-ext.properties.<br /> --><br /> <bean class="com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean" id="liferayDataSourceImpl"><br /> <property name="propertyPrefix" value="jdbc.customer." /><br /> </bean><br /><br /> <bean class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy" id="liferayDataSource"><br /> <property name="targetDataSource" ref="liferayDataSourceImpl" /><br /> </bean><br /><br /> <!--<br /> So our entities are all appropriately tagged with the extDataSource, we'll alias the above<br /> liferayDataSource so it matches the entities.<br /> --><br /><br /> <alias alias="customerDataSource" name="liferayDataSource" /><br /></beans><br /><br /><br />while doing deployment, i am getting the following error:<br /><br /> 19:27:53,793 ERROR [localhost-startStop-1][vf-goop-webservices-service:97] Unable to start vf-goop-webservices-service <br />org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.spring.aop.ServiceBeanAutoProxyCreator#0' 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 'liferayDataSource' defined in URL [bundleentry://44.fwk52906764/META-INF/spri