Home > Back-end >  This what went wrong
This what went wrong

Time:11-23

I have no problem when running locally but not a run on WindowsServer, Java, SQL. SQLException: always create a JDBC driver of class 'for the connect URL' null '

CodePudding user response:

Handwritten JDBC connection

CodePudding user response:

reference 1st floor KeepSayingNo response:
handwritten JDBC connection?
have not only learned the JSTL

CodePudding user response:

Does not match the Resource on the server?

CodePudding user response:

The
reference 3 floor icoolno1 response:
does not match the Resource on the server?
I can I change the NETA - INF the inside of the context to the inside of the conf context there is ok!!!!!!!!!!!

CodePudding user response:

引用 楼主 aipipi.fun 的回复:
我在本地运行时没有问题的但是到WindowsServer上运行就不行,java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'null'


Copy the mysql driver jars to the Tomcat lib directory, and try again

CodePudding user response:

The
. Refer to the original poster aipipi fun response:
I have no problem when running locally but not to run on WindowsServer



Since you can use local database you are in the local PC, are you on to the server url or use localhost can be an entity, localhost here need to be changed to your PC's IP address,

CodePudding user response:

Database should replace localhost with server IP?

CodePudding user response:

No I doubt I'm changed mandatory HTTPS

CodePudding user response:

引用 5 楼 冬雪晶 的回复:
Quote: 引用 楼主 aipipi.fun 的回复:
我在本地运行时没有问题的但是到WindowsServer上运行就不行,java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'null'


Copy the mysql driver jars to the Tomcat lib directory and try again
there

CodePudding user response:

reference line 7 floor's reply:
should replace localhost with the server's IP database?
no

CodePudding user response:

He wrote the above is not a question of driver and the driver
  • Related