[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Thanks for responding. I'm using JBoss 4.0.2. Yes, the interfaces are in the war file, in a jar under WEB-INF/lib. This was the suggested way to do it in the JBossIDE tutorial. How would you suggest I package them? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885004#3885004 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885004 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Place the beans in a jar file, say MyBeans_ejb.jar, and mention this in the application.xml file as follows: MyBeans_ejb.jar I think this should work View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885007#3885007 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885007 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Have you packaged the jar and war together in an ear? Just don't add the interfaces jar to the web application. If the beans are deployed within the ear of the war the interfaces will be available at runtime anyway. The section in the tutorial that shows how to do this probably needs to be removed now. The problem is when they are packaged twice is that they get loaded by two different classloaders which makes them look as if they are different. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885009#3885009 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885009 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Sorry, forgot to mention the contents of application.xml in the previous post: Make an entry as follows: module | ejbMyBeans_ejb.jar/ejb | /module | module And create a jar file MyBeans.jar containing the interfaces and beans View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885011#3885011 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885011 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Yes, everything was in an ear. I did as you suggested and it works fine. Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885023#3885023 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885023 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: ClassCastException on EJB Remote Lookup/Narrow
Which version of JBoss are you using? How is your application actually packaged? If you have packaged the interfaces in the war file you need to remove them as that is probably the cause of the conflict. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3884941#3884941 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884941 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user