java.lang.RuntimeException: org.mortbay.util.MultiException[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
    java.lang.RuntimeException: org.mortbay.util.MultiException[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
    java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
  3. 0

    [BAM-12355] Documentation update for using Jetty.xml - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.RuntimeException: java.lang.ClassNotFoundException: org.mortbay.jetty.Server
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jetty 9.2.6: RuntimeException in the output when undeploying application

    YouTrack | 2 years ago
    java.lang.RuntimeException: 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
  6. 0

    Exception on context undeploy from EnvConfiguration

    Eclipse Bugzilla | 2 years ago | janb
    java.lang.RuntimeException: 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

    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. 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()
    2. com.atlassian.bamboo
      Server.main
      1. com.atlassian.bamboo.server.Server.main(Server.java:79)
      1 frame