scalatra Questions

4

Solved

I am trying out the Scala web framework Scalatra. According to the docs here, the steps to enable IntelliJ debugging are: Add the usual JDK options for remote debugging: "-Xdebug -Xrunjdwp:transp...
Sharecropper asked 28/5, 2017 at 22:47

2

Solved

I'm newish to SBT and am not sure what to do about a rather scary warning from the evicted task: [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed...
Castoff asked 13/4, 2019 at 20:16

4

Solved

Seems like a fairly straight forward problem, but I'd like to log a stack trace when my top level error handler in Scalatra is triggered. I'm intentionally throwing an exception in one of my method...
Elissa asked 18/9, 2013 at 18:55

3

Solved

I am trying to unit test an upload call but I get this error for the following code: @MultipartConfig(maxFileSize = 3145728) class WebServlet extends ScalatraServlet with FileUploadSupport { over...
Isley asked 2/8, 2013 at 15:14

2

Solved

I want to launch scalatra server from sbt. How do I do that? The following does launch scalatra: sbt "container:start" But it exits immediately: [info] starting server ... [success] Total time:...
Movie asked 12/9, 2015 at 21:42

2

Solved

In our Scala/Scalatra project, we have this merge policy for the plugin sbt-assembly: assemblyMergeStrategy in assembly := { case x => val oldStrategy = (assemblyMergeStrategy in assembly).va...
Division asked 10/9, 2015 at 8:53

2

Solved

I have some case classes defined like follows: sealed trait Breed case object Beagle extends Breed case object Mastiff extends Breed case object Yorkie extends Breed case class Dog(name: String, ...
Paul asked 14/10, 2015 at 21:27

3

I implemented a Scalatra servlet and now want to create an executable jar, just like described in this tutorial: http://www.scalatra.org/2.2/guides/deployment/standalone.html I use IntelliJ IDEA w...
Jam asked 31/5, 2013 at 11:24

4

I have an angularJS form which posts data to a scalatra servlet. When the form gets submitted I can't get any form params in my scalatra servlet. Below is my code AngularJS $scope.createUser = ...
Margarethe asked 10/10, 2012 at 19:7

6

Solved

I intend to implement a pure Akka powered REST based Web API. I am not sure about using spray. I would consider using Scalatra if it is any good. Basically I am interested in using the concurrency ...
Freeboard asked 12/7, 2011 at 18:13

1

We have a project where we are building a large number of Scalatra microservices by packaging them using the sbt-assembly plugin, then creating Docker images using the sbt-docker plugin. The proces...
Parishioner asked 3/2, 2015 at 22:21

1

I am looking to build a Scalatra based API. One of the requirements is OAuth authentication. I noticed the guide for OAuth isn't yet put up on the official Scalatra site. Is the best way to current...
Wellbred asked 18/6, 2013 at 18:34

3

This sounds basic, but its actually cost me a whole day: I want to change to change the port that scalatra runs on, in development. I started with the hello world g8 template, and have been buildin...
Siblee asked 25/7, 2013 at 10:0

2

Solved

Is there any OAuth2 provider available for Scala that I can use with Scalatra or Play2 web framework? I have already seen this answer: OAuth 2.0 provider implementation for Scala/Lift I am lookin...
Baroja asked 13/5, 2014 at 18:37

2

Solved

I need to write a small Web based UI that would run on a raspi and since I'm trying to pull some Scala into my daily work, I'd like to use one of Play, Scalatra or Lift. Does anybody have experienc...
Altocumulus asked 16/1, 2014 at 15:41

1

Solved

I am a newbie so hoping for some patience. :) I am trying to populate two tables if a value does not exist. Basically I have: TABLE b ( id VARCHAR(254) PRIMARY KEY NOT NULL ); TABLE d ( id VA...
Conservatoire asked 18/9, 2013 at 5:14

1

Solved

This is normally a straight forward problem, but I'm not entirely sure how to solve this in Scala given that it is type sensitive. I have a class where I setup a simple connection to my MongoDB ins...
Trifocals asked 7/9, 2013 at 1:53

4

Solved

In this application, I'm getting this error: scala.Some cannot be cast to java.lang.String When trying this: x.email.asInstanceOf[String] x.email is an Option[String] Edit: I understand that...
Anecdotage asked 12/7, 2013 at 17:22

1

Solved

Has anyone been successful for using Maven and Scalatra 2.2.1? I found this old archetype https://github.com/Srirangan/scalatra-maven-prototype and tried to update the dependency versions, but I k...
Homestretch asked 29/7, 2013 at 15:30

1

Solved

I have a string of HTML that I'm copy pasting into a String object that looks something like the following: val s = """<body> <p>This is a test</p> <p>This is a test 2<...
Magaretmagas asked 10/7, 2013 at 22:2

1

Solved

I am looking over the documentation for Scalatra and noticed an interesting snippet of code for syntax I haven't seen yet on : http://www.scalatra.org/2.2/guides/persistence/introduction.html Spec...
Palace asked 14/6, 2013 at 0:41

2

Solved

I am using scalatra to "export" a MongoDB data to JSon, my actions are very simple, like: get("/") { val title = db.get_collection("main", "api", "title") send_json(title) } I want to send a...
Discretionary asked 28/2, 2012 at 11:35

2

Solved

I am about to start a project for a web application that should run on a Tomcat server. I have decided to go for Scala - the other alternative where I work being Groovy - essentially for type...
Braley asked 1/8, 2012 at 9:22

2

Solved

I have a scalatra servlet: post("/asdf") { ??? } And my clients send xml in post body, so I need to extract raw text from request. How do I do it in scalatra?
Aideaidedecamp asked 28/3, 2012 at 16:26

3

Solved

For a webapp with a RESTful backend I am posting some json to the server using jquery's $post. Now to my surprise, the json is stuffed in a parameter key for the request's form data, instead of in ...
Clamorous asked 6/1, 2012 at 12:16

© 2022 - 2024 — McMap. All rights reserved.