Re: Tomee 10.0.21 Class cast Exception when undeploying application with @PostConstruct LifeCycle

2022-09-07 Thread Cesar Hernandez
Hi Rod, I tested your example code examples/Chapter3/03-slsbLifecycleExample/servlet/, and it's working now with latest TomEE 9.0.0-M8:)!. I see Richard already replied and patched the shutdown exception via TOMEE-4032 [1], thank you for filling the JIRA and Richard for the patch and overall

Re: Tomee 10.0.21 Class cast Exception when undeploying application with @PostConstruct LifeCycle

2022-09-02 Thread Rob Leland
Thanks, that was the key to fixing the application which now works! However: I am still seeing the same exception when stopping tomcat: java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and

Re: Tomee 10.0.21 Class cast Exception when undeploying application with @PostConstruct LifeCycle

2022-09-02 Thread Cesar Hernandez
Hi Rod, I would assume you are using TomEE 9. x milestone release because you are using the Jakarta namespace. If this is not the case, you can find the latest TomEE 9.x.x-M release here https://tomee.apache.org/download.html Indeed your app packaging seems to be missing the actual servlet

Tomee 10.0.21 Class cast Exception when undeploying application with @PostConstruct LifeCycle

2022-09-02 Thread Rob Leland
Summary: I am seeing the Class cast Exception shown at the bottom when stopping the container. The tomee profile I downloaded seems to have the required EE jars under tomee/lib. I tried the code on GlassFish 6.2.5 and did not see this error. Note: The code I am working with is 2 classes,