where does it put those jars?
what causes this error message:
> run container:start
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
Many thanks
Jack
On Tue, Feb 21, 2012 at 5:19 AM, work only <vorlo...@gmail.com> wrote:
> Hi
>
> This a great start for Lift 2.4 SBT 11.2 and idea & eclipses IDE
>
> https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
>
> Its not my code - but it was a GREAT help!!!!
>
> Thanks
> Paul
>
>
>
>
> --
> 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
What do you mean by that?
> where does it put those jars?
>
If you mean, where do the downloaded jars, like lift-json,
lift-webkit, etc. They go into the ~/.ivy2/cache/..... folder. And
sbt knows which jars should be added to your classpath for each
project.
> what causes this error message:
>> run container:start
> java.lang.RuntimeException: No main class detected.
> at scala.sys.package$.error(package.scala:27)
>
How did you create your project?
I just start by copying one folder template from a master copy I
migrated from 0.7.7 to 0.11.2 (the 0.7.7 template is
http://liftweb.net/download )
Did you clone the
https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
project?
Regards,
Diego
> Many thanks
> Jack
>
> On Tue, Feb 21, 2012 at 5:19 AM, work only <vorlo...@gmail.com> wrote:
>> Hi
>>
>> This a great start for Lift 2.4 SBT 11.2 and idea & eclipses IDE
>>
>> https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
>>
>> Its not my code - but it was a GREAT help!!!!
>>
>> Thanks
>> Paul
>>
>>
>>
>>
>> --
>> 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
>
> --
> 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
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com
On Sun, Apr 15, 2012 at 12:55 AM, Diego Medina <di...@fmpwizard.com> wrote:
> On Sun, Apr 15, 2012 at 1:15 AM, Jack Park <jack...@gmail.com> wrote:
>> Working with that system I notice that it doesn't build a library of
>> downloaded artifacts when it's updating. I've got two questions:
>>
>
> What do you mean by that?
>
In the past, SBT update always built a folder in the root project
directory where it put all the jars. I did not expect it to do
otherwise this time. My bad.
>
>> where does it put those jars?
>>
>
> If you mean, where do the downloaded jars, like lift-json,
> lift-webkit, etc. They go into the ~/.ivy2/cache/..... folder. And
> sbt knows which jars should be added to your classpath for each
> project.
>
Thanks!
>
>> what causes this error message:
>>> run container:start
>> java.lang.RuntimeException: No main class detected.
>> at scala.sys.package$.error(package.scala:27)
>>
>
> How did you create your project?
> I just start by copying one folder template from a master copy I
> migrated from 0.7.7 to 0.11.2 (the 0.7.7 template is
> http://liftweb.net/download )
>
> Did you clone the
> https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
> project?
>
Yes. I dropped a copy of it into my project directory and booted sbt,
watched it update, then typed "run container:start" per the readme
("jetty-run" doesn't work on this version).
That's when I got the error, as if I failed to do something trivial.
Yes, sbt 0.11.2 is very different from 0.7.7, you can easily think of
them as totally different tools, there is almost no knowledge from
0.7.7 that will help you on 0.11.2 (maybe not that bad, but pretty
much)
>
> Yes. I dropped a copy of it into my project directory and booted sbt,
> watched it update, then typed "run container:start" per the readme
> ("jetty-run" doesn't work on this version).
ok, let's see if I understand what you are doing.
Did you have a scala/lift application in place, and then you tried to
add sbt 0.11.2 to it?
The normal workflow would be:
1a- Before you write any code, even create a folder, you do:
1b- git clone .... sbt project sample ...
2- mv lift-basic-2.4-sbt-0.11.2 mysuperapplication
3- cd mysuperapplication
4- ./sbt (note the ./ , it is important
this will take a while, show a lot of lines of messages, if you see
any error, please paste them here so we see what happened.
5- container:start
6- enjoy your sample application
Just to make sure, I tried those steps and they work here, so there
must be something missing on the steps you are doing.
Full log is here so you can compare to yours:
sysadmins-MacBook-Pro-5:~ diego.medina$ git clone
https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2.git delete
Cloning into 'delete'...
remote: Counting objects: 64, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 64 (delta 11), reused 56 (delta 3)
Unpacking objects: 100% (64/64), done.
sysadmins-MacBook-Pro-5:~ diego.medina$ cd delete/
sysadmins-MacBook-Pro-5:delete diego.medina$ ./sbt
[info] Loading global plugins from /Users/diego.medina/.sbt/plugins/project
[info] Loading global plugins from /Users/diego.medina/.sbt/plugins
[info] Loading project definition from /Users/diego.medina/delete/project
[info] Updating {file:/Users/diego.medina/delete/project/}default-f104b2...
[info] Resolving default#default-b856ee;0.0 ...
[info] Resolving com.github.siasia#xsbt-web-plugin_2.9.1;0.11.2-0.2.11 ...
[info] Resolving com.github.siasia#plugin-commons_2.9.1;0.11.2-0.1 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving com.github.mpeltonen#sbt-idea;1.0.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving com.typesafe.sbteclipse#sbteclipse-plugin;2.0.0 ...
[info] Resolving com.typesafe.sbteclipse#sbteclipse-core;2.0.0 ...
[info] Resolving org.scalaz#scalaz-core_2.9.1;6.0.3 ...
[info] Resolving org.scala-tools.sbt#sbt_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#main_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#actions_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#classfile_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#io_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#control_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#interface;0.11.2 ...
[info] Resolving org.scala-tools.sbt#logging_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#process_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#classpath_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#launcher-interface_2.9.1;0.11.2 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-tools.sbt#incremental-compiler_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#collections_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#api_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#persist_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-tools.sbt#compile_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#ivy_2.9.1;0.11.2 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.31 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-tools.sbt#completion_2.9.1;0.11.2 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-tools.sbt#run_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#task-system_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#tasks_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#tracking_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#cache_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#testing_2.9.1;0.11.2 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-tools.sbt#compiler-interface;0.11.2 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_8_1;0.11.2 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_8_0;0.11.2 ...
[info] Resolving org.scala-tools.sbt#precompiled-2_9_0;0.11.2 ...
[info] downloading
http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.1/sbt_0.11.2/2.0.0/jars/sbteclipse-plugin.jar
...
[info] [SUCCESSFUL ]
com.typesafe.sbteclipse#sbteclipse-plugin;2.0.0!sbteclipse-plugin.jar
(282ms)
[info] downloading
http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-core/scala_2.9.1/sbt_0.11.2/2.0.0/jars/sbteclipse-core.jar
...
[info] [SUCCESSFUL ]
com.typesafe.sbteclipse#sbteclipse-core;2.0.0!sbteclipse-core.jar
(1133ms)
[info] Done updating.
[info] Set current project to lift-basic (in build
file:/Users/diego.medina/delete/)
[info] Updating {file:/Users/diego.medina/delete/}default-f75064...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving net.liftweb#lift-webkit_2.9.1;2.4 ...
[info] Resolving commons-fileupload#commons-fileupload;1.2.2 ...
[info] Resolving net.liftweb#lift-util_2.9.1;2.4 ...
[info] Resolving commons-codec#commons-codec;1.4 ...
[info] Resolving nu.validator.htmlparser#htmlparser;1.2.1 ...
[info] Resolving javax.mail#mail;1.4.4 ...
[info] Resolving javax.activation#activation;1.1 ...
[info] Resolving joda-time#joda-time;1.6.2 ...
[info] Resolving net.liftweb#lift-actor_2.9.1;2.4 ...
[info] Resolving net.liftweb#lift-common_2.9.1;2.4 ...
[info] Resolving org.slf4j#slf4j-api;1.6.4 ...
[info] Resolving net.liftweb#lift-json_2.9.1;2.4 ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.3 ...
[info] Resolving org.scala-lang#scalap;2.9.1 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving net.liftweb#lift-mapper_2.9.1;2.4 ...
[info] Resolving net.liftweb#lift-db_2.9.1;2.4 ...
[info] Resolving net.liftweb#lift-proto_2.9.1;2.4 ...
[info] Resolving com.h2database#h2;1.2.147 ...
[info] Resolving org.apache.derby#derby;10.7.1.1 ...
[info] Resolving net.liftweb#lift-wizard_2.9.1;2.4 ...
[info] Resolving ch.qos.logback#logback-classic;0.9.26 ...
[info] Resolving ch.qos.logback#logback-core;0.9.26 ...
[info] Resolving postgresql#postgresql;9.0-801.jdbc4 ...
[info] Resolving junit#junit;4.5 ...
[info] Resolving javax.servlet#servlet-api;2.5 ...
[info] Resolving org.eclipse.jetty#jetty-webapp;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-xml;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-util;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-servlet;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-security;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-server;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-continuation;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-http;7.5.4.v20111024 ...
[info] Resolving org.eclipse.jetty#jetty-io;7.5.4.v20111024 ...
[info] downloading
http://repo1.maven.org/maven2/net/liftweb/lift-mapper_2.9.1/2.4/lift-mapper_2.9.1-2.4-sources.jar
...
[info] [SUCCESSFUL ]
net.liftweb#lift-mapper_2.9.1;2.4!lift-mapper_2.9.1.jar(src) (1890ms)
[info] downloading
http://repo1.maven.org/maven2/net/liftweb/lift-wizard_2.9.1/2.4/lift-wizard_2.9.1-2.4-sources.jar
...
[info] [SUCCESSFUL ]
net.liftweb#lift-wizard_2.9.1;2.4!lift-wizard_2.9.1.jar(src) (1077ms)
[info] downloading
http://repo1.maven.org/maven2/net/liftweb/lift-wizard_2.9.1/2.4/lift-wizard_2.9.1-2.4.jar
...
[info] [SUCCESSFUL ]
net.liftweb#lift-wizard_2.9.1;2.4!lift-wizard_2.9.1.jar (1162ms)
[info] downloading
http://repo1.maven.org/maven2/postgresql/postgresql/9.0-801.jdbc4/postgresql-9.0-801.jdbc4.jar
...
[info] [SUCCESSFUL ]
postgresql#postgresql;9.0-801.jdbc4!postgresql.jar (2319ms)
[info] downloading
http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar ...
[info] [SUCCESSFUL ] junit#junit;4.5!junit.jar (1378ms)
[info] Done updating.
> container:start
[info] Compiling 4 Scala sources to
/Users/diego.medina/delete/target/scala-2.9.1/classes...
[info] jetty-7.5.4.v20111024
[info] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
[info] started o.e.j.w.WebAppContext{/,[file:/Users/diego.medina/delete/src/main/webapp/]}
13:02:27.273 [pool-10-thread-8] DEBUG net.liftweb.util.Props - Loaded
key/value properties from resource /props/default.props
13:02:27.332 [pool-10-thread-8] DEBUG net.liftweb.mapper.MetaMapper -
Initializing MetaMapper for User
13:02:27.335 [pool-10-thread-8] DEBUG net.liftweb.mapper.MetaMapper -
Created FieldFinder for interface net.liftweb.mapper.MappedField
13:02:27.762 [pool-10-thread-8] DEBUG net.liftweb.db.ProtoDBVendor -
Created new pool entry. name=ConnectionIdentifier(lift), poolSize=1
13:02:27.784 [pool-10-thread-8] DEBUG net.liftweb.mapper.Schemifier -
Starting schemify. write=true, structureOnly=false,
dbId=ConnectionIdentifier(lift), schema=PUBLIC, tables=List(users)
13:02:27.785 [pool-10-thread-8] DEBUG net.liftweb.mapper.Schemifier -
Running beforeSchemifier on table users
13:02:27.819 [pool-10-thread-8] INFO net.liftweb.mapper.Schemifier -
CREATE TABLE users (id BIGINT NOT NULL AUTO_INCREMENT , firstname
VARCHAR(32) , lastname VARCHAR(32) , email VARCHAR(48) , locale
VARCHAR(16) , timezone VARCHAR(32) , password_pw VARCHAR(48) ,
password_slt VARCHAR(20) , textarea VARCHAR(2048) , validated BOOLEAN
, uniqueid VARCHAR(32) , superuser BOOLEAN)
13:02:27.824 [pool-10-thread-8] INFO net.liftweb.mapper.Schemifier -
ALTER TABLE users ADD CONSTRAINT users_PK PRIMARY KEY(id)
13:02:27.893 [pool-10-thread-8] INFO net.liftweb.mapper.Schemifier -
CREATE INDEX users_email ON users ( email )
13:02:27.897 [pool-10-thread-8] INFO net.liftweb.mapper.Schemifier -
CREATE INDEX users_uniqueid ON users ( uniqueid )
13:02:27.900 [pool-10-thread-8] DEBUG net.liftweb.mapper.Schemifier -
Executing DDL statements
13:02:27.901 [pool-10-thread-8] DEBUG net.liftweb.mapper.Schemifier -
Running afterSchemifier on table users
13:02:27.903 [pool-10-thread-8] DEBUG net.liftweb.db.ProtoDBVendor -
Released connection. poolSize=1
[info] Started SelectChann...@0.0.0.0:8080 STARTING
[success] Total time: 6 s, completed Apr 15, 2012 1:02:27 PM
>
Diego
I did not create a new project with this:
mv lift-basic-2.4-sbt-0.11.2 mysuperapplication
Windoz doesn't know "mv" and thinking that might have been a typo, mvn
with that line fails for obvious reasons.
Jack
On Sun, Apr 15, 2012 at 10:24 PM, Jack Park <jack...@gmail.com> wrote:
> Did I have a project to start with?
> No.
> I simply followed the instructions on the readme at
> https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
> by bringing it down and opening it in a folder, opened a console in
> that folder (Win7) and typed sbt
I assume you mean sbt.bat
> That started the same process you outline below. There is a /src and
> /project directory provided by the template project. That compiled
> just fine but does not run.
>
it compiles just fine because you run
compile
and it goes well, or what command do you run ?
> I did not create a new project with this:
> mv lift-basic-2.4-sbt-0.11.2 mysuperapplication
>
Sorry, I assumed you were on mac or linux. mv is "move", as in rename.
So if you are in windows, did you do
from the dos prompt :
git clone https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2.git
or did you download the zip file from
https://github.com/heiflo/lift-basic-2.4-sbt-0.11.2
?
Regards,
Diego
I downloaded the zip. I could bring it down with tortoisegit but I
can't imagine how that would change anything.
It *is* running now. I detected something I did which constitutes a
gross misinterpretation of the readme at github: I actually typed run
container:start -- "run" created the issue.
Many thanks
Jack
I'm glad it's working now!
Diego
Sent from my android cell