Re: Using James 3.8.0 with Microsoft SQL Server

Matt Pryor <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <CABpRBaaMOX1=8xk_2UyEGrAr8dY9ZOEA3PzgzN99V8sjtMhcBw@mail.gmail.com>
I have also tried editing my startup command as follows but still getting
the same result:

java -javaagent:james-server-jpa-app.lib\openjpa-3.2.0.jar
-Dworking.directory=. -Djdk.tls.ephemeralDHKeySize=2048
-Dlogback.configurationFile=conf\logback.xml -cp
"james-server-jpa-app.jar:james-server-jpa-app.lib/*:
extension-jars/mssql-jdbc-7.4.1.jre8.jar" -jar james-server-jpa-app.jar

Thanks
Matt



On Fri, 20 Oct 2023 at 14:59, Matt Pryor <[email protected]>
wrote:

> Hello
>
> I have the following in james-database.properties:
>
> database.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
> database.url=jdbc:sqlserver://sqlserver_host_name;DatabaseName=apache_james
> database.username=james
> database.password=xxxxxxxxx
>
> vendorAdapter.database=SQL_SERVER
>
> I'm getting ClassNotFoundException for SQLServerDriver.
>
> The driver jar is in /extension-jars
>
> I have also tried putting it in james-server-jpa-app.lib but still getting
> the same error.
>
> Is there somewhere else I have to specify the jar location so it gets
> included in the classpath?
>
> Regards
> Matt
>
>
>
> --
> Kind regards
> Matt Pryor
> Software Developer
>
> The International Presence Group of Companies
> EMAIL: [email protected]
> URL: www.International-presence.com
>
>
>

-- 
Kind regards
Matt Pryor
Software Developer

The International Presence Group of Companies
EMAIL: [email protected]
URL: www.International-presence.com
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.