Message: java.lang.NullPointerException: Looking for Connection Identifier ConnectionIdentifier(lift) but failed to find either a JNDI data source with the name lift or a lift connection manager with the correct name
Hi all!
Wohoo, I got my first real Lift app up and running (on the scary wide internets)!
Currently I'm running it on a virtual server, and I pull from a GIT repo and then start it with sbt console ("container:start") and Nginx redirects there, but I'd like to deploy it properly at some point, when active development is over.
What are the current best practices for deployment?
I was reading some old threads and there were nice tips, WAR, standalone "RunWebApp" style etc, but I'm not sure what to aim for. I tried installing jetty on my machine (latest Ubuntu) and put the war file I got with "packageWar" command to /usr/share/jetty/webapps/ but I got this error:
Message: java.lang.NullPointerException: Looking for Connection Identifier ConnectionIdentifier(lift) but failed to find either a JNDI data source with the name lift or a lift connection manager with the correct name
I read some older reports about it, but I think my connection identifier should be ok? It's from the version 2.6 starter template:
if (!DB.jndiJdbcConnAvailable_?) {
sys.props.put("h2.implicitRelativePath", "true")
val vendor =
new StandardDBVendor(Props.get("db.driver") openOr "org.h2.Driver",
Props.get("db.url") openOr
"jdbc:h2:lift_proto.db;AUTO_SERVER=TRUE",
Props.get("db.user"), Props.get("db.password"))
LiftRules.unloadHooks.append(vendor.closeAllConnections_! _)
DB.defineConnectionManager(util.DefaultConnectionIdentifier, vendor)
}
The Jetty I installed was Jetty8 and also the container:start command launche Jetty 8.x, but could it be some file permission thingie, if this writes the DB somewhere?
I'm not using any of the DB functionality, all session related data is in-memory structures for now at least.
Cheers,
Henrik.
--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes lift can be started without a DB setup,
maybe you forgot to remove some of the db import(s), like mapper
or something ?
--
--
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.
You received this message because you are subscribed to a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/eERStLaRCPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
--
For more options, visit https://groups.google.com/d/optout.
--
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 a topic in the Google Groups "Lift" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/liftweb/eERStLaRCPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to liftweb+unsubscribe@googlegroups.com.