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 #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 #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.05040 seconds