Mantis - Resin
Viewing Issue Advanced Details
391 minor always 09-20-05 00:00 11-30-05 14:42
ferg  
 
normal  
closed  
fixed  
none    
none 3.0.15  
0000391: EJB 2.0 Stateless Session compilation
RSN-437
(rep by Marcus Richardson)

I have attached an example. I added a HelloException and modified the hello method signature in Hello.java and HelloBean.java to throw the exception. The servlet has been modified to handle the exception.

The following is the error that I receive from resin:

[14:49:42.131] Compiling _ejb/HelloBean/HelloBean__EJB.java
[14:49:42.743] com.caucho.config.ConfigException: com.caucho.java.JavaCompileException: /tmp/resin-3.0.14/webapps/test/ejb3/tutorial/stateless/WEB-INF/work/ejb/_ejb/HelloBean/HelloBean__EJB.java:183: unreported exception example.HelloException; must be caught or declared to be thrown
[14:49:42.743] return ptr.hello();
[14:49:42.743] ^
[14:49:42.743] 1 error
[14:49:42.743] at com.caucho.ejb.cfg.EjbConfig.configure(EjbConfig.java:419)
[14:49:42.743] at com.caucho.ejb.EjbServerManager.build(EjbServerManager.java:563)

Notes
(0000449)
ferg   
09-20-05 00:00   
ejb/0f06