Question about data-sources defined directly in tomee.xml

Stefaan Somers <[email protected]>
Newsgroups gmane.comp.java.openejb.user
Message-ID <CA+N_TpXo1TaGC2_VdCZqyZrXahCQNp3bw8QprkffnXvxbHABZQ@mail.gmail.com>
I've defined a data-source in the tomee.xml, and put the jar-file in the
lib folder of TomEE (see hereunder). Nevertheless I always get the
following message when starting the server :
14-Aug-2023 10:25:04.452 SEVERE [main]
org.apache.tomee.catalina.ServerListener.lifecycleEvent TomEE Listener
can't start OpenEJB
        org.apache.openejb.OpenEJBException:
org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve
class "net.sourceforge.jtds.jdbc.Driver": Unable to resolve class
"net.sourceforge.jtds.jdbc.Driver"

Any idea what I am doing wrong?




















*<tomee>  <!--
see https://tomee.apache.org/latest/docs/admin/configuration/containers.html
<https://tomee.apache.org/latest/docs/admin/configuration/containers.html> -->
<!-- activate next line to be able to deploy applications in apps -->  <!--
<Deployments dir="apps" /> -->  <!-- jdbc_salesforceApp_base datasource
--><Resource id="jdbc_salesforceApp_base" type="DataSource">     JdbcDriver
= "net.sourceforge.jtds.jdbc.Driver"    JdbcUrl =
"jdbc:jtds:sqlserver://x.x.x./XXXXX;instanceName=MSSQLSERVER"    UserName =
"XXXX"    Password = "XXXXX"    JtaManaged = true    MaxActive = "100"
MinIdle = "10"    MaxWaitTime = "5"    ValidationQuery = "select
1"</Resource>*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.