[ 
https://issues.apache.org/jira/browse/GERONIMO-6550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989618#comment-14989618
 ] 

Jeeva VENKATARAMAN edited comment on GERONIMO-6550 at 11/16/15 4:17 PM:
------------------------------------------------------------------------

The stack trace seen with Geronimo 3.0.1:

{noformat}
Caused by: java.lang.ClassCastException: javax.servlet.ServletContextEvent 
cannot be cast to org.apache.openejb.cdi.StartupObject
        at 
org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:156)
        at 
org.apache.geronimo.openwebbeans.OpenWebBeansWebModuleListener.moduleInitialized(OpenWebBeansWebModuleListener.java:67)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:713)
        at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)
        at 
org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext.startInternal(GeronimoStandardContext.java:459)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 30 more
2015-11-03 11:36:15,307 INFO  [OpenEJBLifecycle] OpenWebBeans Container was 
stopped for context path, [/platform-messagebroker]
2015-11-03 11:36:15,307 WARN  [TomcatWebAppContext] TomcatWebAppContext failed
{noformat}

The web application platform-messagebroker fails to deploy as a result.

This same web application worked with out issues on Geronimo 2.2, and seeing 
issues after porting to Geronimo 3.0.1

Sounds like some of classloader/classpath issue of deploying the webapp with 
3.0.1

Are there any workarounds? Anything to turn off in the config so as to prevent 
this?

Update:
Tested the sample "HelloWorld.war" web application, and once i added a 
dependency to the Geronimo shared library folder, the deployment of the sample 
web application also failed.

Then found that it was "gauva-15.0.jar" in the shared library folder, that was 
causing this issue. After removing this jar file from the shared lib folder, 
the issue did not appear.


was (Author: jeevagv):
The stack trace seen with Geronimo 3.0.1:

{noformat}
Caused by: java.lang.ClassCastException: javax.servlet.ServletContextEvent 
cannot be cast to org.apache.openejb.cdi.StartupObject
        at 
org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:156)
        at 
org.apache.geronimo.openwebbeans.OpenWebBeansWebModuleListener.moduleInitialized(OpenWebBeansWebModuleListener.java:67)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:713)
        at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)
        at 
org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext.startInternal(GeronimoStandardContext.java:459)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 30 more
2015-11-03 11:36:15,307 INFO  [OpenEJBLifecycle] OpenWebBeans Container was 
stopped for context path, [/platform-messagebroker]
2015-11-03 11:36:15,307 WARN  [TomcatWebAppContext] TomcatWebAppContext failed
{noformat}

The web application platform-messagebroker fails to deploy as a result.

This same web application worked with out issues on Geronimo 2.2, and seeing 
issues after porting to Geronimo 3.0.1

Sounds like some of classloader/classpath issue of deploying the webapp with 
3.0.1

Are there any workarounds? Anything to turn off in the config so as to prevent 
this?

> CLONE - ClassCastException during deployment of a web app
> ---------------------------------------------------------
>
>                 Key: GERONIMO-6550
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6550
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: OpenWebBeans
>            Reporter: Jeeva VENKATARAMAN
>             Fix For: 3.0.0
>
>
> Final JCDI TCK issue (I hope). During deployment of some apps, we're getting 
> the following exception (this is with an updated 
> WebBeansConfigurationListener.java). So, will need to resolve wrt. 
> GERONIMO-5896
> Here's the exception we get:
> {code}
> 2011-04-10 20:28:22,185 ERROR [DecoratorInvocationTest]] Exception sending 
> context initialized event to listener instance of class 
> org.apache.geronimo.openwebbeans.WebBeansConfigurationListener
> java.lang.ClassCastException: javax.servlet.ServletContextEvent cannot be 
> cast to org.apache.openejb.cdi.StartupObject
>       at 
> org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:110)
>       at 
> org.apache.geronimo.openwebbeans.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:86)
>       at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521)
>       at 
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
>       at 
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:680)
> {code}
> This appears to be the cause of the remaining test failures. So, this might 
> be the final fix needed to clear up the JSR-299 tests...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to