|Deploy Scout on Tomcat using the Tutorial [message #1761136]
||Mon, 08 May 2017 02:32
| Charl Erasmus
Registered: May 2017
The login screen does not allow me access, in trying to complete the steps in the Eclipsescout.github.io 6.0 Beginners Guide section on deploying on Tomcat.
I have completed all sections up until the deployment on Tomcat, but cannot proceed past the login. I did manage to view the UI in the development mode after starting the backend and frontend from Eclipse.
I did some further investigation and found the following error in the com.xxx.xxx.xxx.html.ui.log file:
2017-05-08 00:00:07,604 ERROR [scout-thread-27] org.eclipse.scout.rt.client.clientnotification.ClientNotificationPoller - Error receiving client notifications - MDC[principal=notification-authenticator, jobName=ClientNotificationPoller]
org.eclipse.scout.rt.platform.exception.PlatformException: Connection refused: connect [translator=org.eclipse.scout.rt.platform.exception.DefaultRuntimeExceptionTranslator, user=notification-authenticator, calling-thread=scout-thread-27
Please give me a pointer in how I can resolve the issue or suggestions on how I can further investigate the cause. I am really new to Scout and have spent some time trying to figure this out already, but I have reached a roadblock.
Thank you in advance.
|Re: Deploy Scout on Tomcat using the Tutorial [message #1761350 is a reply to message #1761324]
||Wed, 10 May 2017 06:48
| Beat Schwarzentrub
Registered: November 2010
Charl Erasmus wrote on Tue, 09 May 2017 13:32
I followed the steps in https://eclipsescout.github.io/6.0/beginners-guide.html#sec-helloworld_deploy and I think it does not mention the -Dscout.jetty.port=8080 switch.
I have installed TomCat using the Bitnami installation? Should I rather do a TomCat install using the downloads from the apache website?
Oh dear, somehow I misunderstood your post and thought you were referring to the development instance (that you start from inside eclipse) that indeed launches a tiny Jetty server. But you are talking about a deployment in Tomcat, and it's even in the post's subject... Sorry, my mistake!
Deploying in Tomcat does not require any special system properties. Both the UI server and the backend server servlets will be available at the same port. This port is configured in Tomcats conf/server.xml file. The default is 8080.
The current log file is attached, but it is lengthy since I have played around alot.
Thank you. This is only the log file of the UI server, so I can only guess what's wrong. It is quite clear to me that the UI server cannot connect to the backend via HTTP service tunnel. Unfortunately, it does not print out the backend URL, so you have to check that by yourself.
Here is how the setup should look like:
You should have two WAR files:
The two deployments are available at:
You have to put the backend server's URL in the UI server's config.properties file. So check this file: $CATALINA_HOME/webapps/your-project.ui.html/WEB-INF/classes/config.properties
### Service tunnel
You should also check the contents of the backend server's logfile for any errors. If the Scout platform cannot be started because of some problem, it will not be reachable by the UI server.
Powered by FUDForum
. Page generated in 0.02410 seconds