As Ole indicated in a parallel message, the ClassNotFoundException
is cosmetic and does not cause problems.
The JNP exception you see looks like a problem in your EJB
implementation class - a typo in a JNDI name or something. Can you
double-check all statements where you look up something in JNDI? You can
post the bean implementation code here, if you like. But it looks like
you're trying to do something like:
Foo foo = (Foo)context.lookup("java:comp/env");
Where you don't actually get the type of object you're expecting
(because java:comp/env is a sub-context not a Foo).
Aaron
On Tue, 19 Sep 2000, Andrew wrote:
> Hello, win2000+jdk1.3+(jboss 2.0 beta prod 01) config has the following
> problems:
> 1)After deploying BMP bean in \deploy dir and running the server I find out
> this error message on console:
> [Container factory] java.lang.ClassNotFoundException: class
> org.jboss.security.EJBSecurityManagerDefaultImpl
> -class located in jboss.jar.
> but bean was deployed:
> [Container factory] Deployed application: file:/C:/jboss/deploy/
> After that I wrote some tiny client calling findByPrimaryKey( String) on
> home iface .All is ok while no
> home.findByPrimaryKey() or other method invocation- result is
>
> java.rmi.ServerException: RemoteException occurred in server thread; nested
> exception is:
> java.rmi.ServerException: Exception occurred; nested exception is:
> java.lang.ClassCastException: org.jnp.interfaces.NamingContext
> java.rmi.ServerException: Exception occurred; nested exception is:
> java.lang.ClassCastException: org.jnp.interfaces.NamingContext
> java.lang.ClassCastException: org.jnp.interfaces.NamingContext
> at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:245)- strange... this class is in jdk jar file
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
> wn Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)
> at $Proxy0.findByPrimaryKey(Unknown Source)
> at a.main(a.java:14)
> Exception in thread "main"
>
> What's the problem?
> Thank you.
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]