HelloWorld Scout 9 not working [message #1804924] |
Wed, 03 April 2019 11:37  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #1804932 is a reply to message #1804931] |
Wed, 03 April 2019 12:43   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #1804976 is a reply to message #1804969] |
Thu, 04 April 2019 07:25   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds