tutorial-scaffolding

13 views
Skip to first unread message

jakub rezek

unread,
Aug 29, 2010, 4:35:29 PM8/29/10
to Conjure
Hi,
I am trying to follow the tutorial for Conjure. I got stuck on
scaffolding. My stdout does not look like it should(see below), no
model file is generated and the localhost:8080 looks like before.

I am running on Windows.

Here is what stdout looks like:

c:\conjure-world>lein conjure generate scaffold my_message text:string
DEBUG [conjure.core.db.flavors.h2]: Executing query: ["SELECT * FROM
sessions LIMIT 1"]
INFO [conjure.core.server.server]: Server Initialized.
INFO [conjure.core.server.server]: Initializing plugins...
INFO [conjure.core.server.server]: Plugins initialized.
INFO [conjure.core.server.server]: Initializing app controller...
INFO [conjure.core.server.server]: App controller initialized.
2010-08-29 22:28:37.656::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2010-08-29 22:28:37.656::INFO: jetty-6.1.14
2010-08-29 22:28:38.156::INFO: Started SocketC...@0.0.0.0:8080

My project.clj:

(defproject conjure-world "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]
[conjure-core "0.7.0"]]
:dev-dependencies [[lein-conjure "0.7.0"]
[swank-clojure "1.2.1"]])


I tried standalone conjure project too (same result).

Any suggestions welcome.

regards
Jakub

Matthew Courtney

unread,
Aug 29, 2010, 5:15:25 PM8/29/10
to clojure...@googlegroups.com
I'm not sure what version of Leiningen you're using, but in an older
version, Leiningen on Windows didn't accept more than 3 arguments. I
had to hack the batch file to make it accept enough arguments.

In your case it seems like it's dropping all of the arguments and just
running "lein conjure" which starts the server. Check into updating
Leiningen or use cygwin. I'll see about getting my changes to the
batch file into the latest version of Leiningen.

-Matt Courtney

jakub rezek

unread,
Aug 31, 2010, 5:14:05 AM8/31/10
to Conjure
Hi,
the update of lein to 1.3.0 did not help, but cygwin did the trick!

thank you a lot.

Jakub Rezek

On Aug 29, 11:15 pm, Matthew Courtney <macourt...@gmail.com> wrote:
> I'm not sure what version of Leiningen you're using, but in an older
> version, Leiningen on Windows didn't accept more than 3 arguments. I
> had to hack the batch file to make it accept enough arguments.
>
> In your case it seems like it's dropping all of the arguments and just
> running "lein conjure" which starts the server. Check into updating
> Leiningen or use cygwin. I'll see about getting my changes to the
> batch file into the latest version of Leiningen.
>
> -Matt Courtney
>
> On Sun, Aug 29, 2010 at 4:35 PM, jakub rezek <jakub.re...@gmail.com> wrote:
> > Hi,
> > I am trying to follow the tutorial for Conjure. I got stuck on
> > scaffolding. My stdout does not look like it should(see below), no
> > model file is generated and the localhost:8080 looks like before.
>
> > I am running on Windows.
>
> > Here is what stdout looks like:
>
> > c:\conjure-world>lein conjure generate scaffold my_message text:string
> > DEBUG [conjure.core.db.flavors.h2]: Executing query: ["SELECT * FROM
> > sessions LIMIT 1"]
> > INFO  [conjure.core.server.server]: Server Initialized.
> > INFO  [conjure.core.server.server]: Initializing plugins...
> > INFO  [conjure.core.server.server]: Plugins initialized.
> > INFO  [conjure.core.server.server]: Initializing app controller...
> > INFO  [conjure.core.server.server]: App controller initialized.
> > 2010-08-29 22:28:37.656::INFO:  Logging to STDERR via
> > org.mortbay.log.StdErrLog
> > 2010-08-29 22:28:37.656::INFO:  jetty-6.1.14
> > 2010-08-29 22:28:38.156::INFO:  Started SocketConnec...@0.0.0.0:8080
Reply all
Reply to author
Forward
0 new messages