Hi cheng,
I was initially performing the narrowing first and then I also swapped out to use the code you posted and the exception is the same. My only thought is that the GUID class is loaded separately by the ClassLoader for the EJB deployed in app1.ear and the Servlet deployed within app2.ear.
Bob
[Message sent by forum member 'bpet36' (bpet36)]
http://forums.java.net/jive/thread.jspa?messageID=250616