[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean
manemannen
do-not-reply at jboss.com
Thu Nov 20 04:25:27 EST 2008
Output from "ls":
magnus at manexps:~/jboss-4.2.2.GA/server/default/tmp/deploy$ ls -laR tmp41571simple-webclient-exp.war/
| tmp41571simple-webclient-exp.war/:
| total 16
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 12 magnus magnus 4096 2008-11-20 10:11 ..
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 META-INF
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 WEB-INF
|
| tmp41571simple-webclient-exp.war/META-INF:
| total 12
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 ..
| -rw-r--r-- 1 magnus magnus 102 2008-11-20 10:11 MANIFEST.MF
|
| tmp41571simple-webclient-exp.war/WEB-INF:
| total 20
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 ..
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 classes
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 lib
| -rw-r--r-- 1 magnus magnus 1073 2008-11-19 19:44 web.xml
|
| tmp41571simple-webclient-exp.war/WEB-INF/classes:
| total 12
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 ..
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 com
|
| tmp41571simple-webclient-exp.war/WEB-INF/classes/com:
| total 12
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 ..
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 test
|
| tmp41571simple-webclient-exp.war/WEB-INF/classes/com/test:
| total 12
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 3 magnus magnus 4096 2008-11-20 10:11 ..
| -rw-r--r-- 1 magnus magnus 2005 2008-11-20 10:10 SimpleTestServlet.class
|
| tmp41571simple-webclient-exp.war/WEB-INF/lib:
| total 12
| drwxr-xr-x 2 magnus magnus 4096 2008-11-20 10:11 .
| drwxr-xr-x 4 magnus magnus 4096 2008-11-20 10:11 ..
| -rw-r--r-- 1 magnus magnus 1899 2008-11-20 10:11 simple-ejb.jar
|
I understand that the problem lies in the simple-ejb.jar and the CL of the web client loads from this instead of from the simple-ejb.jar located in the unpacked ear directory.
I figure there are two solutions to this:
1. Remove the "simple-ejb.jar" file from the war archive. I tried this and this works! Now I just need to find the build/deploy scripts so I can remove the jar file automatically (any hints here?).
2. Force the CL to load the bean from the class definition from ear instead. I don't know how to do this...
Oh and BTW for some reason JNDIView is not present in my JMX console ?!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190784#4190784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190784
More information about the jboss-user
mailing list