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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -