I get ClassCastException
There are some places where it reports this when it really means ClassNotFoundException, e.g. the CORBA PortableRemoteObject.narrow()
Assuming it is the same class name, this problem relates to classes getting loaded from different classloaders. At compile time your class has only one identity, its name. If you "deploy" a class many times in different jars, it has multiple identities. They are not the same. See below for more information on the solutions to this problem.
This can also be caused by you only redeploying part of your application. e.g. a webapp uses an EJB and you only redeploy the EJB. The webapp will still have the old versions of the classes.
@Stateless
@Interceptors(SecurityInterceptor.class)
public class SecurityBean implements SecurityRemote {
public void testSecurity() {
}
}
public class SecurityInterceptor {
@Resource SessionContext sessionContext;
@AroundInvoke
public Object securityCheck(InvocationContext ctx) throws Exception {
if (sessionContext.getCallerPrincipal().getName().equalsIgnoreCase("guest")) {
throw new SecurityException("No authenticated user provided");
}
return ctx.proceed();
}
}
The Sun Academic Initiative tests provide the same Sun certification at a discounted price. Due to the discounted price, you do not receive the lapel pin, logo use, or wallet card. If these are needed you will have to take the exam at the commercial price.
In order to obtain use of the logo, you must take and pass the commercial version of the test. We cannot provide logo use to SAI certification students. We regret any inconvenience you may experience as a result of this issue.
Your actual SCJP certification is the same as the commercial certification and fulfills all of the prerequisite requirements for any of the Developer certifications. The only difference is that with the Sun Academic Initiative (SAI) program, you do not receive logo use, the wallet card, or the lapel pin. Since Developer certifications are not offered through the SAI program, you would receive all of the supplements of the commercial certification�logo use, wallet card, and lapel pin.