Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » properties are not found while starting client in dev mode(properties are not found while starting client in dev mode in Helloworld app)
properties are not found while starting client in dev mode [message #1784331] Mon, 26 March 2018 22:55 Go to next message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi,
Could someone guide me what is the problem.
When I'm trying to run client of HelloWorld sample app according to 'Scout for beginners guide' I get error as follows:
2018-03-27 01:28:46,275 INFO  [Thread-9] org.eclipse.scout.rt.shared.servicetunnel.RegisterTunnelToServerPlatformListener.registerTunnelToServerProxies(RegisterTunnelToServerPlatformListener.java:68) - Tunnel to server proxies registered. - MDC[]
2018-03-27 01:28:46,288 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:192) - Config property with key 'scout.ui.prebuild.files' does not exist or has an invalid value. - MDC[]
2018-03-27 01:28:46,288 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:192) - Config property with key 'scout.ui.prebuild' does not exist or has an invalid value. - MDC[]
2018-03-27 01:28:46,288 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:192) - Config property with key 'scout.ui.theme' does not exist or has an invalid value. - MDC[]
2018-03-27 01:28:46,317 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:144) - Error during platform startup - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 3 invalid config properties: [scout.ui.prebuild.files, scout.ui.prebuild, scout.ui.theme]
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:196)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:137)
	at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:29)
Exception in thread "Thread-9" org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 3 invalid config properties: [scout.ui.prebuild.files, scout.ui.prebuild, scout.ui.theme]
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:196)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:137)
	at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:29)
2018-03-27 01:28:46,318 WARN  [main] org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:549) - Failed startup of context o.e.s.d.j.P_WebAppContext@23fe1d71{/,file:///D:/eclipse-workspace/helloworld/helloworld.ui.html.app.dev/src/main/webapp/,UNAVAILABLE} - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: The platform is in an invalid state.
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.throwOnPlatformInvalid(PlatformImplementor.java:94)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.awaitPlatformStarted(PlatformImplementor.java:84)
	at org.eclipse.scout.rt.server.commons.WebappEventListener.contextInitialized(WebappEventListener.java:43)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.server.Server.start(Server.java:452)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:419)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:95)
	at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:56)
2018-03-27 01:28:46,341 INFO  [main] org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:280) - Started ServerConnector@28c4711c{HTTP/1.1,[http/1.1]}{0.0.0.0:8082} - MDC[]
Exception in thread "main" org.eclipse.scout.rt.platform.exception.PlatformException: The platform is in an invalid state.
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.throwOnPlatformInvalid(PlatformImplementor.java:94)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.awaitPlatformStarted(PlatformImplementor.java:84)
	at org.eclipse.scout.rt.server.commons.WebappEventListener.contextInitialized(WebappEventListener.java:43)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.server.Server.start(Server.java:452)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:419)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:95)
	at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:56)


Nothing was changed after creating the project, so all settings are default.
I guess these files should be generated in dev mode but they are not.

IDE - Eclipse for Scout Developers
Version: Oxygen.3 Release (4.7.3)
Build id: 20180308-1800
Re: properties are not found while starting client in dev mode [message #1784342 is a reply to message #1784331] Tue, 27 March 2018 06:54 Go to previous messageGo to next message
Stephan Merkli is currently offline Stephan MerkliFriend
Messages: 21
Registered: April 2012
Junior Member
Hi Anton

I've downloaded the Oxygen.3 Release, created a new Scout project and started client and server. Everything worked and both applications were started without any errors.

My generated config.properties of the UI app contains the following lines:
### UI
scout.ui.theme=application
scout.ui.prebuild=false
scout.ui.prebuild.files=/index.html,/login.html,/logout.html,/popup-window.html


Are these entries missing in your generated file (helloworld.ui.html.app.dev\src\main\resources\config.properties)?

Kind regards
Stephan
Re: properties are not found while starting client in dev mode [message #1784349 is a reply to message #1784342] Tue, 27 March 2018 07:38 Go to previous messageGo to next message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi Stephan,
I have exact the same that you showed
### Application
scout.application.name=My Application
scout.application.version=development

### UI
scout.ui.theme=application
scout.ui.prebuild=false
scout.ui.prebuild.files=/index.html,/login.html,/logout.html,/popup-window.html

### Environment
scout.dev.mode=true
#scout.auth.cookie.session.validate.secure=false

### Service tunnel
scout.server.url=http://localhost:8080
scout.auth.privatekey=MD4CAQAwEAYHKoZIzj0CAQYFK4EEAAoEJzAlAgEBBCB9jHQ9uIhvoZyH+vgMgH98Vocqiaqx/Dn7BVkS8EvUuQ==

### Security
scout.auth.credentials=admin:admin;scott:tiger
scout.auth.credentials.plaintext=true

### Storage location for FileSystemUserPreferencesStorageService
user.area=${user.home}/org.eclipse.scout.apps-helloworld.ui.html.dev


Maybe something with my env settings . As I new to Eclipse I guess that something is missed...Weird
Is there any additional settings in Eclipse for Windows environment, I mean directories , paths etc...?
Re: properties are not found while starting client in dev mode [message #1784350 is a reply to message #1784349] Tue, 27 March 2018 07:48 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 134
Registered: September 2011
Senior Member
Hi Anton

What is the value of the property 'org.eclipse.scout.rt.version' in the helloworld/pom.xml?

Thanks
Mat
Re: properties are not found while starting client in dev mode [message #1784361 is a reply to message #1784350] Tue, 27 March 2018 09:04 Go to previous messageGo to next message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi Mat,

Here it is:
 
<properties>
		<org.eclipse.scout.apps.helloworld.version>${project.version}</org.eclipse.scout.apps.helloworld.version>
		<jdk.source.version>1.8</jdk.source.version>
		<org.eclipse.scout.rt.version>7.0.300.005_Oxygen_3</org.eclipse.scout.rt.version>
	</properties>



Thanks
Anton
Re: properties are not found while starting client in dev mode [message #1784395 is a reply to message #1784361] Tue, 27 March 2018 15:19 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 134
Registered: September 2011
Senior Member
Hi Anton

This seems to be correct. I have the same values on my side.
Can you please add a breakpoint to org.eclipse.scout.rt.platform.config.ConfigPropertyValidator.isValid(String, String) on every line that may return false (should be two places).
Then you can start the application in debug mode and check why the property seems to be wrong.
Is the key part of the map getAllConfigProperties() within that class?

Thank you for your help
Mat
Re: properties are not found while starting client in dev mode [message #1784435 is a reply to message #1784395] Tue, 27 March 2018 23:31 Go to previous messageGo to next message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi Mat,
thanks for your suggestion
I checked it debug and see that it returns Property = null for:
scout.ui.theme
scout.ui.prebuild
scout.ui.prebuild.files

and I did not find them in org.eclipse.scout.rt.platform.config classes.
https://eclipsescout.github.io/7.1/migration-guide.html#config-properties - there are also no information about changes with this properties.

Maybe these properties are somewhere else?

thanks, Anton
Re: properties are not found while starting client in dev mode [message #1784438 is a reply to message #1784435] Wed, 28 March 2018 01:01 Go to previous messageGo to next message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi,

Actually, the issue was in org.eclipse.scout.rt.ui.html.7.0.300.005_Oxygen_3 package that has "invalid loc header (bad signature)" when I tried to reach it.
all problematic properties are in org.eclipse.scout.rt.ui.html.UiHtmlConfigProperties class, but since the package was not readable these properties could not be found.

Problem with package is happening when I am creating a new helloworld scout project and only with 7.0.300.005_Oxygen_3 , but If I change package manually afterwards - everything becomes fine.
Previous version 1.0.200... works ok even just to change pom.xml.

BR, Anton
Re: properties are not found while starting client in dev mode [message #1784448 is a reply to message #1784438] Wed, 28 March 2018 06:55 Go to previous messageGo to next message
Stephan Merkli is currently offline Stephan MerkliFriend
Messages: 21
Registered: April 2012
Junior Member
Hi Anton

Not really sure, just a guess. Delete the appropriate file/folder in the local maven repo and fetch them again (Alt+F5 in Eclipse). Maybe the download of de JAR failed somehow.

Kind regards
Stephan

[Updated on: Wed, 28 March 2018 06:56]

Report message to a moderator

Re: properties are not found while starting client in dev mode [message #1784463 is a reply to message #1784448] Wed, 28 March 2018 08:56 Go to previous message
Anton Kravets is currently offline Anton KravetsFriend
Messages: 6
Registered: March 2018
Junior Member
Hi Stephan,
Yeah, that works, thank you.

Will see why mvn downloading doesn't work properly..

BR,
Anton
Previous Topic:How to install Eclipse Oxygen Scout behind a proxy
Next Topic:[Oxygen] Eclipse Scout/ Spring Boot - MapStruct and Lombok and Maven
Goto Forum:
  


Current Time: Tue Sep 25 00:06:47 GMT 2018

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

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

Back to the top