Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Deployment fails(Deployment fails in Azure as well as in Tomcat 8.5.34)
Deployment fails [message #1797697] Mon, 05 November 2018 11:33 Go to next message
Hans-Jürgen Labrador is currently offline Hans-Jürgen LabradorFriend
Messages: 4
Registered: October 2018
Junior Member
Hello,
As a newbie I tried scout and wanted to know if scout can help me in development. Unfortunately I spent a lot of time and cant get it to run. As far as I use only the dev-Environment its all fine and I can use it. However I would like to know how it works in a more produktive environment. I created just the helloworld app which comes in default. I deployed this first to Azure but as I pointed in another issue it doesnt work. I suspected azure and I installed a naked Tomcat 8.5.34 but what can I say, it doesnt work too. The server part is deployable but the ui.html its not. Attached is the stack. I mean its a standard Tomcat installation on localhost, I use only http on port 8080 (actually follow exactly your sample in documentation) and cant understand why the new created helloworld is not even deployable. This is the minimum I expect from a framework, opensource or not.
2018-11-05 12:28:02,720 ERROR [scout-thread-24] org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller - Error receiving client notifications - MDC[principal=notification-authenticator, jobName=ClientNotificationPoller]
org.eclipse.scout.rt.platform.exception.PlatformException: 403 - FORBIDDEN [translator=org.eclipse.scout.rt.platform.exception.DefaultRuntimeExceptionTranslator, user=notification-authenticator, remote-service.name=org.eclipse.scout.rt.shared.clientnotification.IClientNotificationService, remote-service.operation=getNotifications]
	at org.eclipse.scout.rt.platform.exception.DefaultRuntimeExceptionTranslator.translateInternal(DefaultRuntimeExceptionTranslator.java:54)
	at org.eclipse.scout.rt.platform.exception.DefaultRuntimeExceptionTranslator.translate(DefaultRuntimeExceptionTranslator.java:37)
	at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.interceptException(AbstractServiceTunnel.java:156)
	at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:55)
	at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:40)
	at org.eclipse.scout.rt.shared.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:191)
	at org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelProxyProducer.invoke(ServiceTunnelProxyProducer.java:51)
	at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy.invokeImpl(DecoratingProxy.java:137)
	at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy$P_InvocationHandler.invoke(DecoratingProxy.java:170)
	at com.sun.proxy.$Proxy54.getNotifications(Unknown Source)
	at org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller$P_NotificationPoller$1.run(ClientNotificationPoller.java:109)
	at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:143)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:126)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:71)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:156)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:137)
	at org.eclipse.scout.rt.platform.context.RunContext.run(RunContext.java:108)
	at org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller$P_NotificationPoller.run(ClientNotificationPoller.java:104)
	at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.job.internal.ExceptionProcessor.intercept(ExceptionProcessor.java:41)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequiresNew(TransactionProcessor.java:100)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:129)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:71)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Unknown Source)
	at org.eclipse.scout.rt.platform.security.SubjectProcessor.intercept(SubjectProcessor.java:43)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:156)
	at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.job.internal.CallableChainExceptionHandler.intercept(CallableChainExceptionHandler.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.lambda$0(JobFutureTask.java:97)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:63)
	at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:64)
	at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:40)
	at org.eclipse.scout.rt.shared.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:191)
	at org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelProxyProducer.invoke(ServiceTunnelProxyProducer.java:51)
	at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy.invokeImpl(DecoratingProxy.java:137)
	at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy$P_InvocationHandler.invoke(DecoratingProxy.java:170)
	at com.sun.proxy.$Proxy54.getNotifications(Unknown Source)
	at org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller$P_NotificationPoller$1.run(ClientNotificationPoller.java:109)
	at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:143)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:126)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:71)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:156)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:137)
	at org.eclipse.scout.rt.platform.context.RunContext.run(RunContext.java:108)
	at org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller$P_NotificationPoller.run(ClientNotificationPoller.java:104)
	at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.job.internal.ExceptionProcessor.intercept(ExceptionProcessor.java:41)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequiresNew(TransactionProcessor.java:100)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:129)
	at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:71)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Unknown Source)
	at org.eclipse.scout.rt.platform.security.SubjectProcessor.intercept(SubjectProcessor.java:43)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:156)
	at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.job.internal.CallableChainExceptionHandler.intercept(CallableChainExceptionHandler.java:31)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
	at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.lambda$0(JobFutureTask.java:97)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:63)
Caused by: org.eclipse.scout.rt.shared.servicetunnel.HttpException: 403 - FORBIDDEN


Thx Hans-Juergen
Re: Deployment fails [message #1797768 is a reply to message #1797697] Tue, 06 November 2018 09:52 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 147
Registered: September 2011
Senior Member
Hi Hans-Jürgen

We are sorry that you have trouble getting the helloworld running. I assume you already modified your application to work with HTTP as described here (chapter 2.4.3)?

You may also need to remove the <secure>true</secure> flag for the session cookie on the backend war file in helloworld.server.app.war/src/main/webapp/WEB-INF/web.xml to allow HTTP connections between the UI server and the backend server. Did you already try that?

Some more questions to localize the problem: Did you see a login form? Or does this error appear without user interaction?

Hope this helps
Kind regards
Mat
Re: Deployment fails [message #1798010 is a reply to message #1797768] Sat, 10 November 2018 08:20 Go to previous messageGo to next message
Hans-Jürgen Labrador is currently offline Hans-Jürgen LabradorFriend
Messages: 4
Registered: October 2018
Junior Member
Hi Mat,
Thanks for the reply. Unfortunately I did already everything what was shown in the documentation. First the way with self-signed certificate und also the way over http. And yes, i also removed the <secure> flag, otherwise another error was thrown. After deployment I can see the login form, however after click login with admin/admin an error was thrown "Initialization failed, Retry". The exception I showed up in the previous message.

Any further ideas?
Thx
Hans-Jürgen
Re: Deployment fails [message #1798071 is a reply to message #1798010] Mon, 12 November 2018 08:30 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 147
Registered: September 2011
Senior Member
Hi Hans-Jürgen

What is the value of the config property 'scout.backendUrl' in the config.properties file in your ...ui.html.app.war project? Does it correctly point to the server application as it is accessible in your tomcat installation?

And what is the value of the property 'scout.auth.privateKey'? Does it contain some cryptic base64 bytes?

Do you have a possiblity to share your war files with us? Then we could analyze it on our Tomcat 8.5.

Thanks for your reply
Mat
Re: Deployment fails [message #1798073 is a reply to message #1798010] Mon, 12 November 2018 08:31 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 112
Registered: November 2010
Senior Member
Apparently the service tunnel request from the UI server is rejected by the backend server's security filter. To determine the reason, you can try to change the log level to DEBUG or TRACE (logback.xml). If that does not show more detail on the error, start Tomcat in debug mode, attach the Eclipse debugger to it and add a break point in your "...ServerServletFilter" doFilter() method. You can then inspect each step of the autentication process.

Regards,
Beat
Re: Deployment fails [message #1800300 is a reply to message #1798071] Sun, 23 December 2018 23:57 Go to previous messageGo to next message
Hans-Jürgen Labrador is currently offline Hans-Jürgen LabradorFriend
Messages: 4
Registered: October 2018
Junior Member
Hi,

Sure I can share the war files, its pretty much the example installation.

Thx

Best Regards

Hans-Jürgen
Re: Deployment fails [message #1800312 is a reply to message #1800300] Mon, 24 December 2018 09:25 Go to previous message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 147
Registered: September 2011
Senior Member
Hi Hans-Jürgen

I analyzed your files. The following steps are required to make your application work:

First in the org.eclipse.scout.apps.helloworld.ui.html.war file:

  1. In the file WEB-INF/web.xml: remove the "<secure>true</secure>" element from the cookie-config element.
  2. In the file WEB-INF/classes/config.properties disable the check for secure session Cookie by adding config property "scout.auth.cookieSessionValidateSecure=false"
  3. In the file WEB-INF/classes/config.properties fix the backend URL as you are not using https from "https://localhost:8443/org.eclipse.scout.apps.helloworld.server" to "http://localhost:8080/org.eclipse.scout.apps.helloworld.server". Please not the changed protocol and port.
Please note that all the steps above are also explained in chapter 2.4.3 of the beginners guide as pointed out in my post here. Did you maybe apply these changes in the wrong place?

Then second you also have to fix something in the org.eclipse.scout.apps.helloworld.server.war. It seems you have removed (out comment) the AuthFilter in the WEB-INF/web.xml? This filter is required. Otherwise the request cannot be authenticated. You can see this in the Tomcat logs. Every request gets a FORBIDDEN response because this filter is missing. Therefore please remove the comment markers for the filter definition and the mapping.

With these changes applied I can successfully start the application on my Tomcat 8.5 installation.

Hope this helps and have a nice Christmas and a good start into 2019!
Mat
Previous Topic:Empty ClientPreferences in ClientSession.execLoadSession after logout and re-login
Next Topic:Calendar in Scout Photon
Goto Forum:
  


Current Time: Sun Oct 20 13:34:12 GMT 2019

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

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

Back to the top