Importing an interceptor library


EJB design: Importing an interceptor library

  1. Importing an interceptor library (1 messages)

    I did and ejb that with annotation call a interceptor class that belong to a intercetor-application-client.jar. When I deploy the client application I get the error: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy the client call (an jsp): try { Context ctx = new InitialContext(); IOperation op = (IOperation)ctx.lookup("lab015/Operation/remote"); result = op.sum(2,2); } catch (Exception e) { e.printStackTrace(); } the Operation class method that is on the same ear: @Interceptors( { SecurityBridge.class }) public int sum(int a, int b) { return a+b; } the SecurityBridge class was imported from a jar that belongs to the server application and that jar was put on lib folder of the server. Is that a limitation in j2ee?

    Threaded Messages (1)

  2. Solved[ Go to top ]

    After restarting server the problem was solved. Looks like that the jars deployed in lib dir was parsed in the server bootup.