An sbt plugin for building Scala Web applications
Questions tagged [xsbt-web-plugin]
68 questions
0
votes
1 answer
SBT war deployment with xsbt-web-plugin
I have configured by SBT project to use xsbt-web-plugin for web deployment. The docs describing this seem to be:
xsbt-web-plugin Wiki
Publishing .war files
This is what I have done so far based on reading docs:
I have created plugins.sbt…

Suma
- 33,181
- 16
- 123
- 191
0
votes
1 answer
java.lang.reflect.InvocationTargetException in jetty-web.xml when setting WebAppContext.configurationClasses
I'm trying to add org.eclipse.jetty.annotations.AnnotationConfiguration to the configurationClasses property of org.eclipse.jetty.webapp.WebAppContext but (when invoking Jetty with sbt containe:start), getting:
[warn] Config error at

Erik Kaplun
- 37,128
- 15
- 99
- 111
0
votes
2 answers
Unable to get servlet to be hooked in with @WebServlet annotation in an SBT project using Jetty 9
I ran into the issue while working on an existing Java project which I'd converted to use SBT (was based purely on Eclipse before). There was a servlet (say org.my.FooServlet) that was not possible to be accessed via a web browser even though…

Erik Kaplun
- 37,128
- 15
- 99
- 111
0
votes
1 answer
SBT console missing web container's classpath
Using SBT with xsbt-web-plugin, when I go to the console (sbt console), I can't access anything in src/main/webapp that is normally on the containers classpath.
Context is: I'm trying to take certain code that runs in both the webapp and unit tests,…

Golly
- 1,319
- 8
- 18
0
votes
1 answer
SBT Xsbt-web plugin not finding annotations
I have created an atmosphere framework application. When I use Xsbt container:start it does not scan the assembly and find the annotations on my classes.
However, when I package the project as a war and deploy to tomcat, it works perfectly.
It looks…

user2668128
- 39,482
- 8
- 27
- 34
0
votes
1 answer
Running in Heroku using startScriptForWarSettings
I am trying to get an SBT web app running under Heroku. I have been able to do this by using a JettyLauncher script as described here http://scalatra.org/2.2/guides/deployment/heroku.html
However, I'd really like to run from the WAR artifact and…

Dave DeCaprio
- 2,051
- 17
- 31
0
votes
1 answer
SBT rerunning command with ~ when "resources" or "webapp" changes
I am using ~;container:start; container:reload / with xsbt-web-plugin. Reloading works well, only it does not happen when I change static resources, pages, etc.
How do I include them to change monitor, any ideas?
Thanks.

i.petruk
- 1,276
- 1
- 13
- 18
0
votes
1 answer
Include minified JavaScript files in war
I'm using sbt-js 0.3 to build a Scalatra web project. I've included the following lines in build.sbt.
(webappResources in Compile) <+= (resourceManaged in Compile)
(resourceGenerators in Compile) <+= (JsKeys.js in Compile)
(compile in Compile) <<=…

darth10
- 188
- 1
- 8