<?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>Datasource binding in Liferay 7.4.2 GA3</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121061453" />
  <subtitle>Datasource binding in Liferay 7.4.2 GA3</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121061453</id>
  <updated>2026-04-04T11:01:47Z</updated>
  <dc:date>2026-04-04T11:01:47Z</dc:date>
  <entry>
    <title>RE: RE: Datasource binding in Liferay 7.4.2 GA3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121343360" />
    <author>
      <name>Mikael Andersson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121343360</id>
    <updated>2022-01-25T17:18:53Z</updated>
    <published>2022-01-24T20:06:20Z</published>
    <summary type="html">&lt;p&gt;Thanks Brian!&lt;/p&gt;
&lt;p&gt;I saw the blog post but have not had time to test anything yet. We
  use Spring Framework over here and I think there have been some
  challenges with switching class loaders. I will test this in the near
  future and reply the results.&lt;/p&gt;
&lt;p&gt;Many thanks for your reply.&lt;/p&gt;</summary>
    <dc:creator>Mikael Andersson</dc:creator>
    <dc:date>2022-01-24T20:06:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Datasource binding in Liferay 7.4.2 GA3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121343274" />
    <author>
      <name>Brian Zuppardi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121343274</id>
    <updated>2022-01-24T19:42:04Z</updated>
    <published>2022-01-24T16:39:38Z</published>
    <summary type="html">&lt;p&gt;Hi Mikael!&lt;/p&gt;
&lt;p&gt;I thought you might find Friday's blog post from David Nebinger of
  some interest... &lt;a href="https://liferay.dev/blogs/-/blogs/setting-up-jndi-in-liferay-7-4?s=09"&gt;https://liferay.dev/blogs/-/blogs/setting-up-jndi-in-liferay-7-4?s=09&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I was able to get my existing JNDI configuration to work
  (context.xml) all I had to do was change the location where I was
  copying the mysql jdbc driver jar into the container from /opt/liferay/tomcat/lib/ext to /opt/liferay/tomcat/lib&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;</summary>
    <dc:creator>Brian Zuppardi</dc:creator>
    <dc:date>2022-01-24T16:39:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Datasource binding in Liferay 7.4.2 GA3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121323540" />
    <author>
      <name>Mikael Andersson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121323540</id>
    <updated>2022-01-09T21:46:52Z</updated>
    <published>2022-01-09T21:46:52Z</published>
    <summary type="html">&lt;p&gt;Hello Brian!&lt;/p&gt;
&lt;p&gt;I have not found a way to use Tomcat JNDI to connect to external
  databases which was and is my primary need. I'm not sure but I think
  this does not relate to Tomcat versions but to the change in Liferay
  architecture where Liferay portlets no more see Tomcat classloader.&lt;/p&gt;
&lt;p&gt;At the moment I have a working alternate solution using HikariCP
  connection pool.&lt;/p&gt;
&lt;p&gt;I have not found any documentation about the change &lt;em&gt;if&lt;/em&gt; the
  change was in Liferay.&lt;/p&gt;
&lt;p&gt;Please share your information if you find any news on the DXP side.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mikael Andersson</dc:creator>
    <dc:date>2022-01-09T21:46:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Datasource binding in Liferay 7.4.2 GA3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121322856" />
    <author>
      <name>Brian Zuppardi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121322856</id>
    <updated>2022-01-07T18:39:43Z</updated>
    <published>2022-01-07T18:39:43Z</published>
    <summary type="html">&lt;p&gt;Did you ever get anywhere with this? I am having a similar issue when
  testing our upgrade from 7.2 to 7.4 DXP. We use JNDI and context.xml
  to define our datasources, including the Liferay database itself. I
  can't get it to create the context on portal startup after upgradin
  the DB and the new image. I'm guessing a differnt version of Tomcat
  and requiring a slightly different setup?&lt;/p&gt;</summary>
    <dc:creator>Brian Zuppardi</dc:creator>
    <dc:date>2022-01-07T18:39:43Z</dc:date>
  </entry>
  <entry>
    <title>Datasource binding in Liferay 7.4.2 GA3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121061452" />
    <author>
      <name>Mikael Andersson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121061452</id>
    <updated>2021-08-23T18:40:29Z</updated>
    <published>2021-08-20T12:52:58Z</published>
    <summary type="html">&lt;p&gt;Prior to 7.4.2 GA3 I've configured datasources to my external
  databases in [tomcat-home]/conf/context.xml (Context section, each
  datasource configured as a Resource). This has worked fine with 7.3.x
  and 7.4.x until 7.4.2.&lt;/p&gt;
&lt;p&gt;With 7.4.2 when my portlet creates an
  org.springframework.context.ApplicationContext I'm getting&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;javax.naming.NameNotFoundException: Name [ExternalDS] is not bound in this Context. Unable to find [ExternalDS].&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It looks like something has changed in 7.4.2 compared to previous releases.&lt;/p&gt;
&lt;p&gt;Any ideas about what has been changed and might cause this error?&lt;/p&gt;</summary>
    <dc:creator>Mikael Andersson</dc:creator>
    <dc:date>2021-08-20T12:52:58Z</dc:date>
  </entry>
</feed>
