java - jtds No Suitable Driver Exception when running a maven built project -


we have simple spring-hibernate application(console app) in have set classpath in manifest file of executable jar file. , app connects database using jtds driver, works expected on windows machine , jdk1.6. on linux, app unable find driver, running program using java -jar mainclassname

any suggestions why might happening appreciated.

this issue occurred because our jdbc.url had invalid url. because maven treats jdbc.url property special property , while profiling, instead of url defined in filter.properties. , reason "no suitable driver" exception. question should have been more clear.

anyways fix had rename jdbc.url properties jdbc.url.somename. fixed our issue maven profiling. had similar maven profiling issue property called "server.name" filter property confusing maven profiling . had change name of property well.

thanks again fernando.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -