javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]

Atlassian JIRA | Nigel Owen | 10 years ago
  1. 0

    Untared atlassian-bamboo-1.0.3-standalone.tar.gz Changed webapp/WEB-INF/classes/bamboo-init.properties to bamboo.home=/argon/Bamboo Edited bamboo.sh export BAMBOO_INSTALL=/argon/Bamboo export JAVA_HOME=/argon/jdk1.5.0_11 and added -Dbamboo.home=/argon/Bamboo/ to the RUN_CMD variable As root ./bamboo.sh start Noticed when doing a ps -efwww the process is sourcing jdk1.4.2 somewhere root 14981 1 94 18:55 pts/0 00:00:34 java -Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/lib/ext -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath /argon/jdk1.5.0_11/lib/tools.jar:..... And from bamboo.log 2007-04-01 19:00:25,202 INFO [main] [HttpServer] Version Jetty/5.1.4 2007-04-01 19:00:25,278 INFO [main] [Credential] Checking Resource aliases 2007-04-01 19:01:05,159 WARN [main] [WebApplicationContext] Configuration error on ./webapp javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(libgcj.so.7) at javax.naming.InitialContext.getDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.getURLOrDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.lookup(libgcj.so.7) at org.mortbay.jetty.plus.PlusWebAppContext.initialize(PlusWebAppContext.java:167) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463) at org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:150) at org.mortbay.util.Container.start(Container.java:73) at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2007-04-01 19:01:05,196 INFO [main] [SocketListener] Started SocketListener on 0.0.0.0:8085 Exception in thread "main" java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at com.atlassian.bamboo.server.Server.main(Server.java:79) Caused by: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at org.mortbay.http.HttpServer.doStart(HttpServer.java:731) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) root@alice:/argon/Bamboo/logs#

    Atlassian JIRA | 10 years ago | Nigel Owen
    javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
  2. 0

    Untared atlassian-bamboo-1.0.3-standalone.tar.gz Changed webapp/WEB-INF/classes/bamboo-init.properties to bamboo.home=/argon/Bamboo Edited bamboo.sh export BAMBOO_INSTALL=/argon/Bamboo export JAVA_HOME=/argon/jdk1.5.0_11 and added -Dbamboo.home=/argon/Bamboo/ to the RUN_CMD variable As root ./bamboo.sh start Noticed when doing a ps -efwww the process is sourcing jdk1.4.2 somewhere root 14981 1 94 18:55 pts/0 00:00:34 java -Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/lib/ext -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath /argon/jdk1.5.0_11/lib/tools.jar:..... And from bamboo.log 2007-04-01 19:00:25,202 INFO [main] [HttpServer] Version Jetty/5.1.4 2007-04-01 19:00:25,278 INFO [main] [Credential] Checking Resource aliases 2007-04-01 19:01:05,159 WARN [main] [WebApplicationContext] Configuration error on ./webapp javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(libgcj.so.7) at javax.naming.InitialContext.getDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.getURLOrDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.lookup(libgcj.so.7) at org.mortbay.jetty.plus.PlusWebAppContext.initialize(PlusWebAppContext.java:167) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463) at org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:150) at org.mortbay.util.Container.start(Container.java:73) at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2007-04-01 19:01:05,196 INFO [main] [SocketListener] Started SocketListener on 0.0.0.0:8085 Exception in thread "main" java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at com.atlassian.bamboo.server.Server.main(Server.java:79) Caused by: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at org.mortbay.http.HttpServer.doStart(HttpServer.java:731) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) root@alice:/argon/Bamboo/logs#

    Atlassian JIRA | 10 years ago | Nigel Owen
    javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
  3. 0

    Untared atlassian-bamboo-1.0.3-standalone.tar.gz Changed webapp/WEB-INF/classes/bamboo-init.properties to bamboo.home=/argon/Bamboo Edited bamboo.sh export BAMBOO_INSTALL=/argon/Bamboo export JAVA_HOME=/argon/jdk1.5.0_11 and added -Dbamboo.home=/argon/Bamboo/ to the RUN_CMD variable As root ./bamboo.sh start Noticed when doing a ps -efwww the process is sourcing jdk1.4.2 somewhere root 14981 1 94 18:55 pts/0 00:00:34 java -Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/lib/ext -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath /argon/jdk1.5.0_11/lib/tools.jar:..... And from bamboo.log 2007-04-01 19:00:25,202 INFO [main] [HttpServer] Version Jetty/5.1.4 2007-04-01 19:00:25,278 INFO [main] [Credential] Checking Resource aliases 2007-04-01 19:01:05,159 WARN [main] [WebApplicationContext] Configuration error on ./webapp javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(libgcj.so.7) at javax.naming.InitialContext.getDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.getURLOrDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.lookup(libgcj.so.7) at org.mortbay.jetty.plus.PlusWebAppContext.initialize(PlusWebAppContext.java:167) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463) at org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:150) at org.mortbay.util.Container.start(Container.java:73) at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2007-04-01 19:01:05,196 INFO [main] [SocketListener] Started SocketListener on 0.0.0.0:8085 Exception in thread "main" java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at com.atlassian.bamboo.server.Server.main(Server.java:79) Caused by: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at org.mortbay.http.HttpServer.doStart(HttpServer.java:731) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) root@alice:/argon/Bamboo/logs#

    Atlassian JIRA | 10 years ago | Nigel Owen
    javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Untared atlassian-bamboo-1.0.3-standalone.tar.gz Changed webapp/WEB-INF/classes/bamboo-init.properties to bamboo.home=/argon/Bamboo Edited bamboo.sh export BAMBOO_INSTALL=/argon/Bamboo export JAVA_HOME=/argon/jdk1.5.0_11 and added -Dbamboo.home=/argon/Bamboo/ to the RUN_CMD variable As root ./bamboo.sh start Noticed when doing a ps -efwww the process is sourcing jdk1.4.2 somewhere root 14981 1 94 18:55 pts/0 00:00:34 java -Djava.ext.dirs=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/lib/ext -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -classpath /argon/jdk1.5.0_11/lib/tools.jar:..... And from bamboo.log 2007-04-01 19:00:25,202 INFO [main] [HttpServer] Version Jetty/5.1.4 2007-04-01 19:00:25,278 INFO [main] [Credential] Checking Resource aliases 2007-04-01 19:01:05,159 WARN [main] [WebApplicationContext] Configuration error on ./webapp javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(libgcj.so.7) at javax.naming.InitialContext.getDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.getURLOrDefaultInitCtx(libgcj.so.7) at javax.naming.InitialContext.lookup(libgcj.so.7) at org.mortbay.jetty.plus.PlusWebAppContext.initialize(PlusWebAppContext.java:167) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463) at org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:150) at org.mortbay.util.Container.start(Container.java:73) at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2007-04-01 19:01:05,196 INFO [main] [SocketListener] Started SocketListener on 0.0.0.0:8085 Exception in thread "main" java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at com.atlassian.bamboo.server.Server.main(Server.java:79) Caused by: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] at org.mortbay.http.HttpServer.doStart(HttpServer.java:731) at org.mortbay.jetty.plus.Server.doStart(Server.java:154) at org.mortbay.util.Container.start(Container.java:73) at com.atlassian.bamboo.server.Server.main(Server.java:60) root@alice:/argon/Bamboo/logs#

    Atlassian JIRA | 10 years ago | Nigel Owen
    javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial
  6. 0

    db:: 4.88::twiddle usage 8a

    hivmr.com | 9 months ago
    org.jboss.util.NestedRuntimeException: Can't find property: java.naming.factory.initial; - nested throwable: (javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NoInitialContextException

      Can't find property: java.naming.factory.initial]

      at org.mortbay.http.HttpServer.doStart()
    2. org.mortbay.http
      HttpServer.doStart
      1. org.mortbay.http.HttpServer.doStart(HttpServer.java:731)
      1 frame
    3. org.mortbay.jetty
      Server.doStart
      1. org.mortbay.jetty.plus.Server.doStart(Server.java:154)
      1 frame
    4. Jetty Util
      Container.start
      1. org.mortbay.util.Container.start(Container.java:73)
      1 frame
    5. com.atlassian.bamboo
      Server.main
      1. com.atlassian.bamboo.server.Server.main(Server.java:60)
      1 frame