Heiko,

I just tried runtime scope and I get the same exception when
recompiling a Scala file with jetty still running. Do you experience
the same?

org.h2.jdbc.JdbcSQLException: Database may be already in use: Locked
by another process. Possible solutions: close all other connection(s);
use the server mode [90020-121]

For production, when you are taking your warfile and deploying it
somewhere runtime may be suitable but for development, having Jetty be
able to hot redeploy is critical, at least to me.  I can change it to
taste sure, but most people aren't experts in maven let alone maven-
jetty-plugin.

On Dec 31, 1:10 am, Heiko Seeberger <heiko.seeber...@googlemail.com>
wrote:
> Hi,
>
> What about using *runtime* scope for the database drivers? This is what I am
> always changing my POM to. Because IMHO it is just the right thing: No
> compilation dependency, but working with *mvn jetty:run* and inclusion in
> the WAR.
>
> By the way: The same applies to log4j.
>
> This is a snippet from a "production" app:
>   <dependencies>
>     <!-- compile -->
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-webkit</artifactId>
>       <version>${lift.version}</version>
>     </dependency>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-mapper</artifactId>
>       <version>${lift.version}</version>
>     </dependency>
>     <!-- runtime -->
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.14</version>
>       <scope>runtime</scope>
>     </dependency>
>     <dependency>
>       <groupId>com.h2database</groupId>
>       <artifactId>h2</artifactId>
>       <version>1.2.121</version>
>       <scope>runtime</scope>
>     </dependency>
>     <!-- test -->
>     <dependency>
>       <groupId>org.scalatest</groupId>
>       <artifactId>scalatest</artifactId>
>       <version>1.0</version>
>       <scope>test</scope>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>4.5</version>
>       <scope>test</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.mortbay.jetty</groupId>
>       <artifactId>jetty</artifactId>
>       <version>[6.1.22,7)</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>
> Just my 2 cent ...
>
> Heiko
>
> My job: weiglewilczek.com
> My blog: heikoseeberger.name
> Follow me: twitter.com/hseeberger
> OSGi on Scala: scalamodules.org
> Lift, the simply functional web framework: liftweb.net

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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.


Reply via email to