Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Microsoft Azure App Service deployment error
Microsoft Azure App Service deployment error [message #1840881] Wed, 28 April 2021 05:48 Go to next message
Mark Ashworth is currently offline Mark AshworthFriend
Messages: 40
Registered: January 2012
Member
Good day,

I have tried to deploy a basic Scout application that has the web ui and server combined into a single war file to Microsoft Azure App Service.

The application starts up but when I navigate to the index page, then the application errors indicating that it could not read from the working directory.

Is there a way to overcome this issue within Scout? I am investigating the configuration on Azure but maybe someone has some experience in this regard/

2021-04-27T07:35:16.047434071Z 2021-04-27 07:35:16,043 INFO  [http-nio-80-exec-4] org.eclipse.scout.rt.ui.html.UiThemeHelper.getConfiguredTheme(UiThemeHelper.java:59) - UI theme configured in config.properties: default - MDC[principal=root, cid=83a18849-e308-4474-86fc-846063acb9ab]
2021-04-27T07:35:16.122397178Z 2021-04-27 07:35:16,116 ERROR [http-nio-80-exec-4] org.eclipse.scout.rt.ui.html.UiServlet.handleRequestInternal(UiServlet.java:260) - Exception while processing request - MDC[principal=root, cid=83a18849-e308-4474-86fc-846063acb9ab]
2021-04-27T07:35:16.122430379Z org.eclipse.scout.rt.platform.exception.BeanCreationException: Could not create bean [class org.eclipse.scout.rt.shared.ui.webresource.FilesystemWebResourceResolver]
2021-04-27T07:35:16.122445680Z 	at org.eclipse.scout.rt.platform.internal.BeanInstanceUtil.translateException(BeanInstanceUtil.java:171)
2021-04-27T07:35:16.122451280Z 	at org.eclipse.scout.rt.platform.internal.BeanInstanceUtil.createBean(BeanInstanceUtil.java:67)
2021-04-27T07:35:16.122455580Z 	at org.eclipse.scout.rt.platform.internal.BeanInstanceUtil.lambda$1(BeanInstanceUtil.java:124)
2021-04-27T07:35:16.122459880Z 	at org.eclipse.scout.rt.platform.internal.BeanInstanceUtil.createAndAssertNoCircularDependency(BeanInstanceUtil.java:149)
2021-04-27T07:35:16.122464180Z 	at org.eclipse.scout.rt.platform.internal.NonSingeltonBeanInstanceProducer.produce(NonSingeltonBeanInstanceProducer.java:56)
2021-04-27T07:35:16.122468580Z 	at org.eclipse.scout.rt.platform.internal.BeanImplementor.getInstance(BeanImplementor.java:98)
2021-04-27T07:35:16.122472581Z 	at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:58)
2021-04-27T07:35:16.122476581Z 	at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:42)
2021-04-27T07:35:16.122480581Z 	at org.eclipse.scout.rt.platform.util.LazyValue.lambda$0(LazyValue.java:54)
2021-04-27T07:35:16.122495981Z 	at org.eclipse.scout.rt.platform.util.FinalValue.setIfAbsent(FinalValue.java:112)
2021-04-27T07:35:16.122500582Z 	at org.eclipse.scout.rt.platform.util.FinalValue.setIfAbsentAndGet(FinalValue.java:79)
2021-04-27T07:35:16.122504482Z 	at org.eclipse.scout.rt.platform.util.LazyValue.get(LazyValue.java:58)
2021-04-27T07:35:16.122508582Z 	at org.eclipse.scout.rt.shared.ui.webresource.WebResources.resolveResource(WebResources.java:91)
2021-04-27T07:35:16.122512582Z 	at org.eclipse.scout.rt.shared.ui.webresource.WebResources.resolveWebResourceInternal(WebResources.java:86)
2021-04-27T07:35:16.122516682Z 	at org.eclipse.scout.rt.shared.ui.webresource.WebResources.resolveWebResources(WebResources.java:78)
2021-04-27T07:35:16.122520782Z 	at org.eclipse.scout.rt.shared.ui.webresource.WebResources.resolveWebResource(WebResources.java:71)
2021-04-27T07:35:16.122524882Z 	at org.eclipse.scout.rt.ui.html.res.loader.HtmlFileLoader.loadResource(HtmlFileLoader.java:98)
2021-04-27T07:35:16.122530083Z 	at org.eclipse.scout.rt.ui.html.res.loader.HtmlFileLoader.loadResource(HtmlFileLoader.java:72)
2021-04-27T07:35:16.122535883Z 	at org.eclipse.scout.rt.ui.html.res.ResourceRequestHandler.resolveResourceFromCache(ResourceRequestHandler.java:123)
2021-04-27T07:35:16.122540083Z 	at org.eclipse.scout.rt.ui.html.res.ResourceRequestHandler.handleGet(ResourceRequestHandler.java:65)
2021-04-27T07:35:16.122543983Z 	at org.eclipse.scout.rt.ui.html.AbstractUiServletRequestHandler.handle(AbstractUiServletRequestHandler.java:26)
2021-04-27T07:35:16.122547983Z 	at org.eclipse.scout.rt.ui.html.UiServlet.handleRequestInternal(UiServlet.java:253)
2021-04-27T07:35:16.122551883Z 	at org.eclipse.scout.rt.ui.html.UiServlet.lambda$1(UiServlet.java:226)
2021-04-27T07:35:16.122555783Z 	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
2021-04-27T07:35:16.122559684Z 	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequiresNew(TransactionProcessor.java:113)
2021-04-27T07:35:16.122563584Z 	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:142)
2021-04-27T07:35:16.122567584Z 	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
2021-04-27T07:35:16.122571384Z 	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
2021-04-27T07:35:16.122575384Z 	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
2021-04-27T07:35:16.122579484Z 	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
2021-04-27T07:35:16.122583384Z 	at org.eclipse.scout.rt.ui.html.UiServlet.handleRequest(UiServlet.java:226)
2021-04-27T07:35:16.122587285Z 	at org.eclipse.scout.rt.ui.html.UiServlet.doGet(UiServlet.java:157)
2021-04-27T07:35:16.122591085Z 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
2021-04-27T07:35:16.122598785Z 	at org.eclipse.scout.rt.server.commons.servlet.AbstractHttpServlet.access$0(AbstractHttpServlet.java:1)
2021-04-27T07:35:16.122603185Z 	at org.eclipse.scout.rt.server.commons.servlet.AbstractHttpServlet.wrap(AbstractHttpServlet.java:49)
2021-04-27T07:35:16.122607085Z 	at org.eclipse.scout.rt.server.commons.servlet.AbstractHttpServlet.service(AbstractHttpServlet.java:38)
2021-04-27T07:35:16.122610985Z 	at org.eclipse.scout.rt.ui.html.UiServlet.service(UiServlet.java:146)
2021-04-27T07:35:16.122614985Z 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
2021-04-27T07:35:16.122618886Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
2021-04-27T07:35:16.122623086Z 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
2021-04-27T07:35:16.122627186Z 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
2021-04-27T07:35:16.122631086Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
2021-04-27T07:35:16.122634986Z 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
2021-04-27T07:35:16.122638886Z 	at org.eclipse.scout.rt.server.commons.servlet.filter.gzip.GzipServletFilter.doFilter(GzipServletFilter.java:84)
2021-04-27T07:35:16.122642786Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
2021-04-27T07:35:16.122646687Z 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
2021-04-27T07:35:16.122650587Z 	at org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.lambda$0(ServletFilterHelper.java:205)
2021-04-27T07:35:16.122654587Z 	at java.base/java.security.AccessController.doPrivileged(Native Method)
2021-04-27T07:35:16.122658487Z 	at java.base/javax.security.auth.Subject.doAs(Unknown Source)
2021-04-27T07:35:16.122662387Z 	at org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.continueChainAsSubject(ServletFilterHelper.java:201)
2021-04-27T07:35:16.122666287Z 	at org.eclipse.scout.rt.server.commons.authentication.AnonymousAccessController.handle(AnonymousAccessController.java:61)
2021-04-27T07:35:16.122670387Z 	at org.eclipse.scout.rt.server.commons.authentication.DevelopmentAccessController.handle(DevelopmentAccessController.java:68)
2021-04-27T07:35:16.122674288Z 	at com.github.markash.micro.server.ServerServletFilter.doFilter(ServerServletFilter.java:53)
2021-04-27T07:35:16.122678188Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
2021-04-27T07:35:16.122682088Z 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
2021-04-27T07:35:16.122686288Z 	at com.microsoft.azure.appservice.filters.AppServiceFilter.doFilter(AppServiceFilter.java:53)
2021-04-27T07:35:16.122690288Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
2021-04-27T07:35:16.122697288Z 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
2021-04-27T07:35:16.122701388Z 	at com.microsoft.azure.appservice.EasyAuthFilter.doFilter(EasyAuthFilter.java:42)
2021-04-27T07:35:16.122705289Z 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
....
2021-04-27T07:35:16.122768091Z 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2021-04-27T07:35:16.122771991Z 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
2021-04-27T07:35:16.122775991Z 	at java.base/java.lang.Thread.run(Unknown Source)
2021-04-27T07:35:16.122779791Z Caused by: java.lang.NullPointerException: null
2021-04-27T07:35:16.122783691Z 	at org.eclipse.scout.rt.shared.ui.webresource.FilesystemWebResourceResolver.findModuleRoot(FilesystemWebResourceResolver.java:96)
2021-04-27T07:35:16.122787692Z 	at org.eclipse.scout.rt.shared.ui.webresource.FilesystemWebResourceResolver.<init>(FilesystemWebResourceResolver.java:31)
2021-04-27T07:35:16.122791992Z 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2021-04-27T07:35:16.122799092Z 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2021-04-27T07:35:16.122803592Z 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2021-04-27T07:35:16.122807592Z 	at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
2021-04-27T07:35:16.122811492Z 	at org.eclipse.scout.rt.platform.internal.BeanInstanceUtil.createBean(BeanInstanceUtil.java:64)



Kind regards,
Mark Ashworth
Re: Microsoft Azure App Service deployment error [message #1840887 is a reply to message #1840881] Wed, 28 April 2021 08:15 Go to previous messageGo to next message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior Member
Hi Mark

I find it a bit suspicious that the "FilesystemWebResourceResolver" is used here, especially because you say that your application is deployed as a WAR file. In that case the "ClasspathWebResourceResolver" should be used.

Is it possible that your Scout app runs in DEV-Mode "scout.devMode" or the config property "scout.loadWebResourcesFromFilesystem" is set?

Cheers
André


Eclipse Scout Homepage | Documentation | GitHub
Re: Microsoft Azure App Service deployment error [message #1840929 is a reply to message #1840887] Thu, 29 April 2021 04:59 Go to previous message
Mark Ashworth is currently offline Mark AshworthFriend
Messages: 40
Registered: January 2012
Member
Morning Andre,

Apologies, it is my fault, the scout.devMode setting was true.

I am now testing with it set to false.

Kind regards,
Mark Ashworth
Previous Topic:NullPointerException in AbstractRestClientHelper derived class
Next Topic:Custom Field with additional state
Goto Forum:
  


Current Time: Thu Oct 10 17:03:23 GMT 2024

Powered by FUDForum. Page generated in 0.03633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top