Lifted, This little method
def handle( db : String )( contents: String ) : Unit = { var obj : java.lang.Object = null; try { obj = new XStream( new JettisonMappedXmlDriver() ).fromXML( contents ); try { entityManager( db ).getTransaction().begin(); entityManager( db ).persist( obj ); entityManager( db ).getTransaction().commit(); } catch { case e => { println( "persistence error" ) e.printStackTrace } } } catch { case e => { println( "marshaling error" ) e.printStackTrace } } } is resulting in this stack trace scala> res8.handle( "stockholm" )( res3.toXML( res5 ) ) res8.handle( "stockholm" )( res3.toXML( res5 ) ) res8.handle( "stockholm" )( res3.toXML( res5 ) ) log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version). log4j:WARN Please initialize the log4j system properly. persistence error javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: Cannot open connection at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:637) at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:41) at net.liftweb.amqp.JSONToSQLHandler$class.handle(JSONAMQPDispatcher.scala:80) at net.liftweb.amqp.JSONAMQPListener$JSONListener.handle(JSONAMQPDispatcher.scala:118) ... Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---