[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-08-02 Thread jaikiran
Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions. Specifically, try out the jmx-console method mentioned over there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069902#4069902 Reply to the post :

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-08-01 Thread jonfelch
Same problem, seems specific to JBoss 4.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069771#4069771 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069771 ___ jboss-user

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-19 Thread skymic
Hi Peter, thanks for replying anyway ... Yes I am using EJB3.0. The EJB I am trying to lookup is registered in JNDI as: +- SDOCIBusinessApp (class: org.jnp.interfaces.NamingContext) | +- ExcelConverterImpl (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy94

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-17 Thread PeterJ
skymic, you should have started a new post, not appended to an existing one. I suspect that you are using EJB3 (you didn't say which version of ejb you are using), in which case you might want to try the lookup as: Object ref = ic.lookup(SDOCI/remote/SDOCIBusinessService/remote); If this does

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-16 Thread skymic
Hi cupdike and Peter, I think I have the same problem with classloaders. I am using a standalone tomcat V5.5 and try to lookup a remote EJB in a JBoss4.0.5 (on a different machine) using this code in my servlet: String urlName = jnp://localhost:1099; Properties p = new

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-12 Thread PeterJ
You probably have a classloader issue. Looks like the code that does the casting is in a servlet. You do not, by any chance, have the APLEntityFacade class in both the EJB jar file and in a jar file (or in the classes directory) in your war file? View the original post :

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-12 Thread cupdike
Peter- Nice catch... that was indeed the problem. I forgot about that whole class identity = class + classloader thing, and was lazy about how I had configured ant. There are also some useful wiki pages on this and other potential classloader issues:

[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-02-11 Thread cupdike
I noticed that tomatkist reported a similar problem (I'm also using 4.05 GA) several days ago: http://www.jboss.com/index.html?module=bbop=viewtopict=100439 Unfortunately, his solution is what I was already trying (lookup the bean and cast to the biz interface). What is bizarre/frustrating is