[neon][ugm] First experiences and lots of questions [message #1713569] |
Thu, 05 November 2015 08:58 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
At the EclipseCon Europe Unconference Scout User Group Meeting [ugm] I received a copy of the (not yet public) Scout Neon versions.
I have tried to create a new Scout Neon project to use as basis for the migration of a small Scout application. I have run into quite a few hurdles that probably have to do with the fact that the distributed workspace is not yet available online.
Steps I took
I ran through several iterations to make things work, a lot of them didn't work at all, others worked "almost", one I got to work but cannot reproduce the steps.
- Unzipped archive
- Started workspace
- Configured proxy settings (I am sitting behind a company firewall)
- Modified the included Maven Settings File to use our company repo mirror (skipping this step, despite having configured the proxy settings, leads to a workspace missing a lot of required libraries because apparently access to the BSI repos is not public, I got a whole lot of timeouts and access denied errors trying to do that)
- Modified the included Maven Settings File to use a separate local maven repo (so I would not pollute the maven repo included in the zip file)
- Creating a new Scout Project using File->New->Scout Project
After the Scout Wizard had finished, my local maven repo had been populated. However, there were 9 compilation errors, complaining that the org.eclipse.scout.rt.ui.html-5.2.0-SNAPSHOT.jar file could not be found (which makes sense, considering that these parts are not yet public).
- I then copied across the whole "org.eclipse.scout" subtree of the maven repo contained in the zip file into my new local maven repo.
Recompiled and the errors had disappeared.
- Started the server-dev -> no errors
- Started the ui-html-dev -> NPE exceptions when calling BEANS.get()
After some researching, I found out that Eclipse had downloaded a publicly available version of the Scout Jars: 5.2.0-20151014.230102-22 which seem to clash with the version delivered in the ZIP file (5.2.0-20151030.153536-158).
That is were I currently stand on my work computer. I have not managed to get rid of the 20150114 version of the scout libraries. If I delete them manually, they are redownloaded the next time I compile. I don't understand why these libraries are used because their timestamp is older than those jars from the zip file.
I've tried changing the scout version from 5.2.0-SNAPSHOT in the parent pom to 5.2.0-20151030.153536-158 but then I got loads of errors about not finding those jars.
I've tried going to the preferences and switching Maven to offline mode. However, if I do that, I end up with 58 errors complaining about not finding jars that are obviously present in the local maven repo.
I've also tried the above at home (where I am not behind a firewall and where there are no mirrored repos). So basically, I skipped step 3 and modified step 4 to remove the BSI repos from the maven configuration file but followed all others. The result was the same as on the work computer. However, after trying to change the scout version in the pom and deleting all the 20151014 versions and then going back to 5.2.0-SNAPSHOT in the pom, suddenly the 20151014 versions were no longer downloaded (I have no idea why) and then both the server and the ui server could be started and I could connect to the client with my browser.
Have you at BSI ever tried to get your ZIP archive to work outside the BSI network?
Has anyone else who was at the UGM succesfully managed to get that ZIP archive to work reproducibly without a lot of fiddling around?
Below is the stacktrace I get when starting the ui-html launcher.
2015-11-05 08:26:31,700 INFO main org.eclipse.jetty.util.log - Logging initialized @518ms [ @ ]
2015-11-05 08:26:31,731 INFO main org.eclipse.scout.dev.jetty.JettyServer - Starting Jetty with resourceBase=D:\apps\eclipse-scout-ugm\workspace\ch.bee.mediathek.ui.html.app.dev\src\main\webapp [ @ ]
2015-11-05 08:26:31,747 INFO main org.eclipse.jetty.server.Server - jetty-9.2.13.v20150730 [ @ ]
2015-11-05 08:26:32,012 INFO main o.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet [ @ ]
2015-11-05 08:26:32,074 INFO Thread-9 o.e.s.r.p.i.internal.JandexInventoryBuilder - forcing rebuild of index file:/D:/apps/eclipse-scout-ugm/workspace/ch.bee.mediathek.ui.html/target/classes/META-INF/jandex.idx; scanning location... [ @ ]
2015-11-05 08:26:32,215 INFO Thread-9 o.e.s.r.p.i.internal.JandexInventoryBuilder - forcing rebuild of index file:/D:/apps/eclipse-scout-ugm/workspace/ch.bee.mediathek.client/target/classes/META-INF/jandex.idx; scanning location... [ @ ]
2015-11-05 08:26:32,216 INFO Thread-9 o.e.s.r.p.i.internal.JandexInventoryBuilder - forcing rebuild of index file:/D:/apps/eclipse-scout-ugm/workspace/ch.bee.mediathek.shared/target/classes/META-INF/jandex.idx; scanning location... [ @ ]
2015-11-05 08:26:32,216 INFO Thread-9 o.e.scout.rt.platform.inventory.ClassInventory - Finished preparation of jandex class inventory in 164.571710 ms [ @ ]
Exception in thread "Thread-9" java.lang.NoClassDefFoundError: org/eclipse/scout/commons/chain/IInvocationDecorator
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.eclipse.scout.rt.platform.inventory.internal.JandexClassInfo.ensureClassLoaded(JandexClassInfo.java:54)
at org.eclipse.scout.rt.platform.inventory.internal.JandexClassInfo.resolveClass(JandexClassInfo.java:87)
at org.eclipse.scout.rt.platform.inventory.internal.JandexClassInfo.isInstanciable(JandexClassInfo.java:98)
at org.eclipse.scout.rt.platform.internal.BeanFilter.collect(BeanFilter.java:84)
at org.eclipse.scout.rt.platform.internal.BeanFilter.collectWithSubClasses(BeanFilter.java:68)
at org.eclipse.scout.rt.platform.internal.BeanFilter.collect(BeanFilter.java:34)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:133)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:89)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)
Caused by: java.lang.ClassNotFoundException: org.eclipse.scout.commons.chain.IInvocationDecorator
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 more
2015-11-05 08:26:32,357 WARN main org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.s.d.j.P_WebAppContext@4e7dc304{/,file:/D:/apps/eclipse-scout-ugm/workspace/ch.bee.mediathek.ui.html.app.dev/src/main/webapp/,STARTING} [ @ ]
java.lang.NullPointerException: null
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:57) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:43) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at ch.bee.mediathek.ui.html.UiHtmlServletFilter.init(UiHtmlServletFilter.java:33) ~[classes/:na]
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.start(Server.java:387) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:65) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:36) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
2015-11-05 08:26:32,357 WARN main org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED o.e.s.d.j.P_WebAppContext@4e7dc304{/,file:/D:/apps/eclipse-scout-ugm/workspace/ch.bee.mediathek.ui.html.app.dev/src/main/webapp/,UNAVAILABLE}: java.lang.NullPointerException [ @ ]
java.lang.NullPointerException: null
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:57) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:43) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at ch.bee.mediathek.ui.html.UiHtmlServletFilter.init(UiHtmlServletFilter.java:33) ~[classes/:na]
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.start(Server.java:387) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) [jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:65) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:36) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
2015-11-05 08:26:32,435 INFO main org.eclipse.jetty.server.ServerConnector - Started ServerConnector@1a3b9a02{HTTP/1.1}{0.0.0.0:8082} [ @ ]
2015-11-05 08:26:32,435 WARN main org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@2d6eabae: java.lang.NullPointerException [ @ ]
java.lang.NullPointerException: null
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:57) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:43) ~[org.eclipse.scout.rt.platform-5.2.0-SNAPSHOT.jar:na]
at ch.bee.mediathek.ui.html.UiHtmlServletFilter.init(UiHtmlServletFilter.java:33) ~[classes/:na]
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) ~[jetty-servlet-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) ~[jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) ~[jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.start(Server.java:387) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) ~[jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.server.Server.doStart(Server.java:354) ~[jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) ~[jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:65) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:36) [org.eclipse.scout.dev.jetty-5.2.0-SNAPSHOT.jar:na]
Exception in thread "main" java.lang.NullPointerException
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:57)
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:43)
at ch.bee.mediathek.ui.html.UiHtmlServletFilter.init(UiHtmlServletFilter.java:33)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:65)
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:36)
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03316 seconds