camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9326) JndiRegistry should default to use CamelInitialContextFactory if no env factory specified
Date Sun, 15 Nov 2015 07:39:10 GMT
Claus Ibsen created CAMEL-9326:
----------------------------------

             Summary: JndiRegistry should default to use CamelInitialContextFactory if no
env factory specified
                 Key: CAMEL-9326
                 URL: https://issues.apache.org/jira/browse/CAMEL-9326
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.16.1
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.16.2, 2.17.0


You will get errors like
{code}
	at org.apache.camel.impl.JndiRegistry.bind(JndiRegistry.java:126)
	at camelinaction.JndiRegistryTest.setUp(JndiRegistryTest.java:25)
	at junit.framework.TestCase.runBare(TestCase.java:139)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
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
{code}

If using JndiRegistry manually. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message