[jboss-user] [EJB 3.0] - java.lang.ClassCastException: $Proxy79 getting conext

EricChile do-not-reply at jboss.com
Tue Nov 28 15:54:28 EST 2006


Can't seem to get the stateless facade from within my webapp. I hava the webapp and the jar (bean) in the same ear. It appears the the context for the bean is correct. I also made sure there were no references to that bean in my WEB-INF/classes or lib. Anyone have a clue as to what is going on here?


  |             final Context context = new InitialContext();
  |             WebkidsFacade = 
  |                 (webkidsFacade) context.lookup("WebkidsAdminLite/webkidsFacade/local");
  | 
  | 




  | Global JNDI Namespace
  | 
  |   +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
  |   +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
  |   +- WebkidsAdminLite (class: org.jnp.interfaces.NamingContext)
  |   |   +- webkidsFacade (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy79 implements interface org.usiis.model.webkidsFacadeLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
  |   |   |   +- remote (proxy: $Proxy77 implements interface org.usiis.model.webkidsFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
  |   +- UserTransactionSessionFactory (proxy: $Proxy46 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
  |   +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
  |   +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
  |   +- console (class: org.jnp.interfaces.NamingContext)
  |   |   +- PluginManager (proxy: $Proxy40 implements interface org.jboss.console.manager.PluginManagerMBean)
  |   +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
  |   +- topic (class: org.jnp.interfaces.NamingContext)
  |   |   +- testDurableTopic (class: org.jboss.mq.SpyTopic)
  |   |   +- testTopic (class: org.jboss.mq.SpyTopic)
  |   |   +- securedTopic (class: org.jboss.mq.SpyTopic)
  |   +- queue (class: org.jnp.interfaces.NamingContext)
  |   |   +- A (class: org.jboss.mq.SpyQueue)
  |   |   +- testQueue (class: org.jboss.mq.SpyQueue)
  |   |   +- ex (class: org.jboss.mq.SpyQueue)
  |   |   +- DLQ (class: org.jboss.mq.SpyQueue)
  |   |   +- D (class: org.jboss.mq.SpyQueue)
  |   |   +- C (class: org.jboss.mq.SpyQueue)
  |   |   +- B (class: org.jboss.mq.SpyQueue)
  |   +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
  |   +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
  |   +- jmx (class: org.jnp.interfaces.NamingContext)
  |   |   +- invoker (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- RMIAdaptor (proxy: $Proxy39 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)
  |   +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
  |   +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
  | 


  | 13:45:37,245 ERROR [STDERR] java.lang.ClassCastException: $Proxy79
  | 13:45:37,245 ERROR [STDERR]     at org.usiis.view.backing.Login.<init>(Login.jav
  | a:43)
  | 13:45:37,245 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.new
  | Instance0(Native Method)
  | 13:45:37,245 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.new
  | Instance(NativeConstructorAccessorImpl.java:39)
  | 13:45:37,245 ERROR [STDERR]     at sun.reflect.DelegatingConstructorAccessorImpl
  | .newInstance(DelegatingConstructorAccessorImpl.java:27)
  | 13:45:37,245 ERROR [STDERR]     at java.lang.reflect.Constructor.newInstance(Con
  | structor.java:494)
  | 13:45:37,245 ERROR [STDERR]     at java.lang.Class.newInstance0(Class.java:350)
  | 13:45:37,245 ERROR [STDERR]     at java.lang.Class.newInstance(Class.java:303)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.shared_impl.util.ClassUtil
  | s.newInstance(ClassUtils.java:274)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.shared_impl.util.ClassUtil
  | s.newInstance(ClassUtils.java:265)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.config.ManagedBeanBuilder.
  | buildManagedBean(ManagedBeanBuilder.java:50)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.el.VariableResolverImpl.re
  | solveVariable(VariableResolverImpl.java:311)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.config.LastVariableResolve
  | rInChain.resolveVariable(LastVariableResolverInChain.java:42)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.el.ValueBindingImpl$ELVari
  | ableResolver.resolveVariable(ValueBindingImpl.java:574)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.commons.el.NamedValue.evaluate(Nam
  | edValue.java:124)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.commons.el.ComplexValue.evaluate(C
  | omplexValue.java:140)
  | 13:45:37,245 ERROR [STDERR]     at org.apache.myfaces.el.ValueBindingImpl.getVal

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

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



More information about the jboss-user mailing list