Connecting to RDBMS - Failed to instantiate Spring XML application context

classic Classic list List threaded Threaded
2 messages Options
abd abd
Reply | Threaded
Open this post in threaded view
|

Connecting to RDBMS - Failed to instantiate Spring XML application context

CONTENTS DELETED
The author has deleted this message.
akorensh akorensh
Reply | Threaded
Open this post in threaded view
|

Re: Connecting to RDBMS - Failed to instantiate Spring XML application context

Hi,
  If you look at the message, on the very bottom it tells you:

  Caused by: java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource

  This means that the class in question is not on the classpath of the Java
VM.

   Add the relevant library to the classpath and it should work.
   
  To diagnose:
   1. start w/out this bean, and use visualvm/jinfo/jps or the logs inside
ignite to see what the classpath is.
   2. if you see that the relevant library is not there, add it to the place
where ignite will look for it.
      usually in the ${ignite_home}/libs dir.
   3. restart w/out that bean and verify that the classpath contains your
jar file
   4. Once you verified that the classpath is correct, start w/the bean in
question.

 see:
https://ignite.apache.org/docs/latest/installation/installing-using-docker#deploying-user-libraries

https://stackoverflow.com/questions/17151058/how-can-i-view-the-classpath-and-jvm-args-of-an-executing-java-program-in-window

Also Ignite will show you the classpath of the process:
 look for: [INFO ][main][IgniteKernal%node1] Classpath value:
 (here you need to start ignite w/the vm system property IGNITE_QUIET=false)
   https://ignite.apache.org/docs/latest/logging#overview

Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/