[jboss-user] [Installation, Configuration Deployment] - Classcast exception when multiple deployments of same app

2007-05-10 Thread mhassel
We are trying to deploy the same ear (with different configuration files, 
datasources, etc) multiple times in JBoss.

Every app works perfectly fine by itself, as soon as we deploy two of them, the 
first deployment stops working as soon as we try to acquire a session bean 
remote interface via the initial context with the following classcast exception:

Caused by: java.lang.ClassCastException: $Proxy118 cannot be cast to 
com.absu.poweron.ejb.CircuitDataManager

Our Jboss-app.xml is set to use isolated class loading:

anonymous wrote : jboss-app
  |   loader-repository testing:loader=testing.ear /loader-repository 
  | /jboss-app

and we tried to enable/disable the CallByValue flag in both the 
ear-deployer.xml and the jboss-app without success.

Does anyone have any ideas Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044846#4044846

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - classcast exception

2007-04-19 Thread jgayathri
When i deploy a session bean in JBoss, while deploying i got classcast 
exception . When i am looking thro ctxlook up, it is always returing the object 
ref as JNDI name+Home. why this error is coming? i need help.
servlet code

code:
  | 
  | try {
  |  
  |  InitialContext ctx = new InitialContext();
  | System.out.println(aa);
  |  
  |  Object objref = ctx.lookup(ejb/test/MyTestSessionBean/remote);
  | //testSessionBean = 
(MyTestSessionHome)ctx.lookup(test.session.MyTestSessionBean.class.getName());
  | //testSessionBean = 
(MyTestSessionHome)ctx.lookup(test/session/MyTestSessionBean);
  | System.out.println(b+objref);
  |  
  |  testSessionBean = 
(MyTestSessionHome)PortableRemoteObject.narrow(objref, MyTestSessionHome.class);
  | System.out.println(c);
  |  
  |} catch (Exception NamingException) {
  |  
  |  NamingException.printStackTrace();



THis is the output in Jboss:

393 INFO [STDOUT] bejb/test/MyTestSessionBean/remoteHome
11:43:38,408 ERROR [STDERR] java.lang.ClassCastException
11:43:38,413 ERROR [STDERR] at 
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)


If the code is like this in the lookup:
Object objref = ctx.lookup(ejb/test/MyTestSessionBean);


It returns objref like this:MyTestSessionBeanHome - This class does not exist.
I need help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038724#4038724

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038724
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user