You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Worley Brent - bworle <Br...@acxiom.com> on 2004/06/21 22:38:43 UTC

JNDI Question

Forgive me for being a newbie, but here is a question regarding JNDI.

I have my server.xml configured and my web.xml configured for a resource
named xyz.  xyz is a custom object factory contained within class files
(currently under WEB-INF/classes/xyz/).  The error I'm getting is this:

Caused by: javax.naming.NamingException: Could not create resource factory
instance, null
        at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:99)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:791)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
        at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at search.Search.<clinit>(Search.java:22)
        ... 48 more

I'm I'm reading this correctly, when the VM is trying to create the object
needed for xyz (correct?).  My question is do I need to jar up the files for
xyz and add them to the common/lib directory?

Thanks,
Brent Worley


**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org