Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5607

Nuxeo Shell must be able to connect on Tomcat server: javax.naming.NoInitialContextException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.3.2
    • Fix Version/s: 5.4
    • Component/s: Shell

      Description

      > ls
      Command failed.
      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:645)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.nuxeo.runtime.api.JndiServiceLocator.lookup(JndiServiceLocator.java:60)
      at org.nuxeo.runtime.api.JBossServiceLocator.lookup(JBossServiceLocator.java:68)
      at org.nuxeo.runtime.api.ServiceHost.lookup(ServiceHost.java:173)
      at org.nuxeo.runtime.api.ServiceManager.getService(ServiceManager.java:114)
      at org.nuxeo.runtime.api.Framework.getService(Framework.java:149)
      at org.nuxeo.ecm.core.client.NuxeoClient.schemaRemotingWorkaround(NuxeoClient.java:236)
      at org.nuxeo.ecm.core.client.NuxeoClient.doConnect(NuxeoClient.java:189)
      at org.nuxeo.ecm.core.client.NuxeoClient.connect(NuxeoClient.java:117)
      at org.nuxeo.ecm.shell.CommandContext.initializeConnection(CommandContext.java:218)
      at org.nuxeo.ecm.shell.CommandContext.getRepositoryInstance(CommandContext.java:191)
      at org.nuxeo.ecm.shell.commands.repository.ListCommand.run(ListCommand.java:40)
      at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
      at org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:165)
      at org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:135)
      at org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:104)
      at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
      at org.nuxeo.ecm.shell.Main.main(Main.java:100)
      at org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:363)
      at org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:343)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.nuxeo.osgi.application.Main.main(Main.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.nuxeo.runtime.launcher.Main.main(Main.java:88)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: