Deploy Scout on Tomcat using the Tutorial [message #1761136] |
Mon, 08 May 2017 02:32 |
Charl Erasmus Messages: 5 Registered: May 2017 |
Junior Member |
|
|
Hello Everyone,
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.
Cheers,
Charl
|
|
|
|
|
Re: Deploy Scout on Tomcat using the Tutorial [message #1761272 is a reply to message #1761197] |
Tue, 09 May 2017 12:49 |
|
Charl,
This looks correct, but the message "Connection refused" is quite conclusive. I just created a Scout hello world application with Neon.3 and did not notice any problems. Did you start the server with "-Dscout.jetty.port=8080"?
Maybe you can post the full log files of both the backend and the UI server?
Regards,
Beat
|
|
|
Re: Deploy Scout on Tomcat using the Tutorial [message #1761324 is a reply to message #1761272] |
Tue, 09 May 2017 17:32 |
Charl Erasmus Messages: 5 Registered: May 2017 |
Junior Member |
|
|
Hi Beat,
Thank you for the reply.
I see your point that it is quite conclusive. I am trying to improve my skills, so I do not have extensive knowledge to make sense out of the details of the error, even though the error message is straightforward. I am open to suggestions on how to go and do more studying since I do mind doing the studying needed.
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?
The current log file is attached, but it is lengthy since I have played around alot.
Cheers,
Charl
[Updated on: Tue, 09 May 2017 20:55] Report message to a moderator
|
|
|
Re: Deploy Scout on Tomcat using the Tutorial [message #1761350 is a reply to message #1761324] |
Wed, 10 May 2017 06:48 |
|
Charl,
Charl Erasmus wrote on Tue, 09 May 2017 13:32I 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.
Quote:
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:
- $CATALINA_HOME/webapps/your.project.ui.html.war
- $CATALINA_HOME/webapps/your.project.server.war
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
scout.server.url=http://localhost:8080/your.project.server
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.
Regards,
Beat
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02569 seconds