Hi,
  I have 2 EJBeans. In one bean(say A) i am trying to invoke other bean (say 
B) through Java Reflection API (This is my absoulte necessity. I don't want 
to do JNDI lookup).
CASE 1:- When i try to do this, the Exception i get is that the bean B's 
Home Interface Class not found.
CASE 2:- Then i updated the JBOSSCLASSPATH of JbossHome\bin\run.bat to 
include the bean B.
Now if i start the server, it deployes both the beans with the name of bean 
B.
Now if i lookup for bean A, i get bean A not bound.
Please, help me to solve this problem.
************************************************************************
JBOSS version being used - 2.2.1
JDK version being used - 1.3.0_02
**********************************************************************
STACK TRACE IN CASE 1:
com.techsar.xip.framework.locator.CannotInitializeClassException: 
javax.naming.CommunicationException
[Root exception is java.lang.ClassNotFoundException: 
com.techsar.xip.framework.languagehandler.ILanguageHandlerHome]
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:245)
        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.invoke(Un
known Source)
        at 
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(St
atelessSessionProxy.java:188)
        at $Proxy1.getObject(Unknown Source)
        at TestBean.main(TestBean.java:49)
************************************************************************
STACK TRACE IN CASE 2:
javax.naming.NameNotFoundException: LocatorBean not bound
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:245)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at TestBean.main(TestBean.java:42)
************************************************************************
In the CASE 2, both the beans are deployed by the name of bean B.
(seen from server console)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to