Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » HelloWorld Scout 9 not working
HelloWorld Scout 9 not working [message #1804924] Wed, 03 April 2019 11:37 Go to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hey Guys,

so i wanted to migrate my Scout 8 Project to Scout 9.
I did the things described in the Migration guide and then i got some Errors.

So i thought fine, maybe i skipped something important and started a fresh helloworld project of scout 9 and i got the same Error.

If it is important i use Eclipse Scout Version 2019-03(4.11.0).

The Properties of the pom.xml (helloworld) :

<parent>
    <groupId>org.eclipse.scout</groupId>
    <artifactId>maven_rt_plugin_config-master</artifactId>
    <version>3.1.0</version>
    <relativePath></relativePath>
  </parent>

  <groupId>org.eclipse.scout.apps</groupId>
  <artifactId>helloworld</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>pom</packaging>

  <name>My Application Parent Module</name>

  <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>9.0.0.009_Simrel_2019_03</org.eclipse.scout.rt.version>
  </properties>


And here is the Error:

2019-04-03 13:19:52,692 ERROR [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:144) - Error during platform startup - MDC[]
java.lang.NoClassDefFoundError: org/jboss/jandex/IndexView
	at org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>(ClassInventory.java:36)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:215)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:133)
	at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:30)
Caused by: java.lang.ClassNotFoundException: org.jboss.jandex.IndexView
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 4 common frames omitted
Exception in thread "scout-platform-starter" java.lang.NoClassDefFoundError: org/jboss/jandex/IndexView
	at org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>(ClassInventory.java:36)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:215)
	at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:133)
	at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:30)
Caused by: java.lang.ClassNotFoundException: org.jboss.jandex.IndexView
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 4 more
2019-04-03 13:19:52,695 WARN  [main] org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:554) - Failed startup of context o.e.s.d.j.P_WebAppContext@15bfd87{My Application Server,/,file:///C:/Dev/Projects/ScoutTest/helloworld/helloworld.server.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:47)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:957)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:552)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:922)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:364)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:852)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
	at org.eclipse.jetty.server.Server.start(Server.java:415)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:382)
	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)
2019-04-03 13:19:52,714 INFO  [main] org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:292) - Started ServerConnector@c540f5a{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} - 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:47)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:957)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:552)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:922)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:364)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:852)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
	at org.eclipse.jetty.server.Server.start(Server.java:415)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:382)
	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)


Thank you for your advice in advance.
Re: HelloWorld Scout 9 not working [message #1804927 is a reply to message #1804924] Wed, 03 April 2019 11:45 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
This is maybe not the fix but i had something similar when the jandex index cache was not updated automatically.

Please delete all files in all .../target/classes/META-INF/jandex.idx and then restart the app. This will rebuild all jandex.idx.

Does that help?
Re: HelloWorld Scout 9 not working [message #1804928 is a reply to message #1804927] Wed, 03 April 2019 11:48 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
hmm i think this will not help. I will try to reproduce your hello world. just a minute.
Re: HelloWorld Scout 9 not working [message #1804929 is a reply to message #1804928] Wed, 03 April 2019 11:53 Go to previous messageGo to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hey Ivan,

thanks for the fast reply but that wont help bc theres no files like that in the target folders.
Its a plain new hello world example without any changes.
Re: HelloWorld Scout 9 not working [message #1804930 is a reply to message #1804924] Wed, 03 April 2019 12:01 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
I created a hello world as well, that one works. I attached the workspace here, can you compare if there are relevant differences? Do you want to share your hello world workspace?
Re: HelloWorld Scout 9 not working [message #1804931 is a reply to message #1804930] Wed, 03 April 2019 12:23 Go to previous messageGo to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
So i hope im doing this right :)

Heres my zip.

  • Attachment: hello.zip
    (Size: 261.40KB, Downloaded 92 times)
Re: HelloWorld Scout 9 not working [message #1804932 is a reply to message #1804931] Wed, 03 April 2019 12:43 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
Thanks.. I opened your workspace in an eclipse 2018-12 (4.10) and started server and ui. Both start without errors and all works fine.
So the issue must be somewhere in the surroundings. Lets do the checklist, just to make sure we don't miss anything trivial.
- what is the eclipse version (Menu Help - About...)?
- Is the workspace compiling (Menu Project-Build automatically has a checkmark)
- Are there any build errors in the error view?
- Try selecting all projects and then "Maven Update Project" (right click Menu Maven-Update Project... or press Alt-F5)
- What is the runtime /compile time JRE you use (exact version) ?
- What eclipse Maven Settings do you use (Menu Window-Preferences... Maven - User Settings)?
here i only have the entry: Local Settings: C:\Users\imo\.m2\repository
Global and User Settings are empty.
- What java versions does eclipse use (Menu Window-Preferences... Java - Installed JRE)?
- Which jre is used for which java official version (Menu Window-Preferences... Java - Installed JRE - Execution environments: click on the one that compiles/starts your helloworld project)?
Re: HelloWorld Scout 9 not working [message #1804935 is a reply to message #1804932] Wed, 03 April 2019 13:07 Go to previous messageGo to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hey,

so i used the following:

Eclipse IDE for Scout Developers
Version: 2019-03 (4.11.0)
Build id: 20190314-1200
OS: Windows 7, v.6.1, x86_64 / win32
Java version: 1.8.0_171

The JRE is also the one mentioned in the other menus as well as i have 1.8 compilation level.
The maven update runs just fine.
The build automatically checkmark is set.


About the maven part im not sure, because i only use eclipse for that scout application and i didnt change anything about that, just installed everything like described in the tutorials.

So i guess it has sth to do with the update of eclipse itself to the version i am using?

Since everything was working out fine on my scout 8 application, but i want some features (like the dense mode and openjdk support) .
Re: HelloWorld Scout 9 not working [message #1804950 is a reply to message #1804935] Wed, 03 April 2019 16:02 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
I will take care of that, just let me some time to set things up as you specified.
Re: HelloWorld Scout 9 not working [message #1804951 is a reply to message #1804950] Wed, 03 April 2019 16:03 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
would it be possible that you attach here your helloworld workspace including the .metadate folder?
Re: HelloWorld Scout 9 not working [message #1804969 is a reply to message #1804951] Thu, 04 April 2019 06:16 Go to previous messageGo to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Sorry i couldnt make it earlier.

Heres a zip of the workspace including everything :)

  • Attachment: Test9.zip
    (Size: 16.89MB, Downloaded 89 times)
Re: HelloWorld Scout 9 not working [message #1804976 is a reply to message #1804969] Thu, 04 April 2019 07:25 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi Maddes

Maybe it is related to the Maven dependencies. I had a similar issue once where a Maven dependency was not valid and was not updated by m2e.

Can you please try to delete the following Folder in your Maven repository:
<repo-root>\org\jboss\jandex

and then open the Workspace again and Press Alt+F5, select all Projects, ensure all checkboxes except "Offline" are checked and then press "ok".

This should download the jar again. Does this help?

Kind regards
Mat
Re: HelloWorld Scout 9 not working [message #1804978 is a reply to message #1804976] Thu, 04 April 2019 07:47 Go to previous message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hi Matthias

Well, that did the trick.
I forgot to screenshot it, but there were 2 versions located in that folder. I deleted the jandex folder and updated the Maven as you suggested.
Now the HelloWorld runs without any problems.

Thx for the help, now im confident to update the real application and enjoy the new Scout version!

Have a great one all of you!
Previous Topic:Scout 9.0 is now available
Next Topic:Hello world example not working
Goto Forum:
  


Current Time: Thu Mar 28 14:29:44 GMT 2024

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

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

Back to the top