----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
No, I am starting JServ in auto mode.
My class has owner:group = nobody:nobody and access rights 777.
To be more detailed:
I am trying to connect to JOnAS EJB server from my servlet.
A call from Java application works fine, but the same call from a servlet
fails.
Provider URL, class factory and policy file are specified. (I am pretty sure
they are correct as it works from an application)
The problem is when I try to get InitialContext. It tries to instantiate a
class specified as ClassFactory and fails.
Error message is the following:
Cannot get initial context for JNDI: javax.naming.NoInitialContextException:
Cannot instantiate class: "com.sun.jndi.rmi.registry.RegistryContextFactory"
[Root exception is java.lang.ClassNotFoundException:
"com/sun/jndi/rmi/registry/RegistryContextFactory"]
Classpath of JVM at that moment is:
CLASSPATH=/usr/local/apache/libexec/ApacheJServ.jar:/usr/local/JSDK2.0/lib/j
sdk.jar:
/usr/local/java/lib/rmiregistry.jar:/usr/local/java/lib/jndi.jar:
/usr/local/java/lib/ejb.jar:/usr/local/java/lib/jdbc2_0-stdext.jar:/usr/loca
l/java/lib/jta.jar:
/usr/local/java/lib/providerutil.jar:/usr/local/java/lib/servlet.jar:
/usr/local/jonas/lib/RMI_jonas.jar:/usr/local/classes/
Class com.sun.jndi.rmi.registry.RegistryContextFactory is located in
/usr/local/java/lib/rmiregistry.jar
JDK 1.2 from Sun is located under /usr/local/jdk1.2/
Best regards
Vlad Eliseev
----- Original Message -----
From: Steve Lewis <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Wednesday, February 09, 2000 7:29 PM
Subject: Re: ClassNotFoundException
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Are you starting JServ manually? You need to specify classpath parameters
> in your manual script, instead of using the wrapper params.
>
> Steve Lewis
> Unix Systems Group
> University of Texas at Dallas
>
> On Wed, 9 Feb 2000, Vlad Elisseev wrote:
>
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files. Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > Dear Colleagues,
> >
> > I have a strange problem and asking you for a help.
> >
> > I use Apache 1.3.11 and JServ 1.1. under Linux RH 5.2 and Blackdown JDK
1.2
> > I can run a servlet, but when in its code there is an instantiating of a
> > class which is not in the default classpath of JDK or the servlet
catalog
> > (for example Class.forName("myClass").newInstance();)
> > JServ reports about an ClassNotFoundException.
> > The catalog where myClass should be is registered with a
> > wrapper.classpath="....." directive.
> > Packages are considered. Specifying classpath with
wrapper.bin.parameters
> > does not work.
> >
> > Please give me an advice
> >
> > Best regards
> > Vlad Eliseev
> > [EMAIL PROTECTED]
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]