HTTP 500 - Cannot create JDBC driver of class '' for connect URL 'null'

前端 未结 3 1978
天命终不由人
天命终不由人 2021-01-07 05:55

I have been searching to fix that problem for 3 days reading forums... Then I decided to ask for some help. Nedless to say that your help would be highly appreciated :-)

3条回答
  •  无人及你
    2021-01-07 06:02

    I think your tomcat installation is not using your context.xml. Please create fresh tomcat, configure context.xml and libs and run Tomcat directly from system (without Eclipse etc).


    Question was updated, answer below is obsolete :/

    The important part is:

    Cannot create JDBC driver of class '' for connect URL 'null'
    

    Your driver class is null and connection URL is null.

    Application configuration requires configured resource jdbc/TestDB on server:

    
        DB Connection
        jdbc/TestDB
        javax.sql.DataSource
        Container
    
    

    and

         
    

    But your Tomcat configuration Servers/tomcat-config/context.xml is wrong. It looks like spring application configuration.

    
    
     ...
    

    Standard Tomcat context.xml looks like this:

    
    
    
    
     
    

提交回复
热议问题