Extensions and javax.Naming

Just another question.

The answers which were give before worked fine, but now i have the problem to initiate a class.
I want to call the naming service of javax. I use the following code:
Context context = new InitialContext(props);

props is a hashtable with the customized properties.

When the application is started, after a trigger is called i get the following exception:
Message: Cannot instantiate class: org.jnp.interfaces.NamingContextFactoryjavax.aming.spi.NamingManager.getInitialContext(NamingManager.java:652)

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
javax.naming.InitialContext.init(InitialContext.java:219)
javax.naming.InitialContext.(InitialContext.java:195)
de.bgs.agents.SXSJAgentTrigger.publishTopic(SXSJAgentTrigger.java:142)
de.bgs.agents.SXSJAgentTrigger.agentOnInsert(SXSJAgentTrigger.java:101)

All needed packages are located in the classpath.

Thanks for your help in advance.

Best regards

Tobias

Hello,

with the tamino support we found a solution.

Just type

Thread.currentThread().seContextClassLoading(getClass().getClassLoader());

in your code and the class can be initiated.

Greetings

Tobi