I'm trying to do a proof of concept to determine if using Lift is a viable option to improve our web client interface for users. I've read a lot of the scala and lift tutorials but am by no stretch of any imagination any kind of an expert. I have been able to create some running lift applications using the lift-basic archetype and I've been able to modify it to include many of the examples from Simply Lift. One of the biggest issues of using non IBM based tools in our iSeries environment is connecting the data base and being able to CRUD.
I'm now trying to create a connection to our iSeries host by modifying the default boot.scala file and adding some information to the defaults.prop file in the lift-basic archetype. I'm getting an error and cannot figure what I need to do. Since there seems to be a vacuum of information related to Lift and iSeries DB2 connections on the net, I'm hoping someone will take this as a challenge and help me out.
I've modified the default.props file to the folling:
db.url=jdbc:as400://www.domain.com; database name=bntemp
db.user=username
db.password=password
db.driver=com.ibm.as400.access.AS400JDBCDriver
and I've placed the jt400.jar file containing the JDBC driver in a new folder: c:/(projectPath)\src\main\webapp\WEB-INF\lib
This is all that I thought I would have to do. But, I'm getting the following error that in the past with other tools indicates that the driver file (jt400.jar) is not in the path where it can be found. If this is the case here and/or if there my be other things I'm missing or not understanding.
Appreciate any help.
Thanks
Bob.
.
.
19:08:54.618 [pool-6-thread-1] ERROR net.liftweb.db.StandardDBVendor - Unable to
get database connection. url=jdbc:as400://www.busapp.com; database name=bntemp,
user=bob
java.sql.SQLException: No suitable driver found for jdbc:as400://www.busapp.com;
database name=bntemp
at java.sql.DriverManager.getConnection(Unknown Source) ~[na:1.7.0]
at java.sql.DriverManager.getConnection(Unknown Source) ~[na:1.7.0]
at net.liftweb.db.StandardDBVendor$$anonfun$createOne$4.apply(DB.scala:1
143) ~[lift-db_2.9.1-2.5-M4.jar:2.5-M4]
.
.
.--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
> container:start
[info] jetty-8.1.7.v20120910
[info] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
[info] started o.e.j.w.WebAppContext{/,[file:/C:/Users/Bob/Lift25M4Projects/lift
_basic/src/main/webapp/]}
[info] started o.e.j.w.WebAppContext{/,[file:/C:/Users/Bob/Lift25M4Projects/lift
_basic/src/main/webapp/]}
22:53:26.922 [pool-20-thread-6] ERROR n.liftweb.http.provider.HTTPProvider - Fai
led to Boot! Your application may not run properly
java.sql.SQLException: [SQL0204] BOB in QSYS type *LIB not found.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:703) ~[jt
400.jar:JTOpen 7.7]
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:669) ~[jt
400.jar:JTOpen 7.7]
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatem
ent.java:1586) ~[jt400.jar:JTOpen 7.7]
at com.ibm.as400.access.AS400JDBCStatement.execute(AS400JDBCStatement.ja
va:1967) ~[jt400.jar:JTOpen 7.7]
at net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier$$maybeWr
ite(Schemifier.scala:208) ~[lift-mapper_2.9.1-2.5-M4.jar:2.5-M4]
.
.
.
at java.lang.Thread.run(Unknown Source) [na:1.6.0_39]
[info] Started SelectChann...@0.0.0.0:8080
[success] Total time: 20 s, completed Feb 19, 2013 10:53:26 PM
>