[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean

manemannen do-not-reply at jboss.com
Thu Nov 20 05:52:09 EST 2008


I followed what was said in 
anonymous wrote : See this wiki for details http://www.jboss.org/community/docs/DOC-9288  (section "Specifying Isolation"). 

and added the following in my projects:

War: WEB-INF/jboss-web.xml

<?xml version="1.0" encoding="utf-8"?>
  | <jboss-web>
  |    <loader-repository> 
  |       com.test:archive=simpleserver.ear
  |    </loader-repository> 
  | </jboss-web> 

EAR: META-INF/jboss-app.xml

<?xml version="1.0" encoding="UTF-8"?>
  | <jboss-app>
  |    <loader-repository> 
  |       com.test:archive=simpleserver.ear
  |    </loader-repository> 
  | </jboss-app>

...but sadly it still doesn't work.

I also installed the zip-variant of JBoss to access JNDIView. Here is excerpt of it..


Global JNDI Namespace

  +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
  |   +- jmx (class: org.jnp.interfaces.NamingContext)
  |   |   +- invoker (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- RMIAdaptor (proxy: $Proxy47 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
  |   |   +- rmi (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
  |   +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  |   +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  |   +- UserTransactionSessionFactory (proxy: $Proxy15 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
  |   +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  |   +- simpleserver (class: org.jnp.interfaces.NamingContext)
  |   |   +- SimpleStatefulBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   |   +- remote (class: java.lang.Object)
  |   |   |   +- remoteStatefulProxyFactory (proxy: $Proxy66 implements interface org.jboss.ejb3.ProxyFactory)
  |   +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  |   +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
  |   +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190817#4190817

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190817



More information about the jboss-user mailing list