Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Jersey and scalate in Gae
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hell0  
View profile  
 More options Jul 30 2012, 1:24 pm
From: hell0 <kuldeep.b...@gmail.com>
Date: Mon, 30 Jul 2012 10:24:29 -0700 (PDT)
Local: Mon, Jul 30 2012 1:24 pm
Subject: Jersey and scalate in Gae

I am trying to create a simple scala project for gae platform, After
reading several threads i reached the step where i am able to load
precompiled jade template in my jersey rest resource
 which has following get method and i mapped to /jadeview

   @GET
   @Produces(Array(MediaType.TEXT_HTML))
    def get =
    {
        val template = engine.load("example.jade")
        val processed = engine.layout("/", template, Map("user" ->
User("Bart")))
        println(processed)
        Response.ok().entity(processed).build()
    }

    // and ...
    val engine = new TemplateEngine

So everything works just fine till println, the template prints just fine
with passed in values, but somehow on the browser i get the following stack
trace!

http://pastie.org/4360294

I have no clue from here on, any suggestions would be great.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hell0  
View profile  
 More options Aug 7 2012, 4:23 pm
From: hell0 <kuldeep.b...@gmail.com>
Date: Tue, 7 Aug 2012 13:23:56 -0700 (PDT)
Local: Tues, Aug 7 2012 4:23 pm
Subject: Re: Jersey and scalate in Gae

Ok i am sorry guys but i dont understand this framework, The weird thing is
it screwed up all my rest resources with the same error. Also in the docs i
found that we should use guice and on switching to guice, scalate seems to
be taking a wild stroll to find some unkown .ssp files.  
http://pastie.org/4407768

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Strachan  
View profile  
 More options Aug 8 2012, 3:25 am
From: James Strachan <ja...@fusesource.com>
Date: Wed, 8 Aug 2012 08:25:39 +0100
Local: Wed, Aug 8 2012 3:25 am
Subject: Re: Jersey and scalate in Gae
Use the ServletTempalteEngine rather than a vanilla TemplateEngine if
working with servlets/JAXRS

On 30 July 2012 18:24, hell0 <kuldeep.b...@gmail.com> wrote:

--
James
-------
FuseSource
Email: ja...@fusesource.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

FuseSource: integration everywhere


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »