tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravi sankar <sankar_rav...@yahoo.co.in.INVALID>
Subject Running war using uber jar doesn't load the jdbc driver in WEB-INF/lib folder
Date Wed, 04 May 2016 15:15:07 GMT
java -Dmyowndatasource=new://Resource?type=javax.sql.DataSource 
     -Dmyowndatasource.jdbcDriver=org.h2.Driver 
     -Dmyowndatasource.jdbcUrl=jdbc:h2:tcp://localhost/~/mydb
     -Dmyowndatasource.username=sa
     -Dmyowndatasource.password=sa
     -jar tomee-embedded-7.0.0-20160504.041353-343-uber.jar 
     --path tomee_embedded.war
     
     throws java.lang.ClassNotFoundException: org.h2.Driver
     
     Is this a tomee limitation?
     
As you suggested in another mail the workaround is working
java -Dmyowndatasource=new://Resource?type=javax.sql.DataSource 
     -Dmyowndatasource.jdbcDriver=org.h2.Driver 
     -Dmyowndatasource.jdbcUrl=jdbc:h2:tcp://localhost/~/mydb
     -Dmyowndatasource.username=sa
     -Dmyowndatasource.password=sa
     -cp tomee-embedded-7.0.0-20160504.041353-343-uber.jar:h2-1.4.191.jar
     org.apache.tomee.embedded.Main
     --path tomee_embedded.war

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message