To make things clear, lets do the following:
- Post the exact contents of your ejb-jar.xml and jboss.xml
- Post the exact code that you are using to lookup the bean(the reason i mention this is,
i see that you are using the constant COMP_NAME during lookup whose value is different
from what i had asked you to use in my previous post)
- Then post the entire exception stack trace that you are seeing.
From the command prompt run the following command and post the output:
jar -tf rpc.jar
This will display the contents of your jar file.
Right now, without all these information, i can only *guess* that the object returned from
the lookup is an instance of remote home of the Promotion bean and not a local home
instance(just a wild guess) resulting in a ClassCastException. Posting the above mentioned
files will help in identifying the issue.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962179#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...