Jchart Staff wrote:
> When I try to access an Entity Bean from a servlet (Apache/Jserv) I get
> javax.naming.CommunicationException
> java.lang.ClassNotFoundException:
> com.mytoc.ejb.category.JOnASCategoryBeanCategoryHome_Stub]
>
I don't know if this will help, but there is a big difference between:
ClassNotFoundException and
NoClassDefFoundException
The first one (the one you get) is thrown when the named class depend on another one
that cannot be loaded (it could be some EJB related class, or some Jonas class). The
exception does NOT name the class that could not be found.
The second exception is given when the class named is not found.
I tend to find very confusing the methods, especially the naming. So, in your case, the
named class was found but some class, either in RMI stuff, or Jonas stuff, or EJB
stuff,
is not found at runtime.
>
> I can access it no problem using a Java application program but not a
> servlet.
> I sounds like a classpath problem but the paths are set similar in both
> environments. Then I thought that it may be a permissions problem but I
> don't know.
>
> Any clues?
>
> This is where the exception is thrown
> //
> CategoryHome home;
> home = (CategoryHome)
> PortableRemoteObject.narrow(initialContext.lookup(homeBeanName),CategoryHome.class);
>
> //
>
> Thanks in advance,
> Paul-
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".