[JBoss-user] [EJB 3.0] - Re: ClassCastException/Entity Bean Remoting
I fixed it by removing ejb3Test-client.jar from the war file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3918164#3918164 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918164 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException/Entity Bean Remoting
I am getting the same ClassCastException when using entity Bean in JBoss 4.0.3SP1. This only happens when I do a find on primary key using EntityManager's find method. It seems like the object is retrieved appropriately in the ejb-tier, however when returning to the Web-tier there is somewhere, it's throwing ClassCastException. When I am using a collection class to retrieve all the Books, I seem to be getting the appropriate values. I have following structure in my code: ejb3Test.ear META-INF/MANIFEST.MF META-INF/application.xml ejb3Test.ejb3 ejb3Test.war ejb3Test.par ejb3Test.ejb3 META-INF/MANIFEST.MF org/vss/ejb3/sb/BookManager.class org/vss/ejb3/sb/BookManagerBean.class ejb3Test.par META-INF/MANIFEST.MF META-INF/persistence.xml org/vss/ejb3/eb/Book.class ejb3Test.war has the following jar file for Book class WEB-INF/lib/ejb3Test-client.jar ejb3Test-client.jar META-INF/MANIFEST.MF org/vss/ejb3/eb/Book.class org/vss/ejb3/sb/BookManager.class 23:19:23,125 INFO [STDOUT] java.lang.ClassCastException: org.vss.ejb3.eb.Book | 23:19:23,125 INFO [STDOUT] at $Proxy107.getBook(Unknown Source) | 23:19:23,125 INFO [STDOUT] at org.vss.web.struts.library.SimulateDB.loadBookById(SimulateDB.java:34) | 23:19:23,125 INFO [STDOUT] at org.vss.web.struts.library.action.BookEditAction.editBook(BookEditAction.java:45) | 23:19:23,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 23:19:23,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 23:19:23,125 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 23:19:23,125 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3913715#3913715 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913715 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException/Entity Bean Remoting
[EMAIL PROTECTED] wrote : | | WARs have a scoped classloader by default (required by spec). You can turn this off to use the unified, flat classloader scheme and this should fix the problem on JBoss. | | How do I turn this off? I have the exact same problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912674#3912674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912674 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException/Entity Bean Remoting
For more information, if I have a par, ejb3, and war in the same ear, I can't even include the par in the WEB-INF/lib of the war or I get ClassCastExceptoins. I need to be able to give the par to other web app developers as a jar for access to our entity objects. Is anybody looking into this? Just wondering since I haven't heard or seen anything yet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912750#3912750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912750 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: ClassCastException/Entity Bean Remoting
LordKaos wrote : Bill, | After much research I guess my question is this: | | Is there any known current way to correctly deploy an ejb3 entity bean inside a remote tomcat container? | | I know this isn't strictly a JBoss/EJB3 question, but I have tried everything here. Interestingly, I get a similar ClassCastException inside Tomcat if I include my remote session beans inside a jar file in the shared libs of Tomcat. | | It would seem that Tomcat is not correctly processing the annotations inside the entity beans, hence the ClassCastException. perhaps I am not deploying one of the jars that I should be in Tomcat? | | Any help would be much appreciated. | | Cheers, | Alex. LordKaos, That's what i want too, do you find how to do this ? Best regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3909807#3909807 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3909807 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user