Questions tagged [xsbt-web-plugin]

An sbt plugin for building Scala Web applications

68 questions
0
votes
1 answer

UnavailableException: Servlet class is not a javax.servlet.Servlet with Jetty

The example given on the plugin page throws an exception when updated with the latest version of the jetty container and the jakarta package. It expects old class 'javax.servlet.Servlet' not new 'jakarta.servlet.Servlet' os: Ubuntu 22.10 java:…
0
votes
0 answers

Sbt build .war with custom configuration/profile

I have an sbt project with custom env configuration. val Prod = config("prod") extend Compile describedAs "Scope to build production packages." val Stage = config("stage") extend Compile describedAs "Scope to build stage packages." val Local…
0
votes
1 answer

Jetty error: HTTP method GET is not supported by this URL

I am using HTTP4S and the webapp is running on jetty. The web app file is configured as:
softshipper
  • 32,463
  • 51
  • 192
  • 400
0
votes
1 answer

Web App Subproject

When the servlet container is started using xsbt-web-plugin, it adds the context for /target/webapp. I have a multiproject set up where the web app is a subproject. How is the context added for a subproject instead of the root project?
Sledge
  • 178
  • 13
0
votes
1 answer

xsbt-web-plugin how to stop container without killing sbt console

I am using xsbt-web-plugin v4.0.1. After starting the sbt console, the tomcat:start command works fine. However I don't know how to run tomcat:stop. When I press Ctrl-C, I exit out of console, but I think tomcat continues to run in background. When…
Rashid Shaikh
  • 395
  • 4
  • 12
0
votes
1 answer

How to completely remove jdk 1.8 from Macbook? Scala Webapps Project

Thanks for reading my question. I've been struggling with this for more than 8 hours. On my macbook, I had JDK 6, 7, and 8 installed with 8 being default. I had a need this morning to create a scala/sbt webapp project (to package to a .war) to…
dlite922
  • 1,924
  • 3
  • 24
  • 60
0
votes
1 answer

SBT - How to configure ssl for Jetty running locally?

I need to implement local ssl for my project for an OAuth implementation. I read through the xsbt-web-plugin page (here). I created the keystore as advised here. keytool -genkey -alias localhost -keyalg RSA -keystore localhost.jks -keysize 2048 I…
An Illusion
  • 769
  • 1
  • 10
  • 24
0
votes
1 answer

SBT does not propagate changes in webapp when using xsbt-web-plugin and JRebel

The set up is as follows: Lift Web xsbt-web-plugin sbt-jrebel-plugin JRebel My static web files (html, etc) are in /src/webapp I run # sbt > jetty:start > ~compile Problem: even thought SBT detects changes in static files, as well as JRebel…
Anton
  • 2,282
  • 26
  • 43
0
votes
1 answer

Multi-project build with xsbt-web-plugin not packaging WAR file

I have multiple projects, one of which needs to be packaged as a WAR file. However, it gets packaged as a JAR File. Here's my build file: enablePlugins(WarPlugin) val foo = project in file("foo") val war = project in file("war") val root =…
Omer van Kloeten
  • 11,800
  • 9
  • 42
  • 53
0
votes
1 answer

xsbt-web multi-module project: package some modules to jars, others to wars

I'm using sbt 0.13.8 and xsbt-web-plugin 2.0.3 I have a multi-module sbt project. When packaged, one of the modules should be in the form of a war file. All of the others in jar files. When I add the xsbt-web plugin, packaging generates jars and…
kilo
  • 539
  • 4
  • 13
0
votes
1 answer

File Mapped in SBT Does not Get Copied to Classes Directory

I'm using xsbt-web-plugin to create an exploded WAR file of a project containing both Java and Scala sources. The file is src/main/java/conf/application.conf and this is the way I believed would work: webappWebInfClasses := true // ... mappings in…
Omer van Kloeten
  • 11,800
  • 9
  • 42
  • 53
0
votes
2 answers

How to specify a jetty.xml config file for xsbt-web-plugin

I have a project that uses the xsbt-web-plugin but I want to be able to customise the jetty settings. Is there a way I can specify my own jetty.xml file? I found the PluginKeys.configurationFiles setting and set that to the desired file but it…
user79074
  • 4,937
  • 5
  • 29
  • 57
0
votes
1 answer

xsbt-web-plugin Running the web servelet container outside of sbt?

I'm using the xsbt-web-plugin to host my servelet. It works fine, using container:start. I now need it to run in the background, like a daemon, even if I hang up, and ideally, even if the machine reboots. I'd rather not have to invoke sbt. I know…
SRobertJames
  • 8,210
  • 14
  • 60
  • 107
0
votes
0 answers

xsbt plugin 1.0.0-M7 and scalatra

I have tried upgrading the xsbt plugin to 1.0.0-M7 in my scalatra project but scalatra does not seem to be compatible with this version. When I try to reload my project I get the error below. I have tried with version 2.3.0 of…
user79074
  • 4,937
  • 5
  • 29
  • 57
0
votes
1 answer

Passing jvm options using xsbt plugin

I want to pass an environment variable when running container:start from sbt. So I have tried adding javaOptions in container := Seq("-Dmyvar=xxx") to build.scala, as outlined in the xsbt plugin documentation. But this is having no effect when I…
user79074
  • 4,937
  • 5
  • 29
  • 57