thanks for your help
-dom
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Riedel
Sent: Monday, December 18, 2000 10:48 PM
To: jBoss
Subject: RE: [jBoss-User] looking up a bean from a servlet
You need to make sure that the following jar files are in your *servlet's*
classpath:
ejb.jar
jboss.jar
jndi.jar
jnpserver.jar
jta-spec1_0_1.jar
Andy
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dominik Baranowski
> Sent: Monday, December 18, 2000 6:20 PM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] looking up a bean from a servlet
>
>
> 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]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]