Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1256

Error running topology-web on minishift

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.3.3
    • Fix Version/s: 2017.4.0
    • Component/s: None
    • Labels:
      None

      Description

      When I run my app app on minishift and I have topology-web set as a dependency I get the following error in the pod log:

      2017-04-04 14:02:26,943 WARN  [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction:              Topology UI - UNSTABLE        org.wildfly.swarm:topology-webapp:2017.3.3
      2017-04-04 14:02:29,267 WARN  [org.wildfly.swarm] (main) WFSWARM0038: In order to use HTTP/2 in WildFly Swarm, you must have the OpenSSL provider with ALPN capability from JBoss Core Services installed and configured. This is due to the fact that HTTP/2 requires a TLS stack that supports ALPN, which is not provided by the default installation of Java 8. HTTP/2 will only work with browsers that also support the HTTP/2 standard. OpenSSL usage with WildFly Swarm on HP-UX is NOT supported.
      2017-04-04 14:02:29,811 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
      2017-04-04 14:02:29,910 INFO  [org.jboss.as] (MSC service thread 1-3) WFLYSRV0049: WildFly Swarm 2017.3.3 (WildFly Core 2.2.1.CR1) starting
      2017-04-04 14:02:29,984 INFO  [org.wildfly.swarm] (MSC service thread 1-3) WFSWARM0029: Install MSC service for command line args: []
      2017-04-04 14:02:30,100 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service swarm.topology.proxy: org.jboss.msc.service.StartException in service swarm.topology.proxy: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:65)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
      	at javax.naming.InitialContext.lookup(InitialContext.java:417)
      	at org.wildfly.swarm.topology.Topology.lookup(Topology.java:32)
      	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:62)
      	... 5 more
      
      2017-04-04 14:02:31,610 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 9) WFLYNAM0001: Activating Naming Subsystem
      2017-04-04 14:02:31,648 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 10) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors
      2017-04-04 14:02:31,690 INFO  [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
      2017-04-04 14:02:31,748 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 1.4.0.Final starting
      2017-04-04 14:02:31,832 INFO  [org.xnio] (MSC service thread 1-2) XNIO version 3.4.0.Final
      2017-04-04 14:02:31,889 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.4.0.Final
      2017-04-04 14:02:32,050 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0012: Started server default-server.
      2017-04-04 14:02:32,161 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTP listener default listening on [0:0:0:0:0:0:0:0]:8080
      2017-04-04 14:02:32,371 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Swarm 2017.3.3 (WildFly Core 2.2.1.CR1) started (with errors) in 2613ms - Started 66 of 74 services (1 services failed or missing dependencies, 14 services are lazy, passive or on-demand)
      2017-04-04 14:02:32,390 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
      2017-04-04 14:02:32,391 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2017-04-04 14:02:32,391 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2017-04-04 14:02:32,393 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2017-04-04 14:02:32,394 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-04-04 14:02:32,395 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      2017-04-04 14:02:32,395 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
      2017-04-04 14:02:32,397 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
      2017-04-04 14:02:32,398 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: org.jboss.msc.service.StartException in service swarm.topology.proxy: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,398 ERROR [stderr] (main) 	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      2017-04-04 14:02:32,399 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:109)
      2017-04-04 14:02:32,399 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.start(Swarm.java:369)
      2017-04-04 14:02:32,400 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.main(Swarm.java:609)
      2017-04-04 14:02:32,400 ERROR [stderr] (main) 	... 7 more
      2017-04-04 14:02:32,401 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service swarm.topology.proxy: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,401 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:65)
      2017-04-04 14:02:32,401 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      2017-04-04 14:02:32,402 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      2017-04-04 14:02:32,405 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2017-04-04 14:02:32,405 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2017-04-04 14:02:32,405 ERROR [stderr] (main) 	at java.lang.Thread.run(Thread.java:745)
      2017-04-04 14:02:32,406 ERROR [stderr] (main) Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,406 ERROR [stderr] (main) 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      2017-04-04 14:02:32,406 ERROR [stderr] (main) 	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      2017-04-04 14:02:32,406 ERROR [stderr] (main) 	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
      2017-04-04 14:02:32,406 ERROR [stderr] (main) 	at javax.naming.InitialContext.lookup(InitialContext.java:417)
      2017-04-04 14:02:32,407 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.Topology.lookup(Topology.java:32)
      2017-04-04 14:02:32,408 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:62)
      2017-04-04 14:02:32,409 ERROR [stderr] (main) 	... 5 more
      2017-04-04 14:02:32,410 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      2017-04-04 14:02:32,410 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2017-04-04 14:02:32,410 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2017-04-04 14:02:32,411 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2017-04-04 14:02:32,411 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:498)
      2017-04-04 14:02:32,411 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      2017-04-04 14:02:32,412 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
      2017-04-04 14:02:32,412 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
      2017-04-04 14:02:32,412 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: org.jboss.msc.service.StartException in service swarm.topology.proxy: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,412 ERROR [stderr] (main) 	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      2017-04-04 14:02:32,413 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:109)
      2017-04-04 14:02:32,413 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.start(Swarm.java:369)
      2017-04-04 14:02:32,413 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.main(Swarm.java:609)
      2017-04-04 14:02:32,413 ERROR [stderr] (main) 	... 7 more
      2017-04-04 14:02:32,413 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service swarm.topology.proxy: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:65)
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2017-04-04 14:02:32,414 ERROR [stderr] (main) 	at java.lang.Thread.run(Thread.java:745)
      2017-04-04 14:02:32,415 ERROR [stderr] (main) Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
      2017-04-04 14:02:32,415 ERROR [stderr] (main) 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      2017-04-04 14:02:32,415 ERROR [stderr] (main) 	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      2017-04-04 14:02:32,415 ERROR [stderr] (main) 	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
      2017-04-04 14:02:32,416 ERROR [stderr] (main) 	at javax.naming.InitialContext.lookup(InitialContext.java:417)
      2017-04-04 14:02:32,416 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.Topology.lookup(Topology.java:32)
      2017-04-04 14:02:32,416 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.webapp.runtime.TopologyProxyService.start(TopologyProxyService.java:62)
      2017-04-04 14:02:32,416 ERROR [stderr] (main) 	... 5 more
      

      But it works in combination with topology-jgroups running on localhost

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                edewit Erik Jan de Wit
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: