-
1. Re: Getting proxy view for the class and getting class cast exception.
sfcoy Jan 1, 2013 7:46 AM (in response to gg.svce)How is your application packaged?
-
2. Re: Getting proxy view for the class and getting class cast exception.
gg.svce Jan 1, 2013 7:59 AM (in response to sfcoy)Thanks for reply Stephen..
my application packaging:
+protectoria.ear\
+app.jar
META-INF
MANIFEST.MF
ejb-jar.xml
\no\messageman\protectoria\core\
\no\messageman\protectoria\init\
+app.war
+WEB-INF
web.xml
all other xml files
+META-INF
+all the required jars are places here
please do suggest?
Thanks:)
-
3. Re: Getting proxy view for the class and getting class cast exception.
sfcoy Jan 1, 2013 8:47 AM (in response to gg.svce)What are you using to deploy your application?
If you're using an IDE these will sometimes put duplicate copies of jars into the app.war/WEB-INF/lib directory. This will result in the error you're seeing.
-
4. Re: Getting proxy view for the class and getting class cast exception.
gg.svce Jan 2, 2013 6:48 AM (in response to sfcoy)hello Stephen !
i am using Eclipse to deploy my application.
i have checked in my ear there is no duplicate jars placed in war file.
please do suggest.:
i have seen the links
https://community.jboss.org/message/624071
https://issues.jboss.org/browse/AS7-1658
exactly same problem i am facing.
as i am using jboss 7.1.1 Final i am not sure this bug is resolved or not.
you can check the above links and let me know if gets any pointers to resolve this issue.
thanks in advance:)
-
5. Re: Getting proxy view for the class and getting class cast exception.
nickarls Jan 3, 2013 1:37 AM (in response to gg.svce)@Out as in Seam 2?
The linked issues look resolved by now (and where mostly remote interface-related)
-
6. Re: Getting proxy view for the class and getting class cast exception.
gg.svce Jan 3, 2013 1:46 AM (in response to nickarls)Thanks Nicklas for reply:)
can you please elaborate little bit so that i can resolve this issue??
i am using @Local interface in my application.
Thanks:)
-
7. Re: Getting proxy view for the class and getting class cast exception.
nickarls Jan 3, 2013 2:26 AM (in response to gg.svce)I was just looking at the @Out annotation to determine if you were using Seam 2 or not since it too might do some proxying that might affect the result.
-
8. Re: Getting proxy view for the class and getting class cast exception.
gg.svce Jan 3, 2013 3:11 AM (in response to nickarls)Yes!I am using Seam2
we are using @Out and @In annotations
please do suggest ?
Thanks:)
-
9. Re: Getting proxy view for the class and getting class cast exception.
nickarls Jan 3, 2013 3:28 AM (in response to gg.svce)I haven't run Seam 2 on AS7 but I would start with a fresh project using only EE6 technologies (CDI + EJB) with the same architechture.
If it works, then it's not (directly) an AS issue and you'll have to look for workarounds for Seam 2.