Is it critical that the app be deployed with the broker? The embedded web server isn't really meant to be used for deploying arbitrary web applications. If using standalone Jetty works then you might consider simply using that approach.
In any event, I think you'd need to provide a reproducible test case for any additional investigation. Justin On Tue, Jul 28, 2020 at 5:31 AM BARSZCZ, KRZYSZTOF < krzysztof.bars...@lhsystems.com> wrote: > Hi, > We have the following problem: we try to deploy an app to an embedded web > server by following the page: > https://activemq.apache.org/components/artemis/documentation/latest/web-server.html. > But the app does not work. When we set up a simple Jetty server (completely > unrelated to Artemis) and deploy it as in this page: > https://www.eclipse.org/jetty/documentation/current/quickstart-deploying-webapps.html, > it normally works. App can be treated as a simple Java 8 + Spring Boot REST > hello world service, that after getting a request on /hello responds with > just ‘Hello world’. > Current situation: > > · Centos server > > · The app is in the web directory on the server with 777 permissions > > · Added a line in <web> section of bootstrap.xml: <app > url="jettyapp" war="jetty-app.war"/> > > · When typed <artemis broker address>/jettyapp/ into a browser it > displays the contents of war (META-INF, org and WEB-INF) > > · The app is configured using java+ annotations approach, not > web.xml approach > > Could someone suggest a solution? If it helps we can provide the code of > this app > > Best wishes, > Krzysztof Barszcz > > > > Lufthansa Systems Poland sp. z o.o., Siedziba: Aleja Grunwaldzka 415, > 80-309 Gdańsk, Prezes Zarządu: Dariusz Przywara > Sad Rejonowy Gdańsk-Północ w Gdańsku, VII Wydział Gospodarczy Krajowego > Rejestru Sadowego, nr KRS: 0000083575, NIP: 583-24-68-348, Regon: 191499280 > kapitał zakładowy 200.000 zł. > --- > Lufthansa Systems Poland Sp. z o.o., Corporate Headquarters: Aleja > Grunwaldzka 415, 80-309 Gdansk, President of the Management Board: Dariusz > Przywara > Registration: the District Court of Gdansk-Polnoc in Gdansk, VII > Commercial Department of the National Court Register, KRS no: 0000083575, > VAT UE no: PL 583-24-68-348, REGON no: 191499280, Initial capital 200.000 > PLN > >