I'm trying to lookup a bean from a servlet. I'm running jboss and tomcat on
the same stack.
I tried the using a initializing the InitialContext through
        InitialContext ctx=new InitialContext();
(assuming the props have been set in the system)

I also tried setting the properties myself as if I were a client

neither approach works

Can someone point me to the source of an example that does this? or explain
what is going on
the exception below is thrown when I set my own properties.

do I need to include NamingContextFactory in my classpath? I thought that it
was already included with all the lib\ext stuff.

thanks
-dom

javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interf
aces.NamingContextFactory.  Root exception is [EmbeddedTomcat]
java.lang.ClassNo
tFoundException: org/jnp/interfaces/NamingContextFactory
[EmbeddedTomcat]        at java.lang.Class.forName0(Native Method)
[EmbeddedTomcat]        at java.lang.Class.forName(Unknown Source)
[EmbeddedTomcat]        at
com.sun.naming.internal.VersionHelper12.loadClass(Unk
nown Source)
[EmbeddedTomcat]        at
javax.naming.spi.NamingManager.getInitialContext(Unkn
own Source)
[EmbeddedTomcat]        at
javax.naming.InitialContext.getDefaultInitCtx(Unknown
 Source)
[EmbeddedTomcat]        at javax.naming.InitialContext.init(Unknown Source)
[EmbeddedTomcat]        at javax.naming.InitialContext.<init>(Unknown
Source)
[EmbeddedTomcat]        at
com.saltare.servlets.eventdispatch.DispatchRunnable.l
ookupRegistry(DispatchRunnable.java:62)
[EmbeddedTomcat]        at
com.saltare.servlets.eventdispatch.DispatchRunnable.r
un(DispatchRunnable.java:39)
[EmbeddedTomcat]        at java.lang.Thread.run(Unknown Source)
[EmbeddedTomcat] servlet contact: post
[EmbeddedTomcat] event = com.saltare.core.events.TestEvent@590453




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to